tln-pm
Version:
Project Management as Code
299 lines • 1.14 MB
JavaScript
var Qw=Object.defineProperty;var Jw=(t,r,a)=>r in t?Qw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a;var mf=(t,r,a)=>Jw(t,typeof r!="symbol"?r+"":r,a);function s1(t,r){for(var a=0;a<r.length;a++){const c=r[a];if(typeof c!="string"&&!Array.isArray(c)){for(const p in c)if(p!=="default"&&!(p in t)){const m=Object.getOwnPropertyDescriptor(c,p);m&&Object.defineProperty(t,p,m.get?m:{enumerable:!0,get:()=>c[p]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))c(p);new MutationObserver(p=>{for(const m of p)if(m.type==="childList")for(const S of m.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&c(S)}).observe(document,{childList:!0,subtree:!0});function a(p){const m={};return p.integrity&&(m.integrity=p.integrity),p.referrerPolicy&&(m.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?m.credentials="include":p.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(p){if(p.ep)return;p.ep=!0;const m=a(p);fetch(p.href,m)}})();function up(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hy={exports:{}},yf={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sv;function tC(){if(sv)return yf;sv=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(c,p,m){var S=null;if(m!==void 0&&(S=""+m),p.key!==void 0&&(S=""+p.key),"key"in p){m={};for(var k in p)k!=="key"&&(m[k]=p[k])}else m=p;return p=m.ref,{$$typeof:t,type:c,key:S,ref:p!==void 0?p:null,props:m}}return yf.Fragment=r,yf.jsx=a,yf.jsxs=a,yf}var ov;function eC(){return ov||(ov=1,Hy.exports=tC()),Hy.exports}var Y=eC(),Uy={exports:{}},zi={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var av;function iC(){if(av)return zi;av=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),$=Symbol.iterator;function I(St){return St===null||typeof St!="object"?null:(St=$&&St[$]||St["@@iterator"],typeof St=="function"?St:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,_={};function J(St,jt,Se){this.props=St,this.context=jt,this.refs=_,this.updater=Se||F}J.prototype.isReactComponent={},J.prototype.setState=function(St,jt){if(typeof St!="object"&&typeof St!="function"&&St!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,St,jt,"setState")},J.prototype.forceUpdate=function(St){this.updater.enqueueForceUpdate(this,St,"forceUpdate")};function it(){}it.prototype=J.prototype;function st(St,jt,Se){this.props=St,this.context=jt,this.refs=_,this.updater=Se||F}var ct=st.prototype=new it;ct.constructor=st,z(ct,J.prototype),ct.isPureReactComponent=!0;var ht=Array.isArray,lt={H:null,A:null,T:null,S:null},wt=Object.prototype.hasOwnProperty;function at(St,jt,Se,ke,ge,Pe){return Se=Pe.ref,{$$typeof:t,type:St,key:jt,ref:Se!==void 0?Se:null,props:Pe}}function _t(St,jt){return at(St.type,jt,void 0,void 0,void 0,St.props)}function Et(St){return typeof St=="object"&&St!==null&&St.$$typeof===t}function ot(St){var jt={"=":"=0",":":"=2"};return"$"+St.replace(/[=:]/g,function(Se){return jt[Se]})}var It=/\/+/g;function se(St,jt){return typeof St=="object"&&St!==null&&St.key!=null?ot(""+St.key):jt.toString(36)}function re(){}function ie(St){switch(St.status){case"fulfilled":return St.value;case"rejected":throw St.reason;default:switch(typeof St.status=="string"?St.then(re,re):(St.status="pending",St.then(function(jt){St.status==="pending"&&(St.status="fulfilled",St.value=jt)},function(jt){St.status==="pending"&&(St.status="rejected",St.reason=jt)})),St.status){case"fulfilled":return St.value;case"rejected":throw St.reason}}throw St}function Kt(St,jt,Se,ke,ge){var Pe=typeof St;(Pe==="undefined"||Pe==="boolean")&&(St=null);var we=!1;if(St===null)we=!0;else switch(Pe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(St.$$typeof){case t:case r:we=!0;break;case j:return we=St._init,Kt(we(St._payload),jt,Se,ke,ge)}}if(we)return ge=ge(St),we=ke===""?"."+se(St,0):ke,ht(ge)?(Se="",we!=null&&(Se=we.replace(It,"$&/")+"/"),Kt(ge,jt,Se,"",function(Ke){return Ke})):ge!=null&&(Et(ge)&&(ge=_t(ge,Se+(ge.key==null||St&&St.key===ge.key?"":(""+ge.key).replace(It,"$&/")+"/")+we)),jt.push(ge)),1;we=0;var Ue=ke===""?".":ke+":";if(ht(St))for(var Ae=0;Ae<St.length;Ae++)ke=St[Ae],Pe=Ue+se(ke,Ae),we+=Kt(ke,jt,Se,Pe,ge);else if(Ae=I(St),typeof Ae=="function")for(St=Ae.call(St),Ae=0;!(ke=St.next()).done;)ke=ke.value,Pe=Ue+se(ke,Ae++),we+=Kt(ke,jt,Se,Pe,ge);else if(Pe==="object"){if(typeof St.then=="function")return Kt(ie(St),jt,Se,ke,ge);throw jt=String(St),Error("Objects are not valid as a React child (found: "+(jt==="[object Object]"?"object with keys {"+Object.keys(St).join(", ")+"}":jt)+"). If you meant to render a collection of children, use an array instead.")}return we}function zt(St,jt,Se){if(St==null)return St;var ke=[],ge=0;return Kt(St,ke,"","",function(Pe){return jt.call(Se,Pe,ge++)}),ke}function ne(St){if(St._status===-1){var jt=St._result;jt=jt(),jt.then(function(Se){(St._status===0||St._status===-1)&&(St._status=1,St._result=Se)},function(Se){(St._status===0||St._status===-1)&&(St._status=2,St._result=Se)}),St._status===-1&&(St._status=0,St._result=jt)}if(St._status===1)return St._result.default;throw St._result}var te=typeof reportError=="function"?reportError:function(St){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var jt=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof St=="object"&&St!==null&&typeof St.message=="string"?String(St.message):String(St),error:St});if(!window.dispatchEvent(jt))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",St);return}console.error(St)};function Dt(){}return zi.Children={map:zt,forEach:function(St,jt,Se){zt(St,function(){jt.apply(this,arguments)},Se)},count:function(St){var jt=0;return zt(St,function(){jt++}),jt},toArray:function(St){return zt(St,function(jt){return jt})||[]},only:function(St){if(!Et(St))throw Error("React.Children.only expected to receive a single React element child.");return St}},zi.Component=J,zi.Fragment=a,zi.Profiler=p,zi.PureComponent=st,zi.StrictMode=c,zi.Suspense=O,zi.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt,zi.act=function(){throw Error("act(...) is not supported in production builds of React.")},zi.cache=function(St){return function(){return St.apply(null,arguments)}},zi.cloneElement=function(St,jt,Se){if(St==null)throw Error("The argument must be a React element, but you passed "+St+".");var ke=z({},St.props),ge=St.key,Pe=void 0;if(jt!=null)for(we in jt.ref!==void 0&&(Pe=void 0),jt.key!==void 0&&(ge=""+jt.key),jt)!wt.call(jt,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&jt.ref===void 0||(ke[we]=jt[we]);var we=arguments.length-2;if(we===1)ke.children=Se;else if(1<we){for(var Ue=Array(we),Ae=0;Ae<we;Ae++)Ue[Ae]=arguments[Ae+2];ke.children=Ue}return at(St.type,ge,void 0,void 0,Pe,ke)},zi.createContext=function(St){return St={$$typeof:S,_currentValue:St,_currentValue2:St,_threadCount:0,Provider:null,Consumer:null},St.Provider=St,St.Consumer={$$typeof:m,_context:St},St},zi.createElement=function(St,jt,Se){var ke,ge={},Pe=null;if(jt!=null)for(ke in jt.key!==void 0&&(Pe=""+jt.key),jt)wt.call(jt,ke)&&ke!=="key"&&ke!=="__self"&&ke!=="__source"&&(ge[ke]=jt[ke]);var we=arguments.length-2;if(we===1)ge.children=Se;else if(1<we){for(var Ue=Array(we),Ae=0;Ae<we;Ae++)Ue[Ae]=arguments[Ae+2];ge.children=Ue}if(St&&St.defaultProps)for(ke in we=St.defaultProps,we)ge[ke]===void 0&&(ge[ke]=we[ke]);return at(St,Pe,void 0,void 0,null,ge)},zi.createRef=function(){return{current:null}},zi.forwardRef=function(St){return{$$typeof:k,render:St}},zi.isValidElement=Et,zi.lazy=function(St){return{$$typeof:j,_payload:{_status:-1,_result:St},_init:ne}},zi.memo=function(St,jt){return{$$typeof:R,type:St,compare:jt===void 0?null:jt}},zi.startTransition=function(St){var jt=lt.T,Se={};lt.T=Se;try{var ke=St(),ge=lt.S;ge!==null&&ge(Se,ke),typeof ke=="object"&&ke!==null&&typeof ke.then=="function"&&ke.then(Dt,te)}catch(Pe){te(Pe)}finally{lt.T=jt}},zi.unstable_useCacheRefresh=function(){return lt.H.useCacheRefresh()},zi.use=function(St){return lt.H.use(St)},zi.useActionState=function(St,jt,Se){return lt.H.useActionState(St,jt,Se)},zi.useCallback=function(St,jt){return lt.H.useCallback(St,jt)},zi.useContext=function(St){return lt.H.useContext(St)},zi.useDebugValue=function(){},zi.useDeferredValue=function(St,jt){return lt.H.useDeferredValue(St,jt)},zi.useEffect=function(St,jt){return lt.H.useEffect(St,jt)},zi.useId=function(){return lt.H.useId()},zi.useImperativeHandle=function(St,jt,Se){return lt.H.useImperativeHandle(St,jt,Se)},zi.useInsertionEffect=function(St,jt){return lt.H.useInsertionEffect(St,jt)},zi.useLayoutEffect=function(St,jt){return lt.H.useLayoutEffect(St,jt)},zi.useMemo=function(St,jt){return lt.H.useMemo(St,jt)},zi.useOptimistic=function(St,jt){return lt.H.useOptimistic(St,jt)},zi.useReducer=function(St,jt,Se){return lt.H.useReducer(St,jt,Se)},zi.useRef=function(St){return lt.H.useRef(St)},zi.useState=function(St){return lt.H.useState(St)},zi.useSyncExternalStore=function(St,jt,Se){return lt.H.useSyncExternalStore(St,jt,Se)},zi.useTransition=function(){return lt.H.useTransition()},zi.version="19.0.0",zi}var lv;function Gm(){return lv||(lv=1,Uy.exports=iC()),Uy.exports}var W=Gm();const Dc=up(W),xb=s1({__proto__:null,default:Dc},[W]);var Fy={exports:{}},bf={},Gy={exports:{}},_y={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var cv;function nC(){return cv||(cv=1,function(t){function r(zt,ne){var te=zt.length;zt.push(ne);t:for(;0<te;){var Dt=te-1>>>1,St=zt[Dt];if(0<p(St,ne))zt[Dt]=ne,zt[te]=St,te=Dt;else break t}}function a(zt){return zt.length===0?null:zt[0]}function c(zt){if(zt.length===0)return null;var ne=zt[0],te=zt.pop();if(te!==ne){zt[0]=te;t:for(var Dt=0,St=zt.length,jt=St>>>1;Dt<jt;){var Se=2*(Dt+1)-1,ke=zt[Se],ge=Se+1,Pe=zt[ge];if(0>p(ke,te))ge<St&&0>p(Pe,ke)?(zt[Dt]=Pe,zt[ge]=te,Dt=ge):(zt[Dt]=ke,zt[Se]=te,Dt=Se);else if(ge<St&&0>p(Pe,te))zt[Dt]=Pe,zt[ge]=te,Dt=ge;else break t}}return ne}function p(zt,ne){var te=zt.sortIndex-ne.sortIndex;return te!==0?te:zt.id-ne.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;t.unstable_now=function(){return m.now()}}else{var S=Date,k=S.now();t.unstable_now=function(){return S.now()-k}}var O=[],R=[],j=1,$=null,I=3,F=!1,z=!1,_=!1,J=typeof setTimeout=="function"?setTimeout:null,it=typeof clearTimeout=="function"?clearTimeout:null,st=typeof setImmediate<"u"?setImmediate:null;function ct(zt){for(var ne=a(R);ne!==null;){if(ne.callback===null)c(R);else if(ne.startTime<=zt)c(R),ne.sortIndex=ne.expirationTime,r(O,ne);else break;ne=a(R)}}function ht(zt){if(_=!1,ct(zt),!z)if(a(O)!==null)z=!0,ie();else{var ne=a(R);ne!==null&&Kt(ht,ne.startTime-zt)}}var lt=!1,wt=-1,at=5,_t=-1;function Et(){return!(t.unstable_now()-_t<at)}function ot(){if(lt){var zt=t.unstable_now();_t=zt;var ne=!0;try{t:{z=!1,_&&(_=!1,it(wt),wt=-1),F=!0;var te=I;try{e:{for(ct(zt),$=a(O);$!==null&&!($.expirationTime>zt&&Et());){var Dt=$.callback;if(typeof Dt=="function"){$.callback=null,I=$.priorityLevel;var St=Dt($.expirationTime<=zt);if(zt=t.unstable_now(),typeof St=="function"){$.callback=St,ct(zt),ne=!0;break e}$===a(O)&&c(O),ct(zt)}else c(O);$=a(O)}if($!==null)ne=!0;else{var jt=a(R);jt!==null&&Kt(ht,jt.startTime-zt),ne=!1}}break t}finally{$=null,I=te,F=!1}ne=void 0}}finally{ne?It():lt=!1}}}var It;if(typeof st=="function")It=function(){st(ot)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,re=se.port2;se.port1.onmessage=ot,It=function(){re.postMessage(null)}}else It=function(){J(ot,0)};function ie(){lt||(lt=!0,It())}function Kt(zt,ne){wt=J(function(){zt(t.unstable_now())},ne)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(zt){zt.callback=null},t.unstable_continueExecution=function(){z||F||(z=!0,ie())},t.unstable_forceFrameRate=function(zt){0>zt||125<zt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):at=0<zt?Math.floor(1e3/zt):5},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return a(O)},t.unstable_next=function(zt){switch(I){case 1:case 2:case 3:var ne=3;break;default:ne=I}var te=I;I=ne;try{return zt()}finally{I=te}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(zt,ne){switch(zt){case 1:case 2:case 3:case 4:case 5:break;default:zt=3}var te=I;I=zt;try{return ne()}finally{I=te}},t.unstable_scheduleCallback=function(zt,ne,te){var Dt=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Dt+te:Dt):te=Dt,zt){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=te+St,zt={id:j++,callback:ne,priorityLevel:zt,startTime:te,expirationTime:St,sortIndex:-1},te>Dt?(zt.sortIndex=te,r(R,zt),a(O)===null&&zt===a(R)&&(_?(it(wt),wt=-1):_=!0,Kt(ht,te-Dt))):(zt.sortIndex=St,r(O,zt),z||F||(z=!0,ie())),zt},t.unstable_shouldYield=Et,t.unstable_wrapCallback=function(zt){var ne=I;return function(){var te=I;I=ne;try{return zt.apply(this,arguments)}finally{I=te}}}}(_y)),_y}var uv;function rC(){return uv||(uv=1,Gy.exports=nC()),Gy.exports}var Wy={exports:{}},Ws={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var dv;function sC(){if(dv)return Ws;dv=1;var t=Gm();function r(O){var R="https://react.dev/errors/"+O;if(1<arguments.length){R+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)R+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+O+"; visit "+R+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var c={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},p=Symbol.for("react.portal");function m(O,R,j){var $=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:$==null?null:""+$,children:O,containerInfo:R,implementation:j}}var S=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(O,R){if(O==="font")return"";if(typeof R=="string")return R==="use-credentials"?R:""}return Ws.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Ws.createPortal=function(O,R){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!R||R.nodeType!==1&&R.nodeType!==9&&R.nodeType!==11)throw Error(r(299));return m(O,R,null,j)},Ws.flushSync=function(O){var R=S.T,j=c.p;try{if(S.T=null,c.p=2,O)return O()}finally{S.T=R,c.p=j,c.d.f()}},Ws.preconnect=function(O,R){typeof O=="string"&&(R?(R=R.crossOrigin,R=typeof R=="string"?R==="use-credentials"?R:"":void 0):R=null,c.d.C(O,R))},Ws.prefetchDNS=function(O){typeof O=="string"&&c.d.D(O)},Ws.preinit=function(O,R){if(typeof O=="string"&&R&&typeof R.as=="string"){var j=R.as,$=k(j,R.crossOrigin),I=typeof R.integrity=="string"?R.integrity:void 0,F=typeof R.fetchPriority=="string"?R.fetchPriority:void 0;j==="style"?c.d.S(O,typeof R.precedence=="string"?R.precedence:void 0,{crossOrigin:$,integrity:I,fetchPriority:F}):j==="script"&&c.d.X(O,{crossOrigin:$,integrity:I,fetchPriority:F,nonce:typeof R.nonce=="string"?R.nonce:void 0})}},Ws.preinitModule=function(O,R){if(typeof O=="string")if(typeof R=="object"&&R!==null){if(R.as==null||R.as==="script"){var j=k(R.as,R.crossOrigin);c.d.M(O,{crossOrigin:j,integrity:typeof R.integrity=="string"?R.integrity:void 0,nonce:typeof R.nonce=="string"?R.nonce:void 0})}}else R==null&&c.d.M(O)},Ws.preload=function(O,R){if(typeof O=="string"&&typeof R=="object"&&R!==null&&typeof R.as=="string"){var j=R.as,$=k(j,R.crossOrigin);c.d.L(O,j,{crossOrigin:$,integrity:typeof R.integrity=="string"?R.integrity:void 0,nonce:typeof R.nonce=="string"?R.nonce:void 0,type:typeof R.type=="string"?R.type:void 0,fetchPriority:typeof R.fetchPriority=="string"?R.fetchPriority:void 0,referrerPolicy:typeof R.referrerPolicy=="string"?R.referrerPolicy:void 0,imageSrcSet:typeof R.imageSrcSet=="string"?R.imageSrcSet:void 0,imageSizes:typeof R.imageSizes=="string"?R.imageSizes:void 0,media:typeof R.media=="string"?R.media:void 0})}},Ws.preloadModule=function(O,R){if(typeof O=="string")if(R){var j=k(R.as,R.crossOrigin);c.d.m(O,{as:typeof R.as=="string"&&R.as!=="script"?R.as:void 0,crossOrigin:j,integrity:typeof R.integrity=="string"?R.integrity:void 0})}else c.d.m(O)},Ws.requestFormReset=function(O){c.d.r(O)},Ws.unstable_batchedUpdates=function(O,R){return O(R)},Ws.useFormState=function(O,R,j){return S.H.useFormState(O,R,j)},Ws.useFormStatus=function(){return S.H.useHostTransitionStatus()},Ws.version="19.0.0",Ws}var hv;function o1(){if(hv)return Wy.exports;hv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Wy.exports=sC(),Wy.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pv;function oC(){if(pv)return bf;pv=1;var t=rC(),r=Gm(),a=o1();function c(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var m=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),I=Symbol.for("react.consumer"),F=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),it=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),ct=Symbol.for("react.offscreen"),ht=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function wt(e){return e===null||typeof e!="object"?null:(e=lt&&e[lt]||e["@@iterator"],typeof e=="function"?e:null)}var at=Symbol.for("react.client.reference");function _t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===at?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case k:return"Portal";case j:return"Profiler";case R:return"StrictMode";case _:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case z:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case it:return n=e.displayName||null,n!==null?n:_t(e.type)||"Memo";case st:n=e._payload,e=e._init;try{return _t(e(n))}catch{}}return null}var Et=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot=Object.assign,It,se;function re(e){if(It===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);It=n&&n[1]||"",se=-1<o.stack.indexOf(`
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+It+e+se}var ie=!1;function Kt(e,n){if(!e||ie)return"";ie=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(n){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(ue){var ee=ue}Reflect.construct(e,[],Me)}else{try{Me.call()}catch(ue){ee=ue}e.call(Me.prototype)}}else{try{throw Error()}catch(ue){ee=ue}(Me=e())&&typeof Me.catch=="function"&&Me.catch(function(){})}}catch(ue){if(ue&&ee&&typeof ue.stack=="string")return[ue.stack,ee.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=d.DetermineComponentFrameRoot(),tt=E[0],xt=E[1];if(tt&&xt){var Ot=tt.split(`
`),Ft=xt.split(`
`);for(v=d=0;d<Ot.length&&!Ot[d].includes("DetermineComponentFrameRoot");)d++;for(;v<Ft.length&&!Ft[v].includes("DetermineComponentFrameRoot");)v++;if(d===Ot.length||v===Ft.length)for(d=Ot.length-1,v=Ft.length-1;1<=d&&0<=v&&Ot[d]!==Ft[v];)v--;for(;1<=d&&0<=v;d--,v--)if(Ot[d]!==Ft[v]){if(d!==1||v!==1)do if(d--,v--,0>v||Ot[d]!==Ft[v]){var he=`
`+Ot[d].replace(" at new "," at ");return e.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",e.displayName)),he}while(1<=d&&0<=v);break}}}finally{ie=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?re(o):""}function zt(e){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return e=Kt(e.type,!1),e;case 11:return e=Kt(e.type.render,!1),e;case 1:return e=Kt(e.type,!0),e;default:return""}}function ne(e){try{var n="";do n+=zt(e),e=e.return;while(e);return n}catch(o){return`
Error generating stack: `+o.message+`
`+o.stack}}function te(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function Dt(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function St(e){if(te(e)!==e)throw Error(c(188))}function jt(e){var n=e.alternate;if(!n){if(n=te(e),n===null)throw Error(c(188));return n!==e?null:e}for(var o=e,d=n;;){var v=o.return;if(v===null)break;var E=v.alternate;if(E===null){if(d=v.return,d!==null){o=d;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===o)return St(v),e;if(E===d)return St(v),n;E=E.sibling}throw Error(c(188))}if(o.return!==d.return)o=v,d=E;else{for(var tt=!1,xt=v.child;xt;){if(xt===o){tt=!0,o=v,d=E;break}if(xt===d){tt=!0,d=v,o=E;break}xt=xt.sibling}if(!tt){for(xt=E.child;xt;){if(xt===o){tt=!0,o=E,d=v;break}if(xt===d){tt=!0,d=E,o=v;break}xt=xt.sibling}if(!tt)throw Error(c(189))}}if(o.alternate!==d)throw Error(c(190))}if(o.tag!==3)throw Error(c(188));return o.stateNode.current===o?e:n}function Se(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=Se(e),n!==null)return n;e=e.sibling}return null}var ke=Array.isArray,ge=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pe={pending:!1,data:null,method:null,action:null},we=[],Ue=-1;function Ae(e){return{current:e}}function Ke(e){0>Ue||(e.current=we[Ue],we[Ue]=null,Ue--)}function Be(e,n){Ue++,we[Ue]=e.current,e.current=n}var _e=Ae(null),me=Ae(null),Ei=Ae(null),di=Ae(null);function Ai(e,n){switch(Be(Ei,n),Be(me,e),Be(_e,null),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?qt(n):0;break;default:if(e=e===8?n.parentNode:n,n=e.tagName,e=e.namespaceURI)e=qt(e),n=be(e,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Ke(_e),Be(_e,n)}function Di(){Ke(_e),Ke(me),Ke(Ei)}function Ni(e){e.memoizedState!==null&&Be(di,e);var n=_e.current,o=be(n,e.type);n!==o&&(Be(me,e),Be(_e,o))}function bi(e){me.current===e&&(Ke(_e),Ke(me)),di.current===e&&(Ke(di),df._currentValue=Pe)}var bn=Object.prototype.hasOwnProperty,Zi=t.unstable_scheduleCallback,qi=t.unstable_cancelCallback,Ye=t.unstable_shouldYield,sn=t.unstable_requestPaint,Vi=t.unstable_now,Ri=t.unstable_getCurrentPriorityLevel,lr=t.unstable_ImmediatePriority,tn=t.unstable_UserBlockingPriority,Xi=t.unstable_NormalPriority,on=t.unstable_LowPriority,In=t.unstable_IdlePriority,Ci=t.log,dn=t.unstable_setDisableYieldValue,cr=null,gn=null;function ti(e){if(gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(cr,e,void 0,(e.current.flags&128)===128)}catch{}}function ai(e){if(typeof Ci=="function"&&dn(e),gn&&typeof gn.setStrictMode=="function")try{gn.setStrictMode(cr,e)}catch{}}var ki=Math.clz32?Math.clz32:Ho,_r=Math.log,xn=Math.LN2;function Ho(e){return e>>>=0,e===0?32:31-(_r(e)/xn|0)|0}var ei=128,ts=4194304;function Sr(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function es(e,n){var o=e.pendingLanes;if(o===0)return 0;var d=0,v=e.suspendedLanes,E=e.pingedLanes,tt=e.warmLanes;e=e.finishedLanes!==0;var xt=o&134217727;return xt!==0?(o=xt&~v,o!==0?d=Sr(o):(E&=xt,E!==0?d=Sr(E):e||(tt=xt&~tt,tt!==0&&(d=Sr(tt))))):(xt=o&~v,xt!==0?d=Sr(xt):E!==0?d=Sr(E):e||(tt=o&~tt,tt!==0&&(d=Sr(tt)))),d===0?0:n!==0&&n!==d&&(n&v)===0&&(v=d&-d,tt=n&-n,v>=tt||v===32&&(tt&4194176)!==0)?n:d}function qs(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function wr(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ks(){var e=ei;return ei<<=1,(ei&4194176)===0&&(ei=128),e}function Uc(){var e=ts;return ts<<=1,(ts&62914560)===0&&(ts=4194304),e}function va(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function rl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fc(e,n,o,d,v,E){var tt=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var xt=e.entanglements,Ot=e.expirationTimes,Ft=e.hiddenUpdates;for(o=tt&~o;0<o;){var he=31-ki(o),Me=1<<he;xt[he]=0,Ot[he]=-1;var ee=Ft[he];if(ee!==null)for(Ft[he]=null,he=0;he<ee.length;he++){var ue=ee[he];ue!==null&&(ue.lane&=-536870913)}o&=~Me}d!==0&&Tu(e,d,0),E!==0&&v===0&&e.tag!==0&&(e.suspendedLanes|=E&~(tt&~n))}function Tu(e,n,o){e.pendingLanes|=n,e.suspendedLanes&=~n;var d=31-ki(n);e.entangledLanes|=n,e.entanglements[d]=e.entanglements[d]|1073741824|o&4194218}function Eu(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var d=31-ki(o),v=1<<d;v&n|e[d]&n&&(e[d]|=n),o&=~v}}function Au(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _l(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:Jx(e.type))}function Gc(e,n){var o=ge.p;try{return ge.p=e,n()}finally{ge.p=o}}var hn=Math.random().toString(36).slice(2),nr="__reactFiber$"+hn,Cr="__reactProps$"+hn,Sa="__reactContainer$"+hn,wa="__reactEvents$"+hn,Wl="__reactListeners$"+hn,Vl="__reactHandles$"+hn,Xl="__reactResources$"+hn,go="__reactMarker$"+hn;function sl(e){delete e[nr],delete e[Cr],delete e[wa],delete e[Wl],delete e[Vl]}function Uo(e){var n=e[nr];if(n)return n;for(var o=e.parentNode;o;){if(n=o[Sa]||o[nr]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Li(e);e!==null;){if(o=e[nr])return o;e=Li(e)}return n}e=o,o=e.parentNode}return null}function mo(e){if(e=e[nr]||e[Sa]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function yo(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(c(33))}function Zs(e){var n=e[Xl];return n||(n=e[Xl]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pi(e){e[go]=!0}var bo=new Set,Yl={};function Fo(e,n){Qs(e,n),Qs(e+"Capture",n)}function Qs(e,n){for(Yl[e]=n,e=0;e<n.length;e++)bo.add(n[e])}var ms=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Md=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Js={},ol={};function Ru(e){return bn.call(ol,e)?!0:bn.call(Js,e)?!1:Md.test(e)?ol[e]=!0:(Js[e]=!0,!1)}function ql(e,n,o){if(Ru(n))if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var d=n.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+o)}}function xo(e,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+o)}}function Lr(e,n,o,d){if(d===null)e.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}e.setAttributeNS(n,o,""+d)}}function Vn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ys(e){var n=_c(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),d=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var v=o.get,E=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return v.call(this)},set:function(tt){d=""+tt,E.call(this,tt)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return d},setValue:function(tt){d=""+tt},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Go(e){e._valueTracker||(e._valueTracker=ys(e))}function Ir(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),d="";return e&&(d=_c(e)?e.checked?"true":"false":e.value),e=d,e!==o?(n.setValue(e),!0):!1}function is(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ou=/[\n"\\]/g;function Wr(e){return e.replace(Ou,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Nn(e,n,o,d,v,E,tt,xt){e.name="",tt!=null&&typeof tt!="function"&&typeof tt!="symbol"&&typeof tt!="boolean"?e.type=tt:e.removeAttribute("type"),n!=null?tt==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Vn(n)):e.value!==""+Vn(n)&&(e.value=""+Vn(n)):tt!=="submit"&&tt!=="reset"||e.removeAttribute("value"),n!=null?Nr(e,tt,Vn(n)):o!=null?Nr(e,tt,Vn(o)):d!=null&&e.removeAttribute("value"),v==null&&E!=null&&(e.defaultChecked=!!E),v!=null&&(e.checked=v&&typeof v!="function"&&typeof v!="symbol"),xt!=null&&typeof xt!="function"&&typeof xt!="symbol"&&typeof xt!="boolean"?e.name=""+Vn(xt):e.removeAttribute("name")}function Ca(e,n,o,d,v,E,tt,xt){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(e.type=E),n!=null||o!=null){if(!(E!=="submit"&&E!=="reset"||n!=null))return;o=o!=null?""+Vn(o):"",n=n!=null?""+Vn(n):o,xt||n===e.value||(e.value=n),e.defaultValue=n}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,e.checked=xt?e.checked:!!d,e.defaultChecked=!!d,tt!=null&&typeof tt!="function"&&typeof tt!="symbol"&&typeof tt!="boolean"&&(e.name=tt)}function Nr(e,n,o){n==="number"&&is(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function ns(e,n,o,d){if(e=e.options,n){n={};for(var v=0;v<o.length;v++)n["$"+o[v]]=!0;for(o=0;o<e.length;o++)v=n.hasOwnProperty("$"+e[o].value),e[o].selected!==v&&(e[o].selected=v),v&&d&&(e[o].defaultSelected=!0)}else{for(o=""+Vn(o),n=null,v=0;v<e.length;v++){if(e[v].value===o){e[v].selected=!0,d&&(e[v].defaultSelected=!0);return}n!==null||e[v].disabled||(n=e[v])}n!==null&&(n.selected=!0)}}function Kl(e,n,o){if(n!=null&&(n=""+Vn(n),n!==e.value&&(e.value=n),o==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=o!=null?""+Vn(o):""}function vo(e,n,o,d){if(n==null){if(d!=null){if(o!=null)throw Error(c(92));if(ke(d)){if(1<d.length)throw Error(c(93));d=d[0]}o=d}o==null&&(o=""),n=o}o=Vn(n),e.defaultValue=o,d=e.textContent,d===o&&d!==""&&d!==null&&(e.value=d)}function _o(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var ka=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Zl(e,n,o){var d=n.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":d?e.setProperty(n,o):typeof o!="number"||o===0||ka.has(n)?n==="float"?e.cssFloat=o:e[n]=(""+o).trim():e[n]=o+"px"}function Ma(e,n,o){if(n!=null&&typeof n!="object")throw Error(c(62));if(e=e.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||n!=null&&n.hasOwnProperty(d)||(d.indexOf("--")===0?e.setProperty(d,""):d==="float"?e.cssFloat="":e[d]="");for(var v in n)d=n[v],n.hasOwnProperty(v)&&o[v]!==d&&Zl(e,v,d)}else for(var E in n)n.hasOwnProperty(E)&&Zl(e,E,n[E])}function rs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ta=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Vr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function to(e){return Vr.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ql=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bs=null,Xn=null;function Jl(e){var n=mo(e);if(n&&(e=n.stateNode)){var o=e[Cr]||null;t:switch(e=n.stateNode,n.type){case"input":if(Nn(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Wr(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var d=o[n];if(d!==e&&d.form===e.form){var v=d[Cr]||null;if(!v)throw Error(c(90));Nn(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(n=0;n<o.length;n++)d=o[n],d.form===e.form&&Ir(d)}break t;case"textarea":Kl(e,o.value,o.defaultValue);break t;case"select":n=o.value,n!=null&&ns(e,!!o.multiple,n,!1)}}}var So=!1;function Os(e,n,o){if(So)return e(n,o);So=!0;try{var d=e(n);return d}finally{if(So=!1,(bs!==null||Xn!==null)&&(zh(),bs&&(n=bs,e=Xn,Xn=bs=null,Jl(n),e)))for(n=0;n<e.length;n++)Jl(e[n])}}function Wo(e,n){var o=e.stateNode;if(o===null)return null;var d=o[Cr]||null;if(d===null)return null;o=d[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(e=e.type,d=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!d;break t;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(c(231,n,typeof o));return o}var Vo=!1;if(ms)try{var xs={};Object.defineProperty(xs,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",xs,xs),window.removeEventListener("test",xs,xs)}catch{Vo=!1}var wo=null,tc=null,Ea=null;function Aa(){if(Ea)return Ea;var e,n=tc,o=n.length,d,v="value"in wo?wo.value:wo.textContent,E=v.length;for(e=0;e<o&&n[e]===v[e];e++);var tt=o-e;for(d=1;d<=tt&&n[o-d]===v[E-d];d++);return Ea=v.slice(e,1<d?1-d:void 0)}function eo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function zr(){return!0}function ec(){return!1}function Xr(e){function n(o,d,v,E,tt){this._reactName=o,this._targetInst=v,this.type=d,this.nativeEvent=E,this.target=tt,this.currentTarget=null;for(var xt in e)e.hasOwnProperty(xt)&&(o=e[xt],this[xt]=o?o(E):E[xt]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?zr:ec,this.isPropagationStopped=ec,this}return ot(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=zr)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=zr)},persist:function(){},isPersistent:zr}),n}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ic=Xr(Xo),Ra=ot({},Xo,{view:0,detail:0}),Fn=Xr(Ra),ss,nc,Oa,Pa=ot({},Ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ur,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Oa&&(Oa&&e.type==="mousemove"?(ss=e.screenX-Oa.screenX,nc=e.screenY-Oa.screenY):nc=ss=0,Oa=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),Ba=Xr(Pa),rc=ot({},Pa,{dataTransfer:0}),Yo=Xr(rc),Pu=ot({},Ra,{relatedTarget:0}),kr=Xr(Pu),al=ot({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),Td=Xr(al),Ps=ot({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bu=Xr(Ps),Da=ot({},Xo,{data:0}),vs=Xr(Da),ll={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wc={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Du={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cl(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Du[e])?!!n[e]:!1}function ur(){return cl}var ul=ot({},Ra,{key:function(e){if(e.key){var n=ll[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wc[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ur,charCode:function(e){return e.type==="keypress"?eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mr=Xr(ul),os=ot({},Pa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vc=Xr(os),Ed=ot({},Ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur}),qo=Xr(Ed),sc=ot({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bs=Xr(sc),Tr=ot({},Pa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ds=Xr(Tr),Yr=ot({},Xo,{newState:0,oldState:0}),Lu=Xr(Yr),qr=[9,13,27,32],Xc=ms&&"CompositionEvent"in window,Ko=null;ms&&"documentMode"in document&&(Ko=document.documentMode);var vn=ms&&"TextEvent"in window&&!Ko,Zo=ms&&(!Xc||Ko&&8<Ko&&11>=Ko),Co=" ",Yn=!1;function Ls(e,n){switch(e){case"keyup":return qr.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Er(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Is=!1;function io(e,n){switch(e){case"compositionend":return Er(n);case"keypress":return n.which!==32?null:(Yn=!0,Co);case"textInput":return e=n.data,e===Co&&Yn?null:e;default:return null}}function Ns(e,n){if(Is)return e==="compositionend"||!Xc&&Ls(e,n)?(e=Aa(),Ea=tc=wo=null,Is=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Zo&&n.locale!=="ko"?null:n.data;default:return null}}var oc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!oc[e.type]:n==="textarea"}function ko(e,n,o,d){bs?Xn?Xn.push(d):Xn=[d]:bs=d,n=P(n,"onChange"),0<n.length&&(o=new ic("onChange","change",null,o,d),e.push({event:o,listeners:n}))}var Rn=null,as=null;function Iu(e){s(e,0)}function no(e){var n=yo(e);if(Ir(n))return e}function Mo(e,n){if(e==="change")return n}var ac=!1;if(ms){var dl;if(ms){var Yc="oninput"in document;if(!Yc){var hl=document.createElement("div");hl.setAttribute("oninput","return;"),Yc=typeof hl.oninput=="function"}dl=Yc}else dl=!1;ac=dl&&(!document.documentMode||9<document.documentMode)}function qc(){Rn&&(Rn.detachEvent("onpropertychange",Nu),as=Rn=null)}function Nu(e){if(e.propertyName==="value"&&no(as)){var n=[];ko(n,as,e,Rs(e)),Os(Iu,n)}}function Qo(e,n,o){e==="focusin"?(qc(),Rn=n,as=o,Rn.attachEvent("onpropertychange",Nu)):e==="focusout"&&qc()}function Ad(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return no(as)}function zu(e,n){if(e==="click")return no(n)}function Rd(e,n){if(e==="input"||e==="change")return no(n)}function pl(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Kn=typeof Object.is=="function"?Object.is:pl;function La(e,n){if(Kn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),d=Object.keys(n);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var v=o[d];if(!bn.call(n,v)||!Kn(e[v],n[v]))return!1}return!0}function ju(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ia(e,n){var o=ju(e);e=0;for(var d;o;){if(o.nodeType===3){if(d=e+o.textContent.length,e<=n&&d>=n)return{node:o,offset:n-e};e=d}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode}o=void 0}o=ju(o)}}function $u(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?$u(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Na(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=is(e.document);n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=is(e.document)}return n}function zs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Hu(e,n){var o=Na(n);n=e.focusedElem;var d=e.selectionRange;if(o!==n&&n&&n.ownerDocument&&$u(n.ownerDocument.documentElement,n)){if(d!==null&&zs(n)){if(e=d.start,o=d.end,o===void 0&&(o=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(o,n.value.length);else if(o=(e=n.ownerDocument||document)&&e.defaultView||window,o.getSelection){o=o.getSelection();var v=n.textContent.length,E=Math.min(d.start,v);d=d.end===void 0?E:Math.min(d.end,v),!o.extend&&E>d&&(v=d,d=E,E=v),v=Ia(n,E);var tt=Ia(n,d);v&&tt&&(o.rangeCount!==1||o.anchorNode!==v.node||o.anchorOffset!==v.offset||o.focusNode!==tt.node||o.focusOffset!==tt.offset)&&(e=e.createRange(),e.setStart(v.node,v.offset),o.removeAllRanges(),E>d?(o.addRange(e),o.extend(tt.node,tt.offset)):(e.setEnd(tt.node,tt.offset),o.addRange(e)))}}for(e=[],o=n;o=o.parentNode;)o.nodeType===1&&e.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)o=e[n],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Uu=ms&&"documentMode"in document&&11>=document.documentMode,Jo=null,ro=null,To=null,ta=!1;function fl(e,n,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ta||Jo==null||Jo!==is(d)||(d=Jo,"selectionStart"in d&&zs(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),To&&La(To,d)||(To=d,d=P(ro,"onSelect"),0<d.length&&(n=new ic("onSelect","select",null,n,o),e.push({event:n,listeners:d}),n.target=Jo)))}function Ss(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var js={animationend:Ss("Animation","AnimationEnd"),animationiteration:Ss("Animation","AnimationIteration"),animationstart:Ss("Animation","AnimationStart"),transitionrun:Ss("Transition","TransitionRun"),transitionstart:Ss("Transition","TransitionStart"),transitioncancel:Ss("Transition","TransitionCancel"),transitionend:Ss("Transition","TransitionEnd")},ea={},gl={};ms&&(gl=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function so(e){if(ea[e])return ea[e];if(!js[e])return e;var n=js[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in gl)return ea[e]=n[o];return e}var ia=so("animationend"),na=so("animationiteration"),ra=so("animationstart"),Od=so("transitionrun"),Pd=so("transitionstart"),ls=so("transitioncancel"),Kr=so("transitionend"),za=new Map,ws="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function dr(e,n){za.set(e,n),Fo(n,[e])}var jr=[],sa=0,Kc=0;function oo(){for(var e=sa,n=Kc=sa=0;n<e;){var o=jr[n];jr[n++]=null;var d=jr[n];jr[n++]=null;var v=jr[n];jr[n++]=null;var E=jr[n];if(jr[n++]=null,d!==null&&v!==null){var tt=d.pending;tt===null?v.next=v:(v.next=tt.next,tt.next=v),d.pending=v}E!==0&&Ki(o,v,E)}}function lc(e,n,o,d){jr[sa++]=e,jr[sa++]=n,jr[sa++]=o,jr[sa++]=d,Kc|=d,e.lanes|=d,e=e.alternate,e!==null&&(e.lanes|=d)}function ml(e,n,o,d){return lc(e,n,o,d),cc(e)}function Sn(e,n){return lc(e,null,null,n),cc(e)}function Ki(e,n,o){e.lanes|=o;var d=e.alternate;d!==null&&(d.lanes|=o);for(var v=!1,E=e.return;E!==null;)E.childLanes|=o,d=E.alternate,d!==null&&(d.childLanes|=o),E.tag===22&&(e=E.stateNode,e===null||e._visibility&1||(v=!0)),e=E,E=E.return;v&&n!==null&&e.tag===3&&(E=e.stateNode,v=31-ki(o),E=E.hiddenUpdates,e=E[v],e===null?E[v]=[n]:e.push(n),n.lane=o|536870912)}function cc(e){if(50<Vd)throw Vd=0,Nh=null,Error(c(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var oa={},$s=new WeakMap;function Ar(e,n){if(typeof e=="object"&&e!==null){var o=$s.get(e);return o!==void 0?o:(n={value:e,source:n,stack:ne(n)},$s.set(e,n),n)}return{value:e,source:n,stack:ne(n)}}var Gi=[],Eo=0,hr=null,cs=0,He=[],rr=0,pn=null,zn=1,$r="";function ui(e,n){Gi[Eo++]=cs,Gi[Eo++]=hr,hr=e,cs=n}function Ao(e,n,o){He[rr++]=zn,He[rr++]=$r,He[rr++]=pn,pn=e;var d=zn;e=$r;var v=32-ki(d)-1;d&=~(1<<v),o+=1;var E=32-ki(n)+v;if(30<E){var tt=v-v%5;E=(d&(1<<tt)-1).toString(32),d>>=tt,v-=tt,zn=1<<32-ki(n)+v|o<<v|d,$r=E+e}else zn=1<<E|o<<v|d,$r=e}function Rr(e){e.return!==null&&(ui(e,1),Ao(e,1,0))}function aa(e){for(;e===hr;)hr=Gi[--Eo],Gi[Eo]=null,cs=Gi[--Eo],Gi[Eo]=null;for(;e===pn;)pn=He[--rr],He[rr]=null,$r=He[--rr],He[rr]=null,zn=He[--rr],He[rr]=null}var Zn=null,Qn=null,Oi=!1,Zr=null,Hs=!1,uc=Error(c(519));function Us(e){var n=Error(c(418,""));throw xl(Ar(n,e)),uc}function Fs(e){var n=e.stateNode,o=e.type,d=e.memoizedProps;switch(n[nr]=e,n[Cr]=d,o){case"dialog":l("cancel",n),l("close",n);break;case"iframe":case"object":case"embed":l("load",n);break;case"video":case"audio":for(o=0;o<w.length;o++)l(w[o],n);break;case"source":l("error",n);break;case"img":case"image":case"link":l("error",n),l("load",n);break;case"details":l("toggle",n);break;case"input":l("invalid",n),Ca(n,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Go(n);break;case"select":l("invalid",n);break;case"textarea":l("invalid",n),vo(n,d.value,d.defaultValue,d.children),Go(n)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||d.suppressHydrationWarning===!0||rt(n.textContent,o)?(d.popover!=null&&(l("beforetoggle",n),l("toggle",n)),d.onScroll!=null&&l("scroll",n),d.onScrollEnd!=null&&l("scrollend",n),d.onClick!=null&&(n.onclick=Q),n=!0):n=!1,n||Us(e)}function Zc(e){for(Zn=e.return;Zn;)switch(Zn.tag){case 3:case 27:Hs=!0;return;case 5:case 13:Hs=!1;return;default:Zn=Zn.return}}function yl(e){if(e!==Zn)return!1;if(!Oi)return Zc(e),Oi=!0,!1;var n=!1,o;if((o=e.tag!==3&&e.tag!==27)&&((o=e.tag===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||Ce(e.type,e.memoizedProps)),o=!o),o&&(n=!0),n&&Qn&&Us(e),Zc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));t:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(o=e.data,o==="/$"){if(n===0){Qn=Ui(e.nextSibling);break t}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++;e=e.nextSibling}Qn=null}}else Qn=Zn?Ui(e.stateNode.nextSibling):null;return!0}function bl(){Qn=Zn=null,Oi=!1}function xl(e){Zr===null?Zr=[e]:Zr.push(e)}var ja=Error(c(460)),$a=Error(c(474)),Ro={then:function(){}};function vl(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Sl(){}function wl(e,n,o){switch(o=e[o],o===void 0?e.push(n):o!==n&&(n.then(Sl,Sl),n=o),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e===ja?Error(c(483)):e;default:if(typeof n.status=="string")n.then(Sl,Sl);else{if(e=nn,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=n,e.status="pending",e.then(function(d){if(n.status==="pending"){var v=n;v.status="fulfilled",v.value=d}},function(d){if(n.status==="pending"){var v=n;v.status="rejected",v.reason=d}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e===ja?Error(c(483)):e}throw Oo=n,ja}}var Oo=null;function us(){if(Oo===null)throw Error(c(459));var e=Oo;return Oo=null,e}var Ha=null,Cl=0;function kl(e){var n=Cl;return Cl+=1,Ha===null&&(Ha=[]),wl(Ha,e,n)}function Ua(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function la(e,n){throw n.$$typeof===m?Error(c(525)):(e=Object.prototype.toString.call(n),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Qc(e){var n=e._init;return n(e._payload)}function ca(e){function n(Yt,Ht){if(e){var Zt=Yt.deletions;Zt===null?(Yt.deletions=[Ht],Yt.flags|=16):Zt.push(Ht)}}function o(Yt,Ht){if(!e)return null;for(;Ht!==null;)n(Yt,Ht),Ht=Ht.sibling;return null}function d(Yt){for(var Ht=new Map;Yt!==null;)Yt.key!==null?Ht.set(Yt.key,Yt):Ht.set(Yt.index,Yt),Yt=Yt.sibling;return Ht}function v(Yt,Ht){return Yt=Dl(Yt,Ht),Yt.index=0,Yt.sibling=null,Yt}function E(Yt,Ht,Zt){return Yt.index=Zt,e?(Zt=Yt.alternate,Zt!==null?(Zt=Zt.index,Zt<Ht?(Yt.flags|=33554434,Ht):Zt):(Yt.flags|=33554434,Ht)):(Yt.flags|=1048576,Ht)}function tt(Yt){return e&&Yt.alternate===null&&(Yt.flags|=33554434),Yt}function xt(Yt,Ht,Zt,ve){return Ht===null||Ht.tag!==6?(Ht=Fd(Zt,Yt.mode,ve),Ht.return=Yt,Ht):(Ht=v(Ht,Zt),Ht.return=Yt,Ht)}function Ot(Yt,Ht,Zt,ve){var qe=Zt.type;return qe===O?he(Yt,Ht,Zt.props.children,ve,Zt.key):Ht!==null&&(Ht.elementType===qe||typeof qe=="object"&&qe!==null&&qe.$$typeof===st&&Qc(qe)===Ht.type)?(Ht=v(Ht,Zt.props),Ua(Ht,Zt),Ht.return=Yt,Ht):(Ht=Hd(Zt.type,Zt.key,Zt.props,null,Yt.mode,ve),Ua(Ht,Zt),Ht.return=Yt,Ht)}function Ft(Yt,Ht,Zt,ve){return Ht===null||Ht.tag!==4||Ht.stateNode.containerInfo!==Zt.containerInfo||Ht.stateNode.implementation!==Zt.implementation?(Ht=Cc(Zt,Yt.mode,ve),Ht.return=Yt,Ht):(Ht=v(Ht,Zt.children||[]),Ht.return=Yt,Ht)}function he(Yt,Ht,Zt,ve,qe){return Ht===null||Ht.tag!==7?(Ht=wc(Zt,Yt.mode,ve,qe),Ht.return=Yt,Ht):(Ht=v(Ht,Zt),Ht.return=Yt,Ht)}function Me(Yt,Ht,Zt){if(typeof Ht=="string"&&Ht!==""||typeof Ht=="number"||typeof Ht=="bigint")return Ht=Fd(""+Ht,Yt.mode,Zt),Ht.return=Yt,Ht;if(typeof Ht=="object"&&Ht!==null){switch(Ht.$$typeof){case S:return Zt=Hd(Ht.type,Ht.key,Ht.props,null,Yt.mode,Zt),Ua(Zt,Ht),Zt.return=Yt,Zt;case k:return Ht=Cc(Ht,Yt.mode,Zt),Ht.return=Yt,Ht;case st:var ve=Ht._init;return Ht=ve(Ht._payload),Me(Yt,Ht,Zt)}if(ke(Ht)||wt(Ht))return Ht=wc(Ht,Yt.mode,Zt,null),Ht.return=Yt,Ht;if(typeof Ht.then=="function")return Me(Yt,kl(Ht),Zt);if(Ht.$$typeof===F)return Me(Yt,wh(Yt,Ht),Zt);la(Yt,Ht)}return null}function ee(Yt,Ht,Zt,ve){var qe=Ht!==null?Ht.key:null;if(typeof Zt=="string"&&Zt!==""||typeof Zt=="number"||typeof Zt=="bigint")return qe!==null?null:xt(Yt,Ht,""+Zt,ve);if(typeof Zt=="object"&&Zt!==null){switch(Zt.$$typeof){case S:return Zt.key===qe?Ot(Yt,Ht,Zt,ve):null;case k:return Zt.key===qe?Ft(Yt,Ht,Zt,ve):null;case st:return qe=Zt._init,Zt=qe(Zt._payload),ee(Yt,Ht,Zt,ve)}if(ke(Zt)||wt(Zt))return qe!==null?null:he(Yt,Ht,Zt,ve,null);if(typeof Zt.then=="function")return ee(Yt,Ht,kl(Zt),ve);if(Zt.$$typeof===F)return ee(Yt,Ht,wh(Yt,Zt),ve);la(Yt,Zt)}return null}function ue(Yt,Ht,Zt,ve,qe){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return Yt=Yt.get(Zt)||null,xt(Ht,Yt,""+ve,qe);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case S:return Yt=Yt.get(ve.key===null?Zt:ve.key)||null,Ot(Ht,Yt,ve,qe);case k:return Yt=Yt.get(ve.key===null?Zt:ve.key)||null,Ft(Ht,Yt,ve,qe);case st:var Wi=ve._init;return ve=Wi(ve._payload),ue(Yt,Ht,Zt,ve,qe)}if(ke(ve)||wt(ve))return Yt=Yt.get(Zt)||null,he(Ht,Yt,ve,qe,null);if(typeof ve.then=="function")return ue(Yt,Ht,Zt,kl(ve),qe);if(ve.$$typeof===F)return ue(Yt,Ht,Zt,wh(Ht,ve),qe);la(Ht,ve)}return null}function ii(Yt,Ht,Zt,ve){for(var qe=null,Wi=null,li=Ht,yi=Ht=0,gs=null;li!==null&&yi<Zt.length;yi++){li.index>yi?(gs=li,li=null):gs=li.sibling;var rn=ee(Yt,li,Zt[yi],ve);if(rn===null){li===null&&(li=gs);break}e&&li&&rn.alternate===null&&n(Yt,li),Ht=E(rn,Ht,yi),Wi===null?qe=rn:Wi.sibling=rn,Wi=rn,li=gs}if(yi===Zt.length)return o(Yt,li),Oi&&ui(Yt,yi),qe;if(li===null){for(;yi<Zt.length;yi++)li=Me(Yt,Zt[yi],ve),li!==null&&(Ht=E(li,Ht,yi),Wi===null?qe=li:Wi.sibling=li,Wi=li);return Oi&&ui(Yt,yi),qe}for(li=d(li);yi<Zt.length;yi++)gs=ue(li,Yt,yi,Zt[yi],ve),gs!==null&&(e&&gs.alternate!==null&&li.delete(gs.key===null?yi:gs.key),Ht=E(gs,Ht,yi),Wi===null?qe=gs:Wi.sibling=gs,Wi=gs);return e&&li.forEach(function(dd){return n(Yt,dd)}),Oi&&ui(Yt,yi),qe}function Pi(Yt,Ht,Zt,ve){if(Zt==null)throw Error(c(151));for(var qe=null,Wi=null,li=Ht,yi=Ht=0,gs=null,rn=Zt.next();li!==null&&!rn.done;yi++,rn=Zt.next()){li.index>yi?(gs=li,li=null):gs=li.sibling;var dd=ee(Yt,li,rn.value,ve);if(dd===null){li===null&&(li=gs);break}e&&li&&dd.alternate===null&&n(Yt,li),Ht=E(dd,Ht,yi),Wi===null?qe=dd:Wi.sibling=dd,Wi=dd,li=gs}if(rn.done)return o(Yt,li),Oi&&ui(Yt,yi),qe;if(li===null){for(;!rn.done;yi++,rn=Zt.next())rn=Me(Yt,rn.value,ve),rn!==null&&(Ht=E(rn,Ht,yi),Wi===null?qe=rn:Wi.sibling=rn,Wi=rn);return Oi&&ui(Yt,yi),qe}for(li=d(li);!rn.done;yi++,rn=Zt.next())rn=ue(li,Yt,yi,rn.value,ve),rn!==null&&(e&&rn.alternate!==null&&li.delete(rn.key===null?yi:rn.key),Ht=E(rn,Ht,yi),Wi===null?qe=rn:Wi.sibling=rn,Wi=rn);return e&&li.forEach(function(Zw){return n(Yt,Zw)}),Oi&&ui(Yt,yi),qe}function yr(Yt,Ht,Zt,ve){if(typeof Zt=="object"&&Zt!==null&&Zt.type===O&&Zt.key===null&&(Zt=Zt.props.children),typeof Zt=="object"&&Zt!==null){switch(Zt.$$typeof){case S:t:{for(var qe=Zt.key;Ht!==null;){if(Ht.key===qe){if(qe=Zt.type,qe===O){if(Ht.tag===7){o(Yt,Ht.sibling),ve=v(Ht,Zt.props.children),ve.return=Yt,Yt=ve;break t}}else if(Ht.elementType===qe||typeof qe=="object"&&qe!==null&&qe.$$typeof===st&&Qc(qe)===Ht.type){o(Yt,Ht.sibling),ve=v(Ht,Zt.props),Ua(ve,Zt),ve.return=Yt,Yt=ve;break t}o(Yt,Ht);break}else n(Yt,Ht);Ht=Ht.sibling}Zt.type===O?(ve=wc(Zt.props.children,Yt.mode,ve,Zt.key),ve.return=Yt,Yt=ve):(ve=Hd(Zt.type,Zt.key,Zt.props,null,Yt.mode,ve),Ua(ve,Zt),ve.return=Yt,Yt=ve)}return tt(Yt);case k:t:{for(qe=Zt.key;Ht!==null;){if(Ht.key===qe)if(Ht.tag===4&&Ht.stateNode.containerInfo===Zt.containerInfo&&Ht.stateNode.implementation===Zt.implementation){o(Yt,Ht.sibling),ve=v(Ht,Zt.children||[]),ve.return=Yt,Yt=ve;break t}else{o(Yt,Ht);break}else n(Yt,Ht);Ht=Ht.sibling}ve=Cc(Zt,Yt.mode,ve),ve.return=Yt,Yt=ve}return tt(Yt);case st:return qe=Zt._init,Zt=qe(Zt._payload),yr(Yt,Ht,Zt,ve)}if(ke(Zt))return ii(Yt,Ht,Zt,ve);if(wt(Zt)){if(qe=wt(Zt),typeof qe!="function")throw Error(c(150));return Zt=qe.call(Zt),Pi(Yt,Ht,Zt,ve)}if(typeof Zt.then=="function")return yr(Yt,Ht,kl(Zt),ve);if(Zt.$$typeof===F)return yr(Yt,Ht,wh(Yt,Zt),ve);la(Yt,Zt)}return typeof Zt=="string"&&Zt!==""||typeof Zt=="number"||typeof Zt=="bigint"?(Zt=""+Zt,Ht!==null&&Ht.tag===6?(o(Yt,Ht.sibling),ve=v(Ht,Zt),ve.return=Yt,Yt=ve):(o(Yt,Ht),ve=Fd(Zt,Yt.mode,ve),ve.return=Yt,Yt=ve),tt(Yt)):o(Yt,Ht)}return function(Yt,Ht,Zt,ve){try{Cl=0;var qe=yr(Yt,Ht,Zt,ve);return Ha=null,qe}catch(li){if(li===ja)throw li;var Wi=Ms(29,li,null,Yt.mode);return Wi.lanes=ve,Wi.return=Yt,Wi}finally{}}}var Po=ca(!0),Bo=ca(!1),Fa=Ae(null),ds=Ae(0);function Ml(e,n){e=Il,Be(ds,e),Be(Fa,n),Il=e|n.baseLanes}function Cs(){Be(ds,Il),Be(Fa,Fa.current)}function dc(){Il=ds.current,Ke(Fa),Ke(ds)}var Qr=Ae(null),sr=null;function ao(e){var n=e.alternate;Be(On,On.current&1),Be(Qr,e),sr===null&&(n===null||Fa.current!==null||n.memoizedState!==null)&&(sr=e)}function Jc(e){if(e.tag===22){if(Be(On,On.current),Be(Qr,e),sr===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(sr=e)}}else ua()}function ua(){Be(On,On.current),Be(Qr,Qr.current)}function pr(e){Ke(Qr),sr===e&&(sr=null),Ke(On)}var On=Ae(0);function Gs(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var hc=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(o,d){e.push(d)}};this.abort=function(){n.aborted=!0,e.forEach(function(o){return o()})}},tu=t.unstable_scheduleCallback,Fu=t.unstable_NormalPriority,an={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jn(){return{controller:new hc,data:new Map,refCount:0}}function da(e){e.refCount--,e.refCount===0&&tu(Fu,function(){e.controller.abort()})}var B=null,y=0,T=0,D=null;function G(e,n){if(B===null){var o=B=[];y=0,T=of(),D={status:"pending",value:void 0,then:function(d){o.push(d)}}}return y++,n.then(nt,nt),n}function nt(){if(--y===0&&B!==null){D!==null&&(D.status="fulfilled");var e=B;B=null,T=0,D=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function K(e,n){var o=[],d={status:"pending",value:null,reason:null,then:function(v){o.push(v)}};return e.then(function(){d.status="fulfilled",d.value=n;for(var v=0;v<o.length;v++)(0,o[v])(n)},function(v){for(d.status="rejected",d.reason=v,v=0;v<o.length;v++)(0,o[v])(void 0)}),d}var gt=Et.S;Et.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&G(e,n),gt!==null&>(e,n)};var Mt=Ae(null);function At(){var e=Mt.current;return e!==null?e:nn.pooledCache}function Bt(e,n){n===null?Be(Mt,Mt.current):Be(Mt,n.pool)}function Jt(){var e=At();return e===null?null:{parent:an._currentValue,pool:e}}var Wt=0,Xt=null,Vt=null,de=null,Fe=!1,ni=!1,ri=!1,xi=0,Ge=0,Ve=null,vi=0;function ze(){throw Error(c(321))}function wn(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Kn(e[o],n[o]))return!1;return!0}function q(e,n,o,d,v,E){return Wt=E,Xt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Et.H=e===null||e.memoizedState===null?nu:fc,ri=!1,E=o(d,v),ri=!1,ni&&(E=A(n,o,d,v)),b(e),E}function b(e){Et.H=pa;var n=Vt!==null&&Vt.next!==null;if(Wt=0,de=Vt=Xt=null,Fe=!1,Ge=0,Ve=null,n)throw Error(c(300));e===null||Hr||(e=e.dependencies,e!==null&&Id(e)&&(Hr=!0))}function A(e,n,o,d){Xt=e;var v=0;do{if(ni&&(Ve=null),Ge=0,ni=!1,25<=v)throw Error(c(301));if(v+=1,de=Vt=null,e.updateQueue!=null){var E=e.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}Et.H=Ga,E=n(o,d)}while(ni);return E}function L(){var e=Et.H,n=e.useState()[0];return n=typeof n.then=="function"?yt(n):n,e=e.useState()[0],(Vt!==null?Vt.memoizedState:null)!==e&&(Xt.flags|=1024),n}function H(){var e=xi!==0;return xi=0,e}function Z(e,n,o){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o}function X(e){if(Fe){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Fe=!1}Wt=0,de=Vt=Xt=null,ni=!1,Ge=xi=0,Ve=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?Xt.memoizedState=de=e:de=de.next=e,de}function bt(){if(Vt===null){var e=Xt.alternate;e=e!==null?e.memoizedState:null}else e=Vt.next;var n=de===null?Xt.memoizedState:de.next;if(n!==null)de=n,Vt=e;else{if(e===null)throw Xt.alternate===null?Error(c(467)):Error(c(310));Vt=e,e={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},de===null?Xt.memoizedState=de=e:de=de.next=e}return de}var Tt;Tt=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function yt(e){var n=Ge;return Ge+=1,Ve===null&&(Ve=[]),e=wl(Ve,e,n),n=Xt,(de===null?n.memoizedState:de.next)===null&&(n=n.alternate,Et.H=n===null||n.memoizedState===null?nu:fc),e}function Ct(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yt(e);if(e.$$typeof===F)return fs(e)}throw Error(c(438,String(e)))}function pt(e){var n=null,o=Xt.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var d=Xt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(n={data:d.data.map(function(v){return v.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),o===null&&(o=Tt(),Xt.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0)for(o=n.data[n.index]=Array(e),d=0;d<e;d++)o[d]=ht;return n.index++,o}function vt(e,n){return typeof n=="function"?n(e):n}function mt(e){var n=bt();return kt(n,Vt,e)}function kt(e,n,o){var d=e.queue;if(d===null)throw Error(c(311));d.lastRenderedReducer=o;var v=e.baseQueue,E=d.pending;if(E!==null){if(v!==null){var tt=v.next;v.next=E.next,E.next=tt}n.baseQueue=v=E,d.pending=null}if(E=e.baseState,v===null)e.memoizedState=E;else{n=v.next;var xt=tt=null,Ot=null,Ft=n,he=!1;do{var Me=Ft.lane&-536870913;if(Me!==Ft.lane?($i&Me)===Me:(Wt&Me)===Me){var ee=Ft.revertLane;if(ee===0)Ot!==null&&(Ot=Ot.next={lane:0,revertLane:0,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null}),Me===T&&(he=!0);else if((Wt&ee)===ee){Ft=Ft.next,ee===T&&(he=!0);continue}else Me={lane:0,revertLane:Ft.revertLane,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null},Ot===null?(xt=Ot=Me,tt=E):Ot=Ot.next=Me,Xt.lanes|=ee,Mc|=ee;Me=Ft.action,ri&&o(E,Me),E=Ft.hasEagerState?Ft.eagerState:o(E,Me)}else ee={lane:Me,revertLane:Ft.revertLane,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null},Ot===null?(xt=Ot=ee,tt=E):Ot=Ot.next=ee,Xt.lanes|=Me,Mc|=Me;Ft=Ft.next}while(Ft!==null&&Ft!==n);if(Ot===null?tt=E:Ot.next=xt,!Kn(E,e.memoizedState)&&(Hr=!0,he&&(o=D,o!==null)))throw o;e.memoizedState=E,e.baseState=tt,e.baseQueue=Ot,d.lastRenderedState=E}return v===null&&(d.lanes=0),[e.memoizedState,d.dispatch]}function Pt(e){var n=bt(),o=n.queue;if(o===null)throw Error(c(311));o.lastRenderedReducer=e;var d=o.dispatch,v=o.pending,E=n.memoizedState;if(v!==null){o.pending=null;var tt=v=v.next;do E=e(E,tt.action),tt=tt.next;while(tt!==v);Kn(E,n.memoizedState)||(Hr=!0),n.memoizedState=E,n.baseQueue===null&&(n.baseState=E),o.lastRenderedState=E}return[E,d]}function Gt(e,n,o){var d=Xt,v=bt(),E=Oi;if(E){if(o===void 0)throw Error(c(407));o=o()}else o=n();var tt=!Kn((Vt||v).memoizedState,o);if(tt&&(v.memoizedState=o,Hr=!0),v=v.queue,Dd(Qt.bind(null,d,v,e),[e]),v.getSnapshot!==n||tt||de!==null&&de.memoizedState.tag&1){if(d.flags|=2048,en(9,fe.bind(null,d,v,o,n),{destroy:void 0},null),nn===null)throw Error(c(349));E||(Wt&60)!==0||oe(d,n,o)}return o}function oe(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Xt.updateQueue,n===null?(n=Tt(),Xt.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function fe(e,n,o,d){n.value=o,n.getSnapshot=d,ae(n)&&Oe(e)}function Qt(e,n,o){return o(function(){ae(n)&&Oe(e)})}function ae(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Kn(e,o)}catch{return!0}}function Oe(e){var n=Sn(e,2);n!==null&&Ts(n,e,2)}function ce(e){var n=ut();if(typeof e=="function"){var o=e;if(e=o(),ri){ai(!0);try{o()}finally{ai(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vt,lastRenderedState:e},n}function ye(e,n,o,d){return e.baseState=o,kt(e,Vt,typeof d=="function"?d:vt)}function Te(e,n,o,d,v){if(uh(e))throw Error(c(485));if(e=n.action,e!==null){var E={payload:v,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(tt){E.listeners.push(tt)}};Et.T!==null?o(!0):E.isTransition=!1,d(E),o=n.pending,o===null?(E.next=n.pending=E,De(n,E)):(E.next=o.next,n.pending=o.next=E)}}function De(e,n){var o=n.action,d=n.payload,v=e.state;if(n.isTransition){var E=Et.T,tt={};Et.T=tt;try{var xt=o(v,d),Ot=Et.S;Ot!==null&&Ot(tt,xt),Le(e,n,xt)}catch(Ft){We(e,n,Ft)}finally{Et.T=E}}else try{E=o(v,d),Le(e,n,E)}catch(Ft){We(e,n,Ft)}}function Le(e,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){Ee(e,n,d)},function(d){return We(e,n,d)}):Ee(e,n,o)}function Ee(e,n,o){n.status="fulfilled",n.value=o,Ze(n),e.state=o,n=e.pending,n!==null&&(o=n.next,o===n?e.pending=null:(o=o.next,n.next=o,De(e,o)))}function We(e,n,o){var d=e.pending;if(e.pending=null,d!==null){d=d.next;do n.status="rejected",n.reason=o,Ze(n),n=n.next;while(n!==d)}e.action=null}function Ze(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function ji(e,n){return n}function Ji(e,n){if(Oi){var o=nn.formState;if(o!==null){t:{var d=Xt;if(Oi){if(Qn){e:{for(var v=Qn,E=Hs;v.nodeType!==8;){if(!E){v=null;break e}if(v=Ui(v.nextSibling),v===null){v=null;break e}}E=v.data,v=E==="F!"||E==="F"?v:null}if(v){Qn=Ui(v.nextSibling),d=v.data==="F!";break t}}Us(d)}d=!1}d&&(n=o[0])}}return o=ut(),o.memoizedState=o.baseState=n,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:n},o.queue=d,o=iu.bind(null,Xt,d),d.dispatch=o,d=ce(!1),E=wp.bind(null,Xt,!1,d.queue),d=ut(),v={state:n,dispatch:null,action:e,pending:null},d.queue=v,o=Te.bind(null,Xt,v,E,o),v.dispatch=o,d.memoizedState=e,[n,o,!1]}function _i(e){var n=bt();return Cn(n,Vt,e)}function Cn(e,n,o){n=kt(e,n,ji)[0],e=mt(vt)[0],n=typeof n=="object"&&n!==null&&typeof n.then=="function"?yt(n):n;var d=bt(),v=d.queue,E=v.dispatch;return o!==d.memoizedState&&(Xt.flags|=2048,en(9,or.bind(null,v,o),{destroy:void 0},null)),[n,E,e]}function or(e,n){e.action=n}function ln(e){var n=bt(),o=Vt;if(o!==null)return Cn(n,o,e);bt(),n=n.memoizedState,o=bt();var d=o.queue.dispatch;return o.memoizedState=e,[n,d,!1]}function en(e,n,o,d){return e={tag:e,create:n,inst:o,deps:d,next:null},n=Xt.updateQueue,n===null&&(n=Tt(),Xt.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=e.next=e:(d=o.next,o.next=e,e.next=d,n.lastEffect=e),e}function hs(){return bt().memoizedState}function ha(e,n,o,d){var v=ut();Xt.flags|=e,v.memoizedState=en(1|n,o,{destroy:void 0},d===void 0?null:d)}function Gn(e,n,o,d){var v=bt();d=d===void 0?null:d;var E=v.memoizedState.inst;Vt!==null&&d!==null&&wn(d,Vt.memoizedState.deps)?v.memoizedState=en(n,o,E,d):(Xt.flags|=e,v.memoizedState=en(1|n,o,E,d))}function Bd(e,n){ha(8390656,8,e,n)}function Dd(e,n){Gn(2048,8,e,n)}function fr(e,n){return Gn(4,2,e,n)}function cg(e,n){return Gn(4,4,e,n)}function ug(e,n){if(typeof n=="function"){e=e();var o=n(e);return function(){typeof o=="function"?o():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function vp(e,n,o){o=o!=null?o.concat([e]):null,Gn(4,4,ug.bind(null,n,e),o)}function Gu(){}function eu(e,n){var o=bt();n=n===void 0?null:n;var d=o.memoizedState;return n!==null&&wn(n,d[1])?d[0]:(o.memoizedState=[e,n],e)}function dg(e,n){var o=bt();n=n===void 0?null:n;var d=o.memoizedState;if(n!==null&&wn(n,d[1]))return d[0];if(d=e(),ri){ai(!0);try{e()}finally{ai(!1)}}return o.memoizedState=[d,n],d}function mn(e,n,o){return o===void 0||(Wt&1073741824)!==0?e.memoizedState=n:(e.memoizedState=o,e=Ig(),Xt.lanes|=e,Mc|=e,o)}function hg(e,n,o,d){return Kn(o,n)?o:Fa.current!==null?(e=mn(e,o,d),Kn(e,n)||(Hr=!0),e):(Wt&42)===0?(Hr=!0,e.memoizedState=o):(e=Ig(),Xt.lanes|=e,Mc|=e,n)}function Sp(e,n,o,d,v){var E=ge.p;ge.p=E!==0&&8>E?E:8;var tt=Et.T,xt={};Et.T=xt,wp(e,!1,n,o);try{var Ot=v(),Ft=Et.S;if(Ft!==null&&Ft(xt,Ot),Ot!==null&&typeof Ot=="object"&&typeof Ot.then=="function"){var he=K(Ot,d);Jr(e,n,he,po(e))}else Jr(e,n,d,po(e))}catch(Me){Jr(e,n,{then:function(){},status:"rejected",reason:Me},po())}finally{ge.p=E,Et.T=tt}}function pg(){}function lh(e,n,o,d){if(e.tag!==5)throw Error(c(476));var v=Or(e).queue;Sp(e,v,n,Pe,o===null?pg:function(){return fg(e),o(d)})}function Or(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Pe,baseState:Pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vt,lastRenderedState:Pe},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vt,lastRenderedState:o},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function fg(e){var n=Or(e).next.queue;Jr(e,n,{},po())}function pc(){return fs(df)}function ch(){return bt().memoizedState}function kn(){return bt().memoizedState}function yy(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var o=po();e=ga(o);var d=Xa(n,e,o);d!==null&&(Ts(d,n,o),ou(d,n,o)),n={cache:Jn()},e.payload=n;return}n=n.return}}function gg(e,n,o){var d=po();o={lane:d,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},uh(e)?Cp(n,o):(o=ml(e,n,o,d),o!==null&&(Ts(o,e,d),mg(o,n,d)))}function iu(e,n,o){var d=po();Jr(e,n,o,d)}function Jr(e,n,o,d){var v={lane:d,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(uh(e))Cp(n,v);else{var E=e.alternate;if(e.lanes===0&&(E===null||E.lanes===0)&&(E=n.lastRenderedReducer,E!==null))try{var tt=n.lastRenderedState,xt=E(tt,o);if(v.hasEagerState=!0,v.eagerState=xt,Kn(xt,tt))return lc(e,n,v,0),nn===null&&oo(),!1}catch{}finally{}if(o=ml(e,n,v,d),o!==null)return Ts(o,e,d),mg(o,n,d),!0}return!1}function wp(e,n,o,d){if(d={lane:2,revertLane:of(),action:d,hasEagerState:!1,eagerState:null,next:null},uh(e)){if(n)throw Error(c(479))}else n=ml(e,o,d,2),n!==null&&Ts(n,e,2)}function uh(e){var n=e.alternate;return e===Xt||n!==null&&n===Xt}function Cp(e,n){ni=Fe=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function mg(e,n,o){if((o&4194176)!==0){var d=n.lanes;d&=e.pendingLanes,o|=d,n.lanes=o,Eu(e,o)}}var pa={readContext:fs,use:Ct,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useLayoutEffect:ze,useInsertionEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useSyncExternalStore:ze,useId:ze};pa.useCacheRefresh=ze,pa.useMemoCache=ze,pa.useHostTransitionStatus=ze,pa.useFormState=ze,pa.useActionState=ze,pa.useOptimistic=ze;var nu={readContext:fs,use:Ct,useCallback:function(e,n){return ut().memoizedState=[e,n===void 0?null:n],e},useContext:fs,useEffect:Bd,useImperativeHandle:function(e,n,o){o=o!=null?o.concat([e]):null,ha(4194308,4,ug.bind(null,n,e),o)},useLayoutEffect:function(e,n){return ha(4194308,4,e,n)},useInsertionEffect:function(e,n){ha(4,2,e,n)},useMemo:function(e,n){var o=ut();n=n===void 0?null:n;var d=e();if(ri){ai(!0);try{e()}finally{ai(!1)}}return o.memoizedState=[d,n],d},useReducer:function(e,n,o){var d=ut();if(o!==void 0){var v=o(n);if(ri){ai(!0);try{o(n)}finally{ai(!1)}}}else v=n;return d.memoizedState=d.baseState=v,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:v},d.queue=e,e=e.dispatch=gg.bind(null,Xt,e),[d.memoizedState,e]},useRef:function(e){var n=ut();return e={current:e},n.memoizedState=e},useState:function(e){e=ce(e);var n=e.queue,o=iu.bind(null,Xt,n);return n.dispatch=o,[e.memoizedState,o]},useDebugValue:Gu,useDeferredValue:function(e,n){var o=ut();return mn(o,e,n)},useTransition:function(){var e=ce(!1);return e=Sp.bind(null,Xt,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,o){var d=Xt,v=ut();if(Oi){if(o===void 0)throw Error(c(407));o=o()}else{if(o=n(),nn===null)throw Error(c(349));($i&60)!==0||oe(d,n,o)}v.memoizedState=o;var E={value:o,getSnapshot:n};return v.queue=E,Bd(Qt.bind(null,d,E,e),[e]),d.flags|=2048,en(9,fe.bind(null,d,E,o,n),{destroy:void 0},null),o},useId:function(){var e=ut(),n=nn.identifierPrefix;if(Oi){var o=$r,d=zn;o=(d&~(1<<32-ki(d)-1)).toString(32)+o,n=":"+n+"R"+o,o=xi++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=vi++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},useCacheRefresh:function(){return ut().memoizedState=yy.bind(null,Xt)}};nu.useMemoCache=pt,nu.useHostTransitionStatus=pc,nu.useFormState=Ji,nu.useActionState=Ji,nu.useOptimistic=function(e){var n=ut();n.memoizedState=n.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=wp.bind(null,Xt,!0,o),o.dispatch=n,[e,n]};var fc={readContext:fs,use:Ct,useCallback:eu,useContext:fs,useEffect:Dd,useImperativeHandle:vp,useInsertionEffect:fr,useLayoutEffect:cg,useMemo:dg,useReducer:mt,useRef:hs,useState:function(){return mt(vt)},useDebugValue:Gu,useDeferredValue:function(e,n){var o=bt();return hg(o,Vt.memoizedState,e,n)},useTransition:function(){var e=mt(vt)[0],n=bt().memoizedState;return[typeof e=="boolean"?e:yt(e),n]},useSyncExternalStore:Gt,useId:ch};fc.useCacheRefresh=kn,fc.useMemoCache=pt,fc.useHostTransitionStatus=pc,fc.useFormState=_i,fc.useActionState=_i,fc.useOptimistic=function(e,n){var o=bt();return ye(o,Vt,e,n)};var Ga={readContext:fs,use:Ct,useCallback:eu,useContext:fs,useEffect:Dd,useImperativeHandle:vp,useInsertionEffect:fr,useLayoutEffect:cg,useMemo:dg,useReducer:Pt,useRef:hs,useState:function(){return Pt(vt)},useDebugValue:Gu,useDeferredValue:function(e,n){var o=bt();return Vt===null?mn(o,e,n):hg(o,Vt.memoizedState,e,n)},useTransition:function(){var e=Pt(vt)[0],n=bt().memoizedState;return[typeof e=="boolean"?e:yt(e),n]},useSyncExternalStore:Gt,useId:ch};Ga.useCacheRefresh=kn,Ga.useMemoCache=pt,Ga.useHostTransitionStatus=pc,Ga.useFormState=ln,Ga.useActionState=ln,Ga.useOptimistic=function(e,n){var o=bt();return Vt!==null?ye(o,Vt,e,n):(o.baseState=e,[e,o.queue.dispatch])};function kp(e,n,o,d){n=e.memoizedState,o=o(d,n),o=o==null?n:ot({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Mp={isMounted:function(e){return(e=e._reactInternals)?te(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var d=po(),v=ga(d);v.payload=n,o!=null&&(v.callback=o),n=Xa(e,v,d),n!==null&&(Ts(n,e,d),ou(n,e,d))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var d=po(),v=ga(d);v.tag=1,v.payload=n,o!=null&&(v.callback=o),n=Xa(e,v,d),n!==null&&(Ts(n,e,d),ou(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=po(),d=ga(o);d.tag=2,n!=null&&(d.callback=n),n=Xa(e,d,o),n!==null&&(Ts(n,e,o),ou(n,e,o))}};function dh(e,n,o,d,v,E,tt){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(d,E,tt):n.prototype&&n.prototype.isPureReactComponent?!La(o,d)||!La(v,E):!0}function yg(e,n,o,d){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,d),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,d),n.state!==e&&Mp.enqueueReplaceState(n,n.state,null)}function ru(e,n){var o=n;if("ref"in n){o={};for(var d in n)d!=="ref"&&(o[d]=n[d])}if(e=e.defaultProps){o===n&&(o=ot({},o));for(var v in e)o[v]===void 0&&(o[v]=e[v])}return o}var Do=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Tp(e){Do(e)}function gc(e){console.error(e)}function lo(e){Do(e)}function hh(e,n){try{var o=e.onUncaughtError;o(n.value,{componentStack:n.stack})}catch(d){setTimeout(function(){throw d})}}function bg(e,n,o){try{var d=e.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Ep(e,n,o){return o=ga(o),o.tag=3,o.payload={element:null},o.callback=function(){hh(e,n)},o}function xg(e){return e=ga(e),e.tag=3,e}function ph(e,n,o,d){var v=o.type.getDerivedStateFromError;if(typeof v=="function"){var E=d.value;e.payload=function(){return v(E)},e.callback=function(){bg(n,o,d)}}var tt=o.stateNode;tt!==null&&typeof tt.componentDidCatch=="function"&&(e.callback=function(){bg(n,o,d),typeof v!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var xt=d.stack;this.componentDidCatch(d.value,{componentStack:xt!==null?xt:""})})}function vg(e,n,o,d,v){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(n=o.alternate,n!==null&&Vu(n,o,v,!0),o=Qr.current,o!==null){switch(o.tag){case 13:return sr===null?Qp():o.alternate===null&&Tn===0&&(Tn=3),o.flags&=-257,o.flags|=65536,o.lanes=v,d===Ro?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([d]):n.add(d),sf(e,d,v)),!1;case 22:return o.flags|=65536,d===Ro?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([d]):o.add(d)),sf(e,d,v)),!1}throw Error(c(435,o.tag))}return sf(e,d,v),Qp(),!1}if(Oi)return n=Qr.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=v,d!==uc&&(e=Error(c(422),{cause:d}),xl(Ar(e,o)))):(d!==uc&&(n=Error(c(423),{cause:d}),xl(Ar(n,o))),e=e.current.alternate,e.flags|=65536,v&=-v,e.lanes|=v,d=Ar(d,o),v=Ep(e.stateNode,d,v),zp(e,v),Tn!==4&&(Tn=2)),!1;var E=Error(c(520),{cause:d});if(E=Ar(E,o),Wd===null?Wd=[E]:Wd.push(E),Tn!==4&&(Tn=2),n===null)return!0;d=Ar(d,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,e=v&-v,o.lanes|=e,e=Ep(o.stateNode,d,e),zp(o,e),!1;case 1:if(n=o.type,E=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Nl===null||!Nl.has(E))))return o.flags|=65536,v&=-v,o.lanes|=v,v=xg(v),ph(v,e,o,d),zp(o,v),!1}o=o.return}while(o!==null);return!1}var fh=Error(c(461)),Hr=!1;function Pr(e,n,o,d){n.child=e===null?Bo(n,null,o,d):Po(n,e.child,o,d)}function gh(e,n,o,d,v){o=o.render;var E=n.ref;if("ref"in d){var tt={};for(var xt in d)xt!=="ref"&&(tt[xt]=d[xt])}else tt=d;return Wa(n),d=q(e,n,o,tt,E,v),xt=H(),e!==null&&!Hr?(Z(e,n,v),Mi(e,n,v)):(Oi&&xt&&Rr(n),n.flags|=1,Pr(e,n,d,v),n.child)}function Sg(e,n,o,d,v){if(e===null){var E=o.type;return typeof E=="function"&&!td(E)&&E.defaultProps===void 0&&o.compare===null?(n.tag=15,n.type=E,Ap(e,n,E,d,v)):(e=Hd(o.type,null,d,n,n.mode,v),e.ref=n.ref,e.return=n,n.child=e)}if(E=e.child,!Dp(e,v)){var tt=E.memoizedProps;if(o=o.compare,o=o!==null?o:La,o(tt,d)&&e.ref===n.ref)return Mi(e,n,v)}return n.flags|=1,e=Dl(E,d),e.ref=n.ref,e.return=n,n.child=e}function Ap(e,n,o,d,v){if(e!==null){var E=e.memoizedProps;if(La(E,d)&&e.ref===n.ref)if(Hr=!1,n.pendingProps=d=E,Dp(e,v))(e.flags&131072)!==0&&(Hr=!0);else return n.lanes=e.lanes,Mi(e,n,v)}return Rp(e,n,o,d,v)}function mc(e,n,o){var d=n.pendingProps,v=d.children,E=(n.stateNode._pendingVisibility&2)!==0,tt=e!==null?e.memoizedState:null;if(Wu(e,n),d.mode==="hidden"||E){if((n.flags&128)!==0){if(d=tt!==null?tt.baseLanes|o:o,e!==null){for(v=n.child=e.child,E=0;v!==null;)E=E|v.lanes|v.childLanes,v=v.sibling;n.childLanes=E&~d}else n.childLanes=0,n.child=null;return _u(e,n,d,o)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bt(n,tt!==null?tt.cachePool:null),tt!==null?Ml(n,tt):Cs(),Jc(n);else return n.lanes=n.childLanes=536870912,_u(e,n,tt!==null?tt.baseLanes|o:o,o)}else tt!==null?(Bt(n,tt.cachePool),Ml(n,tt),ua(),n.memoizedState=null):(e!==null&&Bt(n,null),Cs(),ua());return Pr(e,n,v,o),n.child}function _u(e,n,o,d){var v=At();return v=v===null?null:{parent:an._currentValue,pool:v},n.memoizedState={baseLanes:o,cachePool:v},e!==null&&Bt(n,null),Cs(),Jc(n),e!==null&&Vu(e,n,d,!0),null}function Wu(e,n){var o=n.ref;if(o===null)e!==null&&e.ref!==null&&(n.flags|=2097664);else{if(typeof o!="function"&&typeof o!="object")throw Error(c(284));(e===null||e.ref!==o)&&(n.flags|=2097664)}}function Rp(e,n,o,d,v){return Wa(n),o=q(e,n,o,d,void 0,v),d=H(),e!==null&&!Hr?(Z(e,n,v),Mi(e,n,v)):(Oi&&d&&Rr(n),n.flags|=1,Pr(e,n,o,v),n.child)}function Op(e,n,o,d,v,E){return Wa(n),n.updateQueue=null,o=A(n,d,o,v),b(e),d=H(),e!==null&&!Hr?(Z(e,n,E),Mi(e,n,E)):(Oi&&d&&Rr(n),n.flags|=1,Pr(e,n,o,E),n.child)}function mh(e,n,o,d,v){if(Wa(n),n.stateNode===null){var E=oa,tt=o.contextType;typeof tt=="object"&&tt!==null&&(E=fs(tt)),E=new o(d,E),n.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=Mp,n.stateNode=E,E._reactInternals=n,E=n.stateNode,E.props=d,E.state=n.memoizedState,E.refs={},Np(n),tt=o.contextType,E.context=typeof tt=="object"&&tt!==null?fs(tt):oa,E.state=n.memoizedState,tt=o.getDerivedStateFromProps,typeof tt=="function"&&(kp(n,o,tt,d),E.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(tt=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),tt!==E.state&&Mp.enqueueReplaceState(E,E.state,null),Nd(n,d,E,v),Xu(),E.state=n.memoizedState),typeof E.componentDidMount=="function"&&(n.flags|=4194308),d=!0}else if(e===null){E=n.stateNode;var xt=n.memoizedProps,Ot=ru(o,xt);E.props=Ot;var Ft=E.context,he=o.contextType;tt=oa,typeof he=="object"&&he!==null&&(tt=fs(he));var Me=o.getDerivedStateFromProps;he=typeof Me=="function"||typeof E.getSnapshotBeforeUpdate=="function",xt=n.pendingProps!==xt,he||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(xt||Ft!==tt)&&yg(n,E,d,tt),bc=!1;var ee=n.memoizedState;E.state=ee,Nd(n,d,E,v),Xu(),Ft=n.memoizedState,xt||ee!==Ft||bc?(typeof Me=="function"&&(kp(n,o,Me,d),Ft=n.memoizedState),(Ot=bc||dh(n,o,Ot,d,ee,Ft,tt))?(he||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(n.flags|=4194308)):(typeof E.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=d,n.memoizedState=Ft),E.props=d,E.state=Ft,E.context=tt,d=Ot):(typeof E.componentDidMount=="function"&&(n.flags|=4194308),d=!1)}else{E=n.stateNode,Va(e,n),tt=n.memoizedProps,he=ru(o,tt),E.props=he,Me=n.pendingProps,ee=E.context,Ft=o.contextType,Ot=oa,typeof Ft=="object"&&Ft!==null&&(Ot=fs(Ft)),xt=o.getDerivedStateFromProps,(Ft=typeof xt=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(tt!==Me||ee!==Ot)&&yg(n,E,d,Ot),bc=!1,ee=n.memoizedState,E.state=ee,Nd(n,d,E,v),Xu();var ue=n.memoizedState;tt!==Me||ee!==ue||bc||e!==null&&e.dependencies!==null&&Id(e.dependencies)?(typeof xt=="function"&&(kp(n,o,xt,d),ue=n.memoizedState),(he=bc||dh(n,o,he,d,ee,ue,Ot)||e!==null&&e.dependencies!==null&&Id(e.dependencies))?(Ft||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,ue,Ot),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,ue,Ot)),typeof E.componentDidUpdate=="function"&&(n.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof E.componentDidUpdate!="function"||tt===e.memoizedProps&&ee===e.memoizedState||(n.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||tt===e.memoizedProps&&ee===e.memoizedState||(n.flags|=1024),n.memoizedProps=d,n.memoizedState=ue),E.props=d,E.state=ue,E.context=Ot,d=he):(typeof E.componentDidUpdate!="function"||tt===e.memoizedProps&&ee===e.memoizedState||(n.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||tt===e.memoizedProps&&ee===e.memoizedState||(n.flags|=1024),d=!1)}return E=d,Wu(e,n),d=(n.flags&128)!==0,E||d?(E=n.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:E.render(),n.flags|=1,e!==null&&d?(n.child=Po(n,e.child,null,v),n.child=Po(n,null,o,v)):Pr(e,n,o,v),n.memoizedState=E.state,e=n.child):e=Mi(e,n,v),e}function yh(e,n,o,d){return bl(),n.flags|=256,Pr(e,n,o,d),n.child}var bh={dehydrated:null,treeContext:null,retryLane:0};function Ld(e){return{baseLanes:e,cachePool:Jt()}}function co(e,n,o){return e=e!==null?e.childLanes&~o:0,n&&(e|=jo),e}function Tl(e,n,o){var d=n.pendingProps,v=!1,E=(n.flags&128)!==0,tt;if((tt=E)||(tt=e!==null&&e.memoizedState===null?!1:(On.current&2)!==0),tt&&(v=!0,n.flags&=-129),tt=(n.flags&32)!==0,n.flags&=-33,e===null){if(Oi){if(v?ao(n):ua(),Oi){var xt=Qn,Ot;if(Ot=xt){t:{for(Ot=xt,xt=Hs;Ot.nodeType!==8;){if(!xt){xt=null;break t}if(Ot=Ui(Ot.nextSibling),Ot===null){xt=null;break t}}xt=Ot}xt!==null?(n.memoizedState={dehydrated:xt,treeContext:pn!==null?{id:zn,overflow:$r}:null,retryLane:536870912},Ot=Ms(18,null,null,0),Ot.stateNode=xt,Ot.return=n,n.child=Ot,Zn=n,Qn=null,Ot=!0):Ot=!1}Ot||Us(n)}if(xt=n.memoizedState,xt!==null&&(xt=xt.dehydrated,xt!==null))return xt.data==="$!"?n.lanes=16:n.lanes=536870912,null;pr(n)}return xt=d.children,d=d.fallback,v?(ua(),v=n.mode,xt=Pp({mode:"hidden",children:xt},v),d=wc(d,v,o,null),xt.return=n,d.return=n,xt.sibling=d,n.child=xt,v=n.child,v.memoizedState=Ld(o),v.childLanes=co(e,tt,o),n.memoizedState=bh,d):(ao(n),xh(n,xt))}if(Ot=e.memoizedState,Ot!==null&&(xt=Ot.dehydrated,xt!==null)){if(E)n.flags&256?(ao(n),n.flags&=-257,n=Bp(e,n,o)):n.memoizedState!==null?(ua(),n.child=e.child,n.flags|=128,n=null):(ua(),v=d.fallback,xt=n.mode,d=Pp({mode:"visible",children:d.children},xt),v=wc(v,xt,o,null),v.flags|=2,d.return=n,v.return=n,d.sibling=v,n.child=d,Po(n,e.child,null,o),d=n.child,d.memoizedState=Ld(o),d.childLanes=co(e,tt,o),n.memoizedState=bh,n=v);else if(ao(n),xt.data==="$!"){if(tt=xt.nextSibling&&xt.nextSibling.dataset,tt)var Ft=tt.dgst;tt=Ft,d=Error(c(419)),d.stack="",d.digest=tt,xl({value:d,source:null,stack:null}),n=Bp(e,n,o)}else if(Hr||Vu(e,n,o,!1),tt=(o&e.childLanes)!==0,Hr||tt){if(tt=nn,tt!==null){if(d=o&-o,(d&42)!==0)d=1;else switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:d=64;break;case 268435456:d=134217728;break;default:d=0}if(d=(d&(tt.suspendedLanes|o))!==0?0:d,d!==0&&d!==Ot.retryLane)throw Ot.retryLane=d,Sn(e,d),Ts(tt,e,d),fh}xt.data==="$?"||Qp(),n=Bp(e,n,o)}else xt.data==="$?"?(n.flags|=128,n.child=e.child,n=Gg.bind(null,e),xt._reactRetry=n,n=null):(e=Ot.treeContext,Qn=Ui(xt.nextSibling),Zn=n,Oi=!0,Zr=null,Hs=!1,e!==null&&(He[rr++]=zn,He[rr++]=$r,He[rr++]=pn,zn=e.id,$r=e.overflow,pn=n),n=xh(n,d.children),n.flags|=4096);return n}return v?(ua(),v=d.fallback,xt=n.mode,Ot=e.child,Ft=Ot.sibling,d=Dl(Ot,{mode:"hidden",children:d.children}),d.subtreeFlags=Ot.subtreeFlags&31457280,Ft!==null?v=Dl(Ft,v):(v=wc(v,xt,o,null),v.flags|=2),v.return=n,d.return=n,d.sibling=v,n.child=d,d=v,v=n.child,xt=e.child.memoizedState,xt===null?xt=Ld(o):(Ot=xt.cachePool,Ot!==null?(Ft=an._currentValue,Ot=Ot.parent!==Ft?{parent:Ft,pool:Ft}:Ot):Ot=Jt(),xt={baseLanes:xt.baseLanes|o,cachePool:Ot}),v.memoizedState=xt,v.childLanes=co(e,tt,o),n.memoizedState=bh,d):(ao(n),o=e.child,e=o.sibling,o=Dl(o,{mode:"visible",children:d.children}),o.return=n,o.sibling=null,e!==null&&(tt=n.deletions,tt===null?(n.deletions=[e],n.flags|=16):tt.push(e)),n.child=o,n.memoizedState=null,o)}function xh(e,n){return n=Pp({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Pp(e,n){return Ud(e,n,0,null)}function Bp(e,n,o){return Po(n,e.child,null,o),e=xh(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function vh(e,n,o){e.lanes|=n;var d=e.alternate;d!==null&&(d.lanes|=n),Br(e.return,n,o)}function _a(e,n,o,d,v){var E=e.memoizedState;E===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:v}:(E.isBackwards=n,E.rendering=null,E.renderingStartTime=0,E.last=d,E.tail=o,E.tailMode=v)}function Sh(e,n,o){var d=n.pendingProps,v=d.revealOrder,E=d.tail;if(Pr(e,n,d.children,o),d=On.current,(d&2)!==0)d=d&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vh(e,o,n);else if(e.tag===19)vh(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break t;for(;e.sibling===null;){if(e.return===null||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}d&=1}switch(Be(On,d),v){case"forwards":for(o=n.child,v=null;o!==null;)e=o.alternate,e!==null&&Gs(e)===null&&(v=o),o=o.sibling;o=v,o===null?(v=n.child,n.child=null):(v=o.sibling,o.sibling=null),_a(n,!1,v,o,E);break;case"backwards":for(o=null,v=n.child,n.child=null;v!==null;){if(e=v.alternate,e!==null&&Gs(e)===null){n.child=v;break}e=v.sibling,v.sibling=o,o=v,v=e}_a(n,!0,o,null,E);break;case"together":_a(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Mi(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),Mc|=n.lanes,(o&n.childLanes)===0)if(e!==null){if(Vu(e,n,o,!1),(o&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(c(153));if(n.child!==null){for(e=n.child,o=Dl(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Dl(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Dp(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Id(e)))}function Lp(e,n,o){switch(n.tag){case 3:Ai(n,n.stateNode.containerInfo),ps(n,an,e.memoizedState.cache),bl();break;case 27:case 5:Ni(n);break;case 4:Ai(n,n.stateNode.containerInfo);break;case 10:ps(n,n.type,n.memoizedProps.value);break;case 13:var d=n.memoizedState;if(d!==null)return d.dehydrated!==null?(ao(n),n.flags|=128,null):(o&n.child.childLanes)!==0?Tl(e,n,o):(ao(n),e=Mi(e,n,o),e!==null?e.sibling:null);ao(n);break;case 19:var v=(e.flags&128)!==0;if(d=(o&n.childLanes)!==0,d||(Vu(e,n,o,!1),d=(o&n.childLanes)!==0),v){if(d)return Sh(e,n,o);n.flags|=128}if(v=n.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Be(On,On.current),d)break;return null;case 22:case 23:return n.lanes=0,mc(e,n,o);case 24:ps(n,an,e.memoizedState.cache)}return Mi(e,n,o)}function wg(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps)Hr=!0;else{if(!Dp(e,o)&&(n.flags&128)===0)return Hr=!1,Lp(e,n,o);Hr=(e.flags&131072)!==0}else Hr=!1,Oi&&(n.flags&1048576)!==0&&Ao(n,cs,n.index);switch(n.lanes=0,n.tag){case 16:t:{e=n.pendingProps;var d=n.elementType,v=d._init;if(d=v(d._payload),n.type=d,typeof d=="function")td(d)?(e=ru(d,e),n.tag=1,n=mh(null,n,d,e,o)):(n.tag=0,n=Rp(null,n,d,e,o));else{if(d!=null){if(v=d.$$typeof,v===z){n.tag=11,n=gh(null,n,d,e,o);break t}else if(v===it){n.tag=14,n=Sg(null,n,d,e,o);break t}}throw n=_t(d)||d,Error(c(306,n,""))}}return n;case 0:return Rp(e,n,n.type,n.pendingProps,o);case 1:return d=n.type,v=ru(d,n.pendingProps),mh(e,n,d,v,o);case 3:t:{if(Ai(n,n.stateNode.containerInfo),e===null)throw Error(c(387));var E=n.pendingProps;v=n.memoizedState,d=v.element,Va(e,n),Nd(n,E,null,o);var tt=n.memoizedState;if(E=tt.cache,ps(n,an,E),E!==v.cache&&Ip(n,[an],o,!0),Xu(),E=tt.element,v.isDehydrated)if(v={element:E,isDehydrated:!1,cache:tt.cache},n.updateQueue.baseState=v,n.memoizedState=v,n.flags&256){n=yh(e,n,E,o);break t}else if(E!==d){d=Ar(Error(c(424)),n),xl(d),n=yh(e,n,E,o);break t}else for(Qn=Ui(n.stateNode.containerInfo.firstChild),Zn=n,Oi=!0,Zr=null,Hs=!0,o=Bo(n,null,E,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(bl(),E===d){n=Mi(e,n,o);break t}Pr(e,n,E,o)}n=n.child}return n;case 26:return Wu(e,n),e===null?(o=Fx(n.type,null,n.pendingProps,null))?n.memoizedState=o:Oi||(o=n.type,e=n.pendingProps,d=$t(Ei.current).createElement(o),d[nr]=n,d[Cr]=e,Rt(d,o,e),pi(d),n.stateNode=d):n.memoizedState=Fx(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ni(n),e===null&&Oi&&(d=n.stateNode=Fi(n.type,n.pendingProps,Ei.current),Zn=n,Hs=!0,Qn=Ui(d.firstChild)),d=n.pendingProps.children,e!==null||Oi?Pr(e,n,d,o):n.child=Po(n,null,d,o),Wu(e,n),n.child;case 5:return e===null&&Oi&&((v=d=Qn)&&(d=fi(d,n.type,n.pendingProps,Hs),d!==null?(n.stateNode=d,Zn=n,Qn=Ui(d.firstChild),Hs=!1,v=!0):v=!1),v||Us(n)),Ni(n),v=n.type,E=n.pendingProps,tt=e!==null?e.memoizedProps:null,d=E.children,Ce(v,E)?d=null:tt!==null&&Ce(v,tt)&&(n.flags|=32),n.memoizedState!==null&&(v=q(e,n,L,null,null,o),df._currentValue=v),Wu(e,n),Pr(e,n,d,o),n.child;case 6:return e===null&&Oi&&((e=o=Qn)&&(o=Qi(o,n.pendingProps,Hs),o!==null?(n.stateNode=o,Zn=n,Qn=null,e=!0):e=!1),e||Us(n)),null;case 13:return Tl(e,n,o);case 4:return Ai(n,n.stateNode.containerInfo),d=n.pendingProps,e===null?n.child=Po(n,null,d,o):Pr(e,n,d,o),n.child;case 11:return gh(e,n,n.type,n.pendingProps,o);case 7:return Pr(e,n,n.pendingProps,o),n.child;case 8:return Pr(e,n,n.pendingProps.children,o),n.child;case 12:return Pr(e,n,n.pendingProps.children,o),n.child;case 10:return d=n.pendingProps,ps(n,n.type,d.value),Pr(e,n,d.children,o),n.child;case 9:return v=n.type._context,d=n.pendingProps.children,Wa(n),v=fs(v),d=d(v),n.flags|=1,Pr(e,n,d,o),n.child;case 14:return Sg(e,n,n.type,n.pendingProps,o);case 15:return Ap(e,n,n.type,n.pendingProps,o);case 19:return Sh(e,n,o);case 22:return mc(e,n,o);case 24:return Wa(n),d=fs(an),e===null?(v=At(),v===null&&(v=nn,E=Jn(),v.pooledCache=E,E.refCount++,E!==null&&(v.pooledCacheLanes|=o),v=E),n.memoizedState={parent:d,cache:v},Np(n),ps(n,an,v)):((e.lanes&o)!==0&&(Va(e,n),Nd(n,null,null,o),Xu()),v=e.memoizedState,E=n.memoizedState,v.parent!==d?(v={parent:d,cache:d},n.memoizedState=v,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=v),ps(n,an,d)):(d=E.cache,ps(n,an,d),d!==v.cache&&Ip(n,[an],o,!0))),Pr(e,n,n.pendingProps.children,o),n.child;case 29:throw n.pendingProps}throw Error(c(156,n.tag))}var yc=Ae(null),su=null,Lo=null;function ps(e,n,o){Be(yc,n._currentValue),n._currentValue=o}function fa(e){e._currentValue=yc.current,Ke(yc)}function Br(e,n,o){for(;e!==null;){var d=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,d!==null&&(d.childLanes|=n)):d!==null&&(d.childLanes&n)!==n&&(d.childLanes|=n),e===o)break;e=e.return}}function Ip(e,n,o,d){var v=e.child;for(v!==null&&(v.return=e);v!==null;){var E=v.dependencies;if(E!==null){var tt=v.child;E=E.firstContext;t:for(;E!==null;){var xt=E;E=v;for(var Ot=0;Ot<n.length;Ot++)if(xt.context===n[Ot]){E.lanes|=o,xt=E.alternate,xt!==null&&(xt.lanes|=o),Br(E.return,o,e),d||(tt=null);break t}E=xt.next}}else if(v.tag===18){if(tt=v.return,tt===null)throw Error(c(341));tt.lanes|=o,E=tt.alternate,E!==null&&(E.lanes|=o),Br(tt,o,e),tt=null}else tt=v.child;if(tt!==null)tt.return=v;else for(tt=v;tt!==null;){if(tt===e){tt=null;break}if(v=tt.sibling,v!==null){v.return=tt.return,tt=v;break}tt=tt.return}v=tt}}function Vu(e,n,o,d){e=null;for(var v=n,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var tt=v.alternate;if(tt===null)throw Error(c(387));if(tt=tt.memoizedProps,tt!==null){var xt=v.type;Kn(v.pendingProps.value,tt.value)||(e!==null?e.push(xt):e=[xt])}}else if(v===di.current){if(tt=v.alternate,tt===null)throw Error(c(387));tt.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(e!==null?e.push(df):e=[df])}v=v.return}e!==null&&Ip(n,e,o,d),n.flags|=262144}function Id(e){for(e=e.firstContext;e!==null;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wa(e){su=e,Lo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fs(e){return El(su,e)}function wh(e,n){return su===null&&Wa(e),El(e,n)}function El(e,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},Lo===null){if(e===null)throw Error(c(308));Lo=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Lo=Lo.next=n;return o}var bc=!1;function Np(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,n,o){var d=e.updateQueue;if(d===null)return null;if(d=d.shared,(Pn&2)!==0){var v=d.pending;return v===null?n.next=n:(n.next=v.next,v.next=n),d.pending=n,n=cc(e),Ki(e,null,o),n}return lc(e,d,n,o),cc(e)}function ou(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194176)!==0)){var d=n.lanes;d&=e.pendingLanes,o|=d,n.lanes=o,Eu(e,o)}}function zp(e,n){var o=e.updateQueue,d=e.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var v=null,E=null;if(o=o.firstBaseUpdate,o!==null){do{var tt={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};E===null?v=E=tt:E=E.next=tt,o=o.next}while(o!==null);E===null?v=E=n:E=E.next=n}else v=E=n;o={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:d.shared,callbacks:d.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}var Ch=!1;function Xu(){if(Ch){var e=D;if(e!==null)throw e}}function Nd(e,n,o,d){Ch=!1;var v=e.updateQueue;bc=!1;var E=v.firstBaseUpdate,tt=v.lastBaseUpdate,xt=v.shared.pending;if(xt!==null){v.shared.pending=null;var Ot=xt,Ft=Ot.next;Ot.next=null,tt===null?E=Ft:tt.next=Ft,tt=Ot;var he=e.alternate;he!==null&&(he=he.updateQueue,xt=he.lastBaseUpdate,xt!==tt&&(xt===null?he.firstBaseUpdate=Ft:xt.next=Ft,he.lastBaseUpdate=Ot))}if(E!==null){var Me=v.baseState;tt=0,he=Ft=Ot=null,xt=E;do{var ee=xt.lane&-536870913,ue=ee!==xt.lane;if(ue?($i&ee)===ee:(d&ee)===ee){ee!==0&&ee===T&&(Ch=!0),he!==null&&(he=he.next={lane:0,tag:xt.tag,payload:xt.payload,callback:null,next:null});t:{var ii=e,Pi=xt;ee=n;var yr=o;switch(Pi.tag){case 1:if(ii=Pi.payload,typeof ii=="function"){Me=ii.call(yr,Me,ee);break t}Me=ii;break t;case 3:ii.flags=ii.flags&-65537|128;case 0:if(ii=Pi.payload,ee=typeof ii=="function"?ii.call(yr,Me,ee):ii,ee==null)break t;Me=ot({},Me,ee);break t;case 2:bc=!0}}ee=xt.callback,ee!==null&&(e.flags|=64,ue&&(e.flags|=8192),ue=v.callbacks,ue===null?v.callbacks=[ee]:ue.push(ee))}else ue={lane:ee,tag:xt.tag,payload:xt.payload,callback:xt.callback,next:null},he===null?(Ft=he=ue,Ot=Me):he=he.next=ue,tt|=ee;if(xt=xt.next,xt===null){if(xt=v.shared.pending,xt===null)break;ue=xt,xt=ue.next,ue.next=null,v.lastBaseUpdate=ue,v.shared.pending=null}}while(!0);he===null&&(Ot=Me),v.baseState=Ot,v.firstBaseUpdate=Ft,v.lastBaseUpdate=he,E===null&&(v.shared.lanes=0),Mc|=tt,e.lanes=tt,e.memoizedState=Me}}function jp(e,n){if(typeof e!="function")throw Error(c(191,e));e.call(n)}function Yu(e,n){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)jp(o[e],n)}function zd(e,n){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var v=d.next;o=v;do{if((o.tag&e)===e){d=void 0;var E=o.create,tt=o.inst;d=E(),tt.destroy=d}o=o.next}while(o!==v)}}catch(xt){yn(n,n.return,xt)}}function xc(e,n,o){try{var d=n.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var E=v.next;d=E;do{if((d.tag&e)===e){var tt=d.inst,xt=tt.destroy;if(xt!==void 0){tt.destroy=void 0,v=n;var Ot=o;try{xt()}catch(Ft){yn(v,Ot,Ft)}}}d=d.next}while(d!==E)}}catch(Ft){yn(n,n.return,Ft)}}function Cg(e){var n=e.updateQueue;if(n!==null){var o=e.stateNode;try{Yu(n,o)}catch(d){yn(e,e.return,d)}}}function $p(e,n,o){o.props=ru(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(d){yn(e,n,d)}}function Al(e,n){try{var o=e.ref;if(o!==null){var d=e.stateNode;switch(e.tag){case 26:case 27:case 5:var v=d;break;default:v=d}typeof o=="function"?e.refCleanup=o(v):o.current=v}}catch(E){yn(e,n,E)}}function ks(e,n){var o=e.ref,d=e.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(v){yn(e,n,v)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(v){yn(e,n,v)}else o.current=null}function qu(e){var n=e.type,o=e.memoizedProps,d=e.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break t;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(v){yn(e,e.return,v)}}function Hp(e,n,o){try{var d=e.stateNode;Nt(d,e.type,o,n),d[Cr]=n}catch(v){yn(e,e.return,v)}}function kg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function Up(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||kg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kh(e,n,o){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=Q));else if(d!==4&&d!==27&&(e=e.child,e!==null))for(kh(e,n,o),e=e.sibling;e!==null;)kh(e,n,o),e=e.sibling}function vc(e,n,o){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(d!==4&&d!==27&&(e=e.child,e!==null))for(vc(e,n,o),e=e.sibling;e!==null;)vc(e,n,o),e=e.sibling}var Ya=!1,tr=!1,Fp=!1,Mh=typeof WeakSet=="function"?WeakSet:Set,jn=null,Th=!1;function by(e,n){if(e=e.containerInfo,Lt=em,e=Na(e),zs(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else t:{o=(o=e.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var v=d.anchorOffset,E=d.focusNode;d=d.focusOffset;try{o.nodeType,E.nodeType}catch{o=null;break t}var tt=0,xt=-1,Ot=-1,Ft=0,he=0,Me=e,ee=null;e:for(;;){for(var ue;Me!==o||v!==0&&Me.nodeType!==3||(xt=tt+v),Me!==E||d!==0&&Me.nodeType!==3||(Ot=tt+d),Me.nodeType===3&&(tt+=Me.nodeValue.length),(ue=Me.firstChild)!==null;)ee=Me,Me=ue;for(;;){if(Me===e)break e;if(ee===o&&++Ft===v&&(xt=tt),ee===E&&++he===d&&(Ot=tt),(ue=Me.nextSibling)!==null)break;Me=ee,ee=Me.parentNode}Me=ue}o=xt===-1||Ot===-1?null:{start:xt,end:Ot}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ut={focusedElem:e,selectionRange:o},em=!1,jn=n;jn!==null;)if(n=jn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,jn=e;else for(;jn!==null;){switch(n=jn,E=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&E!==null){e=void 0,o=n,v=E.memoizedProps,E=E.memoizedState,d=o.stateNode;try{var ii=ru(o.type,v,o.elementType===o.type);e=d.getSnapshotBeforeUpdate(ii,E),d.__reactInternalSnapshotBeforeUpdate=e}catch(Pi){yn(o,o.return,Pi)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,o=e.nodeType,o===9)Je(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Je(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=n.sibling,e!==null){e.return=n.return,jn=e;break}jn=n.return}return ii=Th,Th=!1,ii}function Mg(e,n,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:Ol(e,o),d&4&&zd(5,o);break;case 1:if(Ol(e,o),d&4)if(e=o.stateNode,n===null)try{e.componentDidMount()}catch(xt){yn(o,o.return,xt)}else{var v=ru(o.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(v,n,e.__reactInternalSnapshotBeforeUpdate)}catch(xt){yn(o,o.return,xt)}}d&64&&Cg(o),d&512&&Al(o,o.return);break;case 3:if(Ol(e,o),d&64&&(d=o.updateQueue,d!==null)){if(e=null,o.child!==null)switch(o.child.tag){case 27:case 5:e=o.child.stateNode;break;case 1:e=o.child.stateNode}try{Yu(d,e)}catch(xt){yn(o,o.return,xt)}}break;case 26:Ol(e,o),d&512&&Al(o,o.return);break;case 27:case 5:Ol(e,o),n===null&&d&4&&qu(o),d&512&&Al(o,o.return);break;case 12:Ol(e,o);break;case 13:Ol(e,o),d&4&&Ag(e,o);break;case 22:if(v=o.memoizedState!==null||Ya,!v){n=n!==null&&n.memoizedState!==null||tr;var E=Ya,tt=tr;Ya=v,(tr=n)&&!tt?Sc(e,o,(o.subtreeFlags&8772)!==0):Ol(e,o),Ya=E,tr=tt}d&512&&(o.memoizedProps.mode==="manual"?Al(o,o.return):ks(o,o.return));break;default:Ol(e,o)}}function Tg(e){var n=e.alternate;n!==null&&(e.alternate=null,Tg(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&sl(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gr=null,uo=!1;function Rl(e,n,o){for(o=o.child;o!==null;)Eg(e,n,o),o=o.sibling}function Eg(e,n,o){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(cr,o)}catch{}switch(o.tag){case 26:tr||ks(o,n),Rl(e,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:tr||ks(o,n);var d=gr,v=uo;for(gr=o.stateNode,Rl(e,n,o),o=o.stateNode,n=o.attributes;n.length;)o.removeAttributeNode(n[0]);sl(o),gr=d,uo=v;break;case 5:tr||ks(o,n);case 6:v=gr;var E=uo;if(gr=null,Rl(e,n,o),gr=v,uo=E,gr!==null)if(uo)try{e=gr,d=o.stateNode,e.nodeType===8?e.parentNode.removeChild(d):e.removeChild(d)}catch(tt){yn(o,n,tt)}else try{gr.removeChild(o.stateNode)}catch(tt){yn(o,n,tt)}break;case 18:gr!==null&&(uo?(n=gr,o=o.stateNode,n.nodeType===8?$e(n.parentNode,o):n.nodeType===1&&$e(n,o),gf(n)):$e(gr,o.stateNode));break;case 4:d=gr,v=uo,gr=o.stateNode.containerInfo,uo=!0,Rl(e,n,o),gr=d,uo=v;break;case 0:case 11:case 14:case 15:tr||xc(2,o,n),tr||xc(4,o,n),Rl(e,n,o);break;case 1:tr||(ks(o,n),d=o.stateNode,typeof d.componentWillUnmount=="function"&&$p(o,n,d)),Rl(e,n,o);break;case 21:Rl(e,n,o);break;case 22:tr||ks(o,n),tr=(d=tr)||o.memoizedState!==null,Rl(e,n,o),tr=d;break;default:Rl(e,n,o)}}function Ag(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gf(e)}catch(o){yn(n,n.return,o)}}function xy(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Mh),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Mh),n;default:throw Error(c(435,e.tag))}}function Gp(e,n){var o=xy(e);n.forEach(function(d){var v=My.bind(null,e,d);o.has(d)||(o.add(d),d.then(v,v))})}function Io(e,n){var o=n.deletions;if(o!==null)for(var d=0;d<o.length;d++){var v=o[d],E=e,tt=n,xt=tt;t:for(;xt!==null;){switch(xt.tag){case 27:case 5:gr=xt.stateNode,uo=!1;break t;case 3:gr=xt.stateNode.containerInfo,uo=!0;break t;case 4:gr=xt.stateNode.containerInfo,uo=!0;break t}xt=xt.return}if(gr===null)throw Error(c(160));Eg(E,tt,v),gr=null,uo=!1,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Rg(n,e),n=n.sibling}var No=null;function Rg(e,n){var o=e.alternate,d=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Io(n,e),ho(e),d&4&&(xc(3,e,e.return),zd(3,e),xc(5,e,e.return));break;case 1:Io(n,e),ho(e),d&512&&(tr||o===null||ks(o,o.return)),d&64&&Ya&&(e=e.updateQueue,e!==null&&(d=e.callbacks,d!==null&&(o=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var v=No;if(Io(n,e),ho(e),d&512&&(tr||o===null||ks(o,o.return)),d&4){var E=o!==null?o.memoizedState:null;if(d=e.memoizedState,o===null)if(d===null)if(e.stateNode===null){t:{d=e.type,o=e.memoizedProps,v=v.ownerDocument||v;e:switch(d){case"title":E=v.getElementsByTagName("title")[0],(!E||E[go]||E[nr]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=v.createElement(d),v.head.insertBefore(E,v.querySelector("head > title"))),Rt(E,d,o),E[nr]=e,pi(E),d=E;break t;case"link":var tt=Wx("link","href",v).get(d+(o.href||""));if(tt){for(var xt=0;xt<tt.length;xt++)if(E=tt[xt],E.getAttribute("href")===(o.href==null?null:o.href)&&E.getAttribute("rel")===(o.rel==null?null:o.rel)&&E.getAttribute("title")===(o.title==null?null:o.title)&&E.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){tt.splice(xt,1);break e}}E=v.createElement(d),Rt(E,d,o),v.head.appendChild(E);break;case"meta":if(tt=Wx("meta","content",v).get(d+(o.content||""))){for(xt=0;xt<tt.length;xt++)if(E=tt[xt],E.getAttribute("content")===(o.content==null?null:""+o.content)&&E.getAttribute("name")===(o.name==null?null:o.name)&&E.getAttribute("property")===(o.property==null?null:o.property)&&E.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&E.getAttribute("charset")===(o.charSet==null?null:o.charSet)){tt.splice(xt,1);break e}}E=v.createElement(d),Rt(E,d,o),v.head.appendChild(E);break;default:throw Error(c(468,d))}E[nr]=e,pi(E),d=E}e.stateNode=d}else Vx(v,e.type,e.stateNode);else e.stateNode=_x(v,d,e.memoizedProps);else E!==d?(E===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):E.count--,d===null?Vx(v,e.type,e.stateNode):_x(v,d,e.memoizedProps)):d===null&&e.stateNode!==null&&Hp(e,e.memoizedProps,o.memoizedProps)}break;case 27:if(d&4&&e.alternate===null){v=e.stateNode,E=e.memoizedProps;try{for(var Ot=v.firstChild;Ot;){var Ft=Ot.nextSibling,he=Ot.nodeName;Ot[go]||he==="HEAD"||he==="BODY"||he==="SCRIPT"||he==="STYLE"||he==="LINK"&&Ot.rel.toLowerCase()==="stylesheet"||v.removeChild(Ot),Ot=Ft}for(var Me=e.type,ee=v.attributes;ee.length;)v.removeAttributeNode(ee[0]);Rt(v,Me,E),v[nr]=e,v[Cr]=E}catch(ii){yn(e,e.return,ii)}}case 5:if(Io(n,e),ho(e),d&512&&(tr||o===null||ks(o,o.return)),e.flags&32){v=e.stateNode;try{_o(v,"")}catch(ii){yn(e,e.return,ii)}}d&4&&e.stateNode!=null&&(v=e.memoizedProps,Hp(e,v,o!==null?o.memoizedProps:v)),d&1024&&(Fp=!0);break;case 6:if(Io(n,e),ho(e),d&4){if(e.stateNode===null)throw Error(c(162));d=e.memoizedProps,o=e.stateNode;try{o.nodeValue=d}catch(ii){yn(e,e.return,ii)}}break;case 3:if(Qg=null,v=No,No=Wn(n.containerInfo),Io(n,e),No=v,ho(e),d&4&&o!==null&&o.memoizedState.isDehydrated)try{gf(n.containerInfo)}catch(ii){yn(e,e.return,ii)}Fp&&(Fp=!1,Eh(e));break;case 4:d=No,No=Wn(e.stateNode.containerInfo),Io(n,e),ho(e),No=d;break;case 12:Io(n,e),ho(e);break;case 13:Io(n,e),ho(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Xp=Vi()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Gp(e,d)));break;case 22:if(d&512&&(tr||o===null||ks(o,o.return)),Ot=e.memoizedState!==null,Ft=o!==null&&o.memoizedState!==null,he=Ya,Me=tr,Ya=he||Ot,tr=Me||Ft,Io(n,e),tr=Me,Ya=he,ho(e),n=e.stateNode,n._current=e,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,d&8192&&(n._visibility=Ot?n._visibility&-2:n._visibility|1,Ot&&(n=Ya||tr,o===null||Ft||n||Ku(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))t:for(o=null,n=e;;){if(n.tag===5||n.tag===26||n.tag===27){if(o===null){Ft=o=n;try{if(v=Ft.stateNode,Ot)E=v.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{tt=Ft.stateNode,xt=Ft.memoizedProps.style;var ue=xt!=null&&xt.hasOwnProperty("display")?xt.display:null;tt.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(ii){yn(Ft,Ft.return,ii)}}}else if(n.tag===6){if(o===null){Ft=n;try{Ft.stateNode.nodeValue=Ot?"":Ft.memoizedProps}catch(ii){yn(Ft,Ft.return,ii)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break t;for(;n.sibling===null;){if(n.return===null||n.return===e)break t;o===n&&(o=null),n=n.return}o===n&&(o=null),n.sibling.return=n.return,n=n.sibling}d&4&&(d=e.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,Gp(e,o))));break;case 19:Io(n,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Gp(e,d)));break;case 21:break;default:Io(n,e),ho(e)}}function ho(e){var n=e.flags;if(n&2){try{if(e.tag!==27){t:{for(var o=e.return;o!==null;){if(kg(o)){var d=o;break t}o=o.return}throw Error(c(160))}switch(d.tag){case 27:var v=d.stateNode,E=Up(e);vc(e,E,v);break;case 5:var tt=d.stateNode;d.flags&32&&(_o(tt,""),d.flags&=-33);var xt=Up(e);vc(e,xt,tt);break;case 3:case 4:var Ot=d.stateNode.containerInfo,Ft=Up(e);kh(e,Ft,Ot);break;default:throw Error(c(161))}}}catch(he){yn(e,e.return,he)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Eh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Eh(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Ol(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Mg(e,n.alternate,n),n=n.sibling}function Ku(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:xc(4,n,n.return),Ku(n);break;case 1:ks(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&$p(n,n.return,o),Ku(n);break;case 26:case 27:case 5:ks(n,n.return),Ku(n);break;case 22:ks(n,n.return),n.memoizedState===null&&Ku(n);break;default:Ku(n)}e=e.sibling}}function Sc(e,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var d=n.alternate,v=e,E=n,tt=E.flags;switch(E.tag){case 0:case 11:case 15:Sc(v,E,o),zd(4,E);break;case 1:if(Sc(v,E,o),d=E,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Ft){yn(d,d.return,Ft)}if(d=E,v=d.updateQueue,v!==null){var xt=d.stateNode;try{var Ot=v.shared.hiddenCallbacks;if(Ot!==null)for(v.shared.hiddenCallbacks=null,v=0;v<Ot.length;v++)jp(Ot[v],xt)}catch(Ft){yn(d,d.return,Ft)}}o&&tt&64&&Cg(E),Al(E,E.return);break;case 26:case 27:case 5:Sc(v,E,o),o&&d===null&&tt&4&&qu(E),Al(E,E.return);break;case 12:Sc(v,E,o);break;case 13:Sc(v,E,o),o&&tt&4&&Ag(v,E);break;case 22:E.memoizedState===null&&Sc(v,E,o),Al(E,E.return);break;default:Sc(v,E,o)}n=n.sibling}}function Zu(e,n){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==o&&(e!=null&&e.refCount++,o!=null&&da(o))}function jd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&da(e))}function Pl(e,n,o,d){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Og(e,n,o,d),n=n.sibling}function Og(e,n,o,d){var v=n.flags;switch(n.tag){case 0:case 11:case 15:Pl(e,n,o,d),v&2048&&zd(9,n);break;case 3:Pl(e,n,o,d),v&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&da(e)));break;case 12:if(v&2048){Pl(e,n,o,d),e=n.stateNode;try{var E=n.memoizedProps,tt=E.id,xt=E.onPostCommit;typeof xt=="function"&&xt(tt,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(Ot){yn(n,n.return,Ot)}}else Pl(e,n,o,d);break;case 23:break;case 22:E=n.stateNode,n.memoizedState!==null?E._visibility&4?Pl(e,n,o,d):au(e,n):E._visibility&4?Pl(e,n,o,d):(E._visibility|=4,Bl(e,n,o,d,(n.subtreeFlags&10256)!==0)),v&2048&&Zu(n.alternate,n);break;case 24:Pl(e,n,o,d),v&2048&&jd(n.alternate,n);break;default:Pl(e,n,o,d)}}function Bl(e,n,o,d,v){for(v=v&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var E=e,tt=n,xt=o,Ot=d,Ft=tt.flags;switch(tt.tag){case 0:case 11:case 15:Bl(E,tt,xt,Ot,v),zd(8,tt);break;case 23:break;case 22:var he=tt.stateNode;tt.memoizedState!==null?he._visibility&4?Bl(E,tt,xt,Ot,v):au(E,tt):(he._visibility|=4,Bl(E,tt,xt,Ot,v)),v&&Ft&2048&&Zu(tt.alternate,tt);break;case 24:Bl(E,tt,xt,Ot,v),v&&Ft&2048&&jd(tt.alternate,tt);break;default:Bl(E,tt,xt,Ot,v)}n=n.sibling}}function au(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var o=e,d=n,v=d.flags;switch(d.tag){case 22:au(o,d),v&2048&&Zu(d.alternate,d);break;case 24:au(o,d),v&2048&&jd(d.alternate,d);break;default:au(o,d)}n=n.sibling}}var Qu=8192;function Ju(e){if(e.subtreeFlags&Qu)for(e=e.child;e!==null;)Ah(e),e=e.sibling}function Ah(e){switch(e.tag){case 26:Ju(e),e.flags&Qu&&e.memoizedState!==null&&Uw(No,e.memoizedState,e.memoizedProps);break;case 5:Ju(e);break;case 3:case 4:var n=No;No=Wn(e.stateNode.containerInfo),Ju(e),No=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Qu,Qu=16777216,Ju(e),Qu=n):Ju(e));break;default:Ju(e)}}function Pg(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function $d(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var d=n[o];jn=d,Bg(d,e)}Pg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rh(e),e=e.sibling}function Rh(e){switch(e.tag){case 0:case 11:case 15:$d(e),e.flags&2048&&xc(9,e,e.return);break;case 3:$d(e);break;case 12:$d(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&4&&(e.return===null||e.return.tag!==13)?(n._visibility&=-5,Oh(e)):$d(e);break;default:$d(e)}}function Oh(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var d=n[o];jn=d,Bg(d,e)}Pg(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:xc(8,n,n.return),Oh(n);break;case 22:o=n.stateNode,o._visibility&4&&(o._visibility&=-5,Oh(n));break;default:Oh(n)}e=e.sibling}}function Bg(e,n){for(;jn!==null;){var o=jn;switch(o.tag){case 0:case 11:case 15:xc(8,o,n);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:da(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,jn=d;else t:for(o=e;jn!==null;){d=jn;var v=d.sibling,E=d.return;if(Tg(d),d===o){jn=null;break t}if(v!==null){v.return=E,jn=v;break t}jn=E}}}function vy(e,n,o,d){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ms(e,n,o,d){return new vy(e,n,o,d)}function td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dl(e,n){var o=e.alternate;return o===null?(o=Ms(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&31457280,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o}function _p(e,n){e.flags&=31457282;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,n=o.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Hd(e,n,o,d,v,E){var tt=0;if(d=e,typeof e=="function")td(e)&&(tt=1);else if(typeof e=="string")tt=$w(e,o,_e.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case O:return wc(o.children,v,E,n);case R:tt=8,v|=24;break;case j:return e=Ms(12,o,n,v|2),e.elementType=j,e.lanes=E,e;case _:return e=Ms(13,o,n,v),e.elementType=_,e.lanes=E,e;case J:return e=Ms(19,o,n,v),e.elementType=J,e.lanes=E,e;case ct:return Ud(o,v,E,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:case F:tt=10;break t;case I:tt=9;break t;case z:tt=11;break t;case it:tt=14;break t;case st:tt=16,d=null;break t}tt=29,o=Error(c(130,e===null?"null":typeof e,"")),d=null}return n=Ms(tt,o,n,v),n.elementType=e,n.type=d,n.lanes=E,n}function wc(e,n,o,d){return e=Ms(7,e,d,n),e.lanes=o,e}function Ud(e,n,o,d){e=Ms(22,e,d,n),e.elementType=ct,e.lanes=o;var v={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var E=v._current;if(E===null)throw Error(c(456));if((v._pendingVisibility&2)===0){var tt=Sn(E,2);tt!==null&&(v._pendingVisibility|=2,Ts(tt,E,2))}},attach:function(){var E=v._current;if(E===null)throw Error(c(456));if((v._pendingVisibility&2)!==0){var tt=Sn(E,2);tt!==null&&(v._pendingVisibility&=-3,Ts(tt,E,2))}}};return e.stateNode=v,e}function Fd(e,n,o){return e=Ms(6,e,null,n),e.lanes=o,e}function Cc(e,n,o){return n=Ms(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ll(e){e.flags|=4}function Gd(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xx(n)){if(n=Qr.current,n!==null&&(($i&4194176)===$i?sr!==null:($i&62914560)!==$i&&($i&536870912)===0||n!==sr))throw Oo=Ro,$a;e.flags|=8192}}function lu(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Uc():536870912,e.lanes|=n,Tc|=n)}function _d(e,n){if(!Oi)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:d.sibling=null}}function _n(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,d=0;if(n)for(var v=e.child;v!==null;)o|=v.lanes|v.childLanes,d|=v.subtreeFlags&31457280,d|=v.flags&31457280,v.return=e,v=v.sibling;else for(v=e.child;v!==null;)o|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=e,v=v.sibling;return e.subtreeFlags|=d,e.childLanes=o,n}function cu(e,n,o){var d=n.pendingProps;switch(aa(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(n),null;case 1:return _n(n),null;case 3:return o=n.stateNode,d=null,e!==null&&(d=e.memoizedState.cache),n.memoizedState.cache!==d&&(n.flags|=2048),fa(an),Di(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(yl(n)?Ll(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Zr!==null&&(qp(Zr),Zr=null))),_n(n),null;case 26:return o=n.memoizedState,e===null?(Ll(n),o!==null?(_n(n),Gd(n,o)):(_n(n),n.flags&=-16777217)):o?o!==e.memoizedState?(Ll(n),_n(n),Gd(n,o)):(_n(n),n.flags&=-16777217):(e.memoizedProps!==d&&Ll(n),_n(n),n.flags&=-16777217),null;case 27:bi(n),o=Ei.current;var v=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==d&&Ll(n);else{if(!d){if(n.stateNode===null)throw Error(c(166));return _n(n),null}e=_e.current,yl(n)?Fs(n):(e=Fi(v,d,o),n.stateNode=e,Ll(n))}return _n(n),null;case 5:if(bi(n),o=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==d&&Ll(n);else{if(!d){if(n.stateNode===null)throw Error(c(166));return _n(n),null}if(e=_e.current,yl(n))Fs(n);else{switch(v=$t(Ei.current),e){case 1:e=v.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:e=v.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":e=v.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":e=v.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":e=v.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof d.is=="string"?v.createElement("select",{is:d.is}):v.createElement("select"),d.multiple?e.multiple=!0:d.size&&(e.size=d.size);break;default:e=typeof d.is=="string"?v.createElement(o,{is:d.is}):v.createElement(o)}}e[nr]=n,e[Cr]=d;t:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)e.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break t;for(;v.sibling===null;){if(v.return===null||v.return===n)break t;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=e;t:switch(Rt(e,o,d),o){case"button":case"input":case"select":case"textarea":e=!!d.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&Ll(n)}}return _n(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==d&&Ll(n);else{if(typeof d!="string"&&n.stateNode===null)throw Error(c(166));if(e=Ei.current,yl(n)){if(e=n.stateNode,o=n.memoizedProps,d=null,v=Zn,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}e[nr]=n,e=!!(e.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||rt(e.nodeValue,o)),e||Us(n)}else e=$t(e).createTextNode(d),e[nr]=n,n.stateNode=e}return _n(n),null;case 13:if(d=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(v=yl(n),d!==null&&d.dehydrated!==null){if(e===null){if(!v)throw Error(c(318));if(v=n.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(c(317));v[nr]=n}else bl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_n(n),v=!1}else Zr!==null&&(qp(Zr),Zr=null),v=!0;if(!v)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=o,n;if(o=d!==null,e=e!==null&&e.memoizedState!==null,o){d=n.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool);var E=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(E=d.memoizedState.cachePool.pool),E!==v&&(d.flags|=2048)}return o!==e&&o&&(n.child.flags|=8192),lu(n,n.updateQueue),_n(n),null;case 4:return Di(),e===null&&f(n.stateNode.containerInfo),_n(n),null;case 10:return fa(n.type),_n(n),null;case 19:if(Ke(On),v=n.memoizedState,v===null)return _n(n),null;if(d=(n.flags&128)!==0,E=v.rendering,E===null)if(d)_d(v,!1);else{if(Tn!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(E=Gs(e),E!==null){for(n.flags|=128,_d(v,!1),e=E.updateQueue,n.updateQueue=e,lu(n,e),n.subtreeFlags=0,e=o,o=n.child;o!==null;)_p(o,e),o=o.sibling;return Be(On,On.current&1|2),n.child}e=e.sibling}v.tail!==null&&Vi()>Dh&&(n.flags|=128,d=!0,_d(v,!1),n.lanes=4194304)}else{if(!d)if(e=Gs(E),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,lu(n,e),_d(v,!0),v.tail===null&&v.tailMode==="hidden"&&!E.alternate&&!Oi)return _n(n),null}else 2*Vi()-v.renderingStartTime>Dh&&o!==536870912&&(n.flags|=128,d=!0,_d(v,!1),n.lanes=4194304);v.isBackwards?(E.sibling=n.child,n.child=E):(e=v.last,e!==null?e.sibling=E:n.child=E,v.last=E)}return v.tail!==null?(n=v.tail,v.rendering=n,v.tail=n.sibling,v.renderingStartTime=Vi(),n.sibling=null,e=On.current,Be(On,d?e&1|2:e&1),n):(_n(n),null);case 22:case 23:return pr(n),dc(),d=n.memoizedState!==null,e!==null?e.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(o&536870912)!==0&&(n.flags&128)===0&&(_n(n),n.subtreeFlags&6&&(n.flags|=8192)):_n(n),o=n.updateQueue,o!==null&&lu(n,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==o&&(n.flags|=2048),e!==null&&Ke(Mt),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),fa(an),_n(n),null;case 25:return null}throw Error(c(156,n.tag))}function Dg(e,n){switch(aa(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return fa(an),Di(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return bi(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(c(340));bl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ke(On),null;case 4:return Di(),null;case 10:return fa(n.type),null;case 22:case 23:return pr(n),dc(),e!==null&&Ke(Mt),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return fa(an),null;case 25:return null;default:return null}}function Ph(e,n){switch(aa(n),n.tag){case 3:fa(an),Di();break;case 26:case 27:case 5:bi(n);break;case 4:Di();break;case 13:pr(n);break;case 19:Ke(On);break;case 10:fa(n.type);break;case 22:case 23:pr(n),dc(),e!==null&&Ke(Mt);break;case 24:fa(an)}}var Lg={getCacheForType:function(e){var n=fs(an),o=n.data.get(e);return o===void 0&&(o=e(),n.data.set(e,o)),o}},kc=typeof WeakMap=="function"?WeakMap:Map,Pn=0,nn=null,Hi=null,$i=0,Mn=0,_s=null,zo=!1,ed=!1,Bh=!1,Il=0,Tn=0,Mc=0,uu=0,Wp=0,jo=0,Tc=0,Wd=null,ma=null,Vp=!1,Xp=0,Dh=1/0,du=null,Nl=null,Lh=!1,zl=null,Ec=0,Yp=0,Ih=null,Vd=0,Nh=null;function po(){if((Pn&2)!==0&&$i!==0)return $i&-$i;if(Et.T!==null){var e=T;return e!==0?e:of()}return _l()}function Ig(){jo===0&&(jo=($i&536870912)===0||Oi?Ks():536870912);var e=Qr.current;return e!==null&&(e.flags|=32),jo}function Ts(e,n,o){(e===nn&&Mn===2||e.cancelPendingCommit!==null)&&(hu(e,0),qa(e,$i,jo,!1)),rl(e,o),((Pn&2)===0||e!==nn)&&(e===nn&&((Pn&2)===0&&(uu|=o),Tn===4&&qa(e,$i,jo,!1)),ya(e))}function Ng(e,n,o){if((Pn&6)!==0)throw Error(c(327));var d=!o&&(n&60)===0&&(n&e.expiredLanes)===0||qs(e,n),v=d?jg(e,n):Jp(e,n,!0),E=d;do{if(v===0){ed&&!d&&qa(e,n,0,!1);break}else if(v===6)qa(e,n,0,!zo);else{if(o=e.current.alternate,E&&!Sy(o)){v=Jp(e,n,!1),E=!1;continue}if(v===2){if(E=n,e.errorRecoveryDisabledLanes&E)var tt=0;else tt=e.pendingLanes&-536870913,tt=tt!==0?tt:tt&536870912?536870912:0;if(tt!==0){n=tt;t:{var xt=e;v=Wd;var Ot=xt.current.memoizedState.isDehydrated;if(Ot&&(hu(xt,tt).flags|=256),tt=Jp(xt,tt,!1),tt!==2){if(Bh&&!Ot){xt.errorRecoveryDisabledLanes|=E,uu|=E,v=4;break t}E=ma,ma=v,E!==null&&qp(E)}v=tt}if(E=!1,v!==2)continue}}if(v===1){hu(e,0),qa(e,n,0,!0);break}t:{switch(d=e,v){case 0:case 1:throw Error(c(345));case 4:if((n&4194176)===n){qa(d,n,jo,!zo);break t}break;case 2:ma=null;break;case 3:case 5:break;default:throw Error(c(329))}if(d.finishedWork=o,d.finishedLanes=n,(n&62914560)===n&&(E=Xp+300-Vi(),10<E)){if(qa(d,n,jo,!zo),es(d,0)!==0)break t;d.timeoutHandle=Ne(Kp.bind(null,d,o,ma,du,Vp,n,jo,uu,Tc,zo,2,-0,0),E);break t}Kp(d,o,ma,du,Vp,n,jo,uu,Tc,zo,0,-0,0)}}break}while(!0);ya(e)}function qp(e){ma===null?ma=e:ma.push.apply(ma,e)}function Kp(e,n,o,d,v,E,tt,xt,Ot,Ft,he,Me,ee){var ue=n.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(uf={stylesheets:null,count:0,unsuspend:Hw},Ah(n),n=Fw(),n!==null)){e.cancelPendingCommit=n($g.bind(null,e,o,d,v,tt,xt,Ot,1,Me,ee)),qa(e,E,tt,!Ft);return}$g(e,o,d,v,tt,xt,Ot,he,Me,ee)}function Sy(e){for(var n=e;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var v=o[d],E=v.getSnapshot;v=v.value;try{if(!Kn(E(),v))return!1}catch{return!1}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function qa(e,n,o,d){n&=~Wp,n&=~uu,e.suspendedLanes|=n,e.pingedLanes&=~n,d&&(e.warmLanes|=n),d=e.expirationTimes;for(var v=n;0<v;){var E=31-ki(v),tt=1<<E;d[E]=-1,v&=~tt}o!==0&&Tu(e,o,n)}function zh(){return(Pn&6)===0?(rd(0),!1):!0}function Zp(){if(Hi!==null){if(Mn===0)var e=Hi.return;else e=Hi,Lo=su=null,X(e),Ha=null,Cl=0,e=Hi;for(;e!==null;)Ph(e.alternate,e),e=e.return;Hi=null}}function hu(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;o!==-1&&(e.timeoutHandle=-1,Qe(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),Zp(),nn=e,Hi=o=Dl(e.current,null),$i=n,Mn=0,_s=null,zo=!1,ed=qs(e,n),Bh=!1,Tc=jo=Wp=uu=Mc=Tn=0,ma=Wd=null,Vp=!1,(n&8)!==0&&(n|=n&32);var d=e.entangledLanes;if(d!==0)for(e=e.entanglements,d&=n;0<d;){var v=31-ki(d),E=1<<v;n|=e[v],d&=~E}return Il=n,oo(),o}function jh(e,n){Xt=null,Et.H=pa,n===ja?(n=us(),Mn=3):n===$a?(n=us(),Mn=4):Mn=n===fh?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,_s=n,Hi===null&&(Tn=1,hh(e,Ar(n,e.current)))}function zg(){var e=Et.H;return Et.H=pa,e===null?pa:e}function $h(){var e=Et.A;return Et.A=Lg,e}function Qp(){Tn=4,zo||($i&4194176)!==$i&&Qr.current!==null||(ed=!0),(Mc&134217727)===0&&(uu&134217727)===0||nn===null||qa(nn,$i,jo,!1)}function Jp(e,n,o){var d=Pn;Pn|=2;var v=zg(),E=$h();(nn!==e||$i!==n)&&(du=null,hu(e,n)),n=!1;var tt=Tn;t:do try{if(Mn!==0&&Hi!==null){var xt=Hi,Ot=_s;switch(Mn){case 8:Zp(),tt=6;break t;case 3:case 2:case 6:Qr.current===null&&(n=!0);var Ft=Mn;if(Mn=0,_s=null,id(e,xt,Ot,Ft),o&&ed){tt=0;break t}break;default:Ft=Mn,Mn=0,_s=null,id(e,xt,Ot,Ft)}}wy(),tt=Tn;break}catch(he){jh(e,he)}while(!0);return n&&e.shellSuspendCounter++,Lo=su=null,Pn=d,Et.H=v,Et.A=E,Hi===null&&(nn=null,$i=0,oo()),tt}function wy(){for(;Hi!==null;)tf(Hi)}function jg(e,n){var o=Pn;Pn|=2;var d=zg(),v=$h();nn!==e||$i!==n?(du=null,Dh=Vi()+500,hu(e,n)):ed=qs(e,n);t:do try{if(Mn!==0&&Hi!==null){n=Hi;var E=_s;e:switch(Mn){case 1:Mn=0,_s=null,id(e,n,E,1);break;case 2:if(vl(E)){Mn=0,_s=null,ef(n);break}n=function(){Mn===2&&nn===e&&(Mn=7),ya(e)},E.then(n,n);break t;case 3:Mn=7;break t;case 4:Mn=5;break t;case 7:vl(E)?(Mn=0,_s=null,ef(n)):(Mn=0,_s=null,id(e,n,E,7));break;case 5:var tt=null;switch(Hi.tag){case 26:tt=Hi.memoizedState;case 5:case 27:var xt=Hi;if(!tt||Xx(tt)){Mn=0,_s=null;var Ot=xt.sibling;if(Ot!==null)Hi=Ot;else{var Ft=xt.return;Ft!==null?(Hi=Ft,Hh(Ft)):Hi=null}break e}}Mn=0,_s=null,id(e,n,E,5);break;case 6:Mn=0,_s=null,id(e,n,E,6);break;case 8:Zp(),Tn=6;break t;default:throw Error(c(462))}}Cy();break}catch(he){jh(e,he)}while(!0);return Lo=su=null,Et.H=d,Et.A=v,Pn=o,Hi!==null?0:(nn=null,$i=0,oo(),Tn)}function Cy(){for(;Hi!==null&&!Ye();)tf(Hi)}function tf(e){var n=wg(e.alternate,e,Il);e.memoizedProps=e.pendingProps,n===null?Hh(e):Hi=n}function ef(e){var n=e,o=n.alternate;switch(n.tag){case 15:case 0:n=Op(o,n,n.pendingProps,n.type,void 0,$i);break;case 11:n=Op(o,n,n.pendingProps,n.type.render,n.ref,$i);break;case 5:X(n);default:Ph(o,n),n=Hi=_p(n,Il),n=wg(o,n,Il)}e.memoizedProps=e.pendingProps,n===null?Hh(e):Hi=n}function id(e,n,o,d){Lo=su=null,X(n),Ha=null,Cl=0;var v=n.return;try{if(vg(e,v,n,o,$i)){Tn=1,hh(e,Ar(o,e.current)),Hi=null;return}}catch(E){if(v!==null)throw Hi=v,E;Tn=1,hh(e,Ar(o,e.current)),Hi=null;return}n.flags&32768?(Oi||d===1?e=!0:ed||($i&536870912)!==0?e=!1:(zo=e=!0,(d===2||d===3||d===6)&&(d=Qr.current,d!==null&&d.tag===13&&(d.flags|=16384))),nf(n,e)):Hh(n)}function Hh(e){var n=e;do{if((n.flags&32768)!==0){nf(n,zo);return}e=n.return;var o=cu(n.alternate,n,Il);if(o!==null){Hi=o;return}if(n=n.sibling,n!==null){Hi=n;return}Hi=n=e}while(n!==null);Tn===0&&(Tn=5)}function nf(e,n){do{var o=Dg(e.alternate,e);if(o!==null){o.flags&=32767,Hi=o;return}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(e=e.sibling,e!==null)){Hi=e;return}Hi=e=o}while(e!==null);Tn=6,Hi=null}function $g(e,n,o,d,v,E,tt,xt,Ot,Ft){var he=Et.T,Me=ge.p;try{ge.p=2,Et.T=null,ky(e,n,o,d,Me,v,E,tt,xt,Ot,Ft)}finally{Et.T=he,ge.p=Me}}function ky(e,n,o,d,v,E,tt,xt){do pu();while(zl!==null);if((Pn&6)!==0)throw Error(c(327));var Ot=e.finishedWork;if(d=e.finishedLanes,Ot===null)return null;if(e.finishedWork=null,e.finishedLanes=0,Ot===e.current)throw Error(c(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var Ft=Ot.lanes|Ot.childLanes;if(Ft|=Kc,Fc(e,d,Ft,E,tt,xt),e===nn&&(Hi=nn=null,$i=0),(Ot.subtreeFlags&10256)===0&&(Ot.flags&10256)===0||Lh||(Lh=!0,Yp=Ft,Ih=o,_g(Xi,function(){return pu(),null})),o=(Ot.flags&15990)!==0,(Ot.subtreeFlags&15990)!==0||o?(o=Et.T,Et.T=null,E=ge.p,ge.p=2,tt=Pn,Pn|=4,by(e,Ot),Rg(Ot,e),Hu(Ut,e.containerInfo),em=!!Lt,Ut=Lt=null,e.current=Ot,Mg(e,Ot.alternate,Ot),sn(),Pn=tt,ge.p=E,Et.T=o):e.current=Ot,Lh?(Lh=!1,zl=e,Ec=d):Hg(e,Ft),Ft=e.pendingLanes,Ft===0&&(Nl=null),ti(Ot.stateNode),ya(e),n!==null)for(v=e.onRecoverableError,Ot=0;Ot<n.length;Ot++)Ft=n[Ot],v(Ft.value,{componentStack:Ft.stack});return(Ec&3)!==0&&pu(),Ft=e.pendingLanes,(d&4194218)!==0&&(Ft&42)!==0?e===Nh?Vd++:(Vd=0,Nh=e):Vd=0,rd(0),null}function Hg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,da(n)))}function pu(){if(zl!==null){var e=zl,n=Yp;Yp=0;var o=Au(Ec),d=Et.T,v=ge.p;try{if(ge.p=32>o?32:o,Et.T=null,zl===null)var E=!1;else{o=Ih,Ih=null;var tt=zl,xt=Ec;if(zl=null,Ec=0,(Pn&6)!==0)throw Error(c(331));var Ot=Pn;if(Pn|=4,Rh(tt.current),Og(tt,tt.current,xt,o),Pn=Ot,rd(0,!1),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(cr,tt)}catch{}E=!0}return E}finally{ge.p=v,Et.T=d,Hg(e,n)}}return!1}function rf(e,n,o){n=Ar(o,n),n=Ep(e.stateNode,n,2),e=Xa(e,n,2),e!==null&&(rl(e,2),ya(e))}function yn(e,n,o){if(e.tag===3)rf(e,e,o);else for(;n!==null;){if(n.tag===3){rf(n,e,o);break}else if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Nl===null||!Nl.has(d))){e=Ar(o,e),o=xg(2),d=Xa(n,o,2),d!==null&&(ph(o,d,n,e),rl(d,2),ya(d));break}}n=n.return}}function sf(e,n,o){var d=e.pingCache;if(d===null){d=e.pingCache=new kc;var v=new Set;d.set(n,v)}else v=d.get(n),v===void 0&&(v=new Set,d.set(n,v));v.has(o)||(Bh=!0,v.add(o),e=Ug.bind(null,e,n,o),n.then(e,e))}function Ug(e,n,o){var d=e.pingCache;d!==null&&d.delete(n),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,nn===e&&($i&o)===o&&(Tn===4||Tn===3&&($i&62914560)===$i&&300>Vi()-Xp?(Pn&2)===0&&hu(e,0):Wp|=o,Tc===$i&&(Tc=0)),ya(e)}function Fg(e,n){n===0&&(n=Uc()),e=Sn(e,n),e!==null&&(rl(e,n),ya(e))}function Gg(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Fg(e,o)}function My(e,n){var o=0;switch(e.tag){case 13:var d=e.stateNode,v=e.memoizedState;v!==null&&(o=v.retryLane);break;case 19:d=e.stateNode;break;case 22:d=e.stateNode._retryCache;break;default:throw Error(c(314))}d!==null&&d.delete(n),Fg(e,o)}function _g(e,n){return Zi(e,n)}var Xd=null,nd=null,Uh=!1,Fh=!1,Yd=!1,fu=0;function ya(e){e!==nd&&e.next===null&&(nd===null?Xd=nd=e:nd=nd.next=e),Fh=!0,Uh||(Uh=!0,Ey(Ty))}function rd(e,n){if(!Yd&&Fh){Yd=!0;do for(var o=!1,d=Xd;d!==null;){if(e!==0){var v=d.pendingLanes;if(v===0)var E=0;else{var tt=d.suspendedLanes,xt=d.pingedLanes;E=(1<<31-ki(42|e)+1)-1,E&=v&~(tt&~xt),E=E&201326677?E&201326677|1:E?E|2:0}E!==0&&(o=!0,Vg(d,E))}else E=$i,E=es(d,d===nn?E:0),(E&3)===0||qs(d,E)||(o=!0,Vg(d,E));d=d.next}while(o);Yd=!1}}function Ty(){Fh=Uh=!1;var e=0;fu!==0&&(pe()&&(e=fu),fu=0);for(var n=Vi(),o=null,d=Xd;d!==null;){var v=d.next,E=Wg(d,n);E===0?(d.next=null,o===null?Xd=v:o.next=v,v===null&&(nd=o)):(o=d,(e!==0||(E&3)!==0)&&(Fh=!0)),d=v}rd(e)}function Wg(e,n){for(var o=e.suspendedLanes,d=e.pingedLanes,v=e.expirationTimes,E=e.pendingLanes&-62914561;0<E;){var tt=31-ki(E),xt=1<<tt,Ot=v[tt];Ot===-1?((xt&o)===0||(xt&d)!==0)&&(v[tt]=wr(xt,n)):Ot<=n&&(e.expiredLanes|=xt),E&=~xt}if(n=nn,o=$i,o=es(e,e===n?o:0),d=e.callbackNode,o===0||e===n&&Mn===2||e.cancelPendingCommit!==null)return d!==null&&d!==null&&qi(d),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||qs(e,o)){if(n=o&-o,n===e.callbackPriority)return n;switch(d!==null&&qi(d),Au(o)){case 2:case 8:o=tn;break;case 32:o=Xi;break;case 268435456:o=In;break;default:o=Xi}return d=Gh.bind(null,e),o=Zi(o,d),e.callbackPriority=n,e.callbackNode=o,n}return d!==null&&d!==null&&qi(d),e.callbackPriority=2,e.callbackNode=null,2}function Gh(e,n){var o=e.callbackNode;if(pu()&&e.callbackNode!==o)return null;var d=$i;return d=es(e,e===nn?d:0),d===0?null:(Ng(e,d,n),Wg(e,Vi()),e.callbackNode!=null&&e.callbackNode===o?Gh.bind(null,e):null)}function Vg(e,n){if(pu())return null;Ng(e,n,!0)}function Ey(e){Xe(function(){(Pn&6)!==0?Zi(lr,e):e()})}function of(){return fu===0&&(fu=Ks()),fu}function Xg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:to(""+e)}function Yg(e,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,e.id&&o.setAttribute("form",e.id),n.parentNode.insertBefore(o,n),e=new FormData(e),o.parentNode.removeChild(o),e}function Ay(e,n,o,d,v){if(n==="submit"&&o&&o.stateNode===v){var E=Xg((v[Cr]||null).action),tt=d.submitter;tt&&(n=(n=tt[Cr]||null)?Xg(n.formAction):tt.getAttribute("formAction"),n!==null&&(E=n,tt=null));var xt=new ic("action","action",null,d,v);e.push({event:xt,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(fu!==0){var Ot=tt?Yg(v,tt):new FormData(v);lh(o,{pending:!0,data:Ot,method:v.method,action:E},null,Ot)}}else typeof E=="function"&&(xt.preventDefault(),Ot=tt?Yg(v,tt):new FormData(v),lh(o,{pending:!0,data:Ot,method:v.method,action:E},E,Ot))},currentTarget:v}]})}}for(var sd=0;sd<ws.length;sd++){var af=ws[sd],Ry=af.toLowerCase(),Oy=af[0].toUpperCase()+af.slice(1);dr(Ry,"on"+Oy)}dr(ia,"onAnimationEnd"),dr(na,"onAnimationIteration"),dr(ra,"onAnimationStart"),dr("dblclick","onDoubleClick"),dr("focusin","onFocus"),dr("focusout","onBlur"),dr(Od,"onTransitionRun"),dr(Pd,"onTransitionStart"),dr(ls,"onTransitionCancel"),dr(Kr,"onTransitionEnd"),Qs("onMouseEnter",["mouseout","mouseover"]),Qs("onMouseLeave",["mouseout","mouseover"]),Qs("onPointerEnter",["pointerout","pointerover"]),Qs("onPointerLeave",["pointerout","pointerover"]),Fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var w="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),i=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(w));function s(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var d=e[o],v=d.event;d=d.listeners;t:{var E=void 0;if(n)for(var tt=d.length-1;0<=tt;tt--){var xt=d[tt],Ot=xt.instance,Ft=xt.currentTarget;if(xt=xt.listener,Ot!==E&&v.isPropagationStopped())break t;E=xt,v.currentTarget=Ft;try{E(v)}catch(he){Do(he)}v.currentTarget=null,E=Ot}else for(tt=0;tt<d.length;tt++){if(xt=d[tt],Ot=xt.instance,Ft=xt.currentTarget,xt=xt.listener,Ot!==E&&v.isPropagationStopped())break t;E=xt,v.currentTarget=Ft;try{E(v)}catch(he){Do(he)}v.currentTarget=null,E=Ot}}}}function l(e,n){var o=n[wa];o===void 0&&(o=n[wa]=new Set);var d=e+"__bubble";o.has(d)||(g(n,e,2,!1),o.add(d))}function u(e,n,o){var d=0;n&&(d|=4),g(o,e,d,n)}var h="_reactListening"+Math.random().toString(36).slice(2);function f(e){if(!e[h]){e[h]=!0,bo.forEach(function(o){o!=="selectionchange"&&(i.has(o)||u(o,!1,e),u(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[h]||(n[h]=!0,u("selectionchange",!1,n))}}function g(e,n,o,d){switch(Jx(n)){case 2:var v=Ww;break;case 8:v=Vw;break;default:v=Iy}o=v.bind(null,n,o,e),v=void 0,!Vo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(v=!0),d?v!==void 0?e.addEventListener(n,o,{capture:!0,passive:v}):e.addEventListener(n,o,!0):v!==void 0?e.addEventListener(n,o,{passive:v}):e.addEventListener(n,o,!1)}function x(e,n,o,d,v){var E=d;if((n&1)===0&&(n&2)===0&&d!==null)t:for(;;){if(d===null)return;var tt=d.tag;if(tt===3||tt===4){var xt=d.stateNode.containerInfo;if(xt===v||xt.nodeType===8&&xt.parentNode===v)break;if(tt===4)for(tt=d.return;tt!==null;){var Ot=tt.tag;if((Ot===3||Ot===4)&&(Ot=tt.stateNode.containerInfo,Ot===v||Ot.nodeType===8&&Ot.parentNode===v))return;tt=tt.return}for(;xt!==null;){if(tt=Uo(xt),tt===null)return;if(Ot=tt.tag,Ot===5||Ot===6||Ot===26||Ot===27){d=E=tt;continue t}xt=xt.parentNode}}d=d.return}Os(function(){var Ft=E,he=Rs(o),Me=[];t:{var ee=za.get(e);if(ee!==void 0){var ue=ic,ii=e;switch(e){case"keypress":if(eo(o)===0)break t;case"keydown":case"keyup":ue=Mr;break;case"focusin":ii="focus",ue=kr;break;case"focusout":ii="blur",ue=kr;break;case"beforeblur":case"afterblur":ue=kr;break;case"click":if(o.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=Ba;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=Yo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=qo;break;case ia:case na:case ra:ue=Td;break;case Kr:ue=Bs;break;case"scroll":case"scrollend":ue=Fn;break;case"wheel":ue=Ds;break;case"copy":case"cut":case"paste":ue=Bu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=Vc;break;case"toggle":case"beforetoggle":ue=Lu}var Pi=(n&4)!==0,yr=!Pi&&(e==="scroll"||e==="scrollend"),Yt=Pi?ee!==null?ee+"Capture":null:ee;Pi=[];for(var Ht=Ft,Zt;Ht!==null;){var ve=Ht;if(Zt=ve.stateNode,ve=ve.tag,ve!==5&&ve!==26&&ve!==27||Zt===null||Yt===null||(ve=Wo(Ht,Yt),ve!=null&&Pi.push(C(Ht,ve,Zt))),yr)break;Ht=Ht.return}0<Pi.length&&(ee=new ue(ee,ii,null,o,he),Me.push({event:ee,listeners:Pi}))}}if((n&7)===0){t:{if(ee=e==="mouseover"||e==="pointerover",ue=e==="mouseout"||e==="pointerout",ee&&o!==Ql&&(ii=o.relatedTarget||o.fromElement)&&(Uo(ii)||ii[Sa]))break t;if((ue||ee)&&(ee=he.window===he?he:(ee=he.ownerDocument)?ee.defaultView||ee.parentWindow:window,ue?(ii=o.relatedTarget||o.toElement,ue=Ft,ii=ii?Uo(ii):null,ii!==null&&(yr=te(ii),Pi=ii.tag,ii!==yr||Pi!==5&&Pi!==27&&Pi!==6)&&(ii=null)):(ue=null,ii=Ft),ue!==ii)){if(Pi=Ba,ve="onMouseLeave",Yt="onMouseEnter",Ht="mouse",(e==="pointerout"||e==="pointerover")&&(Pi=Vc,ve="onPointerLeave",Yt="onPointerEnter",Ht="pointer"),yr=ue==null?ee:yo(ue),Zt=ii==null?ee:yo(ii),ee=new Pi(ve,Ht+"leave",ue,o,he),ee.target=yr,ee.relatedTarget=Zt,ve=null,Uo(he)===Ft&&(Pi=new Pi(Yt,Ht+"enter",ii,o,he),Pi.target=Zt,Pi.relatedTarget=yr,ve=Pi),yr=ve,ue&&ii)e:{for(Pi=ue,Yt=ii,Ht=0,Zt=Pi;Zt;Zt=M(Zt))Ht++;for(Zt=0,ve=Yt;ve;ve=M(ve))Zt++;for(;0<Ht-Zt;)Pi=M(Pi),Ht--;for(;0<Zt-Ht;)Yt=M(Yt),Zt--;for(;Ht--;){if(Pi===Yt||Yt!==null&&Pi===Yt.alternate)break e;Pi=M(Pi),Yt=M(Yt)}Pi=null}else Pi=null;ue!==null&&N(Me,ee,ue,Pi,!1),ii!==null&&yr!==null&&N(Me,yr,ii,Pi,!0)}}t:{if(ee=Ft?yo(Ft):window,ue=ee.nodeName&&ee.nodeName.toLowerCase(),ue==="select"||ue==="input"&&ee.type==="file")var qe=Mo;else if(qn(ee))if(ac)qe=Rd;else{qe=Ad;var Wi=Qo}else ue=ee.nodeName,!ue||ue.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?Ft&&rs(Ft.elementType)&&(qe=Mo):qe=zu;if(qe&&(qe=qe(e,Ft))){ko(Me,qe,o,he);break t}Wi&&Wi(e,ee,Ft),e==="focusout"&&Ft&&ee.type==="number"&&Ft.memoizedProps.value!=null&&Nr(ee,"number",ee.value)}switch(Wi=Ft?yo(Ft):window,e){case"focusin":(qn(Wi)||Wi.contentEditable==="true")&&(Jo=Wi,ro=Ft,To=null);break;case"focusout":To=ro=Jo=null;break;case"mousedown":ta=!0;break;case"contextmenu":case"mouseup":case"dragend":ta=!1,fl(Me,o,he);break;case"selectionchange":if(Uu)break;case"keydown":case"keyup":fl(Me,o,he)}var li;if(Xc)t:{switch(e){case"compositionstart":var yi="onCompositionStart";break t;case"compositionend":yi="onCompositionEnd";break t;case"compositionupdate":yi="onCompositionUpdate";break t}yi=void 0}else Is?Ls(e,o)&&(yi="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(yi="onCompositionStart");yi&&(Zo&&o.locale!=="ko"&&(Is||yi!=="onCompositionStart"?yi==="onCompositionEnd"&&Is&&(li=Aa()):(wo=he,tc="value"in wo?wo.value:wo.textContent,Is=!0)),Wi=P(Ft,yi),0<Wi.length&&(yi=new vs(yi,e,null,o,he),Me.push({event:yi,listeners:Wi}),li?yi.data=li:(li=Er(o),li!==null&&(yi.data=li)))),(li=vn?io(e,o):Ns(e,o))&&(yi=P(Ft,"onBeforeInput"),0<yi.length&&(Wi=new vs("onBeforeInput","beforeinput",null,o,he),Me.push({event:Wi,listeners:yi}),Wi.data=li)),Ay(Me,e,Ft,o,he)}s(Me,n)})}function C(e,n,o){return{instance:e,listener:n,currentTarget:o}}function P(e,n){for(var o=n+"Capture",d=[];e!==null;){var v=e,E=v.stateNode;v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=Wo(e,o),v!=null&&d.unshift(C(e,v,E)),v=Wo(e,n),v!=null&&d.push(C(e,v,E))),e=e.return}return d}function M(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function N(e,n,o,d,v){for(var E=n._reactName,tt=[];o!==null&&o!==d;){var xt=o,Ot=xt.alternate,Ft=xt.stateNode;if(xt=xt.tag,Ot!==null&&Ot===d)break;xt!==5&&xt!==26&&xt!==27||Ft===null||(Ot=Ft,v?(Ft=Wo(o,E),Ft!=null&&tt.unshift(C(o,Ft,Ot))):v||(Ft=Wo(o,E),Ft!=null&&tt.push(C(o,Ft,Ot)))),o=o.return}tt.length!==0&&e.push({event:n,listeners:tt})}var U=/\r\n?/g,V=/\u0000|\uFFFD/g;function et(e){return(typeof e=="string"?e:""+e).replace(U,`
`).replace(V,"")}function rt(e,n){return n=et(n),et(e)===n}function Q(){}function dt(e,n,o,d,v,E){switch(o){case"children":typeof d=="string"?n==="body"||n==="textarea"&&d===""||_o(e,d):(typeof d=="number"||typeof d=="bigint")&&n!=="body"&&_o(e,""+d);break;case"className":xo(e,"class",d);break;case"tabIndex":xo(e,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":xo(e,o,d);break;case"style":Ma(e,d,E);break;case"data":if(n!=="object"){xo(e,"data",d);break}case"src":case"href":if(d===""&&(n!=="a"||o!=="href")){e.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){e.removeAttribute(o);break}d=to(""+d),e.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){e.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(o==="formAction"?(n!=="input"&&dt(e,n,"name",v.name,v,null),dt(e,n,"formEncType",v.formEncType,v,null),dt(e,n,"formMethod",v.formMethod,v,null),dt(e,n,"formTarget",v.formTarget,v,null)):(dt(e,n,"encType",v.encType,v,null),dt(e,n,"method",v.method,v,null),dt(e,n,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){e.removeAttribute(o);break}d=to(""+d),e.setAttribute(o,d);break;case"onClick":d!=null&&(e.onclick=Q);break;case"onScroll":d!=null&&l("scroll",e);break;case"onScrollEnd":d!=null&&l("scrollend",e);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(c(61));if(o=d.__html,o!=null){if(v.children!=null)throw Error(c(60));e.innerHTML=o}}break;case"multiple":e.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":e.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){e.removeAttribute("xlink:href");break}o=to(""+d),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?e.setAttribute(o,""+d):e.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":d===!0?e.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?e.setAttribute(o,d):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?e.setAttribute(o,d):e.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?e.removeAttribute(o):e.setAttribute(o,d);break;case"popover":l("beforetoggle",e),l("toggle",e),ql(e,"popover",d);break;case"xlinkActuate":Lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Lr(e,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Lr(e,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Lr(e,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Lr(e,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":ql(e,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Ta.get(o)||o,ql(e,o,d))}}function ft(e,n,o,d,v,E){switch(o){case"style":Ma(e,d,E);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(c(61));if(o=d.__html,o!=null){if(v.children!=null)throw Error(c(60));e.innerHTML=o}}break;case"children":typeof d=="string"?_o(e,d):(typeof d=="number"||typeof d=="bigint")&&_o(e,""+d);break;case"onScroll":d!=null&&l("scroll",e);break;case"onScrollEnd":d!=null&&l("scrollend",e);break;case"onClick":d!=null&&(e.onclick=Q);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yl.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(v=o.endsWith("Capture"),n=o.slice(2,v?o.length-7:void 0),E=e[Cr]||null,E=E!=null?E[o]:null,typeof E=="function"&&e.removeEventListener(n,E,v),typeof d=="function")){typeof E!="function"&&E!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(n,d,v);break t}o in e?e[o]=d:d===!0?e.setAttribute(o,""):ql(e,o,d)}}}function Rt(e,n,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":l("error",e),l("load",e);var d=!1,v=!1,E;for(E in o)if(o.hasOwnProperty(E)){var tt=o[E];if(tt!=null)switch(E){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:dt(e,n,E,tt,o,null)}}v&&dt(e,n,"srcSet",o.srcSet,o,null),d&&dt(e,n,"src",o.src,o,null);return;case"input":l("invalid",e);var xt=E=tt=v=null,Ot=null,Ft=null;for(d in o)if(o.hasOwnProperty(d)){var he=o[d];if(he!=null)switch(d){case"name":v=he;break;case"type":tt=he;break;case"checked":Ot=he;break;case"defaultChecked":Ft=he;break;case"value":E=he;break;case"defaultValue":xt=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(c(137,n));break;default:dt(e,n,d,he,o,null)}}Ca(e,E,xt,Ot,Ft,tt,v,!1),Go(e);return;case"select":l("invalid",e),d=tt=E=null;for(v in o)if(o.hasOwnProperty(v)&&(xt=o[v],xt!=null))switch(v){case"value":E=xt;break;case"defaultValue":tt=xt;break;case"multiple":d=xt;default:dt(e,n,v,xt,o,null)}n=E,o=tt,e.multiple=!!d,n!=null?ns(e,!!d,n,!1):o!=null&&ns(e,!!d,o,!0);return;case"textarea":l("invalid",e),E=v=d=null;for(tt in o)if(o.hasOwnProperty(tt)&&(xt=o[tt],xt!=null))switch(tt){case"value":d=xt;break;case"defaultValue":v=xt;break;case"children":E=xt;break;case"dangerouslySetInnerHTML":if(xt!=null)throw Error(c(91));break;default:dt(e,n,tt,xt,o,null)}vo(e,d,v,E),Go(e);return;case"option":for(Ot in o)if(o.hasOwnProperty(Ot)&&(d=o[Ot],d!=null))switch(Ot){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:dt(e,n,Ot,d,o,null)}return;case"dialog":l("cancel",e),l("close",e);break;case"iframe":case"object":l("load",e);break;case"video":case"audio":for(d=0;d<w.length;d++)l(w[d],e);break;case"image":l("error",e),l("load",e);break;case"details":l("toggle",e);break;case"embed":case"source":case"link":l("error",e),l("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ft in o)if(o.hasOwnProperty(Ft)&&(d=o[Ft],d!=null))switch(Ft){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:dt(e,n,Ft,d,o,null)}return;default:if(rs(n)){for(he in o)o.hasOwnProperty(he)&&(d=o[he],d!==void 0&&ft(e,n,he,d,o,void 0));return}}for(xt in o)o.hasOwnProperty(xt)&&(d=o[xt],d!=null&&dt(e,n,xt,d,o,null))}function Nt(e,n,o,d){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,E=null,tt=null,xt=null,Ot=null,Ft=null,he=null;for(ue in o){var Me=o[ue];if(o.hasOwnProperty(ue)&&Me!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":Ot=Me;default:d.hasOwnProperty(ue)||dt(e,n,ue,null,d,Me)}}for(var ee in d){var ue=d[ee];if(Me=o[ee],d.hasOwnProperty(ee)&&(ue!=null||Me!=null))switch(ee){case"type":E=ue;break;case"name":v=ue;break;case"checked":Ft=ue;break;case"defaultChecked":he=ue;break;case"value":tt=ue;break;case"defaultValue":xt=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(c(137,n));break;default:ue!==Me&&dt(e,n,ee,ue,d,Me)}}Nn(e,tt,xt,Ot,Ft,he,E,v);return;case"select":ue=tt=xt=ee=null;for(E in o)if(Ot=o[E],o.hasOwnProperty(E)&&Ot!=null)switch(E){case"value":break;case"multiple":ue=Ot;default:d.hasOwnProperty(E)||dt(e,n,E,null,d,Ot)}for(v in d)if(E=d[v],Ot=o[v],d.hasOwnProperty(v)&&(E!=null||Ot!=null))switch(v){case"value":ee=E;break;case"defaultValue":xt=E;break;case"multiple":tt=E;default:E!==Ot&&dt(e,n,v,E,d,Ot)}n=xt,o=tt,d=ue,ee!=null?ns(e,!!o,ee,!1):!!d!=!!o&&(n!=null?ns(e,!!o,n,!0):ns(e,!!o,o?[]:"",!1));return;case"textarea":ue=ee=null;for(xt in o)if(v=o[xt],o.hasOwnProperty(xt)&&v!=null&&!d.hasOwnProperty(xt))switch(xt){case"value":break;case"children":break;default:dt(e,n,xt,null,d,v)}for(tt in d)if(v=d[tt],E=o[tt],d.hasOwnProperty(tt)&&(v!=null||E!=null))switch(tt){case"value":ee=v;break;case"defaultValue":ue=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(c(91));break;default:v!==E&&dt(e,n,tt,v,d,E)}Kl(e,ee,ue);return;case"option":for(var ii in o)if(ee=o[ii],o.hasOwnProperty(ii)&&ee!=null&&!d.hasOwnProperty(ii))switch(ii){case"selected":e.selected=!1;break;default:dt(e,n,ii,null,d,ee)}for(Ot in d)if(ee=d[Ot],ue=o[Ot],d.hasOwnProperty(Ot)&&ee!==ue&&(ee!=null||ue!=null))switch(Ot){case"selected":e.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:dt(e,n,Ot,ee,d,ue)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Pi in o)ee=o[Pi],o.hasOwnProperty(Pi)&&ee!=null&&!d.hasOwnProperty(Pi)&&dt(e,n,Pi,null,d,ee);for(Ft in d)if(ee=d[Ft],ue=o[Ft],d.hasOwnProperty(Ft)&&ee!==ue&&(ee!=null||ue!=null))switch(Ft){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(c(137,n));break;default:dt(e,n,Ft,ee,d,ue)}return;default:if(rs(n)){for(var yr in o)ee=o[yr],o.hasOwnProperty(yr)&&ee!==void 0&&!d.hasOwnProperty(yr)&&ft(e,n,yr,void 0,d,ee);for(he in d)ee=d[he],ue=o[he],!d.hasOwnProperty(he)||ee===ue||ee===void 0&&ue===void 0||ft(e,n,he,ee,d,ue);return}}for(var Yt in o)ee=o[Yt],o.hasOwnProperty(Yt)&&ee!=null&&!d.hasOwnProperty(Yt)&&dt(e,n,Yt,null,d,ee);for(Me in d)ee=d[Me],ue=o[Me],!d.hasOwnProperty(Me)||ee===ue||ee==null&&ue==null||dt(e,n,Me,ee,d,ue)}var Lt=null,Ut=null;function $t(e){return e.nodeType===9?e:e.ownerDocument}function qt(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function be(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Ce(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ie=null;function pe(){var e=window.event;return e&&e.type==="popstate"?e===Ie?!1:(Ie=e,!0):(Ie=null,!1)}var Ne=typeof setTimeout=="function"?setTimeout:void 0,Qe=typeof clearTimeout=="function"?clearTimeout:void 0,wi=typeof Promise=="function"?Promise:void 0,Xe=typeof queueMicrotask=="function"?queueMicrotask:typeof wi<"u"?function(e){return wi.resolve(null).then(e).catch(mi)}:Ne;function mi(e){setTimeout(function(){throw e})}function $e(e,n){var o=n,d=0;do{var v=o.nextSibling;if(e.removeChild(o),v&&v.nodeType===8)if(o=v.data,o==="/$"){if(d===0){e.removeChild(v),gf(n);return}d--}else o!=="$"&&o!=="$?"&&o!=="$!"||d++;o=v}while(o);gf(n)}function Je(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Je(o),sl(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function fi(e,n,o,d){for(;e.nodeType===1;){var v=o;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!d&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(d){if(!e[go])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(E=e.getAttribute("rel"),E==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(E!==v.rel||e.getAttribute("href")!==(v.href==null?null:v.href)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||e.getAttribute("title")!==(v.title==null?null:v.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(E=e.getAttribute("src"),(E!==(v.src==null?null:v.src)||e.getAttribute("type")!==(v.type==null?null:v.type)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var E=v.name==null?null:""+v.name;if(v.type==="hidden"&&e.getAttribute("name")===E)return e}else return e;if(e=Ui(e.nextSibling),e===null)break}return null}function Qi(e,n,o){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=Ui(e.nextSibling),e===null))return null;return e}function Ui(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}function Li(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}function Fi(e,n,o){switch(n=$t(o),e){case"html":if(e=n.documentElement,!e)throw Error(c(452));return e;case"head":if(e=n.head,!e)throw Error(c(453));return e;case"body":if(e=n.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}var Ii=new Map,Ur=new Set;function Wn(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var En=ge.d;ge.d={f:mr,r:$n,D:qd,C:_h,L:od,m:qg,X:Nw,S:Kg,M:zw};function mr(){var e=En.f(),n=zh();return e||n}function $n(e){var n=mo(e);n!==null&&n.tag===5&&n.type==="form"?fg(n):En.r(e)}var Hn=typeof document>"u"?null:document;function jl(e,n,o){var d=Hn;if(d&&typeof n=="string"&&n){var v=Wr(n);v='link[rel="'+e+'"][href="'+v+'"]',typeof o=="string"&&(v+='[crossorigin="'+o+'"]'),Ur.has(v)||(Ur.add(v),e={rel:e,crossOrigin:o,href:n},d.querySelector(v)===null&&(n=d.createElement("link"),Rt(n,"link",e),pi(n),d.head.appendChild(n)))}}function qd(e){En.D(e),jl("dns-prefetch",e,null)}function _h(e,n){En.C(e,n),jl("preconnect",e,n)}function od(e,n,o){En.L(e,n,o);var d=Hn;if(d&&e&&n){var v='link[rel="preload"][as="'+Wr(n)+'"]';n==="image"&&o&&o.imageSrcSet?(v+='[imagesrcset="'+Wr(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(v+='[imagesizes="'+Wr(o.imageSizes)+'"]')):v+='[href="'+Wr(e)+'"]';var E=v;switch(n){case"style":E=Wh(e);break;case"script":E=Vh(e)}Ii.has(E)||(e=ot({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:e,as:n},o),Ii.set(E,e),d.querySelector(v)!==null||n==="style"&&d.querySelector(lf(E))||n==="script"&&d.querySelector(cf(E))||(n=d.createElement("link"),Rt(n,"link",e),pi(n),d.head.appendChild(n)))}}function qg(e,n){En.m(e,n);var o=Hn;if(o&&e){var d=n&&typeof n.as=="string"?n.as:"script",v='link[rel="modulepreload"][as="'+Wr(d)+'"][href="'+Wr(e)+'"]',E=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Vh(e)}if(!Ii.has(E)&&(e=ot({rel:"modulepreload",href:e},n),Ii.set(E,e),o.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(cf(E)))return}d=o.createElement("link"),Rt(d,"link",e),pi(d),o.head.appendChild(d)}}}function Kg(e,n,o){En.S(e,n,o);var d=Hn;if(d&&e){var v=Zs(d).hoistableStyles,E=Wh(e);n=n||"default";var tt=v.get(E);if(!tt){var xt={loading:0,preload:null};if(tt=d.querySelector(lf(E)))xt.loading=5;else{e=ot({rel:"stylesheet",href:e,"data-precedence":n},o),(o=Ii.get(E))&&Py(e,o);var Ot=tt=d.createElement("link");pi(Ot),Rt(Ot,"link",e),Ot._p=new Promise(function(Ft,he){Ot.onload=Ft,Ot.onerror=he}),Ot.addEventListener("load",function(){xt.loading|=1}),Ot.addEventListener("error",function(){xt.loading|=2}),xt.loading|=4,Zg(tt,n,d)}tt={type:"stylesheet",instance:tt,count:1,state:xt},v.set(E,tt)}}}function Nw(e,n){En.X(e,n);var o=Hn;if(o&&e){var d=Zs(o).hoistableScripts,v=Vh(e),E=d.get(v);E||(E=o.querySelector(cf(v)),E||(e=ot({src:e,async:!0},n),(n=Ii.get(v))&&By(e,n),E=o.createElement("script"),pi(E),Rt(E,"link",e),o.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(v,E))}}function zw(e,n){En.M(e,n);var o=Hn;if(o&&e){var d=Zs(o).hoistableScripts,v=Vh(e),E=d.get(v);E||(E=o.querySelector(cf(v)),E||(e=ot({src:e,async:!0,type:"module"},n),(n=Ii.get(v))&&By(e,n),E=o.createElement("script"),pi(E),Rt(E,"link",e),o.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(v,E))}}function Fx(e,n,o,d){var v=(v=Ei.current)?Wn(v):null;if(!v)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(n=Wh(o.href),o=Zs(v).hoistableStyles,d=o.get(n),d||(d={type:"style",instance:null,count:0,state:null},o.set(n,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=Wh(o.href);var E=Zs(v).hoistableStyles,tt=E.get(e);if(tt||(v=v.ownerDocument||v,tt={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(e,tt),(E=v.querySelector(lf(e)))&&!E._p&&(tt.instance=E,tt.state.loading=5),Ii.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Ii.set(e,o),E||jw(v,e,o,tt.state))),n&&d===null)throw Error(c(528,""));return tt}if(n&&d!==null)throw Error(c(529,""));return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Vh(o),o=Zs(v).hoistableScripts,d=o.get(n),d||(d={type:"script",instance:null,count:0,state:null},o.set(n,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Wh(e){return'href="'+Wr(e)+'"'}function lf(e){return'link[rel="stylesheet"]['+e+"]"}function Gx(e){return ot({},e,{"data-precedence":e.precedence,precedence:null})}function jw(e,n,o,d){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?d.loading=1:(n=e.createElement("link"),d.preload=n,n.addEventListener("load",function(){return d.loading|=1}),n.addEventListener("error",function(){return d.loading|=2}),Rt(n,"link",o),pi(n),e.head.appendChild(n))}function Vh(e){return'[src="'+Wr(e)+'"]'}function cf(e){return"script[async]"+e}function _x(e,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var d=e.querySelector('style[data-href~="'+Wr(o.href)+'"]');if(d)return n.instance=d,pi(d),d;var v=ot({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(e.ownerDocument||e).createElement("style"),pi(d),Rt(d,"style",v),Zg(d,o.precedence,e),n.instance=d;case"stylesheet":v=Wh(o.href);var E=e.querySelector(lf(v));if(E)return n.state.loading|=4,n.instance=E,pi(E),E;d=Gx(o),(v=Ii.get(v))&&Py(d,v),E=(e.ownerDocument||e).createElement("link"),pi(E);var tt=E;return tt._p=new Promise(function(xt,Ot){tt.onload=xt,tt.onerror=Ot}),Rt(E,"link",d),n.state.loading|=4,Zg(E,o.precedence,e),n.instance=E;case"script":return E=Vh(o.src),(v=e.querySelector(cf(E)))?(n.instance=v,pi(v),v):(d=o,(v=Ii.get(E))&&(d=ot({},o),By(d,v)),e=e.ownerDocument||e,v=e.createElement("script"),pi(v),Rt(v,"link",d),e.head.appendChild(v),n.instance=v);case"void":return null;default:throw Error(c(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(d=n.instance,n.state.loading|=4,Zg(d,o.precedence,e));return n.instance}function Zg(e,n,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,E=v,tt=0;tt<d.length;tt++){var xt=d[tt];if(xt.dataset.precedence===n)E=xt;else if(E!==v)break}E?E.parentNode.insertBefore(e,E.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(e,n.firstChild))}function Py(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function By(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Qg=null;function Wx(e,n,o){if(Qg===null){var d=new Map,v=Qg=new Map;v.set(o,d)}else v=Qg,d=v.get(o),d||(d=new Map,v.set(o,d));if(d.has(e))return d;for(d.set(e,null),o=o.getElementsByTagName(e),v=0;v<o.length;v++){var E=o[v];if(!(E[go]||E[nr]||e==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var tt=E.getAttribute(n)||"";tt=e+tt;var xt=d.get(tt);xt?xt.push(E):d.set(tt,[E])}}return d}function Vx(e,n,o){e=e.ownerDocument||e,e.head.insertBefore(o,n==="title"?e.querySelector("head > title"):null)}function $w(e,n,o){if(o===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Xx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var uf=null;function Hw(){}function Uw(e,n,o){if(uf===null)throw Error(c(475));var d=uf;if(n.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var v=Wh(o.href),E=e.querySelector(lf(v));if(E){e=E._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(d.count++,d=Jg.bind(d),e.then(d,d)),n.state.loading|=4,n.instance=E,pi(E);return}E=e.ownerDocument||e,o=Gx(o),(v=Ii.get(v))&&Py(o,v),E=E.createElement("link"),pi(E);var tt=E;tt._p=new Promise(function(xt,Ot){tt.onload=xt,tt.onerror=Ot}),Rt(E,"link",o),n.instance=E}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(d.count++,n=Jg.bind(d),e.addEventListener("load",n),e.addEventListener("error",n))}}function Fw(){if(uf===null)throw Error(c(475));var e=uf;return e.stylesheets&&e.count===0&&Dy(e,e.stylesheets),0<e.count?function(n){var o=setTimeout(function(){if(e.stylesheets&&Dy(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(o)}}:null}function Jg(){if(this.count--,this.count===0){if(this.stylesheets)Dy(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tm=null;function Dy(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tm=new Map,n.forEach(Gw,e),tm=null,Jg.call(e))}function Gw(e,n){if(!(n.state.loading&4)){var o=tm.get(e);if(o)var d=o.get(null);else{o=new Map,tm.set(e,o);for(var v=e.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var tt=v[E];(tt.nodeName==="LINK"||tt.getAttribute("media")!=="not all")&&(o.set(tt.dataset.precedence,tt),d=tt)}d&&o.set(null,d)}v=n.instance,tt=v.getAttribute("data-precedence"),E=o.get(tt)||d,E===d&&o.set(null,v),o.set(tt,v),this.count++,d=Jg.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),E?E.parentNode.insertBefore(v,E.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(v,e.firstChild)),n.state.loading|=4}}var df={$$typeof:F,Provider:null,Consumer:null,_currentValue:Pe,_currentValue2:Pe,_threadCount:0};function _w(e,n,o,d,v,E,tt,xt){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=va(0),this.hiddenUpdates=va(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=tt,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=xt,this.incompleteTransitions=new Map}function Yx(e,n,o,d,v,E,tt,xt,Ot,Ft,he,Me){return e=new _w(e,n,o,tt,xt,Ot,Ft,Me),n=1,E===!0&&(n|=24),E=Ms(3,null,null,n),e.current=E,E.stateNode=e,n=Jn(),n.refCount++,e.pooledCache=n,n.refCount++,E.memoizedState={element:d,isDehydrated:o,cache:n},Np(E),e}function qx(e){return e?(e=oa,e):oa}function Kx(e,n,o,d,v,E){v=qx(v),d.context===null?d.context=v:d.pendingContext=v,d=ga(n),d.payload={element:o},E=E===void 0?null:E,E!==null&&(d.callback=E),o=Xa(e,d,n),o!==null&&(Ts(o,e,n),ou(o,e,n))}function Zx(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Ly(e,n){Zx(e,n),(e=e.alternate)&&Zx(e,n)}function Qx(e){if(e.tag===13){var n=Sn(e,67108864);n!==null&&Ts(n,e,67108864),Ly(e,67108864)}}var em=!0;function Ww(e,n,o,d){var v=Et.T;Et.T=null;var E=ge.p;try{ge.p=2,Iy(e,n,o,d)}finally{ge.p=E,Et.T=v}}function Vw(e,n,o,d){var v=Et.T;Et.T=null;var E=ge.p;try{ge.p=8,Iy(e,n,o,d)}finally{ge.p=E,Et.T=v}}function Iy(e,n,o,d){if(em){var v=Ny(d);if(v===null)x(e,n,d,im,o),tv(e,d);else if(Yw(v,e,n,o,d))d.stopPropagation();else if(tv(e,d),n&4&&-1<Xw.indexOf(e)){for(;v!==null;){var E=mo(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var tt=Sr(E.pendingLanes);if(tt!==0){var xt=E;for(xt.pendingLanes|=2,xt.entangledLanes|=2;tt;){var Ot=1<<31-ki(tt);xt.entanglements[1]|=Ot,tt&=~Ot}ya(E),(Pn&6)===0&&(Dh=Vi()+500,rd(0))}}break;case 13:xt=Sn(E,2),xt!==null&&Ts(xt,E,2),zh(),Ly(E,2)}if(E=Ny(d),E===null&&x(e,n,d,im,o),E===v)break;v=E}v!==null&&d.stopPropagation()}else x(e,n,d,null,o)}}function Ny(e){return e=Rs(e),zy(e)}var im=null;function zy(e){if(im=null,e=Uo(e),e!==null){var n=te(e);if(n===null)e=null;else{var o=n.tag;if(o===13){if(e=Dt(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return im=e,null}function Jx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ri()){case lr:return 2;case tn:return 8;case Xi:case on:return 32;case In:return 268435456;default:return 32}default:return 32}}var jy=!1,ad=null,ld=null,cd=null,hf=new Map,pf=new Map,ud=[],Xw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tv(e,n){switch(e){case"focusin":case"focusout":ad=null;break;case"dragenter":case"dragleave":ld=null;break;case"mouseover":case"mouseout":cd=null;break;case"pointerover":case"pointerout":hf.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":pf.delete(n.pointerId)}}function ff(e,n,o,d,v,E){return e===null||e.nativeEvent!==E?(e={blockedOn:n,domEventName:o,eventSystemFlags:d,nativeEvent:E,targetContainers:[v]},n!==null&&(n=mo(n),n!==null&&Qx(n)),e):(e.eventSystemFlags|=d,n=e.targetContainers,v!==null&&n.indexOf(v)===-1&&n.push(v),e)}function Yw(e,n,o,d,v){switch(n){case"focusin":return ad=ff(ad,e,n,o,d,v),!0;case"dragenter":return ld=ff(ld,e,n,o,d,v),!0;case"mouseover":return cd=ff(cd,e,n,o,d,v),!0;case"pointerover":var E=v.pointerId;return hf.set(E,ff(hf.get(E)||null,e,n,o,d,v)),!0;case"gotpointercapture":return E=v.pointerId,pf.set(E,ff(pf.get(E)||null,e,n,o,d,v)),!0}return!1}function ev(e){var n=Uo(e.target);if(n!==null){var o=te(n);if(o!==null){if(n=o.tag,n===13){if(n=Dt(o),n!==null){e.blockedOn=n,Gc(e.priority,function(){if(o.tag===13){var d=po(),v=Sn(o,d);v!==null&&Ts(v,o,d),Ly(o,d)}});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nm(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Ny(e.nativeEvent);if(o===null){o=e.nativeEvent;var d=new o.constructor(o.type,o);Ql=d,o.target.dispatchEvent(d),Ql=null}else return n=mo(o),n!==null&&Qx(n),e.blockedOn=o,!1;n.shift()}return!0}function iv(e,n,o){nm(e)&&o.delete(n)}function qw(){jy=!1,ad!==null&&nm(ad)&&(ad=null),ld!==null&&nm(ld)&&(ld=null),cd!==null&&nm(cd)&&(cd=null),hf.forEach(iv),pf.forEach(iv)}function rm(e,n){e.blockedOn===n&&(e.blockedOn=null,jy||(jy=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,qw)))}var sm=null;function nv(e){sm!==e&&(sm=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){sm===e&&(sm=null);for(var n=0;n<e.length;n+=3){var o=e[n],d=e[n+1],v=e[n+2];if(typeof d!="function"){if(zy(d||o)===null)continue;break}var E=mo(o);E!==null&&(e.splice(n,3),n-=3,lh(E,{pending:!0,data:v,method:o.method,action:d},d,v))}}))}function gf(e){function n(Ot){return rm(Ot,e)}ad!==null&&rm(ad,e),ld!==null&&rm(ld,e),cd!==null&&rm(cd,e),hf.forEach(n),pf.forEach(n);for(var o=0;o<ud.length;o++){var d=ud[o];d.blockedOn===e&&(d.blockedOn=null)}for(;0<ud.length&&(o=ud[0],o.blockedOn===null);)ev(o),o.blockedOn===null&&ud.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var v=o[d],E=o[d+1],tt=v[Cr]||null;if(typeof E=="function")tt||nv(o);else if(tt){var xt=null;if(E&&E.hasAttribute("formAction")){if(v=E,tt=E[Cr]||null)xt=tt.formAction;else if(zy(v)!==null)continue}else xt=tt.action;typeof xt=="function"?o[d+1]=xt:(o.splice(d,3),d-=3),nv(o)}}}function $y(e){this._internalRoot=e}om.prototype.render=$y.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(c(409));var o=n.current,d=po();Kx(o,d,e,n,null,null)},om.prototype.unmount=$y.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;e.tag===0&&pu(),Kx(e.current,2,null,e,null,null),zh(),n[Sa]=null}};function om(e){this._internalRoot=e}om.prototype.unstable_scheduleHydration=function(e){if(e){var n=_l();e={blockedOn:null,target:e,priority:n};for(var o=0;o<ud.length&&n!==0&&n<ud[o].priority;o++);ud.splice(o,0,e),o===0&&ev(e)}};var rv=r.version;if(rv!=="19.0.0")throw Error(c(527,rv,"19.0.0"));ge.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=jt(n),e=e!==null?Se(e):null,e=e===null?null:e.stateNode,e};var Kw={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Et,findFiberByHostInstance:Uo,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var am=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!am.isDisabled&&am.supportsFiber)try{cr=am.inject(Kw),gn=am}catch{}}return bf.createRoot=function(e,n){if(!p(e))throw Error(c(299));var o=!1,d="",v=Tp,E=gc,tt=lo,xt=null;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onUncaughtError!==void 0&&(v=n.onUncaughtError),n.onCaughtError!==void 0&&(E=n.onCaughtError),n.onRecoverableError!==void 0&&(tt=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(xt=n.unstable_transitionCallbacks)),n=Yx(e,1,!1,null,null,o,d,v,E,tt,xt,null),e[Sa]=n.current,f(e.nodeType===8?e.parentNode:e),new $y(n)},bf.hydrateRoot=function(e,n,o){if(!p(e))throw Error(c(299));var d=!1,v="",E=Tp,tt=gc,xt=lo,Ot=null,Ft=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(v=o.identifierPrefix),o.onUncaughtError!==void 0&&(E=o.onUncaughtError),o.onCaughtError!==void 0&&(tt=o.onCaughtError),o.onRecoverableError!==void 0&&(xt=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(Ot=o.unstable_transitionCallbacks),o.formState!==void 0&&(Ft=o.formState)),n=Yx(e,1,!0,n,o??null,d,v,E,tt,xt,Ot,Ft),n.context=qx(null),o=n.current,d=po(),v=ga(d),v.callback=null,Xa(o,v,d),n.current.lanes=d,rl(n,d),ya(n),e[Sa]=n.current,f(e),new om(n)},bf.version="19.0.0",bf}var fv;function aC(){if(fv)return Fy.exports;fv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Fy.exports=oC(),Fy.exports}var lC=aC();const cC=W.createContext(null),Vy={didCatch:!1,error:null};class _m extends W.Component{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Vy}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var a,c,p=arguments.length,m=new Array(p),S=0;S<p;S++)m[S]=arguments[S];(a=(c=this.props).onReset)===null||a===void 0||a.call(c,{args:m,reason:"imperative-api"}),this.setState(Vy)}}componentDidCatch(r,a){var c,p;(c=(p=this.props).onError)===null||c===void 0||c.call(p,r,a)}componentDidUpdate(r,a){const{didCatch:c}=this.state,{resetKeys:p}=this.props;if(c&&a.error!==null&&uC(r.resetKeys,p)){var m,S;(m=(S=this.props).onReset)===null||m===void 0||m.call(S,{next:p,prev:r.resetKeys,reason:"keys"}),this.setState(Vy)}}render(){const{children:r,fallbackRender:a,FallbackComponent:c,fallback:p}=this.props,{didCatch:m,error:S}=this.state;let k=r;if(m){const O={error:S,resetErrorBoundary:this.resetErrorBoundary};if(typeof a=="function")k=a(O);else if(c)k=W.createElement(c,O);else if(p!==void 0)k=p;else throw S}return W.createElement(cC.Provider,{value:{didCatch:m,error:S,resetErrorBoundary:this.resetErrorBoundary}},k)}}function uC(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==r.length||t.some((a,c)=>!Object.is(a,r[c]))}const $f={black:"#000",white:"#fff"},Xh={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Yh={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Jd={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",500:"#2196f3",700:"#1976d2",800:"#1565c0"},qh={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Kh={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},xf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},a1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function wu(t,...r){const a=new URL(`https://mui.com/production-error/?code=${t}`);return r.forEach(c=>a.searchParams.append("args[]",c)),`Minified MUI error #${t}; visit ${a} for the full message.`}const Hl="$$material";function Bi(){return Bi=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var c in a)({}).hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},Bi.apply(null,arguments)}function dC(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function hC(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var pC=function(){function t(a){var c=this;this._insertTag=function(p){var m;c.tags.length===0?c.insertionPoint?m=c.insertionPoint.nextSibling:c.prepend?m=c.container.firstChild:m=c.before:m=c.tags[c.tags.length-1].nextSibling,c.container.insertBefore(p,m),c.tags.push(p)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var r=t.prototype;return r.hydrate=function(c){c.forEach(this._insertTag)},r.insert=function(c){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hC(this));var p=this.tags[this.tags.length-1];if(this.isSpeedy){var m=dC(p);try{m.insertRule(c,m.cssRules.length)}catch{}}else p.appendChild(document.createTextNode(c));this.ctr++},r.flush=function(){this.tags.forEach(function(c){var p;return(p=c.parentNode)==null?void 0:p.removeChild(c)}),this.tags=[],this.ctr=0},t}(),Vs="-ms-",Bm="-moz-",cn="-webkit-",l1="comm",tx="rule",ex="decl",fC="@import",c1="@keyframes",gC="@layer",mC=Math.abs,Wm=String.fromCharCode,yC=Object.assign;function bC(t,r){return Es(t,0)^45?(((r<<2^Es(t,0))<<2^Es(t,1))<<2^Es(t,2))<<2^Es(t,3):0}function u1(t){return t.trim()}function xC(t,r){return(t=r.exec(t))?t[0]:t}function un(t,r,a){return t.replace(r,a)}function vb(t,r){return t.indexOf(r)}function Es(t,r){return t.charCodeAt(r)|0}function Hf(t,r,a){return t.slice(r,a)}function Oc(t){return t.length}function ix(t){return t.length}function lm(t,r){return r.push(t),t}function vC(t,r){return t.map(r).join("")}var Vm=1,ap=1,d1=0,$o=0,Fr=0,dp="";function Xm(t,r,a,c,p,m,S){return{value:t,root:r,parent:a,type:c,props:p,children:m,line:Vm,column:ap,length:S,return:""}}function vf(t,r){return yC(Xm("",null,null,"",null,null,0),t,{length:-t.length},r)}function SC(){return Fr}function wC(){return Fr=$o>0?Es(dp,--$o):0,ap--,Fr===10&&(ap=1,Vm--),Fr}function xa(){return Fr=$o<d1?Es(dp,$o++):0,ap++,Fr===10&&(ap=1,Vm++),Fr}function Ic(){return Es(dp,$o)}function ym(){return $o}function Yf(t,r){return Hf(dp,t,r)}function Uf(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 h1(t){return Vm=ap=1,d1=Oc(dp=t),$o=0,[]}function p1(t){return dp="",t}function bm(t){return u1(Yf($o-1,Sb(t===91?t+2:t===40?t+1:t)))}function CC(t){for(;(Fr=Ic())&&Fr<33;)xa();return Uf(t)>2||Uf(Fr)>3?"":" "}function kC(t,r){for(;--r&&xa()&&!(Fr<48||Fr>102||Fr>57&&Fr<65||Fr>70&&Fr<97););return Yf(t,ym()+(r<6&&Ic()==32&&xa()==32))}function Sb(t){for(;xa();)switch(Fr){case t:return $o;case 34:case 39:t!==34&&t!==39&&Sb(Fr);break;case 40:t===41&&Sb(t);break;case 92:xa();break}return $o}function MC(t,r){for(;xa()&&t+Fr!==57;)if(t+Fr===84&&Ic()===47)break;return"/*"+Yf(r,$o-1)+"*"+Wm(t===47?t:xa())}function TC(t){for(;!Uf(Ic());)xa();return Yf(t,$o)}function EC(t){return p1(xm("",null,null,null,[""],t=h1(t),0,[0],t))}function xm(t,r,a,c,p,m,S,k,O){for(var R=0,j=0,$=S,I=0,F=0,z=0,_=1,J=1,it=1,st=0,ct="",ht=p,lt=m,wt=c,at=ct;J;)switch(z=st,st=xa()){case 40:if(z!=108&&Es(at,$-1)==58){vb(at+=un(bm(st),"&","&\f"),"&\f")!=-1&&(it=-1);break}case 34:case 39:case 91:at+=bm(st);break;case 9:case 10:case 13:case 32:at+=CC(z);break;case 92:at+=kC(ym()-1,7);continue;case 47:switch(Ic()){case 42:case 47:lm(AC(MC(xa(),ym()),r,a),O);break;default:at+="/"}break;case 123*_:k[R++]=Oc(at)*it;case 125*_:case 59:case 0:switch(st){case 0:case 125:J=0;case 59+j:it==-1&&(at=un(at,/\f/g,"")),F>0&&Oc(at)-$&&lm(F>32?mv(at+";",c,a,$-1):mv(un(at," ","")+";",c,a,$-2),O);break;case 59:at+=";";default:if(lm(wt=gv(at,r,a,R,j,p,k,ct,ht=[],lt=[],$),m),st===123)if(j===0)xm(at,r,wt,wt,ht,m,$,k,lt);else switch(I===99&&Es(at,3)===110?100:I){case 100:case 108:case 109:case 115:xm(t,wt,wt,c&&lm(gv(t,wt,wt,0,0,p,k,ct,p,ht=[],$),lt),p,lt,$,k,c?ht:lt);break;default:xm(at,wt,wt,wt,[""],lt,0,k,lt)}}R=j=F=0,_=it=1,ct=at="",$=S;break;case 58:$=1+Oc(at),F=z;default:if(_<1){if(st==123)--_;else if(st==125&&_++==0&&wC()==125)continue}switch(at+=Wm(st),st*_){case 38:it=j>0?1:(at+="\f",-1);break;case 44:k[R++]=(Oc(at)-1)*it,it=1;break;case 64:Ic()===45&&(at+=bm(xa())),I=Ic(),j=$=Oc(ct=at+=TC(ym())),st++;break;case 45:z===45&&Oc(at)==2&&(_=0)}}return m}function gv(t,r,a,c,p,m,S,k,O,R,j){for(var $=p-1,I=p===0?m:[""],F=ix(I),z=0,_=0,J=0;z<c;++z)for(var it=0,st=Hf(t,$+1,$=mC(_=S[z])),ct=t;it<F;++it)(ct=u1(_>0?I[it]+" "+st:un(st,/&\f/g,I[it])))&&(O[J++]=ct);return Xm(t,r,a,p===0?tx:k,O,R,j)}function AC(t,r,a){return Xm(t,r,a,l1,Wm(SC()),Hf(t,2,-2),0)}function mv(t,r,a,c){return Xm(t,r,a,ex,Hf(t,0,c),Hf(t,c+1,-1),c)}function np(t,r){for(var a="",c=ix(t),p=0;p<c;p++)a+=r(t[p],p,t,r)||"";return a}function RC(t,r,a,c){switch(t.type){case gC:if(t.children.length)break;case fC:case ex:return t.return=t.return||t.value;case l1:return"";case c1:return t.return=t.value+"{"+np(t.children,c)+"}";case tx:t.value=t.props.join(",")}return Oc(a=np(t.children,c))?t.return=t.value+"{"+a+"}":""}function OC(t){var r=ix(t);return function(a,c,p,m){for(var S="",k=0;k<r;k++)S+=t[k](a,c,p,m)||"";return S}}function PC(t){return function(r){r.root||(r=r.return)&&t(r)}}function f1(t){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=t(a)),r[a]}}var BC=function(r,a,c){for(var p=0,m=0;p=m,m=Ic(),p===38&&m===12&&(a[c]=1),!Uf(m);)xa();return Yf(r,$o)},DC=function(r,a){var c=-1,p=44;do switch(Uf(p)){case 0:p===38&&Ic()===12&&(a[c]=1),r[c]+=BC($o-1,a,c);break;case 2:r[c]+=bm(p);break;case 4:if(p===44){r[++c]=Ic()===58?"&\f":"",a[c]=r[c].length;break}default:r[c]+=Wm(p)}while(p=xa());return r},LC=function(r,a){return p1(DC(h1(r),a))},yv=new WeakMap,IC=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var a=r.value,c=r.parent,p=r.column===c.column&&r.line===c.line;c.type!=="rule";)if(c=c.parent,!c)return;if(!(r.props.length===1&&a.charCodeAt(0)!==58&&!yv.get(c))&&!p){yv.set(r,!0);for(var m=[],S=LC(a,m),k=c.props,O=0,R=0;O<S.length;O++)for(var j=0;j<k.length;j++,R++)r.props[R]=m[O]?S[O].replace(/&\f/g,k[j]):k[j]+" "+S[O]}}},NC=function(r){if(r.type==="decl"){var a=r.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(r.return="",r.value="")}};function g1(t,r){switch(bC(t,r)){case 5103:return cn+"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 cn+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return cn+t+Bm+t+Vs+t+t;case 6828:case 4268:return cn+t+Vs+t+t;case 6165:return cn+t+Vs+"flex-"+t+t;case 5187:return cn+t+un(t,/(\w+).+(:[^]+)/,cn+"box-$1$2"+Vs+"flex-$1$2")+t;case 5443:return cn+t+Vs+"flex-item-"+un(t,/flex-|-self/,"")+t;case 4675:return cn+t+Vs+"flex-line-pack"+un(t,/align-content|flex-|-self/,"")+t;case 5548:return cn+t+Vs+un(t,"shrink","negative")+t;case 5292:return cn+t+Vs+un(t,"basis","preferred-size")+t;case 6060:return cn+"box-"+un(t,"-grow","")+cn+t+Vs+un(t,"grow","positive")+t;case 4554:return cn+un(t,/([^-])(transform)/g,"$1"+cn+"$2")+t;case 6187:return un(un(un(t,/(zoom-|grab)/,cn+"$1"),/(image-set)/,cn+"$1"),t,"")+t;case 5495:case 3959:return un(t,/(image-set\([^]*)/,cn+"$1$`$1");case 4968:return un(un(t,/(.+:)(flex-)?(.*)/,cn+"box-pack:$3"+Vs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cn+t+t;case 4095:case 3583:case 4068:case 2532:return un(t,/(.+)-inline(.+)/,cn+"$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(Oc(t)-1-r>6)switch(Es(t,r+1)){case 109:if(Es(t,r+4)!==45)break;case 102:return un(t,/(.+:)(.+)-([^]+)/,"$1"+cn+"$2-$3$1"+Bm+(Es(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~vb(t,"stretch")?g1(un(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(Es(t,r+1)!==115)break;case 6444:switch(Es(t,Oc(t)-3-(~vb(t,"!important")&&10))){case 107:return un(t,":",":"+cn)+t;case 101:return un(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cn+(Es(t,14)===45?"inline-":"")+"box$3$1"+cn+"$2$3$1"+Vs+"$2box$3")+t}break;case 5936:switch(Es(t,r+11)){case 114:return cn+t+Vs+un(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return cn+t+Vs+un(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return cn+t+Vs+un(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return cn+t+Vs+t+t}return t}var zC=function(r,a,c,p){if(r.length>-1&&!r.return)switch(r.type){case ex:r.return=g1(r.value,r.length);break;case c1:return np([vf(r,{value:un(r.value,"@","@"+cn)})],p);case tx:if(r.length)return vC(r.props,function(m){switch(xC(m,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return np([vf(r,{props:[un(m,/:(read-\w+)/,":"+Bm+"$1")]})],p);case"::placeholder":return np([vf(r,{props:[un(m,/:(plac\w+)/,":"+cn+"input-$1")]}),vf(r,{props:[un(m,/:(plac\w+)/,":"+Bm+"$1")]}),vf(r,{props:[un(m,/:(plac\w+)/,Vs+"input-$1")]})],p)}return""})}},jC=[zC],$C=function(r){var a=r.key;if(a==="css"){var c=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(c,function(_){var J=_.getAttribute("data-emotion");J.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var p=r.stylisPlugins||jC,m={},S,k=[];S=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(_){for(var J=_.getAttribute("data-emotion").split(" "),it=1;it<J.length;it++)m[J[it]]=!0;k.push(_)});var O,R=[IC,NC];{var j,$=[RC,PC(function(_){j.insert(_)})],I=OC(R.concat(p,$)),F=function(J){return np(EC(J),I)};O=function(J,it,st,ct){j=st,F(J?J+"{"+it.styles+"}":it.styles),ct&&(z.inserted[it.name]=!0)}}var z={key:a,sheet:new pC({key:a,container:S,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:m,registered:{},insert:O};return z.sheet.hydrate(k),z},Xy={exports:{}},fn={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bv;function HC(){if(bv)return fn;bv=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,c=t?Symbol.for("react.fragment"):60107,p=t?Symbol.for("react.strict_mode"):60108,m=t?Symbol.for("react.profiler"):60114,S=t?Symbol.for("react.provider"):60109,k=t?Symbol.for("react.context"):60110,O=t?Symbol.for("react.async_mode"):60111,R=t?Symbol.for("react.concurrent_mode"):60111,j=t?Symbol.for("react.forward_ref"):60112,$=t?Symbol.for("react.suspense"):60113,I=t?Symbol.for("react.suspense_list"):60120,F=t?Symbol.for("react.memo"):60115,z=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,J=t?Symbol.for("react.fundamental"):60117,it=t?Symbol.for("react.responder"):60118,st=t?Symbol.for("react.scope"):60119;function ct(lt){if(typeof lt=="object"&<!==null){var wt=lt.$$typeof;switch(wt){case r:switch(lt=lt.type,lt){case O:case R:case c:case m:case p:case $:return lt;default:switch(lt=lt&<.$$typeof,lt){case k:case j:case z:case F:case S:return lt;default:return wt}}case a:return wt}}}function ht(lt){return ct(lt)===R}return fn.AsyncMode=O,fn.ConcurrentMode=R,fn.ContextConsumer=k,fn.ContextProvider=S,fn.Element=r,fn.ForwardRef=j,fn.Fragment=c,fn.Lazy=z,fn.Memo=F,fn.Portal=a,fn.Profiler=m,fn.StrictMode=p,fn.Suspense=$,fn.isAsyncMode=function(lt){return ht(lt)||ct(lt)===O},fn.isConcurrentMode=ht,fn.isContextConsumer=function(lt){return ct(lt)===k},fn.isContextProvider=function(lt){return ct(lt)===S},fn.isElement=function(lt){return typeof lt=="object"&<!==null&<.$$typeof===r},fn.isForwardRef=function(lt){return ct(lt)===j},fn.isFragment=function(lt){return ct(lt)===c},fn.isLazy=function(lt){return ct(lt)===z},fn.isMemo=function(lt){return ct(lt)===F},fn.isPortal=function(lt){return ct(lt)===a},fn.isProfiler=function(lt){return ct(lt)===m},fn.isStrictMode=function(lt){return ct(lt)===p},fn.isSuspense=function(lt){return ct(lt)===$},fn.isValidElementType=function(lt){return typeof lt=="string"||typeof lt=="function"||lt===c||lt===R||lt===m||lt===p||lt===$||lt===I||typeof lt=="object"&<!==null&&(lt.$$typeof===z||lt.$$typeof===F||lt.$$typeof===S||lt.$$typeof===k||lt.$$typeof===j||lt.$$typeof===J||lt.$$typeof===it||lt.$$typeof===st||lt.$$typeof===_)},fn.typeOf=ct,fn}var xv;function UC(){return xv||(xv=1,Xy.exports=HC()),Xy.exports}var Yy,vv;function FC(){if(vv)return Yy;vv=1;var t=UC(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},m={};m[t.ForwardRef]=c,m[t.Memo]=p;function S(z){return t.isMemo(z)?p:m[z.$$typeof]||r}var k=Object.defineProperty,O=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,j=Object.getOwnPropertyDescriptor,$=Object.getPrototypeOf,I=Object.prototype;function F(z,_,J){if(typeof _!="string"){if(I){var it=$(_);it&&it!==I&&F(z,it,J)}var st=O(_);R&&(st=st.concat(R(_)));for(var ct=S(z),ht=S(_),lt=0;lt<st.length;++lt){var wt=st[lt];if(!a[wt]&&!(J&&J[wt])&&!(ht&&ht[wt])&&!(ct&&ct[wt])){var at=j(_,wt);try{k(z,wt,at)}catch{}}}}return z}return Yy=F,Yy}FC();var GC=!0;function m1(t,r,a){var c="";return a.split(" ").forEach(function(p){t[p]!==void 0?r.push(t[p]+";"):p&&(c+=p+" ")}),c}var nx=function(r,a,c){var p=r.key+"-"+a.name;(c===!1||GC===!1)&&r.registered[p]===void 0&&(r.registered[p]=a.styles)},rx=function(r,a,c){nx(r,a,c);var p=r.key+"-"+a.name;if(r.inserted[a.name]===void 0){var m=a;do r.insert(a===m?"."+p:"",m,r.sheet,!0),m=m.next;while(m!==void 0)}};function _C(t){for(var r=0,a,c=0,p=t.length;p>=4;++c,p-=4)a=t.charCodeAt(c)&255|(t.charCodeAt(++c)&255)<<8|(t.charCodeAt(++c)&255)<<16|(t.charCodeAt(++c)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,r=(a&65535)*1540483477+((a>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(p){case 3:r^=(t.charCodeAt(c+2)&255)<<16;case 2:r^=(t.charCodeAt(c+1)&255)<<8;case 1:r^=t.charCodeAt(c)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var WC={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,scale: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},VC=/[A-Z]|^ms/g,XC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y1=function(r){return r.charCodeAt(1)===45},Sv=function(r){return r!=null&&typeof r!="boolean"},qy=f1(function(t){return y1(t)?t:t.replace(VC,"-$&").toLowerCase()}),wv=function(r,a){switch(r){case"animation":case"animationName":if(typeof a=="string")return a.replace(XC,function(c,p,m){return Pc={name:p,styles:m,next:Pc},p})}return WC[r]!==1&&!y1(r)&&typeof a=="number"&&a!==0?a+"px":a};function Ff(t,r,a){if(a==null)return"";var c=a;if(c.__emotion_styles!==void 0)return c;switch(typeof a){case"boolean":return"";case"object":{var p=a;if(p.anim===1)return Pc={name:p.name,styles:p.styles,next:Pc},p.name;var m=a;if(m.styles!==void 0){var S=m.next;if(S!==void 0)for(;S!==void 0;)Pc={name:S.name,styles:S.styles,next:Pc},S=S.next;var k=m.styles+";";return k}return YC(t,r,a)}case"function":{if(t!==void 0){var O=Pc,R=a(t);return Pc=O,Ff(t,r,R)}break}}var j=a;if(r==null)return j;var $=r[j];return $!==void 0?$:j}function YC(t,r,a){var c="";if(Array.isArray(a))for(var p=0;p<a.length;p++)c+=Ff(t,r,a[p])+";";else for(var m in a){var S=a[m];if(typeof S!="object"){var k=S;r!=null&&r[k]!==void 0?c+=m+"{"+r[k]+"}":Sv(k)&&(c+=qy(m)+":"+wv(m,k)+";")}else if(Array.isArray(S)&&typeof S[0]=="string"&&(r==null||r[S[0]]===void 0))for(var O=0;O<S.length;O++)Sv(S[O])&&(c+=qy(m)+":"+wv(m,S[O])+";");else{var R=Ff(t,r,S);switch(m){case"animation":case"animationName":{c+=qy(m)+":"+R+";";break}default:c+=m+"{"+R+"}"}}}return c}var Cv=/label:\s*([^\s;{]+)\s*(;|$)/g,Pc;function qf(t,r,a){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var c=!0,p="";Pc=void 0;var m=t[0];if(m==null||m.raw===void 0)c=!1,p+=Ff(a,r,m);else{var S=m;p+=S[0]}for(var k=1;k<t.length;k++)if(p+=Ff(a,r,t[k]),c){var O=m;p+=O[k]}Cv.lastIndex=0;for(var R="",j;(j=Cv.exec(p))!==null;)R+="-"+j[1];var $=_C(p)+R;return{name:$,styles:p,next:Pc}}var qC=function(r){return r()},b1=xb.useInsertionEffect?xb.useInsertionEffect:!1,x1=b1||qC,kv=b1||W.useLayoutEffect,v1=W.createContext(typeof HTMLElement<"u"?$C({key:"css"}):null);v1.Provider;var sx=function(r){return W.forwardRef(function(a,c){var p=W.useContext(v1);return r(a,p,c)})},Kf=W.createContext({}),ox={}.hasOwnProperty,wb="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",KC=function(r,a){var c={};for(var p in a)ox.call(a,p)&&(c[p]=a[p]);return c[wb]=r,c},ZC=function(r){var a=r.cache,c=r.serialized,p=r.isStringTag;return nx(a,c,p),x1(function(){return rx(a,c,p)}),null},QC=sx(function(t,r,a){var c=t.css;typeof c=="string"&&r.registered[c]!==void 0&&(c=r.registered[c]);var p=t[wb],m=[c],S="";typeof t.className=="string"?S=m1(r.registered,m,t.className):t.className!=null&&(S=t.className+" ");var k=qf(m,void 0,W.useContext(Kf));S+=r.key+"-"+k.name;var O={};for(var R in t)ox.call(t,R)&&R!=="css"&&R!==wb&&(O[R]=t[R]);return O.className=S,a&&(O.ref=a),W.createElement(W.Fragment,null,W.createElement(ZC,{cache:r,serialized:k,isStringTag:typeof p=="string"}),W.createElement(p,O))}),JC=QC,Mv=function(r,a){var c=arguments;if(a==null||!ox.call(a,"css"))return W.createElement.apply(void 0,c);var p=c.length,m=new Array(p);m[0]=JC,m[1]=KC(r,a);for(var S=2;S<p;S++)m[S]=c[S];return W.createElement.apply(null,m)};(function(t){var r;r||(r=t.JSX||(t.JSX={}))})(Mv||(Mv={}));var tk=sx(function(t,r){var a=t.styles,c=qf([a],void 0,W.useContext(Kf)),p=W.useRef();return kv(function(){var m=r.key+"-global",S=new r.sheet.constructor({key:m,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),k=!1,O=document.querySelector('style[data-emotion="'+m+" "+c.name+'"]');return r.sheet.tags.length&&(S.before=r.sheet.tags[0]),O!==null&&(k=!0,O.setAttribute("data-emotion",m),S.hydrate([O])),p.current=[S,k],function(){S.flush()}},[r]),kv(function(){var m=p.current,S=m[0],k=m[1];if(k){m[1]=!1;return}if(c.next!==void 0&&rx(r,c.next,!0),S.tags.length){var O=S.tags[S.tags.length-1].nextElementSibling;S.before=O,S.flush()}r.insert("",c,S,!1)},[r,c.name]),null});function hp(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return qf(r)}function wd(){var t=hp.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ek=/^((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|fetchpriority|fetchPriority|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)-.*))$/,ik=f1(function(t){return ek.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),nk=ik,rk=function(r){return r!=="theme"},Tv=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?nk:rk},Ev=function(r,a,c){var p;if(a){var m=a.shouldForwardProp;p=r.__emotion_forwardProp&&m?function(S){return r.__emotion_forwardProp(S)&&m(S)}:m}return typeof p!="function"&&c&&(p=r.__emotion_forwardProp),p},sk=function(r){var a=r.cache,c=r.serialized,p=r.isStringTag;return nx(a,c,p),x1(function(){return rx(a,c,p)}),null},ok=function t(r,a){var c=r.__emotion_real===r,p=c&&r.__emotion_base||r,m,S;a!==void 0&&(m=a.label,S=a.target);var k=Ev(r,a,c),O=k||Tv(p),R=!O("as");return function(){var j=arguments,$=c&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(m!==void 0&&$.push("label:"+m+";"),j[0]==null||j[0].raw===void 0)$.push.apply($,j);else{var I=j[0];$.push(I[0]);for(var F=j.length,z=1;z<F;z++)$.push(j[z],I[z])}var _=sx(function(J,it,st){var ct=R&&J.as||p,ht="",lt=[],wt=J;if(J.theme==null){wt={};for(var at in J)wt[at]=J[at];wt.theme=W.useContext(Kf)}typeof J.className=="string"?ht=m1(it.registered,lt,J.className):J.className!=null&&(ht=J.className+" ");var _t=qf($.concat(lt),it.registered,wt);ht+=it.key+"-"+_t.name,S!==void 0&&(ht+=" "+S);var Et=R&&k===void 0?Tv(ct):O,ot={};for(var It in J)R&&It==="as"||Et(It)&&(ot[It]=J[It]);return ot.className=ht,st&&(ot.ref=st),W.createElement(W.Fragment,null,W.createElement(sk,{cache:it,serialized:_t,isStringTag:typeof ct=="string"}),W.createElement(ct,ot))});return _.displayName=m!==void 0?m:"Styled("+(typeof p=="string"?p:p.displayName||p.name||"Component")+")",_.defaultProps=r.defaultProps,_.__emotion_real=_,_.__emotion_base=p,_.__emotion_styles=$,_.__emotion_forwardProp=k,Object.defineProperty(_,"toString",{value:function(){return"."+S}}),_.withComponent=function(J,it){var st=t(J,Bi({},a,it,{shouldForwardProp:Ev(_,it,!0)}));return st.apply(void 0,$)},_}},ak=["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Cb=ok.bind(null);ak.forEach(function(t){Cb[t]=Cb(t)});var Ky={exports:{}},Zy,Av;function lk(){if(Av)return Zy;Av=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zy=t,Zy}var Qy,Rv;function ck(){if(Rv)return Qy;Rv=1;var t=lk();function r(){}function a(){}return a.resetWarningCache=r,Qy=function(){function c(S,k,O,R,j,$){if($!==t){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}}c.isRequired=c;function p(){return c}var m={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:p,element:c,elementType:c,instanceOf:p,node:c,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:a,resetWarningCache:r};return m.PropTypes=m,m},Qy}var Ov;function uk(){return Ov||(Ov=1,Ky.exports=ck()()),Ky.exports}var dk=uk();const Pv=up(dk);function hk(t){return t==null||Object.keys(t).length===0}function S1(t){const{styles:r,defaultTheme:a={}}=t,c=typeof r=="function"?p=>r(hk(p)?a:p):r;return Y.jsx(tk,{styles:c})}/**
* @mui/styled-engine v6.4.3
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function w1(t,r){return Cb(t,r)}function pk(t,r){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=r(t.__emotion_styles))}const Bv=[];function Dv(t){return Bv[0]=t,qf(Bv)}var Jy={exports:{}},An={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Lv;function fk(){if(Lv)return An;Lv=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),F=Symbol.for("react.client.reference");function z(_){if(typeof _=="object"&&_!==null){var J=_.$$typeof;switch(J){case t:switch(_=_.type,_){case a:case p:case c:case O:case R:return _;default:switch(_=_&&_.$$typeof,_){case S:case k:case $:case j:return _;case m:return _;default:return J}}case r:return J}}}return An.ContextConsumer=m,An.ContextProvider=S,An.Element=t,An.ForwardRef=k,An.Fragment=a,An.Lazy=$,An.Memo=j,An.Portal=r,An.Profiler=p,An.StrictMode=c,An.Suspense=O,An.SuspenseList=R,An.isContextConsumer=function(_){return z(_)===m},An.isContextProvider=function(_){return z(_)===S},An.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},An.isForwardRef=function(_){return z(_)===k},An.isFragment=function(_){return z(_)===a},An.isLazy=function(_){return z(_)===$},An.isMemo=function(_){return z(_)===j},An.isPortal=function(_){return z(_)===r},An.isProfiler=function(_){return z(_)===p},An.isStrictMode=function(_){return z(_)===c},An.isSuspense=function(_){return z(_)===O},An.isSuspenseList=function(_){return z(_)===R},An.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===a||_===p||_===c||_===O||_===R||_===I||typeof _=="object"&&_!==null&&(_.$$typeof===$||_.$$typeof===j||_.$$typeof===S||_.$$typeof===m||_.$$typeof===k||_.$$typeof===F||_.getModuleId!==void 0)},An.typeOf=z,An}var Iv;function gk(){return Iv||(Iv=1,Jy.exports=fk()),Jy.exports}var C1=gk();function Bc(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function k1(t){if(W.isValidElement(t)||C1.isValidElementType(t)||!Bc(t))return t;const r={};return Object.keys(t).forEach(a=>{r[a]=k1(t[a])}),r}function Xs(t,r,a={clone:!0}){const c=a.clone?{...t}:t;return Bc(t)&&Bc(r)&&Object.keys(r).forEach(p=>{W.isValidElement(r[p])||C1.isValidElementType(r[p])?c[p]=r[p]:Bc(r[p])&&Object.prototype.hasOwnProperty.call(t,p)&&Bc(t[p])?c[p]=Xs(t[p],r[p],a):a.clone?c[p]=Bc(r[p])?k1(r[p]):r[p]:c[p]=r[p]}),c}const mk=t=>{const r=Object.keys(t).map(a=>({key:a,val:t[a]}))||[];return r.sort((a,c)=>a.val-c.val),r.reduce((a,c)=>({...a,[c.key]:c.val}),{})};function yk(t){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:a="px",step:c=5,...p}=t,m=mk(r),S=Object.keys(m);function k(I){return`@media (min-width:${typeof r[I]=="number"?r[I]:I}${a})`}function O(I){return`@media (max-width:${(typeof r[I]=="number"?r[I]:I)-c/100}${a})`}function R(I,F){const z=S.indexOf(F);return`@media (min-width:${typeof r[I]=="number"?r[I]:I}${a}) and (max-width:${(z!==-1&&typeof r[S[z]]=="number"?r[S[z]]:F)-c/100}${a})`}function j(I){return S.indexOf(I)+1<S.length?R(I,S[S.indexOf(I)+1]):k(I)}function $(I){const F=S.indexOf(I);return F===0?k(S[1]):F===S.length-1?O(S[F]):R(I,S[S.indexOf(I)+1]).replace("@media","@media not all and")}return{keys:S,values:m,up:k,down:O,between:R,only:j,not:$,unit:a,...p}}function bk(t,r){if(!t.containerQueries)return r;const a=Object.keys(r).filter(c=>c.startsWith("@container")).sort((c,p)=>{var S,k;const m=/min-width:\s*([0-9.]+)/;return+(((S=c.match(m))==null?void 0:S[1])||0)-+(((k=p.match(m))==null?void 0:k[1])||0)});return a.length?a.reduce((c,p)=>{const m=r[p];return delete c[p],c[p]=m,c},{...r}):r}function xk(t,r){return r==="@"||r.startsWith("@")&&(t.some(a=>r.startsWith(`@${a}`))||!!r.match(/^@\d/))}function vk(t,r){const a=r.match(/^@([^/]+)?\/?(.+)?$/);if(!a)return null;const[,c,p]=a,m=Number.isNaN(+c)?c||0:+c;return t.containerQueries(p).up(m)}function Sk(t){const r=(m,S)=>m.replace("@media",S?`@container ${S}`:"@container");function a(m,S){m.up=(...k)=>r(t.breakpoints.up(...k),S),m.down=(...k)=>r(t.breakpoints.down(...k),S),m.between=(...k)=>r(t.breakpoints.between(...k),S),m.only=(...k)=>r(t.breakpoints.only(...k),S),m.not=(...k)=>{const O=r(t.breakpoints.not(...k),S);return O.includes("not all and")?O.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):O}}const c={},p=m=>(a(c,m),c);return a(p),{...t,containerQueries:p}}const wk={borderRadius:4};function Lf(t,r){return r?Xs(t,r,{clone:!1}):t}const Ym={xs:0,sm:600,md:900,lg:1200,xl:1536},Nv={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Ym[t]}px)`},Ck={containerQueries:t=>({up:r=>{let a=typeof r=="number"?r:Ym[r]||r;return typeof a=="number"&&(a=`${a}px`),t?`@container ${t} (min-width:${a})`:`@container (min-width:${a})`}})};function Cu(t,r,a){const c=t.theme||{};if(Array.isArray(r)){const m=c.breakpoints||Nv;return r.reduce((S,k,O)=>(S[m.up(m.keys[O])]=a(r[O]),S),{})}if(typeof r=="object"){const m=c.breakpoints||Nv;return Object.keys(r).reduce((S,k)=>{if(xk(m.keys,k)){const O=vk(c.containerQueries?c:Ck,k);O&&(S[O]=a(r[k],k))}else if(Object.keys(m.values||Ym).includes(k)){const O=m.up(k);S[O]=a(r[k],k)}else{const O=k;S[O]=r[O]}return S},{})}return a(r)}function kk(t={}){var a;return((a=t.keys)==null?void 0:a.reduce((c,p)=>{const m=t.up(p);return c[m]={},c},{}))||{}}function Mk(t,r){return t.reduce((a,c)=>{const p=a[c];return(!p||Object.keys(p).length===0)&&delete a[c],a},r)}function Re(t){if(typeof t!="string")throw new Error(wu(7));return t.charAt(0).toUpperCase()+t.slice(1)}function bd(t,r,a=!0){if(!r||typeof r!="string")return null;if(t&&t.vars&&a){const c=`vars.${r}`.split(".").reduce((p,m)=>p&&p[m]?p[m]:null,t);if(c!=null)return c}return r.split(".").reduce((c,p)=>c&&c[p]!=null?c[p]:null,t)}function Dm(t,r,a,c=a){let p;return typeof t=="function"?p=t(a):Array.isArray(t)?p=t[a]||c:p=bd(t,a)||c,r&&(p=r(p,c,t)),p}function Dr(t){const{prop:r,cssProperty:a=t.prop,themeKey:c,transform:p}=t,m=S=>{if(S[r]==null)return null;const k=S[r],O=S.theme,R=bd(O,c)||{};return Cu(S,k,$=>{let I=Dm(R,p,$);return $===I&&typeof $=="string"&&(I=Dm(R,p,`${r}${$==="default"?"":Re($)}`,$)),a===!1?I:{[a]:I}})};return m.propTypes={},m.filterProps=[r],m}function Tk(t){const r={};return a=>(r[a]===void 0&&(r[a]=t(a)),r[a])}const Ek={m:"margin",p:"padding"},Ak={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rk=Tk(t=>{if(t.length>2)if(zv[t])t=zv[t];else return[t];const[r,a]=t.split(""),c=Ek[r],p=Ak[a]||"";return Array.isArray(p)?p.map(m=>c+m):[c+p]}),ax=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],lx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ax,...lx];function Zf(t,r,a,c){const p=bd(t,r,!0)??a;return typeof p=="number"||typeof p=="string"?m=>typeof m=="string"?m:typeof p=="string"?`calc(${m} * ${p})`:p*m:Array.isArray(p)?m=>{if(typeof m=="string")return m;const S=Math.abs(m),k=p[S];return m>=0?k:typeof k=="number"?-k:`-${k}`}:typeof p=="function"?p:()=>{}}function cx(t){return Zf(t,"spacing",8)}function Qf(t,r){return typeof r=="string"||r==null?r:t(r)}function Ok(t,r){return a=>t.reduce((c,p)=>(c[p]=Qf(r,a),c),{})}function Pk(t,r,a,c){if(!r.includes(a))return null;const p=Rk(a),m=Ok(p,c),S=t[a];return Cu(t,S,m)}function M1(t,r){const a=cx(t.theme);return Object.keys(t).map(c=>Pk(t,r,c,a)).reduce(Lf,{})}function br(t){return M1(t,ax)}br.propTypes={};br.filterProps=ax;function xr(t){return M1(t,lx)}xr.propTypes={};xr.filterProps=lx;function T1(t=8,r=cx({spacing:t})){if(t.mui)return t;const a=(...c)=>(c.length===0?[1]:c).map(m=>{const S=r(m);return typeof S=="number"?`${S}px`:S}).join(" ");return a.mui=!0,a}function qm(...t){const r=t.reduce((c,p)=>(p.filterProps.forEach(m=>{c[m]=p}),c),{}),a=c=>Object.keys(c).reduce((p,m)=>r[m]?Lf(p,r[m](c)):p,{});return a.propTypes={},a.filterProps=t.reduce((c,p)=>c.concat(p.filterProps),[]),a}function Qa(t){return typeof t!="number"?t:`${t}px solid`}function il(t,r){return Dr({prop:t,themeKey:"borders",transform:r})}const Bk=il("border",Qa),Dk=il("borderTop",Qa),Lk=il("borderRight",Qa),Ik=il("borderBottom",Qa),Nk=il("borderLeft",Qa),zk=il("borderColor"),jk=il("borderTopColor"),$k=il("borderRightColor"),Hk=il("borderBottomColor"),Uk=il("borderLeftColor"),Fk=il("outline",Qa),Gk=il("outlineColor"),Km=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const r=Zf(t.theme,"shape.borderRadius",4),a=c=>({borderRadius:Qf(r,c)});return Cu(t,t.borderRadius,a)}return null};Km.propTypes={};Km.filterProps=["borderRadius"];qm(Bk,Dk,Lk,Ik,Nk,zk,jk,$k,Hk,Uk,Km,Fk,Gk);const Zm=t=>{if(t.gap!==void 0&&t.gap!==null){const r=Zf(t.theme,"spacing",8),a=c=>({gap:Qf(r,c)});return Cu(t,t.gap,a)}return null};Zm.propTypes={};Zm.filterProps=["gap"];const Qm=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const r=Zf(t.theme,"spacing",8),a=c=>({columnGap:Qf(r,c)});return Cu(t,t.columnGap,a)}return null};Qm.propTypes={};Qm.filterProps=["columnGap"];const Jm=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const r=Zf(t.theme,"spacing",8),a=c=>({rowGap:Qf(r,c)});return Cu(t,t.rowGap,a)}return null};Jm.propTypes={};Jm.filterProps=["rowGap"];const _k=Dr({prop:"gridColumn"}),Wk=Dr({prop:"gridRow"}),Vk=Dr({prop:"gridAutoFlow"}),Xk=Dr({prop:"gridAutoColumns"}),Yk=Dr({prop:"gridAutoRows"}),qk=Dr({prop:"gridTemplateColumns"}),Kk=Dr({prop:"gridTemplateRows"}),Zk=Dr({prop:"gridTemplateAreas"}),Qk=Dr({prop:"gridArea"});qm(Zm,Qm,Jm,_k,Wk,Vk,Xk,Yk,qk,Kk,Zk,Qk);function rp(t,r){return r==="grey"?r:t}const Jk=Dr({prop:"color",themeKey:"palette",transform:rp}),tM=Dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rp}),eM=Dr({prop:"backgroundColor",themeKey:"palette",transform:rp});qm(Jk,tM,eM);function ba(t){return t<=1&&t!==0?`${t*100}%`:t}const iM=Dr({prop:"width",transform:ba}),ux=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const r=a=>{var p,m,S,k,O;const c=((S=(m=(p=t.theme)==null?void 0:p.breakpoints)==null?void 0:m.values)==null?void 0:S[a])||Ym[a];return c?((O=(k=t.theme)==null?void 0:k.breakpoints)==null?void 0:O.unit)!=="px"?{maxWidth:`${c}${t.theme.breakpoints.unit}`}:{maxWidth:c}:{maxWidth:ba(a)}};return Cu(t,t.maxWidth,r)}return null};ux.filterProps=["maxWidth"];const nM=Dr({prop:"minWidth",transform:ba}),rM=Dr({prop:"height",transform:ba}),sM=Dr({prop:"maxHeight",transform:ba}),oM=Dr({prop:"minHeight",transform:ba});Dr({prop:"size",cssProperty:"width",transform:ba});Dr({prop:"size",cssProperty:"height",transform:ba});const aM=Dr({prop:"boxSizing"});qm(iM,ux,nM,rM,sM,oM,aM);const Jf={border:{themeKey:"borders",transform:Qa},borderTop:{themeKey:"borders",transform:Qa},borderRight:{themeKey:"borders",transform:Qa},borderBottom:{themeKey:"borders",transform:Qa},borderLeft:{themeKey:"borders",transform:Qa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Km},color:{themeKey:"palette",transform:rp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rp},backgroundColor:{themeKey:"palette",transform:rp},p:{style:xr},pt:{style:xr},pr:{style:xr},pb:{style:xr},pl:{style:xr},px:{style:xr},py:{style:xr},padding:{style:xr},paddingTop:{style:xr},paddingRight:{style:xr},paddingBottom:{style:xr},paddingLeft:{style:xr},paddingX:{style:xr},paddingY:{style:xr},paddingInline:{style:xr},paddingInlineStart:{style:xr},paddingInlineEnd:{style:xr},paddingBlock:{style:xr},paddingBlockStart:{style:xr},paddingBlockEnd:{style:xr},m:{style:br},mt:{style:br},mr:{style:br},mb:{style:br},ml:{style:br},mx:{style:br},my:{style:br},margin:{style:br},marginTop:{style:br},marginRight:{style:br},marginBottom:{style:br},marginLeft:{style:br},marginX:{style:br},marginY:{style:br},marginInline:{style:br},marginInlineStart:{style:br},marginInlineEnd:{style:br},marginBlock:{style:br},marginBlockStart:{style:br},marginBlockEnd:{style:br},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zm},rowGap:{style:Jm},columnGap:{style:Qm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ba},maxWidth:{style:ux},minWidth:{transform:ba},height:{transform:ba},maxHeight:{transform:ba},minHeight:{transform:ba},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lM(...t){const r=t.reduce((c,p)=>c.concat(Object.keys(p)),[]),a=new Set(r);return t.every(c=>a.size===Object.keys(c).length)}function cM(t,r){return typeof t=="function"?t(r):t}function uM(){function t(a,c,p,m){const S={[a]:c,theme:p},k=m[a];if(!k)return{[a]:c};const{cssProperty:O=a,themeKey:R,transform:j,style:$}=k;if(c==null)return null;if(R==="typography"&&c==="inherit")return{[a]:c};const I=bd(p,R)||{};return $?$(S):Cu(S,c,z=>{let _=Dm(I,j,z);return z===_&&typeof z=="string"&&(_=Dm(I,j,`${a}${z==="default"?"":Re(z)}`,z)),O===!1?_:{[O]:_}})}function r(a){const{sx:c,theme:p={}}=a||{};if(!c)return null;const m=p.unstable_sxConfig??Jf;function S(k){let O=k;if(typeof k=="function")O=k(p);else if(typeof k!="object")return k;if(!O)return null;const R=kk(p.breakpoints),j=Object.keys(R);let $=R;return Object.keys(O).forEach(I=>{const F=cM(O[I],p);if(F!=null)if(typeof F=="object")if(m[I])$=Lf($,t(I,F,p,m));else{const z=Cu({theme:p},F,_=>({[I]:_}));lM(z,F)?$[I]=r({sx:F,theme:p}):$=Lf($,z)}else $=Lf($,t(I,F,p,m))}),bk(p,Mk(j,$))}return Array.isArray(c)?c.map(S):S(c)}return r}const xd=uM();xd.filterProps=["sx"];function dM(t,r){var c;const a=this;if(a.vars){if(!((c=a.colorSchemes)!=null&&c[t])||typeof a.getColorSchemeSelector!="function")return{};let p=a.getColorSchemeSelector(t);return p==="&"?r:((p.includes("data-")||p.includes("."))&&(p=`*:where(${p.replace(/\s*&$/,"")}) &`),{[p]:r})}return a.palette.mode===t?r:{}}function tg(t={},...r){const{breakpoints:a={},palette:c={},spacing:p,shape:m={},...S}=t,k=yk(a),O=T1(p);let R=Xs({breakpoints:k,direction:"ltr",components:{},palette:{mode:"light",...c},spacing:O,shape:{...wk,...m}},S);return R=Sk(R),R.applyStyles=dM,R=r.reduce((j,$)=>Xs(j,$),R),R.unstable_sxConfig={...Jf,...S==null?void 0:S.unstable_sxConfig},R.unstable_sx=function($){return xd({sx:$,theme:this})},R}function hM(t){return Object.keys(t).length===0}function E1(t=null){const r=W.useContext(Kf);return!r||hM(r)?t:r}const pM=tg();function eg(t=pM){return E1(t)}function fM({styles:t,themeId:r,defaultTheme:a={}}){const c=eg(a),p=typeof t=="function"?t(r&&c[r]||c):t;return Y.jsx(S1,{styles:p})}const gM=t=>{var c;const r={systemProps:{},otherProps:{}},a=((c=t==null?void 0:t.theme)==null?void 0:c.unstable_sxConfig)??Jf;return Object.keys(t).forEach(p=>{a[p]?r.systemProps[p]=t[p]:r.otherProps[p]=t[p]}),r};function dx(t){const{sx:r,...a}=t,{systemProps:c,otherProps:p}=gM(a);let m;return Array.isArray(r)?m=[c,...r]:typeof r=="function"?m=(...S)=>{const k=r(...S);return Bc(k)?{...c,...k}:c}:m={...c,...r},{...p,sx:m}}const jv=t=>t,mM=()=>{let t=jv;return{configure(r){t=r},generate(r){return t(r)},reset(){t=jv}}},A1=mM();function R1(t){var r,a,c="";if(typeof t=="string"||typeof t=="number")c+=t;else if(typeof t=="object")if(Array.isArray(t)){var p=t.length;for(r=0;r<p;r++)t[r]&&(a=R1(t[r]))&&(c&&(c+=" "),c+=a)}else for(a in t)t[a]&&(c&&(c+=" "),c+=a);return c}function je(){for(var t,r,a=0,c="",p=arguments.length;a<p;a++)(t=arguments[a])&&(r=R1(t))&&(c&&(c+=" "),c+=r);return c}function yM(t={}){const{themeId:r,defaultTheme:a,defaultClassName:c="MuiBox-root",generateClassName:p}=t,m=w1("div",{shouldForwardProp:k=>k!=="theme"&&k!=="sx"&&k!=="as"})(xd);return W.forwardRef(function(O,R){const j=eg(a),{className:$,component:I="div",...F}=dx(O);return Y.jsx(m,{as:I,ref:R,className:je($,p?p(c):c),theme:r&&j[r]||j,...F})})}const bM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function si(t,r,a="Mui"){const c=bM[r];return c?`${a}-${c}`:`${A1.generate(t)}-${r}`}function ci(t,r,a="Mui"){const c={};return r.forEach(p=>{c[p]=si(t,p,a)}),c}function O1(t){const{variants:r,...a}=t,c={variants:r,style:Dv(a),isProcessed:!0};return c.style===a||r&&r.forEach(p=>{typeof p.style!="function"&&(p.style=Dv(p.style))}),c}const xM=tg();function sp(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function vM(t){return t?(r,a)=>a[t]:null}function SM(t,r,a){t.theme=CM(t.theme)?a:t.theme[r]||t.theme}function vm(t,r){const a=typeof r=="function"?r(t):r;if(Array.isArray(a))return a.flatMap(c=>vm(t,c));if(Array.isArray(a==null?void 0:a.variants)){let c;if(a.isProcessed)c=a.style;else{const{variants:p,...m}=a;c=m}return P1(t,a.variants,[c])}return a!=null&&a.isProcessed?a.style:a}function P1(t,r,a=[]){var p;let c;t:for(let m=0;m<r.length;m+=1){const S=r[m];if(typeof S.props=="function"){if(c??(c={...t,...t.ownerState,ownerState:t.ownerState}),!S.props(c))continue}else for(const k in S.props)if(t[k]!==S.props[k]&&((p=t.ownerState)==null?void 0:p[k])!==S.props[k])continue t;typeof S.style=="function"?(c??(c={...t,...t.ownerState,ownerState:t.ownerState}),a.push(S.style(c))):a.push(S.style)}return a}function B1(t={}){const{themeId:r,defaultTheme:a=xM,rootShouldForwardProp:c=sp,slotShouldForwardProp:p=sp}=t;function m(k){SM(k,r,a)}return(k,O={})=>{pk(k,lt=>lt.filter(wt=>wt!==xd));const{name:R,slot:j,skipVariantsResolver:$,skipSx:I,overridesResolver:F=vM(MM(j)),...z}=O,_=$!==void 0?$:j&&j!=="Root"&&j!=="root"||!1,J=I||!1;let it=sp;j==="Root"||j==="root"?it=c:j?it=p:kM(k)&&(it=void 0);const st=w1(k,{shouldForwardProp:it,label:wM(),...z}),ct=lt=>{if(typeof lt=="function"&<.__emotion_real!==lt)return function(at){return vm(at,lt)};if(Bc(lt)){const wt=O1(lt);return wt.variants?function(_t){return vm(_t,wt)}:wt.style}return lt},ht=(...lt)=>{const wt=[],at=lt.map(ct),_t=[];if(wt.push(m),R&&F&&_t.push(function(se){var zt,ne;const ie=(ne=(zt=se.theme.components)==null?void 0:zt[R])==null?void 0:ne.styleOverrides;if(!ie)return null;const Kt={};for(const te in ie)Kt[te]=vm(se,ie[te]);return F(se,Kt)}),R&&!_&&_t.push(function(se){var Kt,zt;const re=se.theme,ie=(zt=(Kt=re==null?void 0:re.components)==null?void 0:Kt[R])==null?void 0:zt.variants;return ie?P1(se,ie):null}),J||_t.push(xd),Array.isArray(at[0])){const It=at.shift(),se=new Array(wt.length).fill(""),re=new Array(_t.length).fill("");let ie;ie=[...se,...It,...re],ie.raw=[...se,...It.raw,...re],wt.unshift(ie)}const Et=[...wt,...at,..._t],ot=st(...Et);return k.muiName&&(ot.muiName=k.muiName),ot};return st.withConfig&&(ht.withConfig=st.withConfig),ht}}function wM(t,r){return void 0}function CM(t){for(const r in t)return!1;return!0}function kM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function MM(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const D1=B1();function Gf(t,r){const a={...r};for(const c in t)if(Object.prototype.hasOwnProperty.call(t,c)){const p=c;if(p==="components"||p==="slots")a[p]={...t[p],...a[p]};else if(p==="componentsProps"||p==="slotProps"){const m=t[p],S=r[p];if(!S)a[p]=m||{};else if(!m)a[p]=S;else{a[p]={...S};for(const k in m)if(Object.prototype.hasOwnProperty.call(m,k)){const O=k;a[p][O]=Gf(m[O],S[O])}}}else a[p]===void 0&&(a[p]=t[p])}return a}function TM(t){const{theme:r,name:a,props:c}=t;return!r||!r.components||!r.components[a]||!r.components[a].defaultProps?c:Gf(r.components[a].defaultProps,c)}function hx({props:t,name:r,defaultTheme:a,themeId:c}){let p=eg(a);return c&&(p=p[c]||p),TM({theme:p,name:r,props:t})}const Nc=typeof window<"u"?W.useLayoutEffect:W.useEffect;function EM(t,r=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,a))}function px(t,r=0,a=1){return EM(t,r,a)}function AM(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let a=t.match(r);return a&&a[0].length===1&&(a=a.map(c=>c+c)),a?`rgb${a.length===4?"a":""}(${a.map((c,p)=>p<3?parseInt(c,16):Math.round(parseInt(c,16)/255*1e3)/1e3).join(", ")})`:""}function vd(t){if(t.type)return t;if(t.charAt(0)==="#")return vd(AM(t));const r=t.indexOf("("),a=t.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw new Error(wu(9,t));let c=t.substring(r+1,t.length-1),p;if(a==="color"){if(c=c.split(" "),p=c.shift(),c.length===4&&c[3].charAt(0)==="/"&&(c[3]=c[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(p))throw new Error(wu(10,p))}else c=c.split(",");return c=c.map(m=>parseFloat(m)),{type:a,values:c,colorSpace:p}}const RM=t=>{const r=vd(t);return r.values.slice(0,3).map((a,c)=>r.type.includes("hsl")&&c!==0?`${a}%`:a).join(" ")},Of=(t,r)=>{try{return RM(t)}catch{return t}};function ty(t){const{type:r,colorSpace:a}=t;let{values:c}=t;return r.includes("rgb")?c=c.map((p,m)=>m<3?parseInt(p,10):p):r.includes("hsl")&&(c[1]=`${c[1]}%`,c[2]=`${c[2]}%`),r.includes("color")?c=`${a} ${c.join(" ")}`:c=`${c.join(", ")}`,`${r}(${c})`}function L1(t){t=vd(t);const{values:r}=t,a=r[0],c=r[1]/100,p=r[2]/100,m=c*Math.min(p,1-p),S=(R,j=(R+a/30)%12)=>p-m*Math.max(Math.min(j-3,9-j,1),-1);let k="rgb";const O=[Math.round(S(0)*255),Math.round(S(8)*255),Math.round(S(4)*255)];return t.type==="hsla"&&(k+="a",O.push(r[3])),ty({type:k,values:O})}function kb(t){t=vd(t);let r=t.type==="hsl"||t.type==="hsla"?vd(L1(t)).values:t.values;return r=r.map(a=>(t.type!=="color"&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function OM(t,r){const a=kb(t),c=kb(r);return(Math.max(a,c)+.05)/(Math.min(a,c)+.05)}function Yi(t,r){return t=vd(t),r=px(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,ty(t)}function cm(t,r,a){try{return Yi(t,r)}catch{return t}}function oh(t,r){if(t=vd(t),r=px(r),t.type.includes("hsl"))t.values[2]*=1-r;else if(t.type.includes("rgb")||t.type.includes("color"))for(let a=0;a<3;a+=1)t.values[a]*=1-r;return ty(t)}function Bn(t,r,a){try{return oh(t,r)}catch{return t}}function pp(t,r){if(t=vd(t),r=px(r),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*r;else if(t.type.includes("rgb"))for(let a=0;a<3;a+=1)t.values[a]+=(255-t.values[a])*r;else if(t.type.includes("color"))for(let a=0;a<3;a+=1)t.values[a]+=(1-t.values[a])*r;return ty(t)}function Dn(t,r,a){try{return pp(t,r)}catch{return t}}function Mb(t,r=.15){return kb(t)>.5?oh(t,r):pp(t,r)}function um(t,r,a){try{return Mb(t,r)}catch{return t}}function $v(...t){return t.reduce((r,a)=>a==null?r:function(...p){r.apply(this,p),a.apply(this,p)},()=>{})}function fx(t,r=166){let a;function c(...p){const m=()=>{t.apply(this,p)};clearTimeout(a),a=setTimeout(m,r)}return c.clear=()=>{clearTimeout(a)},c}function If(t,r){var a,c,p;return W.isValidElement(t)&&r.indexOf(t.type.muiName??((p=(c=(a=t.type)==null?void 0:a._payload)==null?void 0:c.value)==null?void 0:p.muiName))!==-1}function el(t){return t&&t.ownerDocument||document}function Fl(t){return el(t).defaultView||window}function Tb(t,r){typeof t=="function"?t(r):t&&(t.current=r)}let Hv=0;function PM(t){const[r,a]=W.useState(t),c=t||r;return W.useEffect(()=>{r==null&&(Hv+=1,a(`mui-${Hv}`))},[r]),c}const BM={...xb},Uv=BM.useId;function _f(t){if(Uv!==void 0){const r=Uv();return t??r}return PM(t)}function Eb({controlled:t,default:r,name:a,state:c="value"}){const{current:p}=W.useRef(t!==void 0),[m,S]=W.useState(r),k=p?t:m,O=W.useCallback(R=>{p||S(R)},[]);return[k,O]}function tl(t){const r=W.useRef(t);return Nc(()=>{r.current=t}),W.useRef((...a)=>(0,r.current)(...a)).current}function ir(...t){return W.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(a=>{Tb(a,r)})},t)}const Fv={};function I1(t,r){const a=W.useRef(Fv);return a.current===Fv&&(a.current=t(r)),a}const DM=[];function LM(t){W.useEffect(t,DM)}class gx{constructor(){mf(this,"currentId",null);mf(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});mf(this,"disposeEffect",()=>this.clear)}static create(){return new gx}start(r,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,a()},r)}}function mx(){const t=I1(gx.create).current;return LM(t.disposeEffect),t}function Lm(t){try{return t.matches(":focus-visible")}catch{}return!1}function N1(t=window){const r=t.document.documentElement.clientWidth;return t.innerWidth-r}const z1=t=>{const r=W.useRef({});return W.useEffect(()=>{r.current=t}),r.current};function oi(t,r,a=void 0){const c={};for(const p in t){const m=t[p];let S="",k=!0;for(let O=0;O<m.length;O+=1){const R=m[O];R&&(S+=(k===!0?"":" ")+r(R),k=!1,a&&a[R]&&(S+=" "+a[R]))}c[p]=S}return c}function IM(t){return typeof t=="string"}function j1(t,r,a){return t===void 0||IM(t)?r:{...r,ownerState:{...r.ownerState,...a}}}function Im(t,r=[]){if(t===void 0)return{};const a={};return Object.keys(t).filter(c=>c.match(/^on[A-Z]/)&&typeof t[c]=="function"&&!r.includes(c)).forEach(c=>{a[c]=t[c]}),a}function Gv(t){if(t===void 0)return{};const r={};return Object.keys(t).filter(a=>!(a.match(/^on[A-Z]/)&&typeof t[a]=="function")).forEach(a=>{r[a]=t[a]}),r}function $1(t){const{getSlotProps:r,additionalProps:a,externalSlotProps:c,externalForwardedProps:p,className:m}=t;if(!r){const F=je(a==null?void 0:a.className,m,p==null?void 0:p.className,c==null?void 0:c.className),z={...a==null?void 0:a.style,...p==null?void 0:p.style,...c==null?void 0:c.style},_={...a,...p,...c};return F.length>0&&(_.className=F),Object.keys(z).length>0&&(_.style=z),{props:_,internalRef:void 0}}const S=Im({...p,...c}),k=Gv(c),O=Gv(p),R=r(S),j=je(R==null?void 0:R.className,a==null?void 0:a.className,m,p==null?void 0:p.className,c==null?void 0:c.className),$={...R==null?void 0:R.style,...a==null?void 0:a.style,...p==null?void 0:p.style,...c==null?void 0:c.style},I={...R,...a,...O,...k};return j.length>0&&(I.className=j),Object.keys($).length>0&&(I.style=$),{props:I,internalRef:R.ref}}function yd(t,r,a){return typeof t=="function"?t(r,a):t}function $l(t){var $;const{elementType:r,externalSlotProps:a,ownerState:c,skipResolvingSlotProps:p=!1,...m}=t,S=p?{}:yd(a,c),{props:k,internalRef:O}=$1({...m,externalSlotProps:S}),R=ir(O,S==null?void 0:S.ref,($=t.additionalProps)==null?void 0:$.ref);return j1(r,{...k,ref:R},c)}function fp(t){var r;return parseInt(W.version,10)>=19?((r=t==null?void 0:t.props)==null?void 0:r.ref)||null:(t==null?void 0:t.ref)||null}const H1=W.createContext(null);function yx(){return W.useContext(H1)}const NM=typeof Symbol=="function"&&Symbol.for,zM=NM?Symbol.for("mui.nested"):"__THEME_NESTED__";function jM(t,r){return typeof r=="function"?r(t):{...t,...r}}function $M(t){const{children:r,theme:a}=t,c=yx(),p=W.useMemo(()=>{const m=c===null?{...a}:jM(c,a);return m!=null&&(m[zM]=c!==null),m},[a,c]);return Y.jsx(H1.Provider,{value:p,children:r})}const U1=W.createContext();function HM({value:t,...r}){return Y.jsx(U1.Provider,{value:t??!0,...r})}const ig=()=>W.useContext(U1)??!1,F1=W.createContext(void 0);function UM({value:t,children:r}){return Y.jsx(F1.Provider,{value:t,children:r})}function FM(t){const{theme:r,name:a,props:c}=t;if(!r||!r.components||!r.components[a])return c;const p=r.components[a];return p.defaultProps?Gf(p.defaultProps,c):!p.styleOverrides&&!p.variants?Gf(p,c):c}function GM({props:t,name:r}){const a=W.useContext(F1);return FM({props:t,name:r,theme:{components:a}})}const _v={};function Wv(t,r,a,c=!1){return W.useMemo(()=>{const p=t&&r[t]||r;if(typeof a=="function"){const m=a(p),S=t?{...r,[t]:m}:m;return c?()=>S:S}return t?{...r,[t]:a}:{...r,...a}},[t,r,a,c])}function G1(t){const{children:r,theme:a,themeId:c}=t,p=E1(_v),m=yx()||_v,S=Wv(c,p,a),k=Wv(c,m,a,!0),O=(c?S[c]:S).direction==="rtl";return Y.jsx($M,{theme:k,children:Y.jsx(Kf.Provider,{value:S,children:Y.jsx(HM,{value:O,children:Y.jsx(UM,{value:c?S[c].components:S.components,children:r})})})})}const Vv={theme:void 0};function _M(t){let r,a;return function(p){let m=r;return(m===void 0||p.theme!==a)&&(Vv.theme=p.theme,m=O1(t(Vv)),r=m,a=p.theme),m}}const bx="mode",xx="color-scheme",WM="data-color-scheme";function VM(t){const{defaultMode:r="system",defaultLightColorScheme:a="light",defaultDarkColorScheme:c="dark",modeStorageKey:p=bx,colorSchemeStorageKey:m=xx,attribute:S=WM,colorSchemeNode:k="document.documentElement",nonce:O}=t||{};let R="",j=S;if(S==="class"&&(j=".%s"),S==="data"&&(j="[data-%s]"),j.startsWith(".")){const I=j.substring(1);R+=`${k}.classList.remove('${I}'.replace('%s', light), '${I}'.replace('%s', dark));
${k}.classList.add('${I}'.replace('%s', colorScheme));`}const $=j.match(/\[([^\]]+)\]/);if($){const[I,F]=$[1].split("=");F||(R+=`${k}.removeAttribute('${I}'.replace('%s', light));
${k}.removeAttribute('${I}'.replace('%s', dark));`),R+=`
${k}.setAttribute('${I}'.replace('%s', colorScheme), ${F?`${F}.replace('%s', colorScheme)`:'""'});`}else R+=`${k}.setAttribute('${j}', colorScheme);`;return Y.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?O:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
let colorScheme = '';
const mode = localStorage.getItem('${p}') || '${r}';
const dark = localStorage.getItem('${m}-dark') || '${c}';
const light = localStorage.getItem('${m}-light') || '${a}';
if (mode === 'system') {
// handle system mode
const mql = window.matchMedia('(prefers-color-scheme: dark)');
if (mql.matches) {
colorScheme = dark
} else {
colorScheme = light
}
}
if (mode === 'light') {
colorScheme = light;
}
if (mode === 'dark') {
colorScheme = dark;
}
if (colorScheme) {
${R}
}
} catch(e){}})();`}},"mui-color-scheme-init")}function Xv(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _1(t,r){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return r("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return r("dark")}function XM(t){return _1(t,r=>{if(r==="light")return t.lightColorScheme;if(r==="dark")return t.darkColorScheme})}function tb(t,r){if(typeof window>"u")return;let a;try{a=localStorage.getItem(t)||void 0,a||localStorage.setItem(t,r)}catch{}return a||r}function YM(t){const{defaultMode:r="light",defaultLightColorScheme:a,defaultDarkColorScheme:c,supportedColorSchemes:p=[],modeStorageKey:m=bx,colorSchemeStorageKey:S=xx,storageWindow:k=typeof window>"u"?void 0:window,noSsr:O=!1}=t,R=p.join(","),j=p.length>1,[$,I]=W.useState(()=>{const ht=tb(m,r),lt=tb(`${S}-light`,a),wt=tb(`${S}-dark`,c);return{mode:ht,systemMode:Xv(ht),lightColorScheme:lt,darkColorScheme:wt}}),[F,z]=W.useState(O||!j);W.useEffect(()=>{z(!0)},[]);const _=XM($),J=W.useCallback(ht=>{I(lt=>{if(ht===lt.mode)return lt;const wt=ht??r;try{localStorage.setItem(m,wt)}catch{}return{...lt,mode:wt,systemMode:Xv(wt)}})},[m,r]),it=W.useCallback(ht=>{ht?typeof ht=="string"?ht&&!R.includes(ht)?console.error(`\`${ht}\` does not exist in \`theme.colorSchemes\`.`):I(lt=>{const wt={...lt};return _1(lt,at=>{try{localStorage.setItem(`${S}-${at}`,ht)}catch{}at==="light"&&(wt.lightColorScheme=ht),at==="dark"&&(wt.darkColorScheme=ht)}),wt}):I(lt=>{const wt={...lt},at=ht.light===null?a:ht.light,_t=ht.dark===null?c:ht.dark;if(at)if(!R.includes(at))console.error(`\`${at}\` does not exist in \`theme.colorSchemes\`.`);else{wt.lightColorScheme=at;try{localStorage.setItem(`${S}-light`,at)}catch{}}if(_t)if(!R.includes(_t))console.error(`\`${_t}\` does not exist in \`theme.colorSchemes\`.`);else{wt.darkColorScheme=_t;try{localStorage.setItem(`${S}-dark`,_t)}catch{}}return wt}):I(lt=>{try{localStorage.setItem(`${S}-light`,a),localStorage.setItem(`${S}-dark`,c)}catch{}return{...lt,lightColorScheme:a,darkColorScheme:c}})},[R,S,a,c]),st=W.useCallback(ht=>{$.mode==="system"&&I(lt=>{const wt=ht!=null&&ht.matches?"dark":"light";return lt.systemMode===wt?lt:{...lt,systemMode:wt}})},[$.mode]),ct=W.useRef(st);return ct.current=st,W.useEffect(()=>{if(typeof window.matchMedia!="function"||!j)return;const ht=(...wt)=>ct.current(...wt),lt=window.matchMedia("(prefers-color-scheme: dark)");return lt.addListener(ht),ht(lt),()=>{lt.removeListener(ht)}},[j]),W.useEffect(()=>{if(k&&j){const ht=lt=>{const wt=lt.newValue;typeof lt.key=="string"&<.key.startsWith(S)&&(!wt||R.match(wt))&&(lt.key.endsWith("light")&&it({light:wt}),lt.key.endsWith("dark")&&it({dark:wt})),lt.key===m&&(!wt||["light","dark","system"].includes(wt))&&J(wt||r)};return k.addEventListener("storage",ht),()=>{k.removeEventListener("storage",ht)}}},[it,J,m,S,R,r,k,j]),{...$,mode:F?$.mode:void 0,systemMode:F?$.systemMode:void 0,colorScheme:F?_:void 0,setMode:J,setColorScheme:it}}const qM="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function KM(t){const{themeId:r,theme:a={},modeStorageKey:c=bx,colorSchemeStorageKey:p=xx,disableTransitionOnChange:m=!1,defaultColorScheme:S,resolveTheme:k}=t,O={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},R=W.createContext(void 0),j=()=>W.useContext(R)||O,$={},I={};function F(it){var sn,Vi,Ri,lr;const{children:st,theme:ct,modeStorageKey:ht=c,colorSchemeStorageKey:lt=p,disableTransitionOnChange:wt=m,storageWindow:at=typeof window>"u"?void 0:window,documentNode:_t=typeof document>"u"?void 0:document,colorSchemeNode:Et=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ot=!1,disableStyleSheetGeneration:It=!1,defaultMode:se="system",noSsr:re}=it,ie=W.useRef(!1),Kt=yx(),zt=W.useContext(R),ne=!!zt&&!ot,te=W.useMemo(()=>ct||(typeof a=="function"?a():a),[ct]),Dt=te[r],St=Dt||te,{colorSchemes:jt=$,components:Se=I,cssVarPrefix:ke}=St,ge=Object.keys(jt).filter(tn=>!!jt[tn]).join(","),Pe=W.useMemo(()=>ge.split(","),[ge]),we=typeof S=="string"?S:S.light,Ue=typeof S=="string"?S:S.dark,Ae=jt[we]&&jt[Ue]?se:((Vi=(sn=jt[St.defaultColorScheme])==null?void 0:sn.palette)==null?void 0:Vi.mode)||((Ri=St.palette)==null?void 0:Ri.mode),{mode:Ke,setMode:Be,systemMode:_e,lightColorScheme:me,darkColorScheme:Ei,colorScheme:di,setColorScheme:Ai}=YM({supportedColorSchemes:Pe,defaultLightColorScheme:we,defaultDarkColorScheme:Ue,modeStorageKey:ht,colorSchemeStorageKey:lt,defaultMode:Ae,storageWindow:at,noSsr:re});let Di=Ke,Ni=di;ne&&(Di=zt.mode,Ni=zt.colorScheme);const bi=W.useMemo(()=>{var In;const tn=Ni||St.defaultColorScheme,Xi=((In=St.generateThemeVars)==null?void 0:In.call(St))||St.vars,on={...St,components:Se,colorSchemes:jt,cssVarPrefix:ke,vars:Xi};if(typeof on.generateSpacing=="function"&&(on.spacing=on.generateSpacing()),tn){const Ci=jt[tn];Ci&&typeof Ci=="object"&&Object.keys(Ci).forEach(dn=>{Ci[dn]&&typeof Ci[dn]=="object"?on[dn]={...on[dn],...Ci[dn]}:on[dn]=Ci[dn]})}return k?k(on):on},[St,Ni,Se,jt,ke]),bn=St.colorSchemeSelector;Nc(()=>{if(Ni&&Et&&bn&&bn!=="media"){const tn=bn;let Xi=bn;if(tn==="class"&&(Xi=".%s"),tn==="data"&&(Xi="[data-%s]"),tn!=null&&tn.startsWith("data-")&&!tn.includes("%s")&&(Xi=`[${tn}="%s"]`),Xi.startsWith("."))Et.classList.remove(...Pe.map(on=>Xi.substring(1).replace("%s",on))),Et.classList.add(Xi.substring(1).replace("%s",Ni));else{const on=Xi.replace("%s",Ni).match(/\[([^\]]+)\]/);if(on){const[In,Ci]=on[1].split("=");Ci||Pe.forEach(dn=>{Et.removeAttribute(In.replace(Ni,dn))}),Et.setAttribute(In,Ci?Ci.replace(/"|'/g,""):"")}else Et.setAttribute(Xi,Ni)}}},[Ni,bn,Et,Pe]),W.useEffect(()=>{let tn;if(wt&&ie.current&&_t){const Xi=_t.createElement("style");Xi.appendChild(_t.createTextNode(qM)),_t.head.appendChild(Xi),window.getComputedStyle(_t.body),tn=setTimeout(()=>{_t.head.removeChild(Xi)},1)}return()=>{clearTimeout(tn)}},[Ni,wt,_t]),W.useEffect(()=>(ie.current=!0,()=>{ie.current=!1}),[]);const Zi=W.useMemo(()=>({allColorSchemes:Pe,colorScheme:Ni,darkColorScheme:Ei,lightColorScheme:me,mode:Di,setColorScheme:Ai,setMode:Be,systemMode:_e}),[Pe,Ni,Ei,me,Di,Ai,Be,_e,bi.colorSchemeSelector]);let qi=!0;(It||St.cssVariables===!1||ne&&(Kt==null?void 0:Kt.cssVarPrefix)===ke)&&(qi=!1);const Ye=Y.jsxs(W.Fragment,{children:[Y.jsx(G1,{themeId:Dt?r:void 0,theme:bi,children:st}),qi&&Y.jsx(S1,{styles:((lr=bi.generateStyleSheets)==null?void 0:lr.call(bi))||[]})]});return ne?Ye:Y.jsx(R.Provider,{value:Zi,children:Ye})}const z=typeof S=="string"?S:S.light,_=typeof S=="string"?S:S.dark;return{CssVarsProvider:F,useColorScheme:j,getInitColorSchemeScript:it=>VM({colorSchemeStorageKey:p,defaultLightColorScheme:z,defaultDarkColorScheme:_,modeStorageKey:c,...it})}}function ZM(t=""){function r(...c){if(!c.length)return"";const p=c[0];return typeof p=="string"&&!p.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${p}${r(...c.slice(1))})`:`, ${p}`}return(c,...p)=>`var(--${t?`${t}-`:""}${c}${r(...p)})`}const Yv=(t,r,a,c=[])=>{let p=t;r.forEach((m,S)=>{S===r.length-1?Array.isArray(p)?p[Number(m)]=a:p&&typeof p=="object"&&(p[m]=a):p&&typeof p=="object"&&(p[m]||(p[m]=c.includes(m)?[]:{}),p=p[m])})},QM=(t,r,a)=>{function c(p,m=[],S=[]){Object.entries(p).forEach(([k,O])=>{(!a||a&&!a([...m,k]))&&O!=null&&(typeof O=="object"&&Object.keys(O).length>0?c(O,[...m,k],Array.isArray(O)?[...S,k]:S):r([...m,k],O,S))})}c(t)},JM=(t,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(c=>t.includes(c))||t[t.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function eb(t,r){const{prefix:a,shouldSkipGeneratingVar:c}=r||{},p={},m={},S={};return QM(t,(k,O,R)=>{if((typeof O=="string"||typeof O=="number")&&(!c||!c(k,O))){const j=`--${a?`${a}-`:""}${k.join("-")}`,$=JM(k,O);Object.assign(p,{[j]:$}),Yv(m,k,`var(${j})`,R),Yv(S,k,`var(${j}, ${$})`,R)}},k=>k[0]==="vars"),{css:p,vars:m,varsWithDefaults:S}}function tT(t,r={}){const{getSelector:a=J,disableCssColorScheme:c,colorSchemeSelector:p}=r,{colorSchemes:m={},components:S,defaultColorScheme:k="light",...O}=t,{vars:R,css:j,varsWithDefaults:$}=eb(O,r);let I=$;const F={},{[k]:z,..._}=m;if(Object.entries(_||{}).forEach(([ct,ht])=>{const{vars:lt,css:wt,varsWithDefaults:at}=eb(ht,r);I=Xs(I,at),F[ct]={css:wt,vars:lt}}),z){const{css:ct,vars:ht,varsWithDefaults:lt}=eb(z,r);I=Xs(I,lt),F[k]={css:ct,vars:ht}}function J(ct,ht){var wt,at;let lt=p;if(p==="class"&&(lt=".%s"),p==="data"&&(lt="[data-%s]"),p!=null&&p.startsWith("data-")&&!p.includes("%s")&&(lt=`[${p}="%s"]`),ct){if(lt==="media")return t.defaultColorScheme===ct?":root":{[`@media (prefers-color-scheme: ${((at=(wt=m[ct])==null?void 0:wt.palette)==null?void 0:at.mode)||ct})`]:{":root":ht}};if(lt)return t.defaultColorScheme===ct?`:root, ${lt.replace("%s",String(ct))}`:lt.replace("%s",String(ct))}return":root"}return{vars:I,generateThemeVars:()=>{let ct={...R};return Object.entries(F).forEach(([,{vars:ht}])=>{ct=Xs(ct,ht)}),ct},generateStyleSheets:()=>{var _t,Et;const ct=[],ht=t.defaultColorScheme||"light";function lt(ot,It){Object.keys(It).length&&ct.push(typeof ot=="string"?{[ot]:{...It}}:ot)}lt(a(void 0,{...j}),j);const{[ht]:wt,...at}=F;if(wt){const{css:ot}=wt,It=(Et=(_t=m[ht])==null?void 0:_t.palette)==null?void 0:Et.mode,se=!c&&It?{colorScheme:It,...ot}:{...ot};lt(a(ht,{...se}),se)}return Object.entries(at).forEach(([ot,{css:It}])=>{var ie,Kt;const se=(Kt=(ie=m[ot])==null?void 0:ie.palette)==null?void 0:Kt.mode,re=!c&&se?{colorScheme:se,...It}:{...It};lt(a(ot,{...re}),re)}),ct}}}function eT(t){return function(a){return t==="media"?`@media (prefers-color-scheme: ${a})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${a}"] &`:t==="class"?`.${a} &`:t==="data"?`[data-${a}] &`:`${t.replace("%s",a)} &`:"&"}}const iT=tg(),nT=D1("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[`maxWidth${Re(String(a.maxWidth))}`],a.fixed&&r.fixed,a.disableGutters&&r.disableGutters]}}),rT=t=>hx({props:t,name:"MuiContainer",defaultTheme:iT}),sT=(t,r)=>{const a=O=>si(r,O),{classes:c,fixed:p,disableGutters:m,maxWidth:S}=t,k={root:["root",S&&`maxWidth${Re(String(S))}`,p&&"fixed",m&&"disableGutters"]};return oi(k,a,c)};function oT(t={}){const{createStyledComponent:r=nT,useThemeProps:a=rT,componentName:c="MuiContainer"}=t,p=r(({theme:S,ownerState:k})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!k.disableGutters&&{paddingLeft:S.spacing(2),paddingRight:S.spacing(2),[S.breakpoints.up("sm")]:{paddingLeft:S.spacing(3),paddingRight:S.spacing(3)}}}),({theme:S,ownerState:k})=>k.fixed&&Object.keys(S.breakpoints.values).reduce((O,R)=>{const j=R,$=S.breakpoints.values[j];return $!==0&&(O[S.breakpoints.up(j)]={maxWidth:`${$}${S.breakpoints.unit}`}),O},{}),({theme:S,ownerState:k})=>({...k.maxWidth==="xs"&&{[S.breakpoints.up("xs")]:{maxWidth:Math.max(S.breakpoints.values.xs,444)}},...k.maxWidth&&k.maxWidth!=="xs"&&{[S.breakpoints.up(k.maxWidth)]:{maxWidth:`${S.breakpoints.values[k.maxWidth]}${S.breakpoints.unit}`}}}));return W.forwardRef(function(k,O){const R=a(k),{className:j,component:$="div",disableGutters:I=!1,fixed:F=!1,maxWidth:z="lg",classes:_,...J}=R,it={...R,component:$,disableGutters:I,fixed:F,maxWidth:z},st=sT(it,c);return Y.jsx(p,{as:$,ownerState:it,className:je(st.root,j),ref:O,...J})})}const aT=(t,r)=>t.filter(a=>r.includes(a)),gp=(t,r,a)=>{const c=t.keys[0];Array.isArray(r)?r.forEach((p,m)=>{a((S,k)=>{m<=t.keys.length-1&&(m===0?Object.assign(S,k):S[t.up(t.keys[m])]=k)},p)}):r&&typeof r=="object"?(Object.keys(r).length>t.keys.length?t.keys:aT(t.keys,Object.keys(r))).forEach(m=>{if(t.keys.includes(m)){const S=r[m];S!==void 0&&a((k,O)=>{c===m?Object.assign(k,O):k[t.up(m)]=O},S)}}):(typeof r=="number"||typeof r=="string")&&a((p,m)=>{Object.assign(p,m)},r)};function Nm(t){return`--Grid-${t}Spacing`}function ey(t){return`--Grid-parent-${t}Spacing`}const qv="--Grid-columns",op="--Grid-parent-columns",lT=({theme:t,ownerState:r})=>{const a={};return gp(t.breakpoints,r.size,(c,p)=>{let m={};p==="grow"&&(m={flexBasis:0,flexGrow:1,maxWidth:"100%"}),p==="auto"&&(m={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof p=="number"&&(m={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${p} / var(${op}) - (var(${op}) - ${p}) * (var(${ey("column")}) / var(${op})))`}),c(a,m)}),a},cT=({theme:t,ownerState:r})=>{const a={};return gp(t.breakpoints,r.offset,(c,p)=>{let m={};p==="auto"&&(m={marginLeft:"auto"}),typeof p=="number"&&(m={marginLeft:p===0?"0px":`calc(100% * ${p} / var(${op}) + var(${ey("column")}) * ${p} / var(${op}))`}),c(a,m)}),a},uT=({theme:t,ownerState:r})=>{if(!r.container)return{};const a={[qv]:12};return gp(t.breakpoints,r.columns,(c,p)=>{const m=p??12;c(a,{[qv]:m,"> *":{[op]:m}})}),a},dT=({theme:t,ownerState:r})=>{if(!r.container)return{};const a={};return gp(t.breakpoints,r.rowSpacing,(c,p)=>{var S;const m=typeof p=="string"?p:(S=t.spacing)==null?void 0:S.call(t,p);c(a,{[Nm("row")]:m,"> *":{[ey("row")]:m}})}),a},hT=({theme:t,ownerState:r})=>{if(!r.container)return{};const a={};return gp(t.breakpoints,r.columnSpacing,(c,p)=>{var S;const m=typeof p=="string"?p:(S=t.spacing)==null?void 0:S.call(t,p);c(a,{[Nm("column")]:m,"> *":{[ey("column")]:m}})}),a},pT=({theme:t,ownerState:r})=>{if(!r.container)return{};const a={};return gp(t.breakpoints,r.direction,(c,p)=>{c(a,{flexDirection:p})}),a},fT=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${Nm("row")}) var(${Nm("column")})`}}),gT=t=>{const r=[];return Object.entries(t).forEach(([a,c])=>{c!==!1&&c!==void 0&&r.push(`grid-${a}-${String(c)}`)}),r},mT=(t,r="xs")=>{function a(c){return c===void 0?!1:typeof c=="string"&&!Number.isNaN(Number(c))||typeof c=="number"&&c>0}if(a(t))return[`spacing-${r}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const c=[];return Object.entries(t).forEach(([p,m])=>{a(m)&&c.push(`spacing-${p}-${String(m)}`)}),c}return[]},yT=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([r,a])=>`direction-${r}-${a}`):[`direction-xs-${String(t)}`],bT=tg(),xT=D1("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,r)=>r.root});function vT(t){return hx({props:t,name:"MuiGrid",defaultTheme:bT})}function ST(t={}){const{createStyledComponent:r=xT,useThemeProps:a=vT,useTheme:c=eg,componentName:p="MuiGrid"}=t,m=(R,j)=>{const{container:$,direction:I,spacing:F,wrap:z,size:_}=R,J={root:["root",$&&"container",z!=="wrap"&&`wrap-xs-${String(z)}`,...yT(I),...gT(_),...$?mT(F,j.breakpoints.keys[0]):[]]};return oi(J,it=>si(p,it),{})};function S(R,j,$=()=>!0){const I={};return R===null||(Array.isArray(R)?R.forEach((F,z)=>{F!==null&&$(F)&&j.keys[z]&&(I[j.keys[z]]=F)}):typeof R=="object"?Object.keys(R).forEach(F=>{const z=R[F];z!=null&&$(z)&&(I[F]=z)}):I[j.keys[0]]=R),I}const k=r(uT,hT,dT,lT,pT,fT,cT),O=W.forwardRef(function(j,$){const I=c(),F=a(j),z=dx(F),{className:_,children:J,columns:it=12,container:st=!1,component:ct="div",direction:ht="row",wrap:lt="wrap",size:wt={},offset:at={},spacing:_t=0,rowSpacing:Et=_t,columnSpacing:ot=_t,unstable_level:It=0,...se}=z,re=S(wt,I.breakpoints,jt=>jt!==!1),ie=S(at,I.breakpoints),Kt=j.columns??(It?void 0:it),zt=j.spacing??(It?void 0:_t),ne=j.rowSpacing??j.spacing??(It?void 0:Et),te=j.columnSpacing??j.spacing??(It?void 0:ot),Dt={...z,level:It,columns:Kt,container:st,direction:ht,wrap:lt,spacing:zt,rowSpacing:ne,columnSpacing:te,size:re,offset:ie},St=m(Dt,I);return Y.jsx(k,{ref:$,as:ct,ownerState:Dt,className:je(St.root,_),...se,children:W.Children.map(J,jt=>{var Se;return W.isValidElement(jt)&&If(jt,["Grid"])&&st&&jt.props.container?W.cloneElement(jt,{unstable_level:((Se=jt.props)==null?void 0:Se.unstable_level)??It+1}):jt})})});return O.muiName="Grid",O}const ib=ST();function W1(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$f.white,default:$f.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const wT=W1();function V1(){return{text:{primary:$f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Kv=V1();function Zv(t,r,a,c){const p=c.light||c,m=c.dark||c*1.5;t[r]||(t.hasOwnProperty(a)?t[r]=t[a]:r==="light"?t.light=pp(t.main,p):r==="dark"&&(t.dark=oh(t.main,m)))}function CT(t="light"){return t==="dark"?{main:Jd[200],light:Jd[50],dark:Jd[400]}:{main:Jd[700],light:Jd[400],dark:Jd[800]}}function kT(t="light"){return t==="dark"?{main:Yh[200],light:Yh[50],dark:Yh[400]}:{main:Yh[500],light:Yh[300],dark:Yh[700]}}function MT(t="light"){return t==="dark"?{main:Xh[500],light:Xh[300],dark:Xh[700]}:{main:Xh[700],light:Xh[400],dark:Xh[800]}}function TT(t="light"){return t==="dark"?{main:qh[400],light:qh[300],dark:qh[700]}:{main:qh[700],light:qh[500],dark:qh[900]}}function ET(t="light"){return t==="dark"?{main:Kh[400],light:Kh[300],dark:Kh[700]}:{main:Kh[800],light:Kh[500],dark:Kh[900]}}function AT(t="light"){return t==="dark"?{main:xf[400],light:xf[300],dark:xf[700]}:{main:"#ed6c02",light:xf[500],dark:xf[900]}}function vx(t){const{mode:r="light",contrastThreshold:a=3,tonalOffset:c=.2,...p}=t,m=t.primary||CT(r),S=t.secondary||kT(r),k=t.error||MT(r),O=t.info||TT(r),R=t.success||ET(r),j=t.warning||AT(r);function $(_){return OM(_,Kv.text.primary)>=a?Kv.text.primary:wT.text.primary}const I=({color:_,name:J,mainShade:it=500,lightShade:st=300,darkShade:ct=700})=>{if(_={..._},!_.main&&_[it]&&(_.main=_[it]),!_.hasOwnProperty("main"))throw new Error(wu(11,J?` (${J})`:"",it));if(typeof _.main!="string")throw new Error(wu(12,J?` (${J})`:"",JSON.stringify(_.main)));return Zv(_,"light",st,c),Zv(_,"dark",ct,c),_.contrastText||(_.contrastText=$(_.main)),_};let F;return r==="light"?F=W1():r==="dark"&&(F=V1()),Xs({common:{...$f},mode:r,primary:I({color:m,name:"primary"}),secondary:I({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:I({color:k,name:"error"}),warning:I({color:j,name:"warning"}),info:I({color:O,name:"info"}),success:I({color:R,name:"success"}),grey:a1,contrastThreshold:a,getContrastText:$,augmentColor:I,tonalOffset:c,...F},p)}function RT(t){const r={};return Object.entries(t).forEach(c=>{const[p,m]=c;typeof m=="object"&&(r[p]=`${m.fontStyle?`${m.fontStyle} `:""}${m.fontVariant?`${m.fontVariant} `:""}${m.fontWeight?`${m.fontWeight} `:""}${m.fontStretch?`${m.fontStretch} `:""}${m.fontSize||""}${m.lineHeight?`/${m.lineHeight} `:""}${m.fontFamily||""}`)}),r}function OT(t,r){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...r}}function PT(t){return Math.round(t*1e5)/1e5}const Qv={textTransform:"uppercase"},Jv='"Roboto", "Helvetica", "Arial", sans-serif';function X1(t,r){const{fontFamily:a=Jv,fontSize:c=14,fontWeightLight:p=300,fontWeightRegular:m=400,fontWeightMedium:S=500,fontWeightBold:k=700,htmlFontSize:O=16,allVariants:R,pxToRem:j,...$}=typeof r=="function"?r(t):r,I=c/14,F=j||(J=>`${J/O*I}rem`),z=(J,it,st,ct,ht)=>({fontFamily:a,fontWeight:J,fontSize:F(it),lineHeight:st,...a===Jv?{letterSpacing:`${PT(ct/it)}em`}:{},...ht,...R}),_={h1:z(p,96,1.167,-1.5),h2:z(p,60,1.2,-.5),h3:z(m,48,1.167,0),h4:z(m,34,1.235,.25),h5:z(m,24,1.334,0),h6:z(S,20,1.6,.15),subtitle1:z(m,16,1.75,.15),subtitle2:z(S,14,1.57,.1),body1:z(m,16,1.5,.15),body2:z(m,14,1.43,.15),button:z(S,14,1.75,.4,Qv),caption:z(m,12,1.66,.4),overline:z(m,12,2.66,1,Qv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xs({htmlFontSize:O,pxToRem:F,fontFamily:a,fontSize:c,fontWeightLight:p,fontWeightRegular:m,fontWeightMedium:S,fontWeightBold:k,..._},$,{clone:!1})}const BT=.2,DT=.14,LT=.12;function er(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${BT})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${DT})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${LT})`].join(",")}const IT=["none",er(0,2,1,-1,0,1,1,0,0,1,3,0),er(0,3,1,-2,0,2,2,0,0,1,5,0),er(0,3,3,-2,0,3,4,0,0,1,8,0),er(0,2,4,-1,0,4,5,0,0,1,10,0),er(0,3,5,-1,0,5,8,0,0,1,14,0),er(0,3,5,-1,0,6,10,0,0,1,18,0),er(0,4,5,-2,0,7,10,1,0,2,16,1),er(0,5,5,-3,0,8,10,1,0,3,14,2),er(0,5,6,-3,0,9,12,1,0,3,16,2),er(0,6,6,-3,0,10,14,1,0,4,18,3),er(0,6,7,-4,0,11,15,1,0,4,20,3),er(0,7,8,-4,0,12,17,2,0,5,22,4),er(0,7,8,-4,0,13,19,2,0,5,24,4),er(0,7,9,-4,0,14,21,2,0,5,26,4),er(0,8,9,-5,0,15,22,2,0,6,28,5),er(0,8,10,-5,0,16,24,2,0,6,30,5),er(0,8,11,-5,0,17,26,2,0,6,32,5),er(0,9,11,-5,0,18,28,2,0,7,34,6),er(0,9,12,-6,0,19,29,2,0,7,36,6),er(0,10,13,-6,0,20,31,3,0,8,38,7),er(0,10,13,-6,0,21,33,3,0,8,40,7),er(0,10,14,-6,0,22,35,3,0,8,42,7),er(0,11,14,-7,0,23,36,3,0,9,44,8),er(0,11,15,-7,0,24,38,3,0,9,46,8)],NT={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Y1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function t0(t){return`${Math.round(t)}ms`}function zT(t){if(!t)return 0;const r=t/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function jT(t){const r={...NT,...t.easing},a={...Y1,...t.duration};return{getAutoHeightDuration:zT,create:(p=["all"],m={})=>{const{duration:S=a.standard,easing:k=r.easeInOut,delay:O=0,...R}=m;return(Array.isArray(p)?p:[p]).map(j=>`${j} ${typeof S=="string"?S:t0(S)} ${k} ${typeof O=="string"?O:t0(O)}`).join(",")},...t,easing:r,duration:a}}const $T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function HT(t){return Bc(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function q1(t={}){const r={...t};function a(c){const p=Object.entries(c);for(let m=0;m<p.length;m++){const[S,k]=p[m];!HT(k)||S.startsWith("unstable_")?delete c[S]:Bc(k)&&(c[S]={...k},a(c[S]))}}return a(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(r,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function Ab(t={},...r){const{breakpoints:a,mixins:c={},spacing:p,palette:m={},transitions:S={},typography:k={},shape:O,...R}=t;if(t.vars)throw new Error(wu(20));const j=vx(m),$=tg(t);let I=Xs($,{mixins:OT($.breakpoints,c),palette:j,shadows:IT.slice(),typography:X1(j,k),transitions:jT(S),zIndex:{...$T}});return I=Xs(I,R),I=r.reduce((F,z)=>Xs(F,z),I),I.unstable_sxConfig={...Jf,...R==null?void 0:R.unstable_sxConfig},I.unstable_sx=function(z){return xd({sx:z,theme:this})},I.toRuntimeSource=q1,I}function Rb(t){let r;return t<1?r=5.11916*t**2:r=4.5*Math.log(t+1)+2,Math.round(r*10)/1e3}const UT=[...Array(25)].map((t,r)=>{if(r===0)return"none";const a=Rb(r);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`});function K1(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Z1(t){return t==="dark"?UT:[]}function FT(t){const{palette:r={mode:"light"},opacity:a,overlays:c,...p}=t,m=vx(r);return{palette:m,opacity:{...K1(m.mode),...a},overlays:c||Z1(m.mode),...p}}function GT(t){var r;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((r=t[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const _T=t=>[...[...Array(25)].map((r,a)=>`--${t?`${t}-`:""}overlays-${a}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],WT=t=>(r,a)=>{const c=t.rootSelector||":root",p=t.colorSchemeSelector;let m=p;if(p==="class"&&(m=".%s"),p==="data"&&(m="[data-%s]"),p!=null&&p.startsWith("data-")&&!p.includes("%s")&&(m=`[${p}="%s"]`),t.defaultColorScheme===r){if(r==="dark"){const S={};return _T(t.cssVarPrefix).forEach(k=>{S[k]=a[k],delete a[k]}),m==="media"?{[c]:a,"@media (prefers-color-scheme: dark)":{[c]:S}}:m?{[m.replace("%s",r)]:S,[`${c}, ${m.replace("%s",r)}`]:a}:{[c]:{...a,...S}}}if(m&&m!=="media")return`${c}, ${m.replace("%s",String(r))}`}else if(r){if(m==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[c]:a}};if(m)return m.replace("%s",String(r))}return c};function VT(t,r){r.forEach(a=>{t[a]||(t[a]={})})}function le(t,r,a){!t[r]&&a&&(t[r]=a)}function Pf(t){return typeof t!="string"||!t.startsWith("hsl")?t:L1(t)}function gu(t,r){`${r}Channel`in t||(t[`${r}Channel`]=Of(Pf(t[r])))}function XT(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ac=t=>{try{return t()}catch{}},YT=(t="mui")=>ZM(t);function nb(t,r,a,c){if(!r)return;r=r===!0?{}:r;const p=c==="dark"?"dark":"light";if(!a){t[c]=FT({...r,palette:{mode:p,...r==null?void 0:r.palette}});return}const{palette:m,...S}=Ab({...a,palette:{mode:p,...r==null?void 0:r.palette}});return t[c]={...r,palette:m,opacity:{...K1(p),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Z1(p)},S}function qT(t={},...r){const{colorSchemes:a={light:!0},defaultColorScheme:c,disableCssColorScheme:p=!1,cssVarPrefix:m="mui",shouldSkipGeneratingVar:S=GT,colorSchemeSelector:k=a.light&&a.dark?"media":void 0,rootSelector:O=":root",...R}=t,j=Object.keys(a)[0],$=c||(a.light&&j!=="light"?"light":j),I=YT(m),{[$]:F,light:z,dark:_,...J}=a,it={...J};let st=F;if(($==="dark"&&!("dark"in a)||$==="light"&&!("light"in a))&&(st=!0),!st)throw new Error(wu(21,$));const ct=nb(it,st,R,$);z&&!it.light&&nb(it,z,void 0,"light"),_&&!it.dark&&nb(it,_,void 0,"dark");let ht={defaultColorScheme:$,...ct,cssVarPrefix:m,colorSchemeSelector:k,rootSelector:O,getCssVar:I,colorSchemes:it,font:{...RT(ct.typography),...ct.font},spacing:XT(R.spacing)};Object.keys(ht.colorSchemes).forEach(Et=>{const ot=ht.colorSchemes[Et].palette,It=se=>{const re=se.split("-"),ie=re[1],Kt=re[2];return I(se,ot[ie][Kt])};if(ot.mode==="light"&&(le(ot.common,"background","#fff"),le(ot.common,"onBackground","#000")),ot.mode==="dark"&&(le(ot.common,"background","#000"),le(ot.common,"onBackground","#fff")),VT(ot,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),ot.mode==="light"){le(ot.Alert,"errorColor",Bn(ot.error.light,.6)),le(ot.Alert,"infoColor",Bn(ot.info.light,.6)),le(ot.Alert,"successColor",Bn(ot.success.light,.6)),le(ot.Alert,"warningColor",Bn(ot.warning.light,.6)),le(ot.Alert,"errorFilledBg",It("palette-error-main")),le(ot.Alert,"infoFilledBg",It("palette-info-main")),le(ot.Alert,"successFilledBg",It("palette-success-main")),le(ot.Alert,"warningFilledBg",It("palette-warning-main")),le(ot.Alert,"errorFilledColor",Ac(()=>ot.getContrastText(ot.error.main))),le(ot.Alert,"infoFilledColor",Ac(()=>ot.getContrastText(ot.info.main))),le(ot.Alert,"successFilledColor",Ac(()=>ot.getContrastText(ot.success.main))),le(ot.Alert,"warningFilledColor",Ac(()=>ot.getContrastText(ot.warning.main))),le(ot.Alert,"errorStandardBg",Dn(ot.error.light,.9)),le(ot.Alert,"infoStandardBg",Dn(ot.info.light,.9)),le(ot.Alert,"successStandardBg",Dn(ot.success.light,.9)),le(ot.Alert,"warningStandardBg",Dn(ot.warning.light,.9)),le(ot.Alert,"errorIconColor",It("palette-error-main")),le(ot.Alert,"infoIconColor",It("palette-info-main")),le(ot.Alert,"successIconColor",It("palette-success-main")),le(ot.Alert,"warningIconColor",It("palette-warning-main")),le(ot.AppBar,"defaultBg",It("palette-grey-100")),le(ot.Avatar,"defaultBg",It("palette-grey-400")),le(ot.Button,"inheritContainedBg",It("palette-grey-300")),le(ot.Button,"inheritContainedHoverBg",It("palette-grey-A100")),le(ot.Chip,"defaultBorder",It("palette-grey-400")),le(ot.Chip,"defaultAvatarColor",It("palette-grey-700")),le(ot.Chip,"defaultIconColor",It("palette-grey-700")),le(ot.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),le(ot.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),le(ot.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),le(ot.LinearProgress,"primaryBg",Dn(ot.primary.main,.62)),le(ot.LinearProgress,"secondaryBg",Dn(ot.secondary.main,.62)),le(ot.LinearProgress,"errorBg",Dn(ot.error.main,.62)),le(ot.LinearProgress,"infoBg",Dn(ot.info.main,.62)),le(ot.LinearProgress,"successBg",Dn(ot.success.main,.62)),le(ot.LinearProgress,"warningBg",Dn(ot.warning.main,.62)),le(ot.Skeleton,"bg",`rgba(${It("palette-text-primaryChannel")} / 0.11)`),le(ot.Slider,"primaryTrack",Dn(ot.primary.main,.62)),le(ot.Slider,"secondaryTrack",Dn(ot.secondary.main,.62)),le(ot.Slider,"errorTrack",Dn(ot.error.main,.62)),le(ot.Slider,"infoTrack",Dn(ot.info.main,.62)),le(ot.Slider,"successTrack",Dn(ot.success.main,.62)),le(ot.Slider,"warningTrack",Dn(ot.warning.main,.62));const se=um(ot.background.default,.8);le(ot.SnackbarContent,"bg",se),le(ot.SnackbarContent,"color",Ac(()=>ot.getContrastText(se))),le(ot.SpeedDialAction,"fabHoverBg",um(ot.background.paper,.15)),le(ot.StepConnector,"border",It("palette-grey-400")),le(ot.StepContent,"border",It("palette-grey-400")),le(ot.Switch,"defaultColor",It("palette-common-white")),le(ot.Switch,"defaultDisabledColor",It("palette-grey-100")),le(ot.Switch,"primaryDisabledColor",Dn(ot.primary.main,.62)),le(ot.Switch,"secondaryDisabledColor",Dn(ot.secondary.main,.62)),le(ot.Switch,"errorDisabledColor",Dn(ot.error.main,.62)),le(ot.Switch,"infoDisabledColor",Dn(ot.info.main,.62)),le(ot.Switch,"successDisabledColor",Dn(ot.success.main,.62)),le(ot.Switch,"warningDisabledColor",Dn(ot.warning.main,.62)),le(ot.TableCell,"border",Dn(cm(ot.divider,1),.88)),le(ot.Tooltip,"bg",cm(ot.grey[700],.92))}if(ot.mode==="dark"){le(ot.Alert,"errorColor",Dn(ot.error.light,.6)),le(ot.Alert,"infoColor",Dn(ot.info.light,.6)),le(ot.Alert,"successColor",Dn(ot.success.light,.6)),le(ot.Alert,"warningColor",Dn(ot.warning.light,.6)),le(ot.Alert,"errorFilledBg",It("palette-error-dark")),le(ot.Alert,"infoFilledBg",It("palette-info-dark")),le(ot.Alert,"successFilledBg",It("palette-success-dark")),le(ot.Alert,"warningFilledBg",It("palette-warning-dark")),le(ot.Alert,"errorFilledColor",Ac(()=>ot.getContrastText(ot.error.dark))),le(ot.Alert,"infoFilledColor",Ac(()=>ot.getContrastText(ot.info.dark))),le(ot.Alert,"successFilledColor",Ac(()=>ot.getContrastText(ot.success.dark))),le(ot.Alert,"warningFilledColor",Ac(()=>ot.getContrastText(ot.warning.dark))),le(ot.Alert,"errorStandardBg",Bn(ot.error.light,.9)),le(ot.Alert,"infoStandardBg",Bn(ot.info.light,.9)),le(ot.Alert,"successStandardBg",Bn(ot.success.light,.9)),le(ot.Alert,"warningStandardBg",Bn(ot.warning.light,.9)),le(ot.Alert,"errorIconColor",It("palette-error-main")),le(ot.Alert,"infoIconColor",It("palette-info-main")),le(ot.Alert,"successIconColor",It("palette-success-main")),le(ot.Alert,"warningIconColor",It("palette-warning-main")),le(ot.AppBar,"defaultBg",It("palette-grey-900")),le(ot.AppBar,"darkBg",It("palette-background-paper")),le(ot.AppBar,"darkColor",It("palette-text-primary")),le(ot.Avatar,"defaultBg",It("palette-grey-600")),le(ot.Button,"inheritContainedBg",It("palette-grey-800")),le(ot.Button,"inheritContainedHoverBg",It("palette-grey-700")),le(ot.Chip,"defaultBorder",It("palette-grey-700")),le(ot.Chip,"defaultAvatarColor",It("palette-grey-300")),le(ot.Chip,"defaultIconColor",It("palette-grey-300")),le(ot.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),le(ot.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),le(ot.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),le(ot.LinearProgress,"primaryBg",Bn(ot.primary.main,.5)),le(ot.LinearProgress,"secondaryBg",Bn(ot.secondary.main,.5)),le(ot.LinearProgress,"errorBg",Bn(ot.error.main,.5)),le(ot.LinearProgress,"infoBg",Bn(ot.info.main,.5)),le(ot.LinearProgress,"successBg",Bn(ot.success.main,.5)),le(ot.LinearProgress,"warningBg",Bn(ot.warning.main,.5)),le(ot.Skeleton,"bg",`rgba(${It("palette-text-primaryChannel")} / 0.13)`),le(ot.Slider,"primaryTrack",Bn(ot.primary.main,.5)),le(ot.Slider,"secondaryTrack",Bn(ot.secondary.main,.5)),le(ot.Slider,"errorTrack",Bn(ot.error.main,.5)),le(ot.Slider,"infoTrack",Bn(ot.info.main,.5)),le(ot.Slider,"successTrack",Bn(ot.success.main,.5)),le(ot.Slider,"warningTrack",Bn(ot.warning.main,.5));const se=um(ot.background.default,.98);le(ot.SnackbarContent,"bg",se),le(ot.SnackbarContent,"color",Ac(()=>ot.getContrastText(se))),le(ot.SpeedDialAction,"fabHoverBg",um(ot.background.paper,.15)),le(ot.StepConnector,"border",It("palette-grey-600")),le(ot.StepContent,"border",It("palette-grey-600")),le(ot.Switch,"defaultColor",It("palette-grey-300")),le(ot.Switch,"defaultDisabledColor",It("palette-grey-600")),le(ot.Switch,"primaryDisabledColor",Bn(ot.primary.main,.55)),le(ot.Switch,"secondaryDisabledColor",Bn(ot.secondary.main,.55)),le(ot.Switch,"errorDisabledColor",Bn(ot.error.main,.55)),le(ot.Switch,"infoDisabledColor",Bn(ot.info.main,.55)),le(ot.Switch,"successDisabledColor",Bn(ot.success.main,.55)),le(ot.Switch,"warningDisabledColor",Bn(ot.warning.main,.55)),le(ot.TableCell,"border",Bn(cm(ot.divider,1),.68)),le(ot.Tooltip,"bg",cm(ot.grey[700],.92))}gu(ot.background,"default"),gu(ot.background,"paper"),gu(ot.common,"background"),gu(ot.common,"onBackground"),gu(ot,"divider"),Object.keys(ot).forEach(se=>{const re=ot[se];se!=="tonalOffset"&&re&&typeof re=="object"&&(re.main&&le(ot[se],"mainChannel",Of(Pf(re.main))),re.light&&le(ot[se],"lightChannel",Of(Pf(re.light))),re.dark&&le(ot[se],"darkChannel",Of(Pf(re.dark))),re.contrastText&&le(ot[se],"contrastTextChannel",Of(Pf(re.contrastText))),se==="text"&&(gu(ot[se],"primary"),gu(ot[se],"secondary")),se==="action"&&(re.active&&gu(ot[se],"active"),re.selected&&gu(ot[se],"selected")))})}),ht=r.reduce((Et,ot)=>Xs(Et,ot),ht);const lt={prefix:m,disableCssColorScheme:p,shouldSkipGeneratingVar:S,getSelector:WT(ht)},{vars:wt,generateThemeVars:at,generateStyleSheets:_t}=tT(ht,lt);return ht.vars=wt,Object.entries(ht.colorSchemes[ht.defaultColorScheme]).forEach(([Et,ot])=>{ht[Et]=ot}),ht.generateThemeVars=at,ht.generateStyleSheets=_t,ht.generateSpacing=function(){return T1(R.spacing,cx(this))},ht.getColorSchemeSelector=eT(k),ht.spacing=ht.generateSpacing(),ht.shouldSkipGeneratingVar=S,ht.unstable_sxConfig={...Jf,...R==null?void 0:R.unstable_sxConfig},ht.unstable_sx=function(ot){return xd({sx:ot,theme:this})},ht.toRuntimeSource=q1,ht}function e0(t,r,a){t.colorSchemes&&a&&(t.colorSchemes[r]={...a!==!0&&a,palette:vx({...a===!0?{}:a.palette,mode:r})})}function iy(t={},...r){const{palette:a,cssVariables:c=!1,colorSchemes:p=a?void 0:{light:!0},defaultColorScheme:m=a==null?void 0:a.mode,...S}=t,k=m||"light",O=p==null?void 0:p[k],R={...p,...a?{[k]:{...typeof O!="boolean"&&O,palette:a}}:void 0};if(c===!1){if(!("colorSchemes"in t))return Ab(t,...r);let j=a;"palette"in t||R[k]&&(R[k]!==!0?j=R[k].palette:k==="dark"&&(j={mode:"dark"}));const $=Ab({...t,palette:j},...r);return $.defaultColorScheme=k,$.colorSchemes=R,$.palette.mode==="light"&&($.colorSchemes.light={...R.light!==!0&&R.light,palette:$.palette},e0($,"dark",R.dark)),$.palette.mode==="dark"&&($.colorSchemes.dark={...R.dark!==!0&&R.dark,palette:$.palette},e0($,"light",R.light)),$}return!a&&!("light"in R)&&k==="light"&&(R.light=!0),qT({...S,colorSchemes:R,defaultColorScheme:k,...typeof c!="boolean"&&c},...r)}const ny=iy();function jc(){const t=eg(ny);return t[Hl]||t}function KT({props:t,name:r}){return hx({props:t,name:r,defaultTheme:ny,themeId:Hl})}function Q1(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Ys=t=>Q1(t)&&t!=="classes",xe=B1({themeId:Hl,defaultTheme:ny,rootShouldForwardProp:Ys});function i0({theme:t,...r}){const a=Hl in t?t[Hl]:void 0;return Y.jsx(G1,{...r,themeId:a?Hl:void 0,theme:a||t})}const dm={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:ZT}=KM({themeId:Hl,theme:()=>iy({cssVariables:!0}),colorSchemeStorageKey:dm.colorSchemeStorageKey,modeStorageKey:dm.modeStorageKey,defaultColorScheme:{light:dm.defaultLightColorScheme,dark:dm.defaultDarkColorScheme},resolveTheme:t=>{const r={...t,typography:X1(t.palette,t.typography)};return r.unstable_sx=function(c){return xd({sx:c,theme:this})},r}}),QT=ZT;function JT({theme:t,...r}){return typeof t=="function"?Y.jsx(i0,{theme:t,...r}):"colorSchemes"in(Hl in t?t[Hl]:t)?Y.jsx(QT,{theme:t,...r}):Y.jsx(i0,{theme:t,...r})}function tE(t){return Y.jsx(fM,{...t,defaultTheme:ny,themeId:Hl})}function eE(t){return function(a){return Y.jsx(tE,{styles:typeof t=="function"?c=>t({theme:c,...a}):t})}}function iE(){return dx}const hi=_M;function gi(t){return GM(t)}function nE(t){return si("MuiSvgIcon",t)}ci("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rE=t=>{const{color:r,fontSize:a,classes:c}=t,p={root:["root",r!=="inherit"&&`color${Re(r)}`,`fontSize${Re(a)}`]};return oi(p,nE,c)},sE=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.color!=="inherit"&&r[`color${Re(a.color)}`],r[`fontSize${Re(a.fontSize)}`]]}})(hi(({theme:t})=>{var r,a,c,p,m,S,k,O,R,j,$,I,F,z;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(p=(r=t.transitions)==null?void 0:r.create)==null?void 0:p.call(r,"fill",{duration:(c=(a=(t.vars??t).transitions)==null?void 0:a.duration)==null?void 0:c.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((S=(m=t.typography)==null?void 0:m.pxToRem)==null?void 0:S.call(m,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((O=(k=t.typography)==null?void 0:k.pxToRem)==null?void 0:O.call(k,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((j=(R=t.typography)==null?void 0:R.pxToRem)==null?void 0:j.call(R,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,_])=>_&&_.main).map(([_])=>{var J,it;return{props:{color:_},style:{color:(it=(J=(t.vars??t).palette)==null?void 0:J[_])==null?void 0:it.main}}}),{props:{color:"action"},style:{color:(I=($=(t.vars??t).palette)==null?void 0:$.action)==null?void 0:I.active}},{props:{color:"disabled"},style:{color:(z=(F=(t.vars??t).palette)==null?void 0:F.action)==null?void 0:z.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ob=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiSvgIcon"}),{children:p,className:m,color:S="inherit",component:k="svg",fontSize:O="medium",htmlColor:R,inheritViewBox:j=!1,titleAccess:$,viewBox:I="0 0 24 24",...F}=c,z=W.isValidElement(p)&&p.type==="svg",_={...c,color:S,component:k,fontSize:O,instanceFontSize:r.fontSize,inheritViewBox:j,viewBox:I,hasSvgAsChild:z},J={};j||(J.viewBox=I);const it=rE(_);return Y.jsxs(sE,{as:k,className:je(it.root,m),focusable:"false",color:R,"aria-hidden":$?void 0:!0,role:$?"img":void 0,ref:a,...J,...F,...z&&p.props,ownerState:_,children:[z?p.props.children:p,$?Y.jsx("title",{children:$}):null]})});Ob.muiName="SvgIcon";function vr(t,r){function a(c,p){return Y.jsx(Ob,{"data-testid":`${r}Icon`,ref:p,...c,children:t})}return a.muiName=Ob.muiName,W.memo(W.forwardRef(a))}function Lc(t,r){if(t==null)return{};var a={};for(var c in t)if({}.hasOwnProperty.call(t,c)){if(r.indexOf(c)!==-1)continue;a[c]=t[c]}return a}function Pb(t,r){return Pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,c){return a.__proto__=c,a},Pb(t,r)}function J1(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Pb(t,r)}var tS=o1();const hm=up(tS),n0={disabled:!1},zm=Dc.createContext(null);var oE=function(r){return r.scrollTop},Bf="unmounted",th="exited",eh="entering",Qh="entered",Bb="exiting",nl=function(t){J1(r,t);function r(c,p){var m;m=t.call(this,c,p)||this;var S=p,k=S&&!S.isMounting?c.enter:c.appear,O;return m.appearStatus=null,c.in?k?(O=th,m.appearStatus=eh):O=Qh:c.unmountOnExit||c.mountOnEnter?O=Bf:O=th,m.state={status:O},m.nextCallback=null,m}r.getDerivedStateFromProps=function(p,m){var S=p.in;return S&&m.status===Bf?{status:th}:null};var a=r.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(p){var m=null;if(p!==this.props){var S=this.state.status;this.props.in?S!==eh&&S!==Qh&&(m=eh):(S===eh||S===Qh)&&(m=Bb)}this.updateStatus(!1,m)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var p=this.props.timeout,m,S,k;return m=S=k=p,p!=null&&typeof p!="number"&&(m=p.exit,S=p.enter,k=p.appear!==void 0?p.appear:S),{exit:m,enter:S,appear:k}},a.updateStatus=function(p,m){if(p===void 0&&(p=!1),m!==null)if(this.cancelNextCallback(),m===eh){if(this.props.unmountOnExit||this.props.mountOnEnter){var S=this.props.nodeRef?this.props.nodeRef.current:hm.findDOMNode(this);S&&oE(S)}this.performEnter(p)}else this.performExit();else this.props.unmountOnExit&&this.state.status===th&&this.setState({status:Bf})},a.performEnter=function(p){var m=this,S=this.props.enter,k=this.context?this.context.isMounting:p,O=this.props.nodeRef?[k]:[hm.findDOMNode(this),k],R=O[0],j=O[1],$=this.getTimeouts(),I=k?$.appear:$.enter;if(!p&&!S||n0.disabled){this.safeSetState({status:Qh},function(){m.props.onEntered(R)});return}this.props.onEnter(R,j),this.safeSetState({status:eh},function(){m.props.onEntering(R,j),m.onTransitionEnd(I,function(){m.safeSetState({status:Qh},function(){m.props.onEntered(R,j)})})})},a.performExit=function(){var p=this,m=this.props.exit,S=this.getTimeouts(),k=this.props.nodeRef?void 0:hm.findDOMNode(this);if(!m||n0.disabled){this.safeSetState({status:th},function(){p.props.onExited(k)});return}this.props.onExit(k),this.safeSetState({status:Bb},function(){p.props.onExiting(k),p.onTransitionEnd(S.exit,function(){p.safeSetState({status:th},function(){p.props.onExited(k)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(p,m){m=this.setNextCallback(m),this.setState(p,m)},a.setNextCallback=function(p){var m=this,S=!0;return this.nextCallback=function(k){S&&(S=!1,m.nextCallback=null,p(k))},this.nextCallback.cancel=function(){S=!1},this.nextCallback},a.onTransitionEnd=function(p,m){this.setNextCallback(m);var S=this.props.nodeRef?this.props.nodeRef.current:hm.findDOMNode(this),k=p==null&&!this.props.addEndListener;if(!S||k){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var O=this.props.nodeRef?[this.nextCallback]:[S,this.nextCallback],R=O[0],j=O[1];this.props.addEndListener(R,j)}p!=null&&setTimeout(this.nextCallback,p)},a.render=function(){var p=this.state.status;if(p===Bf)return null;var m=this.props,S=m.children;m.in,m.mountOnEnter,m.unmountOnExit,m.appear,m.enter,m.exit,m.timeout,m.addEndListener,m.onEnter,m.onEntering,m.onEntered,m.onExit,m.onExiting,m.onExited,m.nodeRef;var k=Lc(m,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dc.createElement(zm.Provider,{value:null},typeof S=="function"?S(p,k):Dc.cloneElement(Dc.Children.only(S),k))},r}(Dc.Component);nl.contextType=zm;nl.propTypes={};function Zh(){}nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zh,onEntering:Zh,onEntered:Zh,onExit:Zh,onExiting:Zh,onExited:Zh};nl.UNMOUNTED=Bf;nl.EXITED=th;nl.ENTERING=eh;nl.ENTERED=Qh;nl.EXITING=Bb;function aE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sx(t,r){var a=function(m){return r&&W.isValidElement(m)?r(m):m},c=Object.create(null);return t&&W.Children.map(t,function(p){return p}).forEach(function(p){c[p.key]=a(p)}),c}function lE(t,r){t=t||{},r=r||{};function a(j){return j in r?r[j]:t[j]}var c=Object.create(null),p=[];for(var m in t)m in r?p.length&&(c[m]=p,p=[]):p.push(m);var S,k={};for(var O in r){if(c[O])for(S=0;S<c[O].length;S++){var R=c[O][S];k[c[O][S]]=a(R)}k[O]=a(O)}for(S=0;S<p.length;S++)k[p[S]]=a(p[S]);return k}function sh(t,r,a){return a[r]!=null?a[r]:t.props[r]}function cE(t,r){return Sx(t.children,function(a){return W.cloneElement(a,{onExited:r.bind(null,a),in:!0,appear:sh(a,"appear",t),enter:sh(a,"enter",t),exit:sh(a,"exit",t)})})}function uE(t,r,a){var c=Sx(t.children),p=lE(r,c);return Object.keys(p).forEach(function(m){var S=p[m];if(W.isValidElement(S)){var k=m in r,O=m in c,R=r[m],j=W.isValidElement(R)&&!R.props.in;O&&(!k||j)?p[m]=W.cloneElement(S,{onExited:a.bind(null,S),in:!0,exit:sh(S,"exit",t),enter:sh(S,"enter",t)}):!O&&k&&!j?p[m]=W.cloneElement(S,{in:!1}):O&&k&&W.isValidElement(R)&&(p[m]=W.cloneElement(S,{onExited:a.bind(null,S),in:R.props.in,exit:sh(S,"exit",t),enter:sh(S,"enter",t)}))}}),p}var dE=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},hE={component:"div",childFactory:function(r){return r}},wx=function(t){J1(r,t);function r(c,p){var m;m=t.call(this,c,p)||this;var S=m.handleExited.bind(aE(m));return m.state={contextValue:{isMounting:!0},handleExited:S,firstRender:!0},m}var a=r.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(p,m){var S=m.children,k=m.handleExited,O=m.firstRender;return{children:O?cE(p,k):uE(p,S,k),firstRender:!1}},a.handleExited=function(p,m){var S=Sx(this.props.children);p.key in S||(p.props.onExited&&p.props.onExited(m),this.mounted&&this.setState(function(k){var O=Bi({},k.children);return delete O[p.key],{children:O}}))},a.render=function(){var p=this.props,m=p.component,S=p.childFactory,k=Lc(p,["component","childFactory"]),O=this.state.contextValue,R=dE(this.state.children).map(S);return delete k.appear,delete k.enter,delete k.exit,m===null?Dc.createElement(zm.Provider,{value:O},R):Dc.createElement(zm.Provider,{value:O},Dc.createElement(m,k,R))},r}(Dc.Component);wx.propTypes={};wx.defaultProps=hE;const Cx=t=>t.scrollTop;function Sd(t,r){const{timeout:a,easing:c,style:p={}}=t;return{duration:p.transitionDuration??(typeof a=="number"?a:a[r.mode]||0),easing:p.transitionTimingFunction??(typeof c=="object"?c[r.mode]:c),delay:p.transitionDelay}}function pE(t){return si("MuiCollapse",t)}ci("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const fE=t=>{const{orientation:r,classes:a}=t,c={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return oi(c,pE,a)},gE=xe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.orientation],a.state==="entered"&&r.entered,a.state==="exited"&&!a.in&&a.collapsedSize==="0px"&&r.hidden]}})(hi(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:r})=>r.state==="exited"&&!r.in&&r.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),mE=xe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,r)=>r.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),yE=xe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,r)=>r.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Db=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiCollapse"}),{addEndListener:p,children:m,className:S,collapsedSize:k="0px",component:O,easing:R,in:j,onEnter:$,onEntered:I,onEntering:F,onExit:z,onExited:_,onExiting:J,orientation:it="vertical",style:st,timeout:ct=Y1.standard,TransitionComponent:ht=nl,...lt}=c,wt={...c,orientation:it,collapsedSize:k},at=fE(wt),_t=jc(),Et=mx(),ot=W.useRef(null),It=W.useRef(),se=typeof k=="number"?`${k}px`:k,re=it==="horizontal",ie=re?"width":"height",Kt=W.useRef(null),zt=ir(a,Kt),ne=we=>Ue=>{if(we){const Ae=Kt.current;Ue===void 0?we(Ae):we(Ae,Ue)}},te=()=>ot.current?ot.current[re?"clientWidth":"clientHeight"]:0,Dt=ne((we,Ue)=>{ot.current&&re&&(ot.current.style.position="absolute"),we.style[ie]=se,$&&$(we,Ue)}),St=ne((we,Ue)=>{const Ae=te();ot.current&&re&&(ot.current.style.position="");const{duration:Ke,easing:Be}=Sd({style:st,timeout:ct,easing:R},{mode:"enter"});if(ct==="auto"){const _e=_t.transitions.getAutoHeightDuration(Ae);we.style.transitionDuration=`${_e}ms`,It.current=_e}else we.style.transitionDuration=typeof Ke=="string"?Ke:`${Ke}ms`;we.style[ie]=`${Ae}px`,we.style.transitionTimingFunction=Be,F&&F(we,Ue)}),jt=ne((we,Ue)=>{we.style[ie]="auto",I&&I(we,Ue)}),Se=ne(we=>{we.style[ie]=`${te()}px`,z&&z(we)}),ke=ne(_),ge=ne(we=>{const Ue=te(),{duration:Ae,easing:Ke}=Sd({style:st,timeout:ct,easing:R},{mode:"exit"});if(ct==="auto"){const Be=_t.transitions.getAutoHeightDuration(Ue);we.style.transitionDuration=`${Be}ms`,It.current=Be}else we.style.transitionDuration=typeof Ae=="string"?Ae:`${Ae}ms`;we.style[ie]=se,we.style.transitionTimingFunction=Ke,J&&J(we)}),Pe=we=>{ct==="auto"&&Et.start(It.current||0,we),p&&p(Kt.current,we)};return Y.jsx(ht,{in:j,onEnter:Dt,onEntered:jt,onEntering:St,onExit:Se,onExited:ke,onExiting:ge,addEndListener:Pe,nodeRef:Kt,timeout:ct==="auto"?null:ct,...lt,children:(we,{ownerState:Ue,...Ae})=>Y.jsx(gE,{as:O,className:je(at.root,S,{entered:at.entered,exited:!j&&se==="0px"&&at.hidden}[we]),style:{[re?"minWidth":"minHeight"]:se,...st},ref:zt,ownerState:{...wt,state:we},...Ae,children:Y.jsx(mE,{ownerState:{...wt,state:we},className:at.wrapper,ref:ot,children:Y.jsx(yE,{ownerState:{...wt,state:we},className:at.wrapperInner,children:m})})})})});Db&&(Db.muiSupportAuto=!0);function bE(t){return si("MuiPaper",t)}ci("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const xE=t=>{const{square:r,elevation:a,variant:c,classes:p}=t,m={root:["root",c,!r&&"rounded",c==="elevation"&&`elevation${a}`]};return oi(m,bE,p)},vE=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.variant],!a.square&&r.rounded,a.variant==="elevation"&&r[`elevation${a.elevation}`]]}})(hi(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ng=W.forwardRef(function(r,a){var F;const c=gi({props:r,name:"MuiPaper"}),p=jc(),{className:m,component:S="div",elevation:k=1,square:O=!1,variant:R="elevation",...j}=c,$={...c,component:S,elevation:k,square:O,variant:R},I=xE($);return Y.jsx(vE,{as:S,ownerState:$,className:je(I.root,m),ref:a,...j,style:{...R==="elevation"&&{"--Paper-shadow":(p.vars||p).shadows[k],...p.vars&&{"--Paper-overlay":(F=p.vars.overlays)==null?void 0:F[k]},...!p.vars&&p.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Yi("#fff",Rb(k))}, ${Yi("#fff",Rb(k))})`}},...j.style}})});function As(t,r){const{className:a,elementType:c,ownerState:p,externalForwardedProps:m,internalForwardedProps:S,shouldForwardComponentProp:k=!1,...O}=r,{component:R,slots:j={[t]:void 0},slotProps:$={[t]:void 0},...I}=m,F=j[t]||c,z=yd($[t],p),{props:{component:_,...J},internalRef:it}=$1({className:a,...O,externalForwardedProps:t==="root"?I:void 0,externalSlotProps:z}),st=ir(it,z==null?void 0:z.ref,r.ref),ct=t==="root"?_||R:_,ht=j1(F,{...t==="root"&&!R&&!j[t]&&S,...t!=="root"&&!j[t]&&S,...J,...ct&&!k&&{as:ct},...ct&&k&&{component:ct},ref:st},p);return[F,ht]}class jm{constructor(){mf(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new jm}static use(){const r=I1(jm.create).current,[a,c]=W.useState(!1);return r.shouldMount=a,r.setShouldMount=c,W.useEffect(r.mountEffect,[a]),r}mount(){return this.mounted||(this.mounted=wE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var a;return(a=this.ref.current)==null?void 0:a.start(...r)})}stop(...r){this.mount().then(()=>{var a;return(a=this.ref.current)==null?void 0:a.stop(...r)})}pulsate(...r){this.mount().then(()=>{var a;return(a=this.ref.current)==null?void 0:a.pulsate(...r)})}}function SE(){return jm.use()}function wE(){let t,r;const a=new Promise((c,p)=>{t=c,r=p});return a.resolve=t,a.reject=r,a}function CE(t){const{className:r,classes:a,pulsate:c=!1,rippleX:p,rippleY:m,rippleSize:S,in:k,onExited:O,timeout:R}=t,[j,$]=W.useState(!1),I=je(r,a.ripple,a.rippleVisible,c&&a.ripplePulsate),F={width:S,height:S,top:-(S/2)+m,left:-(S/2)+p},z=je(a.child,j&&a.childLeaving,c&&a.childPulsate);return!k&&!j&&$(!0),W.useEffect(()=>{if(!k&&O!=null){const _=setTimeout(O,R);return()=>{clearTimeout(_)}}},[O,k,R]),Y.jsx("span",{className:I,style:F,children:Y.jsx("span",{className:z})})}const Za=ci("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Lb=550,kE=80,ME=wd`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,TE=wd`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,EE=wd`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,AE=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),RE=xe(CE,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${Za.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${ME};
animation-duration: ${Lb}ms;
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
}
&.${Za.ripplePulsate} {
animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
}
& .${Za.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${Za.childLeaving} {
opacity: 0;
animation-name: ${TE};
animation-duration: ${Lb}ms;
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
}
& .${Za.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${EE};
animation-duration: 2500ms;
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,OE=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTouchRipple"}),{center:p=!1,classes:m={},className:S,...k}=c,[O,R]=W.useState([]),j=W.useRef(0),$=W.useRef(null);W.useEffect(()=>{$.current&&($.current(),$.current=null)},[O]);const I=W.useRef(!1),F=mx(),z=W.useRef(null),_=W.useRef(null),J=W.useCallback(ht=>{const{pulsate:lt,rippleX:wt,rippleY:at,rippleSize:_t,cb:Et}=ht;R(ot=>[...ot,Y.jsx(RE,{classes:{ripple:je(m.ripple,Za.ripple),rippleVisible:je(m.rippleVisible,Za.rippleVisible),ripplePulsate:je(m.ripplePulsate,Za.ripplePulsate),child:je(m.child,Za.child),childLeaving:je(m.childLeaving,Za.childLeaving),childPulsate:je(m.childPulsate,Za.childPulsate)},timeout:Lb,pulsate:lt,rippleX:wt,rippleY:at,rippleSize:_t},j.current)]),j.current+=1,$.current=Et},[m]),it=W.useCallback((ht={},lt={},wt=()=>{})=>{const{pulsate:at=!1,center:_t=p||lt.pulsate,fakeElement:Et=!1}=lt;if((ht==null?void 0:ht.type)==="mousedown"&&I.current){I.current=!1;return}(ht==null?void 0:ht.type)==="touchstart"&&(I.current=!0);const ot=Et?null:_.current,It=ot?ot.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,re,ie;if(_t||ht===void 0||ht.clientX===0&&ht.clientY===0||!ht.clientX&&!ht.touches)se=Math.round(It.width/2),re=Math.round(It.height/2);else{const{clientX:Kt,clientY:zt}=ht.touches&&ht.touches.length>0?ht.touches[0]:ht;se=Math.round(Kt-It.left),re=Math.round(zt-It.top)}if(_t)ie=Math.sqrt((2*It.width**2+It.height**2)/3),ie%2===0&&(ie+=1);else{const Kt=Math.max(Math.abs((ot?ot.clientWidth:0)-se),se)*2+2,zt=Math.max(Math.abs((ot?ot.clientHeight:0)-re),re)*2+2;ie=Math.sqrt(Kt**2+zt**2)}ht!=null&&ht.touches?z.current===null&&(z.current=()=>{J({pulsate:at,rippleX:se,rippleY:re,rippleSize:ie,cb:wt})},F.start(kE,()=>{z.current&&(z.current(),z.current=null)})):J({pulsate:at,rippleX:se,rippleY:re,rippleSize:ie,cb:wt})},[p,J,F]),st=W.useCallback(()=>{it({},{pulsate:!0})},[it]),ct=W.useCallback((ht,lt)=>{if(F.clear(),(ht==null?void 0:ht.type)==="touchend"&&z.current){z.current(),z.current=null,F.start(0,()=>{ct(ht,lt)});return}z.current=null,R(wt=>wt.length>0?wt.slice(1):wt),$.current=lt},[F]);return W.useImperativeHandle(a,()=>({pulsate:st,start:it,stop:ct}),[st,it,ct]),Y.jsx(AE,{className:je(Za.root,m.root,S),ref:_,...k,children:Y.jsx(wx,{component:null,exit:!0,children:O})})});function PE(t){return si("MuiButtonBase",t)}const BE=ci("MuiButtonBase",["root","disabled","focusVisible"]),DE=t=>{const{disabled:r,focusVisible:a,focusVisibleClassName:c,classes:p}=t,S=oi({root:["root",r&&"disabled",a&&"focusVisible"]},PE,p);return a&&c&&(S.root+=` ${c}`),S},LE=xe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${BE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mp=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiButtonBase"}),{action:p,centerRipple:m=!1,children:S,className:k,component:O="button",disabled:R=!1,disableRipple:j=!1,disableTouchRipple:$=!1,focusRipple:I=!1,focusVisibleClassName:F,LinkComponent:z="a",onBlur:_,onClick:J,onContextMenu:it,onDragLeave:st,onFocus:ct,onFocusVisible:ht,onKeyDown:lt,onKeyUp:wt,onMouseDown:at,onMouseLeave:_t,onMouseUp:Et,onTouchEnd:ot,onTouchMove:It,onTouchStart:se,tabIndex:re=0,TouchRippleProps:ie,touchRippleRef:Kt,type:zt,...ne}=c,te=W.useRef(null),Dt=SE(),St=ir(Dt.ref,Kt),[jt,Se]=W.useState(!1);R&&jt&&Se(!1),W.useImperativeHandle(p,()=>({focusVisible:()=>{Se(!0),te.current.focus()}}),[]);const ke=Dt.shouldMount&&!j&&!R;W.useEffect(()=>{jt&&I&&!j&&Dt.pulsate()},[j,I,jt,Dt]);const ge=mu(Dt,"start",at,$),Pe=mu(Dt,"stop",it,$),we=mu(Dt,"stop",st,$),Ue=mu(Dt,"stop",Et,$),Ae=mu(Dt,"stop",Ye=>{jt&&Ye.preventDefault(),_t&&_t(Ye)},$),Ke=mu(Dt,"start",se,$),Be=mu(Dt,"stop",ot,$),_e=mu(Dt,"stop",It,$),me=mu(Dt,"stop",Ye=>{Lm(Ye.target)||Se(!1),_&&_(Ye)},!1),Ei=tl(Ye=>{te.current||(te.current=Ye.currentTarget),Lm(Ye.target)&&(Se(!0),ht&&ht(Ye)),ct&&ct(Ye)}),di=()=>{const Ye=te.current;return O&&O!=="button"&&!(Ye.tagName==="A"&&Ye.href)},Ai=tl(Ye=>{I&&!Ye.repeat&&jt&&Ye.key===" "&&Dt.stop(Ye,()=>{Dt.start(Ye)}),Ye.target===Ye.currentTarget&&di()&&Ye.key===" "&&Ye.preventDefault(),lt&<(Ye),Ye.target===Ye.currentTarget&&di()&&Ye.key==="Enter"&&!R&&(Ye.preventDefault(),J&&J(Ye))}),Di=tl(Ye=>{I&&Ye.key===" "&&jt&&!Ye.defaultPrevented&&Dt.stop(Ye,()=>{Dt.pulsate(Ye)}),wt&&wt(Ye),J&&Ye.target===Ye.currentTarget&&di()&&Ye.key===" "&&!Ye.defaultPrevented&&J(Ye)});let Ni=O;Ni==="button"&&(ne.href||ne.to)&&(Ni=z);const bi={};Ni==="button"?(bi.type=zt===void 0?"button":zt,bi.disabled=R):(!ne.href&&!ne.to&&(bi.role="button"),R&&(bi["aria-disabled"]=R));const bn=ir(a,te),Zi={...c,centerRipple:m,component:O,disabled:R,disableRipple:j,disableTouchRipple:$,focusRipple:I,tabIndex:re,focusVisible:jt},qi=DE(Zi);return Y.jsxs(LE,{as:Ni,className:je(qi.root,k),ownerState:Zi,onBlur:me,onClick:J,onContextMenu:Pe,onFocus:Ei,onKeyDown:Ai,onKeyUp:Di,onMouseDown:ge,onMouseLeave:Ae,onMouseUp:Ue,onDragLeave:we,onTouchEnd:Be,onTouchMove:_e,onTouchStart:Ke,ref:bn,tabIndex:R?-1:re,type:zt,...bi,...ne,children:[S,ke?Y.jsx(OE,{ref:St,center:m,...ie}):null]})});function mu(t,r,a,c=!1){return tl(p=>(a&&a(p),c||t[r](p),!0))}function IE(t){return typeof t.main=="string"}function NE(t,r=[]){if(!IE(t))return!1;for(const a of r)if(!t.hasOwnProperty(a)||typeof t[a]!="string")return!1;return!0}function Gr(t=[]){return([,r])=>r&&NE(r,t)}function zE(t){return si("MuiCircularProgress",t)}ci("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const hd=44,Ib=wd`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,Nb=wd`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
`,jE=typeof Ib!="string"?hp`
animation: ${Ib} 1.4s linear infinite;
`:null,$E=typeof Nb!="string"?hp`
animation: ${Nb} 1.4s ease-in-out infinite;
`:null,HE=t=>{const{classes:r,variant:a,color:c,disableShrink:p}=t,m={root:["root",a,`color${Re(c)}`],svg:["svg"],circle:["circle",`circle${Re(a)}`,p&&"circleDisableShrink"]};return oi(m,zE,r)},UE=xe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.variant],r[`color${Re(a.color)}`]]}})(hi(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:jE||{animation:`${Ib} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}}))]}))),FE=xe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,r)=>r.svg})({display:"block"}),GE=xe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.circle,r[`circle${Re(a.variant)}`],a.disableShrink&&r.circleDisableShrink]}})(hi(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:$E||{animation:`${Nb} 1.4s ease-in-out infinite`}}]}))),eS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiCircularProgress"}),{className:p,color:m="primary",disableShrink:S=!1,size:k=40,style:O,thickness:R=3.6,value:j=0,variant:$="indeterminate",...I}=c,F={...c,color:m,disableShrink:S,size:k,thickness:R,value:j,variant:$},z=HE(F),_={},J={},it={};if($==="determinate"){const st=2*Math.PI*((hd-R)/2);_.strokeDasharray=st.toFixed(3),it["aria-valuenow"]=Math.round(j),_.strokeDashoffset=`${((100-j)/100*st).toFixed(3)}px`,J.transform="rotate(-90deg)"}return Y.jsx(UE,{className:je(z.root,p),style:{width:k,height:k,...J,...O},ownerState:F,ref:a,role:"progressbar",...it,...I,children:Y.jsx(FE,{className:z.svg,ownerState:F,viewBox:`${hd/2} ${hd/2} ${hd} ${hd}`,children:Y.jsx(GE,{className:z.circle,style:_,ownerState:F,cx:hd,cy:hd,r:(hd-R)/2,fill:"none",strokeWidth:R})})})});function _E(t){return si("MuiIconButton",t)}const r0=ci("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),WE=t=>{const{classes:r,disabled:a,color:c,edge:p,size:m,loading:S}=t,k={root:["root",S&&"loading",a&&"disabled",c!=="default"&&`color${Re(c)}`,p&&`edge${Re(p)}`,`size${Re(m)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return oi(k,_E,r)},VE=xe(mp,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.loading&&r.loading,a.color!=="default"&&r[`color${Re(a.color)}`],a.edge&&r[`edge${Re(a.edge)}`],r[`size${Re(a.size)}`]]}})(hi(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),hi(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi((t.vars||t).palette[r].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${r0.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${r0.loading}`]:{color:"transparent"}}))),XE=xe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,r)=>r.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ja=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiIconButton"}),{edge:p=!1,children:m,className:S,color:k="default",disabled:O=!1,disableFocusRipple:R=!1,size:j="medium",id:$,loading:I=null,loadingIndicator:F,...z}=c,_=_f($),J=F??Y.jsx(eS,{"aria-labelledby":_,color:"inherit",size:16}),it={...c,edge:p,color:k,disabled:O,disableFocusRipple:R,loading:I,loadingIndicator:J,size:j},st=WE(it);return Y.jsxs(VE,{id:_,className:je(st.root,S),centerRipple:!0,focusRipple:!R,disabled:O||I,ref:a,...z,ownerState:it,children:[typeof I=="boolean"&&Y.jsx("span",{className:st.loadingWrapper,style:{display:"contents"},children:Y.jsx(XE,{className:st.loadingIndicator,ownerState:it,children:I&&J})}),m]})});function YE(t){return si("MuiTypography",t)}const s0=ci("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),qE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},KE=iE(),ZE=t=>{const{align:r,gutterBottom:a,noWrap:c,paragraph:p,variant:m,classes:S}=t,k={root:["root",m,t.align!=="inherit"&&`align${Re(r)}`,a&&"gutterBottom",c&&"noWrap",p&&"paragraph"]};return oi(k,YE,S)},QE=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.variant&&r[a.variant],a.align!=="inherit"&&r[`align${Re(a.align)}`],a.noWrap&&r.noWrap,a.gutterBottom&&r.gutterBottom,a.paragraph&&r.paragraph]}})(hi(({theme:t})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([a,c])=>a!=="inherit"&&c&&typeof c=="object").map(([a,c])=>({props:{variant:a},style:c})),...Object.entries(t.palette).filter(Gr()).map(([a])=>({props:{color:a},style:{color:(t.vars||t).palette[a].main}})),...Object.entries(((r=t.palette)==null?void 0:r.text)||{}).filter(([,a])=>typeof a=="string").map(([a])=>({props:{color:`text${Re(a)}`},style:{color:(t.vars||t).palette.text[a]}})),{props:({ownerState:a})=>a.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:a})=>a.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:a})=>a.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:a})=>a.paragraph,style:{marginBottom:16}}]}})),o0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Un=W.forwardRef(function(r,a){const{color:c,...p}=gi({props:r,name:"MuiTypography"}),m=!qE[c],S=KE({...p,...m&&{color:c}}),{align:k="inherit",className:O,component:R,gutterBottom:j=!1,noWrap:$=!1,paragraph:I=!1,variant:F="body1",variantMapping:z=o0,..._}=S,J={...S,align:k,color:c,className:O,component:R,gutterBottom:j,noWrap:$,paragraph:I,variant:F,variantMapping:z},it=R||(I?"p":z[F]||o0[F])||"span",st=ZE(J);return Y.jsx(QE,{as:it,ref:a,className:je(st.root,O),..._,ownerState:J,style:{...k!=="inherit"&&{"--Typography-textAlign":k},..._.style}})});function JE(t){return si("MuiAppBar",t)}ci("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tA=t=>{const{color:r,position:a,classes:c}=t,p={root:["root",`color${Re(r)}`,`position${Re(a)}`]};return oi(p,JE,c)},a0=(t,r)=>t?`${t==null?void 0:t.replace(")","")}, ${r})`:r,eA=xe(ng,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[`position${Re(a.position)}`],r[`color${Re(a.color)}`]]}})(hi(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Gr(["contrastText"])).map(([r])=>({props:{color:r},style:{"--AppBar-background":(t.vars??t).palette[r].main,"--AppBar-color":(t.vars??t).palette[r].contrastText}})),{props:r=>r.enableColorOnDark===!0&&!["inherit","transparent"].includes(r.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:r=>r.enableColorOnDark===!1&&!["inherit","transparent"].includes(r.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?a0(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?a0(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),iA=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiAppBar"}),{className:p,color:m="primary",enableColorOnDark:S=!1,position:k="fixed",...O}=c,R={...c,color:m,position:k,enableColorOnDark:S},j=tA(R);return Y.jsx(eA,{square:!0,component:"header",ownerState:R,elevation:4,className:je(j.root,p,k==="fixed"&&"mui-fixed"),ref:a,...O})});function nA(t){return typeof t=="function"?t():t}const rA=W.forwardRef(function(r,a){const{children:c,container:p,disablePortal:m=!1}=r,[S,k]=W.useState(null),O=ir(W.isValidElement(c)?fp(c):null,a);if(Nc(()=>{m||k(nA(p)||document.body)},[p,m]),Nc(()=>{if(S&&!m)return Tb(a,S),()=>{Tb(a,null)}},[a,S,m]),m){if(W.isValidElement(c)){const R={ref:O};return W.cloneElement(c,R)}return c}return S&&tS.createPortal(c,S)});function pm(t){return parseInt(t,10)||0}const sA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oA(t){for(const r in t)return!1;return!0}function aA(t){return oA(t)||t.outerHeightStyle===0&&!t.overflowing}const lA=W.forwardRef(function(r,a){const{onChange:c,maxRows:p,minRows:m=1,style:S,value:k,...O}=r,{current:R}=W.useRef(k!=null),j=W.useRef(null),$=ir(a,j),I=W.useRef(null),F=W.useRef(null),z=W.useCallback(()=>{const st=j.current,ct=F.current;if(!st||!ct)return;const lt=Fl(st).getComputedStyle(st);if(lt.width==="0px")return{outerHeightStyle:0,overflowing:!1};ct.style.width=lt.width,ct.value=st.value||r.placeholder||"x",ct.value.slice(-1)===`
`&&(ct.value+=" ");const wt=lt.boxSizing,at=pm(lt.paddingBottom)+pm(lt.paddingTop),_t=pm(lt.borderBottomWidth)+pm(lt.borderTopWidth),Et=ct.scrollHeight;ct.value="x";const ot=ct.scrollHeight;let It=Et;m&&(It=Math.max(Number(m)*ot,It)),p&&(It=Math.min(Number(p)*ot,It)),It=Math.max(It,ot);const se=It+(wt==="border-box"?at+_t:0),re=Math.abs(It-Et)<=1;return{outerHeightStyle:se,overflowing:re}},[p,m,r.placeholder]),_=W.useCallback(()=>{const st=j.current,ct=z();if(!st||!ct||aA(ct))return;const ht=ct.outerHeightStyle;I.current!==ht&&(I.current=ht,st.style.height=`${ht}px`),st.style.overflow=ct.overflowing?"hidden":""},[z]),J=W.useRef(-1);Nc(()=>{const st=fx(()=>_()),ct=j==null?void 0:j.current;if(!ct)return;const ht=Fl(ct);ht.addEventListener("resize",st);let lt;return typeof ResizeObserver<"u"&&(lt=new ResizeObserver(()=>{lt.unobserve(ct),cancelAnimationFrame(J.current),_(),J.current=requestAnimationFrame(()=>{lt.observe(ct)})}),lt.observe(ct)),()=>{st.clear(),cancelAnimationFrame(J.current),ht.removeEventListener("resize",st),lt&<.disconnect()}},[z,_]),Nc(()=>{_()});const it=st=>{R||_(),c&&c(st)};return Y.jsxs(W.Fragment,{children:[Y.jsx("textarea",{value:k,onChange:it,ref:$,rows:m,style:S,...O}),Y.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:F,tabIndex:-1,style:{...sA.shadow,...S,paddingTop:0,paddingBottom:0}})]})});function Wf(t){return typeof t=="string"}function ah({props:t,states:r,muiFormControl:a}){return r.reduce((c,p)=>(c[p]=t[p],a&&typeof t[p]>"u"&&(c[p]=a[p]),c),{})}const kx=W.createContext(void 0);function Cd(){return W.useContext(kx)}function l0(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function $m(t,r=!1){return t&&(l0(t.value)&&t.value!==""||r&&l0(t.defaultValue)&&t.defaultValue!=="")}function cA(t){return t.startAdornment}function uA(t){return si("MuiInputBase",t)}const lp=ci("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var c0;const ry=(t,r)=>{const{ownerState:a}=t;return[r.root,a.formControl&&r.formControl,a.startAdornment&&r.adornedStart,a.endAdornment&&r.adornedEnd,a.error&&r.error,a.size==="small"&&r.sizeSmall,a.multiline&&r.multiline,a.color&&r[`color${Re(a.color)}`],a.fullWidth&&r.fullWidth,a.hiddenLabel&&r.hiddenLabel]},sy=(t,r)=>{const{ownerState:a}=t;return[r.input,a.size==="small"&&r.inputSizeSmall,a.multiline&&r.inputMultiline,a.type==="search"&&r.inputTypeSearch,a.startAdornment&&r.inputAdornedStart,a.endAdornment&&r.inputAdornedEnd,a.hiddenLabel&&r.inputHiddenLabel]},dA=t=>{const{classes:r,color:a,disabled:c,error:p,endAdornment:m,focused:S,formControl:k,fullWidth:O,hiddenLabel:R,multiline:j,readOnly:$,size:I,startAdornment:F,type:z}=t,_={root:["root",`color${Re(a)}`,c&&"disabled",p&&"error",O&&"fullWidth",S&&"focused",k&&"formControl",I&&I!=="medium"&&`size${Re(I)}`,j&&"multiline",F&&"adornedStart",m&&"adornedEnd",R&&"hiddenLabel",$&&"readOnly"],input:["input",c&&"disabled",z==="search"&&"inputTypeSearch",j&&"inputMultiline",I==="small"&&"inputSizeSmall",R&&"inputHiddenLabel",F&&"inputAdornedStart",m&&"inputAdornedEnd",$&&"readOnly"]};return oi(_,uA,r)},oy=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ry})(hi(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${lp.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:a})=>r.multiline&&a==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),ay=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sy})(hi(({theme:t})=>{const r=t.palette.mode==="light",a={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},c={opacity:"0 !important"},p=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lp.formControl} &`]:{"&::-webkit-input-placeholder":c,"&::-moz-placeholder":c,"&::-ms-input-placeholder":c,"&:focus::-webkit-input-placeholder":p,"&:focus::-moz-placeholder":p,"&:focus::-ms-input-placeholder":p},[`&.${lp.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:m})=>!m.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:m})=>m.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),u0=eE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ly=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiInputBase"}),{"aria-describedby":p,autoComplete:m,autoFocus:S,className:k,color:O,components:R={},componentsProps:j={},defaultValue:$,disabled:I,disableInjectingGlobalStyles:F,endAdornment:z,error:_,fullWidth:J=!1,id:it,inputComponent:st="input",inputProps:ct={},inputRef:ht,margin:lt,maxRows:wt,minRows:at,multiline:_t=!1,name:Et,onBlur:ot,onChange:It,onClick:se,onFocus:re,onKeyDown:ie,onKeyUp:Kt,placeholder:zt,readOnly:ne,renderSuffix:te,rows:Dt,size:St,slotProps:jt={},slots:Se={},startAdornment:ke,type:ge="text",value:Pe,...we}=c,Ue=ct.value!=null?ct.value:Pe,{current:Ae}=W.useRef(Ue!=null),Ke=W.useRef(),Be=W.useCallback(Ci=>{},[]),_e=ir(Ke,ht,ct.ref,Be),[me,Ei]=W.useState(!1),di=Cd(),Ai=ah({props:c,muiFormControl:di,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ai.focused=di?di.focused:me,W.useEffect(()=>{!di&&I&&me&&(Ei(!1),ot&&ot())},[di,I,me,ot]);const Di=di&&di.onFilled,Ni=di&&di.onEmpty,bi=W.useCallback(Ci=>{$m(Ci)?Di&&Di():Ni&&Ni()},[Di,Ni]);Nc(()=>{Ae&&bi({value:Ue})},[Ue,bi,Ae]);const bn=Ci=>{re&&re(Ci),ct.onFocus&&ct.onFocus(Ci),di&&di.onFocus?di.onFocus(Ci):Ei(!0)},Zi=Ci=>{ot&&ot(Ci),ct.onBlur&&ct.onBlur(Ci),di&&di.onBlur?di.onBlur(Ci):Ei(!1)},qi=(Ci,...dn)=>{if(!Ae){const cr=Ci.target||Ke.current;if(cr==null)throw new Error(wu(1));bi({value:cr.value})}ct.onChange&&ct.onChange(Ci,...dn),It&&It(Ci,...dn)};W.useEffect(()=>{bi(Ke.current)},[]);const Ye=Ci=>{Ke.current&&Ci.currentTarget===Ci.target&&Ke.current.focus(),se&&se(Ci)};let sn=st,Vi=ct;_t&&sn==="input"&&(Dt?Vi={type:void 0,minRows:Dt,maxRows:Dt,...Vi}:Vi={type:void 0,maxRows:wt,minRows:at,...Vi},sn=lA);const Ri=Ci=>{bi(Ci.animationName==="mui-auto-fill-cancel"?Ke.current:{value:"x"})};W.useEffect(()=>{di&&di.setAdornedStart(!!ke)},[di,ke]);const lr={...c,color:Ai.color||"primary",disabled:Ai.disabled,endAdornment:z,error:Ai.error,focused:Ai.focused,formControl:di,fullWidth:J,hiddenLabel:Ai.hiddenLabel,multiline:_t,size:Ai.size,startAdornment:ke,type:ge},tn=dA(lr),Xi=Se.root||R.Root||oy,on=jt.root||j.root||{},In=Se.input||R.Input||ay;return Vi={...Vi,...jt.input??j.input},Y.jsxs(W.Fragment,{children:[!F&&typeof u0=="function"&&(c0||(c0=Y.jsx(u0,{}))),Y.jsxs(Xi,{...on,ref:a,onClick:Ye,...we,...!Wf(Xi)&&{ownerState:{...lr,...on.ownerState}},className:je(tn.root,on.className,k,ne&&"MuiInputBase-readOnly"),children:[ke,Y.jsx(kx.Provider,{value:null,children:Y.jsx(In,{"aria-invalid":Ai.error,"aria-describedby":p,autoComplete:m,autoFocus:S,defaultValue:$,disabled:Ai.disabled,id:it,onAnimationStart:Ri,name:Et,placeholder:zt,readOnly:ne,required:Ai.required,rows:Dt,value:Ue,onKeyDown:ie,onKeyUp:Kt,type:ge,...Vi,...!Wf(In)&&{as:sn,ownerState:{...lr,...Vi.ownerState}},ref:_e,className:je(tn.input,Vi.className,ne&&"MuiInputBase-readOnly"),onBlur:Zi,onChange:qi,onFocus:bn})}),z,te?te({...Ai,startAdornment:ke}):null]})]})});function hA(t){return si("MuiInput",t)}const Sf={...lp,...ci("MuiInput",["root","underline","input"])};function pA(t){return si("MuiOutlinedInput",t)}const Rc={...lp,...ci("MuiOutlinedInput",["root","notchedOutline","input"])};function fA(t){return si("MuiFilledInput",t)}const Kd={...lp,...ci("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},gA=vr(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mA=vr(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function yA(t){return si("MuiAvatar",t)}ci("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const bA=t=>{const{classes:r,variant:a,colorDefault:c}=t;return oi({root:["root",a,c&&"colorDefault"],img:["img"],fallback:["fallback"]},yA,r)},xA=xe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.variant],a.colorDefault&&r.colorDefault]}})(hi(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),vA=xe("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(t,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),SA=xe(mA,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(t,r)=>r.fallback})({width:"75%",height:"75%"});function wA({crossOrigin:t,referrerPolicy:r,src:a,srcSet:c}){const[p,m]=W.useState(!1);return W.useEffect(()=>{if(!a&&!c)return;m(!1);let S=!0;const k=new Image;return k.onload=()=>{S&&m("loaded")},k.onerror=()=>{S&&m("error")},k.crossOrigin=t,k.referrerPolicy=r,k.src=a,c&&(k.srcset=c),()=>{S=!1}},[t,r,a,c]),p}const CA=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiAvatar"}),{alt:p,children:m,className:S,component:k="div",slots:O={},slotProps:R={},imgProps:j,sizes:$,src:I,srcSet:F,variant:z="circular",..._}=c;let J=null;const it={...c,component:k,variant:z},st=wA({...j,...typeof R.img=="function"?R.img(it):R.img,src:I,srcSet:F}),ct=I||F,ht=ct&&st!=="error";it.colorDefault=!ht,delete it.ownerState;const lt=bA(it),[wt,at]=As("img",{className:lt.img,elementType:vA,externalForwardedProps:{slots:O,slotProps:{img:{...j,...R.img}}},additionalProps:{alt:p,src:I,srcSet:F,sizes:$},ownerState:it});return ht?J=Y.jsx(wt,{...at}):m||m===0?J=m:ct&&p?J=p[0]:J=Y.jsx(SA,{ownerState:it,className:lt.fallback}),Y.jsx(xA,{as:k,className:je(lt.root,S),ref:a,..._,ownerState:it,children:J})}),kA={entering:{opacity:1},entered:{opacity:1}},MA=W.forwardRef(function(r,a){const c=jc(),p={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{addEndListener:m,appear:S=!0,children:k,easing:O,in:R,onEnter:j,onEntered:$,onEntering:I,onExit:F,onExited:z,onExiting:_,style:J,timeout:it=p,TransitionComponent:st=nl,...ct}=r,ht=W.useRef(null),lt=ir(ht,fp(k),a),wt=ie=>Kt=>{if(ie){const zt=ht.current;Kt===void 0?ie(zt):ie(zt,Kt)}},at=wt(I),_t=wt((ie,Kt)=>{Cx(ie);const zt=Sd({style:J,timeout:it,easing:O},{mode:"enter"});ie.style.webkitTransition=c.transitions.create("opacity",zt),ie.style.transition=c.transitions.create("opacity",zt),j&&j(ie,Kt)}),Et=wt($),ot=wt(_),It=wt(ie=>{const Kt=Sd({style:J,timeout:it,easing:O},{mode:"exit"});ie.style.webkitTransition=c.transitions.create("opacity",Kt),ie.style.transition=c.transitions.create("opacity",Kt),F&&F(ie)}),se=wt(z),re=ie=>{m&&m(ht.current,ie)};return Y.jsx(st,{appear:S,in:R,nodeRef:ht,onEnter:_t,onEntered:Et,onEntering:at,onExit:It,onExited:se,onExiting:ot,addEndListener:re,timeout:it,...ct,children:(ie,{ownerState:Kt,...zt})=>W.cloneElement(k,{style:{opacity:0,visibility:ie==="exited"&&!R?"hidden":void 0,...kA[ie],...J,...k.props.style},ref:lt,...zt})})});function TA(t){return si("MuiBackdrop",t)}ci("MuiBackdrop",["root","invisible"]);const EA=t=>{const{classes:r,invisible:a}=t;return oi({root:["root",a&&"invisible"]},TA,r)},AA=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),RA=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiBackdrop"}),{children:p,className:m,component:S="div",invisible:k=!1,open:O,components:R={},componentsProps:j={},slotProps:$={},slots:I={},TransitionComponent:F,transitionDuration:z,..._}=c,J={...c,component:S,invisible:k},it=EA(J),st={transition:F,root:R.Root,...I},ct={...j,...$},ht={slots:st,slotProps:ct},[lt,wt]=As("root",{elementType:AA,externalForwardedProps:ht,className:je(it.root,m),ownerState:J}),[at,_t]=As("transition",{elementType:MA,externalForwardedProps:ht,ownerState:J});return Y.jsx(at,{in:O,timeout:z,..._,..._t,children:Y.jsx(lt,{"aria-hidden":!0,...wt,classes:it,ref:a,children:p})})});function OA(t){const{badgeContent:r,invisible:a=!1,max:c=99,showZero:p=!1}=t,m=z1({badgeContent:r,max:c});let S=a;a===!1&&r===0&&!p&&(S=!0);const{badgeContent:k,max:O=c}=S?m:t,R=k&&Number(k)>O?`${O}+`:k;return{badgeContent:k,invisible:S,max:O,displayValue:R}}function PA(t){return si("MuiBadge",t)}const pd=ci("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),rb=10,sb=4,BA=t=>{const{color:r,anchorOrigin:a,invisible:c,overlap:p,variant:m,classes:S={}}=t,k={root:["root"],badge:["badge",m,c&&"invisible",`anchorOrigin${Re(a.vertical)}${Re(a.horizontal)}`,`anchorOrigin${Re(a.vertical)}${Re(a.horizontal)}${Re(p)}`,`overlap${Re(p)}`,r!=="default"&&`color${Re(r)}`]};return oi(k,PA,S)},DA=xe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,r)=>r.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),LA=xe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.badge,r[a.variant],r[`anchorOrigin${Re(a.anchorOrigin.vertical)}${Re(a.anchorOrigin.horizontal)}${Re(a.overlap)}`],a.color!=="default"&&r[`color${Re(a.color)}`],a.invisible&&r.invisible]}})(hi(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:rb*2,lineHeight:1,padding:"0 6px",height:rb*2,borderRadius:rb,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(Gr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText}})),{props:{variant:"dot"},style:{borderRadius:sb,height:sb*2,minWidth:sb*2,padding:0}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]})));function d0(t){return{vertical:(t==null?void 0:t.vertical)??"top",horizontal:(t==null?void 0:t.horizontal)??"right"}}const IA=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiBadge"}),{anchorOrigin:p,className:m,classes:S,component:k,components:O={},componentsProps:R={},children:j,overlap:$="rectangular",color:I="default",invisible:F=!1,max:z=99,badgeContent:_,slots:J,slotProps:it,showZero:st=!1,variant:ct="standard",...ht}=c,{badgeContent:lt,invisible:wt,max:at,displayValue:_t}=OA({max:z,invisible:F,badgeContent:_,showZero:st}),Et=z1({anchorOrigin:d0(p),color:I,overlap:$,variant:ct,badgeContent:_}),ot=wt||lt==null&&ct!=="dot",{color:It=I,overlap:se=$,anchorOrigin:re,variant:ie=ct}=ot?Et:c,Kt=d0(re),zt=ie!=="dot"?_t:void 0,ne={...c,badgeContent:lt,invisible:ot,max:at,displayValue:zt,showZero:st,anchorOrigin:Kt,color:It,overlap:se,variant:ie},te=BA(ne),Dt=(J==null?void 0:J.root)??O.Root??DA,St=(J==null?void 0:J.badge)??O.Badge??LA,jt=(it==null?void 0:it.root)??R.root,Se=(it==null?void 0:it.badge)??R.badge,ke=$l({elementType:Dt,externalSlotProps:jt,externalForwardedProps:ht,additionalProps:{ref:a,as:k},ownerState:ne,className:je(jt==null?void 0:jt.className,te.root,m)}),ge=$l({elementType:St,externalSlotProps:Se,ownerState:ne,className:je(te.badge,Se==null?void 0:Se.className)});return Y.jsxs(Dt,{...ke,children:[j,Y.jsx(St,{...ge,children:zt})]})}),NA=ci("MuiBox",["root"]),zA=iy(),Ln=yM({themeId:Hl,defaultTheme:zA,defaultClassName:NA.root,generateClassName:A1.generate}),jA=vr(Y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),$A=xe(mp)(hi(({theme:t})=>({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`,...t.palette.mode==="light"?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...t.palette.mode==="light"?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}},"&:active":{boxShadow:t.shadows[0],...t.palette.mode==="light"?{backgroundColor:Mb(t.palette.grey[200],.12)}:{backgroundColor:Mb(t.palette.grey[600],.12)}}}))),HA=xe(jA)({width:24,height:16});function UA(t){const{slots:r={},slotProps:a={},...c}=t,p=t;return Y.jsx("li",{children:Y.jsx($A,{focusRipple:!0,...c,ownerState:p,children:Y.jsx(HA,{as:r.CollapsedIcon,ownerState:p,...a.collapsedIcon})})})}function FA(t){return si("MuiBreadcrumbs",t)}const GA=ci("MuiBreadcrumbs",["root","ol","li","separator"]),_A=t=>{const{classes:r}=t;return oi({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},FA,r)},WA=xe(Un,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,r)=>[{[`& .${GA.li}`]:r.li},r.root]})({}),VA=xe("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,r)=>r.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),XA=xe("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,r)=>r.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function YA(t,r,a,c){return t.reduce((p,m,S)=>(S<t.length-1?p=p.concat(m,Y.jsx(XA,{"aria-hidden":!0,className:r,ownerState:c,children:a},`separator-${S}`)):p.push(m),p),[])}const qA=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiBreadcrumbs"}),{children:p,className:m,component:S="nav",slots:k={},slotProps:O={},expandText:R="Show path",itemsAfterCollapse:j=1,itemsBeforeCollapse:$=1,maxItems:I=8,separator:F="/",...z}=c,[_,J]=W.useState(!1),it={...c,component:S,expanded:_,expandText:R,itemsAfterCollapse:j,itemsBeforeCollapse:$,maxItems:I,separator:F},st=_A(it),ct=$l({elementType:k.CollapsedIcon,externalSlotProps:O.collapsedIcon,ownerState:it}),ht=W.useRef(null),lt=at=>{const _t=()=>{J(!0);const Et=ht.current.querySelector("a[href],button,[tabindex]");Et&&Et.focus()};return $+j>=at.length?at:[...at.slice(0,$),Y.jsx(UA,{"aria-label":R,slots:{CollapsedIcon:k.CollapsedIcon},slotProps:{collapsedIcon:ct},onClick:_t},"ellipsis"),...at.slice(at.length-j,at.length)]},wt=W.Children.toArray(p).filter(at=>W.isValidElement(at)).map((at,_t)=>Y.jsx("li",{className:st.li,children:at},`child-${_t}`));return Y.jsx(WA,{ref:a,component:S,color:"textSecondary",className:je(st.root,m),ownerState:it,...z,children:Y.jsx(VA,{className:st.ol,ref:ht,ownerState:it,children:YA(_||I&&wt.length<=I?wt:lt(wt),st.separator,F,it)})})});function KA(t){return si("MuiButton",t)}const Zd=ci("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ZA=W.createContext({}),QA=W.createContext(void 0),JA=t=>{const{color:r,disableElevation:a,fullWidth:c,size:p,variant:m,loading:S,loadingPosition:k,classes:O}=t,R={root:["root",S&&"loading",m,`${m}${Re(r)}`,`size${Re(p)}`,`${m}Size${Re(p)}`,`color${Re(r)}`,a&&"disableElevation",c&&"fullWidth",S&&`loadingPosition${Re(k)}`],startIcon:["icon","startIcon",`iconSize${Re(p)}`],endIcon:["icon","endIcon",`iconSize${Re(p)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},j=oi(R,KA,O);return{...O,...j}},iS=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],t2=xe(mp,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.variant],r[`${a.variant}${Re(a.color)}`],r[`size${Re(a.size)}`],r[`${a.variant}Size${Re(a.size)}`],a.color==="inherit"&&r.colorInherit,a.disableElevation&&r.disableElevation,a.fullWidth&&r.fullWidth,a.loading&&r.loading]}})(hi(({theme:t})=>{const r=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],a=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Zd.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Zd.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Zd.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Zd.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Gr()).map(([c])=>({props:{color:c},style:{"--variant-textColor":(t.vars||t).palette[c].main,"--variant-outlinedColor":(t.vars||t).palette[c].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[c].mainChannel} / 0.5)`:Yi(t.palette[c].main,.5),"--variant-containedColor":(t.vars||t).palette[c].contrastText,"--variant-containedBg":(t.vars||t).palette[c].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[c].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[c].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette[c].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[c].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[c].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette[c].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Zd.loading}`]:{color:"transparent"}}}]}})),e2=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.startIcon,a.loading&&r.startIconLoadingStart,r[`iconSize${Re(a.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...iS]})),i2=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.endIcon,a.loading&&r.endIconLoadingEnd,r[`iconSize${Re(a.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...iS]})),n2=xe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,r)=>r.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),h0=xe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,r)=>r.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),nS=W.forwardRef(function(r,a){const c=W.useContext(ZA),p=W.useContext(QA),m=Gf(c,r),S=gi({props:m,name:"MuiButton"}),{children:k,color:O="primary",component:R="button",className:j,disabled:$=!1,disableElevation:I=!1,disableFocusRipple:F=!1,endIcon:z,focusVisibleClassName:_,fullWidth:J=!1,id:it,loading:st=null,loadingIndicator:ct,loadingPosition:ht="center",size:lt="medium",startIcon:wt,type:at,variant:_t="text",...Et}=S,ot=_f(it),It=ct??Y.jsx(eS,{"aria-labelledby":ot,color:"inherit",size:16}),se={...S,color:O,component:R,disabled:$,disableElevation:I,disableFocusRipple:F,fullWidth:J,loading:st,loadingIndicator:It,loadingPosition:ht,size:lt,type:at,variant:_t},re=JA(se),ie=(wt||st&&ht==="start")&&Y.jsx(e2,{className:re.startIcon,ownerState:se,children:wt||Y.jsx(h0,{className:re.loadingIconPlaceholder,ownerState:se})}),Kt=(z||st&&ht==="end")&&Y.jsx(i2,{className:re.endIcon,ownerState:se,children:z||Y.jsx(h0,{className:re.loadingIconPlaceholder,ownerState:se})}),zt=p||"",ne=typeof st=="boolean"?Y.jsx("span",{className:re.loadingWrapper,style:{display:"contents"},children:st&&Y.jsx(n2,{className:re.loadingIndicator,ownerState:se,children:It})}):null;return Y.jsxs(t2,{ownerState:se,className:je(c.className,re.root,j,zt),component:R,disabled:$||st,focusRipple:!F,focusVisibleClassName:je(re.focusVisible,_),ref:a,type:at,id:ot,...Et,classes:re,children:[ie,ht!=="end"&&ne,k,ht==="end"&&ne,Kt]})});function r2(t){return si("MuiCard",t)}ci("MuiCard",["root"]);const s2=t=>{const{classes:r}=t;return oi({root:["root"]},r2,r)},o2=xe(ng,{name:"MuiCard",slot:"Root",overridesResolver:(t,r)=>r.root})({overflow:"hidden"}),a2=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiCard"}),{className:p,raised:m=!1,...S}=c,k={...c,raised:m},O=s2(k);return Y.jsx(o2,{className:je(O.root,p),elevation:m?8:void 0,ref:a,ownerState:k,...S})});function l2(t){return si("MuiCardContent",t)}ci("MuiCardContent",["root"]);const c2=t=>{const{classes:r}=t;return oi({root:["root"]},l2,r)},u2=xe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,r)=>r.root})({padding:16,"&:last-child":{paddingBottom:24}}),d2=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiCardContent"}),{className:p,component:m="div",...S}=c,k={...c,component:m},O=c2(k);return Y.jsx(u2,{as:m,className:je(O.root,p),ownerState:k,ref:a,...S})});function h2(t){return si("PrivateSwitchBase",t)}ci("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const p2=t=>{const{classes:r,checked:a,disabled:c,edge:p}=t,m={root:["root",a&&"checked",c&&"disabled",p&&`edge${Re(p)}`],input:["input"]};return oi(m,h2,r)},f2=xe(mp)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:r})=>t==="start"&&r.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:r})=>t==="end"&&r.size!=="small",style:{marginRight:-12}}]}),g2=xe("input",{shouldForwardProp:Ys})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rS=W.forwardRef(function(r,a){const{autoFocus:c,checked:p,checkedIcon:m,className:S,defaultChecked:k,disabled:O,disableFocusRipple:R=!1,edge:j=!1,icon:$,id:I,inputProps:F,inputRef:z,name:_,onBlur:J,onChange:it,onFocus:st,readOnly:ct,required:ht=!1,tabIndex:lt,type:wt,value:at,..._t}=r,[Et,ot]=Eb({controlled:p,default:!!k,name:"SwitchBase",state:"checked"}),It=Cd(),se=Dt=>{st&&st(Dt),It&&It.onFocus&&It.onFocus(Dt)},re=Dt=>{J&&J(Dt),It&&It.onBlur&&It.onBlur(Dt)},ie=Dt=>{if(Dt.nativeEvent.defaultPrevented)return;const St=Dt.target.checked;ot(St),it&&it(Dt,St)};let Kt=O;It&&typeof Kt>"u"&&(Kt=It.disabled);const zt=wt==="checkbox"||wt==="radio",ne={...r,checked:Et,disabled:Kt,disableFocusRipple:R,edge:j},te=p2(ne);return Y.jsxs(f2,{component:"span",className:je(te.root,S),centerRipple:!0,focusRipple:!R,disabled:Kt,tabIndex:null,role:void 0,onFocus:se,onBlur:re,ownerState:ne,ref:a,..._t,children:[Y.jsx(g2,{autoFocus:c,checked:p,defaultChecked:k,className:te.input,disabled:Kt,id:zt?I:void 0,name:_,onChange:ie,readOnly:ct,ref:z,required:ht,ownerState:ne,tabIndex:lt,type:wt,...wt==="checkbox"&&at===void 0?{}:{value:at},...F}),Et?m:$]})}),m2=vr(Y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),y2=vr(Y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),b2=vr(Y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function x2(t){return si("MuiCheckbox",t)}const ob=ci("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),v2=t=>{const{classes:r,indeterminate:a,color:c,size:p}=t,m={root:["root",a&&"indeterminate",`color${Re(c)}`,`size${Re(p)}`]},S=oi(m,x2,r);return{...r,...S}},S2=xe(rS,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.indeterminate&&r.indeterminate,r[`size${Re(a.size)}`],a.color!=="default"&&r[`color${Re(a.color)}`]]}})(hi(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette[r].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{[`&.${ob.checked}, &.${ob.indeterminate}`]:{color:(t.vars||t).palette[r].main},[`&.${ob.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),w2=Y.jsx(y2,{}),C2=Y.jsx(m2,{}),k2=Y.jsx(b2,{}),zb=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiCheckbox"}),{checkedIcon:p=w2,color:m="primary",icon:S=C2,indeterminate:k=!1,indeterminateIcon:O=k2,inputProps:R,size:j="medium",disableRipple:$=!1,className:I,...F}=c,z=k?O:S,_=k?O:p,J={...c,disableRipple:$,color:m,indeterminate:k,size:j},it=v2(J);return Y.jsx(S2,{type:"checkbox",inputProps:{"data-indeterminate":k,...R},icon:W.cloneElement(z,{fontSize:z.props.fontSize??j}),checkedIcon:W.cloneElement(_,{fontSize:_.props.fontSize??j}),ownerState:J,ref:a,className:je(it.root,I),disableRipple:$,...F,classes:it})}),yp=oT({createStyledComponent:xe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[`maxWidth${Re(String(a.maxWidth))}`],a.fixed&&r.fixed,a.disableGutters&&r.disableGutters]}}),useThemeProps:t=>gi({props:t,name:"MuiContainer"})});function M2(t){const r=el(t);return r.body===t?Fl(t).innerWidth>r.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Nf(t,r){r?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function p0(t){return parseInt(Fl(t).getComputedStyle(t).paddingRight,10)||0}function T2(t){const a=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),c=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return a||c}function f0(t,r,a,c,p){const m=[r,a,...c];[].forEach.call(t.children,S=>{const k=!m.includes(S),O=!T2(S);k&&O&&Nf(S,p)})}function ab(t,r){let a=-1;return t.some((c,p)=>r(c)?(a=p,!0):!1),a}function E2(t,r){const a=[],c=t.container;if(!r.disableScrollLock){if(M2(c)){const S=N1(Fl(c));a.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${p0(c)+S}px`;const k=el(c).querySelectorAll(".mui-fixed");[].forEach.call(k,O=>{a.push({value:O.style.paddingRight,property:"padding-right",el:O}),O.style.paddingRight=`${p0(O)+S}px`})}let m;if(c.parentNode instanceof DocumentFragment)m=el(c).body;else{const S=c.parentElement,k=Fl(c);m=(S==null?void 0:S.nodeName)==="HTML"&&k.getComputedStyle(S).overflowY==="scroll"?S:c}a.push({value:m.style.overflow,property:"overflow",el:m},{value:m.style.overflowX,property:"overflow-x",el:m},{value:m.style.overflowY,property:"overflow-y",el:m}),m.style.overflow="hidden"}return()=>{a.forEach(({value:m,el:S,property:k})=>{m?S.style.setProperty(k,m):S.style.removeProperty(k)})}}function A2(t){const r=[];return[].forEach.call(t.children,a=>{a.getAttribute("aria-hidden")==="true"&&r.push(a)}),r}class R2{constructor(){this.modals=[],this.containers=[]}add(r,a){let c=this.modals.indexOf(r);if(c!==-1)return c;c=this.modals.length,this.modals.push(r),r.modalRef&&Nf(r.modalRef,!1);const p=A2(a);f0(a,r.mount,r.modalRef,p,!0);const m=ab(this.containers,S=>S.container===a);return m!==-1?(this.containers[m].modals.push(r),c):(this.containers.push({modals:[r],container:a,restore:null,hiddenSiblings:p}),c)}mount(r,a){const c=ab(this.containers,m=>m.modals.includes(r)),p=this.containers[c];p.restore||(p.restore=E2(p,a))}remove(r,a=!0){const c=this.modals.indexOf(r);if(c===-1)return c;const p=ab(this.containers,S=>S.modals.includes(r)),m=this.containers[p];if(m.modals.splice(m.modals.indexOf(r),1),this.modals.splice(c,1),m.modals.length===0)m.restore&&m.restore(),r.modalRef&&Nf(r.modalRef,a),f0(m.container,r.mount,r.modalRef,m.hiddenSiblings,!1),this.containers.splice(p,1);else{const S=m.modals[m.modals.length-1];S.modalRef&&Nf(S.modalRef,!1)}return c}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const O2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function P2(t){const r=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(r)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:r}function B2(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const r=c=>t.ownerDocument.querySelector(`input[type="radio"]${c}`);let a=r(`[name="${t.name}"]:checked`);return a||(a=r(`[name="${t.name}"]`)),a!==t}function D2(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||B2(t))}function L2(t){const r=[],a=[];return Array.from(t.querySelectorAll(O2)).forEach((c,p)=>{const m=P2(c);m===-1||!D2(c)||(m===0?r.push(c):a.push({documentOrder:p,tabIndex:m,node:c}))}),a.sort((c,p)=>c.tabIndex===p.tabIndex?c.documentOrder-p.documentOrder:c.tabIndex-p.tabIndex).map(c=>c.node).concat(r)}function I2(){return!0}function N2(t){const{children:r,disableAutoFocus:a=!1,disableEnforceFocus:c=!1,disableRestoreFocus:p=!1,getTabbable:m=L2,isEnabled:S=I2,open:k}=t,O=W.useRef(!1),R=W.useRef(null),j=W.useRef(null),$=W.useRef(null),I=W.useRef(null),F=W.useRef(!1),z=W.useRef(null),_=ir(fp(r),z),J=W.useRef(null);W.useEffect(()=>{!k||!z.current||(F.current=!a)},[a,k]),W.useEffect(()=>{if(!k||!z.current)return;const ct=el(z.current);return z.current.contains(ct.activeElement)||(z.current.hasAttribute("tabIndex")||z.current.setAttribute("tabIndex","-1"),F.current&&z.current.focus()),()=>{p||($.current&&$.current.focus&&(O.current=!0,$.current.focus()),$.current=null)}},[k]),W.useEffect(()=>{if(!k||!z.current)return;const ct=el(z.current),ht=at=>{J.current=at,!(c||!S()||at.key!=="Tab")&&ct.activeElement===z.current&&at.shiftKey&&(O.current=!0,j.current&&j.current.focus())},lt=()=>{var Et,ot;const at=z.current;if(at===null)return;if(!ct.hasFocus()||!S()||O.current){O.current=!1;return}if(at.contains(ct.activeElement)||c&&ct.activeElement!==R.current&&ct.activeElement!==j.current)return;if(ct.activeElement!==I.current)I.current=null;else if(I.current!==null)return;if(!F.current)return;let _t=[];if((ct.activeElement===R.current||ct.activeElement===j.current)&&(_t=m(z.current)),_t.length>0){const It=!!((Et=J.current)!=null&&Et.shiftKey&&((ot=J.current)==null?void 0:ot.key)==="Tab"),se=_t[0],re=_t[_t.length-1];typeof se!="string"&&typeof re!="string"&&(It?re.focus():se.focus())}else at.focus()};ct.addEventListener("focusin",lt),ct.addEventListener("keydown",ht,!0);const wt=setInterval(()=>{ct.activeElement&&ct.activeElement.tagName==="BODY"&<()},50);return()=>{clearInterval(wt),ct.removeEventListener("focusin",lt),ct.removeEventListener("keydown",ht,!0)}},[a,c,p,S,k,m]);const it=ct=>{$.current===null&&($.current=ct.relatedTarget),F.current=!0,I.current=ct.target;const ht=r.props.onFocus;ht&&ht(ct)},st=ct=>{$.current===null&&($.current=ct.relatedTarget),F.current=!0};return Y.jsxs(W.Fragment,{children:[Y.jsx("div",{tabIndex:k?0:-1,onFocus:st,ref:R,"data-testid":"sentinelStart"}),W.cloneElement(r,{ref:_,onFocus:it}),Y.jsx("div",{tabIndex:k?0:-1,onFocus:st,ref:j,"data-testid":"sentinelEnd"})]})}function z2(t){return typeof t=="function"?t():t}function j2(t){return t?t.props.hasOwnProperty("in"):!1}const g0=()=>{},fm=new R2;function $2(t){const{container:r,disableEscapeKeyDown:a=!1,disableScrollLock:c=!1,closeAfterTransition:p=!1,onTransitionEnter:m,onTransitionExited:S,children:k,onClose:O,open:R,rootRef:j}=t,$=W.useRef({}),I=W.useRef(null),F=W.useRef(null),z=ir(F,j),[_,J]=W.useState(!R),it=j2(k);let st=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(st=!1);const ct=()=>el(I.current),ht=()=>($.current.modalRef=F.current,$.current.mount=I.current,$.current),lt=()=>{fm.mount(ht(),{disableScrollLock:c}),F.current&&(F.current.scrollTop=0)},wt=tl(()=>{const Kt=z2(r)||ct().body;fm.add(ht(),Kt),F.current&<()}),at=()=>fm.isTopModal(ht()),_t=tl(Kt=>{I.current=Kt,Kt&&(R&&at()?lt():F.current&&Nf(F.current,st))}),Et=W.useCallback(()=>{fm.remove(ht(),st)},[st]);W.useEffect(()=>()=>{Et()},[Et]),W.useEffect(()=>{R?wt():(!it||!p)&&Et()},[R,Et,it,p,wt]);const ot=Kt=>zt=>{var ne;(ne=Kt.onKeyDown)==null||ne.call(Kt,zt),!(zt.key!=="Escape"||zt.which===229||!at())&&(a||(zt.stopPropagation(),O&&O(zt,"escapeKeyDown")))},It=Kt=>zt=>{var ne;(ne=Kt.onClick)==null||ne.call(Kt,zt),zt.target===zt.currentTarget&&O&&O(zt,"backdropClick")};return{getRootProps:(Kt={})=>{const zt=Im(t);delete zt.onTransitionEnter,delete zt.onTransitionExited;const ne={...zt,...Kt};return{role:"presentation",...ne,onKeyDown:ot(ne),ref:z}},getBackdropProps:(Kt={})=>{const zt=Kt;return{"aria-hidden":!0,...zt,onClick:It(zt),open:R}},getTransitionProps:()=>{const Kt=()=>{J(!1),m&&m()},zt=()=>{J(!0),S&&S(),p&&Et()};return{onEnter:$v(Kt,(k==null?void 0:k.props.onEnter)??g0),onExited:$v(zt,(k==null?void 0:k.props.onExited)??g0)}},rootRef:z,portalRef:_t,isTopModal:at,exited:_,hasTransition:it}}function H2(t){return si("MuiModal",t)}ci("MuiModal",["root","hidden","backdrop"]);const U2=t=>{const{open:r,exited:a,classes:c}=t;return oi({root:["root",!r&&a&&"hidden"],backdrop:["backdrop"]},H2,c)},F2=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,!a.open&&a.exited&&r.hidden]}})(hi(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),G2=xe(RA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,r)=>r.backdrop})({zIndex:-1}),sS=W.forwardRef(function(r,a){const c=gi({name:"MuiModal",props:r}),{BackdropComponent:p=G2,BackdropProps:m,classes:S,className:k,closeAfterTransition:O=!1,children:R,container:j,component:$,components:I={},componentsProps:F={},disableAutoFocus:z=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:J=!1,disablePortal:it=!1,disableRestoreFocus:st=!1,disableScrollLock:ct=!1,hideBackdrop:ht=!1,keepMounted:lt=!1,onBackdropClick:wt,onClose:at,onTransitionEnter:_t,onTransitionExited:Et,open:ot,slotProps:It={},slots:se={},theme:re,...ie}=c,Kt={...c,closeAfterTransition:O,disableAutoFocus:z,disableEnforceFocus:_,disableEscapeKeyDown:J,disablePortal:it,disableRestoreFocus:st,disableScrollLock:ct,hideBackdrop:ht,keepMounted:lt},{getRootProps:zt,getBackdropProps:ne,getTransitionProps:te,portalRef:Dt,isTopModal:St,exited:jt,hasTransition:Se}=$2({...Kt,rootRef:a}),ke={...Kt,exited:jt},ge=U2(ke),Pe={};if(R.props.tabIndex===void 0&&(Pe.tabIndex="-1"),Se){const{onEnter:me,onExited:Ei}=te();Pe.onEnter=me,Pe.onExited=Ei}const we={...ie,slots:{root:I.Root,backdrop:I.Backdrop,...se},slotProps:{...F,...It}},[Ue,Ae]=As("root",{elementType:F2,externalForwardedProps:we,getSlotProps:zt,additionalProps:{ref:a,as:$},ownerState:ke,className:je(k,ge==null?void 0:ge.root,!ke.open&&ke.exited&&(ge==null?void 0:ge.hidden))}),[Ke,Be]=As("backdrop",{elementType:p,externalForwardedProps:we,additionalProps:m,getSlotProps:me=>ne({...me,onClick:Ei=>{wt&&wt(Ei),me!=null&&me.onClick&&me.onClick(Ei)}}),className:je(m==null?void 0:m.className,ge==null?void 0:ge.backdrop),ownerState:ke}),_e=ir(m==null?void 0:m.ref,Be.ref);return!lt&&!ot&&(!Se||jt)?null:Y.jsx(rA,{ref:Dt,container:j,disablePortal:it,children:Y.jsxs(Ue,{...Ae,children:[!ht&&p?Y.jsx(Ke,{...Be,ref:_e}):null,Y.jsx(N2,{disableEnforceFocus:_,disableAutoFocus:z,disableRestoreFocus:st,isEnabled:St,open:ot,children:W.cloneElement(R,Pe)})]})})});function _2(t){return si("MuiDivider",t)}const m0=ci("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),W2=t=>{const{absolute:r,children:a,classes:c,flexItem:p,light:m,orientation:S,textAlign:k,variant:O}=t;return oi({root:["root",r&&"absolute",O,m&&"light",S==="vertical"&&"vertical",p&&"flexItem",a&&"withChildren",a&&S==="vertical"&&"withChildrenVertical",k==="right"&&S!=="vertical"&&"textAlignRight",k==="left"&&S!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",S==="vertical"&&"wrapperVertical"]},_2,c)},V2=xe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.absolute&&r.absolute,r[a.variant],a.light&&r.light,a.orientation==="vertical"&&r.vertical,a.flexItem&&r.flexItem,a.children&&r.withChildren,a.children&&a.orientation==="vertical"&&r.withChildrenVertical,a.textAlign==="right"&&a.orientation!=="vertical"&&r.textAlignRight,a.textAlign==="left"&&a.orientation!=="vertical"&&r.textAlignLeft]}})(hi(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Yi(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:r})=>!!r.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:r})=>r.children&&r.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:r})=>r.orientation==="vertical"&&r.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:r})=>r.textAlign==="right"&&r.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:r})=>r.textAlign==="left"&&r.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),X2=xe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.wrapper,a.orientation==="vertical"&&r.wrapperVertical]}})(hi(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),xu=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiDivider"}),{absolute:p=!1,children:m,className:S,orientation:k="horizontal",component:O=m||k==="vertical"?"div":"hr",flexItem:R=!1,light:j=!1,role:$=O!=="hr"?"separator":void 0,textAlign:I="center",variant:F="fullWidth",...z}=c,_={...c,absolute:p,component:O,flexItem:R,light:j,orientation:k,role:$,textAlign:I,variant:F},J=W2(_);return Y.jsx(V2,{as:O,className:je(J.root,S),role:$,ref:a,ownerState:_,"aria-orientation":$==="separator"&&(O!=="hr"||k==="vertical")?k:void 0,...z,children:m?Y.jsx(X2,{className:J.wrapper,ownerState:_,children:m}):null})});xu&&(xu.muiSkipListHighlight=!0);function Y2(t,r,a){const c=r.getBoundingClientRect(),p=a&&a.getBoundingClientRect(),m=Fl(r);let S;if(r.fakeTransform)S=r.fakeTransform;else{const R=m.getComputedStyle(r);S=R.getPropertyValue("-webkit-transform")||R.getPropertyValue("transform")}let k=0,O=0;if(S&&S!=="none"&&typeof S=="string"){const R=S.split("(")[1].split(")")[0].split(",");k=parseInt(R[4],10),O=parseInt(R[5],10)}return t==="left"?p?`translateX(${p.right+k-c.left}px)`:`translateX(${m.innerWidth+k-c.left}px)`:t==="right"?p?`translateX(-${c.right-p.left-k}px)`:`translateX(-${c.left+c.width-k}px)`:t==="up"?p?`translateY(${p.bottom+O-c.top}px)`:`translateY(${m.innerHeight+O-c.top}px)`:p?`translateY(-${c.top-p.top+c.height-O}px)`:`translateY(-${c.top+c.height-O}px)`}function q2(t){return typeof t=="function"?t():t}function gm(t,r,a){const c=q2(a),p=Y2(t,r,c);p&&(r.style.webkitTransform=p,r.style.transform=p)}const K2=W.forwardRef(function(r,a){const c=jc(),p={enter:c.transitions.easing.easeOut,exit:c.transitions.easing.sharp},m={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{addEndListener:S,appear:k=!0,children:O,container:R,direction:j="down",easing:$=p,in:I,onEnter:F,onEntered:z,onEntering:_,onExit:J,onExited:it,onExiting:st,style:ct,timeout:ht=m,TransitionComponent:lt=nl,...wt}=r,at=W.useRef(null),_t=ir(fp(O),at,a),Et=te=>Dt=>{te&&(Dt===void 0?te(at.current):te(at.current,Dt))},ot=Et((te,Dt)=>{gm(j,te,R),Cx(te),F&&F(te,Dt)}),It=Et((te,Dt)=>{const St=Sd({timeout:ht,style:ct,easing:$},{mode:"enter"});te.style.webkitTransition=c.transitions.create("-webkit-transform",{...St}),te.style.transition=c.transitions.create("transform",{...St}),te.style.webkitTransform="none",te.style.transform="none",_&&_(te,Dt)}),se=Et(z),re=Et(st),ie=Et(te=>{const Dt=Sd({timeout:ht,style:ct,easing:$},{mode:"exit"});te.style.webkitTransition=c.transitions.create("-webkit-transform",Dt),te.style.transition=c.transitions.create("transform",Dt),gm(j,te,R),J&&J(te)}),Kt=Et(te=>{te.style.webkitTransition="",te.style.transition="",it&&it(te)}),zt=te=>{S&&S(at.current,te)},ne=W.useCallback(()=>{at.current&&gm(j,at.current,R)},[j,R]);return W.useEffect(()=>{if(I||j==="down"||j==="right")return;const te=fx(()=>{at.current&&gm(j,at.current,R)}),Dt=Fl(at.current);return Dt.addEventListener("resize",te),()=>{te.clear(),Dt.removeEventListener("resize",te)}},[j,I,R]),W.useEffect(()=>{I||ne()},[I,ne]),Y.jsx(lt,{nodeRef:at,onEnter:ot,onEntered:se,onEntering:It,onExit:ie,onExited:Kt,onExiting:re,addEndListener:zt,appear:k,in:I,timeout:ht,...wt,children:(te,{ownerState:Dt,...St})=>W.cloneElement(O,{ref:_t,style:{visibility:te==="exited"&&!I?"hidden":void 0,...ct,...O.props.style},...St})})});function Z2(t){return si("MuiDrawer",t)}ci("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const oS=(t,r)=>{const{ownerState:a}=t;return[r.root,(a.variant==="permanent"||a.variant==="persistent")&&r.docked,r.modal]},Q2=t=>{const{classes:r,anchor:a,variant:c}=t,p={root:["root",`anchor${Re(a)}`],docked:[(c==="permanent"||c==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Re(a)}`,c!=="temporary"&&`paperAnchorDocked${Re(a)}`]};return oi(p,Z2,r)},J2=xe(sS,{name:"MuiDrawer",slot:"Root",overridesResolver:oS})(hi(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),y0=xe("div",{shouldForwardProp:Ys,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:oS})({flex:"0 0 auto"}),tR=xe(ng,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.paper,r[`paperAnchor${Re(a.anchor)}`],a.variant!=="temporary"&&r[`paperAnchorDocked${Re(a.anchor)}`]]}})(hi(({theme:t})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:r})=>r.anchor==="left"&&r.variant!=="temporary",style:{borderRight:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="top"&&r.variant!=="temporary",style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="right"&&r.variant!=="temporary",style:{borderLeft:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="bottom"&&r.variant!=="temporary",style:{borderTop:`1px solid ${(t.vars||t).palette.divider}`}}]}))),aS={left:"right",right:"left",top:"down",bottom:"up"};function eR(t){return["left","right"].includes(t)}function iR({direction:t},r){return t==="rtl"&&eR(r)?aS[r]:r}const lS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiDrawer"}),p=jc(),m=ig(),S={enter:p.transitions.duration.enteringScreen,exit:p.transitions.duration.leavingScreen},{anchor:k="left",BackdropProps:O,children:R,className:j,elevation:$=16,hideBackdrop:I=!1,ModalProps:{BackdropProps:F,...z}={},onClose:_,open:J=!1,PaperProps:it={},SlideProps:st,TransitionComponent:ct=K2,transitionDuration:ht=S,variant:lt="temporary",...wt}=c,at=W.useRef(!1);W.useEffect(()=>{at.current=!0},[]);const _t=iR({direction:m?"rtl":"ltr"},k),ot={...c,anchor:k,elevation:$,open:J,variant:lt,...wt},It=Q2(ot),se=Y.jsx(tR,{elevation:lt==="temporary"?$:0,square:!0,...it,className:je(It.paper,it.className),ownerState:ot,children:R});if(lt==="permanent")return Y.jsx(y0,{className:je(It.root,It.docked,j),ownerState:ot,ref:a,...wt,children:se});const re=Y.jsx(ct,{in:J,direction:aS[_t],timeout:ht,appear:at.current,...st,children:se});return lt==="persistent"?Y.jsx(y0,{className:je(It.root,It.docked,j),ownerState:ot,ref:a,...wt,children:re}):Y.jsx(J2,{BackdropProps:{...O,...F,transitionDuration:ht},className:je(It.root,It.modal,j),open:J,ownerState:ot,onClose:_,hideBackdrop:I,ref:a,...wt,...z,children:re})}),nR=t=>{const{classes:r,disableUnderline:a,startAdornment:c,endAdornment:p,size:m,hiddenLabel:S,multiline:k}=t,O={root:["root",!a&&"underline",c&&"adornedStart",p&&"adornedEnd",m==="small"&&`size${Re(m)}`,S&&"hiddenLabel",k&&"multiline"],input:["input"]},R=oi(O,fA,r);return{...r,...R}},rR=xe(oy,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[...ry(t,r),!a.disableUnderline&&r.underline]}})(hi(({theme:t})=>{const r=t.palette.mode==="light",a=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",p=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",m=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:p,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:c}},[`&.${Kd.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:c},[`&.${Kd.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:m},variants:[{props:({ownerState:S})=>!S.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Kd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kd.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Kd.disabled}, .${Kd.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Kd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Gr()).map(([S])=>{var k;return{props:{disableUnderline:!1,color:S},style:{"&::after":{borderBottom:`2px solid ${(k=(t.vars||t).palette[S])==null?void 0:k.main}`}}}}),{props:({ownerState:S})=>S.startAdornment,style:{paddingLeft:12}},{props:({ownerState:S})=>S.endAdornment,style:{paddingRight:12}},{props:({ownerState:S})=>S.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:S,size:k})=>S.multiline&&k==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:S})=>S.multiline&&S.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:S})=>S.multiline&&S.hiddenLabel&&S.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),sR=xe(ay,{name:"MuiFilledInput",slot:"Input",overridesResolver:sy})(hi(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:r})=>r.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}},{props:({ownerState:r})=>r.hiddenLabel&&r.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:r})=>r.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),cS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiFilledInput"}),{disableUnderline:p=!1,components:m={},componentsProps:S,fullWidth:k=!1,hiddenLabel:O,inputComponent:R="input",multiline:j=!1,slotProps:$,slots:I={},type:F="text",...z}=c,_={...c,disableUnderline:p,fullWidth:k,inputComponent:R,multiline:j,type:F},J=nR(c),it={root:{ownerState:_},input:{ownerState:_}},st=$??S?Xs(it,$??S):it,ct=I.root??m.Root??rR,ht=I.input??m.Input??sR;return Y.jsx(ly,{slots:{root:ct,input:ht},slotProps:st,fullWidth:k,inputComponent:R,multiline:j,ref:a,type:F,...z,classes:J})});cS.muiName="Input";function oR(t){return si("MuiFormControl",t)}ci("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const aR=t=>{const{classes:r,margin:a,fullWidth:c}=t,p={root:["root",a!=="none"&&`margin${Re(a)}`,c&&"fullWidth"]};return oi(p,oR,r)},lR=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[`margin${Re(a.margin)}`],a.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ih=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiFormControl"}),{children:p,className:m,color:S="primary",component:k="div",disabled:O=!1,error:R=!1,focused:j,fullWidth:$=!1,hiddenLabel:I=!1,margin:F="none",required:z=!1,size:_="medium",variant:J="outlined",...it}=c,st={...c,color:S,component:k,disabled:O,error:R,fullWidth:$,hiddenLabel:I,margin:F,required:z,size:_,variant:J},ct=aR(st),[ht,lt]=W.useState(()=>{let Kt=!1;return p&&W.Children.forEach(p,zt=>{if(!If(zt,["Input","Select"]))return;const ne=If(zt,["Select"])?zt.props.input:zt;ne&&cA(ne.props)&&(Kt=!0)}),Kt}),[wt,at]=W.useState(()=>{let Kt=!1;return p&&W.Children.forEach(p,zt=>{If(zt,["Input","Select"])&&($m(zt.props,!0)||$m(zt.props.inputProps,!0))&&(Kt=!0)}),Kt}),[_t,Et]=W.useState(!1);O&&_t&&Et(!1);const ot=j!==void 0&&!O?j:_t;let It;W.useRef(!1);const se=W.useCallback(()=>{at(!0)},[]),re=W.useCallback(()=>{at(!1)},[]),ie=W.useMemo(()=>({adornedStart:ht,setAdornedStart:lt,color:S,disabled:O,error:R,filled:wt,focused:ot,fullWidth:$,hiddenLabel:I,size:_,onBlur:()=>{Et(!1)},onFocus:()=>{Et(!0)},onEmpty:re,onFilled:se,registerEffect:It,required:z,variant:J}),[ht,S,O,R,wt,ot,$,I,It,re,se,z,_,J]);return Y.jsx(kx.Provider,{value:ie,children:Y.jsx(lR,{as:k,ownerState:st,className:je(ct.root,m),ref:a,...it,children:p})})});function cR(t){return si("MuiFormControlLabel",t)}const Df=ci("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uR=t=>{const{classes:r,disabled:a,labelPlacement:c,error:p,required:m}=t,S={root:["root",a&&"disabled",`labelPlacement${Re(c)}`,p&&"error",m&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",p&&"error"]};return oi(S,cR,r)},dR=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[{[`& .${Df.label}`]:r.label},r.root,r[`labelPlacement${Re(a.labelPlacement)}`]]}})(hi(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Df.disabled}`]:{cursor:"default"},[`& .${Df.label}`]:{[`&.${Df.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),hR=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,r)=>r.asterisk})(hi(({theme:t})=>({[`&.${Df.error}`]:{color:(t.vars||t).palette.error.main}}))),jb=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiFormControlLabel"}),{checked:p,className:m,componentsProps:S={},control:k,disabled:O,disableTypography:R,inputRef:j,label:$,labelPlacement:I="end",name:F,onChange:z,required:_,slots:J={},slotProps:it={},value:st,...ct}=c,ht=Cd(),lt=O??k.props.disabled??(ht==null?void 0:ht.disabled),wt=_??k.props.required,at={disabled:lt,required:wt};["checked","name","onChange","value","inputRef"].forEach(Kt=>{typeof k.props[Kt]>"u"&&typeof c[Kt]<"u"&&(at[Kt]=c[Kt])});const _t=ah({props:c,muiFormControl:ht,states:["error"]}),Et={...c,disabled:lt,labelPlacement:I,required:wt,error:_t.error},ot=uR(Et),It={slots:J,slotProps:{...S,...it}},[se,re]=As("typography",{elementType:Un,externalForwardedProps:It,ownerState:Et});let ie=$;return ie!=null&&ie.type!==Un&&!R&&(ie=Y.jsx(se,{component:"span",...re,className:je(ot.label,re==null?void 0:re.className),children:ie})),Y.jsxs(dR,{className:je(ot.root,m),ownerState:Et,ref:a,...ct,children:[W.cloneElement(k,at),wt?Y.jsxs("div",{children:[ie,Y.jsxs(hR,{ownerState:Et,"aria-hidden":!0,className:ot.asterisk,children:[" ","*"]})]}):ie]})});function pR(t){return si("MuiFormGroup",t)}ci("MuiFormGroup",["root","row","error"]);const fR=t=>{const{classes:r,row:a,error:c}=t;return oi({root:["root",a&&"row",c&&"error"]},pR,r)},gR=xe("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.row&&r.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),$b=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiFormGroup"}),{className:p,row:m=!1,...S}=c,k=Cd(),O=ah({props:c,muiFormControl:k,states:["error"]}),R={...c,row:m,error:O.error},j=fR(R);return Y.jsx(gR,{className:je(j.root,p),ownerState:R,ref:a,...S})});function mR(t){return si("MuiFormLabel",t)}const zf=ci("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yR=t=>{const{classes:r,color:a,focused:c,disabled:p,error:m,filled:S,required:k}=t,O={root:["root",`color${Re(a)}`,p&&"disabled",m&&"error",S&&"filled",c&&"focused",k&&"required"],asterisk:["asterisk",m&&"error"]};return oi(O,mR,r)},bR=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.color==="secondary"&&r.colorSecondary,a.filled&&r.filled]}})(hi(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{[`&.${zf.focused}`]:{color:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${zf.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${zf.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),xR=xe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,r)=>r.asterisk})(hi(({theme:t})=>({[`&.${zf.error}`]:{color:(t.vars||t).palette.error.main}}))),Sm=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiFormLabel"}),{children:p,className:m,color:S,component:k="label",disabled:O,error:R,filled:j,focused:$,required:I,...F}=c,z=Cd(),_=ah({props:c,muiFormControl:z,states:["color","required","focused","disabled","error","filled"]}),J={...c,color:_.color||"primary",component:k,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required},it=yR(J);return Y.jsxs(bR,{as:k,ownerState:J,className:je(it.root,m),ref:a,...F,children:[p,_.required&&Y.jsxs(xR,{ownerState:J,"aria-hidden":!0,className:it.asterisk,children:[" ","*"]})]})});function Hb(t){return`scale(${t}, ${t**2})`}const vR={entering:{opacity:1,transform:Hb(1)},entered:{opacity:1,transform:"none"}},lb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ub=W.forwardRef(function(r,a){const{addEndListener:c,appear:p=!0,children:m,easing:S,in:k,onEnter:O,onEntered:R,onEntering:j,onExit:$,onExited:I,onExiting:F,style:z,timeout:_="auto",TransitionComponent:J=nl,...it}=r,st=mx(),ct=W.useRef(),ht=jc(),lt=W.useRef(null),wt=ir(lt,fp(m),a),at=Kt=>zt=>{if(Kt){const ne=lt.current;zt===void 0?Kt(ne):Kt(ne,zt)}},_t=at(j),Et=at((Kt,zt)=>{Cx(Kt);const{duration:ne,delay:te,easing:Dt}=Sd({style:z,timeout:_,easing:S},{mode:"enter"});let St;_==="auto"?(St=ht.transitions.getAutoHeightDuration(Kt.clientHeight),ct.current=St):St=ne,Kt.style.transition=[ht.transitions.create("opacity",{duration:St,delay:te}),ht.transitions.create("transform",{duration:lb?St:St*.666,delay:te,easing:Dt})].join(","),O&&O(Kt,zt)}),ot=at(R),It=at(F),se=at(Kt=>{const{duration:zt,delay:ne,easing:te}=Sd({style:z,timeout:_,easing:S},{mode:"exit"});let Dt;_==="auto"?(Dt=ht.transitions.getAutoHeightDuration(Kt.clientHeight),ct.current=Dt):Dt=zt,Kt.style.transition=[ht.transitions.create("opacity",{duration:Dt,delay:ne}),ht.transitions.create("transform",{duration:lb?Dt:Dt*.666,delay:lb?ne:ne||Dt*.333,easing:te})].join(","),Kt.style.opacity=0,Kt.style.transform=Hb(.75),$&&$(Kt)}),re=at(I),ie=Kt=>{_==="auto"&&st.start(ct.current||0,Kt),c&&c(lt.current,Kt)};return Y.jsx(J,{appear:p,in:k,nodeRef:lt,onEnter:Et,onEntered:ot,onEntering:_t,onExit:se,onExited:re,onExiting:It,addEndListener:ie,timeout:_==="auto"?null:_,...it,children:(Kt,{ownerState:zt,...ne})=>W.cloneElement(m,{style:{opacity:0,transform:Hb(.75),visibility:Kt==="exited"&&!k?"hidden":void 0,...vR[Kt],...z,...m.props.style},ref:wt,...ne})})});Ub&&(Ub.muiSupportAuto=!0);const SR=t=>{const{classes:r,disableUnderline:a}=t,p=oi({root:["root",!a&&"underline"],input:["input"]},hA,r);return{...r,...p}},wR=xe(oy,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[...ry(t,r),!a.disableUnderline&&r.underline]}})(hi(({theme:t})=>{let a=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(a=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:c})=>c.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Sf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Sf.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Sf.disabled}, .${Sf.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${a}`}},[`&.${Sf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Gr()).map(([c])=>({props:{color:c,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[c].main}`}}}))]}})),CR=xe(ay,{name:"MuiInput",slot:"Input",overridesResolver:sy})({}),uS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiInput"}),{disableUnderline:p=!1,components:m={},componentsProps:S,fullWidth:k=!1,inputComponent:O="input",multiline:R=!1,slotProps:j,slots:$={},type:I="text",...F}=c,z=SR(c),J={root:{ownerState:{disableUnderline:p}}},it=j??S?Xs(j??S,J):J,st=$.root??m.Root??wR,ct=$.input??m.Input??CR;return Y.jsx(ly,{slots:{root:st,input:ct},slotProps:it,fullWidth:k,inputComponent:O,multiline:R,ref:a,type:I,...F,classes:z})});uS.muiName="Input";function kR(t){return si("MuiInputLabel",t)}ci("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const MR=t=>{const{classes:r,formControl:a,size:c,shrink:p,disableAnimation:m,variant:S,required:k}=t,O={root:["root",a&&"formControl",!m&&"animated",p&&"shrink",c&&c!=="normal"&&`size${Re(c)}`,S],asterisk:[k&&"asterisk"]},R=oi(O,kR,r);return{...r,...R}},TR=xe(Sm,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[{[`& .${zf.asterisk}`]:r.asterisk},r.root,a.formControl&&r.formControl,a.size==="small"&&r.sizeSmall,a.shrink&&r.shrink,!a.disableAnimation&&r.animated,a.focused&&r.focused,r[a.variant]]}})(hi(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:a})=>r==="filled"&&a.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:a,size:c})=>r==="filled"&&a.shrink&&c==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:a})=>r==="outlined"&&a.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ER=W.forwardRef(function(r,a){const c=gi({name:"MuiInputLabel",props:r}),{disableAnimation:p=!1,margin:m,shrink:S,variant:k,className:O,...R}=c,j=Cd();let $=S;typeof $>"u"&&j&&($=j.filled||j.focused||j.adornedStart);const I=ah({props:c,muiFormControl:j,states:["size","variant","required","focused"]}),F={...c,disableAnimation:p,formControl:j,shrink:$,size:I.size,variant:I.variant,required:I.required,focused:I.focused},z=MR(F);return Y.jsx(TR,{"data-shrink":$,ref:a,className:je(z.root,O),...R,ownerState:F,classes:z})});function AR(t){return si("MuiLinearProgress",t)}ci("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Fb=4,Gb=wd`
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`,RR=typeof Gb!="string"?hp`
animation: ${Gb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`:null,_b=wd`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`,OR=typeof _b!="string"?hp`
animation: ${_b} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`:null,Wb=wd`
0% {
opacity: 1;
background-position: 0 -23px;
}
60% {
opacity: 0;
background-position: 0 -23px;
}
100% {
opacity: 1;
background-position: -200px -23px;
}
`,PR=typeof Wb!="string"?hp`
animation: ${Wb} 3s infinite linear;
`:null,BR=t=>{const{classes:r,variant:a,color:c}=t,p={root:["root",`color${Re(c)}`,a],dashed:["dashed",`dashedColor${Re(c)}`],bar1:["bar","bar1",`barColor${Re(c)}`,(a==="indeterminate"||a==="query")&&"bar1Indeterminate",a==="determinate"&&"bar1Determinate",a==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",a!=="buffer"&&`barColor${Re(c)}`,a==="buffer"&&`color${Re(c)}`,(a==="indeterminate"||a==="query")&&"bar2Indeterminate",a==="buffer"&&"bar2Buffer"]};return oi(p,AR,r)},Mx=(t,r)=>t.vars?t.vars.palette.LinearProgress[`${r}Bg`]:t.palette.mode==="light"?pp(t.palette[r].main,.62):oh(t.palette[r].main,.5),DR=xe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[`color${Re(a.color)}`],r[a.variant]]}})(hi(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{backgroundColor:Mx(t,r)}})),{props:({ownerState:r})=>r.color==="inherit"&&r.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),LR=xe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.dashed,r[`dashedColor${Re(a.color)}`]]}})(hi(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Gr()).map(([r])=>{const a=Mx(t,r);return{props:{color:r},style:{backgroundImage:`radial-gradient(${a} 0%, ${a} 16%, transparent 42%)`}}})]})),PR||{animation:`${Wb} 3s infinite linear`}),IR=xe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.bar,r.bar1,r[`barColor${Re(a.color)}`],(a.variant==="indeterminate"||a.variant==="query")&&r.bar1Indeterminate,a.variant==="determinate"&&r.bar1Determinate,a.variant==="buffer"&&r.bar1Buffer]}})(hi(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Fb}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Fb}s linear`}},{props:({ownerState:r})=>r.variant==="indeterminate"||r.variant==="query",style:{width:"auto"}},{props:({ownerState:r})=>r.variant==="indeterminate"||r.variant==="query",style:RR||{animation:`${Gb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),NR=xe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.bar,r.bar2,r[`barColor${Re(a.color)}`],(a.variant==="indeterminate"||a.variant==="query")&&r.bar2Indeterminate,a.variant==="buffer"&&r.bar2Buffer]}})(hi(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[r].main}})),{props:({ownerState:r})=>r.variant!=="buffer"&&r.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:r})=>r.variant!=="buffer"&&r.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{color:r,variant:"buffer"},style:{backgroundColor:Mx(t,r),transition:`transform .${Fb}s linear`}})),{props:({ownerState:r})=>r.variant==="indeterminate"||r.variant==="query",style:{width:"auto"}},{props:({ownerState:r})=>r.variant==="indeterminate"||r.variant==="query",style:OR||{animation:`${_b} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),zR=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiLinearProgress"}),{className:p,color:m="primary",value:S,valueBuffer:k,variant:O="indeterminate",...R}=c,j={...c,color:m,variant:O},$=BR(j),I=ig(),F={},z={bar1:{},bar2:{}};if((O==="determinate"||O==="buffer")&&S!==void 0){F["aria-valuenow"]=Math.round(S),F["aria-valuemin"]=0,F["aria-valuemax"]=100;let _=S-100;I&&(_=-_),z.bar1.transform=`translateX(${_}%)`}if(O==="buffer"&&k!==void 0){let _=(k||0)-100;I&&(_=-_),z.bar2.transform=`translateX(${_}%)`}return Y.jsxs(DR,{className:je($.root,p),ownerState:j,role:"progressbar",...F,ref:a,...R,children:[O==="buffer"?Y.jsx(LR,{className:$.dashed,ownerState:j}):null,Y.jsx(IR,{className:$.bar1,ownerState:j,style:z.bar1}),O==="determinate"?null:Y.jsx(NR,{className:$.bar2,ownerState:j,style:z.bar2})]})});function jR(t){return si("MuiLink",t)}const $R=ci("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),HR=({theme:t,ownerState:r})=>{const a=r.color,c=bd(t,`palette.${a}.main`,!1)||bd(t,`palette.${a}`,!1)||r.color,p=bd(t,`palette.${a}.mainChannel`)||bd(t,`palette.${a}Channel`);return"vars"in t&&p?`rgba(${p} / 0.4)`:Yi(c,.4)},b0={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},UR=t=>{const{classes:r,component:a,focusVisible:c,underline:p}=t,m={root:["root",`underline${Re(p)}`,a==="button"&&"button",c&&"focusVisible"]};return oi(m,jR,r)},FR=xe(Un,{name:"MuiLink",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[`underline${Re(a.underline)}`],a.component==="button"&&r.button]}})(hi(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:r,ownerState:a})=>r==="always"&&a.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(Gr()).map(([r])=>({props:{underline:"always",color:r},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.4)`:Yi(t.palette[r].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Yi(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:Yi(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$R.focusVisible}`]:{outline:"auto"}}}]}))),GR=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiLink"}),p=jc(),{className:m,color:S="primary",component:k="a",onBlur:O,onFocus:R,TypographyClasses:j,underline:$="always",variant:I="inherit",sx:F,...z}=c,[_,J]=W.useState(!1),it=lt=>{Lm(lt.target)||J(!1),O&&O(lt)},st=lt=>{Lm(lt.target)&&J(!0),R&&R(lt)},ct={...c,color:S,component:k,focusVisible:_,underline:$,variant:I},ht=UR(ct);return Y.jsx(FR,{color:S,className:je(ht.root,m),classes:j,component:k,onBlur:it,onFocus:st,ref:a,ownerState:ct,variant:I,...z,sx:[...b0[S]===void 0?[{color:S}]:[],...Array.isArray(F)?F:[F]],style:{...z.style,...$==="always"&&S!=="inherit"&&!b0[S]&&{"--Link-underlineColor":HR({theme:p,ownerState:ct})}}})}),Ul=W.createContext({});function _R(t){return si("MuiList",t)}ci("MuiList",["root","padding","dense","subheader"]);const WR=t=>{const{classes:r,disablePadding:a,dense:c,subheader:p}=t;return oi({root:["root",!a&&"padding",c&&"dense",p&&"subheader"]},_R,r)},VR=xe("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,!a.disablePadding&&r.padding,a.dense&&r.dense,a.subheader&&r.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Tx=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiList"}),{children:p,className:m,component:S="ul",dense:k=!1,disablePadding:O=!1,subheader:R,...j}=c,$=W.useMemo(()=>({dense:k}),[k]),I={...c,component:S,dense:k,disablePadding:O},F=WR(I);return Y.jsx(Ul.Provider,{value:$,children:Y.jsxs(VR,{as:S,className:je(F.root,m),ref:a,ownerState:I,...j,children:[R,p]})})});function XR(t){return si("MuiListItem",t)}ci("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function YR(t){return si("MuiListItemButton",t)}const Jh=ci("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),qR=(t,r)=>{const{ownerState:a}=t;return[r.root,a.dense&&r.dense,a.alignItems==="flex-start"&&r.alignItemsFlexStart,a.divider&&r.divider,!a.disableGutters&&r.gutters]},KR=t=>{const{alignItems:r,classes:a,dense:c,disabled:p,disableGutters:m,divider:S,selected:k}=t,R=oi({root:["root",c&&"dense",!m&&"gutters",S&&"divider",p&&"disabled",r==="flex-start"&&"alignItemsFlexStart",k&&"selected"]},YR,a);return{...a,...R}},ZR=xe(mp,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:qR})(hi(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jh.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Jh.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Jh.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Jh.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Jh.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>r.dense,style:{paddingTop:4,paddingBottom:4}}]}))),QR=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiListItemButton"}),{alignItems:p="center",autoFocus:m=!1,component:S="div",children:k,dense:O=!1,disableGutters:R=!1,divider:j=!1,focusVisibleClassName:$,selected:I=!1,className:F,...z}=c,_=W.useContext(Ul),J=W.useMemo(()=>({dense:O||_.dense||!1,alignItems:p,disableGutters:R}),[p,_.dense,O,R]),it=W.useRef(null);Nc(()=>{m&&it.current&&it.current.focus()},[m]);const st={...c,alignItems:p,dense:J.dense,disableGutters:R,divider:j,selected:I},ct=KR(st),ht=ir(it,a);return Y.jsx(Ul.Provider,{value:J,children:Y.jsx(ZR,{ref:ht,href:z.href||z.to,component:(z.href||z.to)&&S==="div"?"button":S,focusVisibleClassName:je(ct.focusVisible,$),ownerState:st,className:je(ct.root,F),...z,classes:ct,children:k})})});function JR(t){return si("MuiListItemSecondaryAction",t)}ci("MuiListItemSecondaryAction",["root","disableGutters"]);const tO=t=>{const{disableGutters:r,classes:a}=t;return oi({root:["root",r&&"disableGutters"]},JR,a)},eO=xe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.disableGutters&&r.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),dS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiListItemSecondaryAction"}),{className:p,...m}=c,S=W.useContext(Ul),k={...c,disableGutters:S.disableGutters},O=tO(k);return Y.jsx(eO,{className:je(O.root,p),ownerState:k,ref:a,...m})});dS.muiName="ListItemSecondaryAction";const iO=(t,r)=>{const{ownerState:a}=t;return[r.root,a.dense&&r.dense,a.alignItems==="flex-start"&&r.alignItemsFlexStart,a.divider&&r.divider,!a.disableGutters&&r.gutters,!a.disablePadding&&r.padding,a.hasSecondaryAction&&r.secondaryAction]},nO=t=>{const{alignItems:r,classes:a,dense:c,disableGutters:p,disablePadding:m,divider:S,hasSecondaryAction:k}=t;return oi({root:["root",c&&"dense",!p&&"gutters",!m&&"padding",S&&"divider",r==="flex-start"&&"alignItemsFlexStart",k&&"secondaryAction"],container:["container"]},XR,a)},rO=xe("div",{name:"MuiListItem",slot:"Root",overridesResolver:iO})(hi(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:r})=>!r.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:r})=>!r.disablePadding&&r.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:r})=>!r.disablePadding&&!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>!r.disablePadding&&!!r.secondaryAction,style:{paddingRight:48}},{props:({ownerState:r})=>!!r.secondaryAction,style:{[`& > .${Jh.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:r})=>r.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:r})=>r.hasSecondaryAction,style:{paddingRight:48}}]}))),sO=xe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,r)=>r.container})({position:"relative"}),md=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiListItem"}),{alignItems:p="center",children:m,className:S,component:k,components:O={},componentsProps:R={},ContainerComponent:j="li",ContainerProps:{className:$,...I}={},dense:F=!1,disableGutters:z=!1,disablePadding:_=!1,divider:J=!1,secondaryAction:it,slotProps:st={},slots:ct={},...ht}=c,lt=W.useContext(Ul),wt=W.useMemo(()=>({dense:F||lt.dense||!1,alignItems:p,disableGutters:z}),[p,lt.dense,F,z]),at=W.useRef(null),_t=W.Children.toArray(m),Et=_t.length&&If(_t[_t.length-1],["ListItemSecondaryAction"]),ot={...c,alignItems:p,dense:wt.dense,disableGutters:z,disablePadding:_,divider:J,hasSecondaryAction:Et},It=nO(ot),se=ir(at,a),re=ct.root||O.Root||rO,ie=st.root||R.root||{},Kt={className:je(It.root,ie.className,S),...ht};let zt=k||"li";return Et?(zt=!Kt.component&&!k?"div":zt,j==="li"&&(zt==="li"?zt="div":Kt.component==="li"&&(Kt.component="div")),Y.jsx(Ul.Provider,{value:wt,children:Y.jsxs(sO,{as:j,className:je(It.container,$),ref:se,ownerState:ot,...I,children:[Y.jsx(re,{...ie,...!Wf(re)&&{as:zt,ownerState:{...ot,...ie.ownerState}},...Kt,children:_t}),_t.pop()]})})):Y.jsx(Ul.Provider,{value:wt,children:Y.jsxs(re,{...ie,as:zt,ref:se,...!Wf(re)&&{ownerState:{...ot,...ie.ownerState}},...Kt,children:[_t,it&&Y.jsx(dS,{children:it})]})})});function oO(t){return si("MuiListItemIcon",t)}const x0=ci("MuiListItemIcon",["root","alignItemsFlexStart"]),aO=t=>{const{alignItems:r,classes:a}=t;return oi({root:["root",r==="flex-start"&&"alignItemsFlexStart"]},oO,a)},lO=xe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.alignItems==="flex-start"&&r.alignItemsFlexStart]}})(hi(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),cO=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiListItemIcon"}),{className:p,...m}=c,S=W.useContext(Ul),k={...c,alignItems:S.alignItems},O=aO(k);return Y.jsx(lO,{className:je(O.root,p),ownerState:k,ref:a,...m})});function uO(t){return si("MuiListItemText",t)}const ep=ci("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dO=t=>{const{classes:r,inset:a,primary:c,secondary:p,dense:m}=t;return oi({root:["root",a&&"inset",m&&"dense",c&&p&&"multiline"],primary:["primary"],secondary:["secondary"]},uO,r)},hO=xe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[{[`& .${ep.primary}`]:r.primary},{[`& .${ep.secondary}`]:r.secondary},r.root,a.inset&&r.inset,a.primary&&a.secondary&&r.multiline,a.dense&&r.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${s0.root}:where(& .${ep.primary})`]:{display:"block"},[`.${s0.root}:where(& .${ep.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),nh=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiListItemText"}),{children:p,className:m,disableTypography:S=!1,inset:k=!1,primary:O,primaryTypographyProps:R,secondary:j,secondaryTypographyProps:$,slots:I={},slotProps:F={},...z}=c,{dense:_}=W.useContext(Ul);let J=O??p,it=j;const st={...c,disableTypography:S,inset:k,primary:!!J,secondary:!!it,dense:_},ct=dO(st),ht={slots:I,slotProps:{primary:R,secondary:$,...F}},[lt,wt]=As("primary",{className:ct.primary,elementType:Un,externalForwardedProps:ht,ownerState:st}),[at,_t]=As("secondary",{className:ct.secondary,elementType:Un,externalForwardedProps:ht,ownerState:st});return J!=null&&J.type!==Un&&!S&&(J=Y.jsx(lt,{variant:_?"body2":"body1",component:wt!=null&&wt.variant?void 0:"span",...wt,children:J})),it!=null&&it.type!==Un&&!S&&(it=Y.jsx(at,{variant:"body2",color:"textSecondary",..._t,children:it})),Y.jsxs(hO,{className:je(ct.root,m),ownerState:st,ref:a,...z,children:[J,it]})});function cb(t,r,a){return t===r?t.firstChild:r&&r.nextElementSibling?r.nextElementSibling:a?null:t.firstChild}function v0(t,r,a){return t===r?a?t.firstChild:t.lastChild:r&&r.previousElementSibling?r.previousElementSibling:a?null:t.lastChild}function hS(t,r){if(r===void 0)return!0;let a=t.innerText;return a===void 0&&(a=t.textContent),a=a.trim().toLowerCase(),a.length===0?!1:r.repeating?a[0]===r.keys[0]:a.startsWith(r.keys.join(""))}function wf(t,r,a,c,p,m){let S=!1,k=p(t,r,r?a:!1);for(;k;){if(k===t.firstChild){if(S)return!1;S=!0}const O=c?!1:k.disabled||k.getAttribute("aria-disabled")==="true";if(!k.hasAttribute("tabindex")||!hS(k,m)||O)k=p(t,k,a);else return k.focus(),!0}return!1}const pO=W.forwardRef(function(r,a){const{actions:c,autoFocus:p=!1,autoFocusItem:m=!1,children:S,className:k,disabledItemsFocusable:O=!1,disableListWrap:R=!1,onKeyDown:j,variant:$="selectedMenu",...I}=r,F=W.useRef(null),z=W.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nc(()=>{p&&F.current.focus()},[p]),W.useImperativeHandle(c,()=>({adjustStyleForScrollbar:(ct,{direction:ht})=>{const lt=!F.current.style.width;if(ct.clientHeight<F.current.clientHeight&<){const wt=`${N1(Fl(ct))}px`;F.current.style[ht==="rtl"?"paddingLeft":"paddingRight"]=wt,F.current.style.width=`calc(100% + ${wt})`}return F.current}}),[]);const _=ct=>{const ht=F.current,lt=ct.key;if(ct.ctrlKey||ct.metaKey||ct.altKey){j&&j(ct);return}const at=el(ht).activeElement;if(lt==="ArrowDown")ct.preventDefault(),wf(ht,at,R,O,cb);else if(lt==="ArrowUp")ct.preventDefault(),wf(ht,at,R,O,v0);else if(lt==="Home")ct.preventDefault(),wf(ht,null,R,O,cb);else if(lt==="End")ct.preventDefault(),wf(ht,null,R,O,v0);else if(lt.length===1){const _t=z.current,Et=lt.toLowerCase(),ot=performance.now();_t.keys.length>0&&(ot-_t.lastTime>500?(_t.keys=[],_t.repeating=!0,_t.previousKeyMatched=!0):_t.repeating&&Et!==_t.keys[0]&&(_t.repeating=!1)),_t.lastTime=ot,_t.keys.push(Et);const It=at&&!_t.repeating&&hS(at,_t);_t.previousKeyMatched&&(It||wf(ht,at,!1,O,cb,_t))?ct.preventDefault():_t.previousKeyMatched=!1}j&&j(ct)},J=ir(F,a);let it=-1;W.Children.forEach(S,(ct,ht)=>{if(!W.isValidElement(ct)){it===ht&&(it+=1,it>=S.length&&(it=-1));return}ct.props.disabled||($==="selectedMenu"&&ct.props.selected||it===-1)&&(it=ht),it===ht&&(ct.props.disabled||ct.props.muiSkipListHighlight||ct.type.muiSkipListHighlight)&&(it+=1,it>=S.length&&(it=-1))});const st=W.Children.map(S,(ct,ht)=>{if(ht===it){const lt={};return m&&(lt.autoFocus=!0),ct.props.tabIndex===void 0&&$==="selectedMenu"&&(lt.tabIndex=0),W.cloneElement(ct,lt)}return ct});return Y.jsx(Tx,{role:"menu",ref:J,className:k,onKeyDown:_,tabIndex:p?0:-1,...I,children:st})});function fO(t){return si("MuiPopover",t)}ci("MuiPopover",["root","paper"]);function S0(t,r){let a=0;return typeof r=="number"?a=r:r==="center"?a=t.height/2:r==="bottom"&&(a=t.height),a}function w0(t,r){let a=0;return typeof r=="number"?a=r:r==="center"?a=t.width/2:r==="right"&&(a=t.width),a}function C0(t){return[t.horizontal,t.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function ub(t){return typeof t=="function"?t():t}const gO=t=>{const{classes:r}=t;return oi({root:["root"],paper:["paper"]},fO,r)},mO=xe(sS,{name:"MuiPopover",slot:"Root",overridesResolver:(t,r)=>r.root})({}),pS=xe(ng,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,r)=>r.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),yO=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiPopover"}),{action:p,anchorEl:m,anchorOrigin:S={vertical:"top",horizontal:"left"},anchorPosition:k,anchorReference:O="anchorEl",children:R,className:j,container:$,elevation:I=8,marginThreshold:F=16,open:z,PaperProps:_={},slots:J={},slotProps:it={},transformOrigin:st={vertical:"top",horizontal:"left"},TransitionComponent:ct=Ub,transitionDuration:ht="auto",TransitionProps:{onEntering:lt,...wt}={},disableScrollLock:at=!1,..._t}=c,Et=(it==null?void 0:it.paper)??_,ot=W.useRef(),It={...c,anchorOrigin:S,anchorReference:O,elevation:I,marginThreshold:F,externalPaperSlotProps:Et,transformOrigin:st,TransitionComponent:ct,transitionDuration:ht,TransitionProps:wt},se=gO(It),re=W.useCallback(()=>{if(O==="anchorPosition")return k;const Be=ub(m),me=(Be&&Be.nodeType===1?Be:el(ot.current).body).getBoundingClientRect();return{top:me.top+S0(me,S.vertical),left:me.left+w0(me,S.horizontal)}},[m,S.horizontal,S.vertical,k,O]),ie=W.useCallback(Be=>({vertical:S0(Be,st.vertical),horizontal:w0(Be,st.horizontal)}),[st.horizontal,st.vertical]),Kt=W.useCallback(Be=>{const _e={width:Be.offsetWidth,height:Be.offsetHeight},me=ie(_e);if(O==="none")return{top:null,left:null,transformOrigin:C0(me)};const Ei=re();let di=Ei.top-me.vertical,Ai=Ei.left-me.horizontal;const Di=di+_e.height,Ni=Ai+_e.width,bi=Fl(ub(m)),bn=bi.innerHeight-F,Zi=bi.innerWidth-F;if(F!==null&&di<F){const qi=di-F;di-=qi,me.vertical+=qi}else if(F!==null&&Di>bn){const qi=Di-bn;di-=qi,me.vertical+=qi}if(F!==null&&Ai<F){const qi=Ai-F;Ai-=qi,me.horizontal+=qi}else if(Ni>Zi){const qi=Ni-Zi;Ai-=qi,me.horizontal+=qi}return{top:`${Math.round(di)}px`,left:`${Math.round(Ai)}px`,transformOrigin:C0(me)}},[m,O,re,ie,F]),[zt,ne]=W.useState(z),te=W.useCallback(()=>{const Be=ot.current;if(!Be)return;const _e=Kt(Be);_e.top!==null&&Be.style.setProperty("top",_e.top),_e.left!==null&&(Be.style.left=_e.left),Be.style.transformOrigin=_e.transformOrigin,ne(!0)},[Kt]);W.useEffect(()=>(at&&window.addEventListener("scroll",te),()=>window.removeEventListener("scroll",te)),[m,at,te]);const Dt=(Be,_e)=>{lt&<(Be,_e),te()},St=()=>{ne(!1)};W.useEffect(()=>{z&&te()}),W.useImperativeHandle(p,()=>z?{updatePosition:()=>{te()}}:null,[z,te]),W.useEffect(()=>{if(!z)return;const Be=fx(()=>{te()}),_e=Fl(m);return _e.addEventListener("resize",Be),()=>{Be.clear(),_e.removeEventListener("resize",Be)}},[m,z,te]);let jt=ht;ht==="auto"&&!ct.muiSupportAuto&&(jt=void 0);const Se=$||(m?el(ub(m)).body:void 0),ke={slots:J,slotProps:{...it,paper:Et}},[ge,Pe]=As("paper",{elementType:pS,externalForwardedProps:ke,additionalProps:{elevation:I,className:je(se.paper,Et==null?void 0:Et.className),style:zt?Et.style:{...Et.style,opacity:0}},ownerState:It}),[we,{slotProps:Ue,...Ae}]=As("root",{elementType:mO,externalForwardedProps:ke,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Se,open:z},ownerState:It,className:je(se.root,j)}),Ke=ir(ot,Pe.ref);return Y.jsx(we,{...Ae,...!Wf(we)&&{slotProps:Ue,disableScrollLock:at},..._t,ref:a,children:Y.jsx(ct,{appear:!0,in:z,onEntering:Dt,onExited:St,timeout:jt,...wt,children:Y.jsx(ge,{...Pe,ref:Ke,children:R})})})});function bO(t){return si("MuiMenu",t)}ci("MuiMenu",["root","paper","list"]);const xO={vertical:"top",horizontal:"right"},vO={vertical:"top",horizontal:"left"},SO=t=>{const{classes:r}=t;return oi({root:["root"],paper:["paper"],list:["list"]},bO,r)},wO=xe(yO,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,r)=>r.root})({}),CO=xe(pS,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,r)=>r.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kO=xe(pO,{name:"MuiMenu",slot:"List",overridesResolver:(t,r)=>r.list})({outline:0}),Ex=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiMenu"}),{autoFocus:p=!0,children:m,className:S,disableAutoFocusItem:k=!1,MenuListProps:O={},onClose:R,open:j,PaperProps:$={},PopoverClasses:I,transitionDuration:F="auto",TransitionProps:{onEntering:z,..._}={},variant:J="selectedMenu",slots:it={},slotProps:st={},...ct}=c,ht=ig(),lt={...c,autoFocus:p,disableAutoFocusItem:k,MenuListProps:O,onEntering:z,PaperProps:$,transitionDuration:F,TransitionProps:_,variant:J},wt=SO(lt),at=p&&!k&&j,_t=W.useRef(null),Et=(zt,ne)=>{_t.current&&_t.current.adjustStyleForScrollbar(zt,{direction:ht?"rtl":"ltr"}),z&&z(zt,ne)},ot=zt=>{zt.key==="Tab"&&(zt.preventDefault(),R&&R(zt,"tabKeyDown"))};let It=-1;W.Children.map(m,(zt,ne)=>{W.isValidElement(zt)&&(zt.props.disabled||(J==="selectedMenu"&&zt.props.selected||It===-1)&&(It=ne))});const se=it.paper??CO,re=st.paper??$,ie=$l({elementType:it.root,externalSlotProps:st.root,ownerState:lt,className:[wt.root,S]}),Kt=$l({elementType:se,externalSlotProps:re,ownerState:lt,className:wt.paper});return Y.jsx(wO,{onClose:R,anchorOrigin:{vertical:"bottom",horizontal:ht?"right":"left"},transformOrigin:ht?xO:vO,slots:{paper:se,root:it.root},slotProps:{root:ie,paper:Kt},open:j,ref:a,transitionDuration:F,TransitionProps:{onEntering:Et,..._},ownerState:lt,...ct,classes:I,children:Y.jsx(kO,{onKeyDown:ot,actions:_t,autoFocus:p&&(It===-1||k),autoFocusItem:at,variant:J,...O,className:je(wt.list,O.className),children:m})})});function MO(t){return si("MuiMenuItem",t)}const Cf=ci("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TO=(t,r)=>{const{ownerState:a}=t;return[r.root,a.dense&&r.dense,a.divider&&r.divider,!a.disableGutters&&r.gutters]},EO=t=>{const{disabled:r,dense:a,divider:c,disableGutters:p,selected:m,classes:S}=t,O=oi({root:["root",a&&"dense",r&&"disabled",!p&&"gutters",c&&"divider",m&&"selected"]},MO,S);return{...S,...O}},AO=xe(mp,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:TO})(hi(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cf.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${m0.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${m0.inset}`]:{marginLeft:52},[`& .${ep.root}`]:{marginTop:0,marginBottom:0},[`& .${ep.inset}`]:{paddingLeft:36},[`& .${x0.root}`]:{minWidth:36},variants:[{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:r})=>!r.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:r})=>r.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${x0.root} svg`]:{fontSize:"1.25rem"}}}]}))),Hm=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiMenuItem"}),{autoFocus:p=!1,component:m="li",dense:S=!1,divider:k=!1,disableGutters:O=!1,focusVisibleClassName:R,role:j="menuitem",tabIndex:$,className:I,...F}=c,z=W.useContext(Ul),_=W.useMemo(()=>({dense:S||z.dense||!1,disableGutters:O}),[z.dense,S,O]),J=W.useRef(null);Nc(()=>{p&&J.current&&J.current.focus()},[p]);const it={...c,dense:_.dense,divider:k,disableGutters:O},st=EO(c),ct=ir(J,a);let ht;return c.disabled||(ht=$!==void 0?$:-1),Y.jsx(Ul.Provider,{value:_,children:Y.jsx(AO,{ref:ct,role:j,tabIndex:ht,component:m,focusVisibleClassName:je(st.focusVisible,R),className:je(st.root,I),...F,ownerState:it,classes:st})})});function RO(t){return si("MuiNativeSelect",t)}const Ax=ci("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OO=t=>{const{classes:r,variant:a,disabled:c,multiple:p,open:m,error:S}=t,k={select:["select",a,c&&"disabled",p&&"multiple",S&&"error"],icon:["icon",`icon${Re(a)}`,m&&"iconOpen",c&&"disabled"]};return oi(k,RO,r)},fS=xe("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ax.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:r})=>r.variant!=="filled"&&r.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),PO=xe(fS,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ys,overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.select,r[a.variant],a.error&&r.error,{[`&.${Ax.multiple}`]:r.multiple}]}})({}),gS=xe("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Ax.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:r})=>r.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),BO=xe(gS,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.icon,a.variant&&r[`icon${Re(a.variant)}`],a.open&&r.iconOpen]}})({}),DO=W.forwardRef(function(r,a){const{className:c,disabled:p,error:m,IconComponent:S,inputRef:k,variant:O="standard",...R}=r,j={...r,disabled:p,variant:O,error:m},$=OO(j);return Y.jsxs(W.Fragment,{children:[Y.jsx(PO,{ownerState:j,className:je($.select,c),disabled:p,ref:k||a,...R}),r.multiple?null:Y.jsx(BO,{as:S,ownerState:j,className:$.icon})]})});var k0;const LO=xe("fieldset",{shouldForwardProp:Ys})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),IO=xe("legend",{shouldForwardProp:Ys})(hi(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:r})=>!r.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:r})=>r.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:r})=>r.withLabel&&r.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function NO(t){const{children:r,classes:a,className:c,label:p,notched:m,...S}=t,k=p!=null&&p!=="",O={...t,notched:m,withLabel:k};return Y.jsx(LO,{"aria-hidden":!0,className:c,ownerState:O,...S,children:Y.jsx(IO,{ownerState:O,children:k?Y.jsx("span",{children:p}):k0||(k0=Y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const zO=t=>{const{classes:r}=t,c=oi({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pA,r);return{...r,...c}},jO=xe(oy,{shouldForwardProp:t=>Ys(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ry})(hi(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Rc.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rc.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Rc.focused} .${Rc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Gr()).map(([a])=>({props:{color:a},style:{[`&.${Rc.focused} .${Rc.notchedOutline}`]:{borderColor:(t.vars||t).palette[a].main}}})),{props:{},style:{[`&.${Rc.error} .${Rc.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Rc.disabled} .${Rc.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:14}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:14}},{props:({ownerState:a})=>a.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:a,size:c})=>a.multiline&&c==="small",style:{padding:"8.5px 14px"}}]}})),$O=xe(NO,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,r)=>r.notchedOutline})(hi(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),HO=xe(ay,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sy})(hi(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:r})=>r.multiline,style:{padding:0}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}}]}))),mS=W.forwardRef(function(r,a){var c;const p=gi({props:r,name:"MuiOutlinedInput"}),{components:m={},fullWidth:S=!1,inputComponent:k="input",label:O,multiline:R=!1,notched:j,slots:$={},type:I="text",...F}=p,z=zO(p),_=Cd(),J=ah({props:p,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),it={...p,color:J.color||"primary",disabled:J.disabled,error:J.error,focused:J.focused,formControl:_,fullWidth:S,hiddenLabel:J.hiddenLabel,multiline:R,size:J.size,type:I},st=$.root??m.Root??jO,ct=$.input??m.Input??HO;return Y.jsx(ly,{slots:{root:st,input:ct},renderSuffix:ht=>Y.jsx($O,{ownerState:it,className:z.notchedOutline,label:O!=null&&O!==""&&J.required?c||(c=Y.jsxs(W.Fragment,{children:[O," ","*"]})):O,notched:typeof j<"u"?j:!!(ht.startAdornment||ht.filled||ht.focused)}),fullWidth:S,inputComponent:k,multiline:R,ref:a,type:I,...F,classes:{...z,notchedOutline:null}})});mS.muiName="Input";const UO=vr(Y.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),FO=vr(Y.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function yS(t){return si("MuiSelect",t)}const kf=ci("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var M0;const GO=xe(fS,{name:"MuiSelect",slot:"Select",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[{[`&.${kf.select}`]:r.select},{[`&.${kf.select}`]:r[a.variant]},{[`&.${kf.error}`]:r.error},{[`&.${kf.multiple}`]:r.multiple}]}})({[`&.${kf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_O=xe(gS,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.icon,a.variant&&r[`icon${Re(a.variant)}`],a.open&&r.iconOpen]}})({}),WO=xe("input",{shouldForwardProp:t=>Q1(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,r)=>r.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function T0(t,r){return typeof r=="object"&&r!==null?t===r:String(t)===String(r)}function VO(t){return t==null||typeof t=="string"&&!t.trim()}const XO=t=>{const{classes:r,variant:a,disabled:c,multiple:p,open:m,error:S}=t,k={select:["select",a,c&&"disabled",p&&"multiple",S&&"error"],icon:["icon",`icon${Re(a)}`,m&&"iconOpen",c&&"disabled"],nativeInput:["nativeInput"]};return oi(k,yS,r)},YO=W.forwardRef(function(r,a){var gn;const{"aria-describedby":c,"aria-label":p,autoFocus:m,autoWidth:S,children:k,className:O,defaultOpen:R,defaultValue:j,disabled:$,displayEmpty:I,error:F=!1,IconComponent:z,inputRef:_,labelId:J,MenuProps:it={},multiple:st,name:ct,onBlur:ht,onChange:lt,onClose:wt,onFocus:at,onOpen:_t,open:Et,readOnly:ot,renderValue:It,required:se,SelectDisplayProps:re={},tabIndex:ie,type:Kt,value:zt,variant:ne="standard",...te}=r,[Dt,St]=Eb({controlled:zt,default:j,name:"Select"}),[jt,Se]=Eb({controlled:Et,default:R,name:"Select"}),ke=W.useRef(null),ge=W.useRef(null),[Pe,we]=W.useState(null),{current:Ue}=W.useRef(Et!=null),[Ae,Ke]=W.useState(),Be=ir(a,_),_e=W.useCallback(ti=>{ge.current=ti,ti&&we(ti)},[]),me=Pe==null?void 0:Pe.parentNode;W.useImperativeHandle(Be,()=>({focus:()=>{ge.current.focus()},node:ke.current,value:Dt}),[Dt]),W.useEffect(()=>{R&&jt&&Pe&&!Ue&&(Ke(S?null:me.clientWidth),ge.current.focus())},[Pe,S]),W.useEffect(()=>{m&&ge.current.focus()},[m]),W.useEffect(()=>{if(!J)return;const ti=el(ge.current).getElementById(J);if(ti){const ai=()=>{getSelection().isCollapsed&&ge.current.focus()};return ti.addEventListener("click",ai),()=>{ti.removeEventListener("click",ai)}}},[J]);const Ei=(ti,ai)=>{ti?_t&&_t(ai):wt&&wt(ai),Ue||(Ke(S?null:me.clientWidth),Se(ti))},di=ti=>{ti.button===0&&(ti.preventDefault(),ge.current.focus(),Ei(!0,ti))},Ai=ti=>{Ei(!1,ti)},Di=W.Children.toArray(k),Ni=ti=>{const ai=Di.find(ki=>ki.props.value===ti.target.value);ai!==void 0&&(St(ai.props.value),lt&<(ti,ai))},bi=ti=>ai=>{let ki;if(ai.currentTarget.hasAttribute("tabindex")){if(st){ki=Array.isArray(Dt)?Dt.slice():[];const _r=Dt.indexOf(ti.props.value);_r===-1?ki.push(ti.props.value):ki.splice(_r,1)}else ki=ti.props.value;if(ti.props.onClick&&ti.props.onClick(ai),Dt!==ki&&(St(ki),lt)){const _r=ai.nativeEvent||ai,xn=new _r.constructor(_r.type,_r);Object.defineProperty(xn,"target",{writable:!0,value:{value:ki,name:ct}}),lt(xn,ti)}st||Ei(!1,ai)}},bn=ti=>{ot||[" ","ArrowUp","ArrowDown","Enter"].includes(ti.key)&&(ti.preventDefault(),Ei(!0,ti))},Zi=Pe!==null&&jt,qi=ti=>{!Zi&&ht&&(Object.defineProperty(ti,"target",{writable:!0,value:{value:Dt,name:ct}}),ht(ti))};delete te["aria-invalid"];let Ye,sn;const Vi=[];let Ri=!1;($m({value:Dt})||I)&&(It?Ye=It(Dt):Ri=!0);const lr=Di.map(ti=>{if(!W.isValidElement(ti))return null;let ai;if(st){if(!Array.isArray(Dt))throw new Error(wu(2));ai=Dt.some(ki=>T0(ki,ti.props.value)),ai&&Ri&&Vi.push(ti.props.children)}else ai=T0(Dt,ti.props.value),ai&&Ri&&(sn=ti.props.children);return W.cloneElement(ti,{"aria-selected":ai?"true":"false",onClick:bi(ti),onKeyUp:ki=>{ki.key===" "&&ki.preventDefault(),ti.props.onKeyUp&&ti.props.onKeyUp(ki)},role:"option",selected:ai,value:void 0,"data-value":ti.props.value})});Ri&&(st?Vi.length===0?Ye=null:Ye=Vi.reduce((ti,ai,ki)=>(ti.push(ai),ki<Vi.length-1&&ti.push(", "),ti),[]):Ye=sn);let tn=Ae;!S&&Ue&&Pe&&(tn=me.clientWidth);let Xi;typeof ie<"u"?Xi=ie:Xi=$?null:0;const on=re.id||(ct?`mui-component-select-${ct}`:void 0),In={...r,variant:ne,value:Dt,open:Zi,error:F},Ci=XO(In),dn={...it.PaperProps,...(gn=it.slotProps)==null?void 0:gn.paper},cr=_f();return Y.jsxs(W.Fragment,{children:[Y.jsx(GO,{as:"div",ref:_e,tabIndex:Xi,role:"combobox","aria-controls":Zi?cr:void 0,"aria-disabled":$?"true":void 0,"aria-expanded":Zi?"true":"false","aria-haspopup":"listbox","aria-label":p,"aria-labelledby":[J,on].filter(Boolean).join(" ")||void 0,"aria-describedby":c,"aria-required":se?"true":void 0,"aria-invalid":F?"true":void 0,onKeyDown:bn,onMouseDown:$||ot?null:di,onBlur:qi,onFocus:at,...re,ownerState:In,className:je(re.className,Ci.select,O),id:on,children:VO(Ye)?M0||(M0=Y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ye}),Y.jsx(WO,{"aria-invalid":F,value:Array.isArray(Dt)?Dt.join(","):Dt,name:ct,ref:ke,"aria-hidden":!0,onChange:Ni,tabIndex:-1,disabled:$,className:Ci.nativeInput,autoFocus:m,required:se,...te,ownerState:In}),Y.jsx(_O,{as:z,className:Ci.icon,ownerState:In}),Y.jsx(Ex,{id:`menu-${ct||""}`,anchorEl:me,open:Zi,onClose:Ai,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...it,MenuListProps:{"aria-labelledby":J,role:"listbox","aria-multiselectable":st?"true":void 0,disableListWrap:!0,id:cr,...it.MenuListProps},slotProps:{...it.slotProps,paper:{...dn,style:{minWidth:tn,...dn!=null?dn.style:null}}},children:lr})]})}),qO=t=>{const{classes:r}=t,c=oi({root:["root"]},yS,r);return{...r,...c}},Rx={name:"MuiSelect",overridesResolver:(t,r)=>r.root,shouldForwardProp:t=>Ys(t)&&t!=="variant",slot:"Root"},KO=xe(uS,Rx)(""),ZO=xe(mS,Rx)(""),QO=xe(cS,Rx)(""),Ox=W.forwardRef(function(r,a){const c=gi({name:"MuiSelect",props:r}),{autoWidth:p=!1,children:m,classes:S={},className:k,defaultOpen:O=!1,displayEmpty:R=!1,IconComponent:j=gA,id:$,input:I,inputProps:F,label:z,labelId:_,MenuProps:J,multiple:it=!1,native:st=!1,onClose:ct,onOpen:ht,open:lt,renderValue:wt,SelectDisplayProps:at,variant:_t="outlined",...Et}=c,ot=st?DO:YO,It=Cd(),se=ah({props:c,muiFormControl:It,states:["variant","error"]}),re=se.variant||_t,ie={...c,variant:re,classes:S},Kt=qO(ie),{root:zt,...ne}=Kt,te=I||{standard:Y.jsx(KO,{ownerState:ie}),outlined:Y.jsx(ZO,{label:z,ownerState:ie}),filled:Y.jsx(QO,{ownerState:ie})}[re],Dt=ir(a,fp(te));return Y.jsx(W.Fragment,{children:W.cloneElement(te,{inputComponent:ot,inputProps:{children:m,error:se.error,IconComponent:j,variant:re,type:void 0,multiple:it,...st?{id:$}:{autoWidth:p,defaultOpen:O,displayEmpty:R,labelId:_,MenuProps:J,onClose:ct,onOpen:ht,open:lt,renderValue:wt,SelectDisplayProps:{id:$,...at}},...F,classes:F?Xs(ne,F.classes):ne,...I?I.props.inputProps:{}},...(it&&st||R)&&re==="outlined"?{notched:!0}:{},ref:Dt,className:je(te.props.className,k,Kt.root),...!I&&{variant:re},...Et})})});Ox.muiName="Select";function JO(t){return si("MuiSwitch",t)}const fo=ci("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),tP=t=>{const{classes:r,edge:a,size:c,color:p,checked:m,disabled:S}=t,k={root:["root",a&&`edge${Re(a)}`,`size${Re(c)}`],switchBase:["switchBase",`color${Re(p)}`,m&&"checked",S&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},O=oi(k,JO,r);return{...r,...O}},eP=xe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.edge&&r[`edge${Re(a.edge)}`],r[`size${Re(a.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${fo.thumb}`]:{width:16,height:16},[`& .${fo.switchBase}`]:{padding:4,[`&.${fo.checked}`]:{transform:"translateX(16px)"}}}}]}),iP=xe(rS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.switchBase,{[`& .${fo.input}`]:r.input},a.color!=="default"&&r[`color${Re(a.color)}`]]}})(hi(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${fo.checked}`]:{transform:"translateX(20px)"},[`&.${fo.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${fo.checked} + .${fo.track}`]:{opacity:.5},[`&.${fo.disabled} + .${fo.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${fo.input}`]:{left:"-100%",width:"300%"}})),hi(({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(Gr(["light"])).map(([r])=>({props:{color:r},style:{[`&.${fo.checked}`]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Yi(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fo.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${r}DisabledColor`]:`${t.palette.mode==="light"?pp(t.palette[r].main,.62):oh(t.palette[r].main,.55)}`}},[`&.${fo.checked} + .${fo.track}`]:{backgroundColor:(t.vars||t).palette[r].main}}}))]}))),nP=xe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,r)=>r.track})(hi(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),rP=xe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,r)=>r.thumb})(hi(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),bS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiSwitch"}),{className:p,color:m="primary",edge:S=!1,size:k="medium",sx:O,...R}=c,j={...c,color:m,edge:S,size:k},$=tP(j),I=Y.jsx(rP,{className:$.thumb,ownerState:j});return Y.jsxs(eP,{className:je($.root,p),sx:O,ownerState:j,children:[Y.jsx(iP,{type:"checkbox",icon:I,checkedIcon:I,ref:a,ownerState:j,...R,classes:{...$,root:$.switchBase}}),Y.jsx(nP,{className:$.track,ownerState:j})]})}),xS=W.createContext();function sP(t){return si("MuiTable",t)}ci("MuiTable",["root","stickyHeader"]);const oP=t=>{const{classes:r,stickyHeader:a}=t;return oi({root:["root",a&&"stickyHeader"]},sP,r)},aP=xe("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.stickyHeader&&r.stickyHeader]}})(hi(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:r})=>r.stickyHeader,style:{borderCollapse:"separate"}}]}))),E0="table",vS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTable"}),{className:p,component:m=E0,padding:S="normal",size:k="medium",stickyHeader:O=!1,...R}=c,j={...c,component:m,padding:S,size:k,stickyHeader:O},$=oP(j),I=W.useMemo(()=>({padding:S,size:k,stickyHeader:O}),[S,k,O]);return Y.jsx(xS.Provider,{value:I,children:Y.jsx(aP,{as:m,role:m===E0?null:"table",ref:a,className:je($.root,p),ownerState:j,...R})})}),rg=W.createContext();function lP(t){return si("MuiTableBody",t)}ci("MuiTableBody",["root"]);const cP=t=>{const{classes:r}=t;return oi({root:["root"]},lP,r)},uP=xe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,r)=>r.root})({display:"table-row-group"}),dP={variant:"body"},A0="tbody",SS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTableBody"}),{className:p,component:m=A0,...S}=c,k={...c,component:m},O=cP(k);return Y.jsx(rg.Provider,{value:dP,children:Y.jsx(uP,{className:je(O.root,p),as:m,ref:a,role:m===A0?null:"rowgroup",ownerState:k,...S})})});function hP(t){return si("MuiTableCell",t)}const pP=ci("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),fP=t=>{const{classes:r,variant:a,align:c,padding:p,size:m,stickyHeader:S}=t,k={root:["root",a,S&&"stickyHeader",c!=="inherit"&&`align${Re(c)}`,p!=="normal"&&`padding${Re(p)}`,`size${Re(m)}`]};return oi(k,hP,r)},gP=xe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.variant],r[`size${Re(a.size)}`],a.padding!=="normal"&&r[`padding${Re(a.padding)}`],a.align!=="inherit"&&r[`align${Re(a.align)}`],a.stickyHeader&&r.stickyHeader]}})(hi(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
${t.palette.mode==="light"?pp(Yi(t.palette.divider,1),.88):oh(Yi(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${pP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:r})=>r.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),cp=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTableCell"}),{align:p="inherit",className:m,component:S,padding:k,scope:O,size:R,sortDirection:j,variant:$,...I}=c,F=W.useContext(xS),z=W.useContext(rg),_=z&&z.variant==="head";let J;S?J=S:J=_?"th":"td";let it=O;J==="td"?it=void 0:!it&&_&&(it="col");const st=$||z&&z.variant,ct={...c,align:p,component:J,padding:k||(F&&F.padding?F.padding:"normal"),size:R||(F&&F.size?F.size:"medium"),sortDirection:j,stickyHeader:st==="head"&&F&&F.stickyHeader,variant:st},ht=fP(ct);let lt=null;return j&&(lt=j==="asc"?"ascending":"descending"),Y.jsx(gP,{as:J,ref:a,className:je(ht.root,m),"aria-sort":lt,scope:it,ownerState:ct,...I})});function mP(t){return si("MuiTableContainer",t)}ci("MuiTableContainer",["root"]);const yP=t=>{const{classes:r}=t;return oi({root:["root"]},mP,r)},bP=xe("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,r)=>r.root})({width:"100%",overflowX:"auto"}),xP=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTableContainer"}),{className:p,component:m="div",...S}=c,k={...c,component:m},O=yP(k);return Y.jsx(bP,{ref:a,as:m,className:je(O.root,p),ownerState:k,...S})});function vP(t){return si("MuiTableFooter",t)}ci("MuiTableFooter",["root"]);const SP=t=>{const{classes:r}=t;return oi({root:["root"]},vP,r)},wP=xe("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(t,r)=>r.root})({display:"table-footer-group"}),CP={variant:"footer"},R0="tfoot",kP=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTableFooter"}),{className:p,component:m=R0,...S}=c,k={...c,component:m},O=SP(k);return Y.jsx(rg.Provider,{value:CP,children:Y.jsx(wP,{as:m,className:je(O.root,p),ref:a,role:m===R0?null:"rowgroup",ownerState:k,...S})})});function MP(t){return si("MuiTableHead",t)}ci("MuiTableHead",["root"]);const TP=t=>{const{classes:r}=t;return oi({root:["root"]},MP,r)},EP=xe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,r)=>r.root})({display:"table-header-group"}),AP={variant:"head"},O0="thead",wS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTableHead"}),{className:p,component:m=O0,...S}=c,k={...c,component:m},O=TP(k);return Y.jsx(rg.Provider,{value:AP,children:Y.jsx(EP,{as:m,className:je(O.root,p),ref:a,role:m===O0?null:"rowgroup",ownerState:k,...S})})});function RP(t){return si("MuiToolbar",t)}ci("MuiToolbar",["root","gutters","regular","dense"]);const OP=t=>{const{classes:r,disableGutters:a,variant:c}=t;return oi({root:["root",!a&&"gutters",c]},RP,r)},PP=xe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,!a.disableGutters&&r.gutters,r[a.variant]]}})(hi(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),CS=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiToolbar"}),{className:p,component:m="div",disableGutters:S=!1,variant:k="regular",...O}=c,R={...c,component:m,disableGutters:S,variant:k},j=OP(R);return Y.jsx(PP,{as:m,className:je(j.root,p),ref:a,ownerState:R,...O})}),BP=vr(Y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),DP=vr(Y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),LP=W.forwardRef(function(r,a){const{backIconButtonProps:c,count:p,disabled:m=!1,getItemAriaLabel:S,nextIconButtonProps:k,onPageChange:O,page:R,rowsPerPage:j,showFirstButton:$,showLastButton:I,slots:F={},slotProps:z={},..._}=r,J=ig(),it=jt=>{O(jt,0)},st=jt=>{O(jt,R-1)},ct=jt=>{O(jt,R+1)},ht=jt=>{O(jt,Math.max(0,Math.ceil(p/j)-1))},lt=F.firstButton??Ja,wt=F.lastButton??Ja,at=F.nextButton??Ja,_t=F.previousButton??Ja,Et=F.firstButtonIcon??UO,ot=F.lastButtonIcon??FO,It=F.nextButtonIcon??DP,se=F.previousButtonIcon??BP,re=J?wt:lt,ie=J?at:_t,Kt=J?_t:at,zt=J?lt:wt,ne=J?z.lastButton:z.firstButton,te=J?z.nextButton:z.previousButton,Dt=J?z.previousButton:z.nextButton,St=J?z.firstButton:z.lastButton;return Y.jsxs("div",{ref:a,..._,children:[$&&Y.jsx(re,{onClick:it,disabled:m||R===0,"aria-label":S("first",R),title:S("first",R),...ne,children:J?Y.jsx(ot,{...z.lastButtonIcon}):Y.jsx(Et,{...z.firstButtonIcon})}),Y.jsx(ie,{onClick:st,disabled:m||R===0,color:"inherit","aria-label":S("previous",R),title:S("previous",R),...te??c,children:J?Y.jsx(It,{...z.nextButtonIcon}):Y.jsx(se,{...z.previousButtonIcon})}),Y.jsx(Kt,{onClick:ct,disabled:m||(p!==-1?R>=Math.ceil(p/j)-1:!1),color:"inherit","aria-label":S("next",R),title:S("next",R),...Dt??k,children:J?Y.jsx(se,{...z.previousButtonIcon}):Y.jsx(It,{...z.nextButtonIcon})}),I&&Y.jsx(zt,{onClick:ht,disabled:m||R>=Math.ceil(p/j)-1,"aria-label":S("last",R),title:S("last",R),...St,children:J?Y.jsx(Et,{...z.firstButtonIcon}):Y.jsx(ot,{...z.lastButtonIcon})})]})});function IP(t){return si("MuiTablePagination",t)}const jf=ci("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var P0;const NP=xe(cp,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,r)=>r.root})(hi(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),zP=xe(CS,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,r)=>({[`& .${jf.actions}`]:r.actions,...r.toolbar})})(hi(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${jf.actions}`]:{flexShrink:0,marginLeft:20}}))),jP=xe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,r)=>r.spacer})({flex:"1 1 100%"}),$P=xe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,r)=>r.selectLabel})(hi(({theme:t})=>({...t.typography.body2,flexShrink:0}))),HP=xe(Ox,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,r)=>({[`& .${jf.selectIcon}`]:r.selectIcon,[`& .${jf.select}`]:r.select,...r.input,...r.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${jf.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),UP=xe(Hm,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,r)=>r.menuItem})({}),FP=xe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,r)=>r.displayedRows})(hi(({theme:t})=>({...t.typography.body2,flexShrink:0})));function GP({from:t,to:r,count:a}){return`${t}–${r} of ${a!==-1?a:`more than ${r}`}`}function _P(t){return`Go to ${t} page`}const WP=t=>{const{classes:r}=t;return oi({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},IP,r)},VP=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTablePagination"}),{ActionsComponent:p=LP,backIconButtonProps:m,colSpan:S,component:k=cp,count:O,disabled:R=!1,getItemAriaLabel:j=_P,labelDisplayedRows:$=GP,labelRowsPerPage:I="Rows per page:",nextIconButtonProps:F,onPageChange:z,onRowsPerPageChange:_,page:J,rowsPerPage:it,rowsPerPageOptions:st=[10,25,50,100],SelectProps:ct={},showFirstButton:ht=!1,showLastButton:lt=!1,slotProps:wt={},slots:at={},..._t}=c,Et=c,ot=WP(Et),It=(wt==null?void 0:wt.select)??ct,se=It.native?"option":UP;let re;(k===cp||k==="td")&&(re=S||1e3);const ie=_f(It.id),Kt=_f(It.labelId),zt=()=>O===-1?(J+1)*it:it===-1?O:Math.min(O,(J+1)*it),ne={slots:at,slotProps:wt},[te,Dt]=As("root",{ref:a,className:ot.root,elementType:NP,externalForwardedProps:{...ne,component:k,..._t},ownerState:Et,additionalProps:{colSpan:re}}),[St,jt]=As("toolbar",{className:ot.toolbar,elementType:zP,externalForwardedProps:ne,ownerState:Et}),[Se,ke]=As("spacer",{className:ot.spacer,elementType:jP,externalForwardedProps:ne,ownerState:Et}),[ge,Pe]=As("selectLabel",{className:ot.selectLabel,elementType:$P,externalForwardedProps:ne,ownerState:Et,additionalProps:{id:Kt}}),[we,Ue]=As("select",{className:ot.select,elementType:HP,externalForwardedProps:ne,ownerState:Et}),[Ae,Ke]=As("menuItem",{className:ot.menuItem,elementType:se,externalForwardedProps:ne,ownerState:Et}),[Be,_e]=As("displayedRows",{className:ot.displayedRows,elementType:FP,externalForwardedProps:ne,ownerState:Et});return Y.jsx(te,{...Dt,children:Y.jsxs(St,{...jt,children:[Y.jsx(Se,{...ke}),st.length>1&&Y.jsx(ge,{...Pe,children:I}),st.length>1&&Y.jsx(we,{variant:"standard",...!It.variant&&{input:P0||(P0=Y.jsx(ly,{}))},value:it,onChange:_,id:ie,labelId:Kt,...It,classes:{...It.classes,root:je(ot.input,ot.selectRoot,(It.classes||{}).root),select:je(ot.select,(It.classes||{}).select),icon:je(ot.selectIcon,(It.classes||{}).icon)},disabled:R,...Ue,children:st.map(me=>W.createElement(Ae,{...Ke,key:me.label?me.label:me,value:me.value?me.value:me},me.label?me.label:me))}),Y.jsx(Be,{..._e,children:$({from:O===0?0:J*it+1,to:zt(),count:O===-1?-1:O,page:J})}),Y.jsx(p,{className:ot.actions,backIconButtonProps:m,count:O,nextIconButtonProps:F,onPageChange:z,page:J,rowsPerPage:it,showFirstButton:ht,showLastButton:lt,slotProps:wt.actions,slots:at.actions,getItemAriaLabel:j,disabled:R})]})})});function XP(t){return si("MuiTableRow",t)}const B0=ci("MuiTableRow",["root","selected","hover","head","footer"]),YP=t=>{const{classes:r,selected:a,hover:c,head:p,footer:m}=t;return oi({root:["root",a&&"selected",c&&"hover",p&&"head",m&&"footer"]},XP,r)},qP=xe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.head&&r.head,a.footer&&r.footer]}})(hi(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${B0.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${B0.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),D0="tr",Vb=W.forwardRef(function(r,a){const c=gi({props:r,name:"MuiTableRow"}),{className:p,component:m=D0,hover:S=!1,selected:k=!1,...O}=c,R=W.useContext(rg),j={...c,component:m,hover:S,selected:k,head:R&&R.variant==="head",footer:R&&R.variant==="footer"},$=YP(j);return Y.jsx(qP,{as:m,ref:a,className:je($.root,p),role:m===D0?null:"row",ownerState:j,...O})}),kS=vr(Y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),Xb=iy({palette:{primary:{main:a1[900]},secondary:{main:Jd[500]}},tasks:{story:{backgroundColor:"#73c0de",color:"black"},todo:{backgroundColor:"#fac858",color:"black"},dev:{backgroundColor:"#5470c6",color:"white"},blocked:{backgroundColor:"#ee6666",color:"black"},done:{backgroundColor:"#28A745",color:"black"}},components:{backgroundColor:"grey",color:"white"},rag:{red:{backgroundColor:"#ee6666",color:"black"},amber:{backgroundColor:"#fac858",color:"black"},green:{backgroundColor:"#91cc75",color:"black"}},error:{backgroundColor:"#ee6666",color:"black"}});function cy({error:t,resetErrorBoundary:r}){return Y.jsxs(Ln,{sx:{width:"100%",p:0,display:"flex",justifyContent:"space-between",alignItems:"center"},backgroundColor:Xb.error.backgroundColor,children:[Y.jsx(Un,{color:Xb.error.color,sx:{pl:1},children:t.message}),Y.jsx(Ja,{"aria-label":"close",onClick:()=>r(),children:Y.jsx(kS,{})})]})}function uy(){return Y.jsx(Ln,{sx:{width:"100%"},children:Y.jsx(zR,{color:"secondary",elevation:0})})}var Mf={},L0;function KP(){if(L0)return Mf;L0=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.parse=S,Mf.serialize=R;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,c=/^[\u0020-\u003A\u003D-\u007E]*$/,p=Object.prototype.toString,m=(()=>{const I=function(){};return I.prototype=Object.create(null),I})();function S(I,F){const z=new m,_=I.length;if(_<2)return z;const J=(F==null?void 0:F.decode)||j;let it=0;do{const st=I.indexOf("=",it);if(st===-1)break;const ct=I.indexOf(";",it),ht=ct===-1?_:ct;if(st>ht){it=I.lastIndexOf(";",st-1)+1;continue}const lt=k(I,it,st),wt=O(I,st,lt),at=I.slice(lt,wt);if(z[at]===void 0){let _t=k(I,st+1,ht),Et=O(I,ht,_t);const ot=J(I.slice(_t,Et));z[at]=ot}it=ht+1}while(it<_);return z}function k(I,F,z){do{const _=I.charCodeAt(F);if(_!==32&&_!==9)return F}while(++F<z);return z}function O(I,F,z){for(;F>z;){const _=I.charCodeAt(--F);if(_!==32&&_!==9)return F+1}return z}function R(I,F,z){const _=(z==null?void 0:z.encode)||encodeURIComponent;if(!t.test(I))throw new TypeError(`argument name is invalid: ${I}`);const J=_(F);if(!r.test(J))throw new TypeError(`argument val is invalid: ${F}`);let it=I+"="+J;if(!z)return it;if(z.maxAge!==void 0){if(!Number.isInteger(z.maxAge))throw new TypeError(`option maxAge is invalid: ${z.maxAge}`);it+="; Max-Age="+z.maxAge}if(z.domain){if(!a.test(z.domain))throw new TypeError(`option domain is invalid: ${z.domain}`);it+="; Domain="+z.domain}if(z.path){if(!c.test(z.path))throw new TypeError(`option path is invalid: ${z.path}`);it+="; Path="+z.path}if(z.expires){if(!$(z.expires)||!Number.isFinite(z.expires.valueOf()))throw new TypeError(`option expires is invalid: ${z.expires}`);it+="; Expires="+z.expires.toUTCString()}if(z.httpOnly&&(it+="; HttpOnly"),z.secure&&(it+="; Secure"),z.partitioned&&(it+="; Partitioned"),z.priority)switch(typeof z.priority=="string"?z.priority.toLowerCase():void 0){case"low":it+="; Priority=Low";break;case"medium":it+="; Priority=Medium";break;case"high":it+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${z.priority}`)}if(z.sameSite)switch(typeof z.sameSite=="string"?z.sameSite.toLowerCase():z.sameSite){case!0:case"strict":it+="; SameSite=Strict";break;case"lax":it+="; SameSite=Lax";break;case"none":it+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${z.sameSite}`)}return it}function j(I){if(I.indexOf("%")===-1)return I;try{return decodeURIComponent(I)}catch{return I}}function $(I){return p.call(I)==="[object Date]"}return Mf}KP();var I0="popstate";function ZP(t={}){function r(c,p){let{pathname:m,search:S,hash:k}=c.location;return Yb("",{pathname:m,search:S,hash:k},p.state&&p.state.usr||null,p.state&&p.state.key||"default")}function a(c,p){return typeof p=="string"?p:Vf(p)}return JP(r,a,null,t)}function ar(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function zc(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function QP(){return Math.random().toString(36).substring(2,10)}function N0(t,r){return{usr:t.state,key:t.key,idx:r}}function Yb(t,r,a=null,c){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?bp(r):r,state:a,key:r&&r.key||c||QP()}}function Vf({pathname:t="/",search:r="",hash:a=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function bp(t){let r={};if(t){let a=t.indexOf("#");a>=0&&(r.hash=t.substring(a),t=t.substring(0,a));let c=t.indexOf("?");c>=0&&(r.search=t.substring(c),t=t.substring(0,c)),t&&(r.pathname=t)}return r}function JP(t,r,a,c={}){let{window:p=document.defaultView,v5Compat:m=!1}=c,S=p.history,k="POP",O=null,R=j();R==null&&(R=0,S.replaceState({...S.state,idx:R},""));function j(){return(S.state||{idx:null}).idx}function $(){k="POP";let J=j(),it=J==null?null:J-R;R=J,O&&O({action:k,location:_.location,delta:it})}function I(J,it){k="PUSH";let st=Yb(_.location,J,it);R=j()+1;let ct=N0(st,R),ht=_.createHref(st);try{S.pushState(ct,"",ht)}catch(lt){if(lt instanceof DOMException&<.name==="DataCloneError")throw lt;p.location.assign(ht)}m&&O&&O({action:k,location:_.location,delta:1})}function F(J,it){k="REPLACE";let st=Yb(_.location,J,it);R=j();let ct=N0(st,R),ht=_.createHref(st);S.replaceState(ct,"",ht),m&&O&&O({action:k,location:_.location,delta:0})}function z(J){return tB(J)}let _={get action(){return k},get location(){return t(p,S)},listen(J){if(O)throw new Error("A history only accepts one active listener");return p.addEventListener(I0,$),O=J,()=>{p.removeEventListener(I0,$),O=null}},createHref(J){return r(p,J)},createURL:z,encodeLocation(J){let it=z(J);return{pathname:it.pathname,search:it.search,hash:it.hash}},push:I,replace:F,go(J){return S.go(J)}};return _}function tB(t,r=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ar(a,"No window.location.(origin|href) available to create URL");let c=typeof t=="string"?t:Vf(t);return c=c.replace(/ $/,"%20"),!r&&c.startsWith("//")&&(c=a+c),new URL(c,a)}function MS(t,r,a="/"){return eB(t,r,a,!1)}function eB(t,r,a,c){let p=typeof r=="string"?bp(r):r,m=ku(p.pathname||"/",a);if(m==null)return null;let S=TS(t);iB(S);let k=null;for(let O=0;k==null&&O<S.length;++O){let R=pB(m);k=dB(S[O],R,c)}return k}function TS(t,r=[],a=[],c=""){let p=(m,S,k)=>{let O={relativePath:k===void 0?m.path||"":k,caseSensitive:m.caseSensitive===!0,childrenIndex:S,route:m};O.relativePath.startsWith("/")&&(ar(O.relativePath.startsWith(c),`Absolute route path "${O.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),O.relativePath=O.relativePath.slice(c.length));let R=vu([c,O.relativePath]),j=a.concat(O);m.children&&m.children.length>0&&(ar(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${R}".`),TS(m.children,r,j,R)),!(m.path==null&&!m.index)&&r.push({path:R,score:cB(R,m.index),routesMeta:j})};return t.forEach((m,S)=>{var k;if(m.path===""||!((k=m.path)!=null&&k.includes("?")))p(m,S);else for(let O of ES(m.path))p(m,S,O)}),r}function ES(t){let r=t.split("/");if(r.length===0)return[];let[a,...c]=r,p=a.endsWith("?"),m=a.replace(/\?$/,"");if(c.length===0)return p?[m,""]:[m];let S=ES(c.join("/")),k=[];return k.push(...S.map(O=>O===""?m:[m,O].join("/"))),p&&k.push(...S),k.map(O=>t.startsWith("/")&&O===""?"/":O)}function iB(t){t.sort((r,a)=>r.score!==a.score?a.score-r.score:uB(r.routesMeta.map(c=>c.childrenIndex),a.routesMeta.map(c=>c.childrenIndex)))}var nB=/^:[\w-]+$/,rB=3,sB=2,oB=1,aB=10,lB=-2,z0=t=>t==="*";function cB(t,r){let a=t.split("/"),c=a.length;return a.some(z0)&&(c+=lB),r&&(c+=sB),a.filter(p=>!z0(p)).reduce((p,m)=>p+(nB.test(m)?rB:m===""?oB:aB),c)}function uB(t,r){return t.length===r.length&&t.slice(0,-1).every((c,p)=>c===r[p])?t[t.length-1]-r[r.length-1]:0}function dB(t,r,a=!1){let{routesMeta:c}=t,p={},m="/",S=[];for(let k=0;k<c.length;++k){let O=c[k],R=k===c.length-1,j=m==="/"?r:r.slice(m.length)||"/",$=Um({path:O.relativePath,caseSensitive:O.caseSensitive,end:R},j),I=O.route;if(!$&&R&&a&&!c[c.length-1].route.index&&($=Um({path:O.relativePath,caseSensitive:O.caseSensitive,end:!1},j)),!$)return null;Object.assign(p,$.params),S.push({params:p,pathname:vu([m,$.pathname]),pathnameBase:yB(vu([m,$.pathnameBase])),route:I}),$.pathnameBase!=="/"&&(m=vu([m,$.pathnameBase]))}return S}function Um(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[a,c]=hB(t.path,t.caseSensitive,t.end),p=r.match(a);if(!p)return null;let m=p[0],S=m.replace(/(.)\/+$/,"$1"),k=p.slice(1);return{params:c.reduce((R,{paramName:j,isOptional:$},I)=>{if(j==="*"){let z=k[I]||"";S=m.slice(0,m.length-z.length).replace(/(.)\/+$/,"$1")}const F=k[I];return $&&!F?R[j]=void 0:R[j]=(F||"").replace(/%2F/g,"/"),R},{}),pathname:m,pathnameBase:S,pattern:t}}function hB(t,r=!1,a=!0){zc(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let c=[],p="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(S,k,O)=>(c.push({paramName:k,isOptional:O!=null}),O?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(c.push({paramName:"*"}),p+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?p+="\\/*$":t!==""&&t!=="/"&&(p+="(?:(?=\\/|$))"),[new RegExp(p,r?void 0:"i"),c]}function pB(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return zc(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function ku(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let a=r.endsWith("/")?r.length-1:r.length,c=t.charAt(a);return c&&c!=="/"?null:t.slice(a)||"/"}function fB(t,r="/"){let{pathname:a,search:c="",hash:p=""}=typeof t=="string"?bp(t):t;return{pathname:a?a.startsWith("/")?a:gB(a,r):r,search:bB(c),hash:xB(p)}}function gB(t,r){let a=r.replace(/\/+$/,"").split("/");return t.split("/").forEach(p=>{p===".."?a.length>1&&a.pop():p!=="."&&a.push(p)}),a.length>1?a.join("/"):"/"}function db(t,r,a,c){return`Cannot include a '${t}' character in a manually specified \`to.${r}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mB(t){return t.filter((r,a)=>a===0||r.route.path&&r.route.path.length>0)}function AS(t){let r=mB(t);return r.map((a,c)=>c===r.length-1?a.pathname:a.pathnameBase)}function RS(t,r,a,c=!1){let p;typeof t=="string"?p=bp(t):(p={...t},ar(!p.pathname||!p.pathname.includes("?"),db("?","pathname","search",p)),ar(!p.pathname||!p.pathname.includes("#"),db("#","pathname","hash",p)),ar(!p.search||!p.search.includes("#"),db("#","search","hash",p)));let m=t===""||p.pathname==="",S=m?"/":p.pathname,k;if(S==null)k=a;else{let $=r.length-1;if(!c&&S.startsWith("..")){let I=S.split("/");for(;I[0]==="..";)I.shift(),$-=1;p.pathname=I.join("/")}k=$>=0?r[$]:"/"}let O=fB(p,k),R=S&&S!=="/"&&S.endsWith("/"),j=(m||S===".")&&a.endsWith("/");return!O.pathname.endsWith("/")&&(R||j)&&(O.pathname+="/"),O}var vu=t=>t.join("/").replace(/\/\/+/g,"/"),yB=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),bB=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,xB=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function vB(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var OS=["POST","PUT","PATCH","DELETE"];new Set(OS);var SB=["GET",...OS];new Set(SB);var xp=W.createContext(null);xp.displayName="DataRouter";var dy=W.createContext(null);dy.displayName="DataRouterState";var PS=W.createContext({isTransitioning:!1});PS.displayName="ViewTransition";var wB=W.createContext(new Map);wB.displayName="Fetchers";var CB=W.createContext(null);CB.displayName="Await";var $c=W.createContext(null);$c.displayName="Navigation";var sg=W.createContext(null);sg.displayName="Location";var Mu=W.createContext({outlet:null,matches:[],isDataRoute:!1});Mu.displayName="Route";var Px=W.createContext(null);Px.displayName="RouteError";function kB(t,{relative:r}={}){ar(og(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:c}=W.useContext($c),{hash:p,pathname:m,search:S}=ag(t,{relative:r}),k=m;return a!=="/"&&(k=m==="/"?a:vu([a,m])),c.createHref({pathname:k,search:S,hash:p})}function og(){return W.useContext(sg)!=null}function kd(){return ar(og(),"useLocation() may be used only in the context of a <Router> component."),W.useContext(sg).location}var BS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function DS(t){W.useContext($c).static||W.useLayoutEffect(t)}function MB(){let{isDataRoute:t}=W.useContext(Mu);return t?jB():TB()}function TB(){ar(og(),"useNavigate() may be used only in the context of a <Router> component.");let t=W.useContext(xp),{basename:r,navigator:a}=W.useContext($c),{matches:c}=W.useContext(Mu),{pathname:p}=kd(),m=JSON.stringify(AS(c)),S=W.useRef(!1);return DS(()=>{S.current=!0}),W.useCallback((O,R={})=>{if(zc(S.current,BS),!S.current)return;if(typeof O=="number"){a.go(O);return}let j=RS(O,JSON.parse(m),p,R.relative==="path");t==null&&r!=="/"&&(j.pathname=j.pathname==="/"?r:vu([r,j.pathname])),(R.replace?a.replace:a.push)(j,R.state,R)},[r,a,m,p,t])}W.createContext(null);function ag(t,{relative:r}={}){let{matches:a}=W.useContext(Mu),{pathname:c}=kd(),p=JSON.stringify(AS(a));return W.useMemo(()=>RS(t,JSON.parse(p),c,r==="path"),[t,p,c,r])}function EB(t,r){return LS(t,r)}function LS(t,r,a,c){var it;ar(og(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:p}=W.useContext($c),{matches:m}=W.useContext(Mu),S=m[m.length-1],k=S?S.params:{},O=S?S.pathname:"/",R=S?S.pathnameBase:"/",j=S&&S.route;{let st=j&&j.path||"";IS(O,!j||st.endsWith("*")||st.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${O}" (under <Route path="${st}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${st}"> to <Route path="${st==="/"?"*":`${st}/*`}">.`)}let $=kd(),I;if(r){let st=typeof r=="string"?bp(r):r;ar(R==="/"||((it=st.pathname)==null?void 0:it.startsWith(R)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${R}" but pathname "${st.pathname}" was given in the \`location\` prop.`),I=st}else I=$;let F=I.pathname||"/",z=F;if(R!=="/"){let st=R.replace(/^\//,"").split("/");z="/"+F.replace(/^\//,"").split("/").slice(st.length).join("/")}let _=MS(t,{pathname:z});zc(j||_!=null,`No routes matched location "${I.pathname}${I.search}${I.hash}" `),zc(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${I.pathname}${I.search}${I.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let J=BB(_&&_.map(st=>Object.assign({},st,{params:Object.assign({},k,st.params),pathname:vu([R,p.encodeLocation?p.encodeLocation(st.pathname).pathname:st.pathname]),pathnameBase:st.pathnameBase==="/"?R:vu([R,p.encodeLocation?p.encodeLocation(st.pathnameBase).pathname:st.pathnameBase])})),m,a,c);return r&&J?W.createElement(sg.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...I},navigationType:"POP"}},J):J}function AB(){let t=zB(),r=vB(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,c="rgba(200,200,200, 0.5)",p={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},S=null;return console.error("Error handled by React Router default ErrorBoundary:",t),S=W.createElement(W.Fragment,null,W.createElement("p",null,"💿 Hey developer 👋"),W.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",W.createElement("code",{style:m},"ErrorBoundary")," or"," ",W.createElement("code",{style:m},"errorElement")," prop on your route.")),W.createElement(W.Fragment,null,W.createElement("h2",null,"Unexpected Application Error!"),W.createElement("h3",{style:{fontStyle:"italic"}},r),a?W.createElement("pre",{style:p},a):null,S)}var RB=W.createElement(AB,null),OB=class extends W.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?W.createElement(Mu.Provider,{value:this.props.routeContext},W.createElement(Px.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function PB({routeContext:t,match:r,children:a}){let c=W.useContext(xp);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),W.createElement(Mu.Provider,{value:t},a)}function BB(t,r=[],a=null,c=null){if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(r.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let p=t,m=a==null?void 0:a.errors;if(m!=null){let O=p.findIndex(R=>R.route.id&&(m==null?void 0:m[R.route.id])!==void 0);ar(O>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),p=p.slice(0,Math.min(p.length,O+1))}let S=!1,k=-1;if(a)for(let O=0;O<p.length;O++){let R=p[O];if((R.route.HydrateFallback||R.route.hydrateFallbackElement)&&(k=O),R.route.id){let{loaderData:j,errors:$}=a,I=R.route.loader&&!j.hasOwnProperty(R.route.id)&&(!$||$[R.route.id]===void 0);if(R.route.lazy||I){S=!0,k>=0?p=p.slice(0,k+1):p=[p[0]];break}}}return p.reduceRight((O,R,j)=>{let $,I=!1,F=null,z=null;a&&($=m&&R.route.id?m[R.route.id]:void 0,F=R.route.errorElement||RB,S&&(k<0&&j===0?(IS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),I=!0,z=null):k===j&&(I=!0,z=R.route.hydrateFallbackElement||null)));let _=r.concat(p.slice(0,j+1)),J=()=>{let it;return $?it=F:I?it=z:R.route.Component?it=W.createElement(R.route.Component,null):R.route.element?it=R.route.element:it=O,W.createElement(PB,{match:R,routeContext:{outlet:O,matches:_,isDataRoute:a!=null},children:it})};return a&&(R.route.ErrorBoundary||R.route.errorElement||j===0)?W.createElement(OB,{location:a.location,revalidation:a.revalidation,component:F,error:$,children:J(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):J()},null)}function Bx(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function DB(t){let r=W.useContext(xp);return ar(r,Bx(t)),r}function LB(t){let r=W.useContext(dy);return ar(r,Bx(t)),r}function IB(t){let r=W.useContext(Mu);return ar(r,Bx(t)),r}function Dx(t){let r=IB(t),a=r.matches[r.matches.length-1];return ar(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function NB(){return Dx("useRouteId")}function zB(){var c;let t=W.useContext(Px),r=LB("useRouteError"),a=Dx("useRouteError");return t!==void 0?t:(c=r.errors)==null?void 0:c[a]}function jB(){let{router:t}=DB("useNavigate"),r=Dx("useNavigate"),a=W.useRef(!1);return DS(()=>{a.current=!0}),W.useCallback(async(p,m={})=>{zc(a.current,BS),a.current&&(typeof p=="number"?t.navigate(p):await t.navigate(p,{fromRouteId:r,...m}))},[t,r])}var j0={};function IS(t,r,a){!r&&!j0[t]&&(j0[t]=!0,zc(!1,a))}W.memo($B);function $B({routes:t,future:r,state:a}){return LS(t,void 0,a,r)}function tp(t){ar(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function HB({basename:t="/",children:r=null,location:a,navigationType:c="POP",navigator:p,static:m=!1}){ar(!og(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let S=t.replace(/^\/*/,"/"),k=W.useMemo(()=>({basename:S,navigator:p,static:m,future:{}}),[S,p,m]);typeof a=="string"&&(a=bp(a));let{pathname:O="/",search:R="",hash:j="",state:$=null,key:I="default"}=a,F=W.useMemo(()=>{let z=ku(O,S);return z==null?null:{location:{pathname:z,search:R,hash:j,state:$,key:I},navigationType:c}},[S,O,R,j,$,I,c]);return zc(F!=null,`<Router basename="${S}"> is not able to match the URL "${O}${R}${j}" because it does not start with the basename, so the <Router> won't render anything.`),F==null?null:W.createElement($c.Provider,{value:k},W.createElement(sg.Provider,{children:r,value:F}))}function UB({children:t,location:r}){return EB(qb(t),r)}function qb(t,r=[]){let a=[];return W.Children.forEach(t,(c,p)=>{if(!W.isValidElement(c))return;let m=[...r,p];if(c.type===W.Fragment){a.push.apply(a,qb(c.props.children,m));return}ar(c.type===tp,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ar(!c.props.index||!c.props.children,"An index route cannot have child routes.");let S={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(S.children=qb(c.props.children,m)),a.push(S)}),a}var wm="get",Cm="application/x-www-form-urlencoded";function hy(t){return t!=null&&typeof t.tagName=="string"}function FB(t){return hy(t)&&t.tagName.toLowerCase()==="button"}function GB(t){return hy(t)&&t.tagName.toLowerCase()==="form"}function _B(t){return hy(t)&&t.tagName.toLowerCase()==="input"}function WB(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function VB(t,r){return t.button===0&&(!r||r==="_self")&&!WB(t)}var mm=null;function XB(){if(mm===null)try{new FormData(document.createElement("form"),0),mm=!1}catch{mm=!0}return mm}var YB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hb(t){return t!=null&&!YB.has(t)?(zc(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cm}"`),null):t}function qB(t,r){let a,c,p,m,S;if(GB(t)){let k=t.getAttribute("action");c=k?ku(k,r):null,a=t.getAttribute("method")||wm,p=hb(t.getAttribute("enctype"))||Cm,m=new FormData(t)}else if(FB(t)||_B(t)&&(t.type==="submit"||t.type==="image")){let k=t.form;if(k==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let O=t.getAttribute("formaction")||k.getAttribute("action");if(c=O?ku(O,r):null,a=t.getAttribute("formmethod")||k.getAttribute("method")||wm,p=hb(t.getAttribute("formenctype"))||hb(k.getAttribute("enctype"))||Cm,m=new FormData(k,t),!XB()){let{name:R,type:j,value:$}=t;if(j==="image"){let I=R?`${R}.`:"";m.append(`${I}x`,"0"),m.append(`${I}y`,"0")}else R&&m.append(R,$)}}else{if(hy(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=wm,c=null,p=Cm,S=t}return m&&p==="text/plain"&&(S=m,m=void 0),{action:c,method:a.toLowerCase(),encType:p,formData:m,body:S}}function Lx(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}async function KB(t,r){if(t.id in r)return r[t.id];try{let a=await import(t.module);return r[t.id]=a,a}catch(a){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ZB(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function QB(t,r,a){let c=await Promise.all(t.map(async p=>{let m=r.routes[p.route.id];if(m){let S=await KB(m,a);return S.links?S.links():[]}return[]}));return iD(c.flat(1).filter(ZB).filter(p=>p.rel==="stylesheet"||p.rel==="preload").map(p=>p.rel==="stylesheet"?{...p,rel:"prefetch",as:"style"}:{...p,rel:"prefetch"}))}function $0(t,r,a,c,p,m){let S=(O,R)=>a[R]?O.route.id!==a[R].route.id:!0,k=(O,R)=>{var j;return a[R].pathname!==O.pathname||((j=a[R].route.path)==null?void 0:j.endsWith("*"))&&a[R].params["*"]!==O.params["*"]};return m==="assets"?r.filter((O,R)=>S(O,R)||k(O,R)):m==="data"?r.filter((O,R)=>{var $;let j=c.routes[O.route.id];if(!j||!j.hasLoader)return!1;if(S(O,R)||k(O,R))return!0;if(O.route.shouldRevalidate){let I=O.route.shouldRevalidate({currentUrl:new URL(p.pathname+p.search+p.hash,window.origin),currentParams:(($=a[0])==null?void 0:$.params)||{},nextUrl:new URL(t,window.origin),nextParams:O.params,defaultShouldRevalidate:!0});if(typeof I=="boolean")return I}return!0}):[]}function JB(t,r,{includeHydrateFallback:a}={}){return tD(t.map(c=>{let p=r.routes[c.route.id];if(!p)return[];let m=[p.module];return p.clientActionModule&&(m=m.concat(p.clientActionModule)),p.clientLoaderModule&&(m=m.concat(p.clientLoaderModule)),a&&p.hydrateFallbackModule&&(m=m.concat(p.hydrateFallbackModule)),p.imports&&(m=m.concat(p.imports)),m}).flat(1))}function tD(t){return[...new Set(t)]}function eD(t){let r={},a=Object.keys(t).sort();for(let c of a)r[c]=t[c];return r}function iD(t,r){let a=new Set;return new Set(r),t.reduce((c,p)=>{let m=JSON.stringify(eD(p));return a.has(m)||(a.add(m),c.push({key:m,link:p})),c},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nD=new Set([100,101,204,205]);function rD(t,r){let a=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return a.pathname==="/"?a.pathname="_root.data":r&&ku(a.pathname,r)==="/"?a.pathname=`${r.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function NS(){let t=W.useContext(xp);return Lx(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function sD(){let t=W.useContext(dy);return Lx(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Ix=W.createContext(void 0);Ix.displayName="FrameworkContext";function zS(){let t=W.useContext(Ix);return Lx(t,"You must render this element inside a <HydratedRouter> element"),t}function oD(t,r){let a=W.useContext(Ix),[c,p]=W.useState(!1),[m,S]=W.useState(!1),{onFocus:k,onBlur:O,onMouseEnter:R,onMouseLeave:j,onTouchStart:$}=r,I=W.useRef(null);W.useEffect(()=>{if(t==="render"&&S(!0),t==="viewport"){let _=it=>{it.forEach(st=>{S(st.isIntersecting)})},J=new IntersectionObserver(_,{threshold:.5});return I.current&&J.observe(I.current),()=>{J.disconnect()}}},[t]),W.useEffect(()=>{if(c){let _=setTimeout(()=>{S(!0)},100);return()=>{clearTimeout(_)}}},[c]);let F=()=>{p(!0)},z=()=>{p(!1),S(!1)};return a?t!=="intent"?[m,I,{}]:[m,I,{onFocus:Tf(k,F),onBlur:Tf(O,z),onMouseEnter:Tf(R,F),onMouseLeave:Tf(j,z),onTouchStart:Tf($,F)}]:[!1,I,{}]}function Tf(t,r){return a=>{t&&t(a),a.defaultPrevented||r(a)}}function aD({page:t,...r}){let{router:a}=NS(),c=W.useMemo(()=>MS(a.routes,t,a.basename),[a.routes,t,a.basename]);return c?W.createElement(cD,{page:t,matches:c,...r}):null}function lD(t){let{manifest:r,routeModules:a}=zS(),[c,p]=W.useState([]);return W.useEffect(()=>{let m=!1;return QB(t,r,a).then(S=>{m||p(S)}),()=>{m=!0}},[t,r,a]),c}function cD({page:t,matches:r,...a}){let c=kd(),{manifest:p,routeModules:m}=zS(),{basename:S}=NS(),{loaderData:k,matches:O}=sD(),R=W.useMemo(()=>$0(t,r,O,p,c,"data"),[t,r,O,p,c]),j=W.useMemo(()=>$0(t,r,O,p,c,"assets"),[t,r,O,p,c]),$=W.useMemo(()=>{if(t===c.pathname+c.search+c.hash)return[];let z=new Set,_=!1;if(r.forEach(it=>{var ct;let st=p.routes[it.route.id];!st||!st.hasLoader||(!R.some(ht=>ht.route.id===it.route.id)&&it.route.id in k&&((ct=m[it.route.id])!=null&&ct.shouldRevalidate)||st.hasClientLoader?_=!0:z.add(it.route.id))}),z.size===0)return[];let J=rD(t,S);return _&&z.size>0&&J.searchParams.set("_routes",r.filter(it=>z.has(it.route.id)).map(it=>it.route.id).join(",")),[J.pathname+J.search]},[S,k,c,p,R,r,t,m]),I=W.useMemo(()=>JB(j,p),[j,p]),F=lD(j);return W.createElement(W.Fragment,null,$.map(z=>W.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...a})),I.map(z=>W.createElement("link",{key:z,rel:"modulepreload",href:z,...a})),F.map(({key:z,link:_})=>W.createElement("link",{key:z,..._})))}function uD(...t){return r=>{t.forEach(a=>{typeof a=="function"?a(r):a!=null&&(a.current=r)})}}var jS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jS&&(window.__reactRouterVersion="7.6.2")}catch{}function dD({basename:t,children:r,window:a}){let c=W.useRef();c.current==null&&(c.current=ZP({window:a,v5Compat:!0}));let p=c.current,[m,S]=W.useState({action:p.action,location:p.location}),k=W.useCallback(O=>{W.startTransition(()=>S(O))},[S]);return W.useLayoutEffect(()=>p.listen(k),[p,k]),W.createElement(HB,{basename:t,children:r,location:m.location,navigationType:m.action,navigator:p})}var $S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HS=W.forwardRef(function({onClick:r,discover:a="render",prefetch:c="none",relative:p,reloadDocument:m,replace:S,state:k,target:O,to:R,preventScrollReset:j,viewTransition:$,...I},F){let{basename:z}=W.useContext($c),_=typeof R=="string"&&$S.test(R),J,it=!1;if(typeof R=="string"&&_&&(J=R,jS))try{let Et=new URL(window.location.href),ot=R.startsWith("//")?new URL(Et.protocol+R):new URL(R),It=ku(ot.pathname,z);ot.origin===Et.origin&&It!=null?R=It+ot.search+ot.hash:it=!0}catch{zc(!1,`<Link to="${R}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let st=kB(R,{relative:p}),[ct,ht,lt]=oD(c,I),wt=fD(R,{replace:S,state:k,target:O,preventScrollReset:j,relative:p,viewTransition:$});function at(Et){r&&r(Et),Et.defaultPrevented||wt(Et)}let _t=W.createElement("a",{...I,...lt,href:J||st,onClick:it||m?r:at,ref:uD(F,ht),target:O,"data-discover":!_&&a==="render"?"true":void 0});return ct&&!_?W.createElement(W.Fragment,null,_t,W.createElement(aD,{page:st})):_t});HS.displayName="Link";var Kb=W.forwardRef(function({"aria-current":r="page",caseSensitive:a=!1,className:c="",end:p=!1,style:m,to:S,viewTransition:k,children:O,...R},j){let $=ag(S,{relative:R.relative}),I=kd(),F=W.useContext(dy),{navigator:z,basename:_}=W.useContext($c),J=F!=null&&xD($)&&k===!0,it=z.encodeLocation?z.encodeLocation($).pathname:$.pathname,st=I.pathname,ct=F&&F.navigation&&F.navigation.location?F.navigation.location.pathname:null;a||(st=st.toLowerCase(),ct=ct?ct.toLowerCase():null,it=it.toLowerCase()),ct&&_&&(ct=ku(ct,_)||ct);const ht=it!=="/"&&it.endsWith("/")?it.length-1:it.length;let lt=st===it||!p&&st.startsWith(it)&&st.charAt(ht)==="/",wt=ct!=null&&(ct===it||!p&&ct.startsWith(it)&&ct.charAt(it.length)==="/"),at={isActive:lt,isPending:wt,isTransitioning:J},_t=lt?r:void 0,Et;typeof c=="function"?Et=c(at):Et=[c,lt?"active":null,wt?"pending":null,J?"transitioning":null].filter(Boolean).join(" ");let ot=typeof m=="function"?m(at):m;return W.createElement(HS,{...R,"aria-current":_t,className:Et,ref:j,style:ot,to:S,viewTransition:k},typeof O=="function"?O(at):O)});Kb.displayName="NavLink";var hD=W.forwardRef(({discover:t="render",fetcherKey:r,navigate:a,reloadDocument:c,replace:p,state:m,method:S=wm,action:k,onSubmit:O,relative:R,preventScrollReset:j,viewTransition:$,...I},F)=>{let z=yD(),_=bD(k,{relative:R}),J=S.toLowerCase()==="get"?"get":"post",it=typeof k=="string"&&$S.test(k),st=ct=>{if(O&&O(ct),ct.defaultPrevented)return;ct.preventDefault();let ht=ct.nativeEvent.submitter,lt=(ht==null?void 0:ht.getAttribute("formmethod"))||S;z(ht||ct.currentTarget,{fetcherKey:r,method:lt,navigate:a,replace:p,state:m,relative:R,preventScrollReset:j,viewTransition:$})};return W.createElement("form",{ref:F,method:J,action:_,onSubmit:c?O:st,...I,"data-discover":!it&&t==="render"?"true":void 0})});hD.displayName="Form";function pD(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function US(t){let r=W.useContext(xp);return ar(r,pD(t)),r}function fD(t,{target:r,replace:a,state:c,preventScrollReset:p,relative:m,viewTransition:S}={}){let k=MB(),O=kd(),R=ag(t,{relative:m});return W.useCallback(j=>{if(VB(j,r)){j.preventDefault();let $=a!==void 0?a:Vf(O)===Vf(R);k(t,{replace:$,state:c,preventScrollReset:p,relative:m,viewTransition:S})}},[O,k,R,a,c,r,t,p,m,S])}var gD=0,mD=()=>`__${String(++gD)}__`;function yD(){let{router:t}=US("useSubmit"),{basename:r}=W.useContext($c),a=NB();return W.useCallback(async(c,p={})=>{let{action:m,method:S,encType:k,formData:O,body:R}=qB(c,r);if(p.navigate===!1){let j=p.fetcherKey||mD();await t.fetch(j,a,p.action||m,{preventScrollReset:p.preventScrollReset,formData:O,body:R,formMethod:p.method||S,formEncType:p.encType||k,flushSync:p.flushSync})}else await t.navigate(p.action||m,{preventScrollReset:p.preventScrollReset,formData:O,body:R,formMethod:p.method||S,formEncType:p.encType||k,replace:p.replace,state:p.state,fromRouteId:a,flushSync:p.flushSync,viewTransition:p.viewTransition})},[t,r,a])}function bD(t,{relative:r}={}){let{basename:a}=W.useContext($c),c=W.useContext(Mu);ar(c,"useFormAction must be used inside a RouteContext");let[p]=c.matches.slice(-1),m={...ag(t||".",{relative:r})},S=kd();if(t==null){m.search=S.search;let k=new URLSearchParams(m.search),O=k.getAll("index");if(O.some(j=>j==="")){k.delete("index"),O.filter($=>$).forEach($=>k.append("index",$));let j=k.toString();m.search=j?`?${j}`:""}}return(!t||t===".")&&p.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(m.pathname=m.pathname==="/"?a:vu([a,m.pathname])),Vf(m)}function xD(t,r={}){let a=W.useContext(PS);ar(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=US("useViewTransitionState"),p=ag(t,{relative:r.relative});if(!a.isTransitioning)return!1;let m=ku(a.currentLocation.pathname,c)||a.currentLocation.pathname,S=ku(a.nextLocation.pathname,c)||a.nextLocation.pathname;return Um(p.pathname,S)!=null||Um(p.pathname,m)!=null}[...nD];const Ka=W.createContext(),vD=vr(Y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),H0=vr(Y.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");function SD(t){const r=kd(),[a,c]=W.useState(null),p=S=>{c(S.currentTarget)},m=()=>{c(null)};return Y.jsx(iA,{position:"static",elevation:0,children:Y.jsx(yp,{maxWidth:"xl",children:Y.jsxs(CS,{disableGutters:!0,children:[Y.jsx(H0,{sx:{display:{xs:"none",md:"flex"},mr:1}}),Y.jsx(Un,{variant:"h7",noWrap:!0,component:"a",sx:{mr:2,display:{xs:"none",md:"flex"},fontWeight:400,color:"inherit",textDecoration:"none"},children:Y.jsxs("span",{children:["tpm ",Y.jsx("sub",{children:t.version})]})}),Y.jsxs(Ln,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[Y.jsx(Ja,{size:"large","aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:p,color:"inherit",children:Y.jsx(vD,{})}),Y.jsx(Ex,{id:"menu-appbar",anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!a,onClose:m,sx:{display:{xs:"block",md:"none"}},children:t.pages.map(S=>Y.jsx(Kb,{to:S.href,style:{textDecoration:"none"},children:Y.jsx(Hm,{onClick:m,children:Y.jsx(Un,{sx:{textAlign:"center",color:"black"},children:S.title})})},S.id))})]}),Y.jsx(H0,{sx:{display:{xs:"flex",md:"none"},mr:1}}),Y.jsx(Un,{variant:"h7",noWrap:!0,component:"a",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontWeight:400,color:"inherit",textDecoration:"none"},children:Y.jsxs("span",{children:["tpm ",Y.jsx("sub",{children:t.version})]})}),Y.jsx(Ln,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:t.pages.map(S=>Y.jsx(Kb,{to:S.href,style:{textDecoration:"none"},children:Y.jsx(nS,{onClick:m,sx:{my:2,color:"white",display:"block",textDecoration:r.pathname===S.href?"underline":"none"},children:S.title})},S.id))})]})})})}const wD=vr(Y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),CD=vr(Y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");var km={exports:{}},kD=km.exports,U0;function MD(){return U0||(U0=1,function(t,r){(function(a,c){a._Highcharts=c(),t.exports=a._Highcharts})(typeof window>"u"?kD:window,()=>(()=>{let a,c;var p,m,S,k,O,R,j,$,I,F,z,_,J,it,st,ct,ht,lt={};lt.d=(w,i)=>{for(var s in i)lt.o(i,s)&&!lt.o(w,s)&&Object.defineProperty(w,s,{enumerable:!0,get:i[s]})},lt.o=(w,i)=>Object.prototype.hasOwnProperty.call(w,i);var wt={};lt.d(wt,{default:()=>Oy}),function(w){var i,s,l;w.SVG_NS="http://www.w3.org/2000/svg",w.product="Highcharts",w.version="12.1.2",w.win=typeof window<"u"?window:{},w.doc=w.win.document,w.svg=w.doc&&w.doc.createElementNS&&!!w.doc.createElementNS(w.SVG_NS,"svg").createSVGRect,w.pageLang=(l=(s=(i=w.doc)==null?void 0:i.documentElement)==null?void 0:s.closest("[lang]"))==null?void 0:l.lang,w.userAgent=w.win.navigator&&w.win.navigator.userAgent||"",w.isChrome=w.win.chrome,w.isFirefox=w.userAgent.indexOf("Firefox")!==-1,w.isMS=/(edge|msie|trident)/i.test(w.userAgent)&&!w.win.opera,w.isSafari=!w.isChrome&&w.userAgent.indexOf("Safari")!==-1,w.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(w.userAgent),w.isWebKit=w.userAgent.indexOf("AppleWebKit")!==-1,w.deg2rad=2*Math.PI/360,w.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],w.noop=function(){},w.supportsPassiveEvents=function(){let u=!1;if(!w.isMS){let h=Object.defineProperty({},"passive",{get:function(){u=!0}});w.win.addEventListener&&w.win.removeEventListener&&(w.win.addEventListener("testPassive",w.noop,h),w.win.removeEventListener("testPassive",w.noop,h))}return u}(),w.charts=[],w.composed=[],w.dateFormats={},w.seriesTypes={},w.symbolSizes={},w.chartCount=0}(p||(p={}));let at=p,{charts:_t,doc:Et,win:ot}=at;function It(w,i,s,l){let u=i?"Highcharts error":"Highcharts warning";w===32&&(w=`${u}: Deprecated member`);let h=te(w),f=h?`${u} #${w}: www.highcharts.com/errors/${w}/`:w.toString();if(l!==void 0){let g="";h&&(f+="?"),Ae(l,function(x,C){g+=`
- ${C}: ${x}`,h&&(f+=encodeURI(C)+"="+encodeURI(x))}),f+=g}Be(at,"displayError",{chart:s,code:w,message:f,params:l},function(){if(i)throw Error(f);ot.console&&It.messages.indexOf(f)===-1&&console.warn(f)}),It.messages.push(f)}function se(w,i){return parseInt(w,i||10)}function re(w){return typeof w=="string"}function ie(w){let i=Object.prototype.toString.call(w);return i==="[object Array]"||i==="[object Array Iterator]"}function Kt(w,i){return!!w&&typeof w=="object"&&(!i||!ie(w))}function zt(w){return Kt(w)&&typeof w.nodeType=="number"}function ne(w){let i=w&&w.constructor;return!!(Kt(w,!0)&&!zt(w)&&i&&i.name&&i.name!=="Object")}function te(w){return typeof w=="number"&&!isNaN(w)&&w<1/0&&w>-1/0}function Dt(w){return w!=null}function St(w,i,s){let l,u=re(i)&&!Dt(s),h=(f,g)=>{Dt(f)?w.setAttribute(g,f):u?(l=w.getAttribute(g))||g!=="class"||(l=w.getAttribute(g+"Name")):w.removeAttribute(g)};return re(i)?h(s,i):Ae(i,h),l}function jt(w){return ie(w)?w:[w]}function Se(w,i){let s;for(s in w||(w={}),i)w[s]=i[s];return w}function ke(){let w=arguments,i=w.length;for(let s=0;s<i;s++){let l=w[s];if(l!=null)return l}}function ge(w,i){Se(w.style,i)}function Pe(w){return Math.pow(10,Math.floor(Math.log(w)/Math.LN10))}function we(w,i){return w>1e14?w:parseFloat(w.toPrecision(i||14))}(It||(It={})).messages=[],Math.easeInOutSine=function(w){return-.5*(Math.cos(Math.PI*w)-1)};let Ue=Array.prototype.find?function(w,i){return w.find(i)}:function(w,i){let s,l=w.length;for(s=0;s<l;s++)if(i(w[s],s))return w[s]};function Ae(w,i,s){for(let l in w)Object.hasOwnProperty.call(w,l)&&i.call(s||w[l],w[l],l,w)}function Ke(w,i,s){function l(f,g){let x=w.removeEventListener;x&&x.call(w,f,g,!1)}function u(f){let g,x;w.nodeName&&(i?(g={})[i]=!0:g=f,Ae(g,function(C,P){if(f[P])for(x=f[P].length;x--;)l(P,f[P][x].fn)}))}let h=typeof w=="function"&&w.prototype||w;if(Object.hasOwnProperty.call(h,"hcEvents")){let f=h.hcEvents;if(i){let g=f[i]||[];s?(f[i]=g.filter(function(x){return s!==x.fn}),l(i,s)):(u(f),f[i]=[])}else u(f),delete h.hcEvents}}function Be(w,i,s,l){if(s=s||{},Et.createEvent&&(w.dispatchEvent||w.fireEvent&&w!==at)){let u=Et.createEvent("Events");u.initEvent(i,!0,!0),s=Se(u,s),w.dispatchEvent?w.dispatchEvent(s):w.fireEvent(i,s)}else if(w.hcEvents){s.target||Se(s,{preventDefault:function(){s.defaultPrevented=!0},target:w,type:i});let u=[],h=w,f=!1;for(;h.hcEvents;)Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents[i]&&(u.length&&(f=!0),u.unshift.apply(u,h.hcEvents[i])),h=Object.getPrototypeOf(h);f&&u.sort((g,x)=>g.order-x.order),u.forEach(g=>{g.fn.call(w,s)===!1&&s.preventDefault()})}l&&!s.defaultPrevented&&l.call(w,s)}let _e=function(){let w=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(a?"":w)+i++}}();ot.jQuery&&(ot.jQuery.fn.highcharts=function(){let w=[].slice.call(arguments);if(this[0])return w[0]?(new at[re(w[0])?w.shift():"Chart"](this[0],w[0],w[1]),this):_t[St(this[0],"data-highcharts-chart")]});let me={addEvent:function(w,i,s,l={}){let u=typeof w=="function"&&w.prototype||w;Object.hasOwnProperty.call(u,"hcEvents")||(u.hcEvents={});let h=u.hcEvents;at.Point&&w instanceof at.Point&&w.series&&w.series.chart&&(w.series.chart.runTrackerClick=!0);let f=w.addEventListener;f&&f.call(w,i,s,!!at.supportsPassiveEvents&&{passive:l.passive===void 0?i.indexOf("touch")!==-1:l.passive,capture:!1}),h[i]||(h[i]=[]);let g={fn:s,order:typeof l.order=="number"?l.order:1/0};return h[i].push(g),h[i].sort((x,C)=>x.order-C.order),function(){Ke(w,i,s)}},arrayMax:function(w){let i=w.length,s=w[0];for(;i--;)w[i]>s&&(s=w[i]);return s},arrayMin:function(w){let i=w.length,s=w[0];for(;i--;)w[i]<s&&(s=w[i]);return s},attr:St,clamp:function(w,i,s){return w>i?w<s?w:s:i},clearTimeout:function(w){Dt(w)&&clearTimeout(w)},correctFloat:we,createElement:function(w,i,s,l,u){let h=Et.createElement(w);return i&&Se(h,i),u&&ge(h,{padding:"0",border:"none",margin:"0"}),s&&ge(h,s),l&&l.appendChild(h),h},crisp:function(w,i=0,s){let l=i%2/2,u=s?-1:1;return(Math.round(w*u-l)+l)*u},css:ge,defined:Dt,destroyObjectProperties:function(w,i,s){Ae(w,function(l,u){l!==i&&(l!=null&&l.destroy)&&l.destroy(),(l!=null&&l.destroy||!s)&&delete w[u]})},diffObjects:function(w,i,s,l){let u={};return function h(f,g,x,C){let P=s?g:f;Ae(f,function(M,N){if(!C&&l&&l.indexOf(N)>-1&&g[N]){M=jt(M),x[N]=[];for(let U=0;U<Math.max(M.length,g[N].length);U++)g[N][U]&&(M[U]===void 0?x[N][U]=g[N][U]:(x[N][U]={},h(M[U],g[N][U],x[N][U],C+1)))}else Kt(M,!0)&&!M.nodeType?(x[N]=ie(M)?[]:{},h(M,g[N]||{},x[N],C+1),Object.keys(x[N]).length!==0||N==="colorAxis"&&C===0||delete x[N]):(f[N]!==g[N]||N in f&&!(N in g))&&N!=="__proto__"&&N!=="constructor"&&(x[N]=P[N])})}(w,i,u,0),u},discardElement:function(w){w&&w.parentElement&&w.parentElement.removeChild(w)},erase:function(w,i){let s=w.length;for(;s--;)if(w[s]===i){w.splice(s,1);break}},error:It,extend:Se,extendClass:function(w,i){let s=function(){};return s.prototype=new w,Se(s.prototype,i),s},find:Ue,fireEvent:Be,getAlignFactor:(w="")=>({center:.5,right:1,middle:.5,bottom:1})[w]||0,getClosestDistance:function(w,i){let s,l,u,h=!i;return w.forEach(f=>{if(f.length>1)for(u=f.length-1;u>0;u--)(l=f[u]-f[u-1])<0&&!h?(i==null||i(),i=void 0):l&&(s===void 0||l<s)&&(s=l)}),s},getMagnitude:Pe,getNestedProperty:function(w,i){let s=w.split(".");for(;s.length&&Dt(i);){let l=s.shift();if(l===void 0||l==="__proto__")return;if(l==="this"){let h;return Kt(i)&&(h=i["@this"]),h??i}let u=i[l.replace(/[\\'"]/g,"")];if(!Dt(u)||typeof u=="function"||typeof u.nodeType=="number"||u===ot)return;i=u}return i},getStyle:function w(i,s,l){let u;if(s==="width"){let f=Math.min(i.offsetWidth,i.scrollWidth),g=i.getBoundingClientRect&&i.getBoundingClientRect().width;return g<f&&g>=f-1&&(f=Math.floor(g)),Math.max(0,f-(w(i,"padding-left",!0)||0)-(w(i,"padding-right",!0)||0))}if(s==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(w(i,"padding-top",!0)||0)-(w(i,"padding-bottom",!0)||0));let h=ot.getComputedStyle(i,void 0);return h&&(u=h.getPropertyValue(s),ke(l,s!=="opacity")&&(u=se(u))),u},insertItem:function(w,i){let s,l=w.options.index,u=i.length;for(s=w.options.isInternal?u:0;s<u+1;s++)if(!i[s]||te(l)&&l<ke(i[s].options.index,i[s]._i)||i[s].options.isInternal){i.splice(s,0,w);break}return s},isArray:ie,isClass:ne,isDOMElement:zt,isFunction:function(w){return typeof w=="function"},isNumber:te,isObject:Kt,isString:re,merge:function(w,...i){let s,l=[w,...i],u={},h=function(g,x){return typeof g!="object"&&(g={}),Ae(x,function(C,P){P!=="__proto__"&&P!=="constructor"&&(!Kt(C,!0)||ne(C)||zt(C)?g[P]=x[P]:g[P]=h(g[P]||{},C))}),g};w===!0&&(u=l[1],l=Array.prototype.slice.call(l,2));let f=l.length;for(s=0;s<f;s++)u=h(u,l[s]);return u},normalizeTickInterval:function(w,i,s,l,u){let h,f=w;s=ke(s,Pe(w));let g=w/s;for(!i&&(i=u?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],l===!1&&(s===1?i=i.filter(function(x){return x%1==0}):s<=.1&&(i=[1/s]))),h=0;h<i.length&&(f=i[h],(!u||!(f*s>=w))&&(u||!(g<=(i[h]+(i[h+1]||i[h]))/2)));h++);return we(f*s,-Math.round(Math.log(.001)/Math.LN10))},objectEach:Ae,offset:function(w){let i=Et.documentElement,s=w.parentElement||w.parentNode?w.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:s.top+(ot.pageYOffset||i.scrollTop)-(i.clientTop||0),left:s.left+(ot.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:s.width,height:s.height}},pad:function(w,i,s){return Array((i||2)+1-String(w).replace("-","").length).join(s||"0")+w},pick:ke,pInt:se,pushUnique:function(w,i){return 0>w.indexOf(i)&&!!w.push(i)},relativeLength:function(w,i,s){return/%$/.test(w)?i*parseFloat(w)/100+(s||0):parseFloat(w)},removeEvent:Ke,replaceNested:function(w,...i){let s,l;do for(l of(s=w,i))w=w.replace(l[0],l[1]);while(w!==s);return w},splat:jt,stableSort:function(w,i){let s,l,u=w.length;for(l=0;l<u;l++)w[l].safeI=l;for(w.sort(function(h,f){return(s=i(h,f))===0?h.safeI-f.safeI:s}),l=0;l<u;l++)delete w[l].safeI},syncTimeout:function(w,i,s){return i>0?setTimeout(w,i,s):(w.call(0,s),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(w){return re(w)?w.substring(0,1).toUpperCase()+w.substring(1):String(w)},uniqueKey:_e,useSerialIds:function(w){return a=ke(w,a)},wrap:function(w,i,s){let l=w[i];w[i]=function(){let u=arguments,h=this;return s.apply(this,[function(){return l.apply(h,arguments.length?arguments:u)}].concat([].slice.call(arguments)))}}},{pageLang:Ei,win:di}=at,{defined:Ai,error:Di,extend:Ni,isNumber:bi,isObject:bn,isString:Zi,merge:qi,objectEach:Ye,pad:sn,splat:Vi,timeUnits:Ri,ucfirst:lr}=me,tn=at.isSafari&&di.Intl&&!di.Intl.DateTimeFormat.prototype.formatRange,Xi=w=>w.main===void 0,on=w=>["D","L","M","X","J","V","S"].indexOf(w),In=class{constructor(w){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=di.Date,this.update(w)}update(w={}){this.dTLCache={},this.options=w=qi(!0,this.options,w);let{timezoneOffset:i,useUTC:s}=w;this.Date=w.Date||di.Date||Date;let l=w.timezone;Ai(s)&&(l=s?"UTC":void 0),i&&i%60==0&&(l="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone=l!=="UTC"&&(l==null?void 0:l.indexOf("Etc/GMT"))!==0,this.timezone=l,["months","shortMonths","weekdays","shortWeekdays"].forEach(u=>{let h=/months/i.test(u),f=/short/.test(u),g={timeZone:"UTC"};g[h?"month":"weekday"]=f?"short":"long",this[u]=(h?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(x=>this.dateFormat(g,(h?31:1)*24*36e5*x))})}toParts(w){let[i,s,l,u,h,f,g]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},w,"es").split(/(?:, |\/|:)/g);return[u,+l-1,s,h,f,g,Math.floor(Number(w)||0)%1e3,on(i)].map(Number)}dateTimeFormat(w,i,s=this.options.locale||Ei){let l=JSON.stringify(w)+s;Zi(w)&&(w=this.str2dtf(w));let u=this.dTLCache[l];if(!u){w.timeZone??(w.timeZone=this.timezone);try{u=new Intl.DateTimeFormat(s,w)}catch(h){/Invalid time zone/i.test(h.message)?(Di(34),w.timeZone="UTC",u=new Intl.DateTimeFormat(s,w)):Di(h.message,!1)}}return this.dTLCache[l]=u,(u==null?void 0:u.format(i))||""}str2dtf(w,i={}){let s={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(s).forEach(l=>{w.indexOf(l)!==-1&&Ni(i,s[l])}),i}makeTime(w,i,s=1,l=0,u,h,f){let g=this.Date.UTC(w,i,s,l,u||0,h||0,f||0);if(this.timezone!=="UTC"){let x=this.getTimezoneOffset(g);if(g+=x,[2,3,8,9,10,11].indexOf(i)!==-1&&(l<5||l>20)){let C=this.getTimezoneOffset(g);x!==C?g+=C-x:x-36e5!==this.getTimezoneOffset(g-36e5)||tn||(g-=36e5)}}return g}parse(w){if(!Zi(w))return w??void 0;let i=(w=w.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(w),s=/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(w);i||s||(w+="Z");let l=Date.parse(w);if(bi(l))return l+(!i||s?this.getTimezoneOffset(l):0)}getTimezoneOffset(w){if(this.timezone!=="UTC"){let[i,s,l,u,h=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},w,"en").split(/(GMT|:)/).map(Number),f=-(36e5*(l+h/60));if(bi(f))return f}return 0}dateFormat(w,i,s){var u;let l=(u=at.defaultOptions)==null?void 0:u.lang;if(!Ai(i)||isNaN(i))return(l==null?void 0:l.invalidDate)||"";if(Zi(w=w??"%Y-%m-%d %H:%M:%S")){let h,f=/%\[([a-zA-Z]+)\]/g;for(;h=f.exec(w);)w=w.replace(h[0],this.dateTimeFormat(h[1],i))}if(Zi(w)&&w.indexOf("%")!==-1){let h=this,[f,g,x,C,P,M,N,U]=this.toParts(i),V=(l==null?void 0:l.weekdays)||this.weekdays,et=(l==null?void 0:l.shortWeekdays)||this.shortWeekdays,rt=(l==null?void 0:l.months)||this.months,Q=(l==null?void 0:l.shortMonths)||this.shortMonths;Ye(Ni({a:et?et[U]:V[U].substr(0,3),A:V[U],d:sn(x),e:sn(x,2," "),w:U,b:Q[g],B:rt[g],m:sn(g+1),o:g+1,y:f.toString().substr(2,2),Y:f,H:sn(C),k:C,I:sn(C%12||12),l:C%12||12,M:sn(P),p:C<12?"AM":"PM",P:C<12?"am":"pm",S:sn(M),L:sn(N,3)},at.dateFormats),function(dt,ft){if(Zi(w))for(;w.indexOf("%"+ft)!==-1;)w=w.replace("%"+ft,typeof dt=="function"?dt.call(h,i):dt)})}else if(bn(w)){let h=(this.getTimezoneOffset(i)||0)/36e5,f=this.timezone||"Etc/GMT"+(h>=0?"+":"")+h,{prefix:g="",suffix:x=""}=w;w=g+this.dateTimeFormat(Ni({timeZone:f},w),i)+x}return s?lr(w):w}resolveDTLFormat(w){return bn(w,!0)?bn(w,!0)&&Xi(w)?{main:w}:w:{main:(w=Vi(w))[0],from:w[1],to:w[2]}}getTimeTicks(w,i,s,l){let u=this,h=[],f={},{count:g=1,unitRange:x}=w,[C,P,M,N,U,V]=u.toParts(i),et=(i||0)%1e3,rt;if(l??(l=1),Ai(i)){if(et=x>=Ri.second?0:g*Math.floor(et/g),x>=Ri.second&&(V=x>=Ri.minute?0:g*Math.floor(V/g)),x>=Ri.minute&&(U=x>=Ri.hour?0:g*Math.floor(U/g)),x>=Ri.hour&&(N=x>=Ri.day?0:g*Math.floor(N/g)),x>=Ri.day&&(M=x>=Ri.month?1:Math.max(1,g*Math.floor(M/g))),x>=Ri.month&&(P=x>=Ri.year?0:g*Math.floor(P/g)),x>=Ri.year&&(C-=C%g),x===Ri.week){g&&(i=u.makeTime(C,P,M,N,U,V,et));let ft=on(this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},i,"es"));M+=-ft+l+(ft<l?-7:0)}i=u.makeTime(C,P,M,N,U,V,et),u.variableTimezone&&Ai(s)&&(rt=s-i>4*Ri.month||u.getTimezoneOffset(i)!==u.getTimezoneOffset(s));let Q=i,dt=1;for(;Q<s;)h.push(Q),x===Ri.year?Q=u.makeTime(C+dt*g,0):x===Ri.month?Q=u.makeTime(C,P+dt*g):rt&&(x===Ri.day||x===Ri.week)?Q=u.makeTime(C,P,M+dt*g*(x===Ri.day?1:7)):rt&&x===Ri.hour&&g>1?Q=u.makeTime(C,P,M,N+dt*g):Q+=x*g,dt++;h.push(Q),x<=Ri.hour&&h.length<1e4&&h.forEach(ft=>{ft%18e5==0&&u.dateFormat("%H%M%S%L",ft)==="000000000"&&(f[ft]="day")})}return h.info=Ni(w,{higherRanks:f,totalRange:x*g}),h}getDateFormat(w,i,s,l){let u=this.dateFormat("%m-%d %H:%M:%S.%L",i),h="01-01 00:00:00.000",f={millisecond:15,second:12,minute:9,hour:6,day:3},g="millisecond",x=g;for(g in Ri){if(w===Ri.week&&+this.dateFormat("%w",i)===s&&u.substr(6)===h.substr(6)){g="week";break}if(Ri[g]>w){g=x;break}if(f[g]&&u.substr(f[g])!==h.substr(f[g]))break;g!=="week"&&(x=g)}return this.resolveDTLFormat(l[g]).main}},{isTouchDevice:Ci}=at,{fireEvent:dn,merge:cr}=me,gn={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{locale:void 0,loading:"Loading...",months:void 0,shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:w=>Math.sqrt(1-Math.pow(w-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"Week from %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Ci?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},ti=new In(gn.time),ai={defaultOptions:gn,defaultTime:ti,getOptions:function(){return gn},setOptions:function(w){return dn(at,"setOptions",{options:w}),cr(!0,gn,w),w.time&&ti.update(gn.time),w.lang&&"locale"in w.lang&&ti.update({locale:w.lang.locale}),gn}},{isNumber:ki,merge:_r,pInt:xn,defined:Ho}=me;class ei{static parse(i){return i?new ei(i):ei.None}constructor(i){let s,l,u,h;this.rgba=[NaN,NaN,NaN,NaN],this.input=i;let f=at.Color;if(f&&f!==ei)return new f(i);if(typeof i=="object"&&i.stops!==void 0)this.stops=i.stops.map(g=>new ei(g[1]));else if(typeof i=="string")for(this.input=i=ei.names[i.toLowerCase()]||i,u=ei.parsers.length;u--&&!l;)(s=(h=ei.parsers[u]).regex.exec(i))&&(l=h.parse(s));l&&(this.rgba=l)}get(i){let s=this.input,l=this.rgba;if(typeof s=="object"&&this.stops!==void 0){let u=_r(s);return u.stops=[].slice.call(u.stops),this.stops.forEach((h,f)=>{u.stops[f]=[u.stops[f][0],h.get(i)]}),u}return l&&ki(l[0])?i!=="rgb"&&(i||l[3]!==1)?i==="a"?`${l[3]}`:"rgba("+l.join(",")+")":"rgb("+l[0]+","+l[1]+","+l[2]+")":s}brighten(i){let s=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(i)});else if(ki(i)&&i!==0)for(let l=0;l<3;l++)s[l]+=xn(255*i),s[l]<0&&(s[l]=0),s[l]>255&&(s[l]=255);return this}setOpacity(i){return this.rgba[3]=i,this}tweenTo(i,s){let l=this.rgba,u=i.rgba;if(!ki(l[0])||!ki(u[0]))return i.input||"none";let h=u[3]!==1||l[3]!==1,f=(x,C)=>x+(l[C]-x)*(1-s),g=u.slice(0,3).map(f).map(Math.round);return h&&g.push(f(u[3],3)),(h?"rgba(":"rgb(")+g.join(",")+")"}}ei.names={white:"#ffffff",black:"#000000"},ei.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(w){return[xn(w[1]),xn(w[2]),xn(w[3]),parseFloat(w[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(w){return[xn(w[1]),xn(w[2]),xn(w[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(w){return[xn(w[1]+w[1],16),xn(w[2]+w[2],16),xn(w[3]+w[3],16),Ho(w[4])?xn(w[4]+w[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(w){return[xn(w[1],16),xn(w[2],16),xn(w[3],16),Ho(w[4])?xn(w[4],16)/255:1]}}],ei.None=new ei("");let{parse:ts}=ei,{win:Sr}=at,{isNumber:es,objectEach:qs}=me;class wr{constructor(i,s,l){this.pos=NaN,this.options=s,this.elem=i,this.prop=l}dSetter(){let i=this.paths,s=i&&i[0],l=i&&i[1],u=this.now||0,h=[];if(u!==1&&s&&l)if(s.length===l.length&&u<1)for(let f=0;f<l.length;f++){let g=s[f],x=l[f],C=[];for(let P=0;P<x.length;P++){let M=g[P],N=x[P];es(M)&&es(N)&&!(x[0]==="A"&&(P===4||P===5))?C[P]=M+u*(N-M):C[P]=N}h.push(C)}else h=l;else h=this.toD||[];this.elem.attr("d",h,void 0,!0)}update(){let i=this.elem,s=this.prop,l=this.now,u=this.options.step;this[s+"Setter"]?this[s+"Setter"]():i.attr?i.element&&i.attr(s,l,null,!0):i.style[s]=l+this.unit,u&&u.call(i,l,this)}run(i,s,l){let u=this,h=u.options,f=function(C){return!f.stopped&&u.step(C)},g=Sr.requestAnimationFrame||function(C){setTimeout(C,13)},x=function(){for(let C=0;C<wr.timers.length;C++)wr.timers[C]()||wr.timers.splice(C--,1);wr.timers.length&&g(x)};i!==s||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=i,this.end=s,this.unit=l,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&wr.timers.push(f)===1&&g(x)):(delete h.curAnim[this.prop],h.complete&&Object.keys(h.curAnim).length===0&&h.complete.call(this.elem))}step(i){let s,l,u=+new Date,h=this.options,f=this.elem,g=h.complete,x=h.duration,C=h.curAnim;return f.attr&&!f.element?s=!1:i||u>=x+this.startTime?(this.now=this.end,this.pos=1,this.update(),C[this.prop]=!0,l=!0,qs(C,function(P){P!==!0&&(l=!1)}),l&&g&&g.call(f),s=!1):(this.pos=h.easing((u-this.startTime)/x),this.now=this.start+(this.end-this.start)*this.pos,this.update(),s=!0),s}initPath(i,s,l){let u=i.startX,h=i.endX,f=l.slice(),g=i.isArea,x=g?2:1,C=s&&l.length>s.length&&l.hasStackedCliffs,P,M,N,U,V=s&&s.slice();if(!V||C)return[f,f];function et(Q,dt){for(;Q.length<M;){let ft=Q[0],Rt=dt[M-Q.length];if(Rt&&ft[0]==="M"&&(Rt[0]==="C"?Q[0]=["C",ft[1],ft[2],ft[1],ft[2],ft[1],ft[2]]:Q[0]=["L",ft[1],ft[2]]),Q.unshift(ft),g){let Nt=Q.pop();Q.push(Q[Q.length-1],Nt)}}}function rt(Q){for(;Q.length<M;){let dt=Q[Math.floor(Q.length/x)-1].slice();if(dt[0]==="C"&&(dt[1]=dt[5],dt[2]=dt[6]),g){let ft=Q[Math.floor(Q.length/x)].slice();Q.splice(Q.length/2,0,dt,ft)}else Q.push(dt)}}if(u&&h&&h.length){for(N=0;N<u.length;N++){if(u[N]===h[0]){P=N;break}if(u[0]===h[h.length-u.length+N]){P=N,U=!0;break}if(u[u.length-1]===h[h.length-u.length+N]){P=u.length-N;break}}P===void 0&&(V=[])}return V.length&&es(P)&&(M=f.length+P*x,U?(et(V,f),rt(f)):(et(f,V),rt(V))),[V,f]}fillSetter(){wr.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,ts(this.start).tweenTo(ts(this.end),this.pos),void 0,!0)}}wr.timers=[];let{defined:Ks,getStyle:Uc,isArray:va,isNumber:rl,isObject:Fc,merge:Tu,objectEach:Eu,pick:Au}=me;function _l(w){return Fc(w)?Tu({duration:500,defer:0},w):{duration:w?500:0,defer:0}}function Gc(w,i){let s=wr.timers.length;for(;s--;)wr.timers[s].elem!==w||i&&i!==wr.timers[s].prop||(wr.timers[s].stopped=!0)}let hn={animate:function(w,i,s){let l,u="",h,f,g;Fc(s)||(g=arguments,s={duration:g[2],easing:g[3],complete:g[4]}),rl(s.duration)||(s.duration=400),s.easing=typeof s.easing=="function"?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=Tu(i),Eu(i,function(x,C){Gc(w,C),f=new wr(w,s,C),h=void 0,C==="d"&&va(i.d)?(f.paths=f.initPath(w,w.pathArray,i.d),f.toD=i.d,l=0,h=1):w.attr?l=w.attr(C):(l=parseFloat(Uc(w,C))||0,C!=="opacity"&&(u="px")),h||(h=x),typeof h=="string"&&h.match("px")&&(h=h.replace(/px/g,"")),f.run(l,h,u)})},animObject:_l,getDeferredAnimation:function(w,i,s){let l=_l(i),u=s?[s]:w.series,h=0,f=0;return u.forEach(g=>{let x=_l(g.options.animation);h=Fc(i)&&Ks(i.defer)?l.defer:Math.max(h,x.duration+x.defer),f=Math.min(l.duration,x.duration)}),w.renderer.forExport&&(h=0),{defer:Math.max(0,h-f),duration:Math.min(h,f)}},setAnimation:function(w,i){i.renderer.globalAnimation=Au(w,i.options.chart.animation,!0)},stop:Gc},{SVG_NS:nr,win:Cr}=at,{attr:Sa,createElement:wa,css:Wl,error:Vl,isFunction:Xl,isString:go,objectEach:sl,splat:Uo}=me,{trustedTypes:mo}=Cr,yo=mo&&Xl(mo.createPolicy)&&mo.createPolicy("highcharts",{createHTML:w=>w}),Zs=yo?yo.createHTML(""):"";class pi{static filterUserAttributes(i){return sl(i,(s,l)=>{let u=!0;pi.allowedAttributes.indexOf(l)===-1&&(u=!1),["background","dynsrc","href","lowsrc","src"].indexOf(l)!==-1&&(u=go(s)&&pi.allowedReferences.some(h=>s.indexOf(h)===0)),u||(Vl(33,!1,void 0,{"Invalid attribute in config":`${l}`}),delete i[l]),go(s)&&i[l]&&(i[l]=s.replace(/</g,"<"))}),i}static parseStyle(i){return i.split(";").reduce((s,l)=>{let u=l.split(":").map(f=>f.trim()),h=u.shift();return h&&u.length&&(s[h.replace(/-([a-z])/g,f=>f[1].toUpperCase())]=u.join(":")),s},{})}static setElementHTML(i,s){i.innerHTML=pi.emptyHTML,s&&new pi(s).addToDOM(i)}constructor(i){this.nodes=typeof i=="string"?this.parseMarkup(i):i}addToDOM(i){return function s(l,u){let h;return Uo(l).forEach(function(f){let g,x=f.tagName,C=f.textContent?at.doc.createTextNode(f.textContent):void 0,P=pi.bypassHTMLFiltering;if(x)if(x==="#text")g=C;else if(pi.allowedTags.indexOf(x)!==-1||P){let M=x==="svg"?nr:u.namespaceURI||nr,N=at.doc.createElementNS(M,x),U=f.attributes||{};sl(f,function(V,et){et!=="tagName"&&et!=="attributes"&&et!=="children"&&et!=="style"&&et!=="textContent"&&(U[et]=V)}),Sa(N,P?U:pi.filterUserAttributes(U)),f.style&&Wl(N,f.style),C&&N.appendChild(C),s(f.children||[],N),g=N}else Vl(33,!1,void 0,{"Invalid tagName in config":x});g&&u.appendChild(g),h=g}),h}(this.nodes,i)}parseMarkup(i){let s,l=[];i=i.trim().replace(/ style=(["'])/g," data-style=$1");try{s=new DOMParser().parseFromString(yo?yo.createHTML(i):i,"text/html")}catch{}if(!s){let h=wa("div");h.innerHTML=i,s={body:h}}let u=(h,f)=>{let g=h.nodeName.toLowerCase(),x={tagName:g};g==="#text"&&(x.textContent=h.textContent||"");let C=h.attributes;if(C){let P={};[].forEach.call(C,M=>{M.name==="data-style"?x.style=pi.parseStyle(M.value):P[M.name]=M.value}),x.attributes=P}if(h.childNodes.length){let P=[];[].forEach.call(h.childNodes,M=>{u(M,P)}),P.length&&(x.children=P)}f.push(x)};return[].forEach.call(s.body.childNodes,h=>u(h,l)),l}}pi.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],pi.allowedReferences=["https://","http://","mailto:","/","../","./","#"],pi.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],pi.emptyHTML=Zs,pi.bypassHTMLFiltering=!1;let{defaultOptions:bo,defaultTime:Yl}=ai,{pageLang:Fo}=at,{extend:Qs,getNestedProperty:ms,isArray:Md,isNumber:Js,isObject:ol,isString:Ru,pick:ql,ucfirst:xo}=me,Lr={add:(w,i)=>w+i,divide:(w,i)=>i!==0?w/i:"",eq:(w,i)=>w==i,each:function(w){let i=arguments[arguments.length-1];return!!Md(w)&&w.map((s,l)=>ys(i.body,Qs(ol(s)?s:{"@this":s},{"@index":l,"@first":l===0,"@last":l===w.length-1}))).join("")},ge:(w,i)=>w>=i,gt:(w,i)=>w>i,if:w=>!!w,le:(w,i)=>w<=i,lt:(w,i)=>w<i,multiply:(w,i)=>w*i,ne:(w,i)=>w!=i,subtract:(w,i)=>w-i,ucfirst:xo,unless:w=>!w},Vn={},_c=w=>/^["'].+["']$/.test(w);function ys(w="",i,s){let l=/\{([\p{L}\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/gu,u=/\(([\p{L}\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/gu,h=[],f=/f$/,g=/\.(\d)/,x=(s==null?void 0:s.options.lang)||bo.lang,C=s&&s.time||Yl,P=s&&s.numberFormatter||Go,M=(rt="")=>{let Q;return rt==="true"||rt!=="false"&&((Q=Number(rt)).toString()===rt?Q:_c(rt)?rt.slice(1,-1):ms(rt,i))},N,U,V=0,et;for(;(N=l.exec(w))!==null;){let rt=N,Q=u.exec(N[1]);Q&&(N=Q,et=!0),U&&U.isBlock||(U={ctx:i,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 dt=(U.isBlock?rt:N)[1].split(" ")[0].replace("#","");Lr[dt]&&(U.isBlock&&dt===U.fn&&V++,U.fn||(U.fn=dt));let ft=N[1]==="else";if(U.isBlock&&U.fn&&(N[1]===`/${U.fn}`||ft))if(V)!ft&&V--;else{let Rt=U.startInner,Nt=w.substr(Rt,N.index-Rt);U.body===void 0?(U.body=Nt,U.startInner=N.index+N[0].length):U.elseBody=Nt,U.find+=Nt+N[0],ft||(h.push(U),U=void 0)}else U.isBlock||h.push(U);if(Q&&!(U!=null&&U.isBlock))break}return h.forEach(rt=>{let Q,dt,{body:ft,elseBody:Rt,expression:Nt,fn:Lt}=rt;if(Lt){let Ut=[rt],$t=[],qt=Nt.length,be=0,Ce;for(dt=0;dt<=qt;dt++){let Ie=Nt.charAt(dt);Ce||Ie!=='"'&&Ie!=="'"?Ce===Ie&&(Ce=""):Ce=Ie,Ce||Ie!==" "&&dt!==qt||($t.push(Nt.substr(be,dt-be)),be=dt+1)}for(dt=Lr[Lt].length;dt--;)Ut.unshift(M($t[dt+1]));Q=Lr[Lt].apply(i,Ut),rt.isBlock&&typeof Q=="boolean"&&(Q=ys(Q?ft:Rt,i,s))}else{let Ut=_c(Nt)?[Nt]:Nt.split(":");if(Q=M(Ut.shift()||""),Ut.length&&typeof Q=="number"){let $t=Ut.join(":");if(f.test($t)){let qt=parseInt(($t.match(g)||["","-1"])[1],10);Q!==null&&(Q=P(Q,qt,x.decimalPoint,$t.indexOf(",")>-1?x.thousandsSep:""))}else Q=C.dateFormat($t,Q)}u.lastIndex=0,u.test(rt.find)&&Ru(Q)&&(Q=`"${Q}"`)}w=w.replace(rt.find,ql(Q,""))}),et?ys(w,i,s):w}function Go(w,i,s,l){var et;i=+i;let u,h,[f,g]=(w=+w||0).toString().split("e").map(Number),x=((et=this==null?void 0:this.options)==null?void 0:et.lang)||bo.lang,C=(w.toString().split(".")[1]||"").split("e")[0].length,P=i,M={};s??(s=x.decimalPoint),l??(l=x.thousandsSep),i===-1?i=Math.min(C,20):Js(i)?i&&g<0&&((h=i+g)>=0?(f=+f.toExponential(h).split("e")[0],i=h):(f=Math.floor(f),w=i<20?+(f*Math.pow(10,g)).toFixed(i):0,g=0)):i=2,g&&(i??(i=2),w=f),Js(i)&&i>=0&&(M.minimumFractionDigits=i,M.maximumFractionDigits=i),l===""&&(M.useGrouping=!1);let N=l||s,U=N?"en":(this==null?void 0:this.locale)||x.locale||Fo,V=JSON.stringify(M)+U;return u=(Vn[V]??(Vn[V]=new Intl.NumberFormat(U,M))).format(w),N&&(u=u.replace(/([,\.])/g,"_$1").replace(/_\,/g,l??",").replace("_.",s??".")),(i||+u!=0)&&(!(g<0)||P)||(u="0"),g&&+u!=0&&(u+="e"+(g<0?"":"+")+g),u}let Ir={dateFormat:function(w,i,s){return Yl.dateFormat(w,i,s)},format:ys,helpers:Lr,numberFormat:Go};(function(w){let i;w.rendererTypes={},w.getRendererType=function(s=i){return w.rendererTypes[s]||w.rendererTypes[i]},w.registerRendererType=function(s,l,u){w.rendererTypes[s]=l,(!i||u)&&(i=s,at.Renderer=l)}})(m||(m={}));let is=m,{clamp:Ou,pick:Wr,pushUnique:Nn,stableSort:Ca}=me;(S||(S={})).distribute=function w(i,s,l){let u=i,h=u.reducedLen||s,f=(ft,Rt)=>ft.target-Rt.target,g=[],x=i.length,C=[],P=g.push,M,N,U,V=!0,et,rt,Q=0,dt;for(M=x;M--;)Q+=i[M].size;if(Q>h){for(Ca(i,(ft,Rt)=>(Rt.rank||0)-(ft.rank||0)),U=(dt=i[0].rank===i[i.length-1].rank)?x/2:-1,N=dt?U:x-1;U&&Q>h;)et=i[M=Math.floor(N)],Nn(C,M)&&(Q-=et.size),N+=U,dt&&N>=i.length&&(U/=2,N=U);C.sort((ft,Rt)=>Rt-ft).forEach(ft=>P.apply(g,i.splice(ft,1)))}for(Ca(i,f),i=i.map(ft=>({size:ft.size,targets:[ft.target],align:Wr(ft.align,.5)}));V;){for(M=i.length;M--;)et=i[M],rt=(Math.min.apply(0,et.targets)+Math.max.apply(0,et.targets))/2,et.pos=Ou(rt-et.size*et.align,0,s-et.size);for(M=i.length,V=!1;M--;)M>0&&i[M-1].pos+i[M-1].size>i[M].pos&&(i[M-1].size+=i[M].size,i[M-1].targets=i[M-1].targets.concat(i[M].targets),i[M-1].align=.5,i[M-1].pos+i[M-1].size>s&&(i[M-1].pos=s-i[M-1].size),i.splice(M,1),V=!0)}return P.apply(u,g),M=0,i.some(ft=>{let Rt=0;return(ft.targets||[]).some(()=>(u[M].pos=ft.pos+Rt,l!==void 0&&Math.abs(u[M].pos-u[M].target)>l?(u.slice(0,M+1).forEach(Nt=>delete Nt.pos),u.reducedLen=(u.reducedLen||s)-.1*s,u.reducedLen>.1*s&&w(u,s,l),!0):(Rt+=u[M].size,M++,!1)))}),Ca(u,f),u};let Nr=S,{animate:ns,animObject:Kl,stop:vo}=hn,{deg2rad:_o,doc:ka,svg:Zl,SVG_NS:Ma,win:rs,isFirefox:Ta}=at,{addEvent:Vr,attr:to,createElement:Ql,crisp:Rs,css:bs,defined:Xn,erase:Jl,extend:So,fireEvent:Os,getAlignFactor:Wo,isArray:Vo,isFunction:xs,isNumber:wo,isObject:tc,isString:Ea,merge:Aa,objectEach:eo,pick:zr,pInt:ec,pushUnique:Xr,replaceNested:Xo,syncTimeout:ic,uniqueKey:Ra}=me;class Fn{_defaultGetter(i){let s=zr(this[i+"Value"],this[i],this.element?this.element.getAttribute(i):null,0);return/^-?[\d\.]+$/.test(s)&&(s=parseFloat(s)),s}_defaultSetter(i,s,l){l.setAttribute(s,i)}add(i){let s,l=this.renderer,u=this.element;return i&&(this.parentGroup=i),this.textStr!==void 0&&this.element.nodeName==="text"&&l.buildText(this),this.added=!0,(!i||i.handleZ||this.zIndex)&&(s=this.zIndexSetter()),s||(i?i.element:l.box).appendChild(u),this.onAdd&&this.onAdd(),this}addClass(i,s){let l=s?"":this.attr("class")||"";return(i=(i||"").split(/ /g).reduce(function(u,h){return l.indexOf(h)===-1&&u.push(h),u},l?[l]:[]).join(" "))!==l&&this.attr("class",i),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(i,s,l,u=!0){let h=this.renderer,f=h.alignedObjects,g=!!i;i?(this.alignOptions=i,this.alignByTranslate=s,this.alignTo=l):(i=this.alignOptions||{},s=this.alignByTranslate,l=this.alignTo);let x=!l||Ea(l)?l||"renderer":void 0;x&&(g&&Xr(f,this),l=void 0);let C=zr(l,h[x],h),P=(C.x||0)+(i.x||0)+((C.width||0)-(i.width||0))*Wo(i.align),M=(C.y||0)+(i.y||0)+((C.height||0)-(i.height||0))*Wo(i.verticalAlign),N={"text-align":i==null?void 0:i.align};return N[s?"translateX":"x"]=Math.round(P),N[s?"translateY":"y"]=Math.round(M),u&&(this[this.placed?"animate":"attr"](N),this.placed=!0),this.alignAttr=N,this}alignSetter(i){let s={left:"start",center:"middle",right:"end"};s[i]&&(this.alignValue=i,this.element.setAttribute("text-anchor",s[i]))}animate(i,s,l){let u=Kl(zr(s,this.renderer.globalAnimation,!0)),h=u.defer;return ka.hidden&&(u.duration=0),u.duration!==0?(l&&(u.complete=l),ic(()=>{this.element&&ns(this,i,u)},h)):(this.attr(i,void 0,l||u.complete),eo(i,function(f,g){u.step&&u.step.call(this,f,{prop:g,pos:1,elem:this})},this)),this}applyTextOutline(i){let s=this.element;i.indexOf("contrast")!==-1&&(i=i.replace(/contrast/g,this.renderer.getContrast(s.style.fill)));let l=i.split(" "),u=l[l.length-1],h=l[0];if(h&&h!=="none"&&at.svg){this.fakeTS=!0,h=h.replace(/(^[\d\.]+)(.*?)$/g,function(P,M,N){return 2*Number(M)+N}),this.removeTextOutline();let f=ka.createElementNS(Ma,"tspan");to(f,{class:"highcharts-text-outline",fill:u,stroke:u,"stroke-width":h,"stroke-linejoin":"round"});let g=s.querySelector("textPath")||s;[].forEach.call(g.childNodes,P=>{let M=P.cloneNode(!0);M.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(N=>M.removeAttribute(N)),f.appendChild(M)});let x=0;[].forEach.call(g.querySelectorAll("text tspan"),P=>{x+=Number(P.getAttribute("dy"))});let C=ka.createElementNS(Ma,"tspan");C.textContent="",to(C,{x:Number(s.getAttribute("x")),dy:-x}),f.appendChild(C),g.insertBefore(f,g.firstChild)}}attr(i,s,l,u){let{element:h}=this,f=Fn.symbolCustomAttribs,g,x,C=this,P;return typeof i=="string"&&s!==void 0&&(g=i,(i={})[g]=s),typeof i=="string"?C=(this[i+"Getter"]||this._defaultGetter).call(this,i,h):(eo(i,function(M,N){P=!1,u||vo(this,N),this.symbolName&&f.indexOf(N)!==-1&&(x||(this.symbolAttr(i),x=!0),P=!0),this.rotation&&(N==="x"||N==="y")&&(this.doTransform=!0),P||(this[N+"Setter"]||this._defaultSetter).call(this,M,N,h)},this),this.afterSetters()),l&&l.call(this),C}clip(i){if(i&&!i.clipPath){let s=Ra()+"-",l=this.renderer.createElement("clipPath").attr({id:s}).add(this.renderer.defs);So(i,{clipPath:l,id:s,count:0}),i.add(l)}return this.attr("clip-path",i?`url(${this.renderer.url}#${i.id})`:"none")}crisp(i,s){s=Math.round(s||i.strokeWidth||0);let l=i.x||this.x||0,u=i.y||this.y||0,h=(i.width||this.width||0)+l,f=(i.height||this.height||0)+u,g=Rs(l,s),x=Rs(u,s);return So(i,{x:g,y:x,width:Rs(h,s)-g,height:Rs(f,s)-x}),Xn(i.strokeWidth)&&(i.strokeWidth=s),i}complexColor(i,s,l){let u=this.renderer,h,f,g,x,C,P,M,N,U,V,et=[],rt;Os(this.renderer,"complexColor",{args:arguments},function(){if(i.radialGradient?f="radialGradient":i.linearGradient&&(f="linearGradient"),f){if(g=i[f],C=u.gradients,P=i.stops,U=l.radialReference,Vo(g)&&(i[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"}),f==="radialGradient"&&U&&!Xn(g.gradientUnits)&&(x=g,g=Aa(g,u.getRadialAttr(U,x),{gradientUnits:"userSpaceOnUse"})),eo(g,function(Q,dt){dt!=="id"&&et.push(dt,Q)}),eo(P,function(Q){et.push(Q)}),C[et=et.join(",")])V=C[et].attr("id");else{g.id=V=Ra();let Q=C[et]=u.createElement(f).attr(g).add(u.defs);Q.radAttr=x,Q.stops=[],P.forEach(function(dt){dt[1].indexOf("rgba")===0?(M=(h=ei.parse(dt[1])).get("rgb"),N=h.get("a")):(M=dt[1],N=1);let ft=u.createElement("stop").attr({offset:dt[0],"stop-color":M,"stop-opacity":N}).add(Q);Q.stops.push(ft)})}rt="url("+u.url+"#"+V+")",l.setAttribute(s,rt),l.gradient=et,i.toString=function(){return rt}}})}css(i){let s=this.styles,l={},u=this.element,h,f=!s;if(s&&eo(i,function(g,x){s&&s[x]!==g&&(l[x]=g,f=!0)}),f){s&&(i=So(s,l)),i.width===null||i.width==="auto"?delete this.textWidth:u.nodeName.toLowerCase()==="text"&&i.width&&(h=this.textWidth=ec(i.width)),So(this.styles,i),h&&!Zl&&this.renderer.forExport&&delete i.width;let g=Ta&&i.fontSize||null;g&&(wo(g)||/^\d+$/.test(g))&&(i.fontSize+="px");let x=Aa(i);u.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(C=>x&&delete x[C]),x.color&&(x.fill=x.color)),bs(u,x)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),i.textOutline&&this.applyTextOutline(i.textOutline)),this}dashstyleSetter(i){let s,l=this["stroke-width"];if(l==="inherit"&&(l=1),i=i&&i.toLowerCase()){let u=i.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(s=u.length;s--;)u[s]=""+ec(u[s])*zr(l,NaN);i=u.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",i)}}destroy(){var x;let i=this,s=i.element||{},l=i.renderer,u=s.ownerSVGElement,h=s.nodeName==="SPAN"&&i.parentGroup||void 0,f,g;if(s.onclick=s.onmouseout=s.onmouseover=s.onmousemove=s.point=null,vo(i),i.clipPath&&u){let C=i.clipPath;[].forEach.call(u.querySelectorAll("[clip-path],[CLIP-PATH]"),function(P){P.getAttribute("clip-path").indexOf(C.element.id)>-1&&P.removeAttribute("clip-path")}),i.clipPath=C.destroy()}if(i.connector=(x=i.connector)==null?void 0:x.destroy(),i.stops){for(g=0;g<i.stops.length;g++)i.stops[g].destroy();i.stops.length=0,i.stops=void 0}for(i.safeRemoveChild(s);h&&h.div&&h.div.childNodes.length===0;)f=h.parentGroup,i.safeRemoveChild(h.div),delete h.div,h=f;i.alignOptions&&Jl(l.alignedObjects,i),eo(i,function(C,P){i[P]&&i[P].parentGroup===i&&i[P].destroy&&i[P].destroy(),delete i[P]})}dSetter(i,s,l){Vo(i)&&(typeof i[0]=="string"&&(i=this.renderer.pathToSegments(i)),this.pathArray=i,i=i.reduce((u,h,f)=>h&&h.join?(f?u+" ":"")+h.join(" "):(h||"").toString(),"")),/(NaN| {2}|^$)/.test(i)&&(i="M 0 0"),this[s]!==i&&(l.setAttribute(s,i),this[s]=i)}fillSetter(i,s,l){typeof i=="string"?l.setAttribute(s,i):i&&this.complexColor(i,s,l)}hrefSetter(i,s,l){l.setAttributeNS("http://www.w3.org/1999/xlink",s,i)}getBBox(i,s){let l,u,h,f,{alignValue:g,element:x,renderer:C,styles:P,textStr:M}=this,{cache:N,cacheKeys:U}=C,V=x.namespaceURI===this.SVG_NS,et=zr(s,this.rotation,0),rt=C.styledMode?x&&Fn.prototype.getStyle.call(x,"font-size"):P.fontSize;if(Xn(M)&&((f=M.toString()).indexOf("<")===-1&&(f=f.replace(/\d/g,"0")),f+=["",C.rootFontSize,rt,et,this.textWidth,g,P.lineClamp,P.textOverflow,P.fontWeight].join(",")),f&&!i&&(l=N[f]),!l||l.polygon){if(V||C.forExport){try{h=this.fakeTS&&function(dt){let ft=x.querySelector(".highcharts-text-outline");ft&&bs(ft,{display:dt})},xs(h)&&h("none"),l=x.getBBox?So({},x.getBBox()):{width:x.offsetWidth,height:x.offsetHeight,x:0,y:0},xs(h)&&h("")}catch{}(!l||l.width<0)&&(l={x:0,y:0,width:0,height:0})}else l=this.htmlGetBBox();u=l.height,V&&(l.height=u={"11px,17":14,"13px,20":16}[`${rt||""},${Math.round(u)}`]||u),et&&(l=this.getRotatedBox(l,et));let Q={bBox:l};Os(this,"afterGetBBox",Q),l=Q.bBox}if(f&&(M===""||l.height>0)){for(;U.length>250;)delete N[U.shift()];N[f]||U.push(f),N[f]=l}return l}getRotatedBox(i,s){let{x:l,y:u,width:h,height:f}=i,{alignValue:g,translateY:x,rotationOriginX:C=0,rotationOriginY:P=0}=this,M=Wo(g),N=Number(this.element.getAttribute("y")||0)-(x?0:u),U=s*_o,V=(s-90)*_o,et=Math.cos(U),rt=Math.sin(U),Q=h*et,dt=h*rt,ft=Math.cos(V),Rt=Math.sin(V),[[Nt,Lt],[Ut,$t]]=[C,P].map(fi=>[fi-fi*et,fi*rt]),qt=l+M*(h-Q)+Nt+$t+N*ft,be=qt+Q,Ce=be-f*ft,Ie=Ce-Q,pe=u+N-M*dt-Lt+Ut+N*Rt,Ne=pe+dt,Qe=Ne-f*Rt,wi=Qe-dt,Xe=Math.min(qt,be,Ce,Ie),mi=Math.min(pe,Ne,Qe,wi),$e=Math.max(qt,be,Ce,Ie)-Xe,Je=Math.max(pe,Ne,Qe,wi)-mi;return{x:Xe,y:mi,width:$e,height:Je,polygon:[[qt,pe],[be,Ne],[Ce,Qe],[Ie,wi]]}}getStyle(i){return rs.getComputedStyle(this.element||this,"").getPropertyValue(i)}hasClass(i){return(""+this.attr("class")).split(" ").indexOf(i)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(i,s){this.onEvents={},this.opacity=1,this.SVG_NS=Ma,this.element=s==="span"||s==="body"?Ql(s):ka.createElementNS(this.SVG_NS,s),this.renderer=i,this.styles={},Os(this,"afterInit")}on(i,s){let{onEvents:l}=this;return l[i]&&l[i](),l[i]=Vr(this.element,i,s),this}opacitySetter(i,s,l){let u=Number(Number(i).toFixed(3));this.opacity=u,l.setAttribute(s,u)}reAlign(){var i;(i=this.alignOptions)!=null&&i.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(i){return this.attr("class",(""+this.attr("class")).replace(Ea(i)?RegExp(`(^| )${i}( |$)`):i," ").replace(/ +/g," ").trim())}removeTextOutline(){let i=this.element.querySelector("tspan.highcharts-text-outline");i&&this.safeRemoveChild(i)}safeRemoveChild(i){let s=i.parentNode;s&&s.removeChild(i)}setRadialReference(i){let s=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=i,s&&s.radAttr&&s.animate(this.renderer.getRadialAttr(i,s.radAttr)),this}shadow(i){var h;let{renderer:s}=this,l=Aa(((h=this.parentGroup)==null?void 0:h.rotation)===90?{offsetX:-1,offsetY:-1}:{},tc(i)?i:{}),u=s.shadowDefinition(l);return this.attr({filter:i?`url(${s.url}#${u})`:"none"})}show(i=!0){return this.attr({visibility:i?"inherit":"visible"})}"stroke-widthSetter"(i,s,l){this[s]=i,l.setAttribute(s,i)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let i=this.getStyle("stroke-width"),s=0,l;return/px$/.test(i)?s=ec(i):i!==""&&(to(l=ka.createElementNS(Ma,"rect"),{width:i,"stroke-width":0}),this.element.parentNode.appendChild(l),s=l.getBBox().width,l.parentNode.removeChild(l)),s}symbolAttr(i){let s=this;Fn.symbolCustomAttribs.forEach(function(l){s[l]=zr(i[l],s[l])}),s.attr({d:s.renderer.symbols[s.symbolName](s.x,s.y,s.width,s.height,s)})}textSetter(i){i!==this.textStr&&(delete this.textPxLength,this.textStr=i,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(i){let s=this.element,l=s.getElementsByTagName("title")[0]||ka.createElementNS(this.SVG_NS,"title");s.insertBefore?s.insertBefore(l,s.firstChild):s.appendChild(l),l.textContent=Xo(zr(i,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let i=this.element;return i.parentNode.appendChild(i),this}translate(i,s){return this.attr({translateX:i,translateY:s})}updateTransform(i="transform"){var N;let{element:s,matrix:l,rotation:u=0,rotationOriginX:h,rotationOriginY:f,scaleX:g,scaleY:x,translateX:C=0,translateY:P=0}=this,M=["translate("+C+","+P+")"];Xn(l)&&M.push("matrix("+l.join(",")+")"),u&&(M.push("rotate("+u+" "+zr(h,s.getAttribute("x"),0)+" "+zr(f,s.getAttribute("y")||0)+")"),((N=this.text)==null?void 0:N.element.tagName)==="SPAN"&&this.text.attr({rotation:u,rotationOriginX:(h||0)-this.padding,rotationOriginY:(f||0)-this.padding})),(Xn(g)||Xn(x))&&M.push("scale("+zr(g,1)+" "+zr(x,1)+")"),M.length&&!(this.text||this).textPath&&s.setAttribute(i,M.join(" "))}visibilitySetter(i,s,l){i==="inherit"?l.removeAttribute(s):this[s]!==i&&l.setAttribute(s,i),this[s]=i}xGetter(i){return this.element.nodeName==="circle"&&(i==="x"?i="cx":i==="y"&&(i="cy")),this._defaultGetter(i)}zIndexSetter(i,s){let l=this.renderer,u=this.parentGroup,h=(u||l).element||l.box,f=this.element,g=h===l.box,x,C,P,M=!1,N,U=this.added,V;if(Xn(i)?(f.setAttribute("data-z-index",i),i=+i,this[s]===i&&(U=!1)):Xn(this[s])&&f.removeAttribute("data-z-index"),this[s]=i,U){for((i=this.zIndex)&&u&&(u.handleZ=!0),V=(x=h.childNodes).length-1;V>=0&&!M;V--)N=!Xn(P=(C=x[V]).getAttribute("data-z-index")),C!==f&&(i<0&&N&&!g&&!V?(h.insertBefore(f,x[V]),M=!0):(ec(P)<=i||N&&(!Xn(i)||i>=0))&&(h.insertBefore(f,x[V+1]),M=!0));M||(h.insertBefore(f,x[g?3:0]),M=!0)}return M}}Fn.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Fn.prototype.strokeSetter=Fn.prototype.fillSetter,Fn.prototype.yGetter=Fn.prototype.xGetter,Fn.prototype.matrixSetter=Fn.prototype.rotationOriginXSetter=Fn.prototype.rotationOriginYSetter=Fn.prototype.rotationSetter=Fn.prototype.scaleXSetter=Fn.prototype.scaleYSetter=Fn.prototype.translateXSetter=Fn.prototype.translateYSetter=Fn.prototype.verticalAlignSetter=function(w,i){this[i]=w,this.doTransform=!0};let ss=Fn,{defined:nc,extend:Oa,getAlignFactor:Pa,isNumber:Ba,merge:rc,pick:Yo,removeEvent:Pu}=me;class kr extends ss{constructor(i,s,l,u,h,f,g,x,C,P){let M;super(i,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=s,this.x=l,this.y=u,this.anchorX=f,this.anchorY=g,this.baseline=C,this.className=P,this.addClass(P==="button"?"highcharts-no-tooltip":"highcharts-label"),P&&this.addClass("highcharts-"+P),this.text=i.text(void 0,0,0,x).attr({zIndex:1}),typeof h=="string"&&((M=/^url\((.*?)\)$/.test(h))||this.renderer.symbols[h])&&(this.symbolKey=h),this.bBox=kr.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=i.styledMode||M,this.deferredAttr={},this.alignFactor=0}alignSetter(i){let s=Pa(i);this.textAlign=i,s!==this.alignFactor&&(this.alignFactor=s,this.bBox&&Ba(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(i,s){this.anchorX=i,this.boxAttr(s,Math.round(i)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(i,s){this.anchorY=i,this.boxAttr(s,i-this.ySetting)}boxAttr(i,s){this.box?this.box.attr(i,s):this.deferredAttr[i]=s}css(i){if(i){let s={};i=rc(i),kr.textProps.forEach(l=>{i[l]!==void 0&&(s[l]=i[l],delete i[l])}),this.text.css(s),"fontSize"in s||"fontWeight"in s?this.updateTextPadding():("width"in s||"textOverflow"in s)&&this.updateBoxSize()}return ss.prototype.css.call(this,i)}destroy(){Pu(this.element,"mouseenter"),Pu(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),ss.prototype.destroy.call(this)}fillSetter(i,s){i&&(this.needsBox=!0),this.fill=i,this.boxAttr(s,i)}getBBox(i,s){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:l,height:u=0,translateX:h=0,translateY:f=0,width:g=0}=this,x=Yo(this.paddingLeft,l),C=s??(this.rotation||0),P={width:g,height:u,x:h+this.bBox.x-x,y:f+this.bBox.y-l+this.baselineOffset};return C&&(P=this.getRotatedBox(P,C)),P}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(i){this.heightSetting=i,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Yo(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&nc(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(i,s){Ba(i)?i!==this[s]&&(this[s]=i,this.updateTextPadding()):this[s]=void 0}rSetter(i,s){this.boxAttr(s,i)}strokeSetter(i,s){this.stroke=i,this.boxAttr(s,i)}"stroke-widthSetter"(i,s){i&&(this.needsBox=!0),this["stroke-width"]=i,this.boxAttr(s,i)}"text-alignSetter"(i){this.textAlign=this["text-align"]=i,this.updateTextPadding()}textSetter(i){i!==void 0&&this.text.attr({text:i}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let i,s=this.text,l={},u=this.padding,h=this.bBox=(!Ba(this.widthSetting)||!Ba(this.heightSetting)||this.textAlign)&&nc(s.textStr)?s.getBBox(void 0,0):kr.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||h.height||0)+2*u;let f=this.renderer.fontMetrics(s);if(this.baselineOffset=u+Math.min((this.text.firstLineMetrics||f).b,h.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-f.h)/2),this.needsBox&&!s.textPath){if(!this.box){let g=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();g.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),g.add(this)}i=this.getCrispAdjust(),l.x=i,l.y=(this.baseline?-this.baselineOffset:0)+i,l.width=Math.round(this.width),l.height=Math.round(this.height),this.box.attr(Oa(l,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let i=this.text,s=i.styles.textAlign||this.textAlign;if(!i.textPath){this.updateBoxSize();let l=this.baseline?0:this.baselineOffset,u=(this.paddingLeft??this.padding)+Pa(s)*(this.widthSetting??this.bBox.width);(u!==i.x||l!==i.y)&&(i.attr({align:s,x:u}),l!==void 0&&i.attr("y",l)),i.x=u,i.y=l}}widthSetter(i){this.widthSetting=Ba(i)?i:void 0,this.doUpdate=!0}getPaddedWidth(){let i=this.padding,s=Yo(this.paddingLeft,i),l=Yo(this.paddingRight,i);return(this.widthSetting||this.bBox.width||0)+s+l}xSetter(i){this.x=i,this.alignFactor&&(i-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(i),this.attr("translateX",this.xSetting)}ySetter(i){this.ySetting=this.y=Math.round(i),this.attr("translateY",this.ySetting)}}kr.emptyBBox={width:0,height:0,x:0,y:0},kr.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:al,isNumber:Td,pick:Ps}=me;function Bu(w,i,s,l,u){let h=[];if(u){let f=u.start||0,g=Ps(u.r,s),x=Ps(u.r,l||s),C=2e-4/(u.borderRadius?1:Math.max(g,1)),P=Math.abs((u.end||0)-f-2*Math.PI)<C,M=(u.end||0)-(P?C:0),N=u.innerR,U=Ps(u.open,P),V=Math.cos(f),et=Math.sin(f),rt=Math.cos(M),Q=Math.sin(M),dt=Ps(u.longArc,M-f-Math.PI<C?0:1),ft=["A",g,x,0,dt,Ps(u.clockwise,1),w+g*rt,i+x*Q];ft.params={start:f,end:M,cx:w,cy:i},h.push(["M",w+g*V,i+x*et],ft),al(N)&&((ft=["A",N,N,0,dt,al(u.clockwise)?1-u.clockwise:0,w+N*V,i+N*et]).params={start:M,end:f,cx:w,cy:i},h.push(U?["M",w+N*rt,i+N*Q]:["L",w+N*rt,i+N*Q],ft)),U||h.push(["Z"])}return h}function Da(w,i,s,l,u){return u&&u.r?vs(w,i,s,l,u):[["M",w,i],["L",w+s,i],["L",w+s,i+l],["L",w,i+l],["Z"]]}function vs(w,i,s,l,u){let h=(u==null?void 0:u.r)||0;return[["M",w+h,i],["L",w+s-h,i],["A",h,h,0,0,1,w+s,i+h],["L",w+s,i+l-h],["A",h,h,0,0,1,w+s-h,i+l],["L",w+h,i+l],["A",h,h,0,0,1,w,i+l-h],["L",w,i+h],["A",h,h,0,0,1,w+h,i],["Z"]]}let ll={arc:Bu,callout:function(w,i,s,l,u){let h=Math.min(u&&u.r||0,s,l),f=h+6,g=u&&u.anchorX,x=u&&u.anchorY||0,C=vs(w,i,s,l,{r:h});if(!Td(g)||g<s&&g>0&&x<l&&x>0)return C;if(w+g>s-f)if(x>i+f&&x<i+l-f)C.splice(3,1,["L",w+s,x-6],["L",w+s+6,x],["L",w+s,x+6],["L",w+s,i+l-h]);else if(g<s){let P=x<i+f,M=P?i:i+l;C.splice(P?2:5,0,["L",g,x],["L",w+s-h,M])}else C.splice(3,1,["L",w+s,l/2],["L",g,x],["L",w+s,l/2],["L",w+s,i+l-h]);else if(w+g<f)if(x>i+f&&x<i+l-f)C.splice(7,1,["L",w,x+6],["L",w-6,x],["L",w,x-6],["L",w,i+h]);else if(g>0){let P=x<i+f,M=P?i:i+l;C.splice(P?1:6,0,["L",g,x],["L",w+h,M])}else C.splice(7,1,["L",w,l/2],["L",g,x],["L",w,l/2],["L",w,i+h]);else x>l&&g<s-f?C.splice(5,1,["L",g+6,i+l],["L",g,i+l+6],["L",g-6,i+l],["L",w+h,i+l]):x<0&&g>f&&C.splice(1,1,["L",g-6,i],["L",g,i-6],["L",g+6,i],["L",s-h,i]);return C},circle:function(w,i,s,l){return Bu(w+s/2,i+l/2,s/2,l/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(w,i,s,l){return[["M",w+s/2,i],["L",w+s,i+l/2],["L",w+s/2,i+l],["L",w,i+l/2],["Z"]]},rect:Da,roundedRect:vs,square:Da,triangle:function(w,i,s,l){return[["M",w+s/2,i],["L",w+s,i+l],["L",w,i+l],["Z"]]},"triangle-down":function(w,i,s,l){return[["M",w,i],["L",w+s,i],["L",w+s/2,i+l],["Z"]]}},{doc:Wc,SVG_NS:Du,win:cl}=at,{attr:ur,extend:ul,fireEvent:Mr,isString:os,objectEach:Vc,pick:Ed}=me,qo=(w,i)=>w.substring(0,i)+"…",sc=class{constructor(w){let i=w.styles;this.renderer=w.renderer,this.svgElement=w,this.width=w.textWidth,this.textLineHeight=i&&i.lineHeight,this.textOutline=i&&i.textOutline,this.ellipsis=!!(i&&i.textOverflow==="ellipsis"),this.lineClamp=i==null?void 0:i.lineClamp,this.noWrap=!!(i&&i.whiteSpace==="nowrap")}buildSVG(){let w=this.svgElement,i=w.element,s=w.renderer,l=Ed(w.textStr,"").toString(),u=l.indexOf("<")!==-1,h=i.childNodes,f=!w.added&&s.box,g=[l,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,w.getStyle("font-size"),w.styles.lineClamp,this.width].join(",");if(g!==w.textCache){w.textCache=g,delete w.actualWidth;for(let x=h.length;x--;)i.removeChild(h[x]);if(u||this.ellipsis||this.width||w.textPath||l.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(l))){if(l!==""){f&&f.appendChild(i);let x=new pi(l);this.modifyTree(x.nodes),x.addToDOM(i),this.modifyDOM(),this.ellipsis&&(i.textContent||"").indexOf("…")!==-1&&w.attr("title",this.unescapeEntities(w.textStr||"",["<",">"])),f&&f.removeChild(i)}}else i.appendChild(Wc.createTextNode(this.unescapeEntities(l)));os(this.textOutline)&&w.applyTextOutline&&w.applyTextOutline(this.textOutline)}}modifyDOM(){let w,i=this.svgElement,s=ur(i.element,"x");for(i.firstLineMetrics=void 0;(w=i.element.firstChild)&&/^[\s\u200B]*$/.test(w.textContent||" ");)i.element.removeChild(w);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),(f,g)=>{f.nextSibling&&f.previousSibling&&(g===0&&f.previousSibling.nodeType===1&&(i.firstLineMetrics=i.renderer.fontMetrics(f.previousSibling)),ur(f,{dy:this.getLineHeight(f.nextSibling),x:s}))});let l=this.width||0;if(!l)return;let u=(f,g)=>{var et;let x=f.textContent||"",C=x.replace(/([^\^])-/g,"$1- ").split(" "),P=!this.noWrap&&(C.length>1||i.element.childNodes.length>1),M=this.getLineHeight(g),N=Math.max(0,l-.8*M),U=0,V=i.actualWidth;if(P){let rt=[],Q=[];for(;g.firstChild&&g.firstChild!==f;)Q.push(g.firstChild),g.removeChild(g.firstChild);for(;C.length;)if(C.length&&!this.noWrap&&U>0&&(rt.push(f.textContent||""),f.textContent=C.join(" ").replace(/- /g,"-")),this.truncate(f,void 0,C,U===0&&V||0,l,N,(dt,ft)=>C.slice(0,ft).join(" ").replace(/- /g,"-")),V=i.actualWidth,U++,this.lineClamp&&U>=this.lineClamp){C.length&&(this.truncate(f,f.textContent||"",void 0,0,l,N,qo),f.textContent=((et=f.textContent)==null?void 0:et.replace("…",""))+"…");break}Q.forEach(dt=>{g.insertBefore(dt,f)}),rt.forEach(dt=>{g.insertBefore(Wc.createTextNode(dt),f);let ft=Wc.createElementNS(Du,"tspan");ft.textContent="",ur(ft,{dy:M,x:s}),g.insertBefore(ft,f)})}else this.ellipsis&&x&&this.truncate(f,x,void 0,0,l,N,qo)},h=f=>{[].slice.call(f.childNodes).forEach(g=>{g.nodeType===cl.Node.TEXT_NODE?u(g,f):(g.className.baseVal.indexOf("highcharts-br")!==-1&&(i.actualWidth=0),h(g))})};h(i.element)}getLineHeight(w){let i=w.nodeType===cl.Node.TEXT_NODE?w.parentElement:w;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(i||this.svgElement.element).h}modifyTree(w){let i=(s,l)=>{let{attributes:u={},children:h,style:f={},tagName:g}=s,x=this.renderer.styledMode;if(g==="b"||g==="strong"?x?u.class="highcharts-strong":f.fontWeight="bold":(g==="i"||g==="em")&&(x?u.class="highcharts-emphasized":f.fontStyle="italic"),f&&f.color&&(f.fill=f.color),g==="br"){u.class="highcharts-br",s.textContent="";let C=w[l+1];C&&C.textContent&&(C.textContent=C.textContent.replace(/^ +/gm,""))}else g==="a"&&h&&h.some(C=>C.tagName==="#text")&&(s.children=[{children:h,tagName:"tspan"}]);g!=="#text"&&g!=="a"&&(s.tagName="tspan"),ul(s,{attributes:u,style:f}),h&&h.filter(C=>C.tagName!=="#text").forEach(i)};w.forEach(i),Mr(this.svgElement,"afterModifyTree",{nodes:w})}truncate(w,i,s,l,u,h,f){let g,x,C=this.svgElement,{rotation:P}=C,M=[],N=s&&!l?1:0,U=(i||s||"").length,V=U;s||(u=h);let et=function(rt,Q){let dt=Q||rt,ft=w.parentNode;if(ft&&M[dt]===void 0&&ft.getSubStringLength)try{M[dt]=l+ft.getSubStringLength(0,s?dt+1:dt)}catch{}return M[dt]};if(C.rotation=0,l+(x=et(w.textContent.length))>u){for(;N<=U;)V=Math.ceil((N+U)/2),s&&(g=f(s,V)),x=et(V,g&&g.length-1),N===U?N=U+1:x>u?U=V-1:N=V;U===0?w.textContent="":i&&U===i.length-1||(w.textContent=g||f(i||s,V)),this.ellipsis&&x>u&&this.truncate(w,w.textContent||"",void 0,0,u,h,qo)}s&&s.splice(0,V),C.actualWidth=x,C.rotation=P}unescapeEntities(w,i){return Vc(this.renderer.escapes,function(s,l){i&&i.indexOf(s)!==-1||(w=w.toString().replace(RegExp(s,"g"),l))}),w}},{defaultOptions:Bs}=ai,{charts:Tr,deg2rad:Ds,doc:Yr,isFirefox:Lu,isMS:qr,isWebKit:Xc,noop:Ko,SVG_NS:vn,symbolSizes:Zo,win:Co}=at,{addEvent:Yn,attr:Ls,createElement:Er,crisp:Is,css:io,defined:Ns,destroyObjectProperties:oc,extend:qn,isArray:ko,isNumber:Rn,isObject:as,isString:Iu,merge:no,pick:Mo,pInt:ac,replaceNested:dl,uniqueKey:Yc}=me;class hl{constructor(i,s,l,u,h,f,g){let x,C,P=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),M=P.element;g||P.css(this.getStyle(u||{})),i.appendChild(M),Ls(i,"dir","ltr"),i.innerHTML.indexOf("xmlns")===-1&&Ls(M,"xmlns",this.SVG_NS),this.box=M,this.boxWrapper=P,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Yr.createTextNode("Created with Highcharts 12.1.2")),this.defs=this.createElement("defs").add(),this.allowHTML=f,this.forExport=h,this.styledMode=g,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=P.getStyle("font-size"),this.setSize(s,l,!1),Lu&&i.getBoundingClientRect&&((x=function(){io(i,{left:0,top:0}),C=i.getBoundingClientRect(),io(i,{left:Math.ceil(C.left)-C.left+"px",top:Math.ceil(C.top)-C.top+"px"})})(),this.unSubPixelFix=Yn(Co,"resize",x))}definition(i){return new pi([i]).addToDOM(this.defs.element)}getReferenceURL(){if((Lu||Xc)&&Yr.getElementsByTagName("base").length){if(!Ns(c)){let i=Yc(),s=new pi([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:i},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${i})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Yr.body);io(s,{position:"fixed",top:0,left:0,zIndex:9e5});let l=Yr.elementFromPoint(6,6);c=(l&&l.id)==="hitme",Yr.body.removeChild(s)}if(c)return dl(Co.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(i){return this.style=qn({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},i),this.style}setStyle(i){this.boxWrapper.css(this.getStyle(i))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let i=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),oc(this.gradients||{}),this.gradients=null,this.defs=i.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(i){return new this.Element(this,i)}getRadialAttr(i,s){return{cx:i[0]-i[2]/2+(s.cx||0)*i[2],cy:i[1]-i[2]/2+(s.cy||0)*i[2],r:(s.r||0)*i[2]}}shadowDefinition(i){let s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(i).map(u=>`${u}-${i[u]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),l=no({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},i);return this.defs.element.querySelector(`#${s}`)||this.definition({tagName:"filter",attributes:{id:s,filterUnits:l.filterUnits},children:this.getShadowFilterContent(l)}),s}getShadowFilterContent(i){return[{tagName:"feDropShadow",attributes:{dx:i.offsetX,dy:i.offsetY,"flood-color":i.color,"flood-opacity":Math.min(5*i.opacity,1),stdDeviation:i.width/2}}]}buildText(i){new sc(i).buildSVG()}getContrast(i){let s=ei.parse(i).rgba.map(u=>{let h=u/255;return h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4)}),l=.2126*s[0]+.7152*s[1]+.0722*s[2];return 1.05/(l+.05)>(l+.05)/.05?"#FFFFFF":"#000000"}button(i,s,l,u,h={},f,g,x,C,P){let M=this.label(i,s,l,C,void 0,void 0,P,void 0,"button"),N=this.styledMode,U=arguments,V=0;h=no(Bs.global.buttonTheme,h),N&&(delete h.fill,delete h.stroke,delete h["stroke-width"]);let et=h.states||{},rt=h.style||{};delete h.states,delete h.style;let Q=[pi.filterUserAttributes(h)],dt=[rt];return N||["hover","select","disabled"].forEach((ft,Rt)=>{Q.push(no(Q[0],pi.filterUserAttributes(U[Rt+5]||et[ft]||{}))),dt.push(Q[Rt+1].style),delete Q[Rt+1].style}),Yn(M.element,qr?"mouseover":"mouseenter",function(){V!==3&&M.setState(1)}),Yn(M.element,qr?"mouseout":"mouseleave",function(){V!==3&&M.setState(V)}),M.setState=(ft=0)=>{if(ft!==1&&(M.state=V=ft),M.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ft]),!N){M.attr(Q[ft]);let Rt=dt[ft];as(Rt)&&M.css(Rt)}},M.attr(Q[0]),!N&&(M.css(qn({cursor:"default"},rt)),P&&M.text.css({pointerEvents:"none"})),M.on("touchstart",ft=>ft.stopPropagation()).on("click",function(ft){V!==3&&u.call(M,ft)})}crispLine(i,s){let[l,u]=i;return Ns(l[1])&&l[1]===u[1]&&(l[1]=u[1]=Is(l[1],s)),Ns(l[2])&&l[2]===u[2]&&(l[2]=u[2]=Is(l[2],s)),i}path(i){let s=this.styledMode?{}:{fill:"none"};return ko(i)?s.d=i:as(i)&&qn(s,i),this.createElement("path").attr(s)}circle(i,s,l){let u=as(i)?i:i===void 0?{}:{x:i,y:s,r:l},h=this.createElement("circle");return h.xSetter=h.ySetter=function(f,g,x){x.setAttribute("c"+g,f)},h.attr(u)}arc(i,s,l,u,h,f){let g;as(i)?(s=(g=i).y,l=g.r,u=g.innerR,h=g.start,f=g.end,i=g.x):g={innerR:u,start:h,end:f};let x=this.symbol("arc",i,s,l,l,g);return x.r=l,x}rect(i,s,l,u,h,f){let g=as(i)?i:i===void 0?{}:{x:i,y:s,r:h,width:Math.max(l||0,0),height:Math.max(u||0,0)},x=this.createElement("rect");return this.styledMode||(f!==void 0&&(g["stroke-width"]=f,qn(g,x.crisp(g))),g.fill="none"),x.rSetter=function(C,P,M){x.r=C,Ls(M,{rx:C,ry:C})},x.rGetter=function(){return x.r||0},x.attr(g)}roundedRect(i){return this.symbol("roundedRect").attr(i)}setSize(i,s,l){this.width=i,this.height=s,this.boxWrapper.animate({width:i,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Mo(l,!0)?void 0:0}),this.alignElements()}g(i){let s=this.createElement("g");return i?s.attr({class:"highcharts-"+i}):s}image(i,s,l,u,h,f){let g={preserveAspectRatio:"none"};Rn(s)&&(g.x=s),Rn(l)&&(g.y=l),Rn(u)&&(g.width=u),Rn(h)&&(g.height=h);let x=this.createElement("image").attr(g),C=function(P){x.attr({href:i}),f.call(x,P)};if(f){x.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let P=new Co.Image;Yn(P,"load",C),P.src=i,P.complete&&C({})}else x.attr({href:i});return x}symbol(i,s,l,u,h,f){let g,x,C,P,M=this,N=/^url\((.*?)\)$/,U=N.test(i),V=!U&&(this.symbols[i]?i:"circle"),et=V&&this.symbols[V];if(et)typeof s=="number"&&(x=et.call(this.symbols,s||0,l||0,u||0,h||0,f)),g=this.path(x),M.styledMode||g.attr("fill","none"),qn(g,{symbolName:V||void 0,x:s,y:l,width:u,height:h}),f&&qn(g,f);else if(U){C=i.match(N)[1];let rt=g=this.image(C);rt.imgwidth=Mo(f&&f.width,Zo[C]&&Zo[C].width),rt.imgheight=Mo(f&&f.height,Zo[C]&&Zo[C].height),P=Q=>Q.attr({width:Q.width,height:Q.height}),["width","height"].forEach(Q=>{rt[`${Q}Setter`]=function(dt,ft){this[ft]=dt;let{alignByTranslate:Rt,element:Nt,width:Lt,height:Ut,imgwidth:$t,imgheight:qt}=this,be=ft==="width"?$t:qt,Ce=1;f&&f.backgroundSize==="within"&&Lt&&Ut&&$t&&qt?(Ce=Math.min(Lt/$t,Ut/qt),Ls(Nt,{width:Math.round($t*Ce),height:Math.round(qt*Ce)})):Nt&&be&&Nt.setAttribute(ft,be),!Rt&&$t&&qt&&this.translate(((Lt||0)-$t*Ce)/2,((Ut||0)-qt*Ce)/2)}}),Ns(s)&&rt.attr({x:s,y:l}),rt.isImg=!0,rt.symbolUrl=i,Ns(rt.imgwidth)&&Ns(rt.imgheight)?P(rt):(rt.attr({width:0,height:0}),Er("img",{onload:function(){let Q=Tr[M.chartIndex];this.width===0&&(io(this,{position:"absolute",top:"-999em"}),Yr.body.appendChild(this)),Zo[C]={width:this.width,height:this.height},rt.imgwidth=this.width,rt.imgheight=this.height,rt.element&&P(rt),this.parentNode&&this.parentNode.removeChild(this),M.imgCount--,M.imgCount||!Q||Q.hasLoaded||Q.onload()},src:C}),this.imgCount++)}return g}clipRect(i,s,l,u){return this.rect(i,s,l,u,0)}text(i,s,l,u){let h={};if(u&&(this.allowHTML||!this.forExport))return this.html(i,s,l);h.x=Math.round(s||0),l&&(h.y=Math.round(l)),Ns(i)&&(h.text=i);let f=this.createElement("text").attr(h);return u&&(!this.forExport||this.allowHTML)||(f.xSetter=function(g,x,C){let P=C.getElementsByTagName("tspan"),M=C.getAttribute(x);for(let N=0,U;N<P.length;N++)(U=P[N]).getAttribute(x)===M&&U.setAttribute(x,g);C.setAttribute(x,g)}),f}fontMetrics(i){let s=ac(ss.prototype.getStyle.call(i,"font-size")||0),l=s<24?s+3:Math.round(1.2*s),u=Math.round(.8*l);return{h:l,b:u,f:s}}rotCorr(i,s,l){let u=i;return s&&l&&(u=Math.max(u*Math.cos(s*Ds),4)),{x:-i/3*Math.sin(s*Ds),y:u}}pathToSegments(i){let s=[],l=[],u={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let h=0;h<i.length;h++)Iu(l[0])&&Rn(i[h])&&l.length===u[l[0].toUpperCase()]&&i.splice(h,0,l[0].replace("M","L").replace("m","l")),typeof i[h]=="string"&&(l.length&&s.push(l.slice(0)),l.length=0),l.push(i[h]);return s.push(l.slice(0)),s}label(i,s,l,u,h,f,g,x,C){return new kr(this,i,s,l,u,h,f,g,x,C)}alignElements(){this.alignedObjects.forEach(i=>i.align())}}qn(hl.prototype,{Element:ss,SVG_NS:vn,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:ll,draw:Ko}),is.registerRendererType("svg",hl,!0);let{composed:qc}=at,{attr:Nu,css:Qo,createElement:Ad,defined:zu,extend:Rd,getAlignFactor:pl,isNumber:Kn,pInt:La,pushUnique:ju}=me;function Ia(w,i,s){var u;let l=((u=this.div)==null?void 0:u.style)||s.style;ss.prototype[`${i}Setter`].call(this,w,i,s),l&&(l[i]=w)}let $u=(w,i)=>{var s;if(!w.div){let l=Nu(w.element,"class"),u=w.css,h=Ad("div",l?{className:l}:void 0,{position:"absolute",left:`${w.translateX||0}px`,top:`${w.translateY||0}px`,...w.styles,display:w.display,opacity:w.opacity,visibility:w.visibility},((s=w.parentGroup)==null?void 0:s.div)||i);w.classSetter=(f,g,x)=>{x.setAttribute("class",f),h.className=f},w.translateXSetter=w.translateYSetter=(f,g)=>{w[g]=f,h.style[g==="translateX"?"left":"top"]=`${f}px`,w.doTransform=!0},w.opacitySetter=w.visibilitySetter=Ia,w.css=f=>(u.call(w,f),f.cursor&&(h.style.cursor=f.cursor),f.pointerEvents&&(h.style.pointerEvents=f.pointerEvents),w),w.on=function(){return ss.prototype.on.apply({element:h,onEvents:w.onEvents},arguments),w},w.div=h}return w.div};class Na extends ss{static compose(i){ju(qc,this.compose)&&(i.prototype.html=function(s,l,u){return new Na(this,"span").attr({text:s,x:Math.round(l),y:Math.round(u)})})}constructor(i,s){super(i,s),this.css({position:"absolute",...i.styledMode?{}:{fontFamily:i.style.fontFamily,fontSize:i.style.fontSize}})}getSpanCorrection(i,s,l){this.xCorr=-i*l,this.yCorr=-s}css(i){let s,{element:l}=this,u=l.tagName==="SPAN"&&i&&"width"in i,h=u&&i.width;return u&&(delete i.width,this.textWidth=La(h)||void 0,s=!0),(i==null?void 0:i.textOverflow)==="ellipsis"&&(i.overflow="hidden"),i!=null&&i.lineClamp&&(i.display="-webkit-box",i.WebkitLineClamp=i.lineClamp,i.WebkitBoxOrient="vertical",i.overflow="hidden"),Kn(Number(i==null?void 0:i.fontSize))&&(i.fontSize=i.fontSize+"px"),Rd(this.styles,i),Qo(l,i),s&&this.updateTransform(),this}htmlGetBBox(){let{element:i}=this;return{x:i.offsetLeft,y:i.offsetTop,width:i.offsetWidth,height:i.offsetHeight}}updateTransform(){var Q;if(!this.added){this.alignOnAdd=!0;return}let{element:i,renderer:s,rotation:l,rotationOriginX:u,rotationOriginY:h,scaleX:f,scaleY:g,styles:x,textAlign:C="left",textWidth:P,translateX:M=0,translateY:N=0,x:U=0,y:V=0}=this,{display:et="block",whiteSpace:rt}=x;if(Qo(i,{marginLeft:`${M}px`,marginTop:`${N}px`}),i.tagName==="SPAN"){let dt,ft=[l,C,i.innerHTML,P,this.textAlign].join(","),Rt=-(((Q=this.parentGroup)==null?void 0:Q.padding)*1)||0;if(P!==this.oldTextWidth){let $t=this.textPxLength?this.textPxLength:(Qo(i,{width:"",whiteSpace:rt||"nowrap"}),i.offsetWidth),qt=P||0;(qt>this.oldTextWidth||$t>qt)&&(/[ \-]/.test(i.textContent||i.innerText)||i.style.textOverflow==="ellipsis")&&(Qo(i,{width:$t>qt||l||f?P+"px":"auto",display:et,whiteSpace:rt||"normal"}),this.oldTextWidth=P)}ft!==this.cTT&&(dt=s.fontMetrics(i).b,zu(l)&&(l!==(this.oldRotation||0)||C!==this.oldAlign)&&this.setSpanRotation(l,Rt,Rt),this.getSpanCorrection(!zu(l)&&!this.textWidth&&this.textPxLength||i.offsetWidth,dt,pl(C)));let{xCorr:Nt=0,yCorr:Lt=0}=this,Ut={left:`${U+Nt}px`,top:`${V+Lt}px`,textAlign:C,transformOrigin:`${(u??U)-Nt-U-Rt}px ${(h??V)-Lt-V-Rt}px`};(f||g)&&(Ut.transform=`scale(${f??1},${g??1})`),Qo(i,Ut),this.cTT=ft,this.oldRotation=l,this.oldAlign=C}}setSpanRotation(i,s,l){Qo(this.element,{transform:`rotate(${i}deg)`,transformOrigin:`${s}% ${l}px`})}add(i){let s,l=this.renderer.box.parentNode,u=[];if(this.parentGroup=i,i&&!(s=i.div)){let h=i;for(;h;)u.push(h),h=h.parentGroup;for(let f of u.reverse())s=$u(f,l)}return(s||l).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(i){i!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,pi.setElementHTML(this.element,i??""),this.textStr=i,this.doTransform=!0)}alignSetter(i){this.alignValue=this.textAlign=i,this.doTransform=!0}xSetter(i,s){this[s]=i,this.doTransform=!0}}let zs=Na.prototype;zs.visibilitySetter=zs.opacitySetter=Ia,zs.ySetter=zs.rotationSetter=zs.rotationOriginXSetter=zs.rotationOriginYSetter=zs.xSetter,function(w){w.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"},w.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:i}=this.axis.chart;return i(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0}}(k||(k={}));let Hu=k,{addEvent:Uu,isFunction:Jo,objectEach:ro,removeEvent:To}=me;(O||(O={})).registerEventOptions=function(w,i){w.eventOptions=w.eventOptions||{},ro(i.events,function(s,l){w.eventOptions[l]!==s&&(w.eventOptions[l]&&(To(w,l,w.eventOptions[l]),delete w.eventOptions[l]),Jo(s)&&(w.eventOptions[l]=s,Uu(w,l,s,{order:0})))})};let ta=O,{deg2rad:fl}=at,{clamp:Ss,correctFloat:js,defined:ea,destroyObjectProperties:gl,extend:so,fireEvent:ia,getAlignFactor:na,isNumber:ra,merge:Od,objectEach:Pd,pick:ls}=me,Kr=class{constructor(w,i,s,l,u){this.isNew=!0,this.isNewLabel=!0,this.axis=w,this.pos=i,this.type=s||"",this.parameters=u||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,ia(this,"init"),s||l||this.addLabel()}addLabel(){let w=this,i=w.axis,s=i.options,l=i.chart,u=i.categories,h=i.logarithmic,f=i.names,g=w.pos,x=ls(w.options&&w.options.labels,s.labels),C=i.tickPositions,P=g===C[0],M=g===C[C.length-1],N=(!x.step||x.step===1)&&i.tickInterval===1,U=C.info,V=w.label,et,rt,Q,dt=this.parameters.category||(u?ls(u[g],f[g],g):g);h&&ra(dt)&&(dt=js(h.lin2log(dt))),i.dateTime&&(U?et=(rt=l.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&U.higherRanks[g]||U.unitName])).main:ra(dt)&&(et=i.dateTime.getXDateFormat(dt,s.dateTimeLabelFormats||{}))),w.isFirst=P,w.isLast=M;let ft={axis:i,chart:l,dateTimeLabelFormat:et,isFirst:P,isLast:M,pos:g,tick:w,tickPositionInfo:U,value:dt};ia(this,"labelFormat",ft);let Rt=Ut=>x.formatter?x.formatter.call(Ut,Ut):x.format?(Ut.text=i.defaultLabelFormatter.call(Ut),Ir.format(x.format,Ut,l)):i.defaultLabelFormatter.call(Ut),Nt=Rt.call(ft,ft),Lt=rt&&rt.list;Lt?w.shortenLabel=function(){for(Q=0;Q<Lt.length;Q++)if(so(ft,{dateTimeLabelFormat:Lt[Q]}),V.attr({text:Rt.call(ft,ft)}),V.getBBox().width<i.getSlotWidth(w)-2*(x.padding||0))return;V.attr({text:""})}:w.shortenLabel=void 0,N&&i._addedPlotLB&&w.moveLabel(Nt,x),ea(V)||w.movedLabel?V&&V.textStr!==Nt&&!N&&(!V.textWidth||x.style.width||V.styles.width||V.css({width:null}),V.attr({text:Nt}),V.textPxLength=V.getBBox().width):(w.label=V=w.createLabel(Nt,x),w.rotation=0)}createLabel(w,i,s){let l=this.axis,{renderer:u,styledMode:h}=l.chart,f=ea(w)&&i.enabled?u.text(w,s==null?void 0:s.x,s==null?void 0:s.y,i.useHTML).add(l.labelGroup):void 0;if(f){let g=i.style.whiteSpace||"normal";h||f.css(Od(i.style,{whiteSpace:"nowrap"})),f.textPxLength=f.getBBox().width,h||f.css({whiteSpace:g})}return f}destroy(){gl(this,this.axis)}getPosition(w,i,s,l){let u=this.axis,h=u.chart,f=l&&h.oldChartHeight||h.chartHeight,g={x:w?js(u.translate(i+s,void 0,void 0,l)+u.transB):u.left+u.offset+(u.opposite?(l&&h.oldChartWidth||h.chartWidth)-u.right-u.left:0),y:w?f-u.bottom+u.offset-(u.opposite?u.height:0):js(f-u.translate(i+s,void 0,void 0,l)-u.transB)};return g.y=Ss(g.y,-1e9,1e9),ia(this,"afterGetPosition",{pos:g}),g}getLabelPosition(w,i,s,l,u,h,f,g){let x,C,P=this.axis,M=P.transA,N=P.isLinked&&P.linkedParent?P.linkedParent.reversed:P.reversed,U=P.staggerLines,V=P.tickRotCorr||{x:0,y:0},et=l||P.reserveSpaceDefault?0:-P.labelOffset*(P.labelAlign==="center"?.5:1),rt=u.distance,Q={};return x=P.side===0?s.rotation?-rt:-s.getBBox().height:P.side===2?V.y+rt:Math.cos(s.rotation*fl)*(V.y-s.getBBox(!1,0).height/2),ea(u.y)&&(x=P.side===0&&P.horiz?u.y+x:u.y),w=w+ls(u.x,[0,1,0,-1][P.side]*rt)+et+V.x-(h&&l?h*M*(N?-1:1):0),i=i+x-(h&&!l?h*M*(N?1:-1):0),U&&(C=f/(g||1)%U,P.opposite&&(C=U-C-1),i+=C*(P.labelOffset/U)),Q.x=w,Q.y=Math.round(i),ia(this,"afterGetLabelPosition",{pos:Q,tickmarkOffset:h,index:f}),Q}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(w,i,s,l,u=!1,h){return h.crispLine([["M",w,i],["L",w+(u?0:-s),i+(u?s:0)]],l)}handleOverflow(w){let i=this.axis,s=i.options.labels,l=w.x,u=i.chart.chartWidth,h=i.chart.spacing,f=ls(i.labelLeft,Math.min(i.pos,h[3])),g=ls(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,u-h[1])),x=this.label,C=this.rotation,P=na(i.labelAlign||x.attr("align")),M=x.getBBox().width,N=i.getSlotWidth(this),U=N,V=1,et,rt,Q;C||s.overflow!=="justify"?C<0&&l-P*M<f?Q=Math.round(l/Math.cos(C*fl)-f):C>0&&l+P*M>g&&(Q=Math.round((u-l)/Math.cos(C*fl))):(et=l-P*M,rt=l+(1-P)*M,et<f?U=w.x+U*(1-P)-f:rt>g&&(U=g-w.x+U*P,V=-1),(U=Math.min(N,U))<N&&i.labelAlign==="center"&&(w.x+=V*(N-U-P*(N-Math.min(M,U)))),(M>U||i.autoRotation&&(x.styles||{}).width)&&(Q=U)),Q&&x&&(this.shortenLabel?this.shortenLabel():x.css(so({},{width:Math.floor(Q)+"px",lineClamp:i.isRadial?0:1})))}moveLabel(w,i){let s=this,l=s.label,u=s.axis,h=!1,f;l&&l.textStr===w?(s.movedLabel=l,h=!0,delete s.label):Pd(u.ticks,function(g){h||g.isNew||g===s||!g.label||g.label.textStr!==w||(s.movedLabel=g.label,h=!0,g.labelPos=s.movedLabel.xy,delete g.label)}),!h&&(s.labelPos||l)&&(f=s.labelPos||l.xy,s.movedLabel=s.createLabel(w,i,f),s.movedLabel&&s.movedLabel.attr({opacity:0}))}render(w,i,s){let l=this.axis,u=l.horiz,h=this.pos,f=ls(this.tickmarkOffset,l.tickmarkOffset),g=this.getPosition(u,h,f,i),x=g.x,C=g.y,P=l.pos,M=P+l.len,N=u?x:C;!l.chart.polar&&this.isNew&&(js(N)<P||N>M)&&(s=0);let U=ls(s,this.label&&this.label.newOpacity,1);s=ls(s,1),this.isActive=!0,this.renderGridLine(i,s),this.renderMark(g,s),this.renderLabel(g,i,U,w),this.isNew=!1,ia(this,"afterRender")}renderGridLine(w,i){let s=this.axis,l=s.options,u={},h=this.pos,f=this.type,g=ls(this.tickmarkOffset,s.tickmarkOffset),x=s.chart.renderer,C=this.gridLine,P,M=l.gridLineWidth,N=l.gridLineColor,U=l.gridLineDashStyle;this.type==="minor"&&(M=l.minorGridLineWidth,N=l.minorGridLineColor,U=l.minorGridLineDashStyle),C||(s.chart.styledMode||(u.stroke=N,u["stroke-width"]=M||0,u.dashstyle=U),f||(u.zIndex=1),w&&(i=0),this.gridLine=C=x.path().attr(u).addClass("highcharts-"+(f?f+"-":"")+"grid-line").add(s.gridGroup)),C&&(P=s.getPlotLinePath({value:h+g,lineWidth:C.strokeWidth(),force:"pass",old:w,acrossPanes:!1}))&&C[w||this.isNew?"attr":"animate"]({d:P,opacity:i})}renderMark(w,i){let s=this.axis,l=s.options,u=s.chart.renderer,h=this.type,f=s.tickSize(h?h+"Tick":"tick"),g=w.x,x=w.y,C=ls(l[h!=="minor"?"tickWidth":"minorTickWidth"],!h&&s.isXAxis?1:0),P=l[h!=="minor"?"tickColor":"minorTickColor"],M=this.mark,N=!M;f&&(s.opposite&&(f[0]=-f[0]),M||(this.mark=M=u.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||M.attr({stroke:P,"stroke-width":C})),M[N?"attr":"animate"]({d:this.getMarkPath(g,x,f[0],M.strokeWidth(),s.horiz,u),opacity:i}))}renderLabel(w,i,s,l){let u=this.axis,h=u.horiz,f=u.options,g=this.label,x=f.labels,C=x.step,P=ls(this.tickmarkOffset,u.tickmarkOffset),M=w.x,N=w.y,U=!0;g&&ra(M)&&(g.xy=w=this.getLabelPosition(M,N,g,h,x,P,l,C),(!this.isFirst||this.isLast||f.showFirstLabel)&&(!this.isLast||this.isFirst||f.showLastLabel)?!h||x.step||x.rotation||i||s===0||this.handleOverflow(w):U=!1,C&&l%C&&(U=!1),U&&ra(w.y)?(w.opacity=s,g[this.isNewLabel?"attr":"animate"](w).show(!0),this.isNewLabel=!1):(g.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let w=this.label,i=this.axis;w&&!this.isNew&&(w.animate({opacity:0},void 0,w.destroy),delete this.label),i.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:za}=hn,{xAxis:ws,yAxis:dr}=Hu,{defaultOptions:jr}=ai,{registerEventOptions:sa}=ta,{deg2rad:Kc}=at,{arrayMax:oo,arrayMin:lc,clamp:ml,correctFloat:Sn,defined:Ki,destroyObjectProperties:cc,erase:oa,error:$s,extend:Ar,fireEvent:Gi,getClosestDistance:Eo,insertItem:hr,isArray:cs,isNumber:He,isString:rr,merge:pn,normalizeTickInterval:zn,objectEach:$r,pick:ui,relativeLength:Ao,removeEvent:Rr,splat:aa,syncTimeout:Zn}=me,Qn=(w,i)=>zn(i,void 0,void 0,ui(w.options.allowDecimals,i<.5||w.tickAmount!==void 0),!!w.tickAmount);Ar(jr,{xAxis:ws,yAxis:pn(ws,dr)});class Oi{constructor(i,s,l){this.init(i,s,l)}init(i,s,l=this.coll){let u=l==="xAxis",h=this.isZAxis||(i.inverted?!u:u);this.chart=i,this.horiz=h,this.isXAxis=u,this.coll=l,Gi(this,"init",{userOptions:s}),this.opposite=ui(s.opposite,this.opposite),this.side=ui(s.side,this.side,h?this.opposite?0:2:this.opposite?1:3),this.setOptions(s);let f=this.options,g=f.labels;this.type??(this.type=f.type||"linear"),this.uniqueNames??(this.uniqueNames=f.uniqueNames??!0),Gi(this,"afterSetType"),this.userOptions=s,this.minPixelPadding=0,this.reversed=ui(f.reversed,this.reversed),this.visible=f.visible,this.zoomEnabled=f.zoomEnabled,this.hasNames=this.type==="category"||f.categories===!0,this.categories=cs(f.categories)&&f.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=Ki(f.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=f.minRange||f.maxZoom,this.range=f.range,this.offset=f.offset||0,this.max=void 0,this.min=void 0;let x=ui(f.crosshair,aa(i.options.tooltip.crosshairs)[u?0:1]);this.crosshair=x===!0?{}:x,i.axes.indexOf(this)===-1&&(u?i.axes.splice(i.xAxis.length,0,this):i.axes.push(this),hr(this,i[this.coll])),i.orderItems(this.coll),this.series=this.series||[],i.inverted&&!this.isZAxis&&u&&!Ki(this.reversed)&&(this.reversed=!0),this.labelRotation=He(g.rotation)?g.rotation:void 0,sa(this,f),Gi(this,"afterInit")}setOptions(i){let s=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=pn(s,jr[this.coll],i),Gi(this,"afterSetOptions",{userOptions:i})}defaultLabelFormatter(){let i=this.axis,{numberFormatter:s}=this.chart,l=He(this.value)?this.value:NaN,u=i.chart.time,h=i.categories,f=this.dateTimeLabelFormat,g=jr.lang,x=g.numericSymbols,C=g.numericSymbolMagnitude||1e3,P=i.logarithmic?Math.abs(l):i.tickInterval,M=x&&x.length,N,U;if(h)U=`${this.value}`;else if(f)U=u.dateFormat(f,l,!0);else if(M&&x&&P>=1e3)for(;M--&&U===void 0;)P>=(N=Math.pow(C,M+1))&&10*l%N==0&&x[M]!==null&&l!==0&&(U=s(l/N,-1)+x[M]);return U===void 0&&(U=Math.abs(l)>=1e4?s(l,-1):s(l,-1,void 0,"")),U}getSeriesExtremes(){let i,s=this;Gi(this,"getSeriesExtremes",null,function(){s.hasVisibleSeries=!1,s.dataMin=s.dataMax=s.threshold=void 0,s.softThreshold=!s.isXAxis,s.series.forEach(l=>{if(l.reserveSpace()){let u=l.options,h,f=u.threshold,g,x;if(s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=(f||0)&&(f=void 0),s.isXAxis)(h=l.getColumn("x")).length&&(h=s.logarithmic?h.filter(C=>C>0):h,g=(i=l.getXExtremes(h)).min,x=i.max,He(g)||g instanceof Date||(h=h.filter(He),g=(i=l.getXExtremes(h)).min,x=i.max),h.length&&(s.dataMin=Math.min(ui(s.dataMin,g),g),s.dataMax=Math.max(ui(s.dataMax,x),x)));else{let C=l.applyExtremes();He(C.dataMin)&&(g=C.dataMin,s.dataMin=Math.min(ui(s.dataMin,g),g)),He(C.dataMax)&&(x=C.dataMax,s.dataMax=Math.max(ui(s.dataMax,x),x)),Ki(f)&&(s.threshold=f),(!u.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1)}}})}),Gi(this,"afterGetSeriesExtremes")}translate(i,s,l,u,h,f){var et;let g=this.linkedParent||this,x=u&&g.old?g.old.min:g.min;if(!He(x))return NaN;let C=g.minPixelPadding,P=(g.isOrdinal||((et=g.brokenAxis)==null?void 0:et.hasBreaks)||g.logarithmic&&h)&&g.lin2val,M=1,N=0,U=u&&g.old?g.old.transA:g.transA,V=0;return U||(U=g.transA),l&&(M*=-1,N=g.len),g.reversed&&(M*=-1,N-=M*(g.sector||g.len)),s?(V=(i=i*M+N-C)/U+x,P&&(V=g.lin2val(V))):(P&&(i=g.val2lin(i)),V=M*(i-x)*U+N+M*C+(He(f)?U*f:0),g.isRadial||(V=Sn(V))),V}toPixels(i,s){var l;return this.translate(((l=this.chart)==null?void 0:l.time.parse(i))??NaN,!1,!this.horiz,void 0,!0)+(s?0:this.pos)}toValue(i,s){return this.translate(i-(s?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(i){let s=this,l=s.chart,u=s.left,h=s.top,f=i.old,g=i.value,x=i.lineWidth,C=f&&l.oldChartHeight||l.chartHeight,P=f&&l.oldChartWidth||l.chartWidth,M=s.transB,N=i.translatedValue,U=i.force,V,et,rt,Q,dt;function ft(Nt,Lt,Ut){return U!=="pass"&&(Nt<Lt||Nt>Ut)&&(U?Nt=ml(Nt,Lt,Ut):dt=!0),Nt}let Rt={value:g,lineWidth:x,old:f,force:U,acrossPanes:i.acrossPanes,translatedValue:N};return Gi(this,"getPlotLinePath",Rt,function(Nt){V=rt=(N=ml(N=ui(N,s.translate(g,void 0,void 0,f)),-1e9,1e9))+M,et=Q=C-N-M,He(N)?s.horiz?(et=h,Q=C-s.bottom+(s.options.isInternal?0:l.scrollablePixelsY||0),V=rt=ft(V,u,u+s.width)):(V=u,rt=P-s.right+(l.scrollablePixelsX||0),et=Q=ft(et,h,h+s.height)):(dt=!0,U=!1),Nt.path=dt&&!U?void 0:l.renderer.crispLine([["M",V,et],["L",rt,Q]],x||1)}),Rt.path}getLinearTickPositions(i,s,l){let u,h,f,g=Sn(Math.floor(s/i)*i),x=Sn(Math.ceil(l/i)*i),C=[];if(Sn(g+i)===g&&(f=20),this.single)return[s];for(u=g;u<=x&&(C.push(u),(u=Sn(u+i,f))!==h);)h=u;return C}getMinorTickInterval(){let{minorTicks:i,minorTickInterval:s}=this.options;return i===!0?ui(s,"auto"):i!==!1?s:void 0}getMinorTickPositions(){var P;let i=this.options,s=this.tickPositions,l=this.minorTickInterval,u=this.pointRangePadding||0,h=(this.min||0)-u,f=(this.max||0)+u,g=(P=this.brokenAxis)!=null&&P.hasBreaks?this.brokenAxis.unitLength:f-h,x=[],C;if(g&&g/l<this.len/3){let M=this.logarithmic;if(M)this.paddedTicks.forEach(function(N,U,V){U&&x.push.apply(x,M.getLogTickPositions(l,V[U-1],V[U],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")x=x.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(l),h,f,i.startOfWeek));else for(C=h+(s[0]-h)%l;C<=f&&C!==x[0];C+=l)x.push(C)}return x.length!==0&&this.trimTicks(x),x}adjustForMinRange(){let i=this.options,s=this.logarithmic,l=this.chart.time,{max:u,min:h,minRange:f}=this,g,x,C,P;this.isXAxis&&f===void 0&&!s&&(f=Ki(i.min)||Ki(i.max)||Ki(i.floor)||Ki(i.ceiling)?null:Math.min(5*(Eo(this.series.map(M=>{let N=M.getColumn("x");return M.xIncrement?N.slice(0,2):N}))||0),this.dataMax-this.dataMin)),He(u)&&He(h)&&He(f)&&u-h<f&&(x=this.dataMax-this.dataMin>=f,g=(f-u+h)/2,C=[h-g,l.parse(i.min)??h-g],x&&(C[2]=s?s.log2lin(this.dataMin):this.dataMin),P=[(h=oo(C))+f,l.parse(i.max)??h+f],x&&(P[2]=s?s.log2lin(this.dataMax):this.dataMax),(u=lc(P))-h<f&&(C[0]=u-f,C[1]=l.parse(i.min)??u-f,h=oo(C))),this.minRange=f,this.min=h,this.max=u}getClosest(){let i,s;if(this.categories)s=1;else{let l=[];this.series.forEach(function(u){let h=u.closestPointRange,f=u.getColumn("x");f.length===1?l.push(f[0]):u.sorted&&Ki(h)&&u.reserveSpace()&&(s=Ki(s)?Math.min(s,h):h)}),l.length&&(l.sort((u,h)=>u-h),i=Eo([l]))}return i&&s?Math.min(i,s):i||s}nameToX(i){let s=cs(this.options.categories),l=s?this.categories:this.names,u=i.options.x,h;return i.series.requireSorting=!1,Ki(u)||(u=this.uniqueNames&&l?s?l.indexOf(i.name):ui(l.keys[i.name],-1):i.series.autoIncrement()),u===-1?!s&&l&&(h=l.length):He(u)&&(h=u),h!==void 0?(this.names[h]=i.name,this.names.keys[i.name]=h):i.x&&(h=i.x),h}updateNames(){let i=this,s=this.names;s.length>0&&(Object.keys(s.keys).forEach(function(l){delete s.keys[l]}),s.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(l=>{l.xIncrement=null,(!l.points||l.isDirtyData)&&(i.max=Math.max(i.max||0,l.dataTable.rowCount-1),l.processData(),l.generatePoints());let u=l.getColumn("x").slice();l.data.forEach((h,f)=>{let g=u[f];h!=null&&h.options&&h.name!==void 0&&(g=i.nameToX(h))!==void 0&&g!==h.x&&(u[f]=h.x=g)}),l.dataTable.setColumn("x",u)}))}setAxisTranslation(){let i=this,s=i.max-i.min,l=i.linkedParent,u=!!i.categories,h=i.isXAxis,f=i.axisPointRange||0,g,x=0,C=0,P,M=i.transA;(h||u||f)&&(g=i.getClosest(),l?(x=l.minPointOffset,C=l.pointRangePadding):i.series.forEach(function(N){let U=u?1:h?ui(N.options.pointRange,g,0):i.axisPointRange||0,V=N.options.pointPlacement;if(f=Math.max(f,U),!i.single||u){let et=N.is("xrange")?!h:h;x=Math.max(x,et&&rr(V)?0:U/2),C=Math.max(C,et&&V==="on"?0:U)}}),P=i.ordinal&&i.ordinal.slope&&g?i.ordinal.slope/g:1,i.minPointOffset=x*=P,i.pointRangePadding=C*=P,i.pointRange=Math.min(f,i.single&&u?1:s),h&&g&&(i.closestPointRange=g)),i.translationSlope=i.transA=M=i.staticScale||i.len/(s+C||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=M*x,Gi(this,"afterSetAxisTranslation")}minFromRange(){let{max:i,min:s}=this;return He(i)&&He(s)&&i-s||void 0}setTickInterval(i){var Qe,wi,Xe,mi;let{categories:s,chart:l,dataMax:u,dataMin:h,dateTime:f,isXAxis:g,logarithmic:x,options:C,softThreshold:P}=this,M=l.time,N=He(this.threshold)?this.threshold:void 0,U=this.minRange||0,{ceiling:V,floor:et,linkedTo:rt,softMax:Q,softMin:dt}=C,ft=He(rt)&&((Qe=l[this.coll])==null?void 0:Qe[rt]),Rt=C.tickPixelInterval,Nt=C.maxPadding,Lt=C.minPadding,Ut=0,$t,qt=He(C.tickInterval)&&C.tickInterval>=0?C.tickInterval:void 0,be,Ce,Ie,pe;if(f||s||ft||this.getTickAmount(),Ie=ui(this.userMin,M.parse(C.min)),pe=ui(this.userMax,M.parse(C.max)),ft?(this.linkedParent=ft,$t=ft.getExtremes(),this.min=ui($t.min,$t.dataMin),this.max=ui($t.max,$t.dataMax),this.type!==ft.type&&$s(11,!0,l)):(P&&Ki(N)&&He(u)&&He(h)&&(h>=N?(be=N,Lt=0):u<=N&&(Ce=N,Nt=0)),this.min=ui(Ie,be,h),this.max=ui(pe,Ce,u)),He(this.max)&&He(this.min)&&(x&&(this.positiveValuesOnly&&!i&&0>=Math.min(this.min,ui(h,this.min))&&$s(10,!0,l),this.min=Sn(x.log2lin(this.min),16),this.max=Sn(x.log2lin(this.max),16)),this.range&&He(h)&&(this.userMin=this.min=Ie=Math.max(h,this.minFromRange()||0),this.userMax=pe=this.max,this.range=void 0)),Gi(this,"foundExtremes"),this.adjustForMinRange(),He(this.min)&&He(this.max)){if(!He(this.userMin)&&He(dt)&&dt<this.min&&(this.min=Ie=dt),!He(this.userMax)&&He(Q)&&Q>this.max&&(this.max=pe=Q),s||this.axisPointRange||(wi=this.stacking)!=null&&wi.usePercentage||ft||!(Ut=this.max-this.min)||(!Ki(Ie)&&Lt&&(this.min-=Ut*Lt),Ki(pe)||!Nt||(this.max+=Ut*Nt)),!He(this.userMin)&&He(et)&&(this.min=Math.max(this.min,et)),!He(this.userMax)&&He(V)&&(this.max=Math.min(this.max,V)),P&&He(h)&&He(u)){let $e=N||0;!Ki(Ie)&&this.min<$e&&h>=$e?this.min=C.minRange?Math.min($e,this.max-U):$e:!Ki(pe)&&this.max>$e&&u<=$e&&(this.max=C.minRange?Math.max($e,this.min+U):$e)}!l.polar&&this.min>this.max&&(Ki(C.min)?this.max=this.min:Ki(C.max)&&(this.min=this.max)),Ut=this.max-this.min}if(this.min!==this.max&&He(this.min)&&He(this.max)?ft&&!qt&&Rt===ft.options.tickPixelInterval?this.tickInterval=qt=ft.tickInterval:this.tickInterval=ui(qt,this.tickAmount?Ut/Math.max(this.tickAmount-1,1):void 0,s?1:Ut*Rt/Math.max(this.len,Rt)):this.tickInterval=1,g&&!i){let $e=this.min!==((Xe=this.old)==null?void 0:Xe.min)||this.max!==((mi=this.old)==null?void 0:mi.max);this.series.forEach(function(Je){var fi;Je.forceCrop=(fi=Je.forceCropping)==null?void 0:fi.call(Je),Je.processData($e)}),Gi(this,"postProcessData",{hasExtremesChanged:$e})}this.setAxisTranslation(),Gi(this,"initialAxisTranslation"),this.pointRange&&!qt&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let Ne=ui(C.minTickInterval,f&&!this.series.some($e=>!$e.sorted)?this.closestPointRange:0);!qt&&this.tickInterval<Ne&&(this.tickInterval=Ne),f||x||qt||(this.tickInterval=Qn(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var P,M;let i=this.options,s=i.tickPositions,l=i.tickPositioner,u=this.getMinorTickInterval(),h=!this.isPanning,f=h&&i.startOnTick,g=h&&i.endOnTick,x=[],C;if(this.tickmarkOffset=this.categories&&i.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&Ki(this.min)&&!this.tickAmount&&(this.min%1==0||i.allowDecimals!==!1),s)x=s.slice();else if(He(this.min)&&He(this.max)){if(!((P=this.ordinal)!=null&&P.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))x=[this.min,this.max],$s(19,!1,this.chart);else if(this.dateTime)x=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,(M=this.ordinal)==null?void 0:M.positions,this.closestPointRange,!0);else if(this.logarithmic)x=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let N=this.tickInterval,U=N;for(;U<=2*N&&(x=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&x.length>this.tickAmount);)this.tickInterval=Qn(this,U*=1.1)}x.length>this.len&&(x=[x[0],x[x.length-1]])[0]===x[1]&&(x.length=1),l&&(this.tickPositions=x,(C=l.apply(this,[this.min,this.max]))&&(x=C))}this.tickPositions=x,this.minorTickInterval=u==="auto"&&this.tickInterval?this.tickInterval/i.minorTicksPerMajor:u,this.paddedTicks=x.slice(0),this.trimTicks(x,f,g),!this.isLinked&&He(this.min)&&He(this.max)&&(this.single&&x.length<2&&!this.categories&&!this.series.some(N=>N.is("heatmap")&&N.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),s||C||this.adjustTickAmount()),Gi(this,"afterSetTickPositions")}trimTicks(i,s,l){let u=i[0],h=i[i.length-1],f=!this.isOrdinal&&this.minPointOffset||0;if(Gi(this,"trimTicks"),!this.isLinked){if(s&&u!==-1/0)this.min=u;else for(;this.min-f>i[0];)i.shift();if(l)this.max=h;else for(;this.max+f<i[i.length-1];)i.pop();i.length===0&&Ki(u)&&!this.options.tickPositions&&i.push((h+u)/2)}}alignToOthers(){let i,s=this,l=s.chart,u=[this],h=s.options,f=l.options.chart,g=this.coll==="yAxis"&&f.alignThresholds,x=[];if(s.thresholdAlignment=void 0,(f.alignTicks!==!1&&h.alignTicks||g)&&h.startOnTick!==!1&&h.endOnTick!==!1&&!s.logarithmic){let C=M=>{let{horiz:N,options:U}=M;return[N?U.left:U.top,U.width,U.height,U.pane].join(",")},P=C(this);l[this.coll].forEach(function(M){let{series:N}=M;N.length&&N.some(U=>U.visible)&&M!==s&&C(M)===P&&(i=!0,u.push(M))})}if(i&&g){u.forEach(P=>{let M=P.getThresholdAlignment(s);He(M)&&x.push(M)});let C=x.length>1?x.reduce((P,M)=>P+=M,0)/x.length:void 0;u.forEach(P=>{P.thresholdAlignment=C})}return i}getThresholdAlignment(i){if((!He(this.dataMin)||this!==i&&this.series.some(s=>s.isDirty||s.isDirtyData))&&this.getSeriesExtremes(),He(this.threshold)){let s=ml((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(s=1-s),s}}getTickAmount(){let i=this.options,s=i.tickPixelInterval,l=i.tickAmount;Ki(i.tickInterval)||l||!(this.len<s)||this.isRadial||this.logarithmic||!i.startOnTick||!i.endOnTick||(l=2),!l&&this.alignToOthers()&&(l=Math.ceil(this.len/s)+1),l<4&&(this.finalTickAmt=l,l=5),this.tickAmount=l}adjustTickAmount(){let i=this,{finalTickAmt:s,max:l,min:u,options:h,tickPositions:f,tickAmount:g,thresholdAlignment:x}=i,C=f==null?void 0:f.length,P=ui(i.threshold,i.softThreshold?0:null),M,N,U=i.tickInterval,V,et=()=>f.push(Sn(f[f.length-1]+U)),rt=()=>f.unshift(Sn(f[0]-U));if(He(x)&&(V=x<.5?Math.ceil(x*(g-1)):Math.floor(x*(g-1)),h.reversed&&(V=g-1-V)),i.hasData()&&He(u)&&He(l)){let Q=()=>{i.transA*=(C-1)/(g-1),i.min=h.startOnTick?f[0]:Math.min(u,f[0]),i.max=h.endOnTick?f[f.length-1]:Math.max(l,f[f.length-1])};if(He(V)&&He(i.threshold)){for(;f[V]!==P||f.length!==g||f[0]>u||f[f.length-1]<l;){for(f.length=0,f.push(i.threshold);f.length<g;)f[V]===void 0||f[V]>i.threshold?rt():et();if(U>8*i.tickInterval)break;U*=2}Q()}else if(C<g){for(;f.length<g;)f.length%2||u===P?et():rt();Q()}if(Ki(s)){for(N=M=f.length;N--;)(s===3&&N%2==1||s<=2&&N>0&&N<M-1)&&f.splice(N,1);i.finalTickAmt=void 0}}}setScale(){var f,g;let{coll:i,stacking:s}=this,l=!1,u=!1;this.series.forEach(x=>{l=l||x.isDirtyData||x.isDirty,u=u||x.xAxis&&x.xAxis.isDirty||!1}),this.setAxisSize();let h=this.len!==(this.old&&this.old.len);h||l||u||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(s&&i==="yAxis"&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&i==="xAxis"&&s.buildStacks(),this.isDirty||(this.isDirty=h||this.min!==((f=this.old)==null?void 0:f.min)||this.max!==((g=this.old)==null?void 0:g.max))):s&&s.cleanStacks(),l&&delete this.allExtremes,Gi(this,"afterSetScale")}setExtremes(i,s,l=!0,u,h){let f=this.chart;this.series.forEach(g=>{delete g.kdTree}),i=f.time.parse(i),s=f.time.parse(s),Gi(this,"setExtremes",h=Ar(h,{min:i,max:s}),g=>{this.userMin=g.min,this.userMax=g.max,this.eventArgs=g,l&&f.redraw(u)})}setAxisSize(){let i=this.chart,s=this.options,l=s.offsets||[0,0,0,0],u=this.horiz,h=this.width=Math.round(Ao(ui(s.width,i.plotWidth-l[3]+l[1]),i.plotWidth)),f=this.height=Math.round(Ao(ui(s.height,i.plotHeight-l[0]+l[2]),i.plotHeight)),g=this.top=Math.round(Ao(ui(s.top,i.plotTop+l[0]),i.plotHeight,i.plotTop)),x=this.left=Math.round(Ao(ui(s.left,i.plotLeft+l[3]),i.plotWidth,i.plotLeft));this.bottom=i.chartHeight-f-g,this.right=i.chartWidth-h-x,this.len=Math.max(u?h:f,0),this.pos=u?x:g}getExtremes(){let i=this.logarithmic;return{min:i?Sn(i.lin2log(this.min)):this.min,max:i?Sn(i.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(i){let s=this.logarithmic,l=s?s.lin2log(this.min):this.min,u=s?s.lin2log(this.max):this.max;return i===null||i===-1/0?i=l:i===1/0?i=u:l>i?i=l:u<i&&(i=u),this.translate(i,0,1,0,1)}autoLabelAlign(i){let s=(ui(i,0)-90*this.side+720)%360,l={align:"center"};return Gi(this,"autoLabelAlign",l,function(u){s>15&&s<165?u.align="right":s>195&&s<345&&(u.align="left")}),l.align}tickSize(i){let s=this.options,l=ui(s[i==="tick"?"tickWidth":"minorTickWidth"],i==="tick"&&this.isXAxis&&!this.categories?1:0),u=s[i==="tick"?"tickLength":"minorTickLength"],h;l&&u&&(s[i+"Position"]==="inside"&&(u=-u),h=[u,l]);let f={tickSize:h};return Gi(this,"afterTickSize",f),f.tickSize}labelMetrics(){let i=this.chart.renderer,s=this.ticks,l=s[Object.keys(s)[0]]||{};return this.chart.renderer.fontMetrics(l.label||l.movedLabel||i.box)}unsquish(){let i=this.options.labels,s=i.padding||0,l=this.horiz,u=this.tickInterval,h=this.len/(((this.categories?1:0)+this.max-this.min)/u),f=i.rotation,g=Sn(.8*this.labelMetrics().h),x=Math.max(this.max-this.min,0),C=function(V){let et=(V+2*s)/(h||1);return(et=et>1?Math.ceil(et):1)*u>x&&V!==1/0&&h!==1/0&&x&&(et=Math.ceil(x/u)),Sn(et*u)},P=u,M,N=Number.MAX_VALUE,U;if(l){if(!i.staggerLines&&(He(f)?U=[f]:h<i.autoRotationLimit&&(U=i.autoRotation)),U){let V,et;for(let rt of U)(rt===f||rt&&rt>=-90&&rt<=90)&&(et=(V=C(Math.abs(g/Math.sin(Kc*rt))))+Math.abs(rt/360))<N&&(N=et,M=rt,P=V)}}else P=C(.75*g);return this.autoRotation=U,this.labelRotation=ui(M,He(f)?f:0),i.step?u:P}getSlotWidth(i){let s=this.chart,l=this.horiz,u=this.options.labels,h=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=s.margin[3];if(i&&He(i.slotWidth))return i.slotWidth;if(l&&u.step<2&&!this.isRadial)return u.rotation?0:(this.staggerLines||1)*this.len/h;if(!l){let g=u.style.width;if(g!==void 0)return parseInt(String(g),10);if(f)return f-s.spacing[3]}return .33*s.chartWidth}renderUnsquish(){let i=this.chart,s=i.renderer,l=this.tickPositions,u=this.ticks,h=this.options.labels,f=h.style,g=this.horiz,x=this.getSlotWidth(),C=Math.max(1,Math.round(x-(g?2*(h.padding||0):h.distance||0))),P={},M=this.labelMetrics(),N=f.lineClamp,U,V=N??(Math.floor(this.len/(l.length*M.h))||1),et=0;rr(h.rotation)||(P.rotation=h.rotation||0),l.forEach(function(rt){var ft;let Q=u[rt];Q.movedLabel&&Q.replaceMovedLabel();let dt=((ft=Q.label)==null?void 0:ft.textPxLength)||0;dt>et&&(et=dt)}),this.maxLabelLength=et,this.autoRotation?et>C&&et>M.h?P.rotation=this.labelRotation:this.labelRotation=0:x&&(U=C),P.rotation&&(U=et>.5*i.chartHeight?.33*i.chartHeight:et,N||(V=1)),this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(P.align=this.labelAlign),l.forEach(function(rt){let Q=u[rt],dt=Q&&Q.label,ft=f.width,Rt={};dt&&(dt.attr(P),Q.shortenLabel?Q.shortenLabel():U&&!ft&&f.whiteSpace!=="nowrap"&&(U<(dt.textPxLength||0)||dt.element.tagName==="SPAN")?dt.css(Ar(Rt,{width:`${U}px`,lineClamp:V})):!dt.styles.width||Rt.width||ft||dt.css({width:"auto"}),Q.rotation=P.rotation)},this),this.tickRotCorr=s.rotCorr(M.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(i){return i.hasData()})||this.options.showEmpty&&Ki(this.min)&&Ki(this.max)}addTitle(i){let s,l=this.chart.renderer,u=this.horiz,h=this.opposite,f=this.options.title,g=this.chart.styledMode;this.axisTitle||((s=f.textAlign)||(s=(u?{low:"left",middle:"center",high:"right"}:{low:h?"right":"left",middle:"center",high:h?"left":"right"})[f.align]),this.axisTitle=l.text(f.text||"",0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation||0,align:s}).addClass("highcharts-axis-title"),g||this.axisTitle.css(pn(f.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),g||f.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[i?"show":"hide"](i)}generateTick(i){let s=this.ticks;s[i]?s[i].addLabel():s[i]=new Kr(this,i)}createGroups(){let{axisParent:i,chart:s,coll:l,options:u}=this,h=s.renderer,f=(g,x,C)=>h.g(g).attr({zIndex:C}).addClass(`highcharts-${l.toLowerCase()}${x} `+(this.isRadial?`highcharts-radial-axis${x} `:"")+(u.className||"")).add(i);this.axisGroup||(this.gridGroup=f("grid","-grid",u.gridZIndex),this.axisGroup=f("axis","",u.zIndex),this.labelGroup=f("axis-labels","-labels",u.labels.zIndex))}getOffset(){let i=this,{chart:s,horiz:l,options:u,side:h,ticks:f,tickPositions:g,coll:x}=i,C=s.inverted&&!i.isZAxis?[1,0,3,2][h]:h,P=i.hasData(),M=u.title,N=u.labels,U=He(u.crossing),V=s.axisOffset,et=s.clipOffset,rt=[-1,1,1,-1][h],Q,dt=0,ft,Rt=0,Nt=0,Lt,Ut;if(i.showAxis=Q=P||u.showEmpty,i.staggerLines=i.horiz&&N.staggerLines||void 0,i.createGroups(),P||i.isLinked?(g.forEach(function($t){i.generateTick($t)}),i.renderUnsquish(),i.reserveSpaceDefault=h===0||h===2||{1:"left",3:"right"}[h]===i.labelAlign,ui(N.reserveSpace,!U&&null,i.labelAlign==="center"||null,i.reserveSpaceDefault)&&g.forEach(function($t){Nt=Math.max(f[$t].getLabelSize(),Nt)}),i.staggerLines&&(Nt*=i.staggerLines),i.labelOffset=Nt*(i.opposite?-1:1)):$r(f,function($t,qt){$t.destroy(),delete f[qt]}),M!=null&&M.text&&M.enabled!==!1&&(i.addTitle(Q),Q&&!U&&M.reserveSpace!==!1&&(i.titleOffset=dt=i.axisTitle.getBBox()[l?"height":"width"],Rt=Ki(ft=M.offset)?0:ui(M.margin,l?5:10))),i.renderLine(),i.offset=rt*ui(u.offset,V[h]?V[h]+(u.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},Ut=h===0?-i.labelMetrics().h:h===2?i.tickRotCorr.y:0,Lt=Math.abs(Nt)+Rt,Nt&&(Lt-=Ut,Lt+=rt*(l?ui(N.y,i.tickRotCorr.y+rt*N.distance):ui(N.x,rt*N.distance))),i.axisTitleMargin=ui(ft,Lt),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(f,g)),x!=="colorAxis"&&et){let $t=this.tickSize("tick");V[h]=Math.max(V[h],(i.axisTitleMargin||0)+dt+rt*i.offset,Lt,g&&g.length&&$t?$t[0]+rt*i.offset:0);let qt=!i.axisLine||u.offset?0:i.axisLine.strokeWidth()/2;et[C]=Math.max(et[C],qt)}Gi(this,"afterGetOffset")}getLinePath(i){let s=this.chart,l=this.opposite,u=this.offset,h=this.horiz,f=this.left+(l?this.width:0)+u,g=s.chartHeight-this.bottom-(l?this.height:0)+u;return l&&(i*=-1),s.renderer.crispLine([["M",h?this.left:f,h?g:this.top],["L",h?s.chartWidth-this.right:f,h?g:s.chartHeight-this.bottom]],i)}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(i){let s=this.horiz,l=this.left,u=this.top,h=this.len,f=this.options.title,g=s?l:u,x=this.opposite,C=this.offset,P=f.x,M=f.y,N=this.chart.renderer.fontMetrics(i),U=i?Math.max(i.getBBox(!1,0).height-N.h-1,0):0,V={low:g+(s?0:h),middle:g+h/2,high:g+(s?h:0)}[f.align],et=(s?u+this.height:l)+(s?1:-1)*(x?-1:1)*(this.axisTitleMargin||0)+[-U,U,N.f,-U][this.side],rt={x:s?V+P:et+(x?this.width:0)+C+P,y:s?et+M-(x?this.height:0)+C:V+M};return Gi(this,"afterGetTitlePosition",{titlePosition:rt}),rt}renderMinorTick(i,s){let l=this.minorTicks;l[i]||(l[i]=new Kr(this,i,"minor")),s&&l[i].isNew&&l[i].render(null,!0),l[i].render(null,!1,1)}renderTick(i,s,l){let u=this.isLinked,h=this.ticks;(!u||i>=this.min&&i<=this.max||this.grid&&this.grid.isColumn)&&(h[i]||(h[i]=new Kr(this,i)),l&&h[i].isNew&&h[i].render(s,!0,-1),h[i].render(s))}render(){let i,s,l=this,u=l.chart,h=l.logarithmic,f=u.renderer,g=l.options,x=l.isLinked,C=l.tickPositions,P=l.axisTitle,M=l.ticks,N=l.minorTicks,U=l.alternateBands,V=g.stackLabels,et=g.alternateGridColor,rt=g.crossing,Q=l.tickmarkOffset,dt=l.axisLine,ft=l.showAxis,Rt=za(f.globalAnimation);if(l.labelEdge.length=0,l.overlap=!1,[M,N,U].forEach(function(Nt){$r(Nt,function(Lt){Lt.isActive=!1})}),He(rt)){let Nt=this.isXAxis?u.yAxis[0]:u.xAxis[0],Lt=[1,-1,-1,1][this.side];if(Nt){let Ut=Nt.toPixels(rt,!0);l.horiz&&(Ut=Nt.len-Ut),l.offset=Lt*Ut}}if(l.hasData()||x){let Nt=l.chart.hasRendered&&l.old&&He(l.old.min);l.minorTickInterval&&!l.categories&&l.getMinorTickPositions().forEach(function(Lt){l.renderMinorTick(Lt,Nt)}),C.length&&(C.forEach(function(Lt,Ut){l.renderTick(Lt,Ut,Nt)}),Q&&(l.min===0||l.single)&&(M[-1]||(M[-1]=new Kr(l,-1,null,!0)),M[-1].render(-1))),et&&C.forEach(function(Lt,Ut){s=C[Ut+1]!==void 0?C[Ut+1]+Q:l.max-Q,Ut%2==0&&Lt<l.max&&s<=l.max+(u.polar?-Q:Q)&&(U[Lt]||(U[Lt]=new at.PlotLineOrBand(l,{})),i=Lt+Q,U[Lt].options={from:h?h.lin2log(i):i,to:h?h.lin2log(s):s,color:et,className:"highcharts-alternate-grid"},U[Lt].render(),U[Lt].isActive=!0)}),l._addedPlotLB||(l._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(function(Lt){l.addPlotBandOrLine(Lt)}))}[M,N,U].forEach(function(Nt){let Lt=[],Ut=Rt.duration;$r(Nt,function($t,qt){$t.isActive||($t.render(qt,!1,0),$t.isActive=!1,Lt.push(qt))}),Zn(function(){let $t=Lt.length;for(;$t--;)Nt[Lt[$t]]&&!Nt[Lt[$t]].isActive&&(Nt[Lt[$t]].destroy(),delete Nt[Lt[$t]])},Nt!==U&&u.hasRendered&&Ut?Ut:0)}),dt&&(dt[dt.isPlaced?"animate":"attr"]({d:this.getLinePath(dt.strokeWidth())}),dt.isPlaced=!0,dt[ft?"show":"hide"](ft)),P&&ft&&(P[P.isNew?"attr":"animate"](l.getTitlePosition(P)),P.isNew=!1),V&&V.enabled&&l.stacking&&l.stacking.renderStackTotals(),l.old={len:l.len,max:l.max,min:l.min,transA:l.transA,userMax:l.userMax,userMin:l.userMin},l.isDirty=!1,Gi(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(i){i.render()})),this.series.forEach(function(i){i.isDirty=!0})}getKeepProps(){return this.keepProps||Oi.keepProps}destroy(i){let s=this,l=s.plotLinesAndBands,u=this.eventOptions;if(Gi(this,"destroy",{keepEvents:i}),i||Rr(s),[s.ticks,s.minorTicks,s.alternateBands].forEach(function(h){cc(h)}),l){let h=l.length;for(;h--;)l[h].destroy()}for(let h in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(f){s[f]&&(s[f]=s[f].destroy())}),s.plotLinesAndBandsGroups)s.plotLinesAndBandsGroups[h]=s.plotLinesAndBandsGroups[h].destroy();$r(s,function(h,f){s.getKeepProps().indexOf(f)===-1&&delete s[f]}),this.eventOptions=u}drawCrosshair(i,s){let l=this.crosshair,u=ui(l&&l.snap,!0),h=this.chart,f,g,x,C=this.cross,P;if(Gi(this,"drawCrosshair",{e:i,point:s}),i||(i=this.cross&&this.cross.e),l&&(Ki(s)||!u)!==!1){if(u?Ki(s)&&(g=ui(this.coll!=="colorAxis"?s.crosshairPos:null,this.isXAxis?s.plotX:this.len-s.plotY)):g=i&&(this.horiz?i.chartX-this.pos:this.len-i.chartY+this.pos),Ki(g)&&(P={value:s&&(this.isXAxis?s.x:ui(s.stackY,s.y)),translatedValue:g},h.polar&&Ar(P,{isCrosshair:!0,chartX:i&&i.chartX,chartY:i&&i.chartY,point:s}),f=this.getPlotLinePath(P)||null),!Ki(f)){this.hideCrosshair();return}x=this.categories&&!this.isRadial,C||(this.cross=C=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(x?"category ":"thin ")+(l.className||"")).attr({zIndex:ui(l.zIndex,2)}).add(),!h.styledMode&&(C.attr({stroke:l.color||(x?ei.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":ui(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&C.attr({dashstyle:l.dashStyle}))),C.show().attr({d:f}),x&&!l.width&&C.attr({"stroke-width":this.transA}),this.cross.e=i}else this.hideCrosshair();Gi(this,"afterDrawCrosshair",{e:i,point:s})}hideCrosshair(){this.cross&&this.cross.hide(),Gi(this,"afterHideCrosshair")}update(i,s){let l=this.chart;i=pn(this.userOptions,i),this.destroy(!0),this.init(l,i),l.isDirtyBox=!0,ui(s,!0)&&l.redraw()}remove(i){let s=this.chart,l=this.coll,u=this.series,h=u.length;for(;h--;)u[h]&&u[h].remove(!1);oa(s.axes,this),oa(s[l]||[],this),s.orderItems(l),this.destroy(),s.isDirtyBox=!0,ui(i,!0)&&s.redraw()}setTitle(i,s){this.update({title:i},s)}setCategories(i,s){this.update({categories:i},s)}}Oi.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];let{addEvent:Zr,getMagnitude:Hs,normalizeTickInterval:uc,timeUnits:Us}=me;(function(w){function i(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function s(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new l(this))}w.compose=function(u){return u.keepProps.includes("dateTime")||(u.keepProps.push("dateTime"),u.prototype.getTimeTicks=i,Zr(u,"afterSetType",s)),u};class l{constructor(h){this.axis=h}normalizeTimeTickInterval(h,f){let g=f||[["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]],x=g[g.length-1],C=Us[x[0]],P=x[1],M;for(M=0;M<g.length&&(C=Us[(x=g[M])[0]],P=x[1],!g[M+1]||!(h<=(C*P[P.length-1]+Us[g[M+1][0]])/2));M++);C===Us.year&&h<5*C&&(P=[1,2,5]);let N=uc(h/C,P,x[0]==="year"?Math.max(Hs(h/C),1):1);return{unitRange:C,count:N,unitName:x[0]}}getXDateFormat(h,f){let{axis:g}=this,x=g.chart.time;return g.closestPointRange?x.getDateFormat(g.closestPointRange,h,g.options.startOfWeek,f)||x.resolveDTLFormat(f.year).main:x.resolveDTLFormat(f.day).main}}w.Additions=l})(R||(R={}));let Fs=R,{addEvent:Zc,normalizeTickInterval:yl,pick:bl}=me;(function(w){function i(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new l(this))}function s(){let u=this.logarithmic;u&&(this.lin2val=function(h){return u.lin2log(h)},this.val2lin=function(h){return u.log2lin(h)})}w.compose=function(u){return u.keepProps.includes("logarithmic")||(u.keepProps.push("logarithmic"),Zc(u,"afterSetType",i),Zc(u,"afterInit",s)),u};class l{constructor(h){this.axis=h}getLogTickPositions(h,f,g,x){let C=this.axis,P=C.len,M=C.options,N=[];if(x||(this.minorAutoInterval=void 0),h>=.5)h=Math.round(h),N=C.getLinearTickPositions(h,f,g);else if(h>=.08){let U,V,et,rt,Q,dt,ft,Rt=Math.floor(f);for(U=h>.3?[1,2,4]:h>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],V=Rt;V<g+1&&!ft;V++)for(et=0,rt=U.length;et<rt&&!ft;et++)(Q=this.log2lin(this.lin2log(V)*U[et]))>f&&(!x||dt<=g)&&dt!==void 0&&N.push(dt),dt>g&&(ft=!0),dt=Q}else{let U=this.lin2log(f),V=this.lin2log(g),et=x?C.getMinorTickInterval():M.tickInterval,rt=M.tickPixelInterval/(x?5:1),Q=x?P/C.tickPositions.length:P;h=yl(h=bl(et==="auto"?null:et,this.minorAutoInterval,(V-U)*rt/(Q||1))),N=C.getLinearTickPositions(h,U,V).map(this.log2lin),x||(this.minorAutoInterval=h/5)}return x||(C.tickInterval=h),N}lin2log(h){return Math.pow(10,h)}log2lin(h){return Math.log(h)/Math.LN10}}w.Additions=l})(j||(j={}));let xl=j,{erase:ja,extend:$a,isNumber:Ro}=me;(function(w){let i;function s(C){return this.addPlotBandOrLine(C,"plotBands")}function l(C,P){let M=this.userOptions,N=new i(this,C);if(this.visible&&(N=N.render()),N){if(this._addedPlotLB||(this._addedPlotLB=!0,(M.plotLines||[]).concat(M.plotBands||[]).forEach(U=>{this.addPlotBandOrLine(U)})),P){let U=M[P]||[];U.push(C),M[P]=U}this.plotLinesAndBands.push(N)}return N}function u(C){return this.addPlotBandOrLine(C,"plotLines")}function h(C,P,M){M=M||this.options;let N=this.getPlotLinePath({value:P,force:!0,acrossPanes:M.acrossPanes}),U=[],V=this.horiz,et=!Ro(this.min)||!Ro(this.max)||C<this.min&&P<this.min||C>this.max&&P>this.max,rt=this.getPlotLinePath({value:C,force:!0,acrossPanes:M.acrossPanes}),Q,dt=1,ft;if(rt&&N)for(et&&(ft=rt.toString()===N.toString(),dt=0),Q=0;Q<rt.length;Q+=2){let Rt=rt[Q],Nt=rt[Q+1],Lt=N[Q],Ut=N[Q+1];(Rt[0]==="M"||Rt[0]==="L")&&(Nt[0]==="M"||Nt[0]==="L")&&(Lt[0]==="M"||Lt[0]==="L")&&(Ut[0]==="M"||Ut[0]==="L")&&(V&&Lt[1]===Rt[1]?(Lt[1]+=dt,Ut[1]+=dt):V||Lt[2]!==Rt[2]||(Lt[2]+=dt,Ut[2]+=dt),U.push(["M",Rt[1],Rt[2]],["L",Nt[1],Nt[2]],["L",Ut[1],Ut[2]],["L",Lt[1],Lt[2]],["Z"])),U.isFlat=ft}return U}function f(C){this.removePlotBandOrLine(C)}function g(C){let P=this.plotLinesAndBands,M=this.options,N=this.userOptions;if(P){let U=P.length;for(;U--;)P[U].id===C&&P[U].destroy();[M.plotLines||[],N.plotLines||[],M.plotBands||[],N.plotBands||[]].forEach(function(V){for(U=V.length;U--;)(V[U]||{}).id===C&&ja(V,V[U])})}}function x(C){this.removePlotBandOrLine(C)}w.compose=function(C,P){let M=P.prototype;return M.addPlotBand||(i=C,$a(M,{addPlotBand:s,addPlotLine:u,addPlotBandOrLine:l,getPlotBandPath:h,removePlotBand:f,removePlotLine:x,removePlotBandOrLine:g})),P}})($||($={}));let vl=$,{addEvent:Sl,arrayMax:wl,arrayMin:Oo,defined:us,destroyObjectProperties:Ha,erase:Cl,fireEvent:kl,merge:Ua,objectEach:la,pick:Qc}=me;class ca{static compose(i,s){return Sl(i,"afterInit",function(){this.labelCollectors.push(()=>{var u;let l=[];for(let h of this.axes)for(let{label:f,options:g}of h.plotLinesAndBands)f&&!((u=g==null?void 0:g.label)!=null&&u.allowOverlap)&&l.push(f);return l})}),vl.compose(ca,s)}constructor(i,s){this.axis=i,this.options=s,this.id=s.id}render(){kl(this,"render");let{axis:i,options:s}=this,{horiz:l,logarithmic:u}=i,{color:h,events:f,zIndex:g=0}=s,{renderer:x,time:C}=i.chart,P={},M=C.parse(s.to),N=C.parse(s.from),U=C.parse(s.value),V=s.borderWidth,et=s.label,{label:rt,svgElem:Q}=this,dt=[],ft,Rt=us(N)&&us(M),Nt=us(U),Lt=!Q,Ut={class:"highcharts-plot-"+(Rt?"band ":"line ")+(s.className||"")},$t=Rt?"bands":"lines";if(!i.chart.styledMode&&(Nt?(Ut.stroke=h||"#999999",Ut["stroke-width"]=Qc(s.width,1),s.dashStyle&&(Ut.dashstyle=s.dashStyle)):Rt&&(Ut.fill=h||"#e6e9ff",V&&(Ut.stroke=s.borderColor,Ut["stroke-width"]=V))),P.zIndex=g,$t+="-"+g,(ft=i.plotLinesAndBandsGroups[$t])||(i.plotLinesAndBandsGroups[$t]=ft=x.g("plot-"+$t).attr(P).add()),Q||(this.svgElem=Q=x.path().attr(Ut).add(ft)),us(U))dt=i.getPlotLinePath({value:(u==null?void 0:u.log2lin(U))??U,lineWidth:Q.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(us(N)&&us(M)))return;dt=i.getPlotBandPath((u==null?void 0:u.log2lin(N))??N,(u==null?void 0:u.log2lin(M))??M,s)}return!this.eventsAdded&&f&&(la(f,(qt,be)=>{Q==null||Q.on(be,Ce=>{f[be].apply(this,[Ce])})}),this.eventsAdded=!0),(Lt||!Q.d)&&(dt!=null&&dt.length)?Q.attr({d:dt}):Q&&(dt?(Q.show(),Q.animate({d:dt})):Q.d&&(Q.hide(),rt&&(this.label=rt=rt.destroy()))),et&&(us(et.text)||us(et.formatter))&&(dt!=null&&dt.length)&&i.width>0&&i.height>0&&!dt.isFlat?(et=Ua({align:l&&Rt?"center":void 0,x:l?!Rt&&4:10,verticalAlign:!l&&Rt?"middle":void 0,y:l?Rt?16:10:Rt?6:-4,rotation:l&&!Rt?90:0,...Rt?{inside:!0}:{}},et),this.renderLabel(et,dt,Rt,g)):rt&&rt.hide(),this}renderLabel(i,s,l,u){var V;let h=this.axis,f=h.chart.renderer,g=i.inside,x=this.label;x||(this.label=x=f.text(this.getLabelText(i),0,0,i.useHTML).attr({align:i.textAlign||i.align,rotation:i.rotation,class:"highcharts-plot-"+(l?"band":"line")+"-label "+(i.className||""),zIndex:u}),h.chart.styledMode||x.css(Ua({fontSize:"0.8em",textOverflow:l&&!g?"":"ellipsis"},i.style)),x.add());let C=s.xBounds||[s[0][1],s[1][1],l?s[2][1]:s[0][1]],P=s.yBounds||[s[0][2],s[1][2],l?s[2][2]:s[0][2]],M=Oo(C),N=Oo(P),U=wl(C)-M;x.align(i,!1,{x:M,y:N,width:U,height:wl(P)-N}),(!x.alignValue||x.alignValue==="left"||us(g))&&x.css({width:(((V=i.style)==null?void 0:V.width)||(l&&g?U:x.rotation===90?h.height-(x.alignAttr.y-h.top):(i.clip?h.width:h.chart.chartWidth)-(x.alignAttr.x-h.left)))+"px"}),x.show(!0)}getLabelText(i){return us(i.formatter)?i.formatter.call(this):i.text}destroy(){Cl(this.axis.plotLinesAndBands,this),delete this.axis,Ha(this)}}let{animObject:Po}=hn,{format:Bo}=Ir,{composed:Fa,dateFormats:ds,doc:Ml,isSafari:Cs}=at,{distribute:dc}=Nr,{addEvent:Qr,clamp:sr,css:ao,discardElement:Jc,extend:ua,fireEvent:pr,isArray:On,isNumber:Gs,isObject:hc,isString:tu,merge:Fu,pick:an,pushUnique:Jn,splat:da,syncTimeout:B}=me;class y{constructor(i,s,l){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=i,this.init(i,s),this.pointer=l}bodyFormatter(i){return i.map(s=>{let l=s.series.tooltipOptions,u=s.formatPrefix||"point";return(l[u+"Formatter"]||s.tooltipFormatter).call(s,l[u+"Format"]||"")})}cleanSplit(i){this.chart.series.forEach(function(s){let l=s&&s.tt;l&&(!l.isActive||i?s.tt=l.destroy():l.isActive=!1)})}defaultFormatter(i){let s,l=this.points||da(this);return(s=(s=[i.headerFooterFormatter(l[0])]).concat(i.bodyFormatter(l))).push(i.headerFooterFormatter(l[0],!0)),s}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(),Jc(this.container)),me.clearTimeout(this.hideTimer)}getAnchor(i,s){let l,{chart:u,pointer:h}=this,f=u.inverted,g=u.plotTop,x=u.plotLeft;if((i=da(i))[0].series&&i[0].series.yAxis&&!i[0].series.yAxis.options.reversedStacks&&(i=i.slice().reverse()),this.followPointer&&s)s.chartX===void 0&&(s=h.normalize(s)),l=[s.chartX-x,s.chartY-g];else if(i[0].tooltipPos)l=i[0].tooltipPos;else{let C=0,P=0;i.forEach(function(M){let N=M.pos(!0);N&&(C+=N[0],P+=N[1])}),C/=i.length,P/=i.length,this.shared&&i.length>1&&s&&(f?C=s.chartX:P=s.chartY),l=[C-x,P-g]}return l.map(Math.round)}getClassName(i,s,l){let u=this.options,h=i.series,f=h.options;return[u.className,"highcharts-label",l&&"highcharts-tooltip-header",s?"highcharts-tooltip-box":"highcharts-tooltip",!l&&"highcharts-color-"+an(i.colorIndex,h.colorIndex),f&&f.className].filter(tu).join(" ")}getLabel({anchorX:i,anchorY:s}={anchorX:0,anchorY:0}){let l=this,u=this.chart.styledMode,h=this.options,f=this.split&&this.allowShared,g=this.container,x=this.chart.renderer;if(this.label){let C=!this.label.hasClass("highcharts-label");(!f&&C||f&&!C)&&this.destroy()}if(!this.label){if(this.outside){let C=this.chart,P=C.options.chart.style,M=is.getRendererType();this.container=g=at.doc.createElement("div"),g.className="highcharts-tooltip-container "+(C.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),ao(g,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(P&&P.zIndex||0)+3)}),this.renderer=x=new M(g,0,0,P,void 0,void 0,x.styledMode)}if(f?this.label=x.g("tooltip"):(this.label=x.label("",i,s,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),u||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth||0}).css(h.style).css({pointerEvents:h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),l.outside){let C=this.label;[C.xSetter,C.ySetter].forEach((P,M)=>{C[M?"ySetter":"xSetter"]=N=>{P.call(C,l.distance),C[M?"y":"x"]=N,g&&(g.style[M?"top":"left"]=`${N}px`)}})}this.label.attr({zIndex:8}).shadow(h.shadow).add()}return g&&!g.parentElement&&at.doc.body.appendChild(g),this.label}getPlayingField(){let{body:i,documentElement:s}=Ml,{chart:l,distance:u,outside:h}=this;return{width:h?Math.max(i.scrollWidth,s.scrollWidth,i.offsetWidth,s.offsetWidth,s.clientWidth)-2*u-2:l.chartWidth,height:h?Math.max(i.scrollHeight,s.scrollHeight,i.offsetHeight,s.offsetHeight,s.clientHeight):l.chartHeight}}getPosition(i,s,l){var Qe,wi;let{distance:u,chart:h,outside:f,pointer:g}=this,{inverted:x,plotLeft:C,plotTop:P,polar:M}=h,{plotX:N=0,plotY:U=0}=l,V={},et=x&&l.h||0,{height:rt,width:Q}=this.getPlayingField(),dt=g.getChartPosition(),ft=Xe=>Xe*dt.scaleX,Rt=Xe=>Xe*dt.scaleY,Nt=Xe=>{let mi=Xe==="x";return[Xe,mi?Q:rt,mi?i:s].concat(f?[mi?ft(i):Rt(s),mi?dt.left-u+ft(N+C):dt.top-u+Rt(U+P),0,mi?Q:rt]:[mi?i:s,mi?N+C:U+P,mi?C:P,mi?C+h.plotWidth:P+h.plotHeight])},Lt=Nt("y"),Ut=Nt("x"),$t,qt=!!l.negative;!M&&((wi=(Qe=h.hoverSeries)==null?void 0:Qe.yAxis)!=null&&wi.reversed)&&(qt=!qt);let be=!this.followPointer&&an(l.ttBelow,!M&&!x===qt),Ce=function(Xe,mi,$e,Je,fi,Qi,Ui){let Li=f?Xe==="y"?Rt(u):ft(u):u,Fi=($e-Je)/2,Ii=Je<fi-u,Ur=fi+u+Je<mi,Wn=fi-Li-$e+Fi,En=fi+Li-Fi;if(be&&Ur)V[Xe]=En;else if(!be&&Ii)V[Xe]=Wn;else if(Ii)V[Xe]=Math.min(Ui-Je,Wn-et<0?Wn:Wn-et);else{if(!Ur)return!1;V[Xe]=Math.max(Qi,En+et+$e>mi?En:En+et)}},Ie=function(Xe,mi,$e,Je,fi){if(fi<u||fi>mi-u)return!1;fi<$e/2?V[Xe]=1:fi>mi-Je/2?V[Xe]=mi-Je-2:V[Xe]=fi-$e/2},pe=function(Xe){[Lt,Ut]=[Ut,Lt],$t=Xe},Ne=()=>{Ce.apply(0,Lt)!==!1?Ie.apply(0,Ut)!==!1||$t||(pe(!0),Ne()):$t?V.x=V.y=0:(pe(!0),Ne())};return(x&&!M||this.len>1)&&pe(),Ne(),V}hide(i){let s=this;me.clearTimeout(this.hideTimer),i=an(i,this.options.hideDelay),this.isHidden||(this.hideTimer=B(function(){let l=s.getLabel();s.getLabel().animate({opacity:0},{duration:i&&150,complete:()=>{l.hide(),s.container&&s.container.remove()}}),s.isHidden=!0},i))}init(i,s){this.chart=i,this.options=s,this.crosshairs=[],this.isHidden=!0,this.split=s.split&&!i.inverted&&!i.polar,this.shared=s.shared||this.split,this.outside=an(s.outside,!!(i.scrollablePixelsX||i.scrollablePixelsY))}shouldStickOnContact(i){return!!(!this.followPointer&&this.options.stickOnContact&&(!i||this.pointer.inClass(i.target,"highcharts-tooltip")))}move(i,s,l,u){let h=this,f=Po(!h.isHidden&&h.options.animation),g=h.followPointer||(h.len||0)>1,x={x:i,y:s};g||(x.anchorX=l,x.anchorY=u),f.step=()=>h.drawTracker(),h.getLabel().animate(x,f)}refresh(i,s){let{chart:l,options:u,pointer:h,shared:f}=this,g=da(i),x=g[0],C=u.format,P=u.formatter||this.defaultFormatter,M=l.styledMode,N=this.allowShared;if(!u.enabled||!x.series)return;me.clearTimeout(this.hideTimer),this.allowShared=!(!On(i)&&i.series&&i.series.noSharedTooltip),N=N&&!this.allowShared,this.followPointer=!this.split&&x.series.tooltipOptions.followPointer;let U=this.getAnchor(i,s),V=U[0],et=U[1];f&&this.allowShared&&(h.applyInactiveState(g),g.forEach(dt=>dt.setState("hover")),x.points=g),this.len=g.length;let rt=tu(C)?Bo(C,x,l):P.call(x,this);x.points=void 0;let Q=x.series;if(this.distance=an(Q.tooltipOptions.distance,16),rt===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(rt,g);else{let dt=V,ft=et;if(s&&h.isDirectTouch&&(dt=s.chartX-l.plotLeft,ft=s.chartY-l.plotTop),l.polar||Q.options.clip===!1||g.some(Rt=>h.isDirectTouch||Rt.series.shouldShowTooltip(dt,ft))){let Rt=this.getLabel(N&&this.tt||{});(!u.style.width||M)&&Rt.css({width:(this.outside?this.getPlayingField():l.spacingBox).width+"px"}),Rt.attr({class:this.getClassName(x),text:rt&&rt.join?rt.join(""):rt}),this.outside&&Rt.attr({x:sr(Rt.x||0,0,this.getPlayingField().width-(Rt.width||0)-1)}),M||Rt.attr({stroke:u.borderColor||x.color||Q.color||"#666666"}),this.updatePosition({plotX:V,plotY:et,negative:x.negative,ttBelow:x.ttBelow,h:U[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}pr(this,"refresh")}renderSplit(i,s){var mi;let l=this,{chart:u,chart:{chartWidth:h,chartHeight:f,plotHeight:g,plotLeft:x,plotTop:C,scrollablePixelsY:P=0,scrollablePixelsX:M,styledMode:N},distance:U,options:V,options:{positioner:et},pointer:rt}=l,{scrollLeft:Q=0,scrollTop:dt=0}=((mi=u.scrollablePlotArea)==null?void 0:mi.scrollingContainer)||{},ft=l.outside&&typeof M!="number"?Ml.documentElement.getBoundingClientRect():{left:Q,right:Q+h},Rt=l.getLabel(),Nt=this.renderer||u.renderer,Lt=!!(u.xAxis[0]&&u.xAxis[0].opposite),{left:Ut,top:$t}=rt.getChartPosition(),qt=C+dt,be=0,Ce=g-P;function Ie($e,Je,fi,Qi,Ui=!0){let Li,Fi;return fi?(Li=Lt?0:Ce,Fi=sr($e-Qi/2,ft.left,ft.right-Qi-(l.outside?Ut:0))):(Li=Je-qt,Fi=sr(Fi=Ui?$e-Qi-U:$e+U,Ui?Fi:ft.left,ft.right)),{x:Fi,y:Li}}tu(i)&&(i=[!1,i]);let pe=i.slice(0,s.length+1).reduce(function($e,Je,fi){if(Je!==!1&&Je!==""){let Qi=s[fi-1]||{isHeader:!0,plotX:s[0].plotX,plotY:g,series:{}},Ui=Qi.isHeader,Li=Ui?l:Qi.series,Fi=Li.tt=function(mr,$n,Hn){let jl=mr,{isHeader:qd,series:_h}=$n;if(!jl){let od={padding:V.padding,r:V.borderRadius};N||(od.fill=V.backgroundColor,od["stroke-width"]=V.borderWidth??1),jl=Nt.label("",0,0,V[qd?"headerShape":"shape"],void 0,void 0,V.useHTML).addClass(l.getClassName($n,!0,qd)).attr(od).add(Rt)}return jl.isActive=!0,jl.attr({text:Hn}),N||jl.css(V.style).attr({stroke:V.borderColor||$n.color||_h.color||"#333333"}),jl}(Li.tt,Qi,Je.toString()),Ii=Fi.getBBox(),Ur=Ii.width+Fi.strokeWidth();Ui&&(be=Ii.height,Ce+=be,Lt&&(qt-=be));let{anchorX:Wn,anchorY:En}=function(mr){let $n,Hn,{isHeader:jl,plotX:qd=0,plotY:_h=0,series:od}=mr;if(jl)$n=Math.max(x+qd,x),Hn=C+g/2;else{let{xAxis:qg,yAxis:Kg}=od;$n=qg.pos+sr(qd,-U,qg.len+U),od.shouldShowTooltip(0,Kg.pos-C+_h,{ignoreX:!0})&&(Hn=Kg.pos+_h)}return{anchorX:$n=sr($n,ft.left-U,ft.right+U),anchorY:Hn}}(Qi);if(typeof En=="number"){let mr=Ii.height+1,$n=et?et.call(l,Ur,mr,Qi):Ie(Wn,En,Ui,Ur);$e.push({align:et?0:void 0,anchorX:Wn,anchorY:En,boxWidth:Ur,point:Qi,rank:an($n.rank,Ui?1:0),size:mr,target:$n.y,tt:Fi,x:$n.x})}else Fi.isActive=!1}return $e},[]);!et&&pe.some($e=>{let{outside:Je}=l,fi=(Je?Ut:0)+$e.anchorX;return fi<ft.left&&fi+$e.boxWidth<ft.right||fi<Ut-ft.left+$e.boxWidth&&ft.right-fi>fi})&&(pe=pe.map($e=>{let{x:Je,y:fi}=Ie($e.anchorX,$e.anchorY,$e.point.isHeader,$e.boxWidth,!1);return ua($e,{target:fi,x:Je})})),l.cleanSplit(),dc(pe,Ce);let Ne={left:Ut,right:Ut};pe.forEach(function($e){let{x:Je,boxWidth:fi,isHeader:Qi}=$e;!Qi&&(l.outside&&Ut+Je<Ne.left&&(Ne.left=Ut+Je),!Qi&&l.outside&&Ne.left+fi>Ne.right&&(Ne.right=Ut+Je))}),pe.forEach(function($e){let{x:Je,anchorX:fi,anchorY:Qi,pos:Ui,point:{isHeader:Li}}=$e,Fi={visibility:Ui===void 0?"hidden":"inherit",x:Je,y:(Ui||0)+qt,anchorX:fi,anchorY:Qi};if(l.outside&&Je<fi){let Ii=Ut-Ne.left;Ii>0&&(Li||(Fi.x=Je+Ii,Fi.anchorX=fi+Ii),Li&&(Fi.x=(Ne.right-Ne.left)/2,Fi.anchorX=fi+Ii))}$e.tt.attr(Fi)});let{container:Qe,outside:wi,renderer:Xe}=l;if(wi&&Qe&&Xe){let{width:$e,height:Je,x:fi,y:Qi}=Rt.getBBox();Xe.setSize($e+fi,Je+Qi,!1),Qe.style.left=Ne.left+"px",Qe.style.top=$t+"px"}Cs&&Rt.attr({opacity:Rt.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let i=this.chart,s=this.label,l=this.shared?i.hoverPoints:i.hoverPoint;if(!s||!l)return;let u={x:0,y:0,width:0,height:0},h=this.getAnchor(l),f=s.getBBox();h[0]+=i.plotLeft-(s.translateX||0),h[1]+=i.plotTop-(s.translateY||0),u.x=Math.min(0,h[0]),u.y=Math.min(0,h[1]),u.width=h[0]<0?Math.max(Math.abs(h[0]),f.width-h[0]):Math.max(Math.abs(h[0]),f.width),u.height=h[1]<0?Math.max(Math.abs(h[1]),f.height-Math.abs(h[1])):Math.max(Math.abs(h[1]),f.height),this.tracker?this.tracker.attr(u):(this.tracker=s.renderer.rect(u).addClass("highcharts-tracker").add(s),i.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(i){return i.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(i,s){let l=i.series,u=l.tooltipOptions,h=l.xAxis,f=h&&h.dateTime,g={isFooter:s,point:i},x=u.xDateFormat||"",C=u[s?"footerFormat":"headerFormat"];return pr(this,"headerFormatter",g,function(P){if(f&&!x&&Gs(i.key)&&(x=f.getXDateFormat(i.key,u.dateTimeLabelFormats)),f&&x){if(hc(x)){let M=x;ds[0]=N=>l.chart.time.dateFormat(M,N),x="%0"}(i.tooltipDateKeys||["key"]).forEach(M=>{C=C.replace(RegExp("point\\."+M+"([ \\)}])",""),`(point.${M}:${x})$1`)})}l.chart.styledMode&&(C=this.styledModeFormat(C)),P.text=Bo(C,i,this.chart)}),g.text||""}update(i){this.destroy(),this.init(this.chart,Fu(!0,this.options,i))}updatePosition(i){let{chart:s,container:l,distance:u,options:h,pointer:f,renderer:g}=this,{height:x=0,width:C=0}=this.getLabel(),{left:P,top:M,scaleX:N,scaleY:U}=f.getChartPosition(),V=(h.positioner||this.getPosition).call(this,C,x,i),et=at.doc,rt=(i.plotX||0)+s.plotLeft,Q=(i.plotY||0)+s.plotTop,dt;g&&l&&(h.positioner&&(V.x+=P-u,V.y+=M-u),dt=(h.borderWidth||0)+2*u+2,g.setSize(sr(C+dt,0,et.documentElement.clientWidth)-1,x+dt,!1),(N!==1||U!==1)&&(ao(l,{transform:`scale(${N}, ${U})`}),rt*=N,Q*=U),rt+=P-V.x,Q+=M-V.y),this.move(Math.round(V.x),Math.round(V.y||0),rt,Q)}}(function(w){w.compose=function(i){Jn(Fa,"Core.Tooltip")&&Qr(i,"afterInit",function(){let s=this.chart;s.options.tooltip&&(s.tooltip=new w(s,s.options.tooltip,this))})}})(y||(y={}));let T=y,{animObject:D}=hn,{defaultOptions:G}=ai,{format:nt}=Ir,{addEvent:K,crisp:gt,erase:Mt,extend:At,fireEvent:Bt,getNestedProperty:Jt,isArray:Wt,isFunction:Xt,isNumber:Vt,isObject:de,merge:Fe,pick:ni,syncTimeout:ri,removeEvent:xi,uniqueKey:Ge}=me;class Ve{animateBeforeDestroy(){let i=this,s={x:i.startXPos,opacity:0},l=i.getGraphicalProps();l.singular.forEach(function(u){i[u]=i[u].animate(u==="dataLabel"?{x:i[u].startXPos,y:i[u].startYPos,opacity:0}:s)}),l.plural.forEach(function(u){i[u].forEach(function(h){h.element&&h.animate(At({x:i.startXPos},h.startYPos?{x:h.startXPos,y:h.startYPos}:{}))})})}applyOptions(i,s){let l=this.series,u=l.options.pointValKey||l.pointValKey;return At(this,i=Ve.prototype.optionsToObject.call(this,i)),this.options=this.options?At(this.options,i):i,i.group&&delete this.group,i.dataLabels&&delete this.dataLabels,u&&(this.y=Ve.prototype.getNestedProperty.call(this,u)),this.selected&&(this.state="select"),"name"in this&&s===void 0&&l.xAxis&&l.xAxis.hasNames&&(this.x=l.xAxis.nameToX(this)),this.x===void 0&&l?this.x=s??l.autoIncrement():Vt(i.x)&&l.options.relativeXValue?this.x=l.autoIncrement(i.x):typeof this.x=="string"&&(s??(s=l.chart.time.parse(this.x)),Vt(s)&&(this.x=s)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let i=this,s=i.series,l=s.chart,u=s.options.dataSorting,h=l.hoverPoints,f=D(i.series.chart.renderer.globalAnimation),g=()=>{for(let x in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(xi(i),i.destroyElements()),i)delete i[x]};i.legendItem&&l.legend.destroyItem(i),h&&(i.setState(),Mt(h,i),h.length||(l.hoverPoints=null)),i===l.hoverPoint&&i.onMouseOut(),u&&u.enabled?(this.animateBeforeDestroy(),ri(g,f.duration)):g(),l.pointCount--}this.destroyed=!0}destroyElements(i){let s=this,l=s.getGraphicalProps(i);l.singular.forEach(function(u){s[u]=s[u].destroy()}),l.plural.forEach(function(u){s[u].forEach(function(h){h&&h.element&&h.destroy()}),delete s[u]})}firePointEvent(i,s,l){let u=this,h=this.series.options;u.manageEvent(i),i==="click"&&h.allowPointSelect&&(l=function(f){!u.destroyed&&u.select&&u.select(null,f.ctrlKey||f.metaKey||f.shiftKey)}),Bt(u,i,s,l)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(i){let s,l,u=this,h=[],f={singular:[],plural:[]};for((i=i||{graphic:1,dataLabel:1}).graphic&&h.push("graphic","connector"),i.dataLabel&&h.push("dataLabel","dataLabelPath","dataLabelUpper"),l=h.length;l--;)u[s=h[l]]&&f.singular.push(s);return["graphic","dataLabel"].forEach(function(g){let x=g+"s";i[g]&&u[x]&&f.plural.push(x)}),f}getNestedProperty(i){return i?i.indexOf("custom.")===0?Jt(i,this.options):this[i]:void 0}getZone(){let i=this.series,s=i.zones,l=i.zoneAxis||"y",u,h=0;for(u=s[0];this[l]>=u.value;)u=s[++h];return this.nonZonedColor||(this.nonZonedColor=this.color),u&&u.color&&!this.options.color?this.color=u.color:this.color=this.nonZonedColor,u}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(i,s,l){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=i,this.applyOptions(s,l),this.id??(this.id=Ge()),this.resolveColor(),i.chart.pointCount++,Bt(this,"afterInit")}isValid(){return(Vt(this.x)||this.x instanceof Date)&&Vt(this.y)}optionsToObject(i){var P;let s=this.series,l=s.options.keys,u=l||s.pointArrayMap||["y"],h=u.length,f={},g,x=0,C=0;if(Vt(i)||i===null)f[u[0]]=i;else if(Wt(i))for(!l&&i.length>h&&((g=typeof i[0])=="string"?(P=s.xAxis)!=null&&P.dateTime?f.x=s.chart.time.parse(i[0]):f.name=i[0]:g==="number"&&(f.x=i[0]),x++);C<h;)l&&i[x]===void 0||(u[C].indexOf(".")>0?Ve.prototype.setNestedProperty(f,i[x],u[C]):f[u[C]]=i[x]),x++,C++;else typeof i=="object"&&(f=i,i.dataLabels&&(s.hasDataLabels=()=>!0),i.marker&&(s._hasPointMarkers=!0));return f}pos(i,s=this.plotY){if(!this.destroyed){let{plotX:l,series:u}=this,{chart:h,xAxis:f,yAxis:g}=u,x=0,C=0;if(Vt(l)&&Vt(s))return i&&(x=f?f.pos:h.plotLeft,C=g?g.pos:h.plotTop),h.inverted&&f&&g?[g.len-s+C,f.len-l+x]:[l+x,s+C]}}resolveColor(){let i=this.series,s=i.chart.options.chart,l=i.chart.styledMode,u,h,f=s.colorCount,g;delete this.nonZonedColor,i.options.colorByPoint?(l||(u=(h=i.options.colors||i.chart.options.colors)[i.colorCounter],f=h.length),g=i.colorCounter,i.colorCounter++,i.colorCounter===f&&(i.colorCounter=0)):(l||(u=i.color),g=i.colorIndex),this.colorIndex=ni(this.options.colorIndex,g),this.color=ni(this.options.color,u)}setNestedProperty(i,s,l){return l.split(".").reduce(function(u,h,f,g){let x=g.length-1===f;return u[h]=x?s:de(u[h],!0)?u[h]:{},u[h]},i),i}shouldDraw(){return!this.isNull}tooltipFormatter(i){var x;let{chart:s,pointArrayMap:l=["y"],tooltipOptions:u}=this.series,{valueDecimals:h="",valuePrefix:f="",valueSuffix:g=""}=u;return s.styledMode&&(i=((x=s.tooltip)==null?void 0:x.styledModeFormat(i))||i),l.forEach(C=>{C="{point."+C,(f||g)&&(i=i.replace(RegExp(C+"}","g"),f+C+"}"+g)),i=i.replace(RegExp(C+"}","g"),C+":,."+h+"f}")}),nt(i,this,s)}update(i,s,l,u){let h,f=this,g=f.series,x=f.graphic,C=g.chart,P=g.options;function M(){f.applyOptions(i);let N=x&&f.hasMockGraphic,U=f.y===null?!N:N;x&&U&&(f.graphic=x.destroy(),delete f.hasMockGraphic),de(i,!0)&&(x&&x.element&&i&&i.marker&&i.marker.symbol!==void 0&&(f.graphic=x.destroy()),i!=null&&i.dataLabels&&f.dataLabel&&(f.dataLabel=f.dataLabel.destroy())),h=f.index;let V={};for(let et of g.dataColumnKeys())V[et]=f[et];g.dataTable.setRow(V,h),P.data[h]=de(P.data[h],!0)||de(i,!0)?f.options:ni(i,P.data[h]),g.isDirty=g.isDirtyData=!0,!g.fixedBox&&g.hasCartesianSeries&&(C.isDirtyBox=!0),P.legendType==="point"&&(C.isDirtyLegend=!0),s&&C.redraw(l)}s=ni(s,!0),u===!1?M():f.firePointEvent("update",{options:i},M)}remove(i,s){this.series.removePoint(this.series.data.indexOf(this),i,s)}select(i,s){let l=this,u=l.series,h=u.chart;i=ni(i,!l.selected),this.selectedStaging=i,l.firePointEvent(i?"select":"unselect",{accumulate:s},function(){l.selected=l.options.selected=i,u.options.data[u.data.indexOf(l)]=l.options,l.setState(i&&"select"),s||h.getSelectedPoints().forEach(function(f){let g=f.series;f.selected&&f!==l&&(f.selected=f.options.selected=!1,g.options.data[g.data.indexOf(f)]=f.options,f.setState(h.hoverPoints&&g.options.inactiveOtherPoints?"inactive":""),f.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(i){let{inverted:s,pointer:l}=this.series.chart;l&&(i=i?l.normalize(i):l.getChartCoordinatesFromPoint(this,s),l.runPointActions(i,this))}onMouseOut(){let i=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(s){s.setState()}),i.hoverPoints=i.hoverPoint=null}manageEvent(i){var u,h,f,g,x,C,P;let s=Fe(this.series.options.point,this.options),l=(u=s.events)==null?void 0:u[i];Xt(l)&&(!((h=this.hcEvents)!=null&&h[i])||((g=(f=this.hcEvents)==null?void 0:f[i])==null?void 0:g.map(M=>M.fn).indexOf(l))===-1)?((x=this.importedUserEvent)==null||x.call(this),this.importedUserEvent=K(this,i,l),this.hcEvents&&(this.hcEvents[i].userEvent=!0)):this.importedUserEvent&&!l&&((C=this.hcEvents)!=null&&C[i])&&((P=this.hcEvents)!=null&&P[i].userEvent)&&(xi(this,i),delete this.hcEvents[i],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(i,s){var Lt;let l=this.series,u=this.state,h=l.options.states[i||"normal"]||{},f=G.plotOptions[l.type].marker&&l.options.marker,g=f&&f.enabled===!1,x=f&&f.states&&f.states[i||"normal"]||{},C=x.enabled===!1,P=this.marker||{},M=l.chart,N=f&&l.markerAttribs,U=l.halo,V,et,rt,Q=l.stateMarkerGraphic,dt;if((i=i||"")===this.state&&!s||this.selected&&i!=="select"||h.enabled===!1||i&&(C||g&&x.enabled===!1)||i&&P.states&&P.states[i]&&P.states[i].enabled===!1)return;if(this.state=i,N&&(V=l.markerAttribs(this,i)),this.graphic&&!this.hasMockGraphic){if(u&&this.graphic.removeClass("highcharts-point-"+u),i&&this.graphic.addClass("highcharts-point-"+i),!M.styledMode){et=l.pointAttribs(this,i),rt=ni(M.options.chart.animation,h.animation);let Ut=et.opacity;l.options.inactiveOtherPoints&&Vt(Ut)&&(this.dataLabels||[]).forEach(function($t){$t&&!$t.hasClass("highcharts-data-label-hidden")&&($t.animate({opacity:Ut},rt),$t.connector&&$t.connector.animate({opacity:Ut},rt))}),this.graphic.animate(et,rt)}V&&this.graphic.animate(V,ni(M.options.chart.animation,x.animation,f.animation)),Q&&Q.hide()}else i&&x&&(dt=P.symbol||l.symbol,Q&&Q.currentSymbol!==dt&&(Q=Q.destroy()),V&&(Q?Q[s?"animate":"attr"]({x:V.x,y:V.y}):dt&&(l.stateMarkerGraphic=Q=M.renderer.symbol(dt,V.x,V.y,V.width,V.height,Fe(f,x)).add(l.markerGroup),Q.currentSymbol=dt)),!M.styledMode&&Q&&this.state!=="inactive"&&Q.attr(l.pointAttribs(this,i))),Q&&(Q[i&&this.isInside?"show":"hide"](),Q.element.point=this,Q.addClass(this.getClassName(),!0));let ft=h.halo,Rt=this.graphic||Q,Nt=Rt&&Rt.visibility||"inherit";ft&&ft.size&&Rt&&Nt!=="hidden"&&!this.isCluster?(U||(l.halo=U=M.renderer.path().add(Rt.parentGroup)),U.show()[s?"animate":"attr"]({d:this.haloPath(ft.size)}),U.attr({class:"highcharts-halo highcharts-color-"+ni(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:Nt,zIndex:-1}),U.point=this,M.styledMode||U.attr(At({fill:this.color||l.color,"fill-opacity":ft.opacity},pi.filterUserAttributes(ft.attributes||{})))):(Lt=U==null?void 0:U.point)!=null&&Lt.haloPath&&!U.point.destroyed&&U.animate({d:U.point.haloPath(0)},null,U.hide),Bt(this,"afterSetState",{state:i})}haloPath(i){let s=this.pos();return s?this.series.chart.renderer.symbols.circle(gt(s[0],1)-i,s[1]-i,2*i,2*i):[]}}let vi=Ve,{parse:ze}=ei,{charts:wn,composed:q,isTouchDevice:b}=at,{addEvent:A,attr:L,css:H,extend:Z,find:X,fireEvent:ut,isNumber:bt,isObject:Tt,objectEach:yt,offset:Ct,pick:pt,pushUnique:vt,splat:mt}=me;class kt{applyInactiveState(i){let s=[],l;(i||[]).forEach(function(u){l=u.series,s.push(l),l.linkedParent&&s.push(l.linkedParent),l.linkedSeries&&(s=s.concat(l.linkedSeries)),l.navigatorSeries&&s.push(l.navigatorSeries)}),this.chart.series.forEach(function(u){s.indexOf(u)===-1?u.setState("inactive",!0):u.options.inactiveOtherPoints&&u.setAllPointsToState("inactive")})}destroy(){let i=this;this.eventsToUnbind.forEach(s=>s()),this.eventsToUnbind=[],!at.chartCount&&(kt.unbindDocumentMouseUp.forEach(s=>s.unbind()),kt.unbindDocumentMouseUp.length=0,kt.unbindDocumentTouchEnd&&(kt.unbindDocumentTouchEnd=kt.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),yt(i,function(s,l){i[l]=void 0})}getSelectionMarkerAttrs(i,s){let l={args:{chartX:i,chartY:s},attrs:{},shapeType:"rect"};return ut(this,"getSelectionMarkerAttrs",l,u=>{let h,{chart:f,zoomHor:g,zoomVert:x}=this,{mouseDownX:C=0,mouseDownY:P=0}=f,M=u.attrs;M.x=f.plotLeft,M.y=f.plotTop,M.width=g?1:f.plotWidth,M.height=x?1:f.plotHeight,g&&(h=i-C,M.width=Math.max(1,Math.abs(h)),M.x=(h>0?0:h)+C),x&&(h=s-P,M.height=Math.max(1,Math.abs(h)),M.y=(h>0?0:h)+P)}),l}drag(i){let{chart:s}=this,{mouseDownX:l=0,mouseDownY:u=0}=s,{panning:h,panKey:f,selectionMarkerFill:g}=s.options.chart,x=s.plotLeft,C=s.plotTop,P=s.plotWidth,M=s.plotHeight,N=Tt(h)?h.enabled:h,U=f&&i[`${f}Key`],V=i.chartX,et=i.chartY,rt,Q=this.selectionMarker;if((!Q||!Q.touch)&&(V<x?V=x:V>x+P&&(V=x+P),et<C?et=C:et>C+M&&(et=C+M),this.hasDragged=Math.sqrt(Math.pow(l-V,2)+Math.pow(u-et,2)),this.hasDragged>10)){rt=s.isInsidePlot(l-x,u-C,{visiblePlotOnly:!0});let{shapeType:dt,attrs:ft}=this.getSelectionMarkerAttrs(V,et);(s.hasCartesianSeries||s.mapView)&&this.hasZoom&&rt&&!U&&!Q&&(this.selectionMarker=Q=s.renderer[dt](),Q.attr({class:"highcharts-selection-marker",zIndex:7}).add(),s.styledMode||Q.attr({fill:g||ze("#334eff").setOpacity(.25).get()})),Q&&Q.attr(ft),rt&&!Q&&N&&s.pan(i,h)}}dragStart(i){let s=this.chart;s.mouseIsDown=i.type,s.cancelClick=!1,s.mouseDownX=i.chartX,s.mouseDownY=i.chartY}getSelectionBox(i){let s={args:{marker:i},result:i.getBBox()};return ut(this,"getSelectionBox",s),s.result}drop(i){let s,{chart:l,selectionMarker:u}=this;for(let h of l.axes)h.isPanning&&(h.isPanning=!1,(h.options.startOnTick||h.options.endOnTick||h.series.some(f=>f.boosted))&&(h.forceRedraw=!0,h.setExtremes(h.userMin,h.userMax,!1),s=!0));if(s&&l.redraw(),u&&i){if(this.hasDragged){let h=this.getSelectionBox(u);l.transform({axes:l.axes.filter(f=>f.zoomEnabled&&(f.coll==="xAxis"&&this.zoomX||f.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:i,xAxis:[],yAxis:[],...h},from:h})}bt(l.index)&&(this.selectionMarker=u.destroy())}l&&bt(l.index)&&(H(l.container,{cursor:l._cursor}),l.cancelClick=this.hasDragged>10,l.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(i,s,l){let u;return i.forEach(function(h){let f=!(h.noSharedTooltip&&s)&&0>h.options.findNearestPointBy.indexOf("y"),g=h.searchPoint(l,f);Tt(g,!0)&&g.series&&(!Tt(u,!0)||function(x,C){var U,V;let P=x.distX-C.distX,M=x.dist-C.dist,N=((U=C.series.group)==null?void 0:U.zIndex)-((V=x.series.group)==null?void 0:V.zIndex);return P!==0&&s?P:M!==0?M:N!==0?N:x.series.index>C.series.index?-1:1}(u,g)>0)&&(u=g)}),u}getChartCoordinatesFromPoint(i,s){let{xAxis:l,yAxis:u}=i.series,h=i.shapeArgs;if(l&&u){let f=i.clientX??i.plotX??0,g=i.plotY||0;return i.isNode&&h&&bt(h.x)&&bt(h.y)&&(f=h.x,g=h.y),s?{chartX:u.len+u.pos-g,chartY:l.len+l.pos-f}:{chartX:f+l.pos,chartY:g+u.pos}}if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:i}=this.chart,s=Ct(i);this.chartPosition={left:s.left,top:s.top,scaleX:1,scaleY:1};let{offsetHeight:l,offsetWidth:u}=i;return u>2&&l>2&&(this.chartPosition.scaleX=s.width/u,this.chartPosition.scaleY=s.height/l),this.chartPosition}getCoordinates(i){let s={xAxis:[],yAxis:[]};for(let l of this.chart.axes)s[l.isXAxis?"xAxis":"yAxis"].push({axis:l,value:l.toValue(i[l.horiz?"chartX":"chartY"])});return s}getHoverData(i,s,l,u,h,f){let g=[],x=function(U){return U.visible&&!(!h&&U.directTouch)&&pt(U.options.enableMouseTracking,!0)},C=s,P,M={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:h};ut(this,"beforeGetHoverData",M),P=C&&!C.stickyTracking?[C]:l.filter(U=>U.stickyTracking&&(M.filter||x)(U));let N=u&&i||!f?i:this.findNearestKDPoint(P,h,f);return C=N&&N.series,N&&(h&&!C.noSharedTooltip?(P=l.filter(function(U){return M.filter?M.filter(U):x(U)&&!U.noSharedTooltip})).forEach(function(U){let V=X(U.points,function(et){return et.x===N.x&&!et.isNull});Tt(V)&&(U.boosted&&U.boost&&(V=U.boost.getPoint(V)),g.push(V))}):g.push(N)),ut(this,"afterGetHoverData",M={hoverPoint:N}),{hoverPoint:M.hoverPoint,hoverSeries:C,hoverPoints:g}}getPointFromEvent(i){let s=i.target,l;for(;s&&!l;)l=s.point,s=s.parentNode;return l}onTrackerMouseOut(i){let s=this.chart,l=i.relatedTarget,u=s.hoverSeries;this.isDirectTouch=!1,!u||!l||u.stickyTracking||this.inClass(l,"highcharts-tooltip")||this.inClass(l,"highcharts-series-"+u.index)&&this.inClass(l,"highcharts-tracker")||u.onMouseOut()}inClass(i,s){let l=i,u;for(;l;){if(u=L(l,"class")){if(u.indexOf(s)!==-1)return!0;if(u.indexOf("highcharts-container")!==-1)return!1}l=l.parentElement}}constructor(i,s){var l;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=s,this.chart=i,this.runChartClick=!!((l=s.chart.events)!=null&&l.click),this.pinchDown=[],this.setDOMEvents(),ut(this,"afterInit")}normalize(i,s){let l=i.touches,u=l?l.length?l.item(0):pt(l.changedTouches,i.changedTouches)[0]:i;s||(s=this.getChartPosition());let h=u.pageX-s.left,f=u.pageY-s.top;return Z(i,{chartX:Math.round(h/=s.scaleX),chartY:Math.round(f/=s.scaleY)})}onContainerClick(i){let s=this.chart,l=s.hoverPoint,u=this.normalize(i),h=s.plotLeft,f=s.plotTop;!s.cancelClick&&(l&&this.inClass(u.target,"highcharts-tracker")?(ut(l.series,"click",Z(u,{point:l})),s.hoverPoint&&l.firePointEvent("click",u)):(Z(u,this.getCoordinates(u)),s.isInsidePlot(u.chartX-h,u.chartY-f,{visiblePlotOnly:!0})&&ut(s,"click",u)))}onContainerMouseDown(i){var l;let s=(1&(i.buttons||i.button))==1;i=this.normalize(i),at.isFirefox&&i.button!==0&&this.onContainerMouseMove(i),(i.button===void 0||s)&&(this.zoomOption(i),s&&((l=i.preventDefault)==null||l.call(i)),this.dragStart(i))}onContainerMouseLeave(i){let{pointer:s}=wn[pt(kt.hoverChartIndex,-1)]||{};i=this.normalize(i),this.onContainerMouseMove(i),s&&!this.inClass(i.relatedTarget,"highcharts-tooltip")&&(s.reset(),s.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(i){let s=this.chart,l=s.tooltip,u=this.normalize(i);this.setHoverChartIndex(i),(s.mouseIsDown==="mousedown"||this.touchSelect(u))&&this.drag(u),!s.openMenu&&(this.inClass(u.target,"highcharts-tracker")||s.isInsidePlot(u.chartX-s.plotLeft,u.chartY-s.plotTop,{visiblePlotOnly:!0}))&&!(l&&l.shouldStickOnContact(u))&&(this.inClass(u.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(u))}onDocumentTouchEnd(i){this.onDocumentMouseUp(i)}onContainerTouchMove(i){this.touchSelect(i)?this.onContainerMouseMove(i):this.touch(i)}onContainerTouchStart(i){this.touchSelect(i)?this.onContainerMouseDown(i):(this.zoomOption(i),this.touch(i,!0))}onDocumentMouseMove(i){let s=this.chart,l=s.tooltip,u=this.chartPosition,h=this.normalize(i,u);!u||s.isInsidePlot(h.chartX-s.plotLeft,h.chartY-s.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(h)||h.target!==s.container.ownerDocument&&this.inClass(h.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(i){var s,l;(l=(s=wn[pt(kt.hoverChartIndex,-1)])==null?void 0:s.pointer)==null||l.drop(i)}pinch(i){let s=this,{chart:l,hasZoom:u,lastTouches:h}=s,f=[].map.call(i.touches||[],M=>s.normalize(M)),g=f.length,x=g===1&&(s.inClass(i.target,"highcharts-tracker")&&l.runTrackerClick||s.runChartClick),C=l.tooltip,P=g===1&&pt(C==null?void 0:C.options.followTouchMove,!0);g>1?s.initiated=!0:P&&(s.initiated=!1),u&&s.initiated&&!x&&i.cancelable!==!1&&i.preventDefault(),i.type==="touchstart"?(s.pinchDown=f,s.res=!0,l.mouseDownX=i.chartX):P?this.runPointActions(s.normalize(i)):h&&(ut(l,"touchpan",{originalEvent:i,touches:f},()=>{let M=N=>{let U=N[0],V=N[1]||U;return{x:U.chartX,y:U.chartY,width:V.chartX-U.chartX,height:V.chartY-U.chartY}};l.transform({axes:l.axes.filter(N=>N.zoomEnabled&&(this.zoomHor&&N.horiz||this.zoomVert&&!N.horiz)),to:M(f),from:M(h),trigger:i.type})}),s.res&&(s.res=!1,this.reset(!1,0))),s.lastTouches=f}reset(i,s){let l=this.chart,u=l.hoverSeries,h=l.hoverPoint,f=l.hoverPoints,g=l.tooltip,x=g&&g.shared?f:h;i&&x&&mt(x).forEach(function(C){C.series.isCartesian&&C.plotX===void 0&&(i=!1)}),i?g&&x&&mt(x).length&&(g.refresh(x),g.shared&&f?f.forEach(function(C){C.setState(C.state,!0),C.series.isCartesian&&(C.series.xAxis.crosshair&&C.series.xAxis.drawCrosshair(null,C),C.series.yAxis.crosshair&&C.series.yAxis.drawCrosshair(null,C))}):h&&(h.setState(h.state,!0),l.axes.forEach(function(C){C.crosshair&&h.series[C.coll]===C&&C.drawCrosshair(null,h)}))):(h&&h.onMouseOut(),f&&f.forEach(function(C){C.setState()}),u&&u.onMouseOut(),g&&g.hide(s),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),l.axes.forEach(function(C){C.hideCrosshair()}),l.hoverPoints=l.hoverPoint=void 0)}runPointActions(i,s,l){let u=this.chart,h=u.series,f=u.tooltip&&u.tooltip.options.enabled?u.tooltip:void 0,g=!!f&&f.shared,x=s||u.hoverPoint,C=x&&x.series||u.hoverSeries,P=(!i||i.type!=="touchmove")&&(!!s||C&&C.directTouch&&this.isDirectTouch),M=this.getHoverData(x,C,h,P,g,i);x=M.hoverPoint,C=M.hoverSeries;let N=M.hoverPoints,U=C&&C.tooltipOptions.followPointer&&!C.tooltipOptions.split,V=g&&C&&!C.noSharedTooltip;if(x&&(l||x!==u.hoverPoint||f&&f.isHidden)){if((u.hoverPoints||[]).forEach(function(et){N.indexOf(et)===-1&&et.setState()}),u.hoverSeries!==C&&C.onMouseOver(),this.applyInactiveState(N),(N||[]).forEach(function(et){et.setState("hover")}),u.hoverPoint&&u.hoverPoint.firePointEvent("mouseOut"),!x.series)return;u.hoverPoints=N,u.hoverPoint=x,x.firePointEvent("mouseOver",void 0,()=>{f&&x&&f.refresh(V?N:x,i)})}else if(U&&f&&!f.isHidden){let et=f.getAnchor([{}],i);u.isInsidePlot(et[0],et[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:et[0],plotY:et[1]})}this.unDocMouseMove||(this.unDocMouseMove=A(u.container.ownerDocument,"mousemove",et=>{var rt,Q;return(Q=(rt=wn[kt.hoverChartIndex??-1])==null?void 0:rt.pointer)==null?void 0:Q.onDocumentMouseMove(et)}),this.eventsToUnbind.push(this.unDocMouseMove)),u.axes.forEach(function(et){let rt,Q=pt((et.crosshair||{}).snap,!0);!Q||(rt=u.hoverPoint)&&rt.series[et.coll]===et||(rt=X(N,dt=>dt.series&&dt.series[et.coll]===et)),rt||!Q?et.drawCrosshair(i,rt):et.hideCrosshair()})}setDOMEvents(){let i=this.chart.container,s=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(A(i,"mouseenter",this.onContainerMouseEnter.bind(this)),A(i,"mouseleave",this.onContainerMouseLeave.bind(this))),kt.unbindDocumentMouseUp.some(u=>u.doc===s)||kt.unbindDocumentMouseUp.push({doc:s,unbind:A(s,"mouseup",this.onDocumentMouseUp.bind(this))});let l=this.chart.renderTo.parentElement;for(;l&&l.tagName!=="BODY";)this.eventsToUnbind.push(A(l,"scroll",()=>{delete this.chartPosition})),l=l.parentElement;this.eventsToUnbind.push(A(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),A(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),kt.unbindDocumentTouchEnd||(kt.unbindDocumentTouchEnd=A(s,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),A(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var h,f;if(!b)return;let i=this.pointerCaptureEventsToUnbind,s=this.chart,l=s.container,u=pt((h=s.options.tooltip)==null?void 0:h.followTouchMove,!0)&&s.series.some(g=>g.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&u?(i.push(A(l,"pointerdown",g=>{var x,C;(x=g.target)!=null&&x.hasPointerCapture(g.pointerId)&&((C=g.target)==null||C.releasePointerCapture(g.pointerId))}),A(l,"pointermove",g=>{var x,C;(C=(x=s.pointer)==null?void 0:x.getPointFromEvent(g))==null||C.onMouseOver(g)})),s.styledMode||H(l,{"touch-action":"none"}),l.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!u&&(i.forEach(g=>g()),i.length=0,s.styledMode||H(l,{"touch-action":pt((f=s.options.chart.style)==null?void 0:f["touch-action"],"manipulation")}),l.className=l.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(i){var u;let s=this.chart,l=at.charts[pt(kt.hoverChartIndex,-1)];if(l&&l!==s){let h={relatedTarget:s.container};i&&!(i!=null&&i.relatedTarget)&&Object.assign({},i,h),(u=l.pointer)==null||u.onContainerMouseLeave(i||h)}l&&l.mouseIsDown||(kt.hoverChartIndex=s.index)}touch(i,s){let l,{chart:u,pinchDown:h=[]}=this;this.setHoverChartIndex(),(i=this.normalize(i)).touches.length===1?u.isInsidePlot(i.chartX-u.plotLeft,i.chartY-u.plotTop,{visiblePlotOnly:!0})&&!u.openMenu?(s&&this.runPointActions(i),i.type==="touchmove"&&(l=!!h[0]&&Math.pow(h[0].chartX-i.chartX,2)+Math.pow(h[0].chartY-i.chartY,2)>=16),pt(l,!0)&&this.pinch(i)):s&&this.reset():i.touches.length===2&&this.pinch(i)}touchSelect(i){return!!(this.chart.zooming.singleTouch&&i.touches&&i.touches.length===1)}zoomOption(i){let s=this.chart,l=s.inverted,u=s.zooming.type||"",h,f;/touch/.test(i.type)&&(u=pt(s.zooming.pinchType,u)),this.zoomX=h=/x/.test(u),this.zoomY=f=/y/.test(u),this.zoomHor=h&&!l||f&&l,this.zoomVert=f&&!l||h&&l,this.hasZoom=h||f}}kt.unbindDocumentMouseUp=[],function(w){w.compose=function(i){vt(q,"Core.Pointer")&&A(i,"beforeRender",function(){this.pointer=new w(this,this.options)})}}(kt||(kt={}));let Pt=kt,{fireEvent:Gt,isArray:oe,objectEach:fe,uniqueKey:Qt}=me,ae=class{constructor(w={}){this.autoId=!w.id,this.columns={},this.id=w.id||Qt(),this.modified=this,this.rowCount=0,this.versionTag=Qt();let i=0;fe(w.columns||{},(s,l)=>{this.columns[l]=s.slice(),i=Math.max(i,s.length)}),this.applyRowCount(i)}applyRowCount(w){this.rowCount=w,fe(this.columns,i=>{oe(i)&&(i.length=w)})}getColumn(w,i){return this.columns[w]}getColumns(w,i){return(w||Object.keys(this.columns)).reduce((s,l)=>(s[l]=this.columns[l],s),{})}getRow(w,i){return(i||Object.keys(this.columns)).map(s=>{var l;return(l=this.columns[s])==null?void 0:l[w]})}setColumn(w,i=[],s=0,l){this.setColumns({[w]:i},s,l)}setColumns(w,i,s){let l=this.rowCount;fe(w,(u,h)=>{this.columns[h]=u.slice(),l=u.length}),this.applyRowCount(l),s!=null&&s.silent||(Gt(this,"afterSetColumns"),this.versionTag=Qt())}setRow(w,i=this.rowCount,s,l){let{columns:u}=this,h=s?this.rowCount+1:i+1;fe(w,(f,g)=>{let x=u[g]||(l==null?void 0:l.addColumns)!==!1&&Array(h);x&&(s?x.splice(i,0,f):x[i]=f,u[g]=x)}),h>this.rowCount&&this.applyRowCount(h),l!=null&&l.silent||(Gt(this,"afterSetRows"),this.versionTag=Qt())}},{extend:Oe,merge:ce,pick:ye}=me;(function(w){function i(s,l,u){var Rt,Nt;let h=this.legendItem=this.legendItem||{},{chart:f,options:g}=this,{baseline:x=0,symbolWidth:C,symbolHeight:P}=s,M=this.symbol||"circle",N=P/2,U=f.renderer,V=h.group,et=x-Math.round((((Rt=s.fontMetrics)==null?void 0:Rt.b)||P)*(u?.4:.3)),rt={},Q,dt=g.marker,ft=0;if(f.styledMode||(rt["stroke-width"]=Math.min(g.lineWidth||0,24),g.dashStyle?rt.dashstyle=g.dashStyle:g.linecap==="square"||(rt["stroke-linecap"]="round")),h.line=U.path().addClass("highcharts-graph").attr(rt).add(V),u&&(h.area=U.path().addClass("highcharts-area").add(V)),rt["stroke-linecap"]&&(ft=Math.min(h.line.strokeWidth(),C)/2),C){let Lt=[["M",ft,et],["L",C-ft,et]];h.line.attr({d:Lt}),(Nt=h.area)==null||Nt.attr({d:[...Lt,["L",C-ft,x],["L",ft,x]]})}if(dt&&dt.enabled!==!1&&C){let Lt=Math.min(ye(dt.radius,N),N);M.indexOf("url")===0&&(dt=ce(dt,{width:P,height:P}),Lt=0),h.symbol=Q=U.symbol(M,C/2-Lt,et-Lt,2*Lt,2*Lt,Oe({context:"legend"},dt)).addClass("highcharts-point").add(V),Q.isMarker=!0}}w.areaMarker=function(s,l){i.call(this,s,l,!0)},w.lineMarker=i,w.rectangle=function(s,l){let u=l.legendItem||{},h=s.options,f=s.symbolHeight,g=h.squareSymbol,x=g?f:s.symbolWidth;u.symbol=this.chart.renderer.rect(g?(s.symbolWidth-f)/2:0,s.baseline-f+1,x,f,ye(s.options.symbolRadius,f/2)).addClass("highcharts-point").attr({zIndex:3}).add(u.group)}})(I||(I={}));let Te=I,{defaultOptions:De}=ai,{extend:Le,extendClass:Ee,merge:We}=me;(function(w){function i(s,l){let u=De.plotOptions||{},h=l.defaultOptions,f=l.prototype;return f.type=s,f.pointClass||(f.pointClass=vi),!w.seriesTypes[s]&&(h&&(u[s]=h),w.seriesTypes[s]=l,!0)}w.seriesTypes=at.seriesTypes,w.registerSeriesType=i,w.seriesType=function(s,l,u,h,f){let g=De.plotOptions||{};if(l=l||"",g[s]=We(g[l],u),delete w.seriesTypes[s],i(s,Ee(w.seriesTypes[l]||function(){},h)),w.seriesTypes[s].prototype.type=s,f){class x extends vi{}Le(x.prototype,f),w.seriesTypes[s].prototype.pointClass=x}return w.seriesTypes[s]}})(F||(F={}));let Ze=F,{animObject:ji,setAnimation:Ji}=hn,{defaultOptions:_i}=ai,{registerEventOptions:Cn}=ta,{svg:or,win:ln}=at,{seriesTypes:en}=Ze,{arrayMax:hs,arrayMin:ha,clamp:Gn,correctFloat:Bd,crisp:Dd,defined:fr,destroyObjectProperties:cg,diffObjects:ug,erase:vp,error:Gu,extend:eu,find:dg,fireEvent:mn,getClosestDistance:hg,getNestedProperty:Sp,insertItem:pg,isArray:lh,isNumber:Or,isString:fg,merge:pc,objectEach:ch,pick:kn,removeEvent:yy,syncTimeout:gg}=me;class iu{constructor(){this.zoneAxis="y"}init(i,s){let l;mn(this,"init",{options:s}),this.dataTable??(this.dataTable=new ae);let u=i.series;this.eventsToUnbind=[],this.chart=i,this.options=this.setOptions(s);let h=this.options,f=h.visible!==!1;this.linkedSeries=[],this.bindAxes(),eu(this,{name:h.name,state:"",visible:f,selected:h.selected===!0}),Cn(this,h);let g=h.events;(g&&g.click||h.point&&h.point.events&&h.point.events.click||h.allowPointSelect)&&(i.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(i.hasCartesianSeries=!0),u.length&&(l=u[u.length-1]),this._i=kn(l&&l._i,-1)+1,this.opacity=this.options.opacity,i.orderItems("series",pg(this,u)),h.dataSorting&&h.dataSorting.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(h.data,!1),mn(this,"afterInit")}is(i){return en[i]&&this instanceof en[i]}bindAxes(){let i,s=this,l=s.options,u=s.chart;mn(this,"bindAxes",null,function(){(s.axisTypes||[]).forEach(function(h){(u[h]||[]).forEach(function(f){i=f.options,(kn(l[h],0)===f.index||l[h]!==void 0&&l[h]===i.id)&&(pg(s,f.series),s[h]=f,f.isDirty=!0)}),s[h]||s.optionalAxis===h||Gu(18,!0,u)})}),mn(this,"afterBindAxes")}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(i,s){let l=i.marker,u=s.marker||{};return l&&(u.enabled&&!l.enabled||u.symbol!==l.symbol||u.height!==l.height||u.width!==l.width)}autoIncrement(i){let s,l=this.options,{pointIntervalUnit:u,relativeXValue:h}=this.options,f=this.chart.time,g=this.xIncrement??f.parse(l.pointStart)??0;if(this.pointInterval=s=kn(this.pointInterval,l.pointInterval,1),h&&Or(i)&&(s*=i),u){let x=f.toParts(g);u==="day"?x[2]+=s:u==="month"?x[1]+=s:u==="year"&&(x[0]+=s),s=f.makeTime.apply(f,x)-g}return h&&Or(i)?g+s:(this.xIncrement=g+s,g)}setDataSortingOptions(){let i=this.options;eu(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),fr(i.pointRange)||(i.pointRange=1)}setOptions(i){var rt,Q;let s,l=this.chart,u=l.options.plotOptions,h=l.userOptions||{},f=pc(i),g=l.styledMode,x={plotOptions:u,userOptions:f};mn(this,"setOptions",x);let C=x.plotOptions[this.type],P=h.plotOptions||{},M=P.series||{},N=_i.plotOptions[this.type]||{},U=P[this.type]||{};this.userOptions=x.userOptions;let V=pc(C,u.series,U,f);this.tooltipOptions=pc(_i.tooltip,(rt=_i.plotOptions.series)==null?void 0:rt.tooltip,N==null?void 0:N.tooltip,l.userOptions.tooltip,(Q=P.series)==null?void 0:Q.tooltip,U.tooltip,f.tooltip),this.stickyTracking=kn(f.stickyTracking,U.stickyTracking,M.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||V.stickyTracking),C.marker===null&&delete V.marker,this.zoneAxis=V.zoneAxis||"y";let et=this.zones=(V.zones||[]).map(dt=>({...dt}));return(V.negativeColor||V.negativeFillColor)&&!V.zones&&(s={value:V[this.zoneAxis+"Threshold"]||V.threshold||0,className:"highcharts-negative"},g||(s.color=V.negativeColor,s.fillColor=V.negativeFillColor),et.push(s)),et.length&&fr(et[et.length-1].value)&&et.push(g?{}:{color:this.color,fillColor:this.fillColor}),mn(this,"afterSetOptions",{options:V}),V}getName(){return kn(this.options.name,"Series "+(this.index+1))}getCyclic(i,s,l){let u,h,f=this.chart,g=`${i}Index`,x=`${i}Counter`,C=(l==null?void 0:l.length)||f.options.chart.colorCount;!s&&(fr(h=kn(i==="color"?this.options.colorIndex:void 0,this[g]))?u=h:(f.series.length||(f[x]=0),u=f[x]%C,f[x]+=1),l&&(s=l[u])),u!==void 0&&(this[g]=u),this[i]=s}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||_i.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let i=this.options.marker;this.getCyclic("symbol",i.symbol,this.chart.options.symbols)}getColumn(i,s){return(s?this.dataTable.modified:this.dataTable).getColumn(i,!0)||[]}findPointIndex(i,s){let l,u,h,f=i.id,g=i.x,x=this.points,C=this.options.dataSorting;if(f){let P=this.chart.get(f);P instanceof vi&&(l=P)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let P=M=>!M.touched&&M.index===i.index;if(C&&C.matchByName?P=M=>!M.touched&&M.name===i.name:this.options.relativeXValue&&(P=M=>!M.touched&&M.options.x===i.x),!(l=dg(x,P)))return}return l&&(h=l&&l.index)!==void 0&&(u=!0),h===void 0&&Or(g)&&(h=this.getColumn("x").indexOf(g,s)),h!==-1&&h!==void 0&&this.cropped&&(h=h>=this.cropStart?h-this.cropStart:h),!u&&Or(h)&&x[h]&&x[h].touched&&(h=void 0),h}updateData(i,s){let l=this.options,u=l.dataSorting,h=this.points,f=[],g=this.requireSorting,x=i.length===h.length,C,P,M,N,U=!0;if(this.xIncrement=null,i.forEach(function(et,rt){let Q,dt=fr(et)&&this.pointClass.prototype.optionsToObject.call({series:this},et)||{},ft=dt.x;dt.id||Or(ft)?((Q=this.findPointIndex(dt,N))===-1||Q===void 0?f.push(et):h[Q]&&et!==l.data[Q]?(h[Q].update(et,!1,null,!1),h[Q].touched=!0,g&&(N=Q+1)):h[Q]&&(h[Q].touched=!0),(!x||rt!==Q||u&&u.enabled||this.hasDerivedData)&&(C=!0)):f.push(et)},this),C)for(P=h.length;P--;)(M=h[P])&&!M.touched&&M.remove&&M.remove(!1,s);else!x||u&&u.enabled?U=!1:(i.forEach(function(et,rt){et===h[rt].y||h[rt].destroyed||h[rt].update(et,!1,null,!1)}),f.length=0);if(h.forEach(function(et){et&&(et.touched=!1)}),!U)return!1;f.forEach(function(et){this.addPoint(et,!1,null,null,!1)},this);let V=this.getColumn("x");return this.xIncrement===null&&V.length&&(this.xIncrement=hs(V),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(i,s=!0,l,u){var Ut,$t;let h=this.points,f=h&&h.length||0,g=this.options,x=this.chart,C=g.dataSorting,P=this.xAxis,M=g.turboThreshold,N=this.dataTable,U=this.dataColumnKeys(),V=this.pointValKey||"y",et=(this.pointArrayMap||[]).length,rt=g.keys,Q,dt,ft=0,Rt=1,Nt;x.options.chart.allowMutatingData||(g.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,Nt=pc(!0,i));let Lt=(i=Nt||i||[]).length;if(C&&C.enabled&&(i=this.sortData(i)),x.options.chart.allowMutatingData&&u!==!1&&Lt&&f&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(dt=this.updateData(i,l)),!dt){this.xIncrement=null,this.colorCounter=0;let qt=M&&Lt>M;if(qt){let be=this.getFirstValidPoint(i),Ce=this.getFirstValidPoint(i,Lt-1,-1),Ie=pe=>!!(lh(pe)&&(rt||Or(pe[0])));if(Or(be)&&Or(Ce)){let pe=[],Ne=[];for(let Qe of i)pe.push(this.autoIncrement()),Ne.push(Qe);N.setColumns({x:pe,[V]:Ne})}else if(Ie(be)&&Ie(Ce))if(et){let pe=be.length===et?1:0,Ne=Array(U.length).fill(0).map(()=>[]);for(let Qe of i){pe&&Ne[0].push(this.autoIncrement());for(let wi=pe;wi<=et;wi++)(Ut=Ne[wi])==null||Ut.push(Qe[wi-pe])}N.setColumns(U.reduce((Qe,wi,Xe)=>(Qe[wi]=Ne[Xe],Qe),{}))}else{rt&&(ft=rt.indexOf("x"),Rt=rt.indexOf("y"),ft=ft>=0?ft:0,Rt=Rt>=0?Rt:1),be.length===1&&(Rt=0);let pe=[],Ne=[];if(ft===Rt)for(let Qe of i)pe.push(this.autoIncrement()),Ne.push(Qe[Rt]);else for(let Qe of i)pe.push(Qe[ft]),Ne.push(Qe[Rt]);N.setColumns({x:pe,[V]:Ne})}else qt=!1}if(!qt){let be=U.reduce((Ce,Ie)=>(Ce[Ie]=[],Ce),{});for(Q=0;Q<Lt;Q++){let Ce=this.pointClass.prototype.applyOptions.apply({series:this},[i[Q]]);for(let Ie of U)be[Ie][Q]=Ce[Ie]}N.setColumns(be)}for(fg(this.getColumn("y")[0])&&Gu(14,!0,x),this.data=[],this.options.data=this.userOptions.data=i,Q=f;Q--;)($t=h[Q])==null||$t.destroy();P&&(P.minRange=P.userMinRange),this.isDirty=x.isDirtyBox=!0,this.isDirtyData=!!h,l=!1}g.legendType==="point"&&(this.processData(),this.generatePoints()),s&&x.redraw(l)}sortData(i){let s=this,l=s.options.dataSorting.sortKey||"y",u=function(h,f){return fr(f)&&h.pointClass.prototype.optionsToObject.call({series:h},f)||{}};return i.forEach(function(h,f){i[f]=u(s,h),i[f].index=f},this),i.concat().sort((h,f)=>{let g=Sp(l,h),x=Sp(l,f);return x<g?-1:x>g?1:0}).forEach(function(h,f){h.x=f},this),s.linkedSeries&&s.linkedSeries.forEach(function(h){let f=h.options,g=f.data;f.dataSorting&&f.dataSorting.enabled||!g||(g.forEach(function(x,C){g[C]=u(h,x),i[C]&&(g[C].x=i[C].x,g[C].index=C)}),h.setData(g,!1))}),i}getProcessedData(i){let s=this,{dataTable:l,isCartesian:u,options:h,xAxis:f}=s,g=h.cropThreshold,x=i||s.getExtremesFromAll,C=f==null?void 0:f.logarithmic,P=l.rowCount,M,N,U=0,V,et,rt,Q=s.getColumn("x"),dt=l,ft=!1;return f&&(et=(V=f.getExtremes()).min,rt=V.max,ft=!!(f.categories&&!f.names.length),u&&s.sorted&&!x&&(!g||P>g||s.forceCrop)&&(Q[P-1]<et||Q[0]>rt?dt=new ae:s.getColumn(s.pointValKey||"y").length&&(Q[0]<et||Q[P-1]>rt)&&(dt=(M=this.cropData(l,et,rt)).modified,U=M.start,N=!0))),Q=dt.getColumn("x")||[],{modified:dt,cropped:N,cropStart:U,closestPointRange:hg([C?Q.map(C.log2lin):Q],()=>s.requireSorting&&!ft&&Gu(15,!1,s.chart))}}processData(i){let s=this.xAxis,l=this.dataTable;if(this.isCartesian&&!this.isDirty&&!s.isDirty&&!this.yAxis.isDirty&&!i)return!1;let u=this.getProcessedData();l.modified=u.modified,this.cropped=u.cropped,this.cropStart=u.cropStart,this.closestPointRange=this.basePointRange=u.closestPointRange,mn(this,"afterProcessData")}cropData(i,s,l){let u=i.getColumn("x",!0)||[],h=u.length,f={},g,x,C=0,P=h;for(g=0;g<h;g++)if(u[g]>=s){C=Math.max(0,g-1);break}for(x=g;x<h;x++)if(u[x]>l){P=x+1;break}for(let M of this.dataColumnKeys()){let N=i.getColumn(M,!0);N&&(f[M]=N.slice(C,P))}return{modified:new ae({columns:f}),start:C,end:P}}generatePoints(){var Nt,Lt;let i=this.options,s=this.processedData||i.data,l=this.dataTable.modified,u=this.getColumn("x",!0),h=this.pointClass,f=l.rowCount,g=this.cropStart||0,x=this.hasGroupedData,C=i.keys,P=[],M=i.dataGrouping&&i.dataGrouping.groupAll?g:0,N=(Nt=this.xAxis)==null?void 0:Nt.categories,U=this.pointArrayMap||["y"],V=this.dataColumnKeys(),et,rt,Q,dt,ft=this.data,Rt;if(!ft&&!x){let Ut=[];Ut.length=(s==null?void 0:s.length)||0,ft=this.data=Ut}for(C&&x&&(this.options.keys=!1),dt=0;dt<f;dt++)rt=g+dt,x?((Q=new h(this,l.getRow(dt,V)||[])).dataGroup=this.groupMap[M+dt],(Lt=Q.dataGroup)!=null&&Lt.options&&(Q.options=Q.dataGroup.options,eu(Q,Q.dataGroup.options),delete Q.dataLabels)):(Q=ft[rt],Rt=s?s[rt]:l.getRow(dt,U),Q||Rt===void 0||(ft[rt]=Q=new h(this,Rt,u[dt]))),Q&&(Q.index=x?M+dt:rt,P[dt]=Q,Q.category=(N==null?void 0:N[Q.x])??Q.x,Q.key=Q.name??Q.category);if(this.options.keys=C,ft&&(f!==(et=ft.length)||x))for(dt=0;dt<et;dt++)dt!==g||x||(dt+=f),ft[dt]&&(ft[dt].destroyElements(),ft[dt].plotX=void 0);this.data=ft,this.points=P,mn(this,"afterGeneratePoints")}getXExtremes(i){return{min:ha(i),max:hs(i)}}getExtremes(i,s){var Nt;let{xAxis:l,yAxis:u}=this,h=s||this.getExtremesFromAll||this.options.getExtremesFromAll,f=h&&this.cropped?this.dataTable:this.dataTable.modified,g=f.rowCount,x=i||this.stackedYData,C=x?[x]:((Nt=this.keysAffectYAxis||this.pointArrayMap||["y"])==null?void 0:Nt.map(Lt=>f.getColumn(Lt,!0)||[]))||[],P=this.getColumn("x",!0),M=[],N=this.requireSorting&&!this.is("column")?1:0,U=!!u&&u.positiveValuesOnly,V=h||this.cropped||!l,et,rt,Q,dt=0,ft=0;for(l&&(dt=(et=l.getExtremes()).min,ft=et.max),Q=0;Q<g;Q++)if(rt=P[Q],V||(P[Q+N]||rt)>=dt&&(P[Q-N]||rt)<=ft)for(let Lt of C){let Ut=Lt[Q];Or(Ut)&&(Ut>0||!U)&&M.push(Ut)}let Rt={activeYData:M,dataMin:ha(M),dataMax:hs(M)};return mn(this,"afterGetExtremes",{dataExtremes:Rt}),Rt}applyExtremes(){let i=this.getExtremes();return this.dataMin=i.dataMin,this.dataMax=i.dataMax,i}getFirstValidPoint(i,s=0,l=1){let u=i.length,h=s;for(;h>=0&&h<u;){if(fr(i[h]))return i[h];h+=l}}translate(){var dt;this.generatePoints();let i=this.options,s=i.stacking,l=this.xAxis,u=this.enabledDataSorting,h=this.yAxis,f=this.points,g=f.length,x=this.pointPlacementToXValue(),C=!!x,P=i.threshold,M=i.startFromThreshold?P:0,N,U,V,et,rt=Number.MAX_VALUE;function Q(ft){return Gn(ft,-1e9,1e9)}for(N=0;N<g;N++){let ft,Rt=f[N],Nt=Rt.x,Lt,Ut,$t=Rt.y,qt=Rt.low,be=s&&((dt=h.stacking)==null?void 0:dt.stacks[(this.negStacks&&$t<(M?0:P)?"-":"")+this.stackKey]);U=l.translate(Nt,!1,!1,!1,!0,x),Rt.plotX=Or(U)?Bd(Q(U)):void 0,s&&this.visible&&be&&be[Nt]&&(et=this.getStackIndicator(et,Nt,this.index),!Rt.isNull&&et.key&&(Ut=(Lt=be[Nt]).points[et.key]),Lt&&lh(Ut)&&(qt=Ut[0],$t=Ut[1],qt===M&&et.key===be[Nt].base&&(qt=kn(Or(P)?P:h.min)),h.positiveValuesOnly&&fr(qt)&&qt<=0&&(qt=void 0),Rt.total=Rt.stackTotal=kn(Lt.total),Rt.percentage=fr(Rt.y)&&Lt.total?Rt.y/Lt.total*100:void 0,Rt.stackY=$t,this.irregularWidths||Lt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),Rt.yBottom=fr(qt)?Q(h.translate(qt,!1,!0,!1,!0)):void 0,this.dataModify&&($t=this.dataModify.modifyValue($t,N)),Or($t)&&Rt.plotX!==void 0&&(ft=Or(ft=h.translate($t,!1,!0,!1,!0))?Q(ft):void 0),Rt.plotY=ft,Rt.isInside=this.isPointInside(Rt),Rt.clientX=C?Bd(l.translate(Nt,!1,!1,!1,!0,x)):U,Rt.negative=(Rt.y||0)<(P||0),Rt.isNull||Rt.visible===!1||(V!==void 0&&(rt=Math.min(rt,Math.abs(U-V))),V=U),Rt.zone=this.zones.length?Rt.getZone():void 0,!Rt.graphic&&this.group&&u&&(Rt.isNew=!0)}this.closestPointRangePx=rt,mn(this,"afterTranslate")}getValidPoints(i,s,l){let u=this.chart;return(i||this.points||[]).filter(function(h){let{plotX:f,plotY:g}=h;return!!((l||!h.isNull&&Or(g))&&(!s||u.isInsidePlot(f,g,{inverted:u.inverted})))&&h.visible!==!1})}getClipBox(){let{chart:i,xAxis:s,yAxis:l}=this,{x:u,y:h,width:f,height:g}=pc(i.clipBox);return s&&s.len!==i.plotSizeX&&(f=s.len),l&&l.len!==i.plotSizeY&&(g=l.len),i.inverted&&!this.invertible&&([f,g]=[g,f]),{x:u,y:h,width:f,height:g}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:i,group:s,markerGroup:l}=this,u=i.sharedClips,h=i.renderer,f=this.getClipBox(),g=this.getSharedClipKey(),x=u[g];x?x.animate(f):u[g]=x=h.clipRect(f),s&&s.clip(this.options.clip===!1?void 0:x),l&&l.clip()}animate(i){let{chart:s,group:l,markerGroup:u}=this,h=s.inverted,f=ji(this.options.animation),g=[this.getSharedClipKey(),f.duration,f.easing,f.defer].join(","),x=s.sharedClips[g],C=s.sharedClips[g+"m"];if(i&&l){let P=this.getClipBox();if(x)x.attr("height",P.height);else{P.width=0,h&&(P.x=s.plotHeight),x=s.renderer.clipRect(P),s.sharedClips[g]=x;let M={x:-99,y:-99,width:h?s.plotWidth+199:99,height:h?99:s.plotHeight+199};C=s.renderer.clipRect(M),s.sharedClips[g+"m"]=C}l.clip(x),u==null||u.clip(C)}else if(x&&!x.hasClass("highcharts-animating")){let P=this.getClipBox(),M=f.step;(u!=null&&u.element.childNodes.length||s.series.length>1)&&(f.step=function(N,U){M&&M.apply(U,arguments),U.prop==="width"&&(C!=null&&C.element)&&C.attr(h?"height":"width",N+99)}),x.addClass("highcharts-animating").animate(P,f)}}afterAnimate(){this.setClip(),ch(this.chart.sharedClips,(i,s,l)=>{i&&!this.chart.container.querySelector(`[clip-path="url(#${i.id})"]`)&&(i.destroy(),delete l[s])}),this.finishedAnimating=!0,mn(this,"afterAnimate")}drawPoints(i=this.points){let s,l,u,h,f,g,x,C=this.chart,P=C.styledMode,{colorAxis:M,options:N}=this,U=N.marker,V=this[this.specialGroup||"markerGroup"],et=this.xAxis,rt=kn(U.enabled,!et||!!et.isRadial||null,this.closestPointRangePx>=U.enabledThreshold*U.radius);if(U.enabled!==!1||this._hasPointMarkers)for(s=0;s<i.length;s++)if(h=(u=(l=i[s]).graphic)?"animate":"attr",f=l.marker||{},g=!!l.marker,(rt&&f.enabled===void 0||f.enabled)&&!l.isNull&&l.visible!==!1){let Q=kn(f.symbol,this.symbol,"rect");x=this.markerAttribs(l,l.selected&&"select"),this.enabledDataSorting&&(l.startXPos=et.reversed?-(x.width||0):et.width);let dt=l.isInside!==!1;if(!u&&dt&&((x.width||0)>0||l.hasImage)&&(l.graphic=u=C.renderer.symbol(Q,x.x,x.y,x.width,x.height,g?f:U).add(V),this.enabledDataSorting&&C.hasRendered&&(u.attr({x:l.startXPos}),h="animate")),u&&h==="animate"&&u[dt?"show":"hide"](dt).animate(x),u){let ft=this.pointAttribs(l,P||!l.selected?void 0:"select");P?M&&u.css({fill:ft.fill}):u[h](ft)}u&&u.addClass(l.getClassName(),!0)}else u&&(l.graphic=u.destroy())}markerAttribs(i,s){let l=this.options,u=l.marker,h=i.marker||{},f=h.symbol||u.symbol,g={},x,C,P=kn(h.radius,u&&u.radius);s&&(x=u.states[s],P=kn((C=h.states&&h.states[s])&&C.radius,x&&x.radius,P&&P+(x&&x.radiusPlus||0))),i.hasImage=f&&f.indexOf("url")===0,i.hasImage&&(P=0);let M=i.pos();return Or(P)&&M&&(l.crisp&&(M[0]=Dd(M[0],i.hasImage?0:f==="rect"?(u==null?void 0:u.lineWidth)||0:1)),g.x=M[0]-P,g.y=M[1]-P),P&&(g.width=g.height=2*P),g}pointAttribs(i,s){let l=this.options.marker,u=i&&i.options,h=u&&u.marker||{},f=u&&u.color,g=i&&i.color,x=i&&i.zone&&i.zone.color,C,P,M=this.color,N,U,V=kn(h.lineWidth,l.lineWidth),et=1;return M=f||x||g||M,N=h.fillColor||l.fillColor||M,U=h.lineColor||l.lineColor||M,s=s||"normal",C=l.states[s]||{},V=kn((P=h.states&&h.states[s]||{}).lineWidth,C.lineWidth,V+kn(P.lineWidthPlus,C.lineWidthPlus,0)),N=P.fillColor||C.fillColor||N,{stroke:U=P.lineColor||C.lineColor||U,"stroke-width":V,fill:N,opacity:et=kn(P.opacity,C.opacity,et)}}destroy(i){let s,l,u,h=this,f=h.chart,g=/AppleWebKit\/533/.test(ln.navigator.userAgent),x=h.data||[];for(mn(h,"destroy",{keepEventsForUpdate:i}),this.removeEvents(i),(h.axisTypes||[]).forEach(function(C){(u=h[C])&&u.series&&(vp(u.series,h),u.isDirty=u.forceRedraw=!0)}),h.legendItem&&h.chart.legend.destroyItem(h),s=x.length;s--;)(l=x[s])&&l.destroy&&l.destroy();for(let C of h.zones)cg(C,void 0,!0);me.clearTimeout(h.animationTimeout),ch(h,function(C,P){C instanceof ss&&!C.survive&&C[g&&P==="group"?"hide":"destroy"]()}),f.hoverSeries===h&&(f.hoverSeries=void 0),vp(f.series,h),f.orderItems("series"),ch(h,function(C,P){i&&P==="hcEvents"||delete h[P]})}applyZones(){let{area:i,chart:s,graph:l,zones:u,points:h,xAxis:f,yAxis:g,zoneAxis:x}=this,{inverted:C,renderer:P}=s,M=this[`${x}Axis`],{isXAxis:N,len:U=0,minPointOffset:V=0}=M||{},et=((l==null?void 0:l.strokeWidth())||0)/2+1,rt=(Q,dt=0,ft=0)=>{C&&(ft=U-ft);let{translated:Rt=0,lineClip:Nt}=Q,Lt=ft-Rt;Nt==null||Nt.push(["L",dt,Math.abs(Lt)<et?ft-et*(Lt<=0?-1:1):Rt])};if(u.length&&(l||i)&&M&&Or(M.min)){let Q=M.getExtremes().max+V,dt=Nt=>{Nt.forEach((Lt,Ut)=>{(Lt[0]==="M"||Lt[0]==="L")&&(Nt[Ut]=[Lt[0],N?U-Lt[1]:Lt[1],N?Lt[2]:U-Lt[2]])})};if(u.forEach(Nt=>{Nt.lineClip=[],Nt.translated=Gn(M.toPixels(kn(Nt.value,Q),!0)||0,0,U)}),l&&!this.showLine&&l.hide(),i&&i.hide(),x==="y"&&h.length<f.len)for(let Nt of h){let{plotX:Lt,plotY:Ut,zone:$t}=Nt,qt=$t&&u[u.indexOf($t)-1];$t&&rt($t,Lt,Ut),qt&&rt(qt,Lt,Ut)}let ft=[],Rt=M.toPixels(M.getExtremes().min-V,!0);u.forEach(Nt=>{var wi,Xe;let Lt=Nt.lineClip||[],Ut=Math.round(Nt.translated||0);f.reversed&&Lt.reverse();let{clip:$t,simpleClip:qt}=Nt,be=0,Ce=0,Ie=f.len,pe=g.len;N?(be=Ut,Ie=Rt):(Ce=Ut,pe=Rt);let Ne=[["M",be,Ce],["L",Ie,Ce],["L",Ie,pe],["L",be,pe],["Z"]],Qe=[Ne[0],...Lt,Ne[1],Ne[2],...ft,Ne[3],Ne[4]];ft=Lt.reverse(),Rt=Ut,C&&(dt(Qe),i&&dt(Ne)),$t?($t.animate({d:Qe}),qt==null||qt.animate({d:Ne})):($t=Nt.clip=P.path(Qe),i&&(qt=Nt.simpleClip=P.path(Ne))),l&&((wi=Nt.graph)==null||wi.clip($t)),i&&((Xe=Nt.area)==null||Xe.clip(qt))})}else this.visible&&(l&&l.show(),i&&i.show())}plotGroup(i,s,l,u,h){let f=this[i],g=!f,x={visibility:l,zIndex:u||.1};return fr(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(x.opacity=this.opacity),f||(this[i]=f=this.chart.renderer.g().add(h)),f.addClass("highcharts-"+s+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(fr(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),f.attr(x)[g?"attr":"animate"](this.getPlotBox(s)),f}getPlotBox(i){let s=this.xAxis,l=this.yAxis,u=this.chart,h=u.inverted&&!u.polar&&s&&this.invertible&&i==="series";return u.inverted&&(s=l,l=this.xAxis),{translateX:s?s.left:u.plotLeft,translateY:l?l.top:u.plotTop,rotation:h?90:0,rotationOriginX:h?(s.len-l.len)/2:0,rotationOriginY:h?(s.len+l.len)/2:0,scaleX:h?-1:1,scaleY:1}}removeEvents(i){let{eventsToUnbind:s}=this;i||yy(this),s.length&&(s.forEach(l=>{l()}),s.length=0)}render(){var P,M,N,U,V;let i=this,{chart:s,options:l,hasRendered:u}=i,h=ji(l.animation),f=i.visible?"inherit":"hidden",g=l.zIndex,x=s.seriesGroup,C=i.finishedAnimating?0:h.duration;mn(this,"render"),i.plotGroup("group","series",f,g,x),i.markerGroup=i.plotGroup("markerGroup","markers",f,g,x),l.clip!==!1&&i.setClip(),C&&((P=i.animate)==null||P.call(i,!0)),i.drawGraph&&(i.drawGraph(),i.applyZones()),i.visible&&i.drawPoints(),(M=i.drawDataLabels)==null||M.call(i),(N=i.redrawPoints)==null||N.call(i),l.enableMouseTracking&&((U=i.drawTracker)==null||U.call(i)),C&&((V=i.animate)==null||V.call(i)),u||(C&&h.defer&&(C+=h.defer),i.animationTimeout=gg(()=>{i.afterAnimate()},C||0)),i.isDirty=!1,i.hasRendered=!0,mn(i,"afterRender")}redraw(){let i=this.isDirty||this.isDirtyData;this.translate(),this.render(),i&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(i,s){let{xAxis:l,yAxis:u}=this,h=this.chart.inverted;return this.searchKDTree({clientX:h?l.len-i.chartY+l.pos:i.chartX-l.pos,plotY:h?u.len-i.chartX+u.pos:i.chartY-u.pos},s,i)}buildKDTree(i){this.buildingKdTree=!0;let s=this,l=s.options.findNearestPointBy.indexOf("y")>-1?2:1;delete s.kdTree,gg(function(){s.kdTree=function u(h,f,g){let x,C,P=h==null?void 0:h.length;if(P)return x=s.kdAxisArray[f%g],h.sort((M,N)=>(M[x]||0)-(N[x]||0)),{point:h[C=Math.floor(P/2)],left:u(h.slice(0,C),f+1,g),right:u(h.slice(C+1),f+1,g)}}(s.getValidPoints(void 0,!s.directTouch),l,l),s.buildingKdTree=!1},s.options.kdNow||(i==null?void 0:i.type)==="touchstart"?0:1)}searchKDTree(i,s,l,u,h){let f=this,[g,x]=this.kdAxisArray,C=s?"distX":"dist",P=(f.options.findNearestPointBy||"").indexOf("y")>-1?2:1,M=!!f.isBubble,N=u||((V,et,rt)=>[(V[rt]||0)<(et[rt]||0)?V:et,!1]),U=h||((V,et)=>V<et);if(this.kdTree||this.buildingKdTree||this.buildKDTree(l),this.kdTree)return function V(et,rt,Q,dt){var be;let ft=rt.point,Rt=f.kdAxisArray[Q%dt],Nt=ft,Lt=!1;(function(Ce,Ie){var Je;let pe=Ce[g],Ne=Ie[g],Qe=fr(pe)&&fr(Ne)?pe-Ne:null,wi=Ce[x],Xe=Ie[x],mi=fr(wi)&&fr(Xe)?wi-Xe:0,$e=M&&((Je=Ie.marker)==null?void 0:Je.radius)||0;Ie.dist=Math.sqrt((Qe&&Qe*Qe||0)+mi*mi)-$e,Ie.distX=fr(Qe)?Math.abs(Qe)-$e:Number.MAX_VALUE})(et,ft);let Ut=(et[Rt]||0)-(ft[Rt]||0)+(M&&((be=ft.marker)==null?void 0:be.radius)||0),$t=Ut<0?"left":"right",qt=Ut<0?"right":"left";return rt[$t]&&([Nt,Lt]=N(ft,V(et,rt[$t],Q+1,dt),C)),rt[qt]&&U(Math.sqrt(Ut*Ut),Nt[C],Lt)&&(Nt=N(Nt,V(et,rt[qt],Q+1,dt),C)[0]),Nt}(i,this.kdTree,P,P)}pointPlacementToXValue(){let{options:i,xAxis:s}=this,l=i.pointPlacement;return l==="between"&&(l=s.reversed?-.5:.5),Or(l)?l*(i.pointRange||s.pointRange):0}isPointInside(i){let{chart:s,xAxis:l,yAxis:u}=this,{plotX:h=-1,plotY:f=-1}=i;return f>=0&&f<=(u?u.len:s.plotHeight)&&h>=0&&h<=(l?l.len:s.plotWidth)}drawTracker(){var N;let i=this,s=i.options,l=s.trackByArea,u=[].concat((l?i.areaPath:i.graphPath)||[]),h=i.chart,f=h.pointer,g=h.renderer,x=((N=h.options.tooltip)==null?void 0:N.snap)||0,C=()=>{s.enableMouseTracking&&h.hoverSeries!==i&&i.onMouseOver()},P="rgba(192,192,192,"+(or?1e-4:.002)+")",M=i.tracker;M?M.attr({d:u}):i.graph&&(i.tracker=M=g.path(u).attr({visibility:i.visible?"inherit":"hidden",zIndex:2}).addClass(l?"highcharts-tracker-area":"highcharts-tracker-line").add(i.group),h.styledMode||M.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:P,fill:l?P:"none","stroke-width":i.graph.strokeWidth()+(l?0:2*x)}),[i.tracker,i.markerGroup,i.dataLabelsGroup].forEach(U=>{U&&(U.addClass("highcharts-tracker").on("mouseover",C).on("mouseout",V=>{f==null||f.onTrackerMouseOut(V)}),s.cursor&&!h.styledMode&&U.css({cursor:s.cursor}),U.on("touchstart",C))})),mn(this,"afterDrawTracker")}addPoint(i,s,l,u,h){let f,g,x=this.options,{chart:C,data:P,dataTable:M,xAxis:N}=this,U=N&&N.hasNames&&N.names,V=x.data,et=this.getColumn("x");s=kn(s,!0);let rt={series:this};this.pointClass.prototype.applyOptions.apply(rt,[i]);let Q=rt.x;if(g=et.length,this.requireSorting&&Q<et[g-1])for(f=!0;g&&et[g-1]>Q;)g--;M.setRow(rt,g,!0,{addColumns:!1}),U&&rt.name&&(U[Q]=rt.name),V==null||V.splice(g,0,i),(f||this.processedData)&&(this.data.splice(g,0,null),this.processData()),x.legendType==="point"&&this.generatePoints(),l&&(P[0]&&P[0].remove?P[0].remove(!1):([P,V,...Object.values(M.getColumns())].filter(fr).forEach(dt=>{dt.shift()}),M.rowCount-=1,mn(M,"afterDeleteRows"))),h!==!1&&mn(this,"addPoint",{point:rt}),this.isDirty=!0,this.isDirtyData=!0,s&&C.redraw(u)}removePoint(i,s,l){let u=this,{chart:h,data:f,points:g,dataTable:x}=u,C=f[i],P=function(){[(g==null?void 0:g.length)===f.length?g:void 0,f,u.options.data,...Object.values(x.getColumns())].filter(fr).forEach(M=>{M.splice(i,1)}),x.rowCount-=1,mn(x,"afterDeleteRows"),C==null||C.destroy(),u.isDirty=!0,u.isDirtyData=!0,s&&h.redraw()};Ji(l,h),s=kn(s,!0),C?C.firePointEvent("remove",null,P):P()}remove(i,s,l,u){let h=this,f=h.chart;function g(){h.destroy(u),f.isDirtyLegend=f.isDirtyBox=!0,f.linkSeries(u),kn(i,!0)&&f.redraw(s)}l!==!1?mn(h,"remove",null,g):g()}update(i,s){var Q,dt;mn(this,"update",{options:i=ug(i,this.userOptions)});let l=this,u=l.chart,h=l.userOptions,f=l.initialType||l.type,g=u.options.plotOptions,x=en[f].prototype,C=l.finishedAnimating&&{animation:!1},P={},M,N,U=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],V=i.type||h.type||u.options.chart.type,et=!(this.hasDerivedData||V&&V!==this.type||i.keys!==void 0||i.pointStart!==void 0||i.pointInterval!==void 0||i.relativeXValue!==void 0||i.joinBy||i.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(ft=>l.hasOptionChanged(ft)));V=V||f,et?(U.push("data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),i.visible!==!1&&U.push("area","graph"),l.parallelArrays.forEach(function(ft){U.push(ft+"Data")}),i.data&&(i.dataSorting&&eu(l.options.dataSorting,i.dataSorting),this.setData(i.data,!1))):this.dataTable.modified=this.dataTable,i=pc(h,{index:h.index===void 0?l.index:h.index,pointStart:((Q=g==null?void 0:g.series)==null?void 0:Q.pointStart)??h.pointStart??l.getColumn("x")[0]},!et&&{data:l.options.data},i,C),et&&i.data&&(i.data=l.options.data),(U=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(U)).forEach(function(ft){U[ft]=l[ft],delete l[ft]});let rt=!1;if(en[V]){if(rt=V!==l.type,l.remove(!1,!1,!1,!0),rt)if(u.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(l,en[V].prototype);else{let ft=Object.hasOwnProperty.call(l,"hcEvents")&&l.hcEvents;for(N in x)l[N]=void 0;eu(l,en[V].prototype),ft?l.hcEvents=ft:delete l.hcEvents}}else Gu(17,!0,u,{missingModuleFor:V});if(U.forEach(function(ft){l[ft]=U[ft]}),l.init(u,i),et&&this.points)for(let ft of((M=l.options).visible===!1?(P.graphic=1,P.dataLabel=1):(this.hasMarkerChanged(M,h)&&(P.graphic=1),(dt=l.hasDataLabels)!=null&&dt.call(l)||(P.dataLabel=1)),this.points))ft&&ft.series&&(ft.resolveColor(),Object.keys(P).length&&ft.destroyElements(P),M.showInLegend===!1&&ft.legendItem&&u.legend.destroyItem(ft));l.initialType=f,u.linkSeries(),u.setSortedData(),rt&&l.linkedSeries.length&&(l.isDirtyData=!0),mn(this,"afterUpdate"),kn(s,!0)&&u.redraw(!!et&&void 0)}setName(i){this.name=this.options.name=this.userOptions.name=i,this.chart.isDirtyLegend=!0}hasOptionChanged(i){var g,x;let s=this.chart,l=this.options[i],u=s.options.plotOptions,h=this.userOptions[i],f=kn((g=u==null?void 0:u[this.type])==null?void 0:g[i],(x=u==null?void 0:u.series)==null?void 0:x[i]);return h&&!fr(f)?l!==h:l!==kn(f,l)}onMouseOver(){let i=this.chart,s=i.hoverSeries,l=i.pointer;l==null||l.setHoverChartIndex(),s&&s!==this&&s.onMouseOut(),this.options.events.mouseOver&&mn(this,"mouseOver"),this.setState("hover"),i.hoverSeries=this}onMouseOut(){let i=this.options,s=this.chart,l=s.tooltip,u=s.hoverPoint;s.hoverSeries=null,u&&u.onMouseOut(),this&&i.events.mouseOut&&mn(this,"mouseOut"),l&&!this.stickyTracking&&(!l.shared||this.noSharedTooltip)&&l.hide(),s.series.forEach(function(h){h.setState("",!0)})}setState(i,s){let l=this,u=l.options,h=l.graph,f=u.inactiveOtherPoints,g=u.states,x=kn(g[i||"normal"]&&g[i||"normal"].animation,l.chart.options.chart.animation),C=u.lineWidth,P=u.opacity;if(i=i||"",l.state!==i&&([l.group,l.markerGroup,l.dataLabelsGroup].forEach(function(M){M&&(l.state&&M.removeClass("highcharts-series-"+l.state),i&&M.addClass("highcharts-series-"+i))}),l.state=i,!l.chart.styledMode)){if(g[i]&&g[i].enabled===!1)return;if(i&&(C=g[i].lineWidth||C+(g[i].lineWidthPlus||0),P=kn(g[i].opacity,P)),h&&!h.dashstyle&&Or(C))for(let M of[h,...this.zones.map(N=>N.graph)])M==null||M.animate({"stroke-width":C},x);f||[l.group,l.markerGroup,l.dataLabelsGroup,l.labelBySeries].forEach(function(M){M&&M.animate({opacity:P},x)})}s&&f&&l.points&&l.setAllPointsToState(i||void 0)}setAllPointsToState(i){this.points.forEach(function(s){s.setState&&s.setState(i)})}setVisible(i,s){var x;let l=this,u=l.chart,h=u.options.chart.ignoreHiddenSeries,f=l.visible;l.visible=i=l.options.visible=l.userOptions.visible=i===void 0?!f:i;let g=i?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(C=>{var P;(P=l[C])==null||P[g]()}),(u.hoverSeries===l||((x=u.hoverPoint)==null?void 0:x.series)===l)&&l.onMouseOut(),l.legendItem&&u.legend.colorizeItem(l,i),l.isDirty=!0,l.options.stacking&&u.series.forEach(C=>{C.options.stacking&&C.visible&&(C.isDirty=!0)}),l.linkedSeries.forEach(C=>{C.setVisible(i,!1)}),h&&(u.isDirtyBox=!0),mn(l,g),s!==!1&&u.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(i){this.selected=i=this.options.selected=i===void 0?!this.selected:i,this.checkbox&&(this.checkbox.checked=i),mn(this,i?"select":"unselect")}shouldShowTooltip(i,s,l={}){return l.series=this,l.visiblePlotOnly=!0,this.chart.isInsidePlot(i,s,l)}drawLegendSymbol(i,s){var l;(l=Te[this.options.legendSymbol||"rectangle"])==null||l.call(this,i,s)}}iu.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:w}=this.series.chart;return typeof this.y!="number"?"":w(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"},iu.types=Ze.seriesTypes,iu.registerType=Ze.registerSeriesType,eu(iu.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:vi,requireSorting:!0,sorted:!0}),Ze.series=iu;let Jr=iu,{animObject:wp,setAnimation:uh}=hn,{registerEventOptions:Cp}=ta,{composed:mg,marginNames:pa}=at,{distribute:nu}=Nr,{format:fc}=Ir,{addEvent:Ga,createElement:kp,css:Mp,defined:dh,discardElement:yg,find:ru,fireEvent:Do,isNumber:Tp,merge:gc,pick:lo,pushUnique:hh,relativeLength:bg,stableSort:Ep,syncTimeout:xg}=me;class ph{constructor(i,s){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=i,this.setOptions(s),s.enabled&&(this.render(),Cp(this,s),Ga(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),Ga(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(i){let s=lo(i.padding,8);this.options=i,this.chart.styledMode||(this.itemStyle=i.itemStyle,this.itemHiddenStyle=gc(this.itemStyle,i.itemHiddenStyle)),this.itemMarginTop=i.itemMarginTop,this.itemMarginBottom=i.itemMarginBottom,this.padding=s,this.initialItemY=s-5,this.symbolWidth=lo(i.symbolWidth,16),this.pages=[],this.proximate=i.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(i,s){let l=this.chart;this.setOptions(gc(!0,this.options,i)),"events"in this.options&&Cp(this,this.options),this.destroy(),l.isDirtyLegend=l.isDirtyBox=!0,lo(s,!0)&&l.redraw(),Do(this,"afterUpdate",{redraw:s})}colorizeItem(i,s){var C;let l=i.color,{area:u,group:h,label:f,line:g,symbol:x}=i.legendItem||{};if((i instanceof Jr||i instanceof vi)&&(i.color=((C=i.options)==null?void 0:C.legendSymbolColor)||l),h==null||h[s?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:P={}}=this,M=P.color,{fillColor:N,fillOpacity:U,lineColor:V,marker:et}=i.options,rt=Q=>(!s&&(Q.fill&&(Q.fill=M),Q.stroke&&(Q.stroke=M)),Q);f==null||f.css(gc(s?this.itemStyle:P)),g==null||g.attr(rt({stroke:V||i.color})),x&&x.attr(rt(et&&x.isMarker?i.pointAttribs():{fill:i.color})),u==null||u.attr(rt({fill:N||i.color,"fill-opacity":N?1:U??.75}))}i.color=l,Do(this,"afterColorizeItem",{item:i,visible:s})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(i){let{group:s,x:l=0,y:u=0}=i.legendItem||{},h=this.options,f=h.symbolPadding,g=!h.rtl,x=i.checkbox;if(s&&s.element){let C={translateX:g?l:this.legendWidth-l-2*f-4,translateY:u};s[dh(s.translateY)?"animate":"attr"](C,void 0,()=>{Do(this,"afterPositionItem",{item:i})})}x&&(x.x=l,x.y=u)}destroyItem(i){let s=i.checkbox,l=i.legendItem||{};for(let u of["group","label","line","symbol"])l[u]&&(l[u]=l[u].destroy());s&&yg(s),i.legendItem=void 0}destroy(){for(let i of this.getAllItems())this.destroyItem(i);for(let i of["clipRect","up","down","pager","nav","box","title","group"])this[i]&&(this[i]=this[i].destroy());this.display=null}positionCheckboxes(){let i,s=this.group&&this.group.alignAttr,l=this.clipHeight||this.legendHeight,u=this.titleHeight;s&&(i=s.translateY,this.allItems.forEach(function(h){let f,g=h.checkbox;g&&(f=i+u+g.y+(this.scrollOffset||0)+3,Mp(g,{left:s.translateX+h.checkboxOffset+g.x-20+"px",top:f+"px",display:this.proximate||f>i-6&&f<i+l-6?"":"none"}))},this))}renderTitle(){let i=this.options,s=this.padding,l=i.title,u,h=0;l.text&&(this.title||(this.title=this.chart.renderer.label(l.text,s-3,s-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(l.style),this.title.add(this.group)),l.width||this.title.css({width:this.maxLegendWidth+"px"}),h=(u=this.title.getBBox()).height,this.offsetWidth=u.width,this.contentGroup.attr({translateY:h})),this.titleHeight=h}setText(i){let s=this.options;i.legendItem.label.attr({text:s.labelFormat?fc(s.labelFormat,i,this.chart):s.labelFormatter.call(i)})}renderItem(i){let s=i.legendItem=i.legendItem||{},l=this.chart,u=l.renderer,h=this.options,f=h.layout==="horizontal",g=this.symbolWidth,x=h.symbolPadding||0,C=this.itemStyle,P=this.itemHiddenStyle,M=f?lo(h.itemDistance,20):0,N=!h.rtl,U=!i.series,V=!U&&i.series.drawLegendSymbol?i.series:i,et=V.options,rt=!!this.createCheckboxForItem&&et&&et.showCheckbox,Q=h.useHTML,dt=i.options.className,ft=s.label,Rt=g+x+M+(rt?20:0);!ft&&(s.group=u.g("legend-item").addClass("highcharts-"+V.type+"-series highcharts-color-"+i.colorIndex+(dt?" "+dt:"")+(U?" highcharts-series-"+i.index:"")).attr({zIndex:1}).add(this.scrollGroup),s.label=ft=u.text("",N?g+x:-x,this.baseline||0,Q),l.styledMode||ft.css(gc(i.visible?C:P)),ft.attr({align:N?"left":"right",zIndex:2}).add(s.group),!this.baseline&&(this.fontMetrics=u.fontMetrics(ft),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,ft.attr("y",this.baseline),this.symbolHeight=lo(h.symbolHeight,this.fontMetrics.f),h.squareSymbol&&(this.symbolWidth=lo(h.symbolWidth,Math.max(this.symbolHeight,16)),Rt=this.symbolWidth+x+M+(rt?20:0),N&&ft.attr("x",this.symbolWidth+x))),V.drawLegendSymbol(this,i),this.setItemEvents&&this.setItemEvents(i,ft,Q)),rt&&!i.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(i),this.colorizeItem(i,i.visible),(l.styledMode||!C.width)&&ft.css({width:(h.itemWidth||this.widthOption||l.spacingBox.width)-Rt+"px"}),this.setText(i);let Nt=ft.getBBox(),Lt=this.fontMetrics&&this.fontMetrics.h||0;i.itemWidth=i.checkboxOffset=h.itemWidth||s.labelWidth||Nt.width+Rt,this.maxItemWidth=Math.max(this.maxItemWidth,i.itemWidth),this.totalItemWidth+=i.itemWidth,this.itemHeight=i.itemHeight=Math.round(s.labelHeight||(Nt.height>1.5*Lt?Nt.height:Lt))}layoutItem(i){let s=this.options,l=this.padding,u=s.layout==="horizontal",h=i.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,x=u?lo(s.itemDistance,20):0,C=this.maxLegendWidth,P=s.alignColumns&&this.totalItemWidth>C?this.maxItemWidth:i.itemWidth,M=i.legendItem||{};u&&this.itemX-l+P>C&&(this.itemX=l,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+f),this.lastLineHeight=0),this.lastItemY=g+this.itemY+f,this.lastLineHeight=Math.max(h,this.lastLineHeight),M.x=this.itemX,M.y=this.itemY,u?this.itemX+=P:(this.itemY+=g+h+f,this.lastLineHeight=h),this.offsetWidth=this.widthOption||Math.max((u?this.itemX-l-(i.checkbox?0:x):P)+l,this.offsetWidth)}getAllItems(){let i=[];return this.chart.series.forEach(function(s){let l=s&&s.options;s&&lo(l.showInLegend,!dh(l.linkedTo)&&void 0,!0)&&(i=i.concat((s.legendItem||{}).labels||(l.legendType==="point"?s.data:s)))}),Do(this,"afterGetAllItems",{allItems:i}),i}getAlignment(){let i=this.options;return this.proximate?i.align.charAt(0)+"tv":i.floating?"":i.align.charAt(0)+i.verticalAlign.charAt(0)+i.layout.charAt(0)}adjustMargins(i,s){let l=this.chart,u=this.options,h=this.getAlignment();h&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,g){f.test(h)&&!dh(i[g])&&(l[pa[g]]=Math.max(l[pa[g]],l.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*u[g%2?"x":"y"]+lo(u.margin,12)+s[g]+(l.titleOffset[g]||0)))})}proximatePositions(){let i,s=this.chart,l=[],u=this.options.align==="left";for(let h of(this.allItems.forEach(function(f){let g,x,C=u,P,M;f.yAxis&&(f.xAxis.options.reversed&&(C=!C),f.points&&(g=ru(C?f.points:f.points.slice(0).reverse(),function(N){return Tp(N.plotY)})),x=this.itemMarginTop+f.legendItem.label.getBBox().height+this.itemMarginBottom,M=f.yAxis.top-s.plotTop,P=f.visible?(g?g.plotY:f.yAxis.height)+(M-.3*x):M+f.yAxis.height,l.push({target:P,size:x,item:f}))},this),nu(l,s.plotHeight)))i=h.item.legendItem||{},Tp(h.pos)&&(i.y=s.plotTop-s.spacing[0]+h.pos)}render(){let i=this.chart,s=i.renderer,l=this.options,u=this.padding,h=this.getAllItems(),f,g,x,C=this.group,P,M=this.box;this.itemX=u,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=bg(l.width,i.spacingBox.width-u),P=i.spacingBox.width-2*u-l.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(P/=2),this.maxLegendWidth=this.widthOption||P,C||(this.group=C=s.g("legend").addClass(l.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(C),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),Ep(h,(N,U)=>(N.options&&N.options.legendIndex||0)-(U.options&&U.options.legendIndex||0)),l.reversed&&h.reverse(),this.allItems=h,this.display=f=!!h.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,h.forEach(this.renderItem,this),h.forEach(this.layoutItem,this),g=(this.widthOption||this.offsetWidth)+u,x=this.lastItemY+this.lastLineHeight+this.titleHeight,x=this.handleOverflow(x)+u,M||(this.box=M=s.rect().addClass("highcharts-legend-box").attr({r:l.borderRadius}).add(C)),i.styledMode||M.attr({stroke:l.borderColor,"stroke-width":l.borderWidth||0,fill:l.backgroundColor||"none"}).shadow(l.shadow),g>0&&x>0&&M[M.placed?"animate":"attr"](M.crisp.call({},{x:0,y:0,width:g,height:x},M.strokeWidth())),C[f?"show":"hide"](),i.styledMode&&C.getStyle("display")==="none"&&(g=x=0),this.legendWidth=g,this.legendHeight=x,f&&this.align(),this.proximate||this.positionItems(),Do(this,"afterRender")}align(i=this.chart.spacingBox){let s=this.chart,l=this.options,u=i.y;/(lth|ct|rth)/.test(this.getAlignment())&&s.titleOffset[0]>0?u+=s.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&s.titleOffset[2]>0&&(u-=s.titleOffset[2]),u!==i.y&&(i=gc(i,{y:u})),s.hasRendered||(this.group.placed=!1),this.group.align(gc(l,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":l.verticalAlign}),!0,i)}handleOverflow(i){let s=this,l=this.chart,u=l.renderer,h=this.options,f=h.y,g=h.verticalAlign==="top",x=this.padding,C=h.maxHeight,P=h.navigation,M=lo(P.animation,!0),N=P.arrowSize||12,U=this.pages,V=this.allItems,et=function(Ut){typeof Ut=="number"?Lt.attr({height:Ut}):Lt&&(s.clipRect=Lt.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=Ut?"rect("+x+"px,9999px,"+(x+Ut)+"px,0)":"auto")},rt=function(Ut){return s[Ut]=u.circle(0,0,1.3*N).translate(N/2,N/2).add(Nt),l.styledMode||s[Ut].attr("fill","rgba(0,0,0,0.0001)"),s[Ut]},Q,dt,ft,Rt=l.spacingBox.height+(g?-f:f)-x,Nt=this.nav,Lt=this.clipRect;return h.layout!=="horizontal"||h.verticalAlign==="middle"||h.floating||(Rt/=2),C&&(Rt=Math.min(Rt,C)),U.length=0,i&&Rt>0&&i>Rt&&P.enabled!==!1?(this.clipHeight=Q=Math.max(Rt-20-this.titleHeight-x,0),this.currentPage=lo(this.currentPage,1),this.fullHeight=i,V.forEach((Ut,$t)=>{let qt=(ft=Ut.legendItem||{}).y||0,be=Math.round(ft.label.getBBox().height),Ce=U.length;(!Ce||qt-U[Ce-1]>Q&&(dt||qt)!==U[Ce-1])&&(U.push(dt||qt),Ce++),ft.pageIx=Ce-1,dt&&((V[$t-1].legendItem||{}).pageIx=Ce-1),$t===V.length-1&&qt+be-U[Ce-1]>Q&&qt>U[Ce-1]&&(U.push(qt),ft.pageIx=Ce),qt!==dt&&(dt=qt)}),Lt||(Lt=s.clipRect=u.clipRect(0,x-2,9999,0),s.contentGroup.clip(Lt)),et(Q),Nt||(this.nav=Nt=u.g().attr({zIndex:1}).add(this.group),this.up=u.symbol("triangle",0,0,N,N).add(Nt),rt("upTracker").on("click",function(){s.scroll(-1,M)}),this.pager=u.text("",15,10).addClass("highcharts-legend-navigation"),!l.styledMode&&P.style&&this.pager.css(P.style),this.pager.add(Nt),this.down=u.symbol("triangle-down",0,0,N,N).add(Nt),rt("downTracker").on("click",function(){s.scroll(1,M)})),s.scroll(0),i=Rt):Nt&&(et(),this.nav=Nt.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),i}scroll(i,s){let l=this.chart,u=this.pages,h=u.length,f=this.clipHeight,g=this.options.navigation,x=this.pager,C=this.padding,P=this.currentPage+i;P>h&&(P=h),P>0&&(s!==void 0&&uh(s,l),this.nav.attr({translateX:C,translateY:f+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(M){M.attr({class:P===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),x.attr({text:P+"/"+h}),[this.down,this.downTracker].forEach(function(M){M.attr({x:18+this.pager.getBBox().width,class:P===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),l.styledMode||(this.up.attr({fill:P===1?g.inactiveColor:g.activeColor}),this.upTracker.css({cursor:P===1?"default":"pointer"}),this.down.attr({fill:P===h?g.inactiveColor:g.activeColor}),this.downTracker.css({cursor:P===h?"default":"pointer"})),this.scrollOffset=-u[P-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=P,this.positionCheckboxes(),xg(()=>{Do(this,"afterScroll",{currentPage:P})},wp(lo(s,l.renderer.globalAnimation,!0)).duration))}setItemEvents(i,s,l){let u=this,h=i.legendItem||{},f=u.chart.renderer.boxWrapper,g=i instanceof vi,x=i instanceof Jr,C="highcharts-legend-"+(g?"point":"series")+"-active",P=u.chart.styledMode,M=l?[s,h.symbol]:[h.group],N=U=>{u.allItems.forEach(V=>{i!==V&&[V].concat(V.linkedSeries||[]).forEach(et=>{et.setState(U,!g)})})};for(let U of M)U&&U.on("mouseover",function(){i.visible&&N("inactive"),i.setState("hover"),i.visible&&f.addClass(C),P||s.css(u.options.itemHoverStyle)}).on("mouseout",function(){u.chart.styledMode||s.css(gc(i.visible?u.itemStyle:u.itemHiddenStyle)),N(""),f.removeClass(C),i.setState()}).on("click",function(V){let et=function(){i.setVisible&&i.setVisible(),N(i.visible?"inactive":"")};f.removeClass(C),Do(u,"itemClick",{browserEvent:V,legendItem:i},et),g?i.firePointEvent("legendItemClick",{browserEvent:V}):x&&Do(i,"legendItemClick",{browserEvent:V})})}createCheckboxForItem(i){i.checkbox=kp("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:i.selected,defaultChecked:i.selected},this.options.itemCheckboxStyle,this.chart.container),Ga(i.checkbox,"click",function(s){let l=s.target;Do(i.series||i,"checkboxClick",{checked:l.checked,item:i},function(){i.select()})})}}(function(w){w.compose=function(i){hh(mg,"Core.Legend")&&Ga(i,"beforeMargins",function(){this.legend=new w(this,this.options.legend)})}})(ph||(ph={}));let vg=ph,{animate:fh,animObject:Hr,setAnimation:Pr}=hn,{defaultOptions:gh}=ai,{numberFormat:Sg}=Ir,{registerEventOptions:Ap}=ta,{charts:mc,doc:_u,marginNames:Wu,svg:Rp,win:Op}=at,{seriesTypes:mh}=Ze,{addEvent:yh,attr:bh,createElement:Ld,css:co,defined:Tl,diffObjects:xh,discardElement:Pp,erase:Bp,error:vh,extend:_a,find:Sh,fireEvent:Mi,getAlignFactor:Dp,getStyle:Lp,isArray:wg,isNumber:yc,isObject:su,isString:Lo,merge:ps,objectEach:fa,pick:Br,pInt:Ip,relativeLength:Vu,removeEvent:Id,splat:Wa,syncTimeout:fs,uniqueKey:wh}=me;class El{static chart(i,s,l){return new El(i,s,l)}constructor(i,s,l){this.sharedClips={};let u=[...arguments];(Lo(i)||i.nodeName)&&(this.renderTo=u.shift()),this.init(u[0],u[1])}setZoomOptions(){let i=this.options.chart,s=i.zooming;this.zooming={...s,type:Br(i.zoomType,s.type),key:Br(i.zoomKey,s.key),pinchType:Br(i.pinchType,s.pinchType),singleTouch:Br(i.zoomBySingleTouch,s.singleTouch,!1),resetButton:ps(s.resetButton,i.resetZoomButton)}}init(i,s){Mi(this,"init",{args:arguments},function(){var f;let l=ps(gh,i),u=l.chart,h=this.renderTo||u.renderTo;this.userOptions=_a({},i),(this.renderTo=Lo(h)?_u.getElementById(h):h)||vh(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=s,this.isResizing=0,this.options=l,this.axes=[],this.series=[],this.locale=l.lang.locale??((f=this.renderTo.closest("[lang]"))==null?void 0:f.lang),this.time=new In(_a(l.time||{},{locale:this.locale})),l.time=this.time.options,this.numberFormatter=(u.numberFormatter||Sg).bind(this),this.styledMode=u.styledMode,this.hasCartesianSeries=u.showAxes,this.index=mc.length,mc.push(this),at.chartCount++,Ap(this,u),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Mi(this,"afterInit"),this.firstRender()})}initSeries(i){let s=this.options.chart,l=i.type||s.type,u=mh[l];u||vh(17,!0,this,{missingModuleFor:l});let h=new u;return typeof h.init=="function"&&h.init(this,i),h}setSortedData(){this.getSeriesOrderByLinks().forEach(function(i){i.points||i.data||!i.enabledDataSorting||i.setData(i.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(i,s){return i.linkedSeries.length||s.linkedSeries.length?s.linkedSeries.length-i.linkedSeries.length:0})}orderItems(i,s=0){let l=this[i],u=this.options[i]=Wa(this.options[i]).slice(),h=this.userOptions[i]=this.userOptions[i]?Wa(this.userOptions[i]).slice():[];if(this.hasRendered&&(u.splice(s),h.splice(s)),l)for(let f=s,g=l.length;f<g;++f){let x=l[f];x&&(x.index=f,x instanceof Jr&&(x.name=x.getName()),x.options.isInternal||(u[f]=x.options,h[f]=x.userOptions))}}isInsidePlot(i,s,l={}){var rt;let{inverted:u,plotBox:h,plotLeft:f,plotTop:g,scrollablePlotBox:x}=this,{scrollLeft:C=0,scrollTop:P=0}=l.visiblePlotOnly&&((rt=this.scrollablePlotArea)==null?void 0:rt.scrollingContainer)||{},M=l.series,N=l.visiblePlotOnly&&x||h,U=l.inverted?s:i,V=l.inverted?i:s,et={x:U,y:V,isInsidePlot:!0,options:l};if(!l.ignoreX){let Q=M&&(u&&!this.polar?M.yAxis:M.xAxis)||{pos:f,len:1/0},dt=l.paneCoordinates?Q.pos+U:f+U;dt>=Math.max(C+f,Q.pos)&&dt<=Math.min(C+f+N.width,Q.pos+Q.len)||(et.isInsidePlot=!1)}if(!l.ignoreY&&et.isInsidePlot){let Q=!u&&l.axis&&!l.axis.isXAxis&&l.axis||M&&(u?M.xAxis:M.yAxis)||{pos:g,len:1/0},dt=l.paneCoordinates?Q.pos+V:g+V;dt>=Math.max(P+g,Q.pos)&&dt<=Math.min(P+g+N.height,Q.pos+Q.len)||(et.isInsidePlot=!1)}return Mi(this,"afterIsInsidePlot",et),et.isInsidePlot}redraw(i){Mi(this,"beforeRedraw");let s=this.hasCartesianSeries?this.axes:this.colorAxis||[],l=this.series,u=this.pointer,h=this.legend,f=this.userOptions.legend,g=this.renderer,x=g.isHidden(),C=[],P,M,N,U=this.isDirtyBox,V=this.isDirtyLegend,et;for(g.rootFontSize=g.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),Pr(!!this.hasRendered&&i,this),x&&this.temporaryDisplay(),this.layOutTitles(!1),N=l.length;N--;)if(((et=l[N]).options.stacking||et.options.centerInCategory)&&(M=!0,et.isDirty)){P=!0;break}if(P)for(N=l.length;N--;)(et=l[N]).options.stacking&&(et.isDirty=!0);l.forEach(function(rt){rt.isDirty&&(rt.options.legendType==="point"?(typeof rt.updateTotals=="function"&&rt.updateTotals(),V=!0):f&&(f.labelFormatter||f.labelFormat)&&(V=!0)),rt.isDirtyData&&Mi(rt,"updatedData")}),V&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1),M&&this.getStacks(),s.forEach(function(rt){rt.updateNames(),rt.setScale()}),this.getMargins(),s.forEach(function(rt){rt.isDirty&&(U=!0)}),s.forEach(function(rt){let Q=rt.min+","+rt.max;rt.extKey!==Q&&(rt.extKey=Q,C.push(function(){Mi(rt,"afterSetExtremes",_a(rt.eventArgs,rt.getExtremes())),delete rt.eventArgs})),(U||M)&&rt.redraw()}),U&&this.drawChartBox(),Mi(this,"predraw"),l.forEach(function(rt){(U||rt.isDirty)&&rt.visible&&rt.redraw(),rt.isDirtyData=!1}),u&&u.reset(!0),g.draw(),Mi(this,"redraw"),Mi(this,"render"),x&&this.temporaryDisplay(!0),C.forEach(function(rt){rt.call()})}get(i){let s=this.series;function l(h){return h.id===i||h.options&&h.options.id===i}let u=Sh(this.axes,l)||Sh(this.series,l);for(let h=0;!u&&h<s.length;h++)u=Sh(s[h].points||[],l);return u}createAxes(){let i=this.userOptions;for(let s of(Mi(this,"createAxes"),["xAxis","yAxis"]))for(let l of i[s]=Wa(i[s]||{}))new Oi(this,l,s);Mi(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((i,s)=>(s.getPointsCollection().forEach(l=>{Br(l.selectedStaging,l.selected)&&i.push(l)}),i),[])}getSelectedSeries(){return this.series.filter(i=>i.selected)}setTitle(i,s,l){this.applyDescription("title",i),this.applyDescription("subtitle",s),this.applyDescription("caption",void 0),this.layOutTitles(l)}applyDescription(i,s){var f;let l=this,u=this.options[i]=ps(this.options[i],s),h=this[i];h&&s&&(this[i]=h=h.destroy()),u&&!h&&((h=this.renderer.text(u.text,0,0,u.useHTML).attr({align:u.align,class:"highcharts-"+i,zIndex:u.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(g,x){l.applyDescription(i,g),l.layOutTitles(x)},this.styledMode||h.css(_a(i==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},u.style)),h.textPxLength=h.getBBox().width,h.css({whiteSpace:(f=u.style)==null?void 0:f.whiteSpace}),this[i]=h)}layOutTitles(i=!0){var g,x,C,P;let s=[0,0,0],{options:l,renderer:u,spacingBox:h}=this;["title","subtitle","caption"].forEach(M=>{var rt;let N=this[M],U=this.options[M],V=ps(h),et=(N==null?void 0:N.textPxLength)||0;if(N&&U){Mi(this,"layOutTitle",{alignTo:V,key:M,textPxLength:et});let Q=u.fontMetrics(N),dt=Q.b,ft=Q.h,Rt=U.verticalAlign||"top",Nt=Rt==="top",Lt=Nt&&U.minScale||1,Ut=M==="title"?Nt?-3:0:Nt?s[0]+2:0,$t=Math.min(V.width/et,1),qt=Math.max(Lt,$t),be=ps({y:Rt==="bottom"?dt:Ut+dt},{align:M==="title"?$t<Lt?"left":"center":(rt=this.title)==null?void 0:rt.alignValue},U),Ce=U.width||($t>Lt?this.chartWidth:V.width)/qt;N.alignValue!==be.align&&(N.placed=!1);let Ie=Math.round(N.css({width:`${Ce}px`}).getBBox(U.useHTML).height);if(be.height=Ie,N.align(be,!1,V).attr({align:be.align,scaleX:qt,scaleY:qt,"transform-origin":`${V.x+et*qt*Dp(be.align)} ${ft}`}),!U.floating){let pe=Ie*(Ie<1.2*ft?1:qt);Rt==="top"?s[0]=Math.ceil(s[0]+pe):Rt==="bottom"&&(s[2]=Math.ceil(s[2]+pe))}}},this),s[0]&&(((g=l.title)==null?void 0:g.verticalAlign)||"top")==="top"&&(s[0]+=((x=l.title)==null?void 0:x.margin)||0),s[2]&&((C=l.caption)==null?void 0:C.verticalAlign)==="bottom"&&(s[2]+=((P=l.caption)==null?void 0:P.margin)||0);let f=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,Mi(this,"afterLayOutTitles"),!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&i&&this.isDirtyBox&&this.redraw())}getContainerBox(){let i=[].map.call(this.renderTo.children,l=>{if(l!==this.container){let u=l.style.display;return l.style.display="none",[l,u]}}),s={width:Lp(this.renderTo,"width",!0)||0,height:Lp(this.renderTo,"height",!0)||0};return i.filter(Boolean).forEach(([l,u])=>{l.style.display=u}),s}getChartSize(){var f;let i=this.options.chart,s=i.width,l=i.height,u=this.getContainerBox(),h=u.height<=1||!((f=this.renderTo.parentElement)!=null&&f.style.height)&&this.renderTo.style.height==="100%";this.chartWidth=Math.max(0,s||u.width||600),this.chartHeight=Math.max(0,Vu(l,this.chartWidth)||(h?400:u.height)),this.containerBox=u}temporaryDisplay(i){let s=this.renderTo,l;if(i)for(;s&&s.style;)s.hcOrigStyle&&(co(s,s.hcOrigStyle),delete s.hcOrigStyle),s.hcOrigDetached&&(_u.body.removeChild(s),s.hcOrigDetached=!1),s=s.parentNode;else for(;s&&s.style&&(_u.body.contains(s)||s.parentNode||(s.hcOrigDetached=!0,_u.body.appendChild(s)),(Lp(s,"display",!1)==="none"||s.hcOricDetached)&&(s.hcOrigStyle={display:s.style.display,height:s.style.height,overflow:s.style.overflow},l={display:"block",overflow:"hidden"},s!==this.renderTo&&(l.height=0),co(s,l),s.offsetWidth||s.style.setProperty("display","block","important")),(s=s.parentNode)!==_u.body););}setClassName(i){this.container.className="highcharts-container "+(i||"")}getContainer(){var N;let i,s=this.options,l=s.chart,u="data-highcharts-chart",h=wh(),f=this.renderTo,g=Ip(bh(f,u));yc(g)&&mc[g]&&mc[g].hasRendered&&mc[g].destroy(),bh(f,u,this.index),f.innerHTML=pi.emptyHTML,l.skipClone||f.offsetWidth||this.temporaryDisplay(),this.getChartSize();let x=this.chartHeight,C=this.chartWidth;co(f,{overflow:"hidden"}),this.styledMode||(i=_a({position:"relative",overflow:"hidden",width:C+"px",height:x+"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"},l.style||{}));let P=Ld("div",{id:h},i,f);this.container=P,this.getChartSize(),C===this.chartWidth||(C=this.chartWidth,this.styledMode||co(P,{width:Br((N=l.style)==null?void 0:N.width,C+"px")})),this.containerBox=this.getContainerBox(),this._cursor=P.style.cursor;let M=l.renderer||!Rp?is.getRendererType(l.renderer):hl;if(this.renderer=new M(P,C,x,void 0,l.forExport,s.exporting&&s.exporting.allowHTML,this.styledMode),Pr(void 0,this),this.setClassName(l.className),this.styledMode)for(let U in s.defs)this.renderer.definition(s.defs[U]);else this.renderer.setStyle(l.style);this.renderer.chartIndex=this.index,Mi(this,"afterGetContainer")}getMargins(i){let{spacing:s,margin:l,titleOffset:u}=this;this.resetMargins(),u[0]&&!Tl(l[0])&&(this.plotTop=Math.max(this.plotTop,u[0]+s[0])),u[2]&&!Tl(l[2])&&(this.marginBottom=Math.max(this.marginBottom,u[2]+s[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(l,s),Mi(this,"getMargins"),i||this.getAxisMargins()}getAxisMargins(){let i=this,s=i.axisOffset=[0,0,0,0],l=i.colorAxis,u=i.margin,h=function(f){f.forEach(function(g){g.visible&&g.getOffset()})};i.hasCartesianSeries?h(i.axes):l&&l.length&&h(l),Wu.forEach(function(f,g){Tl(u[g])||(i[f]+=s[g])}),i.setChartSize()}getOptions(){return xh(this.userOptions,gh)}reflow(i){var h;let s=this,l=s.containerBox,u=s.getContainerBox();(h=s.pointer)==null||delete h.chartPosition,!s.isPrinting&&!s.isResizing&&l&&u.width&&((u.width!==l.width||u.height!==l.height)&&(me.clearTimeout(s.reflowTimeout),s.reflowTimeout=fs(function(){s.container&&s.setSize(void 0,void 0,!1)},i?100:0)),s.containerBox=u)}setReflow(){let i=this,s=l=>{var u;(u=i.options)!=null&&u.chart.reflow&&i.hasLoaded&&i.reflow(l)};if(typeof ResizeObserver=="function")new ResizeObserver(s).observe(i.renderTo);else{let l=yh(Op,"resize",s);yh(this,"destroy",l)}}setSize(i,s,l){let u=this,h=u.renderer;u.isResizing+=1,Pr(l,u);let f=h.globalAnimation;u.oldChartHeight=u.chartHeight,u.oldChartWidth=u.chartWidth,i!==void 0&&(u.options.chart.width=i),s!==void 0&&(u.options.chart.height=s),u.getChartSize();let{chartWidth:g,chartHeight:x,scrollablePixelsX:C=0,scrollablePixelsY:P=0}=u;(u.isDirtyBox||g!==u.oldChartWidth||x!==u.oldChartHeight)&&(u.styledMode||(f?fh:co)(u.container,{width:`${g+C}px`,height:`${x+P}px`},f),u.setChartSize(!0),h.setSize(g,x,f),u.axes.forEach(function(M){M.isDirty=!0,M.setScale()}),u.isDirtyLegend=!0,u.isDirtyBox=!0,u.layOutTitles(),u.getMargins(),u.redraw(f),u.oldChartHeight=void 0,Mi(u,"resize"),setTimeout(()=>{u&&Mi(u,"endResize")},Hr(f).duration)),u.isResizing-=1}setChartSize(i){let s,l,u,h,{chartHeight:f,chartWidth:g,inverted:x,spacing:C,renderer:P}=this,M=this.clipOffset,N=Math[x?"floor":"round"];this.plotLeft=s=Math.round(this.plotLeft),this.plotTop=l=Math.round(this.plotTop),this.plotWidth=u=Math.max(0,Math.round(g-s-this.marginRight)),this.plotHeight=h=Math.max(0,Math.round(f-l-this.marginBottom)),this.plotSizeX=x?h:u,this.plotSizeY=x?u:h,this.spacingBox=P.spacingBox={x:C[3],y:C[0],width:g-C[3]-C[1],height:f-C[0]-C[2]},this.plotBox=P.plotBox={x:s,y:l,width:u,height:h},M&&(this.clipBox={x:N(M[3]),y:N(M[0]),width:N(this.plotSizeX-M[1]-M[3]),height:N(this.plotSizeY-M[0]-M[2])}),i||(this.axes.forEach(function(U){U.setAxisSize(),U.setAxisTranslation()}),P.alignElements()),Mi(this,"afterSetChartSize",{skipAxes:i})}resetMargins(){Mi(this,"resetMargins");let i=this,s=i.options.chart,l=s.plotBorderWidth||0,u=l/2;["margin","spacing"].forEach(function(h){let f=s[h],g=su(f)?f:[f,f,f,f];["Top","Right","Bottom","Left"].forEach(function(x,C){i[h][C]=Br(s[h+x],g[C])})}),Wu.forEach(function(h,f){i[h]=Br(i.margin[f],i.spacing[f])}),i.axisOffset=[0,0,0,0],i.clipOffset=[u,u,u,u],i.plotBorderWidth=l}drawChartBox(){let i=this.options.chart,s=this.renderer,l=this.chartWidth,u=this.chartHeight,h=this.styledMode,f=this.plotBGImage,g=i.backgroundColor,x=i.plotBackgroundColor,C=i.plotBackgroundImage,P=this.plotLeft,M=this.plotTop,N=this.plotWidth,U=this.plotHeight,V=this.plotBox,et=this.clipRect,rt=this.clipBox,Q=this.chartBackground,dt=this.plotBackground,ft=this.plotBorder,Rt,Nt,Lt,Ut="animate";Q||(this.chartBackground=Q=s.rect().addClass("highcharts-background").add(),Ut="attr"),h?Rt=Nt=Q.strokeWidth():(Nt=(Rt=i.borderWidth||0)+(i.shadow?8:0),Lt={fill:g||"none"},(Rt||Q["stroke-width"])&&(Lt.stroke=i.borderColor,Lt["stroke-width"]=Rt),Q.attr(Lt).shadow(i.shadow)),Q[Ut]({x:Nt/2,y:Nt/2,width:l-Nt-Rt%2,height:u-Nt-Rt%2,r:i.borderRadius}),Ut="animate",dt||(Ut="attr",this.plotBackground=dt=s.rect().addClass("highcharts-plot-background").add()),dt[Ut](V),!h&&(dt.attr({fill:x||"none"}).shadow(i.plotShadow),C&&(f?(C!==f.attr("href")&&f.attr("href",C),f.animate(V)):this.plotBGImage=s.image(C,P,M,N,U).add())),et?et.animate({width:rt.width,height:rt.height}):this.clipRect=s.clipRect(rt),Ut="animate",ft||(Ut="attr",this.plotBorder=ft=s.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),h||ft.attr({stroke:i.plotBorderColor,"stroke-width":i.plotBorderWidth||0,fill:"none"}),ft[Ut](ft.crisp({x:P,y:M,width:N,height:U},-ft.strokeWidth())),this.isDirtyBox=!1,Mi(this,"afterDrawChartBox")}propFromSeries(){let i,s,l,u=this,h=u.options.chart,f=u.options.series;["inverted","angular","polar"].forEach(function(g){for(s=mh[h.type],l=h[g]||s&&s.prototype[g],i=f&&f.length;!l&&i--;)(s=mh[f[i].type])&&s.prototype[g]&&(l=!0);u[g]=l})}linkSeries(i){let s=this,l=s.series;l.forEach(function(u){u.linkedSeries.length=0}),l.forEach(function(u){let{linkedTo:h}=u.options;if(Lo(h)){let f;(f=h===":previous"?s.series[u.index-1]:s.get(h))&&f.linkedParent!==u&&(f.linkedSeries.push(u),u.linkedParent=f,f.enabledDataSorting&&u.setDataSortingOptions(),u.visible=Br(u.options.visible,f.options.visible,u.visible))}}),Mi(this,"afterLinkSeries",{isUpdating:i})}renderSeries(){this.series.forEach(function(i){i.translate(),i.render()})}render(){var P;let i=this.axes,s=this.colorAxis,l=this.renderer,u=this.options.chart.axisLayoutRuns||2,h=M=>{M.forEach(N=>{N.visible&&N.render()})},f=0,g=!0,x,C=0;for(let M of(this.setTitle(),Mi(this,"beforeMargins"),(P=this.getStacks)==null||P.call(this),this.getMargins(!0),this.setChartSize(),i)){let{options:N}=M,{labels:U}=N;if(this.hasCartesianSeries&&M.horiz&&M.visible&&U.enabled&&M.series.length&&M.coll!=="colorAxis"&&!this.polar){f=N.tickLength,M.createGroups();let V=new Kr(M,0,"",!0),et=V.createLabel("x",U);if(V.destroy(),et&&Br(U.reserveSpace,!yc(N.crossing))&&(f=et.getBBox().height+U.distance+Math.max(N.offset||0,0)),f){et==null||et.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-f,0);(g||x||u>1)&&C<u;){let M=this.plotWidth,N=this.plotHeight;for(let U of i)C===0?U.setScale():(U.horiz&&g||!U.horiz&&x)&&U.setTickInterval(!0);C===0?this.getAxisMargins():this.getMargins(),g=M/this.plotWidth>(C?1:1.1),x=N/this.plotHeight>(C?1:1.05),C++}this.drawChartBox(),this.hasCartesianSeries?h(i):s&&s.length&&h(s),this.seriesGroup||(this.seriesGroup=l.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(i){let s=this,l=ps(!0,this.options.credits,i);l.enabled&&!this.credits&&(this.credits=this.renderer.text(l.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){l.href&&(Op.location.href=l.href)}).attr({align:l.position.align,zIndex:8}),s.styledMode||this.credits.css(l.style),this.credits.add().align(l.position),this.credits.update=function(u){s.credits=s.credits.destroy(),s.addCredits(u)})}destroy(){let i,s=this,l=s.axes,u=s.series,h=s.container,f=h&&h.parentNode;for(Mi(s,"destroy"),s.renderer.forExport?Bp(mc,s):mc[s.index]=void 0,at.chartCount--,s.renderTo.removeAttribute("data-highcharts-chart"),Id(s),i=l.length;i--;)l[i]=l[i].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),i=u.length;i--;)u[i]=u[i].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(g){let x=s[g];x&&x.destroy&&(s[g]=x.destroy())}),h&&(h.innerHTML=pi.emptyHTML,Id(h),f&&Pp(h)),fa(s,function(g,x){delete s[x]})}firstRender(){var u;let i=this,s=i.options;i.getContainer(),i.resetMargins(),i.setChartSize(),i.propFromSeries(),i.createAxes();let l=wg(s.series)?s.series:[];s.series=[],l.forEach(function(h){i.initSeries(h)}),i.linkSeries(),i.setSortedData(),Mi(i,"beforeRender"),i.render(),(u=i.pointer)==null||u.getChartPosition(),i.renderer.imgCount||i.hasLoaded||i.onload(),i.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(i){i&&this.index!==void 0&&i.apply(this,[this])},this),Mi(this,"load"),Mi(this,"render"),Tl(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:i,title:s}=this;!i||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(s&&s.element.textContent||"").replace(/</g,"<")}),i.accessibility&&i.accessibility.enabled===!1||vh('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(i,s,l){let u,h=this;return i&&(s=Br(s,!0),Mi(h,"addSeries",{options:i},function(){u=h.initSeries(i),h.isDirtyLegend=!0,h.linkSeries(),u.enabledDataSorting&&u.setData(i.data,!1),Mi(h,"afterAddSeries",{series:u}),s&&h.redraw(l)})),u}addAxis(i,s,l,u){return this.createAxis(s?"xAxis":"yAxis",{axis:i,redraw:l,animation:u})}addColorAxis(i,s,l){return this.createAxis("colorAxis",{axis:i,redraw:s,animation:l})}createAxis(i,s){let l=new Oi(this,s.axis,i);return Br(s.redraw,!0)&&this.redraw(s.animation),l}showLoading(i){let s=this,l=s.options,u=l.loading,h=function(){f&&co(f,{left:s.plotLeft+"px",top:s.plotTop+"px",width:s.plotWidth+"px",height:s.plotHeight+"px"})},f=s.loadingDiv,g=s.loadingSpan;f||(s.loadingDiv=f=Ld("div",{className:"highcharts-loading highcharts-loading-hidden"},null,s.container)),g||(s.loadingSpan=g=Ld("span",{className:"highcharts-loading-inner"},null,f),yh(s,"redraw",h)),f.className="highcharts-loading",pi.setElementHTML(g,Br(i,l.lang.loading,"")),s.styledMode||(co(f,_a(u.style,{zIndex:10})),co(g,u.labelStyle),s.loadingShown||(co(f,{opacity:0,display:""}),fh(f,{opacity:u.style.opacity||.5},{duration:u.showDuration||0}))),s.loadingShown=!0,h()}hideLoading(){let i=this.options,s=this.loadingDiv;s&&(s.className="highcharts-loading highcharts-loading-hidden",this.styledMode||fh(s,{opacity:0},{duration:i.loading.hideDuration||100,complete:function(){co(s,{display:"none"})}})),this.loadingShown=!1}update(i,s,l,u){let h,f,g,x=this,C={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},P=i.isResponsiveOptions,M=[];Mi(x,"update",{options:i}),P||x.setResponsive(!1,!0),i=xh(i,x.options),x.userOptions=ps(x.userOptions,i);let N=i.chart;N&&(ps(!0,x.options.chart,N),this.setZoomOptions(),"className"in N&&x.setClassName(N.className),("inverted"in N||"polar"in N||"type"in N)&&(x.propFromSeries(),h=!0),"alignTicks"in N&&(h=!0),"events"in N&&Ap(this,N),fa(N,function(et,rt){x.propsRequireUpdateSeries.indexOf("chart."+rt)!==-1&&(f=!0),x.propsRequireDirtyBox.indexOf(rt)!==-1&&(x.isDirtyBox=!0),x.propsRequireReflow.indexOf(rt)===-1||(x.isDirtyBox=!0,P||(g=!0))}),!x.styledMode&&N.style&&x.renderer.setStyle(x.options.chart.style||{})),!x.styledMode&&i.colors&&(this.options.colors=i.colors),fa(i,function(et,rt){x[rt]&&typeof x[rt].update=="function"?x[rt].update(et,!1):typeof x[C[rt]]=="function"?x[C[rt]](et):rt!=="colors"&&x.collectionsWithUpdate.indexOf(rt)===-1&&ps(!0,x.options[rt],i[rt]),rt!=="chart"&&x.propsRequireUpdateSeries.indexOf(rt)!==-1&&(f=!0)}),this.collectionsWithUpdate.forEach(function(et){i[et]&&(Wa(i[et]).forEach(function(rt,Q){let dt,ft=Tl(rt.id);ft&&(dt=x.get(rt.id)),!dt&&x[et]&&(dt=x[et][Br(rt.index,Q)])&&(ft&&Tl(dt.options.id)||dt.options.isInternal)&&(dt=void 0),dt&&dt.coll===et&&(dt.update(rt,!1),l&&(dt.touched=!0)),!dt&&l&&x.collectionsWithInit[et]&&(x.collectionsWithInit[et][0].apply(x,[rt].concat(x.collectionsWithInit[et][1]||[]).concat([!1])).touched=!0)}),l&&x[et].forEach(function(rt){rt.touched||rt.options.isInternal?delete rt.touched:M.push(rt)}))}),M.forEach(function(et){et.chart&&et.remove&&et.remove(!1)}),h&&x.axes.forEach(function(et){et.update({},!1)}),f&&x.getSeriesOrderByLinks().forEach(function(et){et.chart&&et.update({},!1)},this);let U=N&&N.width,V=N&&(Lo(N.height)?Vu(N.height,U||x.chartWidth):N.height);g||yc(U)&&U!==x.chartWidth||yc(V)&&V!==x.chartHeight?x.setSize(U,V,u):Br(s,!0)&&x.redraw(u),Mi(x,"afterUpdate",{options:i,redraw:s,animation:u})}setSubtitle(i,s){this.applyDescription("subtitle",i),this.layOutTitles(s)}setCaption(i,s){this.applyDescription("caption",i),this.layOutTitles(s)}showResetZoom(){let i=this,s=gh.lang,l=i.zooming.resetButton,u=l.theme,h=l.relativeTo==="chart"||l.relativeTo==="spacingBox"?null:"plotBox";function f(){i.zoomOut()}Mi(this,"beforeShowResetZoom",null,function(){i.resetZoomButton=i.renderer.button(s.resetZoom,null,null,f,u).attr({align:l.position.align,title:s.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(l.position,!1,h)}),Mi(this,"afterShowResetZoom")}zoomOut(){Mi(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(i,s){let l=this,u=typeof s=="object"?s:{enabled:s,type:"x"},h=u.type,f=h&&l[{x:"xAxis",xy:"axes",y:"yAxis"}[h]].filter(x=>x.options.panningEnabled&&!x.options.isInternal),g=l.options.chart;g!=null&&g.panning&&(g.panning=u),Mi(this,"pan",{originalEvent:i},()=>{l.transform({axes:f,event:i,to:{x:i.chartX-(l.mouseDownX||0),y:i.chartY-(l.mouseDownY||0)},trigger:"pan"}),co(l.container,{cursor:"move"})})}transform(i){var V;let{axes:s=this.axes,event:l,from:u={},reset:h,selection:f,to:g={},trigger:x}=i,{inverted:C,time:P}=this,M=!1,N,U;for(let et of((V=this.hoverPoints)==null||V.forEach(rt=>rt.setState()),s)){let{horiz:rt,len:Q,minPointOffset:dt=0,options:ft,reversed:Rt}=et,Nt=rt?"width":"height",Lt=rt?"x":"y",Ut=Br(g[Nt],et.len),$t=Br(u[Nt],et.len),qt=10>Math.abs(Ut)?1:Ut/$t,be=(u[Lt]||0)+$t/2-et.pos,Ce=be-((g[Lt]??et.pos)+Ut/2-et.pos)/qt,Ie=Rt&&!C||!Rt&&C?-1:1;if(!h&&(be<0||be>et.len))continue;let pe=et.toValue(Ce,!0)+(f||et.isOrdinal?0:dt*Ie),Ne=et.toValue(Ce+Q/qt,!0)-(f||et.isOrdinal?0:dt*Ie||0),Qe=et.allExtremes;if(pe>Ne&&([pe,Ne]=[Ne,pe]),qt===1&&!h&&et.coll==="yAxis"&&!Qe){for(let $n of et.series){let Hn=$n.getExtremes($n.getProcessedData(!0).modified.getColumn("y")||[],!0);Qe??(Qe={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),yc(Hn.dataMin)&&yc(Hn.dataMax)&&(Qe.dataMin=Math.min(Hn.dataMin,Qe.dataMin),Qe.dataMax=Math.max(Hn.dataMax,Qe.dataMax))}et.allExtremes=Qe}let{dataMin:wi,dataMax:Xe,min:mi,max:$e}=_a(et.getExtremes(),Qe||{}),Je=P.parse(ft.min),fi=P.parse(ft.max),Qi=wi??Je,Ui=Xe??fi,Li=Ne-pe,Fi=et.categories?0:Math.min(Li,Ui-Qi),Ii=Qi-Fi*(Tl(Je)?0:ft.minPadding),Ur=Ui+Fi*(Tl(fi)?0:ft.maxPadding),Wn=et.allowZoomOutside||qt===1||x!=="zoom"&&qt>1,En=Math.min(Je??Ii,Ii,Wn?mi:Ii),mr=Math.max(fi??Ur,Ur,Wn?$e:Ur);(!et.isOrdinal||et.options.overscroll||qt!==1||h)&&(pe<En&&(pe=En,qt>=1&&(Ne=pe+Li)),Ne>mr&&(Ne=mr,qt>=1&&(pe=Ne-Li)),(h||et.series.length&&(pe!==mi||Ne!==$e)&&pe>=En&&Ne<=mr)&&(f?f[et.coll].push({axis:et,min:pe,max:Ne}):(et.isPanning=x!=="zoom",et.isPanning&&(U=!0),et.setExtremes(h?void 0:pe,h?void 0:Ne,!1,!1,{move:Ce,trigger:x,scale:qt}),!h&&(pe>En||Ne<mr)&&x!=="mousewheel"&&(N=!0)),M=!0),l&&(this[rt?"mouseDownX":"mouseDownY"]=l[rt?"chartX":"chartY"]))}return M&&(f?Mi(this,"selection",f,()=>{delete i.selection,i.trigger="zoom",this.transform(i)}):(!N||U||this.resetZoomButton?!N&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(x==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),M}}_a(El.prototype,{callbacks:[],collectionsWithInit:{xAxis:[El.prototype.addAxis,[!0]],yAxis:[El.prototype.addAxis,[!1]],series:[El.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:bc}=hn,{composed:Np}=at,{addEvent:Va,createElement:ga,css:Xa,defined:ou,erase:zp,merge:Ch,pushUnique:Xu}=me;function Nd(){let w=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!w&&(this.scrollablePlotArea=w=new Yu(this)),w==null||w.applyFixed()}function jp(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Yu{static compose(i,s,l){Xu(Np,this.compose)&&(Va(i,"afterInit",jp),Va(s,"afterSetChartSize",u=>this.afterSetSize(u.target,u)),Va(s,"render",Nd),Va(l,"show",jp))}static afterSetSize(i,s){let l,u,h,{minWidth:f,minHeight:g}=i.options.chart.scrollablePlotArea||{},{clipBox:x,plotBox:C,inverted:P,renderer:M}=i;if(!M.forExport&&(f?(i.scrollablePixelsX=l=Math.max(0,f-i.chartWidth),l&&(i.scrollablePlotBox=Ch(i.plotBox),C.width=i.plotWidth+=l,x[P?"height":"width"]+=l,h=!0)):g&&(i.scrollablePixelsY=u=Math.max(0,g-i.chartHeight),ou(u)&&(i.scrollablePlotBox=Ch(i.plotBox),C.height=i.plotHeight+=u,x[P?"width":"height"]+=u,h=!1)),ou(h)&&!s.skipAxes))for(let N of i.axes)(N.horiz===h||i.hasParallelCoordinates&&N.coll==="yAxis")&&(N.setAxisSize(),N.setAxisTranslation())}constructor(i){var U;let s,l=i.options.chart,u=is.getRendererType(),h=l.scrollablePlotArea||{},f=this.moveFixedElements.bind(this),g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};i.scrollablePixelsX&&(g.overflowX="auto"),i.scrollablePixelsY&&(g.overflowY="auto"),this.chart=i;let x=this.parentDiv=ga("div",{className:"highcharts-scrolling-parent"},{position:"relative"},i.renderTo),C=this.scrollingContainer=ga("div",{className:"highcharts-scrolling"},g,x),P=this.innerContainer=ga("div",{className:"highcharts-inner-container"},void 0,C),M=this.fixedDiv=ga("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((U=l.style)==null?void 0:U.zIndex)||0)+2,top:0},void 0,!0),N=this.fixedRenderer=new u(M,i.chartWidth,i.chartHeight,l.style);this.mask=N.path().attr({fill:l.backgroundColor||"#fff","fill-opacity":h.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),C.parentNode.insertBefore(M,C),Xa(i.renderTo,{overflow:"visible"}),Va(i,"afterShowResetZoom",f),Va(i,"afterApplyDrilldown",f),Va(i,"afterLayOutTitles",f),Va(C,"scroll",()=>{let{pointer:V,hoverPoint:et}=i;V&&(delete V.chartPosition,et&&(s=et),V.runPointActions(void 0,s,!0))}),P.appendChild(i.container)}applyFixed(){var be;let{chart:i,fixedRenderer:s,isDirty:l,scrollingContainer:u}=this,{axisOffset:h,chartWidth:f,chartHeight:g,container:x,plotHeight:C,plotLeft:P,plotTop:M,plotWidth:N,scrollablePixelsX:U=0,scrollablePixelsY:V=0}=i,{scrollPositionX:et=0,scrollPositionY:rt=0}=i.options.chart.scrollablePlotArea||{},Q=f+U,dt=g+V;s.setSize(f,g),(l??!0)&&(this.isDirty=!1,this.moveFixedElements()),bc(i.container),Xa(x,{width:`${Q}px`,height:`${dt}px`}),i.renderer.boxWrapper.attr({width:Q,height:dt,viewBox:[0,0,Q,dt].join(" ")}),(be=i.chartBackground)==null||be.attr({width:Q,height:dt}),Xa(u,{width:`${f}px`,height:`${g}px`}),ou(l)||(u.scrollLeft=U*et,u.scrollTop=V*rt);let ft=M-h[0]-1,Rt=P-h[3]-1,Nt=M+C+h[2]+1,Lt=P+N+h[1]+1,Ut=P+N-U,$t=M+C-V,qt=[["M",0,0]];U?qt=[["M",0,ft],["L",P-1,ft],["L",P-1,Nt],["L",0,Nt],["Z"],["M",Ut,ft],["L",f,ft],["L",f,Nt],["L",Ut,Nt],["Z"]]:V&&(qt=[["M",Rt,0],["L",Rt,M-1],["L",Lt,M-1],["L",Lt,0],["Z"],["M",Rt,$t],["L",Rt,g],["L",Lt,g],["L",Lt,$t],["Z"]]),i.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:qt})}moveFixedElements(){let i,{container:s,inverted:l,scrollablePixelsX:u,scrollablePixelsY:h}=this.chart,f=this.fixedRenderer,g=Yu.fixedSelectors;if(u&&!l?i=".highcharts-yaxis":u&&l||h&&!l?i=".highcharts-xaxis":h&&l&&(i=".highcharts-yaxis"),i&&!(this.chart.hasParallelCoordinates&&i===".highcharts-yaxis"))for(let x of[`${i}:not(.highcharts-radial-axis)`,`${i}-labels:not(.highcharts-radial-axis-labels)`])Xu(g,x);else for(let x of[".highcharts-xaxis",".highcharts-yaxis"])for(let C of[`${x}:not(.highcharts-radial-axis)`,`${x}-labels:not(.highcharts-radial-axis-labels)`])zp(g,C);for(let x of g)[].forEach.call(s.querySelectorAll(x),C=>{(C.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(C),C.style.pointerEvents="auto"})}}Yu.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:zd}=Ir,{series:xc}=Ze,{destroyObjectProperties:Cg,fireEvent:$p,getAlignFactor:Al,isNumber:ks,pick:qu}=me,Hp=class{constructor(w,i,s,l,u){let h=w.chart.inverted,f=w.reversed;this.axis=w;let g=this.isNegative=!!s!=!!f;this.options=i=i||{},this.x=l,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=u,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:i.align||(h?g?"left":"right":"center"),verticalAlign:i.verticalAlign||(h?"middle":g?"bottom":"top"),y:i.y,x:i.x},this.textAlign=i.textAlign||(h?g?"right":"left":"center")}destroy(){Cg(this,this.axis)}render(w){let i=this.axis.chart,s=this.options,l=s.format,u=l?zd(l,this,i):s.formatter.call(this);if(this.label)this.label.attr({text:u,visibility:"hidden"});else{this.label=i.renderer.label(u,null,void 0,s.shape,void 0,void 0,s.useHTML,!1,"stack-labels");let h={r:s.borderRadius||0,text:u,padding:qu(s.padding,5),visibility:"hidden"};i.styledMode||(h.fill=s.backgroundColor,h.stroke=s.borderColor,h["stroke-width"]=s.borderWidth,this.label.css(s.style||{})),this.label.attr(h),this.label.added||this.label.add(w)}this.label.labelrank=i.plotSizeY,$p(this,"afterRender")}setOffset(w,i,s,l,u,h){let{alignOptions:f,axis:g,label:x,options:C,textAlign:P}=this,M=g.chart,N=this.getStackBox({xOffset:w,width:i,boxBottom:s,boxTop:l,defaultX:u,xAxis:h}),{verticalAlign:U}=f;if(x&&N){let V=x.getBBox(void 0,0),et=x.padding,rt=qu(C.overflow,"justify")==="justify",Q;f.x=C.x||0,f.y=C.y||0;let{x:dt,y:ft}=this.adjustStackPosition({labelBox:V,verticalAlign:U,textAlign:P});N.x-=dt,N.y-=ft,x.align(f,!1,N),(Q=M.isInsidePlot(x.alignAttr.x+f.x+dt,x.alignAttr.y+f.y+ft))||(rt=!1),rt&&xc.prototype.justifyDataLabel.call(g,x,f,x.alignAttr,V,N),x.attr({x:x.alignAttr.x,y:x.alignAttr.y,rotation:C.rotation,rotationOriginX:V.width*Al(C.textAlign||"center"),rotationOriginY:V.height/2}),qu(!rt&&C.crop,!0)&&(Q=ks(x.x)&&ks(x.y)&&M.isInsidePlot(x.x-et+(x.width||0),x.y)&&M.isInsidePlot(x.x+et,x.y)),x[Q?"show":"hide"]()}$p(this,"afterSetOffset",{xOffset:w,width:i})}adjustStackPosition({labelBox:w,verticalAlign:i,textAlign:s}){return{x:w.width/2+w.width/2*(2*Al(s)-1),y:w.height/2*2*(1-Al(i))}}getStackBox(w){let i=this.axis,s=i.chart,{boxTop:l,defaultX:u,xOffset:h,width:f,boxBottom:g}=w,x=i.stacking.usePercentage?100:qu(l,this.total,0),C=i.toPixels(x),P=w.xAxis||s.xAxis[0],M=qu(u,P.translate(this.x))+h,N=Math.abs(C-i.toPixels(g||ks(i.min)&&i.logarithmic&&i.logarithmic.lin2log(i.min)||0)),U=s.inverted,V=this.isNegative;return U?{x:(V?C:C-N)-s.plotLeft,y:P.height-M-f+P.top-s.plotTop,width:N,height:f}:{x:M+P.transB-s.plotLeft,y:(V?C-N:C)-s.plotTop,width:f,height:N}}},{getDeferredAnimation:kg}=hn,{series:{prototype:Up}}=Ze,{addEvent:kh,correctFloat:vc,defined:Ya,destroyObjectProperties:tr,fireEvent:Fp,isNumber:Mh,objectEach:jn,pick:Th}=me;function by(){let w=this.inverted;this.axes.forEach(i=>{i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),this.series.forEach(i=>{let s=i.xAxis&&i.xAxis.options||{};i.options.stacking&&i.reserveSpace()&&(i.stackKey=[i.type,Th(i.options.stack,""),w?s.top:s.left,w?s.height:s.width].join(","))})}function Mg(){var i;let w=this.stacking;if(w){let s=w.stacks;jn(s,(l,u)=>{tr(l),delete s[u]}),(i=w.stackTotalGroup)==null||i.destroy()}}function Tg(){this.stacking||(this.stacking=new xy(this))}function gr(w,i,s,l){return!Ya(w)||w.x!==i||l&&w.stackKey!==l?w={x:i,index:0,key:l,stackKey:l}:w.index++,w.key=[s,i,w.index].join(","),w}function uo(){let w,i=this,s=i.yAxis,l=i.stackKey||"",u=s.stacking.stacks,h=i.getColumn("x",!0),f=i.options.stacking,g=i[f+"Stacker"];g&&[l,"-"+l].forEach(x=>{var U;let C=h.length,P,M,N;for(;C--;)P=h[C],w=i.getStackIndicator(w,P,i.index,x),M=(U=u[x])==null?void 0:U[P],(N=M==null?void 0:M.points[w.key||""])&&g.call(i,N,M,C)})}function Rl(w,i,s){let l=i.total?100/i.total:0;w[0]=vc(w[0]*l),w[1]=vc(w[1]*l),this.stackedYData[s]=w[1]}function Eg(w){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Up.setStackedPoints.call(this,w,"group"):w.stacking.resetStacks())}function Ag(w,i){var $t,qt;let s,l,u,h,f,g,x,C=i||this.options.stacking;if(!C||!this.reserveSpace()||({group:"xAxis"}[C]||"yAxis")!==w.coll)return;let P=this.getColumn("x",!0),M=this.getColumn(this.pointValKey||"y",!0),N=[],U=M.length,V=this.options,et=V.threshold||0,rt=V.startFromThreshold?et:0,Q=V.stack,dt=i?`${this.type},${C}`:this.stackKey||"",ft="-"+dt,Rt=this.negStacks,Nt=w.stacking,Lt=Nt.stacks,Ut=Nt.oldStacks;for(Nt.stacksTouched+=1,x=0;x<U;x++){let be=P[x]||0,Ce=M[x],Ie=Mh(Ce)&&Ce||0;g=(s=this.getStackIndicator(s,be,this.index)).key||"",Lt[f=(l=Rt&&Ie<(rt?0:et))?ft:dt]||(Lt[f]={}),Lt[f][be]||(($t=Ut[f])!=null&&$t[be]?(Lt[f][be]=Ut[f][be],Lt[f][be].total=null):Lt[f][be]=new Hp(w,w.options.stackLabels,!!l,be,Q)),u=Lt[f][be],Ce!==null?(u.points[g]=u.points[this.index]=[Th(u.cumulative,rt)],Ya(u.cumulative)||(u.base=g),u.touched=Nt.stacksTouched,s.index>0&&this.singleStacks===!1&&(u.points[g][0]=u.points[this.index+","+be+",0"][0])):(delete u.points[g],delete u.points[this.index]);let pe=u.total||0;C==="percent"?(h=l?dt:ft,pe=Rt&&((qt=Lt[h])!=null&&qt[be])?(h=Lt[h][be]).total=Math.max(h.total||0,pe)+Math.abs(Ie):vc(pe+Math.abs(Ie))):C==="group"?Mh(Ce)&&pe++:pe=vc(pe+Ie),C==="group"?u.cumulative=(pe||1)-1:u.cumulative=vc(Th(u.cumulative,rt)+Ie),u.total=pe,Ce!==null&&(u.points[g].push(u.cumulative),N[x]=u.cumulative,u.hasValidPoints=!0)}C==="percent"&&(Nt.usePercentage=!0),C!=="group"&&(this.stackedYData=N),Nt.oldStacks={}}class xy{constructor(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}buildStacks(){let i,s,l=this.axis,u=l.series,h=l.coll==="xAxis",f=l.options.reversedStacks,g=u.length;for(this.resetStacks(),this.usePercentage=!1,s=g;s--;)i=u[f?s:g-s-1],h&&i.setGroupedPoints(l),i.setStackedPoints(l);if(!h)for(s=0;s<g;s++)u[s].modifyStacks();Fp(l,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,jn(this.stacks,i=>{jn(i,s=>{s.cumulative=s.total})}))}resetStacks(){jn(this.stacks,i=>{jn(i,(s,l)=>{Mh(s.touched)&&s.touched<this.stacksTouched?(s.destroy(),delete i[l]):(s.total=null,s.cumulative=null)})})}renderStackTotals(){var g;let i=this.axis,s=i.chart,l=s.renderer,u=this.stacks,h=kg(s,((g=i.options.stackLabels)==null?void 0:g.animation)||!1),f=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();f.translate(s.plotLeft,s.plotTop),jn(u,x=>{jn(x,C=>{C.render(f)})}),f.animate({opacity:1},h)}}(z||(z={})).compose=function(w,i,s){let l=i.prototype,u=s.prototype;l.getStacks||(kh(w,"init",Tg),kh(w,"destroy",Mg),l.getStacks=by,u.getStackIndicator=gr,u.modifyStacks=uo,u.percentStacker=Rl,u.setGroupedPoints=Eg,u.setStackedPoints=Ag)};let Gp=z,{defined:Io,merge:No,isObject:Rg}=me;class ho extends Jr{drawGraph(){let i=this.options,s=(this.gappedPath||this.getGraphPath).call(this),l=this.chart.styledMode;[this,...this.zones].forEach((u,h)=>{let f,g=u.graph,x=g?"animate":"attr",C=u.dashStyle||i.dashStyle;g?(g.endX=this.preventGraphAnimation?null:s.xMap,g.animate({d:s})):s.length&&(u.graph=g=this.chart.renderer.path(s).addClass("highcharts-graph"+(h?` highcharts-zone-graph-${h-1} `:" ")+(h&&u.className||"")).attr({zIndex:1}).add(this.group)),g&&!l&&(f={stroke:!h&&i.lineColor||u.color||this.color||"#cccccc","stroke-width":i.lineWidth||0,fill:this.fillGraph&&this.color||"none"},C?f.dashstyle=C:i.linecap!=="square"&&(f["stroke-linecap"]=f["stroke-linejoin"]="round"),g[x](f).shadow(i.shadow&&No({filterUnits:"userSpaceOnUse"},Rg(i.shadow)?i.shadow:{}))),g&&(g.startX=s.xMap,g.isArea=s.isArea)})}getGraphPath(i,s,l){let u=this,h=u.options,f=[],g=[],x,C=h.step,P=(i=i||u.points).reversed;return P&&i.reverse(),(C={right:1,center:2}[C]||C&&3)&&P&&(C=4-C),(i=this.getValidPoints(i,!1,!(h.connectNulls&&!s&&!l))).forEach(function(M,N){let U,V=M.plotX,et=M.plotY,rt=i[N-1],Q=M.isNull||typeof et!="number";(M.leftCliff||rt&&rt.rightCliff)&&!l&&(x=!0),Q&&!Io(s)&&N>0?x=!h.connectNulls:Q&&!s?x=!0:(N===0||x?U=[["M",M.plotX,M.plotY]]:u.getPointSpline?U=[u.getPointSpline(i,M,N)]:C?(U=C===1?[["L",rt.plotX,et]]:C===2?[["L",(rt.plotX+V)/2,rt.plotY],["L",(rt.plotX+V)/2,et]]:[["L",V,rt.plotY]]).push(["L",V,et]):U=[["L",V,et]],g.push(M.x),C&&(g.push(M.x),C===2&&g.push(M.x)),f.push.apply(f,U),x=!1)}),f.xMap=g,u.graphPath=f,f}}ho.defaultOptions=No(Jr.defaultOptions,{legendSymbol:"lineMarker"}),Ze.registerSeriesType("line",ho);let{seriesTypes:{line:Eh}}=Ze,{extend:Ol,merge:Ku,objectEach:Sc,pick:Zu}=me;class jd extends Eh{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:i,options:s}=this;[this,...this.zones].forEach((l,u)=>{let h={},f=l.fillColor||s.fillColor,g=l.area,x=g?"animate":"attr";g?(g.endX=this.preventGraphAnimation?null:i.xMap,g.animate({d:i})):(h.zIndex=0,(g=l.area=this.chart.renderer.path(i).addClass("highcharts-area"+(u?` highcharts-zone-area-${u-1} `:" ")+(u&&l.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(h.fill=f||l.color||this.color,h["fill-opacity"]=f?1:s.fillOpacity??.75,g.css({pointerEvents:this.stickyTracking?"none":"auto"})),g[x](h),g.startX=i.xMap,g.shiftUnit=s.step?2:1})}getGraphPath(i){let s,l,u,h=Eh.prototype.getGraphPath,f=this.options,g=f.stacking,x=this.yAxis,C=[],P=[],M=this.index,N=x.stacking.stacks[this.stackKey],U=f.threshold,V=Math.round(x.getThreshold(f.threshold)),et=Zu(f.connectNulls,g==="percent"),rt=function(Lt,Ut,$t){let qt=i[Lt],be=g&&N[qt.x].points[M],Ce=qt[$t+"Null"]||0,Ie=qt[$t+"Cliff"]||0,pe,Ne,Qe=!0;Ie||Ce?(pe=(Ce?be[0]:be[1])+Ie,Ne=be[0]+Ie,Qe=!!Ce):!g&&i[Ut]&&i[Ut].isNull&&(pe=Ne=U),pe!==void 0&&(P.push({plotX:s,plotY:pe===null?V:x.getThreshold(pe),isNull:Qe,isCliff:!0}),C.push({plotX:s,plotY:Ne===null?V:x.getThreshold(Ne),doCurve:!1}))};i=i||this.points,g&&(i=this.getStackPoints(i));for(let Lt=0,Ut=i.length;Lt<Ut;++Lt)g||(i[Lt].leftCliff=i[Lt].rightCliff=i[Lt].leftNull=i[Lt].rightNull=void 0),l=i[Lt].isNull,s=Zu(i[Lt].rectPlotX,i[Lt].plotX),u=g?Zu(i[Lt].yBottom,V):V,l&&!et||(et||rt(Lt,Lt-1,"left"),l&&!g&&et||(P.push(i[Lt]),C.push({x:Lt,plotX:s,plotY:u})),et||rt(Lt,Lt+1,"right"));let Q=h.call(this,P,!0,!0);C.reversed=!0;let dt=h.call(this,C,!0,!0),ft=dt[0];ft&&ft[0]==="M"&&(dt[0]=["L",ft[1],ft[2]]);let Rt=Q.concat(dt);Rt.length&&Rt.push(["Z"]);let Nt=h.call(this,P,!1,et);return this.chart.series.length>1&&g&&P.some(Lt=>Lt.isCliff)&&(Rt.hasStackedCliffs=Nt.hasStackedCliffs=!0),Rt.xMap=Q.xMap,this.areaPath=Rt,Nt}getStackPoints(i){let s=this,l=[],u=[],h=this.xAxis,f=this.yAxis,g=f.stacking.stacks[this.stackKey],x={},C=f.series,P=C.length,M=f.options.reversedStacks?1:-1,N=C.indexOf(s);if(i=i||this.points,this.options.stacking){for(let V=0;V<i.length;V++)i[V].leftNull=i[V].rightNull=void 0,x[i[V].x]=i[V];Sc(g,function(V,et){V.total!==null&&u.push(et)}),u.sort(function(V,et){return V-et});let U=C.map(V=>V.visible);u.forEach(function(V,et){let rt=0,Q,dt;if(x[V]&&!x[V].isNull)l.push(x[V]),[-1,1].forEach(function(ft){let Rt=ft===1?"rightNull":"leftNull",Nt=g[u[et+ft]],Lt=0;if(Nt){let Ut=N;for(;Ut>=0&&Ut<P;){let $t=C[Ut].index;!(Q=Nt.points[$t])&&($t===s.index?x[V][Rt]=!0:U[Ut]&&(dt=g[V].points[$t])&&(Lt-=dt[1]-dt[0])),Ut+=M}}x[V][ft===1?"rightCliff":"leftCliff"]=Lt});else{let ft=N;for(;ft>=0&&ft<P;){let Rt=C[ft].index;if(Q=g[V].points[Rt]){rt=Q[1];break}ft+=M}rt=Zu(rt,0),rt=f.translate(rt,0,1,0,1),l.push({isNull:!0,plotX:h.translate(V,0,0,0,1),x:V,plotY:rt,yBottom:rt})}})}return l}}jd.defaultOptions=Ku(Eh.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Ol(jd.prototype,{singleStacks:!1}),Ze.registerSeriesType("area",jd);let{line:Pl}=Ze.seriesTypes,{merge:Og,pick:Bl}=me;class au extends Pl{getPointSpline(i,s,l){let u,h,f,g,x=s.plotX||0,C=s.plotY||0,P=i[l-1],M=i[l+1];function N(V){return V&&!V.isNull&&V.doCurve!==!1&&!s.isCliff}if(N(P)&&N(M)){let V=P.plotX||0,et=P.plotY||0,rt=M.plotX||0,Q=M.plotY||0,dt=0;u=(1.5*x+V)/2.5,h=(1.5*C+et)/2.5,f=(1.5*x+rt)/2.5,g=(1.5*C+Q)/2.5,f!==u&&(dt=(g-h)*(f-x)/(f-u)+C-g),h+=dt,g+=dt,h>et&&h>C?(h=Math.max(et,C),g=2*C-h):h<et&&h<C&&(h=Math.min(et,C),g=2*C-h),g>Q&&g>C?(g=Math.max(Q,C),h=2*C-g):g<Q&&g<C&&(g=Math.min(Q,C),h=2*C-g),s.rightContX=f,s.rightContY=g,s.controlPoints={low:[u,h],high:[f,g]}}let U=["C",Bl(P.rightContX,P.plotX,0),Bl(P.rightContY,P.plotY,0),Bl(u,x,0),Bl(h,C,0),x,C];return P.rightContX=P.rightContY=void 0,U}}au.defaultOptions=Og(Pl.defaultOptions),Ze.registerSeriesType("spline",au);let Qu=au,{area:Ju,area:{prototype:Ah}}=Ze.seriesTypes,{extend:Pg,merge:$d}=me;class Rh extends Qu{}Rh.defaultOptions=$d(Qu.defaultOptions,Ju.defaultOptions),Pg(Rh.prototype,{getGraphPath:Ah.getGraphPath,getStackPoints:Ah.getStackPoints,drawGraph:Ah.drawGraph}),Ze.registerSeriesType("areaspline",Rh);let{animObject:Oh}=hn,{parse:Bg}=ei,{noop:vy}=at,{clamp:Ms,crisp:td,defined:Dl,extend:_p,fireEvent:Hd,isArray:wc,isNumber:Ud,merge:Fd,pick:Cc,objectEach:Ll}=me;class Gd extends Jr{animate(i){let s,l,u=this,h=this.yAxis,f=h.pos,g=h.reversed,x=u.options,{clipOffset:C,inverted:P}=this.chart,M={},N=P?"translateX":"translateY";i&&C?(M.scaleY=.001,l=Ms(h.toPixels(x.threshold||0),f,f+h.len),P?(l+=g?-Math.floor(C[0]):Math.ceil(C[2]),M.translateX=l-h.len):(l+=g?Math.ceil(C[0]):-Math.floor(C[2]),M.translateY=l),u.clipBox&&u.setClip(),u.group.attr(M)):(s=Number(u.group.attr(N)),u.group.animate({scaleY:1},_p(Oh(u.options.animation),{step:function(U,V){u.group&&(M[N]=s+V.pos*(f-s),u.group.attr(M))}})))}init(i,s){super.init.apply(this,arguments);let l=this;(i=l.chart).hasRendered&&i.series.forEach(function(u){u.type===l.type&&(u.isDirty=!0)})}getColumnMetrics(){var et,rt;let i=this,s=i.options,l=i.xAxis,u=i.yAxis,h=l.options.reversedStacks,f=l.reversed&&!h||!l.reversed&&h,g={},x,C=0;s.grouping===!1?C=1:i.chart.series.forEach(function(Q){let dt,ft=Q.yAxis,Rt=Q.options;Q.type===i.type&&Q.reserveSpace()&&u.len===ft.len&&u.pos===ft.pos&&(Rt.stacking&&Rt.stacking!=="group"?(g[x=Q.stackKey]===void 0&&(g[x]=C++),dt=g[x]):Rt.grouping!==!1&&(dt=C++),Q.columnIndex=dt)});let P=Math.min(Math.abs(l.transA)*(!((et=l.brokenAxis)!=null&&et.hasBreaks)&&((rt=l.ordinal)==null?void 0:rt.slope)||s.pointRange||l.closestPointRange||l.tickInterval||1),l.len),M=P*s.groupPadding,N=(P-2*M)/(C||1),U=Math.min(s.maxPointWidth||l.len,Cc(s.pointWidth,N*(1-2*s.pointPadding))),V=(i.columnIndex||0)+(f?1:0);return i.columnMetrics={width:U,offset:(N-U)/2+(M+V*N-P/2)*(f?-1:1),paddedWidth:N,columnCount:C},i.columnMetrics}crispCol(i,s,l,u){let h=this.borderWidth,f=this.chart.inverted;return u=td(s+u,h,f)-(s=td(s,h,f)),this.options.crisp&&(l=td(i+l,h)-(i=td(i,h))),{x:i,y:s,width:l,height:u}}adjustForMissingColumns(i,s,l,u){var h;if(!l.isNull&&u.columnCount>1){let f=this.xAxis.series.filter(P=>P.visible).map(P=>P.index),g=0,x=0;Ll((h=this.xAxis.stacking)==null?void 0:h.stacks,P=>{var V;let M=typeof l.x=="number"?(V=P[l.x.toString()])==null?void 0:V.points:void 0,N=M==null?void 0:M[this.index],U={};if(M&&wc(N)){let et=this.index,rt=Object.keys(M).filter(Q=>!Q.match(",")&&M[Q]&&M[Q].length>1).map(parseFloat).filter(Q=>f.indexOf(Q)!==-1).filter(Q=>{let dt=this.chart.series[Q].options,ft=dt.stacking&&dt.stack;if(Dl(ft)){if(Ud(U[ft]))return et===Q&&(et=U[ft]),!1;U[ft]=Q}return!0}).sort((Q,dt)=>dt-Q);g=rt.indexOf(et),x=rt.length}}),g=this.xAxis.reversed?x-1-g:g;let C=(x-1)*u.paddedWidth+s;i=(l.plotX||0)+C/2-s-g*u.paddedWidth}return i}translate(){let i=this,s=i.chart,l=i.options,u=i.dense=i.closestPointRange*i.xAxis.transA<2,h=i.borderWidth=Cc(l.borderWidth,u?0:1),f=i.xAxis,g=i.yAxis,x=l.threshold,C=Cc(l.minPointLength,5),P=i.getColumnMetrics(),M=P.width,N=i.pointXOffset=P.offset,U=i.dataMin,V=i.dataMax,et=i.translatedThreshold=g.getThreshold(x),rt=i.barW=Math.max(M,1+2*h);l.pointPadding&&l.crisp&&(rt=Math.ceil(rt)),Jr.prototype.translate.apply(i),i.points.forEach(function(Q){let dt=Cc(Q.yBottom,et),ft=999+Math.abs(dt),Rt=Q.plotX||0,Nt=Ms(Q.plotY,-ft,g.len+ft),Lt,Ut=Math.min(Nt,dt),$t=Math.max(Nt,dt)-Ut,qt=M,be=Rt+N,Ce=rt;C&&Math.abs($t)<C&&($t=C,Lt=!g.reversed&&!Q.negative||g.reversed&&Q.negative,Ud(x)&&Ud(V)&&Q.y===x&&V<=x&&(g.min||0)<x&&(U!==V||(g.max||0)<=x)&&(Lt=!Lt,Q.negative=!Q.negative),Ut=Math.abs(Ut-et)>C?dt-C:et-(Lt?C:0)),Dl(Q.options.pointWidth)&&(be-=Math.round(((qt=Ce=Math.ceil(Q.options.pointWidth))-M)/2)),l.centerInCategory&&(be=i.adjustForMissingColumns(be,qt,Q,P)),Q.barX=be,Q.pointWidth=qt,Q.tooltipPos=s.inverted?[Ms(g.len+g.pos-s.plotLeft-Nt,g.pos-s.plotLeft,g.len+g.pos-s.plotLeft),f.len+f.pos-s.plotTop-be-Ce/2,$t]:[f.left-s.plotLeft+be+Ce/2,Ms(Nt+g.pos-s.plotTop,g.pos-s.plotTop,g.len+g.pos-s.plotTop),$t],Q.shapeType=i.pointClass.prototype.shapeType||"roundedRect",Q.shapeArgs=i.crispCol(be,Q.isNull?et:Ut,Ce,Q.isNull?0:$t)}),Hd(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(i,s){let l=this.options,u=this.pointAttrToOptions||{},h=u.stroke||"borderColor",f=u["stroke-width"]||"borderWidth",g,x,C,P=i&&i.color||this.color,M=i&&i[h]||l[h]||P,N=i&&i.options.dashStyle||l.dashStyle,U=i&&i[f]||l[f]||this[f]||0,V=Cc(i&&i.opacity,l.opacity,1);i&&this.zones.length&&(x=i.getZone(),P=i.options.color||x&&(x.color||i.nonZonedColor)||this.color,x&&(M=x.borderColor||M,N=x.dashStyle||N,U=x.borderWidth||U)),s&&i&&(C=(g=Fd(l.states[s],i.options.states&&i.options.states[s]||{})).brightness,P=g.color||C!==void 0&&Bg(P).brighten(g.brightness).get()||P,M=g[h]||M,U=g[f]||U,N=g.dashStyle||N,V=Cc(g.opacity,V));let et={fill:P,stroke:M,"stroke-width":U,opacity:V};return N&&(et.dashstyle=N),et}drawPoints(i=this.points){let s,l=this,u=this.chart,h=l.options,f=u.renderer,g=h.animationLimit||250;i.forEach(function(x){let C=x.plotY,P=x.graphic,M=!!P,N=P&&u.pointCount<g?"animate":"attr";Ud(C)&&x.y!==null?(s=x.shapeArgs,P&&x.hasNewShapeType()&&(P=P.destroy()),l.enabledDataSorting&&(x.startXPos=l.xAxis.reversed?-(s&&s.width||0):l.xAxis.width),!P&&(x.graphic=P=f[x.shapeType](s).add(x.group||l.group),P&&l.enabledDataSorting&&u.hasRendered&&u.pointCount<g&&(P.attr({x:x.startXPos}),M=!0,N="animate")),P&&M&&P[N](Fd(s)),u.styledMode||P[N](l.pointAttribs(x,x.selected&&"select")).shadow(x.allowShadow!==!1&&h.shadow),P&&(P.addClass(x.getClassName(),!0),P.attr({visibility:x.visible?"inherit":"hidden"}))):P&&(x.graphic=P.destroy())})}drawTracker(i=this.points){let s,l=this,u=l.chart,h=u.pointer,f=function(g){h==null||h.normalize(g);let x=h==null?void 0:h.getPointFromEvent(g),C=!u.scrollablePlotArea||u.isInsidePlot(g.chartX-u.plotLeft,g.chartY-u.plotTop,{visiblePlotOnly:!0});h&&x&&l.options.enableMouseTracking&&C&&(h.isDirectTouch=!0,x.onMouseOver(g))};i.forEach(function(g){s=wc(g.dataLabels)?g.dataLabels:g.dataLabel?[g.dataLabel]:[],g.graphic&&(g.graphic.element.point=g),s.forEach(function(x){(x.div||x.element).point=g})}),l._hasTracking||(l.trackerGroups.forEach(function(g){l[g]&&(l[g].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(x){h==null||h.onTrackerMouseOut(x)}).on("touchstart",f),!u.styledMode&&l.options.cursor&&l[g].css({cursor:l.options.cursor}))}),l._hasTracking=!0),Hd(this,"afterDrawTracker")}remove(){let i=this,s=i.chart;s.hasRendered&&s.series.forEach(function(l){l.type===i.type&&(l.isDirty=!0)}),Jr.prototype.remove.apply(i,arguments)}}Gd.defaultOptions=Fd(Jr.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"}),_p(Gd.prototype,{directTouch:!0,getSymbol:vy,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Ze.registerSeriesType("column",Gd);let lu=Gd,{getDeferredAnimation:_d}=hn,{format:_n}=Ir,{defined:cu,extend:Dg,fireEvent:Ph,getAlignFactor:Lg,isArray:kc,isString:Pn,merge:nn,objectEach:Hi,pick:$i,pInt:Mn,splat:_s}=me;(function(w){function i(){return x(this).some(P=>P==null?void 0:P.enabled)}function s(P,M,N,U,V){var be;let{chart:et,enabledDataSorting:rt}=this,Q=this.isCartesian&&et.inverted,dt=P.plotX,ft=P.plotY,Rt=N.rotation||0,Nt=cu(dt)&&cu(ft)&&et.isInsidePlot(dt,Math.round(ft),{inverted:Q,paneCoordinates:!0,series:this}),Lt=Rt===0&&$i(N.overflow,rt?"none":"justify")==="justify",Ut=this.visible&&P.visible!==!1&&cu(dt)&&(P.series.forceDL||rt&&!Lt||Nt||$i(N.inside,!!this.options.stacking)&&U&&et.isInsidePlot(dt,Q?U.x+1:U.y+U.height-1,{inverted:Q,paneCoordinates:!0,series:this})),$t=P.pos();if(Ut&&$t){var qt;let Ce=M.getBBox(),Ie=M.getBBox(void 0,0);if(U=Dg({x:$t[0],y:Math.round($t[1]),width:0,height:0},U||{}),N.alignTo==="plotEdges"&&this.isCartesian&&(U[Q?"x":"y"]=0,U[Q?"width":"height"]=((be=this.yAxis)==null?void 0:be.len)||0),Dg(N,{width:Ce.width,height:Ce.height}),qt=U,rt&&this.xAxis&&!Lt&&this.setDataLabelStartPos(P,M,V,Nt,qt),M.align(nn(N,{width:Ie.width,height:Ie.height}),!1,U,!1),M.alignAttr.x+=Lg(N.align)*(Ie.width-Ce.width),M.alignAttr.y+=Lg(N.verticalAlign)*(Ie.height-Ce.height),M[M.placed?"animate":"attr"]({"text-align":M.alignAttr["text-align"]||"center",x:M.alignAttr.x+(Ce.width-Ie.width)/2,y:M.alignAttr.y+(Ce.height-Ie.height)/2,rotationOriginX:(M.width||0)/2,rotationOriginY:(M.height||0)/2}),Lt&&U.height>=0)this.justifyDataLabel(M,N,M.alignAttr,Ce,U,V);else if($i(N.crop,!0)){let{x:pe,y:Ne}=M.alignAttr;Ut=et.isInsidePlot(pe,Ne,{paneCoordinates:!0,series:this})&&et.isInsidePlot(pe+Ce.width-1,Ne+Ce.height-1,{paneCoordinates:!0,series:this})}N.shape&&!Rt&&M[V?"attr":"animate"]({anchorX:$t[0],anchorY:$t[1]})}V&&rt&&(M.placed=!1),Ut||rt&&!Lt?(M.show(),M.placed=!0):(M.hide(),M.placed=!1)}function l(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function u(P){let M=this.hasRendered||0,N=this.initDataLabelsGroup().attr({opacity:+M});return!M&&N&&(this.visible&&N.show(),this.options.animation?N.animate({opacity:1},P):N.attr({opacity:1})),N}function h(P){var Ut;let M;P=P||this.points;let N=this,U=N.chart,V=N.options,et=U.renderer,{backgroundColor:rt,plotBackgroundColor:Q}=U.options.chart,dt=et.getContrast(Pn(Q)&&Q||Pn(rt)&&rt||"#000000"),ft=x(N),{animation:Rt,defer:Nt}=ft[0],Lt=Nt?_d(U,Rt,N):{defer:0,duration:0};Ph(this,"drawDataLabels"),(Ut=N.hasDataLabels)!=null&&Ut.call(N)&&(M=this.initDataLabels(Lt),P.forEach($t=>{var Ce,Ie;let qt=$t.dataLabels||[];_s(g(ft,$t.dlOptions||((Ce=$t.options)==null?void 0:Ce.dataLabels))).forEach((pe,Ne)=>{let Qe=pe.enabled&&($t.visible||$t.dataLabelOnHidden)&&(!$t.isNull||$t.dataLabelOnNull)&&function(Ur,Wn){let En=Wn.filter;if(En){let mr=En.operator,$n=Ur[En.property],Hn=En.value;return mr===">"&&$n>Hn||mr==="<"&&$n<Hn||mr===">="&&$n>=Hn||mr==="<="&&$n<=Hn||mr==="=="&&$n==Hn||mr==="==="&&$n===Hn||mr==="!="&&$n!=Hn||mr==="!=="&&$n!==Hn}return!0}($t,pe),{backgroundColor:wi,borderColor:Xe,distance:mi,style:$e={}}=pe,Je,fi,Qi,Ui={},Li=qt[Ne],Fi=!Li,Ii;Qe&&(fi=cu(Je=$i(pe[$t.formatPrefix+"Format"],pe.format))?_n(Je,$t,U):(pe[$t.formatPrefix+"Formatter"]||pe.formatter).call($t,pe),Qi=pe.rotation,!U.styledMode&&($e.color=$i(pe.color,$e.color,Pn(N.color)?N.color:void 0,"#000000"),$e.color==="contrast"?(wi!=="none"&&(Ii=wi),$t.contrastColor=et.getContrast(Ii!=="auto"&&Ii||$t.color||N.color),$e.color=Ii||!cu(mi)&&pe.inside||0>Mn(mi||0)||V.stacking?$t.contrastColor:dt):delete $t.contrastColor,V.cursor&&($e.cursor=V.cursor)),Ui={r:pe.borderRadius||0,rotation:Qi,padding:pe.padding,zIndex:1},U.styledMode||(Ui.fill=wi==="auto"?$t.color:wi,Ui.stroke=Xe==="auto"?$t.color:Xe,Ui["stroke-width"]=pe.borderWidth),Hi(Ui,(Ur,Wn)=>{Ur===void 0&&delete Ui[Wn]})),!Li||Qe&&cu(fi)&&!!Li.div==!!pe.useHTML&&(Li.rotation&&pe.rotation||Li.rotation===pe.rotation)||(Li=void 0,Fi=!0),Qe&&cu(fi)&&(Li?Ui.text=fi:(Li=et.label(fi,0,0,pe.shape,void 0,void 0,pe.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+$t.colorIndex+" "+(pe.className||"")+(pe.useHTML?" highcharts-tracker":"")),Li&&(Li.options=pe,Li.attr(Ui),U.styledMode?$e.width&&Li.css({width:$e.width,textOverflow:$e.textOverflow,whiteSpace:$e.whiteSpace}):Li.css($e).shadow(pe.shadow),Ph(Li,"beforeAddingDataLabel",{labelOptions:pe,point:$t}),Li.added||Li.add(M),N.alignDataLabel($t,Li,pe,void 0,Fi),Li.isActive=!0,qt[Ne]&&qt[Ne]!==Li&&qt[Ne].destroy(),qt[Ne]=Li))});let be=qt.length;for(;be--;)qt[be]&&qt[be].isActive?qt[be].isActive=!1:((Ie=qt[be])==null||Ie.destroy(),qt.splice(be,1));$t.dataLabel=qt[0],$t.dataLabels=qt})),Ph(this,"afterDrawDataLabels")}function f(P,M,N,U,V,et){let rt=this.chart,Q=M.align,dt=M.verticalAlign,ft=P.box?0:P.padding||0,Rt=rt.inverted?this.yAxis:this.xAxis,Nt=Rt?Rt.left-rt.plotLeft:0,Lt=rt.inverted?this.xAxis:this.yAxis,Ut=Lt?Lt.top-rt.plotTop:0,{x:$t=0,y:qt=0}=M,be,Ce;return(be=(N.x||0)+ft+Nt)<0&&(Q==="right"&&$t>=0?(M.align="left",M.inside=!0):$t-=be,Ce=!0),(be=(N.x||0)+U.width-ft+Nt)>rt.plotWidth&&(Q==="left"&&$t<=0?(M.align="right",M.inside=!0):$t+=rt.plotWidth-be,Ce=!0),(be=N.y+ft+Ut)<0&&(dt==="bottom"&&qt>=0?(M.verticalAlign="top",M.inside=!0):qt-=be,Ce=!0),(be=(N.y||0)+U.height-ft+Ut)>rt.plotHeight&&(dt==="top"&&qt<=0?(M.verticalAlign="bottom",M.inside=!0):qt+=rt.plotHeight-be,Ce=!0),Ce&&(M.x=$t,M.y=qt,P.placed=!et,P.align(M,void 0,V)),Ce}function g(P,M){let N=[],U;if(kc(P)&&!kc(M))N=P.map(function(V){return nn(V,M)});else if(kc(M)&&!kc(P))N=M.map(function(V){return nn(P,V)});else if(kc(P)||kc(M)){if(kc(P)&&kc(M))for(U=Math.max(P.length,M.length);U--;)N[U]=nn(P[U],M[U])}else N=nn(P,M);return N}function x(P){var N,U;let M=P.chart.options.plotOptions;return _s(g(g((N=M==null?void 0:M.series)==null?void 0:N.dataLabels,(U=M==null?void 0:M[P.type])==null?void 0:U.dataLabels),P.options.dataLabels))}function C(P,M,N,U,V){let et=this.chart,rt=et.inverted,Q=this.xAxis,dt=Q.reversed,ft=((rt?M.height:M.width)||0)/2,Rt=P.pointWidth,Nt=Rt?Rt/2:0;M.startXPos=rt?V.x:dt?-ft-Nt:Q.width-ft+Nt,M.startYPos=rt?dt?this.yAxis.height-ft+Nt:-ft-Nt:V.y,U?M.visibility==="hidden"&&(M.show(),M.attr({opacity:0}).animate({opacity:1})):M.attr({opacity:1}).animate({opacity:0},void 0,M.hide),et.hasRendered&&(N&&M.attr({x:M.startXPos,y:M.startYPos}),M.placed=!0)}w.compose=function(P){let M=P.prototype;M.initDataLabels||(M.initDataLabels=u,M.initDataLabelsGroup=l,M.alignDataLabel=s,M.drawDataLabels=h,M.justifyDataLabel=f,M.setDataLabelStartPos=C,M.hasDataLabels=i)}})(_||(_={}));let zo=_,{composed:ed}=at,{series:Bh}=Ze,{merge:Il,pick:Tn,pushUnique:Mc}=me;(function(w){function i(s,l,u,h,f){let g=this.chart.inverted,x=s.series,C=(x.xAxis?x.xAxis.len:this.chart.plotSizeX)||0,P=(x.yAxis?x.yAxis.len:this.chart.plotSizeY)||0,M=s.dlBox||s.shapeArgs,N=Tn(s.below,s.plotY>Tn(this.translatedThreshold,P)),U=Tn(u.inside,!!this.options.stacking);if(M){if(h=Il(M),!(u.overflow==="allow"&&u.crop===!1)){h.y<0&&(h.height+=h.y,h.y=0);let V=h.y+h.height-P;V>0&&V<h.height-1&&(h.height-=V)}g&&(h={x:P-h.y-h.height,y:C-h.x-h.width,width:h.height,height:h.width}),U||(g?(h.x+=N?0:h.width,h.width=0):(h.y+=N?h.height:0,h.height=0))}u.align=Tn(u.align,!g||U?"center":N?"right":"left"),u.verticalAlign=Tn(u.verticalAlign,g||U?"middle":N?"top":"bottom"),Bh.prototype.alignDataLabel.call(this,s,l,u,h,f),u.inside&&s.contrastColor&&l.css({color:s.contrastColor})}w.compose=function(s){zo.compose(Bh),Mc(ed,"ColumnDataLabel")&&(s.prototype.alignDataLabel=i)}})(J||(J={}));let uu=J,{extend:Wp,merge:jo}=me;class Tc extends lu{}Tc.defaultOptions=jo(lu.defaultOptions,{}),Wp(Tc.prototype,{inverted:!0}),Ze.registerSeriesType("bar",Tc);let{column:Wd,line:ma}=Ze.seriesTypes,{addEvent:Vp,extend:Xp,merge:Dh}=me;class du extends ma{applyJitter(){let i=this,s=this.options.jitter,l=this.points.length;s&&this.points.forEach(function(u,h){["x","y"].forEach(function(f,g){if(s[f]&&!u.isNull){let x=`plot${f.toUpperCase()}`,C=i[`${f}Axis`],P=s[f]*C.transA;if(C&&!C.logarithmic){let M=Math.max(0,(u[x]||0)-P),N=Math.min(C.len,(u[x]||0)+P);u[x]=M+(N-M)*function(U){let V=1e4*Math.sin(U);return V-Math.floor(V)}(h+g*l),f==="x"&&(u.clientX=u.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}du.defaultOptions=Dh(ma.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/>"}}),Xp(du.prototype,{drawTracker:Wd.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),Vp(du,"afterTranslate",function(){this.applyJitter()}),Ze.registerSeriesType("scatter",du);let{deg2rad:Nl}=at,{fireEvent:Lh,isNumber:zl,pick:Ec,relativeLength:Yp}=me;(function(w){w.getCenter=function(){let i=this.options,s=this.chart,l=2*(i.slicedOffset||0),u=s.plotWidth-2*l,h=s.plotHeight-2*l,f=i.center,g=Math.min(u,h),x=i.thickness,C,P=i.size,M=i.innerSize||0,N,U;typeof P=="string"&&(P=parseFloat(P)),typeof M=="string"&&(M=parseFloat(M));let V=[Ec(f==null?void 0:f[0],"50%"),Ec(f==null?void 0:f[1],"50%"),Ec(P&&P<0?void 0:i.size,"100%"),Ec(M&&M<0?void 0:i.innerSize||0,"0%")];for(!s.angular||this instanceof Jr||(V[3]=0),N=0;N<4;++N)U=V[N],C=N<2||N===2&&/%$/.test(U),V[N]=Yp(U,[u,h,g,V[2]][N])+(C?l:0);return V[3]>V[2]&&(V[3]=V[2]),zl(x)&&2*x<V[2]&&x>0&&(V[3]=V[2]-2*x),Lh(this,"afterGetCenter",{positions:V}),V},w.getStartAndEndRadians=function(i,s){let l=zl(i)?i:0,u=zl(s)&&s>l&&s-l<360?s:l+360;return{start:Nl*(l+-90),end:Nl*(u+-90)}}})(it||(it={}));let Ih=it,{setAnimation:Vd}=hn,{addEvent:Nh,defined:po,extend:Ig,isNumber:Ts,pick:Ng,relativeLength:qp}=me;class Kp extends vi{getConnectorPath(i){let s=i.dataLabelPosition,l=i.options||{},u=l.connectorShape,h=this.connectorShapes[u]||u;return s&&h.call(this,{...s.computed,alignment:s.alignment},s.connectorPosition,l)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(i){let s=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(s.x,s.y,s.r+i,s.r+i,{innerR:s.r-1,start:s.start,end:s.end,borderRadius:s.borderRadius})}constructor(i,s,l){super(i,s,l),this.half=0,this.name??(this.name="Slice");let u=h=>{this.slice(h.type==="select")};Nh(this,"select",u),Nh(this,"unselect",u)}isValid(){return Ts(this.y)&&this.y>=0}setVisible(i,s=!0){i!==this.visible&&this.update({visible:i??!this.visible},s,void 0,!1)}slice(i,s,l){let u=this.series;Vd(l,u.chart),s=Ng(s,!0),this.sliced=this.options.sliced=i=po(i)?i:!this.sliced,u.options.data[u.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}Ig(Kp.prototype,{connectorShapes:{fixedOffset:function(w,i,s){let l=i.breakAt,u=i.touchingSliceAt,h=s.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*l.x-u.x,2*l.y-u.y,l.x,l.y]:["L",l.x,l.y];return[["M",w.x,w.y],h,["L",u.x,u.y]]},straight:function(w,i){let s=i.touchingSliceAt;return[["M",w.x,w.y],["L",s.x,s.y]]},crookedLine:function(w,i,s){let{angle:l=this.angle||0,breakAt:u,touchingSliceAt:h}=i,{series:f}=this,[g,x,C]=f.center,P=C/2,{plotLeft:M,plotWidth:N}=f.chart,U=w.alignment==="left",{x:V,y:et}=w,rt=u.x;if(s.crookDistance){let dt=qp(s.crookDistance,1);rt=U?g+P+(N+M-g-P)*(1-dt):M+(g-P)*dt}else rt=g+(x-et)*Math.tan(l-Math.PI/2);let Q=[["M",V,et]];return(U?rt<=V&&rt>=u.x:rt>=V&&rt<=u.x)&&Q.push(["L",rt,et]),Q.push(["L",u.x,u.y],["L",h.x,h.y]),Q}}});let{getStartAndEndRadians:Sy}=Ih,{noop:qa}=at,{clamp:zh,extend:Zp,fireEvent:hu,merge:jh,pick:zg}=me;class $h extends Jr{animate(i){let s=this,l=s.points,u=s.startAngleRad;i||l.forEach(function(h){let f=h.graphic,g=h.shapeArgs;f&&g&&(f.attr({r:zg(h.startR,s.center&&s.center[3]/2),start:u,end:u}),f.animate({r:g.r,start:g.start,end:g.end},s.options.animation))})}drawEmpty(){let i,s,l=this.startAngleRad,u=this.endAngleRad,h=this.options;this.total===0&&this.center?(i=this.center[0],s=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(i,s,this.center[1]/2,0,l,u).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:ll.arc(i,s,this.center[2]/2,0,{start:l,end:u,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":h.borderWidth,fill:h.fillColor||"none",stroke:h.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let i=this.chart.renderer;this.points.forEach(function(s){s.graphic&&s.hasNewShapeType()&&(s.graphic=s.graphic.destroy()),s.graphic||(s.graphic=i[s.shapeType](s.shapeArgs).add(s.series.group),s.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(i,s,l,u){let h=this.center,f=this.radii?this.radii[l.index]||0:h[2]/2,g=u.dataLabelPosition,x=(g==null?void 0:g.distance)||0,C=Math.asin(zh((i-h[1])/(f+x),-1,1));return h[0]+Math.cos(C)*(f+x)*(s?-1:1)+(x>0?(s?-1:1)*(u.padding||0):0)}hasData(){return!!this.dataTable.rowCount}redrawPoints(){let i,s,l,u,h=this,f=h.chart;this.drawEmpty(),h.group&&!f.styledMode&&h.group.shadow(h.options.shadow),h.points.forEach(function(g){let x={};s=g.graphic,!g.isNull&&s?(u=g.shapeArgs,i=g.getTranslate(),f.styledMode||(l=h.pointAttribs(g,g.selected&&"select")),g.delayedRendering?(s.setRadialReference(h.center).attr(u).attr(i),f.styledMode||s.attr(l).attr({"stroke-linejoin":"round"}),g.delayedRendering=!1):(s.setRadialReference(h.center),f.styledMode||jh(!0,x,l),jh(!0,x,u,i),s.animate(x)),s.attr({visibility:g.visible?"inherit":"hidden"}),s.addClass(g.getClassName(),!0)):s&&(g.graphic=s.destroy())})}sortByAngle(i,s){i.sort(function(l,u){return l.angle!==void 0&&(u.angle-l.angle)*s})}translate(i){hu(this,"translate"),this.generatePoints();let s=this.options,l=s.slicedOffset,u=Sy(s.startAngle,s.endAngle),h=this.startAngleRad=u.start,f=(this.endAngleRad=u.end)-h,g=this.points,x=s.ignoreHiddenPoint,C=g.length,P,M,N,U,V,et,rt,Q=0;for(i||(this.center=i=this.getCenter()),et=0;et<C;et++){rt=g[et],P=h+Q*f,rt.isValid()&&(!x||rt.visible)&&(Q+=rt.percentage/100),M=h+Q*f;let dt={x:i[0],y:i[1],r:i[2]/2,innerR:i[3]/2,start:Math.round(1e3*P)/1e3,end:Math.round(1e3*M)/1e3};rt.shapeType="arc",rt.shapeArgs=dt,(N=(M+P)/2)>1.5*Math.PI?N-=2*Math.PI:N<-Math.PI/2&&(N+=2*Math.PI),rt.slicedTranslation={translateX:Math.round(Math.cos(N)*l),translateY:Math.round(Math.sin(N)*l)},U=Math.cos(N)*i[2]/2,V=Math.sin(N)*i[2]/2,rt.tooltipPos=[i[0]+.7*U,i[1]+.7*V],rt.half=N<-Math.PI/2||N>Math.PI/2?1:0,rt.angle=N}hu(this,"afterTranslate")}updateTotals(){let i=this.points,s=i.length,l=this.options.ignoreHiddenPoint,u,h,f=0;for(u=0;u<s;u++)(h=i[u]).isValid()&&(!l||h.visible)&&(f+=h.y);for(u=0,this.total=f;u<s;u++)(h=i[u]).percentage=f>0&&(h.visible||!l)?h.y/f*100:0,h.total=f}}$h.defaultOptions=jh(Jr.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}}}),Zp($h.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:lu.prototype.drawTracker,getCenter:Ih.getCenter,getSymbol:qa,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:lu.prototype.pointAttribs,pointClass:Kp,requireSorting:!1,searchPoint:qa,trackerGroups:["group","dataLabelsGroup"]}),Ze.registerSeriesType("pie",$h);let{composed:Qp,noop:Jp}=at,{distribute:wy}=Nr,{series:jg}=Ze,{arrayMax:Cy,clamp:tf,defined:ef,pick:id,pushUnique:Hh,relativeLength:nf}=me;(function(w){let i={radialDistributionY:function(f,g){var x;return(((x=g.dataLabelPosition)==null?void 0:x.top)||0)+f.distributeBox.pos},radialDistributionX:function(f,g,x,C,P){let M=P.dataLabelPosition;return f.getX(x<((M==null?void 0:M.top)||0)+2||x>((M==null?void 0:M.bottom)||0)-2?C:x,g.half,g,P)},justify:function(f,g,x,C){var P;return C[0]+(f.half?-1:1)*(x+(((P=g.dataLabelPosition)==null?void 0:P.distance)||0))},alignToPlotEdges:function(f,g,x,C){let P=f.getBBox().width;return g?P+C:x-P-C},alignToConnectors:function(f,g,x,C){let P=0,M;return f.forEach(function(N){(M=N.dataLabel.getBBox().width)>P&&(P=M)}),g?P+C:x-P-C}};function s(f,g){let x=Math.PI/2,{start:C=0,end:P=0}=f.shapeArgs||{},M=f.angle||0;g>0&&C<x&&P>x&&M>x/2&&M<1.5*x&&(M=M<=x?Math.max(x/2,(C+x)/2):Math.min(1.5*x,(x+P)/2));let{center:N,options:U}=this,V=N[2]/2,et=Math.cos(M),rt=Math.sin(M),Q=N[0]+et*V,dt=N[1]+rt*V,ft=Math.min((U.slicedOffset||0)+(U.borderWidth||0),g/5);return{natural:{x:Q+et*g,y:dt+rt*g},computed:{},alignment:g<0?"center":f.half?"right":"left",connectorPosition:{angle:M,breakAt:{x:Q+et*ft,y:dt+rt*ft},touchingSliceAt:{x:Q,y:dt}},distance:g}}function l(){var Ut;let f=this,g=f.points,x=f.chart,C=x.plotWidth,P=x.plotHeight,M=x.plotLeft,N=Math.round(x.chartWidth/3),U=f.center,V=U[2]/2,et=U[1],rt=[[],[]],Q=[0,0,0,0],dt=f.dataLabelPositioners,ft,Rt,Nt,Lt=0;f.visible&&((Ut=f.hasDataLabels)!=null&&Ut.call(f))&&(g.forEach($t=>{($t.dataLabels||[]).forEach(qt=>{qt.shortened&&(qt.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),qt.shortened=!1)})}),jg.prototype.drawDataLabels.apply(f),g.forEach($t=>{($t.dataLabels||[]).forEach((qt,be)=>{var Ne;let Ce=U[2]/2,Ie=qt.options,pe=nf((Ie==null?void 0:Ie.distance)||0,Ce);be===0&&rt[$t.half].push($t),!ef((Ne=Ie==null?void 0:Ie.style)==null?void 0:Ne.width)&&qt.getBBox().width>N&&(qt.css({width:Math.round(.7*N)+"px"}),qt.shortened=!0),qt.dataLabelPosition=this.getDataLabelPosition($t,pe),Lt=Math.max(Lt,pe)})}),rt.forEach(($t,qt)=>{let be=$t.length,Ce=[],Ie,pe,Ne=0,Qe;be&&(f.sortByAngle($t,qt-.5),Lt>0&&(Ie=Math.max(0,et-V-Lt),pe=Math.min(et+V+Lt,x.plotHeight),$t.forEach(wi=>{(wi.dataLabels||[]).forEach(Xe=>{var $e;let mi=Xe.dataLabelPosition;mi&&mi.distance>0&&(mi.top=Math.max(0,et-V-mi.distance),mi.bottom=Math.min(et+V+mi.distance,x.plotHeight),Ne=Xe.getBBox().height||21,Xe.lineHeight=x.renderer.fontMetrics(Xe.text||Xe).h+2*Xe.padding,wi.distributeBox={target:((($e=Xe.dataLabelPosition)==null?void 0:$e.natural.y)||0)-mi.top+Xe.lineHeight/2,size:Ne,rank:wi.y},Ce.push(wi.distributeBox))})}),wy(Ce,Qe=pe+Ne-Ie,Qe/5)),$t.forEach(wi=>{(wi.dataLabels||[]).forEach(Xe=>{let mi=Xe.options||{},$e=wi.distributeBox,Je=Xe.dataLabelPosition,fi=(Je==null?void 0:Je.natural.y)||0,Qi=mi.connectorPadding||0,Ui=Xe.lineHeight||21,Li=(Ui-Xe.getBBox().height)/2,Fi=0,Ii=fi,Ur="inherit";if(Je){if(Ce&&ef($e)&&Je.distance>0&&($e.pos===void 0?Ur="hidden":(Nt=$e.size,Ii=dt.radialDistributionY(wi,Xe))),mi.justify)Fi=dt.justify(wi,Xe,V,U);else switch(mi.alignTo){case"connectors":Fi=dt.alignToConnectors($t,qt,C,M);break;case"plotEdges":Fi=dt.alignToPlotEdges(Xe,qt,C,M);break;default:Fi=dt.radialDistributionX(f,wi,Ii-Li,fi,Xe)}if(Je.attribs={visibility:Ur,align:Je.alignment},Je.posAttribs={x:Fi+(mi.x||0)+({left:Qi,right:-Qi}[Je.alignment]||0),y:Ii+(mi.y||0)-Ui/2},Je.computed.x=Fi,Je.computed.y=Ii-Li,id(mi.crop,!0)){let Wn;Fi-(Rt=Xe.getBBox().width)<Qi&&qt===1?(Wn=Math.round(Rt-Fi+Qi),Q[3]=Math.max(Wn,Q[3])):Fi+Rt>C-Qi&&qt===0&&(Wn=Math.round(Fi+Rt-C+Qi),Q[1]=Math.max(Wn,Q[1])),Ii-Nt/2<0?Q[0]=Math.max(Math.round(-Ii+Nt/2),Q[0]):Ii+Nt/2>P&&(Q[2]=Math.max(Math.round(Ii+Nt/2-P),Q[2])),Je.sideOverflow=Wn}}})}))}),(Cy(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach($t=>{($t.dataLabels||[]).forEach(qt=>{var pe;let{connectorColor:be,connectorWidth:Ce=1}=qt.options||{},Ie=qt.dataLabelPosition;if(Ce){let Ne;ft=qt.connector,Ie&&Ie.distance>0?(Ne=!ft,ft||(qt.connector=ft=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+$t.colorIndex+($t.className?" "+$t.className:"")).add(f.dataLabelsGroup)),x.styledMode||ft.attr({"stroke-width":Ce,stroke:be||$t.color||"#666666"}),ft[Ne?"attr":"animate"]({d:$t.getConnectorPath(qt)}),ft.attr({visibility:(pe=Ie.attribs)==null?void 0:pe.visibility})):ft&&(qt.connector=ft.destroy())}})})))}function u(){this.points.forEach(f=>{(f.dataLabels||[]).forEach(g=>{var C;let x=g.dataLabelPosition;x?(x.sideOverflow&&(g.css({width:Math.max(g.getBBox().width-x.sideOverflow,0)+"px",textOverflow:(((C=g.options)==null?void 0:C.style)||{}).textOverflow||"ellipsis"}),g.shortened=!0),g.attr(x.attribs),g[g.moved?"animate":"attr"](x.posAttribs),g.moved=!0):g&&g.attr({y:-9999})}),delete f.distributeBox},this)}function h(f){let g=this.center,x=this.options,C=x.center,P=x.minSize||80,M=P,N=x.size!==null;return!N&&(C[0]!==null?M=Math.max(g[2]-Math.max(f[1],f[3]),P):(M=Math.max(g[2]-f[1]-f[3],P),g[0]+=(f[3]-f[1])/2),C[1]!==null?M=tf(M,P,g[2]-Math.max(f[0],f[2])):(M=tf(M,P,g[2]-f[0]-f[2]),g[1]+=(f[0]-f[2])/2),M<g[2]?(g[2]=M,g[3]=Math.min(x.thickness?Math.max(0,M-2*x.thickness):Math.max(0,nf(x.innerSize||0,M)),M),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):N=!0),N}w.compose=function(f){if(zo.compose(jg),Hh(Qp,"PieDataLabel")){let g=f.prototype;g.dataLabelPositioners=i,g.alignDataLabel=Jp,g.drawDataLabels=l,g.getDataLabelPosition=s,g.placeDataLabels=u,g.verifyDataLabelOverflow=h}}})(st||(st={}));let $g=st;(function(w){w.getCenterOfPoints=function(i){let s=i.reduce((l,u)=>(l.x+=u.x,l.y+=u.y,l),{x:0,y:0});return{x:s.x/i.length,y:s.y/i.length}},w.getDistanceBetweenPoints=function(i,s){return Math.sqrt(Math.pow(s.x-i.x,2)+Math.pow(s.y-i.y,2))},w.getAngleBetweenPoints=function(i,s){return Math.atan2(s.x-i.x,s.y-i.y)},w.pointInPolygon=function({x:i,y:s},l){let u=l.length,h,f,g=!1;for(h=0,f=u-1;h<u;f=h++){let[x,C]=l[h],[P,M]=l[f];C>s!=M>s&&i<(P-x)*(s-C)/(M-C)+x&&(g=!g)}return g}})(ct||(ct={}));let{pointInPolygon:ky}=ct,{addEvent:Hg,fireEvent:pu,objectEach:rf,pick:yn}=me;function sf(w){let i=w.length,s=(P,M)=>!(M.x>=P.x+P.width||M.x+M.width<=P.x||M.y>=P.y+P.height||M.y+M.height<=P.y),l=(P,M)=>{for(let N of P)if(ky({x:N[0],y:N[1]},M))return!0;return!1},u,h,f,g,x,C=!1;for(let P=0;P<i;P++)(u=w[P])&&(u.oldOpacity=u.opacity,u.newOpacity=1,u.absoluteBox=function(M){var N,U;if(M&&(!M.alignAttr||M.placed)){let V=M.box?0:M.padding||0,et=M.alignAttr||{x:M.attr("x"),y:M.attr("y")},rt=M.getBBox();return M.width=rt.width,M.height=rt.height,{x:et.x+(((N=M.parentGroup)==null?void 0:N.translateX)||0)+V,y:et.y+(((U=M.parentGroup)==null?void 0:U.translateY)||0)+V,width:(M.width||0)-2*V,height:(M.height||0)-2*V,polygon:rt==null?void 0:rt.polygon}}}(u));w.sort((P,M)=>(M.labelrank||0)-(P.labelrank||0));for(let P=0;P<i;++P){g=(h=w[P])&&h.absoluteBox;let M=g==null?void 0:g.polygon;for(let N=P+1;N<i;++N){x=(f=w[N])&&f.absoluteBox;let U=!1;if(g&&x&&h!==f&&h.newOpacity!==0&&f.newOpacity!==0&&h.visibility!=="hidden"&&f.visibility!=="hidden"){let V=x.polygon;if(M&&V&&M!==V?l(M,V)&&(U=!0):s(g,x)&&(U=!0),U){let et=h.labelrank<f.labelrank?h:f,rt=et.text;et.newOpacity=0,rt!=null&&rt.element.querySelector("textPath")&&rt.hide()}}}}for(let P of w)Ug(P,this)&&(C=!0);C&&pu(this,"afterHideAllOverlappingLabels")}function Ug(w,i){let s,l,u=!1;return w&&(l=w.newOpacity,w.oldOpacity!==l&&(w.hasClass("highcharts-data-label")?(w[l?"removeClass":"addClass"]("highcharts-data-label-hidden"),s=function(){i.styledMode||w.css({pointerEvents:l?"auto":"none"})},u=!0,w[w.isOld?"animate":"attr"]({opacity:l},void 0,s),pu(i,"afterHideOverlappingLabel")):w.attr({opacity:l})),w.isOld=!0),u}function Fg(){var s;let w=this,i=[];for(let l of w.labelCollectors||[])i=i.concat(l());for(let l of w.yAxis||[])l.stacking&&l.options.stackLabels&&!l.options.stackLabels.allowOverlap&&rf(l.stacking.stacks,u=>{rf(u,h=>{h.label&&i.push(h.label)})});for(let l of w.series||[])if(l.visible&&((s=l.hasDataLabels)!=null&&s.call(l))){let u=h=>{for(let f of h)f.visible&&(f.dataLabels||[]).forEach(g=>{var C;let x=g.options||{};g.labelrank=yn(x.labelrank,f.labelrank,(C=f.shapeArgs)==null?void 0:C.height),x.allowOverlap??Number(x.distance)>0?(g.oldOpacity=g.opacity,g.newOpacity=1,Ug(g,w)):i.push(g)})};u(l.nodes||[]),u(l.points)}this.hideOverlappingLabels(i)}let Gg={compose:function(w){let i=w.prototype;i.hideOverlappingLabels||(i.hideOverlappingLabels=sf,Hg(w,"render",Fg))}},{defaultOptions:My}=ai,{noop:_g}=at,{addEvent:Xd,extend:nd,isObject:Uh,merge:Fh,relativeLength:Yd}=me,fu={radius:0,scope:"stack",where:void 0},ya=_g,rd=_g;function Ty(w,i,s,l,u={}){let h=ya(w,i,s,l,u),{innerR:f=0,r:g=s,start:x=0,end:C=0}=u;if(u.open||!u.borderRadius)return h;let P=C-x,M=Math.sin(P/2),N=Math.max(Math.min(Yd(u.borderRadius||0,g-f),(g-f)/2,g*M/(1+M)),0),U=Math.min(N,P/Math.PI*2*f),V=h.length-1;for(;V--;)(function(et,rt,Q){let dt,ft,Rt,Nt=et[rt],Lt=et[rt+1];if(Lt[0]==="Z"&&(Lt=et[0]),(Nt[0]==="M"||Nt[0]==="L")&&Lt[0]==="A"?(dt=Nt,ft=Lt,Rt=!0):Nt[0]==="A"&&(Lt[0]==="M"||Lt[0]==="L")&&(dt=Lt,ft=Nt),dt&&ft&&ft.params){let Ut=ft[1],$t=ft[5],qt=ft.params,{start:be,end:Ce,cx:Ie,cy:pe}=qt,Ne=$t?Ut-Q:Ut+Q,Qe=Ne?Math.asin(Q/Ne):0,wi=$t?Qe:-Qe,Xe=Math.cos(Qe)*Ne;Rt?(qt.start=be+wi,dt[1]=Ie+Xe*Math.cos(be),dt[2]=pe+Xe*Math.sin(be),et.splice(rt+1,0,["A",Q,Q,0,0,1,Ie+Ut*Math.cos(qt.start),pe+Ut*Math.sin(qt.start)])):(qt.end=Ce-wi,ft[6]=Ie+Ut*Math.cos(qt.end),ft[7]=pe+Ut*Math.sin(qt.end),et.splice(rt+1,0,["A",Q,Q,0,0,1,Ie+Xe*Math.cos(Ce),pe+Xe*Math.sin(Ce)])),ft[4]=Math.abs(qt.end-qt.start)<Math.PI?0:1}})(h,V,V>1?U:N);return h}function Wg(){var w,i;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:s,yAxis:l}=this,u=s.stacking==="percent",h=(i=(w=My.plotOptions)==null?void 0:w[this.type])==null?void 0:i.borderRadius,f=Gh(s.borderRadius,Uh(h)?h:{}),g=l.options.reversed;for(let x of this.points){let{shapeArgs:C}=x;if(x.shapeType==="roundedRect"&&C){let{width:P=0,height:M=0,y:N=0}=C,U=N,V=M;if(f.scope==="stack"&&x.stackTotal){let dt=l.translate(u?100:x.stackTotal,!1,!0,!1,!0),ft=l.translate(s.threshold||0,!1,!0,!1,!0),Rt=this.crispCol(0,Math.min(dt,ft),0,Math.abs(dt-ft));U=Rt.y,V=Rt.height}let et=(x.negative?-1:1)*(g?-1:1)==-1,rt=f.where;!rt&&this.is("waterfall")&&Math.abs((x.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(rt="all"),rt||(rt="end");let Q=Math.min(Yd(f.radius,P),P/2,rt==="all"?M/2:1/0)||0;rt==="end"&&(et&&(U-=Q),V+=Q),nd(C,{brBoxHeight:V,brBoxY:U,r:Q})}}}}function Gh(w,i){return Uh(w)||(w={radius:w||0}),Fh(fu,i,w)}function Vg(){let w=Gh(this.options.borderRadius);for(let i of this.points){let s=i.shapeArgs;s&&(s.borderRadius=Yd(w.radius,(s.r||0)-(s.innerR||0)))}}function Ey(w,i,s,l,u={}){let h=rd(w,i,s,l,u),{r:f=0,brBoxHeight:g=l,brBoxY:x=i}=u,C=i-x,P=x+g-(i+l),M=C-f>-.1?0:f,N=P-f>-.1?0:f,U=Math.max(M&&C,0),V=Math.max(N&&P,0),et=[w+M,i],rt=[w+s-M,i],Q=[w+s,i+M],dt=[w+s,i+l-N],ft=[w+s-N,i+l],Rt=[w+N,i+l],Nt=[w,i+l-N],Lt=[w,i+M],Ut=($t,qt)=>Math.sqrt(Math.pow($t,2)-Math.pow(qt,2));if(U){let $t=Ut(M,M-U);et[0]-=$t,rt[0]+=$t,Q[1]=Lt[1]=i+M-U}if(l<M-U){let $t=Ut(M,M-U-l);Q[0]=dt[0]=w+s-M+$t,ft[0]=Math.min(Q[0],ft[0]),Rt[0]=Math.max(dt[0],Rt[0]),Nt[0]=Lt[0]=w+M-$t,Q[1]=Lt[1]=i+l}if(V){let $t=Ut(N,N-V);ft[0]+=$t,Rt[0]-=$t,dt[1]=Nt[1]=i+l-N+V}if(l<N-V){let $t=Ut(N,N-V-l);Q[0]=dt[0]=w+s-N+$t,rt[0]=Math.min(Q[0],rt[0]),et[0]=Math.max(dt[0],et[0]),Nt[0]=Lt[0]=w+N-$t,dt[1]=Nt[1]=i}return h.length=0,h.push(["M",...et],["L",...rt],["A",M,M,0,0,1,...Q],["L",...dt],["A",N,N,0,0,1,...ft],["L",...Rt],["A",N,N,0,0,1,...Nt],["L",...Lt],["A",M,M,0,0,1,...et],["Z"]),h}let{diffObjects:of,extend:Xg,find:Yg,merge:Ay,pick:sd,uniqueKey:af}=me;(function(w){function i(l,u){let h=l.condition;(h.callback||function(){return this.chartWidth<=sd(h.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=sd(h.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=sd(h.minWidth,0)&&this.chartHeight>=sd(h.minHeight,0)}).call(this)&&u.push(l._id)}function s(l,u){let h=this.options.responsive,f=this.currentResponsive,g=[],x;!u&&h&&h.rules&&h.rules.forEach(M=>{M._id===void 0&&(M._id=af()),this.matchResponsiveRule(M,g)},this);let C=Ay(...g.map(M=>Yg((h||{}).rules||[],N=>N._id===M)).map(M=>M&&M.chartOptions));C.isResponsiveOptions=!0,g=g.toString()||void 0;let P=f&&f.ruleIds;g===P||(f&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(f.undoOptions,l,!0),this.updatingResponsive=!1),g?((x=of(C,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:g,mergedOptions:C,undoOptions:x},this.updatingResponsive||this.update(C,l,!0)):this.currentResponsive=void 0)}w.compose=function(l){let u=l.prototype;return u.matchResponsiveRule||Xg(u,{matchResponsiveRule:i,setResponsive:s}),l}})(ht||(ht={}));let Ry=ht;at.AST=pi,at.Axis=Oi,at.Chart=El,at.Color=ei,at.DataLabel=zo,at.DataTableCore=ae,at.Fx=wr,at.HTMLElement=Na,at.Legend=vg,at.LegendSymbol=Te,at.OverlappingDataLabels=at.OverlappingDataLabels||Gg,at.PlotLineOrBand=ca,at.Point=vi,at.Pointer=Pt,at.RendererRegistry=is,at.Series=Jr,at.SeriesRegistry=Ze,at.StackItem=Hp,at.SVGElement=ss,at.SVGRenderer=hl,at.Templating=Ir,at.Tick=Kr,at.Time=In,at.Tooltip=T,at.animate=hn.animate,at.animObject=hn.animObject,at.chart=El.chart,at.color=ei.parse,at.dateFormat=Ir.dateFormat,at.defaultOptions=ai.defaultOptions,at.distribute=Nr.distribute,at.format=Ir.format,at.getDeferredAnimation=hn.getDeferredAnimation,at.getOptions=ai.getOptions,at.numberFormat=Ir.numberFormat,at.seriesType=Ze.seriesType,at.setAnimation=hn.setAnimation,at.setOptions=ai.setOptions,at.stop=hn.stop,at.time=ai.defaultTime,at.timers=wr.timers,{compose:function(w,i,s){let l=w.types.pie;if(!i.symbolCustomAttribs.includes("borderRadius")){let u=s.prototype.symbols;Xd(w,"afterColumnTranslate",Wg,{order:9}),Xd(l,"afterTranslate",Vg),i.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),ya=u.arc,rd=u.roundedRect,u.arc=Ty,u.roundedRect=Ey}},optionsToObject:Gh}.compose(at.Series,at.SVGElement,at.SVGRenderer),uu.compose(at.Series.types.column),zo.compose(at.Series),Fs.compose(at.Axis),Na.compose(at.SVGRenderer),vg.compose(at.Chart),xl.compose(at.Axis),Gg.compose(at.Chart),$g.compose(at.Series.types.pie),ca.compose(at.Chart,at.Axis),Pt.compose(at.Chart),Ry.compose(at.Chart),Yu.compose(at.Axis,at.Chart,at.Series),Gp.compose(at.Axis,at.Chart,at.Series),T.compose(at.Pointer),me.extend(at,me);let Oy=at;return wt.default})())}(km)),km.exports}var FS=MD();const GS=up(FS),TD=s1({__proto__:null,default:GS},[FS]);var Mm={exports:{}},ED=Mm.exports,F0;function AD(){return F0||(F0=1,function(t,r){(function(a,c){t.exports=c(a._Highcharts,a._Highcharts.Templating,a._Highcharts.AST,a._Highcharts.Legend,a._Highcharts.Axis,a._Highcharts.Color,a._Highcharts.SeriesRegistry,a._Highcharts.RendererRegistry,a._Highcharts.SVGRenderer,a._Highcharts.Point,a._Highcharts.Series)})(typeof window>"u"?ED:window,(a,c,p,m,S,k,O,R,j,$,I)=>(()=>{let F;var z,_,J,it,st={660:B=>{B.exports=p},532:B=>{B.exports=S},620:B=>{B.exports=k},632:B=>{B.exports=m},260:B=>{B.exports=$},608:B=>{B.exports=R},540:B=>{B.exports=j},820:B=>{B.exports=I},512:B=>{B.exports=O},984:B=>{B.exports=c},944:B=>{B.exports=a}},ct={};function ht(B){var y=ct[B];if(y!==void 0)return y.exports;var T=ct[B]={exports:{}};return st[B](T,T.exports,ht),T.exports}ht.n=B=>{var y=B&&B.__esModule?()=>B.default:()=>B;return ht.d(y,{a:y}),y},ht.d=(B,y)=>{for(var T in y)ht.o(y,T)&&!ht.o(B,T)&&Object.defineProperty(B,T,{enumerable:!0,get:y[T]})},ht.o=(B,y)=>Object.prototype.hasOwnProperty.call(B,y);var lt={};ht.d(lt,{default:()=>da});var wt=ht(944),at=ht.n(wt);let{doc:_t,win:Et}=at(),{css:ot}=at(),It=Et.EventTarget&&new Et.EventTarget||"none";function se(B){if(typeof Et.MouseEvent=="function")return new Et.MouseEvent(B.type,B);if(_t.createEvent){let y=_t.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(B.type,B.bubbles,B.cancelable,B.view||Et,B.detail,B.screenX,B.screenY,B.clientX,B.clientY,B.ctrlKey,B.altKey,B.shiftKey,B.metaKey,B.button,B.relatedTarget),y}return re(B.type)}function re(B,y,T){let D=y||{x:0,y:0};if(typeof Et.MouseEvent=="function")return new Et.MouseEvent(B,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:T||It,view:Et,detail:B==="click"?1:0,screenX:D.x,screenY:D.y,clientX:D.x,clientY:D.y});if(_t.createEvent){let G=_t.createEvent("MouseEvent");if(G.initMouseEvent)return G.initMouseEvent(B,!0,!0,Et,B==="click"?1:0,D.x,D.y,D.x,D.y,!1,!1,!1,!1,0,null),G}return{type:B}}let ie={addClass:function(B,y){B.classList?B.classList.add(y):0>B.className.indexOf(y)&&(B.className+=" "+y)},cloneMouseEvent:se,cloneTouchEvent:function(B){let y=D=>{let G=[];for(let nt=0;nt<D.length;++nt){let K=D.item(nt);K&&G.push(K)}return G};if(typeof Et.TouchEvent=="function"){let D=new Et.TouchEvent(B.type,{touches:y(B.touches),targetTouches:y(B.targetTouches),changedTouches:y(B.changedTouches),ctrlKey:B.ctrlKey,shiftKey:B.shiftKey,altKey:B.altKey,metaKey:B.metaKey,bubbles:B.bubbles,cancelable:B.cancelable,composed:B.composed,detail:B.detail,view:B.view});return B.defaultPrevented&&D.preventDefault(),D}let T=se(B);return T.touches=B.touches,T.changedTouches=B.changedTouches,T.targetTouches=B.targetTouches,T},escapeStringForHTML:function(B){return B.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(B){return _t.getElementById(B)},getFakeMouseEvent:re,getHeadingTagNameForElement:function(B){let y=nt=>"h"+Math.min(6,parseInt(nt.slice(1),10)+1),T=nt=>/^H[1-6]$/i.test(nt),D=nt=>{let K=nt;for(;K=K.previousSibling;){let gt=K.tagName||"";if(T(gt))return gt}return""},G=nt=>{let K=D(nt);if(K)return y(K);let gt=nt.parentElement;if(!gt)return"h6";let Mt=gt.tagName;return T(Mt)?y(Mt):G(gt)};return G(B)},removeChildNodes:function(B){for(;B.lastChild;)B.removeChild(B.lastChild)},removeClass:function(B,y){B.classList?B.classList.remove(y):B.className=B.className.replace(RegExp(y,"g"),"")},removeElement:function(B){B&&B.parentNode&&B.parentNode.removeChild(B)},reverseChildNodes:function(B){let y=B.childNodes.length;for(;y--;)B.appendChild(B.childNodes[y])},simulatedEventTarget:It,stripHTMLTagsFromString:function(B,y=!1){return typeof B=="string"?y?B.replace(/<\/?[^>]+(>|$)/g,""):B.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):B},visuallyHideElement:function(B){ot(B,{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 Kt=ht(984),zt=ht.n(Kt);let{format:ne}=zt(),{getNestedProperty:te,pick:Dt}=at();(function(B){function y(D,G,nt){let K=(Jt,Wt)=>{let Xt=Jt.slice(Wt||0),Vt=Xt.indexOf("{"),de=Xt.indexOf("}");if(Vt>-1&&de>Vt)return{statement:Xt.substring(Vt+1,de),begin:Wt+Vt+1,end:Wt+de}},gt=[],Mt,At,Bt=0;do Mt=K(D,Bt),(At=D.substring(Bt,Mt&&Mt.begin-1)).length&>.push({value:At,type:"constant"}),Mt&>.push({value:Mt.statement,type:"statement"}),Bt=Mt?Mt.end+1:Bt+1;while(Mt);return gt.forEach(Jt=>{Jt.type==="statement"&&(Jt.value=function(Wt,Xt){let Vt,de,Fe=Wt.indexOf("#each("),ni=Wt.indexOf("#plural("),ri=Wt.indexOf("["),xi=Wt.indexOf("]");if(Fe>-1){let Ve=Wt.slice(Fe).indexOf(")")+Fe,vi=Wt.substring(0,Fe),ze=Wt.substring(Ve+1),wn=Wt.substring(Fe+6,Ve).split(","),q=Number(wn[1]),b;if(de="",Vt=te(wn[0],Xt)){b=(q=isNaN(q)?Vt.length:q)<0?Vt.length+q:Math.min(q,Vt.length);for(let A=0;A<b;++A)de+=vi+Vt[A]+ze}return de.length?de:""}if(ni>-1){var Ge;let Ve=Wt.slice(ni).indexOf(")")+ni,vi=Wt.substring(ni+8,Ve).split(",");switch(Number(te(vi[0],Xt))){case 0:de=Dt(vi[4],vi[1]);break;case 1:de=Dt(vi[2],vi[1]);break;case 2:de=Dt(vi[3],vi[1]);break;default:de=vi[1]}return de?(Ge=de).trim&&Ge.trim()||Ge.replace(/^\s+|\s+$/g,""):""}if(ri>-1){let Ve,vi=Wt.substring(0,ri),ze=Number(Wt.substring(ri+1,xi));return Vt=te(vi,Xt),!isNaN(ze)&&Vt&&(ze<0?(Ve=Vt[Vt.length+ze])===void 0&&(Ve=Vt[0]):(Ve=Vt[ze])===void 0&&(Ve=Vt[Vt.length-1])),Ve!==void 0?Ve:""}return"{"+Wt+"}"}(Jt.value,G))}),ne(gt.reduce((Jt,Wt)=>Jt+Wt.value,""),G,nt)}function T(D,G){let nt=D.split("."),K=this.options.lang,gt=0;for(;gt<nt.length;++gt)K=K&&K[nt[gt]];return typeof K=="string"?y(K,G,this):""}B.compose=function(D){let G=D.prototype;G.langFormat||(G.langFormat=T)},B.i18nFormat=y})(z||(z={}));let St=z,{doc:jt}=at(),{stripHTMLTagsFromString:Se}=ie,{defined:ke,find:ge,fireEvent:Pe}=at();function we(B){if(B.points&&B.points.length){let y=ge(B.points,T=>!!T.graphic);return y&&y.graphic&&y.graphic.element}}function Ue(B){let y=we(B);return y&&y.parentNode||B.graph&&B.graph.element||B.group&&B.group.element}let Ae={fireEventOnWrappedOrUnwrappedElement:function B(y,T){let D=T.type,G=y.hcEvents;jt.createEvent&&(y.dispatchEvent||y.fireEvent)?y.dispatchEvent?y.dispatchEvent(T):y.fireEvent(D,T):G&&G[D]?Pe(y,D,T):y.element&&B(y.element,T)},getChartTitle:function(B){return Se(B.options.title.text||B.langFormat("accessibility.defaultChartTitle",{chart:B}),B.renderer.forExport)},getAxisDescription:function(B){var y,T;return B&&(((y=B.options.accessibility)==null?void 0:y.description)||((T=B.axisTitle)==null?void 0:T.textStr)||B.options.id||B.categories&&"categories"||B.dateTime&&"Time"||"values")},getAxisRangeDescription:function(B){let y=B.options||{};return y.accessibility&&y.accessibility.rangeDescription!==void 0?y.accessibility.rangeDescription:B.categories?function(T){let D=T.chart;return T.dataMax&&T.dataMin?D.langFormat("accessibility.axis.rangeCategories",{chart:D,axis:T,numCategories:T.dataMax-T.dataMin+1}):""}(B):B.dateTime&&(B.min===0||B.dataMin===0)?function(T){let D=T.chart,G={},nt=T.dataMin||T.min||0,K=T.dataMax||T.max||0,gt="Seconds";G.Seconds=(K-nt)/1e3,G.Minutes=G.Seconds/60,G.Hours=G.Minutes/60,G.Days=G.Hours/24,["Minutes","Hours","Days"].forEach(function(At){G[At]>2&&(gt=At)});let Mt=G[gt].toFixed(gt!=="Seconds"&>!=="Minutes"?1:0);return D.langFormat("accessibility.axis.timeRange"+gt,{chart:D,axis:T,range:Mt.replace(".0","")})}(B):function(T){let D=T.chart,G=D.options,nt=G&&G.accessibility&&G.accessibility.screenReaderSection.axisRangeDateFormat||"",K={min:T.dataMin||T.min||0,max:T.dataMax||T.max||0},gt=function(Mt){return T.dateTime?D.time.dateFormat(nt,K[Mt]):K[Mt].toString()};return D.langFormat("accessibility.axis.rangeFromTo",{chart:D,axis:T,rangeFrom:gt("min"),rangeTo:gt("max")})}(B)},getPointFromXY:function(B,y,T){let D=B.length,G;for(;D--;)if(G=ge(B[D].points||[],function(nt){return nt.x===y&&nt.y===T}))return G},getSeriesFirstPointElement:we,getSeriesFromName:function(B,y){return y?(B.series||[]).filter(function(T){return T.name===y}):B.series},getSeriesA11yElement:Ue,unhideChartElementFromAT:function B(y,T){T.setAttribute("aria-hidden",!1),T!==y.renderTo&&T.parentNode&&T.parentNode!==jt.body&&(Array.prototype.forEach.call(T.parentNode.childNodes,function(D){D.hasAttribute("aria-hidden")||D.setAttribute("aria-hidden",!0)}),B(y,T.parentNode))},hideSeriesFromAT:function(B){let y=Ue(B);y&&y.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(B){let y=B.series.xAxis,T=B.series.yAxis,D=y&&y.scrollbar?y:T,G=D&&D.scrollbar;if(G&&ke(G.to)&&ke(G.from)){let nt=G.to-G.from,K=function(gt,Mt){if(!ke(gt.dataMin)||!ke(gt.dataMax))return 0;let At=gt.toPixels(gt.dataMin),Bt=gt.toPixels(gt.dataMax),Jt=gt.coll==="xAxis"?"x":"y";return(gt.toPixels(Mt[Jt]||0)-At)/(Bt-At)}(D,B);G.updatePosition(K-nt/2,K+nt/2),Pe(G,"changed",{from:G.from,to:G.to,trigger:"scrollbar",DOMEvent:null})}}},{doc:Ke}=at(),{removeElement:Be}=ie,_e=class{constructor(){this.elements=[]}createElement(){let B=Ke.createElement.apply(Ke,arguments);return this.elements.push(B),B}removeElement(B){Be(B),this.elements.splice(this.elements.indexOf(B),1)}destroyCreatedElements(){this.elements.forEach(function(B){Be(B)}),this.elements=[]}},{addEvent:me}=at(),Ei=class{constructor(){this.eventRemovers=[]}addEvent(){let B=me.apply(at(),arguments);return this.eventRemovers.push({element:arguments[0],remover:B}),B}removeEvent(B){let y=this.eventRemovers.map(T=>T.remover).indexOf(B);this.eventRemovers[y].remover(),this.eventRemovers.splice(y,1)}removeAddedEvents(){this.eventRemovers.map(B=>B.remover).forEach(B=>B()),this.eventRemovers=[]}},{fireEventOnWrappedOrUnwrappedElement:di}=Ae,{getFakeMouseEvent:Ai}=ie,Di=class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(B,y){this.chart=B,this.eventProvider=new Ei,this.domElementProvider=new _e,this.proxyProvider=y,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(B,y,T,D){return this.eventProvider.addEvent(B,y,T,D)}createElement(B,y){return this.domElementProvider.createElement(B,y)}fakeClickEvent(B){di(B,Ai("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}},{find:Ni}=at(),bi=class{constructor(B,y){this.chart=B,this.keyCodeMap=y.keyCodeMap||[],this.validate=y.validate,this.init=y.init,this.terminate=y.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(B){let y=B.which||B.keyCode,T=this.response.noHandler,D=Ni(this.keyCodeMap,function(G){return G[0].indexOf(y)>-1});return D?T=D[1].call(this,y,B):y===9&&(T=this.response[B.shiftKey?"prev":"next"]),T}},{unhideChartElementFromAT:bn,getChartTitle:Zi}=Ae,{doc:qi}=at(),{stripHTMLTagsFromString:Ye}=ie,sn=class extends Di{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let B=this.chart,y="highcharts-title-"+B.index,T=Ye(B.langFormat("accessibility.svgContainerTitle",{chartTitle:Zi(B)}));if(T.length){let D=this.svgTitleElement=this.svgTitleElement||qi.createElementNS("http://www.w3.org/2000/svg","title");D.textContent=T,D.id=y,B.renderTo.insertBefore(D,B.renderTo.firstChild)}}setSVGContainerLabel(){let B=this.chart,y=B.langFormat("accessibility.svgContainerLabel",{chartTitle:Zi(B)});B.renderer.box&&y.length&&B.renderer.box.setAttribute("aria-label",y)}setGraphicContainerAttrs(){let B=this.chart,y=B.langFormat("accessibility.graphicContainerLabel",{chartTitle:Zi(B)});y.length&&B.container.setAttribute("aria-label",y)}setRenderToAttrs(){let B=this.chart,y=B.options.accessibility.landmarkVerbosity!=="disabled",T=B.langFormat("accessibility.chartContainerLabel",{title:Zi(B),chart:B});T&&(B.renderTo.setAttribute("role",y?"region":"group"),B.renderTo.setAttribute("aria-label",T))}makeCreditsAccessible(){let B=this.chart,y=B.credits;y&&(y.textStr&&y.element.setAttribute("aria-label",B.langFormat("accessibility.credits",{creditsStr:Ye(y.textStr,B.renderer.forExport)})),bn(B,y.element))}getKeyboardNavigation(){let B=this.chart;return new bi(B,{keyCodeMap:[],validate:function(){return!0},init:function(){let y=B.accessibility;y&&y.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}},{addEvent:Vi,pick:Ri}=at();(function(B){let y=["x","y","transform","width","height","r","d","stroke-width"];function T(){let K=this.focusElement,gt=this.options.accessibility.keyboardNavigation.focusBorder;K&&(K.removeFocusBorder(),gt.enabled&&K.addFocusBorder(gt.margin,{stroke:gt.style.color,strokeWidth:gt.style.lineWidth,r:gt.style.borderRadius}))}function D(K,gt){let Mt=this.options.accessibility.keyboardNavigation.focusBorder,At=gt||K.element;At&&At.focus&&(At.hcEvents&&At.hcEvents.focusin||Vi(At,"focusin",function(){}),At.focus(),Mt.hideBrowserFocusOutline&&(At.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=K,this.renderFocusBorder()}function G(K,gt){this.focusBorder&&this.removeFocusBorder();let Mt=this.getBBox(),At=Ri(K,3),Bt=this.parentGroup,Jt=this.scaleX||Bt&&Bt.scaleX,Wt=this.scaleY||Bt&&Bt.scaleY,Xt=(Jt?!Wt:Wt)?Math.abs(Jt||Wt||1):(Math.abs(Jt||1)+Math.abs(Wt||1))/2,Vt=this.renderer.fontMetrics(this).h;Mt.x+=this.translateX?this.translateX:0,Mt.y+=this.translateY?this.translateY:0;let de=Mt.x-At,Fe=Mt.y-At,ni=Mt.width+2*At,ri=Mt.height+2*At,xi=!!this.text;if(this.element.nodeName==="text"||xi){let Ge,Ve,vi=!!this.rotation,ze=xi?{x:vi?1:0,y:0}:(Ge=0,Ve=0,this.attr("text-anchor")==="middle"?Ge=Ve=.5:this.rotation?Ge=.25:Ve=.75,{x:Ge,y:Ve}),wn=+this.attr("x"),q=+this.attr("y");if(isNaN(wn)||(de=wn-Mt.width*ze.x-At),isNaN(q)||(Fe=q-(this.attr("text-anchor")==="start"?Vt:Mt.height)*ze.y-At),xi&&vi){let b=ni;ni=ri,ri=b,isNaN(wn)||(de=wn-Mt.height*ze.x-At),isNaN(q)||(Fe=q-Mt.width*ze.y-At)}}this.focusBorder=this.renderer.rect(de,Fe,ni,ri,parseInt((gt&>.r||0).toString(),10)/Xt).addClass("highcharts-focus-border").attr({zIndex:99}).add(Bt),this.renderer.styledMode||this.focusBorder.attr({stroke:gt&>.stroke,"stroke-width":(gt&>.strokeWidth||0)/Xt}),function(Ge,...Ve){Ge.focusBorderUpdateHooks||(Ge.focusBorderUpdateHooks={},y.forEach(vi=>{let ze=vi+"Setter",wn=Ge[ze]||Ge._defaultSetter;Ge.focusBorderUpdateHooks[ze]=wn,Ge[ze]=function(){let q=wn.apply(Ge,arguments);return Ge.addFocusBorder.apply(Ge,Ve),q}}))}(this,K,gt),function(Ge){if(Ge.focusBorderDestroyHook)return;let Ve=Ge.destroy;Ge.destroy=function(){return Ge.focusBorder&&Ge.focusBorder.destroy&&Ge.focusBorder.destroy(),Ve.apply(Ge,arguments)},Ge.focusBorderDestroyHook=Ve}(this)}function nt(){var K;K=this,K.focusBorderUpdateHooks&&(Object.keys(K.focusBorderUpdateHooks).forEach(gt=>{let Mt=K.focusBorderUpdateHooks[gt];Mt===K._defaultSetter?delete K[gt]:K[gt]=Mt}),delete K.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}B.compose=function(K,gt){let Mt=K.prototype,At=gt.prototype;Mt.renderFocusBorder||(Mt.renderFocusBorder=T,Mt.setFocusToElement=D),At.addFocusBorder||(At.addFocusBorder=G,At.removeFocusBorder=nt)}})(_||(_={}));let lr=_;var tn=ht(660),Xi=ht.n(tn);let{doc:on}=at(),{addClass:In,visuallyHideElement:Ci}=ie,{attr:dn}=at(),cr=class{constructor(B,y){this.chart=B,this.domElementProvider=new _e,this.announceRegion=this.addAnnounceRegion(y)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(B){Xi().setElementHTML(this.announceRegion,B),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=Xi().emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(B){let y=this.chart.announcerContainer||this.createAnnouncerContainer(),T=this.domElementProvider.createElement("div");return dn(T,{"aria-hidden":!1,"aria-live":B,"aria-atomic":!0}),this.chart.styledMode?In(T,"highcharts-visually-hidden"):Ci(T),y.appendChild(T),T}createAnnouncerContainer(){let B=this.chart,y=on.createElement("div");return dn(y,{"aria-hidden":!1,class:"highcharts-announcer-container"}),y.style.position="relative",B.renderTo.insertBefore(y,B.renderTo.firstChild),B.announcerContainer=y,y}},{escapeStringForHTML:gn,stripHTMLTagsFromString:ti}=ie;function ai(B){return(B.annotations||[]).reduce((y,T)=>(T.options&&T.options.visible!==!1&&(y=y.concat(T.labels)),y),[])}function ki(B){return B.options&&B.options.accessibility&&B.options.accessibility.description||B.graphic&&B.graphic.text&&B.graphic.text.textStr||""}function _r(B){let y=B.options&&B.options.accessibility&&B.options.accessibility.description;if(y)return y;let T=B.chart,D=ki(B),G=B.points,nt=Bt=>Bt.graphic&&Bt.graphic.element&&Bt.graphic.element.getAttribute("aria-label")||"",K=G.filter(Bt=>!!Bt.graphic).map(Bt=>{let Jt=Bt.accessibility&&Bt.accessibility.valueDescription||nt(Bt),Wt=Bt&&Bt.series.name||"";return(Wt?Wt+", ":"")+"data point "+Jt}).filter(Bt=>!!Bt),gt=K.length,Mt=gt>1?"MultiplePoints":gt?"SinglePoint":"NoPoints",At={annotationText:D,annotation:B,numPoints:gt,annotationPoint:K[0],additionalAnnotationPoints:K.slice(1)};return T.langFormat("accessibility.screenReaderSection.annotations.description"+Mt,At)}function xn(B){return ai(B).map(y=>{let T=gn(ti(_r(y),B.renderer.forExport));return T?`<li>${T}</li>`:""})}let Ho={getAnnotationsInfoHTML:function(B){let y=B.annotations;return y&&y.length?`<ul style="list-style-type: none">${xn(B).join(" ")}</ul>`:""},getPointAnnotationTexts:function(B){let y=ai(B.series.chart).filter(T=>T.points.indexOf(B)>-1);return y.length?y.map(T=>`${ki(T)}`):[]}},{getAnnotationsInfoHTML:ei}=Ho,{getAxisDescription:ts,getAxisRangeDescription:Sr,getChartTitle:es,unhideChartElementFromAT:qs}=Ae,{format:wr}=zt(),{doc:Ks}=at(),{addClass:Uc,getElement:va,getHeadingTagNameForElement:rl,stripHTMLTagsFromString:Fc,visuallyHideElement:Tu}=ie,{attr:Eu,pick:Au,replaceNested:_l}=at();function Gc(B){return _l(B,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}let hn=class extends Di{constructor(){super(...arguments),this.screenReaderSections={}}init(){let B=this.chart,y=this;this.initRegionsDefinitions(),this.addEvent(B,"aftergetTableAST",function(T){y.onDataTableCreated(T)}),this.addEvent(B,"afterViewData",function(T){T.wasHidden&&(y.dataTableDiv=T.element,setTimeout(function(){y.focusDataTable()},300))}),this.addEvent(B,"afterHideData",function(){y.viewDataTableButton&&y.viewDataTableButton.setAttribute("aria-expanded","false")}),B.exporting&&this.addEvent(B,"afterPrint",function(){y.updateAllScreenReaderSections()}),this.announcer=new cr(B,"assertive")}initRegionsDefinitions(){let B=this,y=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(T){let D=y.screenReaderSection.beforeChartFormatter;return D?D(T):B.defaultBeforeChartFormatter(T)},insertIntoDOM:function(T,D){D.renderTo.insertBefore(T,D.renderTo.firstChild)},afterInserted:function(){B.sonifyButtonId!==void 0&&B.initSonifyButton(B.sonifyButtonId),B.dataTableButtonId!==void 0&&B.initDataTableButton(B.dataTableButtonId)}},after:{element:null,buildContent:function(T){let D=y.screenReaderSection.afterChartFormatter;return D?D(T):B.defaultAfterChartFormatter()},insertIntoDOM:function(T,D){D.renderTo.insertBefore(T,D.container.nextSibling)},afterInserted:function(){B.chart.accessibility&&y.keyboardNavigation.enabled&&B.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let B=this;Object.keys(this.screenReaderSections).forEach(function(y){B.updateScreenReaderSection(y)})}getLinkedDescriptionElement(){let B=this.chart.options.accessibility.linkedDescription;if(!B)return;if(typeof B!="string")return B;let y=wr(B,this.chart),T=Ks.querySelectorAll(y);if(T.length===1)return T[0]}setLinkedDescriptionAttrs(){let B=this.linkedDescriptionElement;B&&(B.setAttribute("aria-hidden","true"),Uc(B,"highcharts-linked-description"))}updateScreenReaderSection(B){let y=this.chart,T=this.screenReaderSections[B],D=T.buildContent(y),G=T.element=T.element||this.createElement("div"),nt=G.firstChild||this.createElement("div");D?(this.setScreenReaderSectionAttribs(G,B),Xi().setElementHTML(nt,D),G.appendChild(nt),T.insertIntoDOM(G,y),y.styledMode?Uc(nt,"highcharts-visually-hidden"):Tu(nt),qs(y,nt),T.afterInserted&&T.afterInserted()):(G.parentNode&&G.parentNode.removeChild(G),T.element=null)}setScreenReaderSectionAttribs(B,y){let T=this.chart,D=T.langFormat("accessibility.screenReaderSection."+y+"RegionLabel",{chart:T,chartTitle:es(T)});Eu(B,{id:`highcharts-screen-reader-region-${y}-${T.index}`,"aria-label":D||void 0}),B.style.position="relative",D&&B.setAttribute("role",T.options.accessibility.landmarkVerbosity==="all"?"region":"group")}defaultBeforeChartFormatter(){let B=this.chart,y=B.options.accessibility.screenReaderSection.beforeChartFormat;if(!y)return"";let T=this.getAxesDescription(),D=B.sonify&&B.options.sonification&&B.options.sonification.enabled,G="highcharts-a11y-sonify-data-btn-"+B.index,nt="hc-linkto-highcharts-data-table-"+B.index,K=ei(B),gt=B.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:B}),Mt={headingTagName:rl(B.renderTo),chartTitle:es(B),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:T.xAxis,yAxisDescription:T.yAxis,playAsSoundButton:D?this.getSonifyButtonText(G):"",viewTableButton:B.getCSV?this.getDataTableButtonText(nt):"",annotationsTitle:K?gt:"",annotationsList:K},At=St.i18nFormat(y,Mt,B);return this.dataTableButtonId=nt,this.sonifyButtonId=G,Gc(At)}defaultAfterChartFormatter(){let B=this.chart,y=B.options.accessibility.screenReaderSection.afterChartFormat;if(!y)return"";let T={endOfChartMarker:this.getEndOfChartMarkerText()};return Gc(St.i18nFormat(y,T,B))}getLinkedDescription(){let B=this.linkedDescriptionElement;return Fc(B&&B.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let B=this.chart.options,y=B.caption,T=y&&y.text,D=this.getLinkedDescription();return B.accessibility.description||D||T||""}getTypeDescriptionText(){let B=this.chart;return B.types?B.options.accessibility.typeDescription||function(y,T){let D=T[0],G=y.series&&y.series[0]||{},nt=y.mapView&&y.mapView.geoMap&&y.mapView.geoMap.title,K={numSeries:y.series.length,numPoints:G.points&&G.points.length,chart:y,mapTitle:nt};return D?D==="map"||D==="tiledwebmap"?K.mapTitle?y.langFormat("accessibility.chartTypes.mapTypeDescription",K):y.langFormat("accessibility.chartTypes.unknownMap",K):y.types.length>1?y.langFormat("accessibility.chartTypes.combinationChart",K):function(gt,Mt,At){let Bt=Mt[0],Jt=gt.langFormat("accessibility.seriesTypeDescriptions."+Bt,At),Wt=gt.series&>.series.length<2?"Single":"Multiple";return(gt.langFormat("accessibility.chartTypes."+Bt+Wt,At)||gt.langFormat("accessibility.chartTypes.default"+Wt,At))+(Jt?" "+Jt:"")}(y,T,K):y.langFormat("accessibility.chartTypes.emptyChart",K)}(B,B.types):""}getDataTableButtonText(B){let y=this.chart;return'<button id="'+B+'">'+y.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:y,chartTitle:es(y)})+"</button>"}getSonifyButtonText(B){let y=this.chart;return y.options.sonification&&y.options.sonification.enabled===!1?"":'<button id="'+B+'">'+y.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:y,chartTitle:es(y)})+"</button>"}getSubtitleText(){let B=this.chart.options.subtitle;return Fc(B&&B.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let B=va(`highcharts-end-of-chart-marker-${this.chart.index}`);if(B)return B.outerHTML;let y=this.chart,T=y.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:y});return'<div id="highcharts-end-of-chart-marker-'+y.index+'">'+T+"</div>"}onDataTableCreated(B){let y=this.chart;if(y.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let T=B.tree.attributes||{};T.tabindex=-1,T.summary=y.langFormat("accessibility.table.tableSummary",{chart:y}),B.tree.attributes=T}}focusDataTable(){let B=this.dataTableDiv,y=B&&B.getElementsByTagName("table")[0];y&&y.focus&&y.focus()}initSonifyButton(B){let y=this.sonifyButton=va(B),T=this.chart,D=G=>{y&&(y.setAttribute("aria-hidden","true"),y.setAttribute("aria-label","")),G.preventDefault(),G.stopPropagation();let nt=T.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:T});this.announcer.announce(nt),setTimeout(()=>{y&&(y.removeAttribute("aria-hidden"),y.removeAttribute("aria-label")),T.sonify&&T.sonify()},1e3)};y&&T&&(y.setAttribute("tabindex",-1),y.onclick=function(G){(T.options.accessibility&&T.options.accessibility.screenReaderSection.onPlayAsSoundClick||D).call(this,G,T)})}initDataTableButton(B){let y=this.viewDataTableButton=va(B),T=this.chart,D=B.replace("hc-linkto-","");y&&(Eu(y,{tabindex:-1,"aria-expanded":!!va(D)}),y.onclick=T.options.accessibility.screenReaderSection.onViewDataTableClick||function(){T.viewData()})}getAxesDescription(){let B=this.chart,y=function(gt,Mt){let At=B[gt];return At.length>1||At[0]&&Au(At[0].options.accessibility&&At[0].options.accessibility.enabled,Mt)},T=!!B.types&&0>B.types.indexOf("map")&&0>B.types.indexOf("treemap")&&0>B.types.indexOf("tilemap"),D=!!B.hasCartesianSeries,G=y("xAxis",!B.angular&&D&&T),nt=y("yAxis",D&&T),K={};return G&&(K.xAxis=this.getAxisDescriptionText("xAxis")),nt&&(K.yAxis=this.getAxisDescriptionText("yAxis")),K}getAxisDescriptionText(B){let y=this.chart,T=y[B];return y.langFormat("accessibility.axis."+B+"Description"+(T.length>1?"Plural":"Singular"),{chart:y,names:T.map(function(D){return ts(D)}),ranges:T.map(function(D){return Sr(D)}),numAxes:T.length})}destroy(){this.announcer&&this.announcer.destroy()}},{attr:nr}=at(),{getChartTitle:Cr,unhideChartElementFromAT:Sa}=Ae,{getFakeMouseEvent:wa}=ie;function Wl(B){return B.exportSVGElements&&B.exportSVGElements[0]}class Vl extends Di{init(){let y=this.chart,T=this;this.addEvent(y,"exportMenuShown",function(){T.onMenuShown()}),this.addEvent(y,"exportMenuHidden",function(){T.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let y=this.chart.exportContextMenu;y&&y.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let y=this.chart,T=y.exportContextMenu;T&&(this.addAccessibleContextMenuAttribs(),Sa(y,T)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(y){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",y)}onChartRender(){let y=this.chart,T=y.focusElement,D=y.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&T&&T===y.exportingGroup&&(T.focusBorder?y.setFocusToElement(T,this.exportButtonProxy.innerElement):D&&D.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let y=this.chart,T=this.proxyProvider,D=Wl(y);(function(G){let nt=G.options.exporting,K=Wl(G);return!!(nt&&nt.enabled!==!1&&nt.accessibility&&nt.accessibility.enabled&&K&&K.element)})(y)&&D&&(this.exportButtonProxy=T.addProxyElement("chartMenu",{click:D},"button",{"aria-label":y.langFormat("accessibility.exporting.menuButtonLabel",{chart:y,chartTitle:Cr(y)}),"aria-expanded":!1,title:y.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let y=this.chart,T=y.exportDivElements;if(T&&T.length){T.forEach(G=>{G&&(G.tagName!=="LI"||G.children&&G.children.length?G.setAttribute("aria-hidden","true"):G.setAttribute("tabindex",-1))});let D=T[0]&&T[0].parentNode;D&&nr(D,{"aria-hidden":void 0,"aria-label":y.langFormat("accessibility.exporting.chartMenuLabel",{chart:y}),role:"list"})}}getKeyboardNavigation(){let y=this.keyCodes,T=this.chart,D=this;return new bi(T,{keyCodeMap:[[[y.left,y.up],function(){return D.onKbdPrevious(this)}],[[y.right,y.down],function(){return D.onKbdNext(this)}],[[y.enter,y.space],function(){return D.onKbdClick(this)}]],validate:function(){return!!T.exporting&&T.options.exporting.enabled!==!1&&T.options.exporting.accessibility.enabled!==!1},init:function(){let G=D.exportButtonProxy,nt=D.chart.exportingGroup;G&&nt&&T.setFocusToElement(nt,G.innerElement)},terminate:function(){T.hideExportMenu()}})}onKbdPrevious(y){let T=this.chart,D=T.options.accessibility,G=y.response,nt=T.highlightedExportItemIx||0;for(;nt--;)if(T.highlightExportItem(nt))return G.success;return D.keyboardNavigation.wrapAround?(T.highlightLastExportItem(),G.success):G.prev}onKbdNext(y){let T=this.chart,D=T.options.accessibility,G=y.response;for(let nt=(T.highlightedExportItemIx||0)+1;nt<T.exportDivElements.length;++nt)if(T.highlightExportItem(nt))return G.success;return D.keyboardNavigation.wrapAround?(T.highlightExportItem(0),G.success):G.next}onKbdClick(y){let T=this.chart,D=T.exportDivElements[T.highlightedExportItemIx],G=Wl(T).element;return T.openMenu?this.fakeClickEvent(D):(this.fakeClickEvent(G),T.highlightExportItem(0)),y.response.success}}(function(B){function y(){let nt=Wl(this);if(nt){let K=nt.element;K.onclick&&K.onclick(wa("click"))}}function T(){let nt=this.exportDivElements;nt&&this.exportContextMenu&&this.openMenu&&(nt.forEach(K=>{K&&K.className==="highcharts-menu-item"&&K.onmouseout&&K.onmouseout(wa("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function D(nt){let K=this.exportDivElements&&this.exportDivElements[nt],gt=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(K&&K.tagName==="LI"&&!(K.children&&K.children.length)){let Mt=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return K.focus&&Mt&&K.focus(),gt&>.onmouseout&>.onmouseout(wa("mouseout")),K.onmouseover&&K.onmouseover(wa("mouseover")),this.highlightedExportItemIx=nt,!0}return!1}function G(){if(this.exportDivElements){let nt=this.exportDivElements.length;for(;nt--;)if(this.highlightExportItem(nt))return!0}return!1}B.compose=function(nt){let K=nt.prototype;K.hideExportMenu||(K.hideExportMenu=T,K.highlightExportItem=D,K.highlightLastExportItem=G,K.showExportMenu=y)}})(Vl||(Vl={}));let Xl=Vl,{doc:go,win:sl}=at(),{addEvent:Uo,defined:mo,fireEvent:yo}=at(),{getElement:Zs,simulatedEventTarget:pi}=ie;class bo{constructor(y,T){this.currentModuleIx=NaN,this.modules=[],this.init(y,T)}init(y,T){let D=this.eventProvider=new Ei;this.chart=y,this.components=T,this.modules=[],this.currentModuleIx=0,this.update(),D.addEvent(this.tabindexContainer,"keydown",G=>this.onKeydown(G)),D.addEvent(this.tabindexContainer,"focus",G=>this.onFocus(G)),["mouseup","touchend"].forEach(G=>D.addEvent(go,G,nt=>this.onMouseUp(nt))),["mousedown","touchstart"].forEach(G=>D.addEvent(y.renderTo,G,()=>{this.isClickingChart=!0}))}update(y){let T=this.chart.options.accessibility,D=T&&T.keyboardNavigation,G=this.components;this.updateContainerTabindex(),D&&D.enabled&&y&&y.length?(this.modules=y.reduce(function(nt,K){let gt=G[K].getKeyboardNavigation();return nt.concat(gt)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let y=Zs(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),y?(this.makeElementAnExitAnchor(y),this.exitAnchor=y):this.createExitAnchor()}move(y){let T=this.modules&&this.modules[this.currentModuleIx];T&&T.terminate&&T.terminate(y),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=y;let D=this.modules&&this.modules[this.currentModuleIx];if(D){if(D.validate&&!D.validate())return this.move(y);if(D.init)return D.init(y),!0}return this.currentModuleIx=0,this.exiting=!0,y>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(y){let T=this.chart,D=y.relatedTarget&&T.container.contains(y.relatedTarget),G=T.options.accessibility,nt=G&&G.keyboardNavigation;if(nt&&nt.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!D){let K=this.getFirstValidModuleIx();K!==null&&(this.currentModuleIx=K,this.modules[K].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(y){if(delete this.isClickingChart,!this.keyboardReset&&y.relatedTarget!==pi){let T=this.chart;if(!y.target||!T.container.contains(y.target)){let D=this.modules&&this.modules[this.currentModuleIx||0];D&&D.terminate&&D.terminate(),this.currentModuleIx=0}T.focusElement&&(T.focusElement.removeFocusBorder(),delete T.focusElement),this.keyboardReset=!0}}onKeydown(y){let T,D=y||sl.event,G=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],nt=D.target;if((!nt||nt.nodeName!=="INPUT"||nt.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,G)){let K=G.run(D);K===G.response.success?T=!0:K===G.response.prev?T=this.move(-1):K===G.response.next&&(T=this.move(1)),T&&(D.preventDefault(),D.stopPropagation())}}updateContainerTabindex(){let y,T=this.chart.options.accessibility,D=T&&T.keyboardNavigation,G=!(D&&D.enabled===!1),nt=this.chart,K=nt.container;nt.renderTo.hasAttribute("tabindex")?(K.removeAttribute("tabindex"),y=nt.renderTo):y=K,this.tabindexContainer=y;let gt=y.getAttribute("tabindex");G&&!gt?y.setAttribute("tabindex","0"):G||nt.container.removeAttribute("tabindex")}createExitAnchor(){let y=this.chart,T=this.exitAnchor=go.createElement("div");y.renderTo.appendChild(T),this.makeElementAnExitAnchor(T)}makeElementAnExitAnchor(y){let T=this.tabindexContainer.getAttribute("tabindex")||0;y.setAttribute("class","highcharts-exit-anchor"),y.setAttribute("tabindex",T),y.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(y)}removeExitAnchor(){if(this.exitAnchor){let y=this.eventProvider.eventRemovers.find(T=>T.element===this.exitAnchor);y&&mo(y.remover)&&this.eventProvider.removeEvent(y.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(y){let T=this.chart,D=this;this.eventProvider.addEvent(y,"focus",function(G){let nt=G||sl.event,K=!(nt.relatedTarget&&T.container.contains(nt.relatedTarget)||D.exiting);if(T.focusElement&&delete T.focusElement,K){if(D.tabbingInBackwards=!0,D.tabindexContainer.focus(),delete D.tabbingInBackwards,nt.preventDefault(),D.modules&&D.modules.length){D.currentModuleIx=D.modules.length-1;let gt=D.modules[D.currentModuleIx];gt&>.validate&&!gt.validate()?D.move(-1):gt&>.init(-1)}}else D.exiting=!1})}getFirstValidModuleIx(){let y=this.modules.length;for(let T=0;T<y;++T){let D=this.modules[T];if(!D.validate||D.validate())return T}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}(function(B){function y(){let D=this;yo(this,"dismissPopupContent",{},function(){D.tooltip&&D.tooltip.hide(0),D.hideExportMenu()})}function T(D){(D.which||D.keyCode)===27&&at().charts&&at().charts.forEach(G=>{G&&G.dismissPopupContent&&G.dismissPopupContent()})}B.compose=function(D){Xl.compose(D);let G=D.prototype;return G.dismissPopupContent||(G.dismissPopupContent=y,Uo(go,"keydown",T)),D}})(bo||(bo={}));let Yl=bo;var Fo=ht(632),Qs=ht.n(Fo);let{animObject:ms}=at(),{doc:Md}=at(),{addEvent:Js,fireEvent:ol,isNumber:Ru,pick:ql,syncTimeout:xo}=at(),{getChartTitle:Lr}=Ae,{stripHTMLTagsFromString:Vn,addClass:_c,removeClass:ys}=ie;function Go(B){let y=B.legend&&B.legend.allItems,T=B.options.legend.accessibility||{},D=B.colorAxis&&B.colorAxis.some(G=>!G.dataClasses||!G.dataClasses.length);return!!(y&&y.length&&!D&&T.enabled!==!1)}function Ir(B,y){let T=y.legendItem||{};for(let D of(y.setState(B?"hover":"",!0),["group","label","symbol"])){let G=T[D],nt=G&&G.element||G;nt&&ol(nt,B?"mouseover":"mouseout")}}class is extends Di{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let y=this;this.recreateProxies(),this.addEvent(Qs(),"afterScroll",function(){this.chart===y.chart&&(y.proxyProvider.updateGroupProxyElementPositions("legend"),y.updateLegendItemProxyVisibility(),y.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(y.highlightedLegendItemIx))}),this.addEvent(Qs(),"afterPositionItem",function(T){this.chart===y.chart&&this.chart.renderer&&y.updateProxyPositionForItem(T.item)}),this.addEvent(Qs(),"afterRender",function(){this.chart===y.chart&&this.chart.renderer&&y.recreateProxies()&&xo(()=>y.proxyProvider.updateGroupProxyElementPositions("legend"),ms(ql(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let y,T=this.chart,D=T.legend,G=D.allItems||[],nt=D.currentPage||1,K=D.clipHeight||0;G.forEach(gt=>{if(gt.a11yProxyElement){let Mt=D.pages&&D.pages.length,At=gt.a11yProxyElement.element,Bt=!1;if(y=gt.legendItem||{},Mt){let Jt=y.pageIx||0;Bt=(y.y||0)+(y.label?Math.round(y.label.getBBox().height):0)-D.pages[Jt]>K||Jt!==nt-1}Bt?T.styledMode?_c(At,"highcharts-a11y-invisible"):At.style.visibility="hidden":(ys(At,"highcharts-a11y-invisible"),At.style.visibility="")}})}onChartRender(){Go(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(y){let T=this.chart,D=T.legend,G=(D.currentPage||1)+y,nt=D.pages||[];if(G>0&&G<=nt.length){let K=0;for(let gt of D.allItems)((gt.legendItem||{}).pageIx||0)+1===G&&T.highlightLegendItem(K)&&(this.highlightedLegendItemIx=K),++K}}updateProxyPositionForItem(y){y.a11yProxyElement&&y.a11yProxyElement.refreshPosition()}recreateProxies(){let y=Md.activeElement,T=this.proxyGroup,D=y&&T&&T.contains(y);return this.removeProxies(),!!Go(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),D&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let y=this.chart,T=Vn((y.legend&&y.legend.options.title&&y.legend.options.title.text||"").replace(/<br ?\/?>/g," "),y.renderer.forExport),D=y.langFormat("accessibility.legend.legendLabel"+(T?"":"NoTitle"),{chart:y,legendTitle:T,chartTitle:Lr(y)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":D})}addLegendProxyGroup(){let y=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:y})}proxyLegendItems(){let y,T=this;((this.chart.legend||{}).allItems||[]).forEach(D=>{(y=D.legendItem||{}).label&&y.label.element&&T.proxyLegendItem(D)})}proxyLegendItem(y){let T=y.legendItem||{};if(!T.label||!T.group)return;let D=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:Vn(y.name,this.chart.renderer.forExport),item:y}),G={tabindex:-1,"aria-pressed":y.visible,"aria-label":D},nt=T.group.div?T.label:T.group;y.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:T.label,visual:nt.element},"button",G)}getKeyboardNavigation(){let y=this.keyCodes,T=this,D=this.chart;return new bi(D,{keyCodeMap:[[[y.left,y.right,y.up,y.down],function(G){return T.onKbdArrowKey(this,G)}],[[y.enter,y.space],function(){return T.onKbdClick(this)}],[[y.pageDown,y.pageUp],function(G){let nt=G===y.pageDown?1:-1;return T.highlightAdjacentLegendPage(nt),this.response.success}]],validate:function(){return T.shouldHaveLegendNavigation()},init:function(){D.highlightLegendItem(0),T.highlightedLegendItemIx=0},terminate:function(){T.highlightedLegendItemIx=-1,D.legend.allItems.forEach(G=>Ir(!1,G))}})}onKbdArrowKey(y,T){let{keyCodes:{left:D,up:G},highlightedLegendItemIx:nt,chart:K}=this,gt=K.legend.allItems.length,Mt=K.options.accessibility.keyboardNavigation.wrapAround,At=T===D||T===G?-1:1;return K.highlightLegendItem(nt+At)?this.highlightedLegendItemIx+=At:Mt&>>1&&(this.highlightedLegendItemIx=At>0?0:gt-1,K.highlightLegendItem(this.highlightedLegendItemIx)),y.response.success}onKbdClick(y){let T=this.chart.legend.allItems[this.highlightedLegendItemIx];return T&&T.a11yProxyElement&&T.a11yProxyElement.click(),y.response.success}shouldHaveLegendNavigation(){if(!Go(this.chart))return!1;let y=this.chart,T=(y.options.legend||{}).accessibility||{};return!!(y.legend.display&&T.keyboardNavigation&&T.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}(function(B){function y(D){let G=this.legend.allItems,nt=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,K=G[D],gt=(K==null?void 0:K.legendItem)||{};if(K){Ru(nt)&&G[nt]&&Ir(!1,G[nt]),function(Bt,Jt){let Wt=(Bt.allItems[Jt].legendItem||{}).pageIx,Xt=Bt.currentPage;Wt!==void 0&&Wt+1!==Xt&&Bt.scroll(1+Wt-Xt)}(this.legend,D);let Mt=gt.label,At=K.a11yProxyElement&&K.a11yProxyElement.innerElement;return Mt&&Mt.element&&At&&this.setFocusToElement(Mt,At),Ir(!0,K),!0}return!1}function T(D){let G=this.chart.options.accessibility,nt=D.item;G.enabled&&nt&&nt.a11yProxyElement&&nt.a11yProxyElement.innerElement.setAttribute("aria-pressed",D.visible?"true":"false")}B.compose=function(D,G){let nt=D.prototype;nt.highlightLegendItem||(nt.highlightLegendItem=y,Js(G,"afterColorizeItem",T))}})(is||(is={}));let Ou=is;var Wr=ht(532),Nn=ht.n(Wr);let{isTouchDevice:Ca}=at(),{addEvent:Nr,merge:ns,pick:Kl}=at(),vo=[];function _o(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function ka(){var nt;let B,y,T,D=this.legend,G=this.navigator;if(G){B=D&&D.options,y=G.xAxis,T=G.yAxis;let{scrollbarHeight:K,scrollButtonSize:gt}=G;this.inverted?(G.left=G.opposite?this.chartWidth-K-G.height:this.spacing[3]+K,G.top=this.plotTop+gt):(G.left=Kl(y.left,this.plotLeft+gt),G.top=G.navigatorOptions.top||this.chartHeight-G.height-K-(((nt=this.scrollbar)==null?void 0:nt.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(B&&B.verticalAlign==="bottom"&&B.layout!=="proximate"&&B.enabled&&!B.floating?D.legendHeight+Kl(B.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),y&&T&&(this.inverted?y.options.left=T.options.left=G.left:y.options.top=T.options.top=G.top,y.setAxisSize(),T.setAxisSize())}}function Zl(B){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new F(this),Kl(B.redraw,!0)&&this.redraw(B.animation))}function Ma(){let B=this.options;(B.navigator.enabled||B.scrollbar.enabled)&&(this.scroller=this.navigator=new F(this))}function rs(){let B=this.options,y=B.navigator,T=B.rangeSelector;if((y&&y.enabled||T&&T.enabled)&&(!Ca&&this.zooming.type==="x"||Ca&&this.zooming.pinchType==="x"))return!1}function Ta(B){let y=B.navigator;if(y&&B.xAxis[0]){let T=B.xAxis[0].getExtremes();y.render(T.min,T.max)}}function Vr(B){let y=B.options.navigator||{},T=B.options.scrollbar||{};!this.navigator&&!this.scroller&&(y.enabled||T.enabled)&&(ns(!0,this.options.navigator,y),ns(!0,this.options.scrollbar,T),delete B.options.navigator,delete B.options.scrollbar)}let to={compose:function(B,y){if(at().pushUnique(vo,B)){let T=B.prototype;F=y,T.callbacks.push(Ta),Nr(B,"afterAddSeries",_o),Nr(B,"afterSetChartSize",ka),Nr(B,"afterUpdate",Zl),Nr(B,"beforeRender",Ma),Nr(B,"beforeShowResetZoom",rs),Nr(B,"update",Vr)}}},{isTouchDevice:Ql}=at(),{addEvent:Rs,correctFloat:bs,defined:Xn,isNumber:Jl,pick:So}=at();function Os(){this.navigatorAxis||(this.navigatorAxis=new Vo(this))}function Wo(B){let y,T=this.chart,D=T.options,G=D.navigator,nt=this.navigatorAxis,K=T.zooming.pinchType,gt=D.rangeSelector,Mt=T.zooming.type;if(this.isXAxis&&(G!=null&&G.enabled||gt!=null&>.enabled)){if(Mt==="y"&&B.trigger==="zoom")y=!1;else if((B.trigger==="zoom"&&Mt==="xy"||Ql&&K==="xy")&&this.options.range){let At=nt.previousZoom;Xn(B.min)?nt.previousZoom=[this.min,this.max]:At&&(B.min=At[0],B.max=At[1],nt.previousZoom=void 0)}}y!==void 0&&B.preventDefault()}class Vo{static compose(y){y.keepProps.includes("navigatorAxis")||(y.keepProps.push("navigatorAxis"),Rs(y,"init",Os),Rs(y,"setExtremes",Wo))}constructor(y){this.axis=y}destroy(){this.axis=void 0}toFixedRange(y,T,D,G){let nt=this.axis,K=(nt.pointRange||0)/2,gt=So(D,nt.translate(y,!0,!nt.horiz)),Mt=So(G,nt.translate(T,!0,!nt.horiz));return Xn(D)||(gt=bs(gt+K)),Xn(G)||(Mt=bs(Mt-K)),Jl(gt)&&Jl(Mt)||(gt=Mt=void 0),{min:gt,max:Mt}}}var xs=ht(620),wo=ht.n(xs),tc=ht(512),Ea=ht.n(tc);let{parse:Aa}=wo(),{seriesTypes:eo}=Ea(),zr={height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:Aa("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:eo.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}},{defined:ec,isNumber:Xr,pick:Xo}=at(),ic={rect:function(B,y,T,D,G){return G&&G.r?function(nt,K,gt,Mt,At){let Bt=(At==null?void 0:At.r)||0;return[["M",nt+Bt,K],["L",nt+gt-Bt,K],["A",Bt,Bt,0,0,1,nt+gt,K+Bt],["L",nt+gt,K+Mt-Bt],["A",Bt,Bt,0,0,1,nt+gt-Bt,K+Mt],["L",nt+Bt,K+Mt],["A",Bt,Bt,0,0,1,nt,K+Mt-Bt],["L",nt,K+Bt],["A",Bt,Bt,0,0,1,nt+Bt,K],["Z"]]}(B,y,T,D,G):[["M",B,y],["L",B+T,y],["L",B+T,y+D],["L",B,y+D],["Z"]]}},{relativeLength:Ra}=at(),Fn={"navigator-handle":function(B,y,T,D,G={}){let nt=G.width?G.width/2:T,K=Ra(G.borderRadius||0,Math.min(2*nt,D));return[["M",-1.5,(D=G.height||D)/2-3.5],["L",-1.5,D/2+4.5],["M",.5,D/2-3.5],["L",.5,D/2+4.5],...ic.rect(-nt-1,.5,2*nt+1,D,{r:K})]}};var ss=ht(608),nc=ht.n(ss);let{defined:Oa}=at(),{setOptions:Pa}=at(),{composed:Ba}=at(),{getRendererType:rc}=nc(),{setFixedRange:Yo}={setFixedRange:function(B){let y=this.xAxis[0];Oa(y.dataMax)&&Oa(y.dataMin)&&B?this.fixedRange=Math.min(B,y.dataMax-y.dataMin):this.fixedRange=B}},{addEvent:Pu,extend:kr,pushUnique:al}=at();function Td(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let Ps={compose:function(B,y,T){Vo.compose(y),al(Ba,"Navigator")&&(B.prototype.setFixedRange=Yo,kr(rc().prototype.symbols,Fn),Pu(T,"afterUpdate",Td),Pa({navigator:zr}))}},{composed:Bu}=at(),{addEvent:Da,defined:vs,pick:ll,pushUnique:Wc}=at();(function(B){let y;function T(K){let gt=ll(K.options&&K.options.min,K.min),Mt=ll(K.options&&K.options.max,K.max);return{axisMin:gt,axisMax:Mt,scrollMin:vs(K.dataMin)?Math.min(gt,K.min,K.dataMin,ll(K.threshold,1/0)):gt,scrollMax:vs(K.dataMax)?Math.max(Mt,K.max,K.dataMax,ll(K.threshold,-1/0)):Mt}}function D(){let K=this.scrollbar,gt=K&&!K.options.opposite,Mt=this.horiz?2:gt?3:1;K&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[Mt]+=K.size+(K.options.margin||0))}function G(){let K=this;K.options&&K.options.scrollbar&&K.options.scrollbar.enabled&&(K.options.scrollbar.vertical=!K.horiz,K.options.startOnTick=K.options.endOnTick=!1,K.scrollbar=new y(K.chart.renderer,K.options.scrollbar,K.chart),Da(K.scrollbar,"changed",function(gt){let Mt,At,{axisMin:Bt,axisMax:Jt,scrollMin:Wt,scrollMax:Xt}=T(K),Vt=Xt-Wt;if(vs(Bt)&&vs(Jt))if(K.horiz&&!K.reversed||!K.horiz&&K.reversed?(Mt=Wt+Vt*this.to,At=Wt+Vt*this.from):(Mt=Wt+Vt*(1-this.from),At=Wt+Vt*(1-this.to)),this.shouldUpdateExtremes(gt.DOMType)){let de=gt.DOMType!=="mousemove"&>.DOMType!=="touchmove"&&void 0;K.setExtremes(At,Mt,!0,de,gt)}else this.setRange(this.from,this.to)}))}function nt(){let K,gt,Mt,{scrollMin:At,scrollMax:Bt}=T(this),Jt=this.scrollbar,Wt=this.axisTitleMargin+(this.titleOffset||0),Xt=this.chart.scrollbarsOffsets,Vt=this.options.margin||0;if(Jt&&Xt){if(this.horiz)this.opposite||(Xt[1]+=Wt),Jt.position(this.left,this.top+this.height+2+Xt[1]-(this.opposite?Vt:0),this.width,this.height),this.opposite||(Xt[1]+=Vt),K=1;else{let de;this.opposite&&(Xt[0]+=Wt),de=Jt.options.opposite?this.left+this.width+2+Xt[0]-(this.opposite?0:Vt):this.opposite?0:Vt,Jt.position(de,this.top,this.width,this.height),this.opposite&&(Xt[0]+=Vt),K=0}if(Xt[K]+=Jt.size+(Jt.options.margin||0),isNaN(At)||isNaN(Bt)||!vs(this.min)||!vs(this.max)||this.dataMin===this.dataMax)Jt.setRange(0,1);else if(this.min===this.max){let de=this.pointRange/(this.dataMax+1);gt=de*this.min,Mt=de*(this.max+1),Jt.setRange(gt,Mt)}else gt=(this.min-At)/(Bt-At),Mt=(this.max-At)/(Bt-At),this.horiz&&!this.reversed||!this.horiz&&this.reversed?Jt.setRange(gt,Mt):Jt.setRange(1-Mt,1-gt)}}B.compose=function(K,gt){Wc(Bu,"Axis.Scrollbar")&&(y=gt,Da(K,"afterGetOffset",D),Da(K,"afterInit",G),Da(K,"afterRender",nt))}})(J||(J={}));let Du=J,cl={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:ur}=at(),{addEvent:ul,correctFloat:Mr,crisp:os,defined:Vc,destroyObjectProperties:Ed,fireEvent:qo,merge:sc,pick:Bs,removeEvent:Tr}=at();class Ds{static compose(y){Du.compose(y,Ds)}static swapXY(y,T){return T&&y.forEach(D=>{let G,nt=D.length;for(let K=0;K<nt;K+=2)typeof(G=D[K+1])=="number"&&(D[K+1]=D[K+2],D[K+2]=G)}),y}constructor(y,T,D){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(y,T,D)}addEvents(){let y=this.options.inverted?[1,0]:[0,1],T=this.scrollbarButtons,D=this.scrollbarGroup.element,G=this.track.element,nt=this.mouseDownHandler.bind(this),K=this.mouseMoveHandler.bind(this),gt=this.mouseUpHandler.bind(this),Mt=[[T[y[0]].element,"click",this.buttonToMinClick.bind(this)],[T[y[1]].element,"click",this.buttonToMaxClick.bind(this)],[G,"click",this.trackClick.bind(this)],[D,"mousedown",nt],[D.ownerDocument,"mousemove",K],[D.ownerDocument,"mouseup",gt],[D,"touchstart",nt],[D.ownerDocument,"touchmove",K],[D.ownerDocument,"touchend",gt]];Mt.forEach(function(At){ul.apply(null,At)}),this._events=Mt}buttonToMaxClick(y){let T=(this.to-this.from)*Bs(this.options.step,.2);this.updatePosition(this.from+T,this.to+T),qo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:y})}buttonToMinClick(y){let T=Mr(this.to-this.from)*Bs(this.options.step,.2);this.updatePosition(Mr(this.from-T),Mr(this.to-T)),qo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:y})}cursorToScrollbarPosition(y){let T=this.options,D=T.minWidth>this.calculatedWidth?T.minWidth:0;return{chartX:(y.chartX-this.x-this.xOffset)/(this.barWidth-D),chartY:(y.chartY-this.y-this.yOffset)/(this.barWidth-D)}}destroy(){let y=this,T=y.chart.scroller;y.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(D){y[D]&&y[D].destroy&&(y[D]=y[D].destroy())}),T&&y===T.scrollbar&&(T.scrollbar=null,Ed(T.scrollbarButtons))}drawScrollbarButton(y){let T=this.renderer,D=this.scrollbarButtons,G=this.options,nt=this.size,K=T.g().add(this.group);if(D.push(K),G.buttonsEnabled){let gt=T.rect().addClass("highcharts-scrollbar-button").add(K);this.chart.styledMode||gt.attr({stroke:G.buttonBorderColor,"stroke-width":G.buttonBorderWidth,fill:G.buttonBackgroundColor}),gt.attr(gt.crisp({x:-.5,y:-.5,width:nt,height:nt,r:G.buttonBorderRadius},gt.strokeWidth()));let Mt=T.path(Ds.swapXY([["M",nt/2+(y?-1:1),nt/2-3],["L",nt/2+(y?-1:1),nt/2+3],["L",nt/2+(y?2:-2),nt/2]],G.vertical)).addClass("highcharts-scrollbar-arrow").add(D[y]);this.chart.styledMode||Mt.attr({fill:G.buttonArrowColor})}}init(y,T,D){this.scrollbarButtons=[],this.renderer=y,this.userOptions=T,this.options=sc(cl,ur.scrollbar,T),this.options.margin=Bs(this.options.margin,10),this.chart=D,this.size=Bs(this.options.size,this.options.height),T.enabled&&(this.render(),this.addEvents())}mouseDownHandler(y){var G;let T=((G=this.chart.pointer)==null?void 0:G.normalize(y))||y,D=this.cursorToScrollbarPosition(T);this.chartX=D.chartX,this.chartY=D.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(y){var K;let T,D=((K=this.chart.pointer)==null?void 0:K.normalize(y))||y,G=this.options.vertical?"chartY":"chartX",nt=this.initPositions||[];this.grabbedCenter&&(!y.touches||y.touches[0][G]!==0)&&(T=this.cursorToScrollbarPosition(D)[G]-this[G],this.hasDragged=!0,this.updatePosition(nt[0]+T,nt[1]+T),this.hasDragged&&qo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:y.type,DOMEvent:y}))}mouseUpHandler(y){this.hasDragged&&qo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:y.type,DOMEvent:y}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(y,T,D,G){let{buttonsEnabled:nt,margin:K=0,vertical:gt}=this.options,Mt=this.rendered?"animate":"attr",At=G,Bt=0;this.group.show(),this.x=y,this.y=T+this.trackBorderWidth,this.width=D,this.height=G,this.xOffset=At,this.yOffset=Bt,gt?(this.width=this.yOffset=D=Bt=this.size,this.xOffset=At=0,this.yOffset=Bt=nt?this.size:0,this.barWidth=G-(nt?2*D:0),this.x=y+=K):(this.height=G=this.size,this.xOffset=At=nt?this.size:0,this.barWidth=D-(nt?2*G:0),this.y=this.y+K),this.group[Mt]({translateX:y,translateY:this.y}),this.track[Mt]({width:D,height:G}),this.scrollbarButtons[1][Mt]({translateX:gt?0:D-At,translateY:gt?G-Bt:0})}removeEvents(){this._events.forEach(function(y){Tr.apply(null,y)}),this._events.length=0}render(){let y=this.renderer,T=this.options,D=this.size,G=this.chart.styledMode,nt=y.g("scrollbar").attr({zIndex:T.zIndex}).hide().add();this.group=nt,this.track=y.rect().addClass("highcharts-scrollbar-track").attr({r:T.trackBorderRadius||0,height:D,width:D}).add(nt),G||this.track.attr({fill:T.trackBackgroundColor,stroke:T.trackBorderColor,"stroke-width":T.trackBorderWidth});let K=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-os(0,K),y:-os(0,K)}),this.scrollbarGroup=y.g().add(nt),this.scrollbar=y.rect().addClass("highcharts-scrollbar-thumb").attr({height:D-K,width:D-K,r:T.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=y.path(Ds.swapXY([["M",-3,D/4],["L",-3,2*D/3],["M",0,D/4],["L",0,2*D/3],["M",3,D/4],["L",3,2*D/3]],T.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),G||(this.scrollbar.attr({fill:T.barBackgroundColor,stroke:T.barBorderColor,"stroke-width":T.barBorderWidth}),this.scrollbarRifles.attr({stroke:T.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-os(0,this.scrollbarStrokeWidth),-os(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(y,T){let D,G,nt=this.options,K=nt.vertical,gt=nt.minWidth,Mt=this.barWidth,At=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!Vc(Mt))return;let Bt=Mt*Math.min(T,1);D=Math.ceil(Mt*(y=Math.max(y,0))),this.calculatedWidth=G=Mr(Bt-D),G<gt&&(D=(Mt-gt+G)*y,G=gt);let Jt=Math.floor(D+this.xOffset+this.yOffset),Wt=G/2-.5;this.from=y,this.to=T,K?(this.scrollbarGroup[At]({translateY:Jt}),this.scrollbar[At]({height:G}),this.scrollbarRifles[At]({translateY:Wt}),this.scrollbarTop=Jt,this.scrollbarLeft=0):(this.scrollbarGroup[At]({translateX:Jt}),this.scrollbar[At]({width:G}),this.scrollbarRifles[At]({translateX:Wt}),this.scrollbarLeft=Jt,this.scrollbarTop=0),G<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),nt.showFull===!1&&(y<=0&&T>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(y){return Bs(this.options.liveRedraw,at().svg&&!at().isTouchDevice&&!this.chart.boosted)||y==="mouseup"||y==="touchend"||!Vc(y)}trackClick(y){var K;let T=((K=this.chart.pointer)==null?void 0:K.normalize(y))||y,D=this.to-this.from,G=this.y+this.scrollbarTop,nt=this.x+this.scrollbarLeft;this.options.vertical&&T.chartY>G||!this.options.vertical&&T.chartX>nt?this.updatePosition(this.from+D,this.to+D):this.updatePosition(this.from-D,this.to-D),qo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:y})}update(y){this.destroy(),this.init(this.chart.renderer,sc(!0,this.options,y),this.chart)}updatePosition(y,T){T>1&&(y=Mr(1-Mr(T-y)),T=1),y<0&&(T=Mr(T-y),y=0),this.from=y,this.to=T}}Ds.defaultOptions=cl,ur.scrollbar=sc(!0,Ds.defaultOptions,ur.scrollbar);var Yr=ht(540),Lu=ht.n(Yr);let{defaultOptions:qr}=at(),{isTouchDevice:Xc}=at(),{prototype:{symbols:Ko}}=Lu(),{addEvent:vn,clamp:Zo,correctFloat:Co,defined:Yn,destroyObjectProperties:Ls,erase:Er,extend:Is,find:io,fireEvent:Ns,isArray:oc,isNumber:qn,merge:ko,pick:Rn,removeEvent:as,splat:Iu}=at();function no(B,...y){let T=[].filter.call(y,qn);if(T.length)return Math[B].apply(0,T)}class Mo{static compose(y,T,D){to.compose(y,Mo),Ps.compose(y,T,D)}constructor(y){this.isDirty=!1,this.scrollbarHeight=0,this.init(y)}drawHandle(y,T,D,G){let nt=this.navigatorOptions.handles.height;this.handles[T][G](D?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(y,10)+.5-nt)}:{translateX:Math.round(this.left+parseInt(y,10)),translateY:Math.round(this.top+this.height/2-nt/2-1)})}drawOutline(y,T,D,G){let nt=this.navigatorOptions.maskInside,K=this.outline.strokeWidth(),gt=K/2,Mt=K%2/2,At=this.scrollButtonSize,Bt=this.size,Jt=this.top,Wt=this.height,Xt=Jt-gt,Vt=Jt+Wt,de=this.left,Fe,ni;D?(Fe=Jt+T+Mt,T=Jt+y+Mt,ni=[["M",de+Wt,Jt-At-Mt],["L",de+Wt,Fe],["L",de,Fe],["M",de,T],["L",de+Wt,T],["L",de+Wt,Jt+Bt+At]],nt&&ni.push(["M",de+Wt,Fe-gt],["L",de+Wt,T+gt])):(de-=At,y+=de+At-Mt,T+=de+At-Mt,ni=[["M",de,Xt],["L",y,Xt],["L",y,Vt],["M",T,Vt],["L",T,Xt],["L",de+Bt+2*At,Xt]],nt&&ni.push(["M",y-gt,Xt],["L",T+gt,Xt])),this.outline[G]({d:ni})}drawMasks(y,T,D,G){let nt,K,gt,Mt,At=this.left,Bt=this.top,Jt=this.height;D?(gt=[At,At,At],Mt=[Bt,Bt+y,Bt+T],K=[Jt,Jt,Jt],nt=[y,T-y,this.size-T]):(gt=[At,At+y,At+T],Mt=[Bt,Bt,Bt],K=[y,T-y,this.size-T],nt=[Jt,Jt,Jt]),this.shades.forEach((Wt,Xt)=>{Wt[G]({x:gt[Xt],y:Mt[Xt],width:K[Xt],height:nt[Xt]})})}renderElements(){var At;let y=this,T=y.navigatorOptions,D=T.maskInside,G=y.chart,nt=G.inverted,K=G.renderer,gt={cursor:nt?"ns-resize":"ew-resize"},Mt=y.navigatorGroup??(y.navigatorGroup=K.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!D,D,!D].forEach((Bt,Jt)=>{let Wt=y.shades[Jt]??(y.shades[Jt]=K.rect().addClass("highcharts-navigator-mask"+(Jt===1?"-inside":"-outside")).add(Mt));G.styledMode||(Wt.attr({fill:Bt?T.maskFill:"rgba(0,0,0,0)"}),Jt===1&&Wt.css(gt))}),y.outline||(y.outline=K.path().addClass("highcharts-navigator-outline").add(Mt)),G.styledMode||y.outline.attr({"stroke-width":T.outlineWidth,stroke:T.outlineColor}),(At=T.handles)==null?void 0:At.enabled){let Bt=T.handles,{height:Jt,width:Wt}=Bt;[0,1].forEach(Xt=>{var de;let Vt=Bt.symbols[Xt];if(y.handles[Xt]&&y.handles[Xt].symbolUrl===Vt){if(!y.handles[Xt].isImg&&y.handles[Xt].symbolName!==Vt){let Fe=Ko[Vt].call(Ko,-Wt/2-1,0,Wt,Jt);y.handles[Xt].attr({d:Fe}),y.handles[Xt].symbolName=Vt}}else(de=y.handles[Xt])==null||de.destroy(),y.handles[Xt]=K.symbol(Vt,-Wt/2-1,0,Wt,Jt,Bt),y.handles[Xt].attr({zIndex:7-Xt}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][Xt]).add(Mt),y.addMouseEvents();G.inverted&&y.handles[Xt].attr({rotation:90,rotationOriginX:Math.floor(-Wt/2),rotationOriginY:(Jt+Wt)/2}),G.styledMode||y.handles[Xt].attr({fill:Bt.backgroundColor,stroke:Bt.borderColor,"stroke-width":Bt.lineWidth,width:Bt.width,height:Bt.height,x:-Wt/2-1,y:0}).css(gt)})}}update(y,T=!1){var nt;let D=this.chart,G=D.options.chart.inverted!==((nt=D.scrollbar)==null?void 0:nt.options.vertical);if(ko(!0,D.options.navigator,y),this.navigatorOptions=D.options.navigator||{},this.setOpposite(),Yn(y.enabled)||G)return this.destroy(),this.navigatorEnabled=y.enabled||this.navigatorEnabled,this.init(D);if(this.navigatorEnabled&&(this.isDirty=!0,y.adaptToUpdatedData===!1&&this.baseSeries.forEach(K=>{as(K,"updatedData",this.updatedDataHandler)},this),y.adaptToUpdatedData&&this.baseSeries.forEach(K=>{K.eventsToUnbind.push(vn(K,"updatedData",this.updatedDataHandler))},this),(y.series||y.baseSeries)&&this.setBaseSeries(void 0,!1),y.height||y.xAxis||y.yAxis)){this.height=y.height??this.height;let K=this.getXAxisOffsets();this.xAxis.update({...y.xAxis,offsets:K,[D.inverted?"width":"height"]:this.height,[D.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...y.yAxis,[D.inverted?"width":"height"]:this.height},!1)}T&&D.redraw()}render(y,T,D,G){let nt=this.chart,K=this.xAxis,gt=K.pointRange||0,Mt=K.navigatorAxis.fake?nt.xAxis[0]:K,At=this.navigatorEnabled,Bt=this.rendered,Jt=nt.inverted,Wt=nt.xAxis[0].minRange,Xt=nt.xAxis[0].options.maxRange,Vt=this.scrollButtonSize,de,Fe,ni,ri=this.scrollbarHeight,xi,Ge;if(this.hasDragged&&!Yn(D))return;if(this.isDirty&&this.renderElements(),y=Co(y-gt/2),T=Co(T+gt/2),!qn(y)||!qn(T)){if(!Bt)return;D=0,G=Rn(K.width,Mt.width)}this.left=Rn(K.left,nt.plotLeft+Vt+(Jt?nt.plotWidth:0));let Ve=this.size=xi=Rn(K.len,(Jt?nt.plotHeight:nt.plotWidth)-2*Vt);de=Jt?ri:xi+2*Vt,D=Rn(D,K.toPixels(y,!0)),G=Rn(G,K.toPixels(T,!0)),qn(D)&&Math.abs(D)!==1/0||(D=0,G=de);let vi=K.toValue(D,!0),ze=K.toValue(G,!0),wn=Math.abs(Co(ze-vi));wn<Wt?this.grabbedLeft?D=K.toPixels(ze-Wt-gt,!0):this.grabbedRight&&(G=K.toPixels(vi+Wt+gt,!0)):Yn(Xt)&&Co(wn-gt)>Xt&&(this.grabbedLeft?D=K.toPixels(ze-Xt-gt,!0):this.grabbedRight&&(G=K.toPixels(vi+Xt+gt,!0))),this.zoomedMax=Zo(Math.max(D,G),0,Ve),this.zoomedMin=Zo(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(D,G),0,Ve),this.range=this.zoomedMax-this.zoomedMin,Ve=Math.round(this.zoomedMax);let q=Math.round(this.zoomedMin);At&&(this.navigatorGroup.attr({visibility:"inherit"}),Ge=Bt&&!this.hasDragged?"animate":"attr",this.drawMasks(q,Ve,Jt,Ge),this.drawOutline(q,Ve,Jt,Ge),this.navigatorOptions.handles.enabled&&(this.drawHandle(q,0,Jt,Ge),this.drawHandle(Ve,1,Jt,Ge))),this.scrollbar&&(Jt?(ni=this.top-Vt,Fe=this.left-ri+(At||!Mt.opposite?0:(Mt.titleOffset||0)+Mt.axisTitleMargin),ri=xi+2*Vt):(ni=this.top+(At?this.height:-ri),Fe=this.left-Vt),this.scrollbar.position(Fe,ni,de,ri),this.scrollbar.setRange(this.zoomedMin/(xi||1),this.zoomedMax/(xi||1))),this.rendered=!0,this.isDirty=!1,Ns(this,"afterRender")}addMouseEvents(){let y=this,T=y.chart,D=T.container,G=[],nt,K;y.mouseMoveHandler=nt=function(gt){y.onMouseMove(gt)},y.mouseUpHandler=K=function(gt){y.onMouseUp(gt)},(G=y.getPartsEvents("mousedown")).push(vn(T.renderTo,"mousemove",nt),vn(D.ownerDocument,"mouseup",K),vn(T.renderTo,"touchmove",nt),vn(D.ownerDocument,"touchend",K)),G.concat(y.getPartsEvents("touchstart")),y.eventsToUnbind=G,y.series&&y.series[0]&&G.push(vn(y.series[0].xAxis,"foundExtremes",function(){T.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(y){let T=this,D=[];return["shades","handles"].forEach(function(G){T[G].forEach(function(nt,K){D.push(vn(nt.element,y,function(gt){T[G+"Mousedown"](gt,K)}))})}),D}shadesMousedown(y,T){var Vt;y=((Vt=this.chart.pointer)==null?void 0:Vt.normalize(y))||y;let D=this.chart,G=this.xAxis,nt=this.zoomedMin,K=this.size,gt=this.range,Mt=this.left,At=y.chartX,Bt,Jt,Wt,Xt;D.inverted&&(At=y.chartY,Mt=this.top),T===1?(this.grabbedCenter=At,this.fixedWidth=gt,this.dragOffset=At-nt):(Xt=At-Mt-gt/2,T===0?Xt=Math.max(0,Xt):T===2&&Xt+gt>=K&&(Xt=K-gt,this.reversedExtremes?(Xt-=gt,Jt=this.getUnionExtremes().dataMin):Bt=this.getUnionExtremes().dataMax),Xt!==nt&&(this.fixedWidth=gt,Yn((Wt=G.navigatorAxis.toFixedRange(Xt,Xt+gt,Jt,Bt)).min)&&Ns(this,"setRange",{min:Math.min(Wt.min,Wt.max),max:Math.max(Wt.min,Wt.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(y,T){var K;y=((K=this.chart.pointer)==null?void 0:K.normalize(y))||y;let D=this.chart,G=D.xAxis[0],nt=this.reversedExtremes;T===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=nt?G.min:G.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=nt?G.max:G.min),D.setFixedRange(void 0)}onMouseMove(y){var Bt;let T=this,D=T.chart,G=T.navigatorSize,nt=T.range,K=T.dragOffset,gt=D.inverted,Mt=T.left,At;(!y.touches||y.touches[0].pageX!==0)&&(At=(y=((Bt=D.pointer)==null?void 0:Bt.normalize(y))||y).chartX,gt&&(Mt=T.top,At=y.chartY),T.grabbedLeft?(T.hasDragged=!0,T.render(0,0,At-Mt,T.otherHandlePos)):T.grabbedRight?(T.hasDragged=!0,T.render(0,0,T.otherHandlePos,At-Mt)):T.grabbedCenter&&(T.hasDragged=!0,At<K?At=K:At>G+K-nt&&(At=G+K-nt),T.render(0,0,At-K,At-K+nt)),T.hasDragged&&T.scrollbar&&Rn(T.scrollbar.options.liveRedraw,!Xc&&!this.chart.boosted)&&(y.DOMType=y.type,setTimeout(function(){T.onMouseUp(y)},0)))}onMouseUp(y){let T,D,G,nt,K,gt,Mt=this.chart,At=this.xAxis,Bt=this.scrollbar,Jt=y.DOMEvent||y,Wt=Mt.inverted,Xt=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!Bt||!Bt.hasDragged)||y.trigger==="scrollbar")&&(G=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?nt=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(K=this.fixedExtreme),this.zoomedMax===this.size&&(K=this.reversedExtremes?G.dataMin:G.dataMax),this.zoomedMin===0&&(nt=this.reversedExtremes?G.dataMax:G.dataMin),Yn((gt=At.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,nt,K)).min)&&Ns(this,"setRange",{min:Math.min(gt.min,gt.max),max:Math.max(gt.min,gt.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:Jt}})),y.DOMType!=="mousemove"&&y.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&qn(this.zoomedMin)&&qn(this.zoomedMax)&&(D=Math.round(this.zoomedMin),T=Math.round(this.zoomedMax),this.shades&&this.drawMasks(D,T,Wt,Xt),this.outline&&this.drawOutline(D,T,Wt,Xt),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(D,0,Wt,Xt),this.drawHandle(T,1,Wt,Xt)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(y){y()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let y=this.baseSeries||[];this.navigatorEnabled&&y[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&y.forEach(function(T){as(T,"updatedData",this.updatedDataHandler)},this),y[0].xAxis&&as(y[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(y){var de;let T=y.options,D=T.navigator||{},G=D.enabled,nt=T.scrollbar||{},K=nt.enabled,gt=G&&D.height||0,Mt=K&&nt.height||0,At=nt.buttonsEnabled&&Mt||0;this.handles=[],this.shades=[],this.chart=y,this.setBaseSeries(),this.height=gt,this.scrollbarHeight=Mt,this.scrollButtonSize=At,this.scrollbarEnabled=K,this.navigatorEnabled=G,this.navigatorOptions=D,this.scrollbarOptions=nt,this.setOpposite();let Bt=this,Jt=Bt.baseSeries,Wt=y.xAxis.length,Xt=y.yAxis.length,Vt=Jt&&Jt[0]&&Jt[0].xAxis||y.xAxis[0]||{options:{}};if(y.isDirtyBox=!0,Bt.navigatorEnabled){let Fe=this.getXAxisOffsets();Bt.xAxis=new(Nn())(y,ko({breaks:Vt.options.breaks,ordinal:Vt.options.ordinal,overscroll:Vt.options.overscroll},D.xAxis,{type:"datetime",yAxis:(de=D.yAxis)==null?void 0:de.id,index:Wt,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:Vt.options.ordinal?0:Vt.options.minPadding,maxPadding:Vt.options.ordinal?0:Vt.options.maxPadding,zoomEnabled:!1},y.inverted?{offsets:Fe,width:gt}:{offsets:Fe,height:gt}),"xAxis"),Bt.yAxis=new(Nn())(y,ko(D.yAxis,{alignTicks:!1,offset:0,index:Xt,isInternal:!0,reversed:Rn(D.yAxis&&D.yAxis.reversed,y.yAxis[0]&&y.yAxis[0].reversed,!1),zoomEnabled:!1},y.inverted?{width:gt}:{height:gt}),"yAxis"),Jt||D.series.data?Bt.updateNavigatorSeries(!1):y.series.length===0&&(Bt.unbindRedraw=vn(y,"beforeRedraw",function(){y.series.length>0&&!Bt.series&&(Bt.setBaseSeries(),Bt.unbindRedraw())})),Bt.reversedExtremes=y.inverted&&!Bt.xAxis.reversed||!y.inverted&&Bt.xAxis.reversed,Bt.renderElements(),Bt.addMouseEvents()}else Bt.xAxis={chart:y,navigatorAxis:{fake:!0},translate:function(Fe,ni){let ri=y.xAxis[0],xi=ri.getExtremes(),Ge=ri.len-2*At,Ve=no("min",ri.options.min,xi.dataMin),vi=no("max",ri.options.max,xi.dataMax)-Ve;return ni?Fe*vi/Ge+Ve:Ge*(Fe-Ve)/vi},toPixels:function(Fe){return this.translate(Fe)},toValue:function(Fe){return this.translate(Fe,!0)}},Bt.xAxis.navigatorAxis.axis=Bt.xAxis,Bt.xAxis.navigatorAxis.toFixedRange=Vo.prototype.toFixedRange.bind(Bt.xAxis.navigatorAxis);if(y.options.scrollbar.enabled){let Fe=ko(y.options.scrollbar,{vertical:y.inverted});!qn(Fe.margin)&&Bt.navigatorEnabled&&(Fe.margin=y.inverted?-3:3),y.scrollbar=Bt.scrollbar=new Ds(y.renderer,Fe,y),vn(Bt.scrollbar,"changed",function(ni){let ri=Bt.size,xi=ri*this.to,Ge=ri*this.from;Bt.hasDragged=Bt.scrollbar.hasDragged,Bt.render(0,0,Ge,xi),this.shouldUpdateExtremes(ni.DOMType)&&setTimeout(function(){Bt.onMouseUp(ni)})})}Bt.addBaseSeriesEvents(),Bt.addChartEvents()}setOpposite(){let y=this.navigatorOptions,T=this.navigatorEnabled,D=this.chart;this.opposite=Rn(y.opposite,!!(!T&&D.inverted))}getUnionExtremes(y){let T,D=this.chart.xAxis[0],G=this.chart.time,nt=this.xAxis,K=nt.options,gt=D.options;return y&&D.dataMin===null||(T={dataMin:Rn(G.parse(K==null?void 0:K.min),no("min",G.parse(gt.min),D.dataMin,nt.dataMin,nt.min)),dataMax:Rn(G.parse(K==null?void 0:K.max),no("max",G.parse(gt.max),D.dataMax,nt.dataMax,nt.max))}),T}setBaseSeries(y,T){let D=this.chart,G=this.baseSeries=[];y=y||D.options&&D.options.navigator.baseSeries||(D.series.length?io(D.series,nt=>!nt.options.isInternal).index:0),(D.series||[]).forEach((nt,K)=>{!nt.options.isInternal&&(nt.options.showInNavigator||(K===y||nt.options.id===y)&&nt.options.showInNavigator!==!1)&&G.push(nt)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,T)}updateNavigatorSeries(y,T){var Wt,Xt;let D=this,G=D.chart,nt=D.baseSeries,K={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:(Wt=this.navigatorOptions.xAxis)==null?void 0:Wt.id,yAxis:(Xt=this.navigatorOptions.yAxis)==null?void 0:Xt.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},gt=D.series=(D.series||[]).filter(Vt=>{let de=Vt.baseSeries;return!(0>nt.indexOf(de))||(de&&(as(de,"updatedData",D.updatedDataHandler),delete de.navigatorSeries),Vt.chart&&Vt.destroy(),!1)}),Mt,At,Bt=D.navigatorOptions.series,Jt;nt&&nt.length&&nt.forEach(Vt=>{var ri;let de=Vt.navigatorSeries,Fe=Is({color:Vt.color,visible:Vt.visible},oc(Bt)?qr.navigator.series:Bt);if(de&&D.navigatorOptions.adaptToUpdatedData===!1)return;K.name="Navigator "+nt.length,Jt=(Mt=Vt.options||{}).navigatorOptions||{},Fe.dataLabels=Iu(Fe.dataLabels),(At=ko(Mt,K,Fe,Jt)).pointRange=Rn(Fe.pointRange,Jt.pointRange,qr.plotOptions[At.type||"line"].pointRange);let ni=Jt.data||Fe.data;D.hasNavigatorData=D.hasNavigatorData||!!ni,At.data=ni||((ri=Mt.data)==null?void 0:ri.slice(0)),de&&de.options?de.update(At,T):(Vt.navigatorSeries=G.initSeries(At),G.setSortedData(),Vt.navigatorSeries.baseSeries=Vt,gt.push(Vt.navigatorSeries))}),(Bt.data&&!(nt&&nt.length)||oc(Bt))&&(D.hasNavigatorData=!1,(Bt=Iu(Bt)).forEach((Vt,de)=>{K.name="Navigator "+(gt.length+1),(At=ko(qr.navigator.series,{color:G.series[de]&&!G.series[de].options.isInternal&&G.series[de].color||G.options.colors[de]||G.options.colors[0]},K,Vt)).data=Vt.data,At.data&&(D.hasNavigatorData=!0,gt.push(G.initSeries(At)))})),y&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let y=this,T=y.baseSeries||[];T[0]&&T[0].xAxis&&T[0].eventsToUnbind.push(vn(T[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),T.forEach(D=>{D.eventsToUnbind.push(vn(D,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),D.eventsToUnbind.push(vn(D,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&D.xAxis&&D.eventsToUnbind.push(vn(D,"updatedData",this.updatedDataHandler)),D.eventsToUnbind.push(vn(D,"remove",function(){T&&Er(T,D),this.navigatorSeries&&y.series&&(Er(y.series,this.navigatorSeries),Yn(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(y){return this.baseSeries.reduce(function(T,D){return Math.min(T,D.getColumn("x")[0]??T)},y)}modifyNavigatorAxisExtremes(){let y=this.xAxis;if(y.getExtremes!==void 0){let T=this.getUnionExtremes(!0);T&&(T.dataMin!==y.min||T.dataMax!==y.max)&&(y.min=T.dataMin,y.max=T.dataMax)}}modifyBaseAxisExtremes(){var de;let y,T,D=this.chart.navigator,G=this.getExtremes(),nt=G.min,K=G.max,gt=G.dataMin,Mt=G.dataMax,At=K-nt,Bt=D.stickToMin,Jt=D.stickToMax,Wt=Rn((de=this.ordinal)==null?void 0:de.convertOverscroll(this.options.overscroll),0),Xt=D.series&&D.series[0],Vt=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(Bt&&(y=(T=gt)+At),Jt&&(y=Mt+Wt,Bt||(T=Math.max(gt,y-At,D.getBaseSeriesMin(Xt&&Xt.xData?Xt.xData[0]:-Number.MAX_VALUE)))),Vt&&(Bt||Jt)&&qn(T)&&(this.min=this.userMin=T,this.max=this.userMax=y)),D.stickToMin=D.stickToMax=null}updatedDataHandler(){let y=this.chart.navigator,T=this.navigatorSeries,D=y.reversedExtremes?Math.round(y.zoomedMin)===0:Math.round(y.zoomedMax)>=Math.round(y.size);y.stickToMax=Rn(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,D),y.stickToMin=y.shouldStickToMin(this,y),T&&!y.hasNavigatorData&&(T.options.pointStart=this.getColumn("x")[0],T.setData(this.options.data,!1,null,!1))}shouldStickToMin(y,T){let D=T.getBaseSeriesMin(y.getColumn("x")[0]),G=y.xAxis,nt=G.max,K=G.min,gt=G.options.range;return!!(qn(nt)&&qn(K))&&(gt&&nt-D>0?nt-D<gt:K<=D)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(vn(this.chart,"redraw",function(){let y=this.navigator,T=y&&(y.baseSeries&&y.baseSeries[0]&&y.baseSeries[0].xAxis||this.xAxis[0]);T&&y.render(T.min,T.max)}),vn(this.chart,"getMargins",function(){let y=this.navigator,T=y.opposite?"plotTop":"marginBottom";this.inverted&&(T=y.opposite?"marginRight":"plotLeft"),this[T]=(this[T]||0)+(y.navigatorEnabled||!this.inverted?y.height+y.scrollbarHeight:0)+y.navigatorOptions.margin}),vn(Mo,"setRange",function(y){this.chart.xAxis[0].setExtremes(y.min,y.max,y.redraw,y.animation,y.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(Er(this.chart.xAxis,this.xAxis),Er(this.chart.axes,this.xAxis)),this.yAxis&&(Er(this.chart.yAxis,this.yAxis),Er(this.chart.axes,this.yAxis)),(this.series||[]).forEach(y=>{y.destroy&&y.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(y=>{this[y]&&this[y].destroy&&this[y].destroy(),this[y]=null}),[this.handles].forEach(y=>{Ls(y)}),this.navigatorEnabled=!1}}let{animObject:ac}=at(),{format:dl}=zt(),{clamp:Yc,pick:hl,syncTimeout:qc}=at(),{getFakeMouseEvent:Nu}=ie,{getAxisRangeDescription:Qo,fireEventOnWrappedOrUnwrappedElement:Ad}=Ae,zu=class extends Di{init(){let B=this.chart,y=this;this.announcer=new cr(B,"polite"),this.addEvent(Mo,"afterRender",function(){this.chart===y.chart&&this.chart.renderer&&qc(()=>{y.proxyProvider.updateGroupProxyElementPositions("navigator"),y.updateHandleValues()},ac(hl(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){var D,G,nt;let B=this.chart,y=B.options,T=y.navigator;if(T.enabled&&((D=T.accessibility)!=null&&D.enabled)){let K=y.accessibility.landmarkVerbosity,gt=(G=y.lang.accessibility)==null?void 0:G.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:K==="all"?"region":"group","aria-label":dl(gt,{chart:B},B)});let Mt=(nt=y.lang.accessibility)==null?void 0:nt.navigator.handleLabel;[0,1].forEach(At=>{let Bt=this.getHandleByIx(At);if(Bt){let Jt=this.proxyProvider.addProxyElement("navigator",{click:Bt},"input",{type:"range","aria-label":dl(Mt,{handleIx:At,chart:B},B)});this[At?"maxHandleProxy":"minHandleProxy"]=Jt.innerElement,Jt.innerElement.style.pointerEvents="none",Jt.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(B){let y=this,T=this.chart,D=B?this.maxHandleProxy:this.minHandleProxy,G=this.keyCodes;return new bi(T,{keyCodeMap:[[[G.left,G.right,G.up,G.down],function(nt){if(D){let K=nt===G.left||nt===G.up?-1:1;D.value=""+Yc(parseFloat(D.value)+K,0,100),y.updateNavigator(()=>{let gt=y.getHandleByIx(B);gt&&T.setFocusToElement(gt,D)})}return this.response.success}]],init:()=>{T.setFocusToElement(this.getHandleByIx(B),D)},validate:()=>{var nt;return!!(this.getHandleByIx(B)&&D&&((nt=T.options.navigator.accessibility)!=null&&nt.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 B=this.chart.navigator;if(B&&this.minHandleProxy&&this.maxHandleProxy){let y=B.size;this.minHandleProxy.value=""+Math.round(B.zoomedMin/y*100),this.maxHandleProxy.value=""+Math.round(B.zoomedMax/y*100)}}getHandleByIx(B){let y=this.chart.navigator;return y&&y.handles&&y.handles[B]}updateNavigator(B){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((y=>{var nt;let T=this.chart,{navigator:D,pointer:G}=T;if(D&&G&&this.minHandleProxy&&this.maxHandleProxy){let K=G.getChartPosition(),gt=parseFloat(this.minHandleProxy.value)/100*D.size,Mt=parseFloat(this.maxHandleProxy.value)/100*D.size;[[0,"mousedown",D.zoomedMin],[0,"mousemove",gt],[0,"mouseup",gt],[1,"mousedown",D.zoomedMax],[1,"mousemove",Mt],[1,"mouseup",Mt]].forEach(([Jt,Wt,Xt])=>{var de;let Vt=(de=this.getHandleByIx(Jt))==null?void 0:de.element;Vt&&Ad(Vt,Nu(Wt,{x:K.left+D.left+Xt,y:K.top+D.top},Vt))}),y&&y();let At=(nt=T.options.lang.accessibility)==null?void 0:nt.navigator.changeAnnouncement,Bt=Qo(T.xAxis[0]);this.announcer.announce(dl(At,{axisRangeDescription:Bt,chart:T},T))}}).bind(this,B),20)}},{getPointAnnotationTexts:Rd}=Ho,{getAxisDescription:pl,getSeriesFirstPointElement:Kn,getSeriesA11yElement:La,unhideChartElementFromAT:ju}=Ae,{format:Ia,numberFormat:$u}=zt(),{reverseChildNodes:Na,stripHTMLTagsFromString:zs}=ie,{find:Hu,isNumber:Uu,isString:Jo,pick:ro,defined:To}=at();function ta(B){let y=B.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(y!==!1&&B.points&&B.points.length>=+y)}function fl(B,y){let T=B.series,D=T.chart,G=D.options.accessibility.point||{},nt=T.options.accessibility&&T.options.accessibility.point||{},K=T.tooltipOptions||{},gt=D.options.lang;return Uu(y)?$u(y,nt.valueDecimals||G.valueDecimals||K.valueDecimals||-1,gt.decimalPoint,gt.accessibility.thousandsSep||gt.thousandsSep):y}function Ss(B,y){let T=B[y];return B.chart.langFormat("accessibility.series."+y+"Description",{name:pl(T),series:B})}function js(B){let y=B.series,T=y.chart.series.length>1||y.options.name,D=function(gt){let Mt=gt.series,At=Mt.chart,Bt=Mt.options.accessibility,Jt=Bt&&Bt.point&&Bt.point.valueDescriptionFormat||At.options.accessibility.point.valueDescriptionFormat,Wt=ro(Mt.xAxis&&Mt.xAxis.options.accessibility&&Mt.xAxis.options.accessibility.enabled,!At.angular&&Mt.type!=="flowmap"),Xt=Wt?function(Vt){let de=function(xi){let Ge=xi.series,Ve=Ge.chart,vi=Ge.options.accessibility&&Ge.options.accessibility.point||{},ze=Ve.options.accessibility.point||{},wn=Ge.xAxis&&Ge.xAxis.dateTime;if(wn){let q=wn.getXDateFormat(xi.x||0,Ve.options.tooltip.dateTimeLabelFormats),b=vi.dateFormatter&&vi.dateFormatter(xi)||ze.dateFormatter&&ze.dateFormatter(xi)||vi.dateFormat||ze.dateFormat||q;return Ve.time.dateFormat(b,xi.x||0,void 0)}}(Vt),Fe=(Vt.series.xAxis||{}).categories&&To(Vt.category)&&(""+Vt.category).replace("<br/>"," "),ni=To(Vt.id)&&0>(""+Vt.id).indexOf("highcharts-"),ri="x, "+Vt.x;return Vt.name||de||Fe||(ni?Vt.id:ri)}(gt):"";return Ia(Jt,{point:gt,index:To(gt.index)?gt.index+1:"",xDescription:Xt,value:function(Vt){let de=Vt.series,Fe=de.chart.options.accessibility.point||{},ni=de.chart.options.accessibility&&de.chart.options.accessibility.point||{},ri=de.tooltipOptions||{},xi=ni.valuePrefix||Fe.valuePrefix||ri.valuePrefix||"",Ge=ni.valueSuffix||Fe.valueSuffix||ri.valueSuffix||"",Ve=Vt.value!==void 0?"value":"y",vi=fl(Vt,Vt[Ve]);return Vt.isNull?de.chart.langFormat("accessibility.series.nullPointValue",{point:Vt}):de.pointArrayMap?function(ze,wn,q){let b=wn||"",A=q||"",L=function(H){let Z=fl(ze,ro(ze[H],ze.options[H]));return Z!==void 0?H+": "+b+Z+A:Z};return ze.series.pointArrayMap.reduce(function(H,Z){let X=L(Z);return X?H+(H.length?", ":"")+X:H},"")}(Vt,xi,Ge):xi+vi+Ge}(gt),separator:Wt?", ":""},At)}(B),G=B.options&&B.options.accessibility&&B.options.accessibility.description,nt=T?" "+y.name+".":"",K=function(gt){let Mt=gt.series.chart,At=Rd(gt);return At.length?Mt.langFormat("accessibility.series.pointAnnotationsDescription",{point:gt,annotations:At}):""}(B);return B.accessibility=B.accessibility||{},B.accessibility.valueDescription=D,D+(G?" "+G:"")+nt+(K?" "+K:"")}function ea(B){let y=B.chart,T=y.types||[],D=function(Wt){let Xt=(Wt.options.accessibility||{}).description;return Xt&&Wt.chart.langFormat("accessibility.series.description",{description:Xt,series:Wt})||""}(B),G=function(Wt){return y[Wt]&&y[Wt].length>1&&B[Wt]},nt=B.index+1,K=Ss(B,"xAxis"),gt=Ss(B,"yAxis"),Mt={seriesNumber:nt,series:B,chart:y},At=T.length>1?"Combination":"",Bt=y.langFormat("accessibility.series.summary."+B.type+At,Mt)||y.langFormat("accessibility.series.summary.default"+At,Mt),Jt=(G("yAxis")?" "+gt+".":"")+(G("xAxis")?" "+K+".":"");return Ia(ro(B.options.accessibility&&B.options.accessibility.descriptionFormat,y.options.accessibility.series.descriptionFormat,""),{seriesDescription:Bt,authorDescription:D?" "+D:"",axisDescription:Jt,series:B,chart:y,seriesNumber:nt},void 0)}let gl={defaultPointDescriptionFormatter:js,defaultSeriesDescriptionFormatter:ea,describeSeries:function(B){let y=B.chart,T=Kn(B),D=La(B),G=y.is3d&&y.is3d();D&&(D.lastChild!==T||G||Na(D),function(nt){let K=function(At){let Bt=At.options.accessibility||{};return!ta(At)&&!Bt.exposeAsGroupOnly}(nt),gt=function(At){let Bt=At.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!!(At.points&&(At.points.length<+Bt.pointNavigationEnabledThreshold||Bt.pointNavigationEnabledThreshold===!1))}(nt),Mt=nt.chart.options.accessibility.point.describeNull;(K||gt)&&nt.points.forEach(At=>{let Bt=At.graphic&&At.graphic.element||function(Wt){let Xt=Wt.series,Vt=Xt&&Xt.chart,de=Xt&&Xt.is("sunburst"),Fe=Wt.isNull,ni=Vt&&Vt.options.accessibility.point.describeNull;return Fe&&!de&&ni}(At)&&function(Wt){let Xt=Wt.series,Vt=function(xi){let Ge=xi.index;return xi.series&&xi.series.data&&To(Ge)&&Hu(xi.series.data,function(Ve){return!!(Ve&&Ve.index!==void 0&&Ve.index>Ge&&Ve.graphic&&Ve.graphic.element)})||null}(Wt),de=Vt&&Vt.graphic,Fe=de?de.parentGroup:Xt.graph||Xt.group,ni=Vt?{x:ro(Wt.plotX,Vt.plotX,0),y:ro(Wt.plotY,Vt.plotY,0)}:{x:ro(Wt.plotX,0),y:ro(Wt.plotY,0)},ri=function(xi,Ge){let Ve=xi.series.chart.renderer.rect(Ge.x,Ge.y,1,1);return Ve.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),Ve}(Wt,ni);if(Fe&&Fe.element)return Wt.graphic=ri,Wt.hasMockGraphic=!0,ri.add(Fe),Fe.element.insertBefore(ri.element,de?de.element:null),ri.element}(At),Jt=At.options&&At.options.accessibility&&At.options.accessibility.enabled===!1;if(Bt){if(At.isNull&&!Mt){Bt.setAttribute("aria-hidden",!0);return}Bt.setAttribute("tabindex","-1"),nt.chart.styledMode||(Bt.style.outline="none"),K&&!Jt?function(Wt,Xt){var ri,xi,Ge;let Vt=Wt.series,de=((ri=Vt.options.accessibility)==null?void 0:ri.point)||{},Fe=Vt.chart.options.accessibility.point||{},ni=zs(Jo(de.descriptionFormat)&&Ia(de.descriptionFormat,Wt,Vt.chart)||((xi=de.descriptionFormatter)==null?void 0:xi.call(de,Wt))||Jo(Fe.descriptionFormat)&&Ia(Fe.descriptionFormat,Wt,Vt.chart)||((Ge=Fe.descriptionFormatter)==null?void 0:Ge.call(Fe,Wt))||js(Wt),Vt.chart.renderer.forExport);Xt.setAttribute("role","img"),Xt.setAttribute("aria-label",ni)}(At,Bt):Bt.setAttribute("aria-hidden",!0)}})}(B),ju(y,D),function(nt){let K=nt.chart,gt=K.options.chart,Mt=gt.options3d&>.options3d.enabled,At=K.series.length>1,Bt=K.options.accessibility.series.describeSingleSeries,Jt=(nt.options.accessibility||{}).exposeAsGroupOnly;return!(Mt&&At)&&(At||Bt||Jt||ta(nt))}(B)?function(nt,K){let gt=nt.options.accessibility||{},Mt=nt.chart.options.accessibility,At=Mt.landmarkVerbosity;gt.exposeAsGroupOnly?K.setAttribute("role","img"):At==="all"?K.setAttribute("role","region"):K.setAttribute("role","group"),K.setAttribute("tabindex","-1"),nt.chart.styledMode||(K.style.outline="none"),K.setAttribute("aria-label",zs(Mt.series.descriptionFormatter&&Mt.series.descriptionFormatter(nt)||ea(nt),nt.chart.renderer.forExport))}(B,D):D.removeAttribute("aria-label"))}},{composed:so}=at(),{addEvent:ia,defined:na,pushUnique:ra}=at(),{getChartTitle:Od}=Ae,{defaultPointDescriptionFormatter:Pd,defaultSeriesDescriptionFormatter:ls}=gl;function Kr(B){return!!B.options.accessibility.announceNewData.enabled}class za{constructor(y){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=y}init(){let y=this.chart,T=y.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new Ei,this.announcer=new cr(y,T),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let y=this,T=this.chart,D=this.eventProvider;D.addEvent(T,"afterApplyDrilldown",function(){y.lastAnnouncementTime=0}),D.addEvent(T,"afterAddSeries",function(G){y.onSeriesAdded(G.series)}),D.addEvent(T,"redraw",function(){y.announceDirtyData()})}onSeriesAdded(y){Kr(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[y.name+y.index]=y,this.dirty.newSeries=na(this.dirty.newSeries)?void 0:y)}announceDirtyData(){let y=this.chart,T=this;if(y.options.accessibility.announceNewData&&this.dirty.hasDirty){let D=this.dirty.newPoint;D&&(D=function(G){let nt=G.series.data.filter(K=>G.x===K.x&&G.y===K.y);return nt.length===1?nt[0]:G}(D)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(G=>T.dirty.allSeries[G]),this.dirty.newSeries,D),this.dirty={allSeries:{}}}}queueAnnouncement(y,T,D){let G=this.chart.options.accessibility.announceNewData;if(G.enabled){let nt=+new Date,K=nt-this.lastAnnouncementTime,gt=Math.max(0,G.minAnnounceInterval-K),Mt=function(Bt,Jt){let Wt=(Bt||[]).concat(Jt||[]).reduce((Xt,Vt)=>(Xt[Vt.name+Vt.index]=Vt,Xt),{});return Object.keys(Wt).map(Xt=>Wt[Xt])}(this.queuedAnnouncement&&this.queuedAnnouncement.series,y),At=this.buildAnnouncementMessage(Mt,T,D);At&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:nt,message:At,series:Mt},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},gt))}}buildAnnouncementMessage(y,T,D){let G=this.chart,nt=G.options.accessibility.announceNewData;if(nt.announcementFormatter){let At=nt.announcementFormatter(y,T,D);if(At!==!1)return At.length?At:null}let K=at().charts&&at().charts.length>1?"Multiple":"Single",gt=T?"newSeriesAnnounce"+K:D?"newPointAnnounce"+K:"newDataAnnounce",Mt=Od(G);return G.langFormat("accessibility.announceNewData."+gt,{chartTitle:Mt,seriesDesc:T?ls(T):null,pointDesc:D?Pd(D):null,point:D,series:T})}}(function(B){function y(D){var K;let G=this.chart,nt=(K=G.accessibility)==null?void 0:K.components.series.newDataAnnouncer;nt&&nt.chart===G&&Kr(G)&&(nt.dirty.newPoint=na(nt.dirty.newPoint)?void 0:D.point)}function T(){var nt;let D=this.chart,G=(nt=D.accessibility)==null?void 0:nt.components.series.newDataAnnouncer;G&&G.chart===D&&Kr(D)&&(G.dirty.hasDirty=!0,G.dirty.allSeries[this.name+this.index]=this)}B.compose=function(D){ra(so,"A11y.NDA")&&(ia(D,"addPoint",y),ia(D,"updatedData",T))}})(za||(za={}));let ws=za,{doc:dr}=at(),{attr:jr,css:sa,merge:Kc}=at(),{fireEventOnWrappedOrUnwrappedElement:oo}=Ae,{cloneMouseEvent:lc,cloneTouchEvent:ml,getFakeMouseEvent:Sn,removeElement:Ki}=ie,cc=class{constructor(B,y,T="button",D,G){this.chart=B,this.target=y,this.eventProvider=new Ei;let nt=this.innerElement=dr.createElement(T),K=this.element=D?dr.createElement(D):nt;B.styledMode||this.hideElementVisually(nt),D&&(D!=="li"||B.styledMode||(K.style.listStyle="none"),K.appendChild(nt),this.element=K),this.updateTarget(y,G)}click(){let B=this.getTargetPosition();B.x+=B.width/2,B.y+=B.height/2;let y=Sn("click",B);oo(this.target.click,y)}updateTarget(B,y){this.target=B,this.updateCSSClassName();let T=y||{};Object.keys(T).forEach(G=>{T[G]===null&&delete T[G]});let D=this.getTargetAttr(B.click,"aria-label");jr(this.innerElement,Kc(D?{"aria-label":D}:{},T)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,B.click),this.refreshPosition()}refreshPosition(){let B=this.getTargetPosition();sa(this.innerElement,{width:(B.width||1)+"px",height:(B.height||1)+"px",left:(Math.round(B.x)||0)+"px",top:(Math.round(B.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),Ki(this.element)}updateCSSClassName(){let B=nt=>nt.indexOf("highcharts-no-tooltip")>-1,y=this.chart.legend,T=y.group&&y.group.div,D=B(T&&T.className||""),G=B(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=D||G?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(B,y){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(T=>{let D=T.indexOf("touch")===0;this.eventProvider.addEvent(B,T,G=>{let nt=D?ml(G):lc(G);y&&oo(y,nt),G.stopPropagation(),D||G.preventDefault()},{passive:!1})})}hideElementVisually(B){sa(B,{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 B=this.target.click,y=B.element?B.element:B,T=this.target.visual||y,D=this.chart.renderTo,G=this.chart.pointer;if(D&&(T!=null&&T.getBoundingClientRect)&&G){let nt=T.getBoundingClientRect(),K=G.getChartPosition();return{x:(nt.left-K.left)/K.scaleX,y:(nt.top-K.top)/K.scaleY,width:nt.right/K.scaleX-nt.left/K.scaleX,height:nt.bottom/K.scaleY-nt.top/K.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(B,y){return B.element?B.element.getAttribute(y):B.getAttribute(y)}},{doc:oa}=at(),{attr:$s,css:Ar}=at(),{unhideChartElementFromAT:Gi}=Ae,{removeChildNodes:Eo}=ie,hr=class{constructor(B){this.chart=B,this.domElementProvider=new _e,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(B,y,T="button",D){let G=this.groups[B];if(!G)throw Error("ProxyProvider.addProxyElement: Invalid group key "+B);let nt=G.type==="ul"||G.type==="ol"?"li":void 0,K=new cc(this.chart,y,T,nt,D);return G.proxyContainerElement.appendChild(K.element),G.proxyElements.push(K),K}addGroup(B,y="div",T){let D,G=this.groups[B];if(G)return G.groupElement;let nt=this.domElementProvider.createElement(y);return T&&T.role&&y!=="div"?(D=this.domElementProvider.createElement("div")).appendChild(nt):D=nt,D.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+B.replace(/\W/g,"-"),this.groups[B]={proxyContainerElement:nt,groupElement:D,type:y,proxyElements:[]},$s(D,T||{}),y==="ul"&&nt.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(D),this.updateGroupOrder(this.groupOrder),D}updateGroupAttrs(B,y){let T=this.groups[B];if(!T)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+B);$s(T.groupElement,y)}updateGroupOrder(B){if(this.groupOrder=B.slice(),this.isDOMOrderGroupOrder())return;let y=B.indexOf("series"),T=y>-1?B.slice(0,y):B,D=y>-1?B.slice(y+1):[],G=oa.activeElement;["before","after"].forEach(nt=>{let K=this[nt==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];Eo(K),(nt==="before"?T:D).forEach(gt=>{let Mt=this.groups[gt];Mt&&K.appendChild(Mt.groupElement)})}),(this.beforeChartProxyPosContainer.contains(G)||this.afterChartProxyPosContainer.contains(G))&&G&&G.focus&&G.focus()}clearGroup(B){let y=this.groups[B];if(!y)throw Error("ProxyProvider.clearGroup: Invalid group key "+B);Eo(y.proxyContainerElement)}removeGroup(B){let y=this.groups[B];y&&(this.domElementProvider.removeElement(y.groupElement),y.groupElement!==y.proxyContainerElement&&this.domElementProvider.removeElement(y.proxyContainerElement),delete this.groups[B])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(B){let y=this.groups[B];y&&y.proxyElements.forEach(T=>T.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(B){let y=this.domElementProvider.createElement("div");return y.setAttribute("aria-hidden","false"),y.className="highcharts-a11y-proxy-container"+(B?"-"+B:""),Ar(y,{top:"0",left:"0"}),this.chart.styledMode||(y.style.whiteSpace="nowrap",y.style.position="absolute"),y}getCurrentGroupOrderInDOM(){let B=G=>{let nt=Object.keys(this.groups),K=nt.length;for(;K--;){let gt=nt[K],Mt=this.groups[gt];if(Mt&&G===Mt.groupElement)return gt}},y=G=>{let nt=[],K=G.children;for(let gt=0;gt<K.length;++gt){let Mt=B(K[gt]);Mt&&nt.push(Mt)}return nt},T=y(this.beforeChartProxyPosContainer),D=y(this.afterChartProxyPosContainer);return T.push("series"),T.concat(D)}isDOMOrderGroupOrder(){let B=this.getCurrentGroupOrderInDOM(),y=this.groupOrder.filter(D=>D==="series"||!!this.groups[D]),T=B.length;if(T!==y.length)return!1;for(;T--;)if(B[T]!==y[T])return!1;return!0}updatePosContainerPositions(){let B=this.chart;if(B.renderer.forExport)return;let y=B.renderer.box;B.container.insertBefore(this.afterChartProxyPosContainer,y.nextSibling),B.container.insertBefore(this.beforeChartProxyPosContainer,y),Gi(this.chart,this.afterChartProxyPosContainer),Gi(this.chart,this.beforeChartProxyPosContainer)}},{unhideChartElementFromAT:cs,getAxisRangeDescription:He}=Ae,{addEvent:rr,attr:pn}=at();class zn extends Di{init(){let y=this.chart;this.announcer=new cr(y,"polite")}onChartUpdate(){let y=this.chart,T=this,D=y.rangeSelector;D&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),D.buttons&&D.buttons.length&&D.buttons.forEach(G=>{T.setRangeButtonAttrs(G)}),D.maxInput&&D.minInput&&["minInput","maxInput"].forEach(function(G,nt){let K=D[G];K&&(cs(y,K),T.setRangeInputAttrs(K,"accessibility.rangeSelector."+(nt?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let y=this.chart,T=y.rangeSelector,D=T&&T.dropdown,G=T&&T.buttons||[],nt=K=>K.setAttribute("aria-hidden",!0);T&&T.hasVisibleDropdown&&D?(cs(y,D),G.forEach(K=>nt(K.element))):(D&&nt(D),G.forEach(K=>cs(y,K.element)))}setDropdownAttrs(){let y=this.chart,T=y.rangeSelector&&y.rangeSelector.dropdown;if(T){let D=y.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:y.options.lang.rangeSelectorZoom});T.setAttribute("aria-label",D),T.setAttribute("tabindex",-1)}}setRangeButtonAttrs(y){pn(y.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(y,T){let D=this.chart;pn(y,{tabindex:-1,"aria-label":D.langFormat(T,{chart:D})})}onButtonNavKbdArrowKey(y,T){let D=y.response,G=this.keyCodes,nt=this.chart,K=nt.options.accessibility.keyboardNavigation.wrapAround,gt=T===G.left||T===G.up?-1:1;return nt.highlightRangeSelectorButton(nt.highlightedRangeSelectorItemIx+gt)?D.success:K?(y.init(gt),D.success):D[gt>0?"next":"prev"]}onButtonNavKbdClick(y){let T=y.response,D=this.chart;return D.oldRangeSelectorItemState!==3&&this.fakeClickEvent(D.rangeSelector.buttons[D.highlightedRangeSelectorItemIx].element),T.success}onAfterBtnClick(){let y=this.chart,T=He(y.xAxis[0]),D=y.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:y,axisRangeDescription:T});D&&this.announcer.announce(D)}onInputKbdMove(y){let T=this.chart,D=T.rangeSelector,G=T.highlightedInputRangeIx=(T.highlightedInputRangeIx||0)+y;if(G>1||G<0){if(T.accessibility)return T.accessibility.keyboardNavigation.exiting=!0,T.accessibility.keyboardNavigation.tabindexContainer.focus(),T.accessibility.keyboardNavigation.move(y)}else if(D){let nt=D[G?"maxDateBox":"minDateBox"],K=D[G?"maxInput":"minInput"];nt&&K&&T.setFocusToElement(nt,K)}return!0}onInputNavInit(y){let T=this,D=this.chart,G=y>0?0:1,nt=D.rangeSelector,K=nt&&nt[G?"maxDateBox":"minDateBox"],gt=nt&&nt.minInput,Mt=nt&&nt.maxInput;if(D.highlightedInputRangeIx=G,K&>&&Mt){D.setFocusToElement(K,G?Mt:gt),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let At=Wt=>{(Wt.which||Wt.keyCode)===this.keyCodes.tab&&T.onInputKbdMove(Wt.shiftKey?-1:1)&&(Wt.preventDefault(),Wt.stopPropagation())},Bt=rr(gt,"keydown",At),Jt=rr(Mt,"keydown",At);this.removeInputKeydownHandler=()=>{Bt(),Jt()}}}onInputNavTerminate(){let y=this.chart.rangeSelector||{};y.maxInput&&y.hideInput("max"),y.minInput&&y.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let y=this.chart,T=y.rangeSelector,D=T&&T.dropdown;T&&D&&(y.setFocusToElement(T.buttonGroup,D),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=rr(D,"keydown",G=>{let nt=(G.which||G.keyCode)===this.keyCodes.tab,K=y.accessibility;nt&&(G.preventDefault(),G.stopPropagation(),K&&K.keyboardNavigation.move(G.shiftKey?-1:1))}))}getRangeSelectorButtonNavigation(){let y=this.chart,T=this.keyCodes,D=this;return new bi(y,{keyCodeMap:[[[T.left,T.right,T.up,T.down],function(G){return D.onButtonNavKbdArrowKey(this,G)}],[[T.enter,T.space],function(){return D.onButtonNavKbdClick(this)}]],validate:function(){return!!(y.rangeSelector&&y.rangeSelector.buttons&&y.rangeSelector.buttons.length)},init:function(G){let nt=y.rangeSelector;if(nt&&nt.hasVisibleDropdown)D.initDropdownNav();else if(nt){let K=nt.buttons.length-1;y.highlightRangeSelectorButton(G>0?0:K)}},terminate:function(){D.removeDropdownKeydownHandler&&(D.removeDropdownKeydownHandler(),delete D.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let y=this.chart,T=this;return new bi(y,{keyCodeMap:[],validate:function(){return!!(y.rangeSelector&&y.rangeSelector.inputGroup&&y.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&y.options.rangeSelector.inputEnabled!==!1&&y.rangeSelector.minInput&&y.rangeSelector.maxInput)},init:function(D){T.onInputNavInit(D)},terminate:function(){T.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}(function(B){function y(D){let G=this.rangeSelector&&this.rangeSelector.buttons||[],nt=this.highlightedRangeSelectorItemIx,K=this.rangeSelector&&this.rangeSelector.selected;return nt!==void 0&&G[nt]&&nt!==K&&G[nt].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=D,!!G[D]&&(this.setFocusToElement(G[D].box,G[D].element),D!==K&&(this.oldRangeSelectorItemState=G[D].state,G[D].setState(1)),!0)}function T(){let D=this.chart.accessibility;if(D&&D.components.rangeSelector)return D.components.rangeSelector.onAfterBtnClick()}B.compose=function(D,G){let nt=D.prototype;nt.highlightRangeSelectorButton||(nt.highlightRangeSelectorButton=y,rr(G,"afterBtnClick",T))}})(zn||(zn={}));let $r=zn,{composed:ui}=at(),{addEvent:Ao,merge:Rr,pushUnique:aa}=at();(function(B){function y(Mt){Rr(!0,Mt,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function T(Mt){return Mt.marker.states&&Mt.marker.states.normal&&Mt.marker.states.normal.opacity}function D(Mt){return!!(Mt._hasPointMarkers&&Mt.points&&Mt.points.length)}function G(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),D(this)&&this.points.forEach(Mt=>{Mt.graphic&&(Mt.graphic[Mt.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),Mt.graphic[Mt.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function nt(Mt){this.resetA11yMarkerOptions=Rr(Mt.options.marker||{},this.userOptions.marker||{})}function K(){let Mt=this.options;(function(At){let Bt=At.chart.options.accessibility.enabled,Jt=(At.options.accessibility&&At.options.accessibility.enabled)!==!1;return Bt&&Jt&&function(Wt){let Xt=Wt.chart.options.accessibility;return Wt.points.length<Xt.series.pointDescriptionEnabledThreshold||Xt.series.pointDescriptionEnabledThreshold===!1}(At)})(this)?(Mt.marker&&Mt.marker.enabled===!1&&(this.a11yMarkersForced=!0,y(this.options)),D(this)&&function(At){let Bt=At.points.length;for(;Bt--;){let Jt=At.points[Bt],Wt=Jt.options,Xt=Jt.hasForcedA11yMarker;if(delete Jt.hasForcedA11yMarker,Wt.marker){let Vt=Xt&&T(Wt)===0;Wt.marker.enabled&&!Vt?(Rr(!0,Wt.marker,{states:{normal:{opacity:T(Wt)||1}}}),Jt.hasForcedA11yMarker=!1):Wt.marker.enabled===!1&&(y(Wt),Jt.hasForcedA11yMarker=!0)}}}(this)):this.a11yMarkersForced&&(delete this.a11yMarkersForced,function(At){let Bt=At.resetA11yMarkerOptions;if(Bt){let Jt=Bt.states&&Bt.states.normal&&Bt.states.normal.opacity;At.userOptions&&At.userOptions.marker&&(At.userOptions.marker.enabled=!0),At.update({marker:{enabled:Bt.enabled,states:{normal:{opacity:Jt}}}})}}(this),delete this.resetA11yMarkerOptions)}function gt(){this.boosted&&this.a11yMarkersForced&&(Rr(!0,this.options,{marker:{enabled:!1}}),delete this.a11yMarkersForced)}B.compose=function(Mt){aa(ui,"A11y.FM")&&(Ao(Mt,"afterSetOptions",nt),Ao(Mt,"render",K),Ao(Mt,"afterRender",G),Ao(Mt,"renderCanvas",gt))}})(it||(it={}));let Zn=it;var Qn=ht(260),Oi=ht.n(Qn),Zr=ht(820),Hs=ht.n(Zr);let{seriesTypes:uc}=Ea(),{doc:Us}=at(),{defined:Fs,fireEvent:Zc}=at(),{getPointFromXY:yl,getSeriesFromName:bl,scrollAxisToPoint:xl}=Ae;function ja(B){let y=B.index,T=B.series.points,D=T.length;if(T[y]===B)return y;for(;D--;)if(T[D]===B)return D}function $a(B){let y=B.chart.options.accessibility.keyboardNavigation.seriesNavigation,T=B.options.accessibility||{},D=T.keyboardNavigation;return D&&D.enabled===!1||T.enabled===!1||B.options.enableMouseTracking===!1||!B.visible||y.pointNavigationEnabledThreshold&&+y.pointNavigationEnabledThreshold<=B.points.length}function Ro(B){let y=B.series.chart.options.accessibility,T=B.options.accessibility&&B.options.accessibility.enabled===!1;return B.isNull&&y.keyboardNavigation.seriesNavigation.skipNullPoints||B.visible===!1||B.isInside===!1||T||$a(B.series)}function vl(B){let y=B.series||[],T=y.length;for(let D=0;D<T;++D)if(!$a(y[D])){let G=function(nt){let K=nt.points||[],gt=K.length;for(let Mt=0;Mt<gt;++Mt)if(!Ro(K[Mt]))return K[Mt];return null}(y[D]);if(G)return G}return null}function Sl(B){let y=B.series.length,T=!1;for(;y--&&(B.highlightedPoint=B.series[y].points[B.series[y].points.length-1],!(T=B.series[y].highlightNextValidPoint())););return T}function wl(B){delete B.highlightedPoint;let y=vl(B);return!!y&&y.highlight()}class Oo{constructor(y,T){this.keyCodes=T,this.chart=y}init(){let y=this,T=this.chart,D=this.eventProvider=new Ei;D.addEvent(Hs(),"destroy",function(){return y.onSeriesDestroy(this)}),D.addEvent(T,"afterApplyDrilldown",function(){(function(G){let nt=vl(G);nt&&nt.highlight(!1)})(this)}),D.addEvent(T,"drilldown",function(G){let nt=G.point,K=nt.series;y.lastDrilledDownPoint={x:nt.x,y:nt.y,seriesName:K?K.name:""}}),D.addEvent(T,"drillupall",function(){setTimeout(function(){y.onDrillupAll()},10)}),D.addEvent(Oi(),"afterSetState",function(){let G=this.graphic&&this.graphic.element,nt=Us.activeElement,K=nt&&nt.getAttribute("class"),gt=K&&K.indexOf("highcharts-a11y-proxy-element")>-1;T.highlightedPoint===this&&nt!==G&&!gt&&G&&G.focus&&G.focus()})}onDrillupAll(){let y,T=this.lastDrilledDownPoint,D=this.chart,G=T&&bl(D,T.seriesName);T&&G&&Fs(T.x)&&Fs(T.y)&&(y=yl(G,T.x,T.y)),y=y||vl(D),D.container&&D.container.focus(),y&&y.highlight&&y.highlight(!1)}getKeyboardNavigationHandler(){let y=this,T=this.keyCodes,D=this.chart,G=D.inverted;return new bi(D,{keyCodeMap:[[G?[T.up,T.down]:[T.left,T.right],function(nt){return y.onKbdSideways(this,nt)}],[G?[T.left,T.right]:[T.up,T.down],function(nt){return y.onKbdVertical(this,nt)}],[[T.enter,T.space],function(nt,K){var Mt;let gt=D.highlightedPoint;if(gt){let{plotLeft:At,plotTop:Bt}=this.chart,{plotX:Jt=0,plotY:Wt=0}=gt;K={...K,chartX:At+Jt,chartY:Bt+Wt,point:gt,target:((Mt=gt.graphic)==null?void 0:Mt.element)||K.target},Zc(gt.series,"click",K),gt.firePointEvent("click",K)}return this.response.success}],[[T.home],function(){return wl(D),this.response.success}],[[T.end],function(){return Sl(D),this.response.success}],[[T.pageDown,T.pageUp],function(nt){return D.highlightAdjacentSeries(nt===T.pageDown),this.response.success}]],init:function(){return y.onHandlerInit(this)},validate:function(){return!!vl(D)},terminate:function(){return y.onHandlerTerminate()}})}onKbdSideways(y,T){let D=this.keyCodes,G=T===D.right||T===D.down;return this.attemptHighlightAdjacentPoint(y,G)}onHandlerInit(y){let T=this.chart;return T.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&T.highlightedPoint?T.highlightedPoint.highlight():wl(T),y.response.success}onKbdVertical(y,T){let D=this.chart,G=this.keyCodes,nt=T===G.down||T===G.right,K=D.options.accessibility.keyboardNavigation.seriesNavigation;if(K.mode&&K.mode==="serialize")return this.attemptHighlightAdjacentPoint(y,nt);let gt=D.highlightedPoint&&D.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return D[gt](nt),y.response.success}onHandlerTerminate(){let y=this.chart,T=y.options.accessibility.keyboardNavigation;y.tooltip&&y.tooltip.hide(0);let D=y.highlightedPoint&&y.highlightedPoint.series;D&&D.onMouseOut&&D.onMouseOut(),y.highlightedPoint&&y.highlightedPoint.onMouseOut&&y.highlightedPoint.onMouseOut(),T.seriesNavigation.rememberPointFocus||delete y.highlightedPoint}attemptHighlightAdjacentPoint(y,T){let D=this.chart,G=D.options.accessibility.keyboardNavigation.wrapAround;return D.highlightAdjacentPoint(T)||G&&(T?wl(D):Sl(D))?y.response.success:y.response[T?"next":"prev"]}onSeriesDestroy(y){let T=this.chart;T.highlightedPoint&&T.highlightedPoint.series===y&&(delete T.highlightedPoint,T.focusElement&&T.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}(function(B){function y(K){let gt,Mt,At=this.series,Bt=this.highlightedPoint,Jt=Bt&&ja(Bt)||0,Wt=Bt&&Bt.series.points||[],Xt=this.series&&this.series[this.series.length-1],Vt=Xt&&Xt.points&&Xt.points[Xt.points.length-1];if(!At[0]||!At[0].points)return!1;if(Bt){if(gt=At[Bt.series.index+(K?1:-1)],(Mt=Wt[Jt+(K?1:-1)])||!gt||(Mt=gt.points[K?0:gt.points.length-1]),!Mt)return!1}else Mt=K?At[0].points[0]:Vt;return Ro(Mt)?($a(gt=Mt.series)?this.highlightedPoint=K?gt.points[gt.points.length-1]:gt.points[0]:this.highlightedPoint=Mt,this.highlightAdjacentPoint(K)):Mt.highlight()}function T(K){let gt=this.highlightedPoint,Mt=1/0,At;return!!(Fs(gt.plotX)&&Fs(gt.plotY))&&(this.series.forEach(Bt=>{$a(Bt)||Bt.points.forEach(Jt=>{if(!Fs(Jt.plotY)||!Fs(Jt.plotX)||Jt===gt)return;let Wt=Jt.plotY-gt.plotY,Xt=Math.abs(Jt.plotX-gt.plotX),Vt=Math.abs(Wt)*Math.abs(Wt)+Xt*Xt*4;Bt.yAxis&&Bt.yAxis.reversed&&(Wt*=-1),!(Wt<=0&&K||Wt>=0&&!K||Vt<5||Ro(Jt))&&Vt<Mt&&(Mt=Vt,At=Jt)})}),!!At&&At.highlight())}function D(K){let gt,Mt,At,Bt=this.highlightedPoint,Jt=this.series&&this.series[this.series.length-1],Wt=Jt&&Jt.points&&Jt.points[Jt.points.length-1];return this.highlightedPoint?!!((gt=this.series[Bt.series.index+(K?-1:1)])&&(Mt=function(Xt,Vt,de,Fe){let ni=1/0,ri,xi,Ge,Ve=Vt.points.length,vi=ze=>!(Fs(ze.plotX)&&Fs(ze.plotY));if(!vi(Xt)){for(;Ve--;)!vi(ri=Vt.points[Ve])&&(Ge=(Xt.plotX-ri.plotX)*(Xt.plotX-ri.plotX)*4+(Xt.plotY-ri.plotY)*(Xt.plotY-ri.plotY)*1)<ni&&(ni=Ge,xi=Ve);return Fs(xi)?Vt.points[xi]:void 0}}(Bt,gt)))&&($a(gt)?(Mt.highlight(),(At=this.highlightAdjacentSeries(K))?At:(Bt.highlight(),!1)):(Mt.highlight(),Mt.series.highlightNextValidPoint())):(gt=K?this.series&&this.series[0]:Jt,!!(Mt=K?gt&>.points&>.points[0]:Wt)&&Mt.highlight())}function G(K=!0){var Bt,Jt;let gt=this.series.chart,Mt=(Jt=(Bt=gt.tooltip)==null?void 0:Bt.label)==null?void 0:Jt.element;!this.isNull&&K?this.onMouseOver():gt.tooltip&>.tooltip.hide(0),xl(this),this.graphic&&(gt.setFocusToElement(this.graphic),!K&>.focusElement&>.focusElement.removeFocusBorder()),gt.highlightedPoint=this;let At=Mt==null?void 0:Mt.getBoundingClientRect().top;if(Mt&&At&&At<0){let Wt=window.scrollY;window.scrollTo({behavior:"smooth",top:Wt+At})}return this}function nt(){let K=this.chart.highlightedPoint,gt=(K&&K.series)===this?ja(K):0,Mt=this.points,At=Mt.length;if(Mt&&At){for(let Bt=gt;Bt<At;++Bt)if(!Ro(Mt[Bt]))return Mt[Bt].highlight();for(let Bt=gt;Bt>=0;--Bt)if(!Ro(Mt[Bt]))return Mt[Bt].highlight()}return!1}B.compose=function(K,gt,Mt){let At=K.prototype,Bt=gt.prototype,Jt=Mt.prototype;At.highlightAdjacentPoint||(At.highlightAdjacentPoint=y,At.highlightAdjacentPointVertical=T,At.highlightAdjacentSeries=D,Bt.highlight=G,Jt.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(Wt=>{uc[Wt]&&(uc[Wt].prototype.keyboardMoveVertical=!1)}),Jt.highlightNextValidPoint=nt)}})(Oo||(Oo={}));let us=Oo,{hideSeriesFromAT:Ha}=Ae,{describeSeries:Cl}=gl,kl=class extends Di{static compose(B,y,T){ws.compose(T),Zn.compose(T),us.compose(B,y,T)}init(){this.newDataAnnouncer=new ws(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new us(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let B=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===B.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(B){B.labelBySeries&&B.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(B){(B.options.accessibility&&B.options.accessibility.enabled)!==!1&&B.visible&&B.getPointsCollection().length!==0?Cl(B):Ha(B)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}},{unhideChartElementFromAT:Ua}=Ae,{getFakeMouseEvent:la}=ie,{attr:Qc,pick:ca}=at(),Po=class extends Di{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let B=this,y=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(T=>{B.addEvent(y,T,function(){B.updateProxyOverlays()})})}onChartUpdate(){let B=this.chart,y=this;B.mapNavigation&&B.mapNavigation.navButtons.forEach((T,D)=>{Ua(B,T.element),y.setMapNavButtonAttrs(T.element,"accessibility.zoom.mapZoom"+(D?"Out":"In"))})}setMapNavButtonAttrs(B,y){let T=this.chart;Qc(B,{tabindex:-1,role:"button","aria-label":T.langFormat(y,{chart:T})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let B=this.chart;if(this.proxyProvider.clearGroup("zoom"),B.resetZoomButton&&this.createZoomProxyButton(B.resetZoomButton,"resetZoomProxyButton",B.langFormat("accessibility.zoom.resetZoomButton",{chart:B})),B.drillUpButton&&B.breadcrumbs&&B.breadcrumbs.list){let y=B.breadcrumbs.list[B.breadcrumbs.list.length-1];this.createZoomProxyButton(B.drillUpButton,"drillUpProxyButton",B.langFormat("accessibility.drillUpButton",{chart:B,buttonText:B.breadcrumbs.getButtonText(y)}))}}createZoomProxyButton(B,y,T){this[y]=this.proxyProvider.addProxyElement("zoom",{click:B},"button",{"aria-label":T,tabindex:-1})}getMapZoomNavigation(){let B=this.keyCodes,y=this.chart,T=this;return new bi(y,{keyCodeMap:[[[B.up,B.down,B.left,B.right],function(D){return T.onMapKbdArrow(this,D)}],[[B.tab],function(D,G){return T.onMapKbdTab(this,G)}],[[B.space,B.enter],function(){return T.onMapKbdClick(this)}]],validate:function(){return!!(y.mapView&&y.mapNavigation&&y.mapNavigation.navButtons.length)},init:function(D){return T.onMapNavInit(D)}})}onMapKbdArrow(B,y){let T=this.chart,D=this.keyCodes,G=T.container,nt=y===D.up||y===D.down,K=y===D.left||y===D.up?1:-1,gt=(nt?T.plotHeight:T.plotWidth)/10*K,Mt=10*Math.random(),At={x:G.offsetLeft+T.plotLeft+T.plotWidth/2+Mt,y:G.offsetTop+T.plotTop+T.plotHeight/2+Mt},Bt=nt?{x:At.x,y:At.y+gt}:{x:At.x+gt,y:At.y};return[la("mousedown",At),la("mousemove",Bt),la("mouseup",Bt)].forEach(Jt=>G.dispatchEvent(Jt)),B.response.success}onMapKbdTab(B,y){let T=this.chart,D=B.response,G=y.shiftKey,nt=G&&!this.focusedMapNavButtonIx||!G&&this.focusedMapNavButtonIx;if(T.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),nt)return T.mapView&&T.mapView.zoomBy(),D[G?"prev":"next"];this.focusedMapNavButtonIx+=G?-1:1;let K=T.mapNavigation.navButtons[this.focusedMapNavButtonIx];return T.setFocusToElement(K.box,K.element),K.setState(2),D.success}onMapKbdClick(B){let y=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(y),B.response.success}onMapNavInit(B){let y=this.chart,T=y.mapNavigation.navButtons[0],D=y.mapNavigation.navButtons[1],G=B>0?T:D;y.setFocusToElement(G.box,G.element),G.setState(2),this.focusedMapNavButtonIx=B>0?0:1}simpleButtonNavigation(B,y,T){let D=this.keyCodes,G=this,nt=this.chart;return new bi(nt,{keyCodeMap:[[[D.tab,D.up,D.down,D.left,D.right],function(K,gt){let Mt=K===D.tab&>.shiftKey||K===D.left||K===D.up;return this.response[Mt?"prev":"next"]}],[[D.space,D.enter],function(){return ca(T(this,nt),this.response.success)}]],validate:function(){return nt[B]&&nt[B].box&&G[y].innerElement},init:function(){nt.setFocusToElement(nt[B].box,G[y].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(B,y){y.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(B,y){return y.drillUp(),B.response.prev}),this.getMapZoomNavigation()]}},{doc:Bo,isMS:Fa,win:ds}=at(),Ml={isHighContrastModeActive:function(){let B=/(Edg)/.test(ds.navigator.userAgent);if(ds.matchMedia&&B)return ds.matchMedia("(-ms-high-contrast: active)").matches;if(Fa&&ds.getComputedStyle){let y=Bo.createElement("div");y.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",Bo.body.appendChild(y);let T=(y.currentStyle||ds.getComputedStyle(y)).backgroundImage;return Bo.body.removeChild(y),T==="none"}return ds.matchMedia&&ds.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(B){var D;B.highContrastModeActive=!0;let y=B.options.accessibility.highContrastTheme;B.update(y,!1);let T=((D=y.colors)==null?void 0:D.length)>1;B.series.forEach(function(G){let nt=y.plotOptions[G.type]||{},K=T&&G.colorIndex!==void 0?y.colors[G.colorIndex]:nt.color||"window",gt={color:nt.color||"windowText",colors:T?y.colors:[nt.color||"windowText"],borderColor:nt.borderColor||"window",fillColor:K};G.update(gt,!1),G.points&&G.points.forEach(function(Mt){Mt.options&&Mt.options.color&&Mt.update({color:nt.color||"windowText",borderColor:nt.borderColor||"window"},!1)})}),B.redraw()}},{error:Cs,pick:dc}=at();function Qr(B,y,T){let D=B,G,nt=0;for(;nt<y.length-1;++nt)D=D[G=y[nt]]=dc(D[G],{});D[y[y.length-1]]=T}function sr(B,y,T,D){function G(gt,Mt){return Mt.reduce(function(At,Bt){return At[Bt]},gt)}let nt=G(B.options,y),K=G(B.options,T);Object.keys(D).forEach(function(gt){let Mt=nt[gt];Mt!==void 0&&(Qr(K,D[gt],Mt),Cs(32,!1,B,{[y.join(".")+"."+gt]:T.join(".")+"."+D[gt].join(".")}))})}let ao=function(B){(function(y){let T=y.options.chart,D=y.options.accessibility||{};["description","typeDescription"].forEach(function(G){T[G]&&(D[G]=T[G],Cs(32,!1,y,{[`chart.${G}`]:`use accessibility.${G}`}))})})(B),function(y){y.axes.forEach(function(T){let D=T.options;D&&D.description&&(D.accessibility=D.accessibility||{},D.accessibility.description=D.description,Cs(32,!1,y,{"axis.description":"use axis.accessibility.description"}))})}(B),B.series&&function(y){let T={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};y.series.forEach(function(D){Object.keys(T).forEach(function(G){let nt=D.options[G];G==="accessibility.pointDescriptionFormatter"&&(nt=D.options.accessibility&&D.options.accessibility.pointDescriptionFormatter),nt!==void 0&&(Qr(D.options,T[G],G==="skipKeyboardNavigation"?!nt:nt),Cs(32,!1,y,{[`series.${G}`]:"series."+T[G].join(".")}))})})}(B),sr(B,["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"]}),sr(B,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),sr(B,["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"]})},{defaultOptions:Jc}=at(),{doc:ua}=at(),{addEvent:pr,extend:On,fireEvent:Gs,merge:hc}=at(),{removeElement:tu}=ie;class Fu{constructor(y){this.init(y)}init(y){if(this.chart=y,!ua.addEventListener){this.zombie=!0,this.components={},y.renderTo.setAttribute("aria-hidden",!0);return}ao(y),this.proxyProvider=new hr(this.chart),this.initComponents(),this.keyboardNavigation=new Yl(y,this.components)}initComponents(){let y=this.chart,T=this.proxyProvider,D=y.options.accessibility;this.components={container:new sn,infoRegions:new hn,legend:new Ou,chartMenu:new Xl,rangeSelector:new $r,series:new kl,zoom:new Po,navigator:new zu},D.customComponents&&On(this.components,D.customComponents);let G=this.components;this.getComponentOrder().forEach(function(nt){G[nt].initBase(y,T),G[nt].init()})}getComponentOrder(){return this.components?this.components.series?["series"].concat(Object.keys(this.components).filter(y=>y!=="series")):Object.keys(this.components):[]}update(){let y=this.components,T=this.chart,D=T.options.accessibility;Gs(T,"beforeA11yUpdate"),T.types=this.getChartTypes();let G=D.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(G),this.getComponentOrder().forEach(function(nt){y[nt].onChartUpdate(),Gs(T,"afterA11yComponentUpdate",{name:nt,component:y[nt]})}),this.keyboardNavigation.update(G),!T.highContrastModeActive&&D.highContrastMode!==!1&&(Ml.isHighContrastModeActive()||D.highContrastMode===!0)&&Ml.setHighContrastTheme(T),Gs(T,"afterA11yUpdate",{accessibility:this})}destroy(){let y=this.chart||{},T=this.components;Object.keys(T).forEach(function(D){T[D].destroy(),T[D].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),y.announcerContainer&&tu(y.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),y.renderTo&&y.renderTo.setAttribute("aria-hidden",!0),y.focusElement&&y.focusElement.removeFocusBorder()}getChartTypes(){let y={};return this.chart.series.forEach(function(T){y[T.type]=1}),Object.keys(y)}}(function(B){function y(){this.accessibility&&this.accessibility.destroy()}function T(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let K=this.accessibility;K&&!K.zombie&&(K.proxyProvider.updateProxyElementPositions(),K.getComponentOrder().forEach(function(gt){K.components[gt].onChartRender()}))}function D(K){let gt=K.options.accessibility;gt&&(gt.customComponents&&(this.options.accessibility.customComponents=gt.customComponents,delete gt.customComponents),hc(!0,this.options.accessibility,gt),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function G(){let K=this.accessibility,gt=this.options.accessibility,Mt=this.renderer.boxWrapper.element,At=this.title;if(gt&>.enabled)K&&!K.zombie?K.update():(this.accessibility=K=new B(this),K&&!K.zombie&&K.update(),Mt.getAttribute("role")==="img"&&Mt.removeAttribute("role"));else if(K)K.destroy&&K.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(At&&At.element.textContent||"").replace(/</g,"<")),Mt.setAttribute("aria-hidden",!0);let Bt=document.getElementsByClassName("highcharts-description")[0];Bt&&(Bt.setAttribute("aria-hidden",!1),Bt.classList.remove("highcharts-linked-description"))}}function nt(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}B.i18nFormat=St.i18nFormat,B.compose=function(K,gt,Mt,At,Bt,Jt){Yl.compose(K),ws.compose(At),Ou.compose(K,gt),Xl.compose(K),kl.compose(K,Mt,At),St.compose(K),lr.compose(K,Bt),Jt&&$r.compose(K,Jt);let Wt=K.prototype;Wt.updateA11yEnabled||(Wt.updateA11yEnabled=G,pr(K,"destroy",y),pr(K,"render",T),pr(K,"update",D),["addSeries","init"].forEach(Xt=>{pr(K,Xt,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(Xt=>{pr(K,Xt,function(){let Vt=this.accessibility;Vt&&!Vt.zombie&&Vt.update()})}),pr(Mt,"update",nt),["update","updatedData","remove"].forEach(Xt=>{pr(At,Xt,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}})(Fu||(Fu={})),hc(!0,Jc,{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:!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 an=Fu,Jn=at();Jn.i18nFormat=an.i18nFormat,Jn.A11yChartUtilities=Ae,Jn.A11yHTMLUtilities=ie,Jn.AccessibilityComponent=Di,Jn.KeyboardNavigationHandler=bi,Jn.SeriesAccessibilityDescriber=gl,an.compose(Jn.Chart,Jn.Legend,Jn.Point,Jn.Series,Jn.SVGElement,Jn.RangeSelector);let da=at();return lt.default})())}(Mm)),Mm.exports}AD();var Tm={exports:{}},RD=Tm.exports,G0;function OD(){return G0||(G0=1,function(t,r){(function(a,c){t.exports=c(Gm())})(typeof self<"u"?self:RD,function(a){return function(c){function p(S){if(m[S])return m[S].exports;var k=m[S]={i:S,l:!1,exports:{}};return c[S].call(k.exports,k,k.exports,p),k.l=!0,k.exports}var m={};return p.m=c,p.c=m,p.d=function(S,k,O){p.o(S,k)||Object.defineProperty(S,k,{configurable:!1,enumerable:!0,get:O})},p.n=function(S){var k=S&&S.__esModule?function(){return S.default}:function(){return S};return p.d(k,"a",k),k},p.o=function(S,k){return Object.prototype.hasOwnProperty.call(S,k)},p.p="",p(p.s=0)}([function(c,p,m){function S(){return S=Object.assign?Object.assign.bind():function(st){for(var ct=1;ct<arguments.length;ct++){var ht=arguments[ct];for(var lt in ht)Object.prototype.hasOwnProperty.call(ht,lt)&&(st[lt]=ht[lt])}return st},S.apply(this,arguments)}function k(st){return $(st)||j(st)||R(st)||O()}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(st,ct){if(st){if(typeof st=="string")return I(st,ct);var ht=Object.prototype.toString.call(st).slice(8,-1);return ht==="Object"&&st.constructor&&(ht=st.constructor.name),ht==="Map"||ht==="Set"?Array.from(st):ht==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ht)?I(st,ct):void 0}}function j(st){if(typeof Symbol<"u"&&st[Symbol.iterator]!=null||st["@@iterator"]!=null)return Array.from(st)}function $(st){if(Array.isArray(st))return I(st)}function I(st,ct){(ct==null||ct>st.length)&&(ct=st.length);for(var ht=0,lt=new Array(ct);ht<ct;ht++)lt[ht]=st[ht];return lt}function F(st){"@babel/helpers - typeof";return(F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ct){return typeof ct}:function(ct){return ct&&typeof Symbol=="function"&&ct.constructor===Symbol&&ct!==Symbol.prototype?"symbol":typeof ct})(st)}Object.defineProperty(p,"__esModule",{value:!0}),m.d(p,"HighchartsReact",function(){return it});var z=m(1),_=m.n(z),J=typeof window<"u"?z.useLayoutEffect:z.useEffect,it=Object(z.memo)(Object(z.forwardRef)(function(st,ct){var ht=Object(z.useRef)(),lt=Object(z.useRef)(),wt=Object(z.useRef)(st.constructorType),at=Object(z.useRef)(st.highcharts);return J(function(){function _t(){var ot=st.highcharts||(typeof window>"u"?"undefined":F(window))==="object"&&window.Highcharts,It=st.constructorType||"chart";ot?ot[It]?st.options?lt.current=ot[It](ht.current,st.options,st.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(lt.current){if(st.allowChartUpdate!==!1)if(st.constructorType!==wt.current||st.highcharts!==at.current)wt.current=st.constructorType,at.current=st.highcharts,_t();else if(!st.immutable&<.current){var Et;(Et=lt.current).update.apply(Et,[st.options].concat(k(st.updateArgs||[!0,!0])))}else _t()}else _t()},[st.options,st.allowChartUpdate,st.updateArgs,st.containerProps,st.highcharts,st.constructorType]),J(function(){return function(){lt.current&&(lt.current.destroy(),lt.current=null)}},[]),Object(z.useImperativeHandle)(ct,function(){return{get chart(){return lt.current},container:ht}},[]),_.a.createElement("div",S({},st.containerProps,{ref:ht}))}));p.default=it},function(c,p){c.exports=a}])})}(Tm)),Tm.exports}var PD=OD();const _S=up(PD),Qd=(t,r,a="",c="",p="-")=>t&&t[r]?`${a}${t[r]}${c}`:p,_0=({fte:t,width:r,height:a})=>{const c=r||"100%",p=a||"20px",m=`linear-gradient(90deg, ${t.map(S=>`${S.color} ${S.position}%`).join(", ")})`;return Y.jsx(Ln,{sx:{width:c,height:p,borderRadius:4,background:m,transition:"background 0.3s ease-in-out"}})};function WS({status:t,width:r,height:a}){const c=r||"100%",p=a||"20px";return Y.jsx(Ln,{sx:{width:c,height:p,display:"flex",flexDirection:"row",color:"white",backgroundColor:"black",borderRadius:4,overflow:"hidden"},children:t.map((m,S)=>Y.jsx(Ln,{sx:{width:m.percents,backgroundColor:m.backgroundColor,color:m.color,display:"grid",placeItems:"center"},children:Y.jsx(Un,{sx:{fontSize:"14px"},children:m.value})},S))})}const Ef=xe("div")(({theme:t})=>({color:t.palette.primary.main,fontSize:14,fontStyle:"italic",fontWeight:"bold"})),BD={py:0,width:"100%",borderRadius:2,border:"1px solid",borderColor:"divider",backgroundColor:"background.paper"},DD=(t,r)=>({credits:{enabled:!1},chart:{type:"pie",custom:{},events:{render(){const a=this,c=a.series[0];let p=a.options.chart.custom.label;p||(p=a.options.chart.custom.label=a.renderer.label(`done:<strong>${r.done}</strong>`).css({color:"#000",textAnchor:"middle"}).add());const m=c.center[0]+a.plotLeft,S=c.center[1]+a.plotTop-p.attr("height")/2;p.attr({x:m,y:S}),p.css({fontSize:`${c.center[2]/12}px`})}}},accessibility:{point:{valueSuffix:"%"}},title:{text:""},subtitle:{text:""},tooltip:{pointFormat:"<b>{point.percentage:.0f}%</b>"},legend:{enabled:!0},colors:[t.tasks.todo.backgroundColor,t.tasks.dev.backgroundColor,t.tasks.blocked.backgroundColor],plotOptions:{series:{allowPointSelect:!0,cursor:"pointer",borderRadius:8,dataLabels:[{enabled:!1,distance:20,format:"{point.name}"},{enabled:!1,distance:-30,format:"{point.percentage:.0f}",style:{fontSize:"0.9em"}}],showInLegend:!0}},series:[{name:"Tasks",colorByPoint:!0,innerSize:"55%",data:[{name:`todo (${r.todo})`,y:r.todo},{name:`dev (${r.dev})`,y:r.dev},{name:`blocked (${r.blocked})`,y:r.blocked}]}]}),pb=(t,r)=>t<.64?r.rag.red.backgroundColor:t<.8?r.rag.amber.backgroundColor:r.rag.green.backgroundColor;function VS({project:t,opened:r}){const a=jc(),[c,p]=W.useState(r),m=t.summary.team.utilization,[S]=W.useState([{color:pb(m[0],a),position:0}].concat(m.map((R,j)=>({color:pb(R,a),position:j*10+5}))).concat([{color:pb(m[m.length-1],a),position:100}])),k=t.summary.tasks.todo+t.summary.tasks.dev+t.summary.tasks.blocked,O=[{id:"todo",value:t.summary.tasks.todo,percents:"0%",color:a.tasks.todo.color,backgroundColor:a.tasks.todo.backgroundColor},{id:"dev",value:t.summary.tasks.dev,percents:"0%",color:a.tasks.dev.color,backgroundColor:a.tasks.dev.backgroundColor},{id:"blocked",value:t.summary.tasks.blocked,percents:"0%",color:a.tasks.blocked.color,backgroundColor:a.tasks.blocked.backgroundColor}].map(R=>({...R,percents:k>0?Math.round(100*R.value/k)+"%":"0%"}));return Y.jsxs(a2,{variant:"outlined",sx:{my:2,position:"relative",overflow:"visible",backgroundColor:"lightgrey1"},children:[Y.jsx(Un,{gutterBottom:!0,sx:{color:"text.secondary",backgroundColor:"white",fontSize:14,position:"absolute",right:64,top:-12},children:Y.jsx("i",{children:Y.jsx("b",{children:t.lastUpdateTime?`updated ${t.lastUpdateTime} ago`:""})})}),!c&&Y.jsx(Un,{gutterBottom:!0,sx:{color:"text.secondary",backgroundColor:"white",fontSize:14,position:"absolute",left:64,top:-11},children:Y.jsx("i",{children:Y.jsxs("b",{children:[Qd(t.summary.release,"id","","",""),Qd(t.summary.release,"durationToReleaseHR"," in ","","")]})})}),Y.jsx(Ja,{sx:{position:"absolute",right:-6,top:-8},onClick:()=>p(!c),children:c?Y.jsx(CD,{}):Y.jsx(wD,{})}),Y.jsxs(d2,{sx:{py:3,overflow:"visible"},children:[Y.jsxs(Ln,{sx:{display:"grid",gap:1,gridTemplateColumns:{xs:"repeat(1, 1fr)",md:"repeat(2, 1fr)"}},children:[Y.jsxs(Ln,{children:[Y.jsx(Un,{gutterBottom:!0,sx:{color:"text.secondary",fontSize:14},children:t.id}),Y.jsx(Un,{variant:"h5",component:"div",children:t.name}),c&&Y.jsxs(Y.Fragment,{children:[Y.jsx(Un,{sx:{color:"text.secondary",mb:1.5},children:t.description}),Y.jsx(Ln,{sx:{px:4},children:Y.jsxs(Tx,{sx:BD,children:[Y.jsx(md,{secondaryAction:Y.jsx(Ef,{children:Qd(t.summary.release,"durationToReleaseHR","in ")}),children:Y.jsx(nh,{primary:Y.jsx(Un,{children:Y.jsx("b",{children:"Release"})})})}),Y.jsx(xu,{variant:"inset",component:"li"}),Y.jsx(md,{sx:{pl:4},secondaryAction:Y.jsx(Ef,{children:Qd(t.summary.release,"id")}),children:Y.jsx(nh,{primary:"Version"})}),Y.jsx(md,{sx:{pl:4},secondaryAction:Y.jsx(Ef,{children:Qd(t.summary.release,"date")}),children:Y.jsx(nh,{primary:"Date"})}),Y.jsx(md,{sx:{pl:4},secondaryAction:Y.jsxs(Ef,{children:[Qd(t.summary.release,"features"),"/",Qd(t.summary.release,"improvements")]}),children:Y.jsx(nh,{primary:"Features/Improvements"})}),Y.jsx(xu,{component:"li"}),Y.jsx(md,{children:Y.jsx(nh,{primary:Y.jsx(Un,{children:Y.jsx("b",{children:"Bandwidth & Utilization"})})})}),Y.jsx(xu,{variant:"inset",component:"li"}),Y.jsx(md,{sx:{pl:4},secondaryAction:Y.jsxs(Ef,{children:[t.summary.team.size,"(",t.summary.team.total,")"]}),children:Y.jsx(nh,{primary:"Team size (total)"})}),Y.jsx(md,{sx:{pl:4},children:Y.jsx(_0,{fte:S})})]})})]})]}),Y.jsxs(Ln,{children:[!c&&Y.jsxs(Y.Fragment,{children:[Y.jsxs(Ln,{sx:{px:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignContent:"center"},children:[Y.jsx(WS,{status:O,width:"48%"}),Y.jsx(_0,{fte:S,width:"48%"})]}),Y.jsx(Ln,{sx:{px:2,pt:2,display:"flex",flexWrap:"wrap",gap:2,flexDirection:"row",justifyContent:"start",alignContent:"center"},children:t.assessment.nfr.map((R,j)=>Y.jsx(IA,{color:"secondary",variant:"dot",children:Y.jsx(Un,{variant:"caption",sx:{color:"text.primary",fontSize:12},children:R.name})},j))})]}),c&&Y.jsx(Ln,{sx:{display:"grid",gap:1,gridTemplateColumns:{xs:"repeat(1, 1fr)",md:"repeat(2, 1fr)"}},children:Y.jsx(_S,{highcharts:TD,options:DD(a,t.summary.tasks)})})]})]}),c&&Y.jsx(Ln,{sx:{px:4},children:t.projects&&t.projects.map((R,j)=>Y.jsx(VS,{project:R,opened:!1},j))})]})]})}function LD(){const t=W.use(Ka).context.projects;return Y.jsx(yp,{maxWidth:"xl",sx:{py:1},children:t.map((r,a)=>Y.jsx(VS,{project:r,opened:!0},a))})}function ID(){const[t,r]=W.useState(0);return Y.jsx(_m,{FallbackComponent:cy,onReset:()=>{r(a=>a+1)},children:Y.jsx(W.Suspense,{fallback:Y.jsx(uy,{}),children:Y.jsx(LD,{},t)})})}var Em={exports:{}},ND=Em.exports,W0;function zD(){return W0||(W0=1,function(t,r){(function(a,c){t.exports=c(a._Highcharts,a._Highcharts.Chart,a._Highcharts.Axis,a._Highcharts.Color,a._Highcharts.SeriesRegistry,a._Highcharts.RendererRegistry,a._Highcharts.SVGRenderer,a._Highcharts.SVGElement,a._Highcharts.Point,a._Highcharts.StackItem)})(typeof window>"u"?ND:window,(a,c,p,m,S,k,O,R,j,$)=>(()=>{let I,F,z;var _,J,it,st,ct,ht={532:q=>{q.exports=p},960:q=>{q.exports=c},620:q=>{q.exports=m},260:q=>{q.exports=j},608:q=>{q.exports=k},28:q=>{q.exports=R},540:q=>{q.exports=O},512:q=>{q.exports=S},184:q=>{q.exports=$},944:q=>{q.exports=a}},lt={};function wt(q){var b=lt[q];if(b!==void 0)return b.exports;var A=lt[q]={exports:{}};return ht[q](A,A.exports,wt),A.exports}wt.n=q=>{var b=q&&q.__esModule?()=>q.default:()=>q;return wt.d(b,{a:b}),b},wt.d=(q,b)=>{for(var A in b)wt.o(b,A)&&!wt.o(q,A)&&Object.defineProperty(q,A,{enumerable:!0,get:b[A]})},wt.o=(q,b)=>Object.prototype.hasOwnProperty.call(q,b);var at={};wt.d(at,{default:()=>wn});var _t=wt(944),Et=wt.n(_t);function ot(q,b,A,L){return[["M",q,b+L/2],["L",q+A,b],["L",q,b+L/2],["L",q+A,b+L]]}function It(q,b,A,L){return ot(q,b,A/2,L)}function se(q,b,A,L){return[["M",q+A,b],["L",q,b+L/2],["L",q+A,b+L],["Z"]]}function re(q,b,A,L){return se(q,b,A/2,L)}let ie={compose:function(q){let b=q.prototype.symbols;b.arrow=ot,b["arrow-filled"]=se,b["arrow-filled-half"]=re,b["arrow-half"]=It,b["triangle-left"]=se,b["triangle-left-half"]=re}},{defined:Kt,error:zt,merge:ne,objectEach:te}=Et(),Dt=Et().deg2rad,St=Math.max,jt=Math.min,Se=class{constructor(q,b,A){this.init(q,b,A)}init(q,b,A){this.fromPoint=q,this.toPoint=b,this.options=A,this.chart=q.series.chart,this.pathfinder=this.chart.pathfinder}renderPath(q,b){let A=this.chart,L=A.styledMode,H=this.pathfinder,Z={},X=this.graphics&&this.graphics.path;H.group||(H.group=A.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(A.seriesGroup)),H.group.translate(A.plotLeft,A.plotTop),X&&X.renderer||(X=A.renderer.path().add(H.group),L||X.attr({opacity:0})),X.attr(b),Z.d=q,L||(Z.opacity=1),X.animate(Z),this.graphics=this.graphics||{},this.graphics.path=X}addMarker(q,b,A){let L,H,Z,X,ut,bt,Tt,yt,Ct=this.fromPoint.series.chart,pt=Ct.pathfinder,vt=Ct.renderer,mt=q==="start"?this.fromPoint:this.toPoint,kt=mt.getPathfinderAnchorPoint(b);b.enabled&&((yt=q==="start"?A[1]:A[A.length-2])&&yt[0]==="M"||yt[0]==="L")&&(Tt={x:yt[1],y:yt[2]},H=mt.getRadiansToVector(Tt,kt),L=mt.getMarkerVector(H,b.radius,kt),Z=-H/Dt,b.width&&b.height?(ut=b.width,bt=b.height):ut=bt=2*b.radius,this.graphics=this.graphics||{},X={x:L.x-ut/2,y:L.y-bt/2,width:ut,height:bt,rotation:Z,rotationOriginX:L.x,rotationOriginY:L.y},this.graphics[q]?this.graphics[q].animate(X):(this.graphics[q]=vt.symbol(b.symbol).addClass("highcharts-point-connecting-path-"+q+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(X).add(pt.group),vt.styledMode||this.graphics[q].attr({fill:b.color||this.fromPoint.color,stroke:b.lineColor,"stroke-width":b.lineWidth,opacity:0}).animate({opacity:1},mt.series.options.animation)))}getPath(q){let b=this.pathfinder,A=this.chart,L=b.algorithms[q.type],H=b.chartObstacles;return typeof L!="function"?(zt('"'+q.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(L.requiresObstacles&&!H&&(H=b.chartObstacles=b.getChartObstacles(q),A.options.connectors.algorithmMargin=q.algorithmMargin,b.chartObstacleMetrics=b.getObstacleMetrics(H)),L(this.fromPoint.getPathfinderAnchorPoint(q.startMarker),this.toPoint.getPathfinderAnchorPoint(q.endMarker),ne({chartObstacles:H,lineObstacles:b.lineObstacles||[],obstacleMetrics:b.chartObstacleMetrics,hardBounds:{xMin:0,xMax:A.plotWidth,yMin:0,yMax:A.plotHeight},obstacleOptions:{margin:q.algorithmMargin},startDirectionX:b.getAlgorithmStartDirection(q.startMarker)},q)))}render(){let q=this.fromPoint,b=q.series,A=b.chart,L=A.pathfinder,H={},Z=ne(A.options.connectors,b.options.connectors,q.options.connectors,this.options);!A.styledMode&&(H.stroke=Z.lineColor||q.color,H["stroke-width"]=Z.lineWidth,Z.dashStyle&&(H.dashstyle=Z.dashStyle)),H.class="highcharts-point-connecting-path highcharts-color-"+q.colorIndex,Kt((Z=ne(H,Z)).marker.radius)||(Z.marker.radius=jt(St(Math.ceil((Z.algorithmMargin||8)/2)-1,1),5));let X=this.getPath(Z),ut=X.path;X.obstacles&&(L.lineObstacles=L.lineObstacles||[],L.lineObstacles=L.lineObstacles.concat(X.obstacles)),this.renderPath(ut,H),this.addMarker("start",ne(Z.marker,Z.startMarker),ut),this.addMarker("end",ne(Z.marker,Z.endMarker),ut)}destroy(){this.graphics&&(te(this.graphics,function(q){q.destroy()}),delete this.graphics)}},{composed:ke}=Et(),{addEvent:ge,merge:Pe,pushUnique:we,wrap:Ue}=Et(),Ae={color:"#ccd3ff",width:2,label:{format:"%[abdYHM]",formatter:function(q,b){return this.axis.chart.time.dateFormat(b||"",q,!0)},rotation:0,style:{fontSize:"0.7em"}}};function Ke(){let q=this.options,b=q.currentDateIndicator;if(b){let A=typeof b=="object"?Pe(Ae,b):Pe(Ae);A.value=Date.now(),A.className="highcharts-current-date-indicator",q.plotLines||(q.plotLines=[]),q.plotLines.push(A)}}function Be(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}function _e(q,b){let A=this.options;return A&&A.className&&A.className.indexOf("highcharts-current-date-indicator")!==-1&&A.label&&typeof A.label.formatter=="function"?(A.value=Date.now(),A.label.formatter.call(this,A.value,A.label.format)):q.call(this,b)}var me=wt(960),Ei=wt.n(me);let{defaultOptions:di}=Et(),{isArray:Ai,merge:Di,splat:Ni}=Et();class bi extends Ei(){init(b,A){let L,H=b.xAxis,Z=b.yAxis;b.xAxis=b.yAxis=void 0;let X=Di(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},b,{isGantt:!0});b.xAxis=H,b.yAxis=Z,X.xAxis=(Ai(b.xAxis)?b.xAxis:[b.xAxis||{},{}]).map((ut,bt)=>{var Tt;return bt===1&&(L=0),Di({grid:{borderColor:"#cccccc",enabled:!0},opposite:((Tt=di.xAxis)==null?void 0:Tt.opposite)??ut.opposite??!0,linkedTo:L},ut,{type:"datetime"})}),X.yAxis=Ni(b.yAxis||{}).map(ut=>Di({grid:{borderColor:"#cccccc",enabled:!0},staticScale:50,reversed:!0,type:ut.categories?ut.type:"treegrid"},ut)),super.init(X,A)}}(function(q){q.ganttChart=function(b,A,L){return new q(b,A,L)}})(bi||(bi={}));let bn=bi;var Zi=wt(532),qi=wt.n(Zi);let{isTouchDevice:Ye}=Et(),{addEvent:sn,merge:Vi,pick:Ri}=Et(),lr=[];function tn(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function Xi(){var Z;let q,b,A,L=this.legend,H=this.navigator;if(H){q=L&&L.options,b=H.xAxis,A=H.yAxis;let{scrollbarHeight:X,scrollButtonSize:ut}=H;this.inverted?(H.left=H.opposite?this.chartWidth-X-H.height:this.spacing[3]+X,H.top=this.plotTop+ut):(H.left=Ri(b.left,this.plotLeft+ut),H.top=H.navigatorOptions.top||this.chartHeight-H.height-X-(((Z=this.scrollbar)==null?void 0:Z.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(q&&q.verticalAlign==="bottom"&&q.layout!=="proximate"&&q.enabled&&!q.floating?L.legendHeight+Ri(q.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),b&&A&&(this.inverted?b.options.left=A.options.left=H.left:b.options.top=A.options.top=H.top,b.setAxisSize(),A.setAxisSize())}}function on(q){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new I(this),Ri(q.redraw,!0)&&this.redraw(q.animation))}function In(){let q=this.options;(q.navigator.enabled||q.scrollbar.enabled)&&(this.scroller=this.navigator=new I(this))}function Ci(){let q=this.options,b=q.navigator,A=q.rangeSelector;if((b&&b.enabled||A&&A.enabled)&&(!Ye&&this.zooming.type==="x"||Ye&&this.zooming.pinchType==="x"))return!1}function dn(q){let b=q.navigator;if(b&&q.xAxis[0]){let A=q.xAxis[0].getExtremes();b.render(A.min,A.max)}}function cr(q){let b=q.options.navigator||{},A=q.options.scrollbar||{};!this.navigator&&!this.scroller&&(b.enabled||A.enabled)&&(Vi(!0,this.options.navigator,b),Vi(!0,this.options.scrollbar,A),delete q.options.navigator,delete q.options.scrollbar)}let gn={compose:function(q,b){if(Et().pushUnique(lr,q)){let A=q.prototype;I=b,A.callbacks.push(dn),sn(q,"afterAddSeries",tn),sn(q,"afterSetChartSize",Xi),sn(q,"afterUpdate",on),sn(q,"beforeRender",In),sn(q,"beforeShowResetZoom",Ci),sn(q,"update",cr)}}},{isTouchDevice:ti}=Et(),{addEvent:ai,correctFloat:ki,defined:_r,isNumber:xn,pick:Ho}=Et();function ei(){this.navigatorAxis||(this.navigatorAxis=new Sr(this))}function ts(q){let b,A=this.chart,L=A.options,H=L.navigator,Z=this.navigatorAxis,X=A.zooming.pinchType,ut=L.rangeSelector,bt=A.zooming.type;if(this.isXAxis&&(H!=null&&H.enabled||ut!=null&&ut.enabled)){if(bt==="y"&&q.trigger==="zoom")b=!1;else if((q.trigger==="zoom"&&bt==="xy"||ti&&X==="xy")&&this.options.range){let Tt=Z.previousZoom;_r(q.min)?Z.previousZoom=[this.min,this.max]:Tt&&(q.min=Tt[0],q.max=Tt[1],Z.previousZoom=void 0)}}b!==void 0&&q.preventDefault()}class Sr{static compose(b){b.keepProps.includes("navigatorAxis")||(b.keepProps.push("navigatorAxis"),ai(b,"init",ei),ai(b,"setExtremes",ts))}constructor(b){this.axis=b}destroy(){this.axis=void 0}toFixedRange(b,A,L,H){let Z=this.axis,X=(Z.pointRange||0)/2,ut=Ho(L,Z.translate(b,!0,!Z.horiz)),bt=Ho(H,Z.translate(A,!0,!Z.horiz));return _r(L)||(ut=ki(ut+X)),_r(H)||(bt=ki(bt-X)),xn(ut)&&xn(bt)||(ut=bt=void 0),{min:ut,max:bt}}}var es=wt(620),qs=wt.n(es),wr=wt(512),Ks=wt.n(wr);let{parse:Uc}=qs(),{seriesTypes:va}=Ks(),rl={height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:Uc("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:va.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}},{defined:Fc,isNumber:Tu,pick:Eu}=Et(),Au={rect:function(q,b,A,L,H){return H&&H.r?function(Z,X,ut,bt,Tt){let yt=(Tt==null?void 0:Tt.r)||0;return[["M",Z+yt,X],["L",Z+ut-yt,X],["A",yt,yt,0,0,1,Z+ut,X+yt],["L",Z+ut,X+bt-yt],["A",yt,yt,0,0,1,Z+ut-yt,X+bt],["L",Z+yt,X+bt],["A",yt,yt,0,0,1,Z,X+bt-yt],["L",Z,X+yt],["A",yt,yt,0,0,1,Z+yt,X],["Z"]]}(q,b,A,L,H):[["M",q,b],["L",q+A,b],["L",q+A,b+L],["L",q,b+L],["Z"]]}},{relativeLength:_l}=Et(),Gc={"navigator-handle":function(q,b,A,L,H={}){let Z=H.width?H.width/2:A,X=_l(H.borderRadius||0,Math.min(2*Z,L));return[["M",-1.5,(L=H.height||L)/2-3.5],["L",-1.5,L/2+4.5],["M",.5,L/2-3.5],["L",.5,L/2+4.5],...Au.rect(-Z-1,.5,2*Z+1,L,{r:X})]}};var hn=wt(608),nr=wt.n(hn);let{defined:Cr}=Et(),{setOptions:Sa}=Et(),{composed:wa}=Et(),{getRendererType:Wl}=nr(),{setFixedRange:Vl}={setFixedRange:function(q){let b=this.xAxis[0];Cr(b.dataMax)&&Cr(b.dataMin)&&q?this.fixedRange=Math.min(q,b.dataMax-b.dataMin):this.fixedRange=q}},{addEvent:Xl,extend:go,pushUnique:sl}=Et();function Uo(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let mo={compose:function(q,b,A){Sr.compose(b),sl(wa,"Navigator")&&(q.prototype.setFixedRange=Vl,go(Wl().prototype.symbols,Gc),Xl(A,"afterUpdate",Uo),Sa({navigator:rl}))}},{composed:yo}=Et(),{addEvent:Zs,defined:pi,pick:bo,pushUnique:Yl}=Et();(function(q){let b;function A(X){let ut=bo(X.options&&X.options.min,X.min),bt=bo(X.options&&X.options.max,X.max);return{axisMin:ut,axisMax:bt,scrollMin:pi(X.dataMin)?Math.min(ut,X.min,X.dataMin,bo(X.threshold,1/0)):ut,scrollMax:pi(X.dataMax)?Math.max(bt,X.max,X.dataMax,bo(X.threshold,-1/0)):bt}}function L(){let X=this.scrollbar,ut=X&&!X.options.opposite,bt=this.horiz?2:ut?3:1;X&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[bt]+=X.size+(X.options.margin||0))}function H(){let X=this;X.options&&X.options.scrollbar&&X.options.scrollbar.enabled&&(X.options.scrollbar.vertical=!X.horiz,X.options.startOnTick=X.options.endOnTick=!1,X.scrollbar=new b(X.chart.renderer,X.options.scrollbar,X.chart),Zs(X.scrollbar,"changed",function(ut){let bt,Tt,{axisMin:yt,axisMax:Ct,scrollMin:pt,scrollMax:vt}=A(X),mt=vt-pt;if(pi(yt)&&pi(Ct))if(X.horiz&&!X.reversed||!X.horiz&&X.reversed?(bt=pt+mt*this.to,Tt=pt+mt*this.from):(bt=pt+mt*(1-this.from),Tt=pt+mt*(1-this.to)),this.shouldUpdateExtremes(ut.DOMType)){let kt=ut.DOMType!=="mousemove"&&ut.DOMType!=="touchmove"&&void 0;X.setExtremes(Tt,bt,!0,kt,ut)}else this.setRange(this.from,this.to)}))}function Z(){let X,ut,bt,{scrollMin:Tt,scrollMax:yt}=A(this),Ct=this.scrollbar,pt=this.axisTitleMargin+(this.titleOffset||0),vt=this.chart.scrollbarsOffsets,mt=this.options.margin||0;if(Ct&&vt){if(this.horiz)this.opposite||(vt[1]+=pt),Ct.position(this.left,this.top+this.height+2+vt[1]-(this.opposite?mt:0),this.width,this.height),this.opposite||(vt[1]+=mt),X=1;else{let kt;this.opposite&&(vt[0]+=pt),kt=Ct.options.opposite?this.left+this.width+2+vt[0]-(this.opposite?0:mt):this.opposite?0:mt,Ct.position(kt,this.top,this.width,this.height),this.opposite&&(vt[0]+=mt),X=0}if(vt[X]+=Ct.size+(Ct.options.margin||0),isNaN(Tt)||isNaN(yt)||!pi(this.min)||!pi(this.max)||this.dataMin===this.dataMax)Ct.setRange(0,1);else if(this.min===this.max){let kt=this.pointRange/(this.dataMax+1);ut=kt*this.min,bt=kt*(this.max+1),Ct.setRange(ut,bt)}else ut=(this.min-Tt)/(yt-Tt),bt=(this.max-Tt)/(yt-Tt),this.horiz&&!this.reversed||!this.horiz&&this.reversed?Ct.setRange(ut,bt):Ct.setRange(1-bt,1-ut)}}q.compose=function(X,ut){Yl(yo,"Axis.Scrollbar")&&(b=ut,Zs(X,"afterGetOffset",L),Zs(X,"afterInit",H),Zs(X,"afterRender",Z))}})(_||(_={}));let Fo=_,Qs={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:ms}=Et(),{addEvent:Md,correctFloat:Js,crisp:ol,defined:Ru,destroyObjectProperties:ql,fireEvent:xo,merge:Lr,pick:Vn,removeEvent:_c}=Et();class ys{static compose(b){Fo.compose(b,ys)}static swapXY(b,A){return A&&b.forEach(L=>{let H,Z=L.length;for(let X=0;X<Z;X+=2)typeof(H=L[X+1])=="number"&&(L[X+1]=L[X+2],L[X+2]=H)}),b}constructor(b,A,L){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(b,A,L)}addEvents(){let b=this.options.inverted?[1,0]:[0,1],A=this.scrollbarButtons,L=this.scrollbarGroup.element,H=this.track.element,Z=this.mouseDownHandler.bind(this),X=this.mouseMoveHandler.bind(this),ut=this.mouseUpHandler.bind(this),bt=[[A[b[0]].element,"click",this.buttonToMinClick.bind(this)],[A[b[1]].element,"click",this.buttonToMaxClick.bind(this)],[H,"click",this.trackClick.bind(this)],[L,"mousedown",Z],[L.ownerDocument,"mousemove",X],[L.ownerDocument,"mouseup",ut],[L,"touchstart",Z],[L.ownerDocument,"touchmove",X],[L.ownerDocument,"touchend",ut]];bt.forEach(function(Tt){Md.apply(null,Tt)}),this._events=bt}buttonToMaxClick(b){let A=(this.to-this.from)*Vn(this.options.step,.2);this.updatePosition(this.from+A,this.to+A),xo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})}buttonToMinClick(b){let A=Js(this.to-this.from)*Vn(this.options.step,.2);this.updatePosition(Js(this.from-A),Js(this.to-A)),xo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})}cursorToScrollbarPosition(b){let A=this.options,L=A.minWidth>this.calculatedWidth?A.minWidth:0;return{chartX:(b.chartX-this.x-this.xOffset)/(this.barWidth-L),chartY:(b.chartY-this.y-this.yOffset)/(this.barWidth-L)}}destroy(){let b=this,A=b.chart.scroller;b.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(L){b[L]&&b[L].destroy&&(b[L]=b[L].destroy())}),A&&b===A.scrollbar&&(A.scrollbar=null,ql(A.scrollbarButtons))}drawScrollbarButton(b){let A=this.renderer,L=this.scrollbarButtons,H=this.options,Z=this.size,X=A.g().add(this.group);if(L.push(X),H.buttonsEnabled){let ut=A.rect().addClass("highcharts-scrollbar-button").add(X);this.chart.styledMode||ut.attr({stroke:H.buttonBorderColor,"stroke-width":H.buttonBorderWidth,fill:H.buttonBackgroundColor}),ut.attr(ut.crisp({x:-.5,y:-.5,width:Z,height:Z,r:H.buttonBorderRadius},ut.strokeWidth()));let bt=A.path(ys.swapXY([["M",Z/2+(b?-1:1),Z/2-3],["L",Z/2+(b?-1:1),Z/2+3],["L",Z/2+(b?2:-2),Z/2]],H.vertical)).addClass("highcharts-scrollbar-arrow").add(L[b]);this.chart.styledMode||bt.attr({fill:H.buttonArrowColor})}}init(b,A,L){this.scrollbarButtons=[],this.renderer=b,this.userOptions=A,this.options=Lr(Qs,ms.scrollbar,A),this.options.margin=Vn(this.options.margin,10),this.chart=L,this.size=Vn(this.options.size,this.options.height),A.enabled&&(this.render(),this.addEvents())}mouseDownHandler(b){var H;let A=((H=this.chart.pointer)==null?void 0:H.normalize(b))||b,L=this.cursorToScrollbarPosition(A);this.chartX=L.chartX,this.chartY=L.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(b){var X;let A,L=((X=this.chart.pointer)==null?void 0:X.normalize(b))||b,H=this.options.vertical?"chartY":"chartX",Z=this.initPositions||[];this.grabbedCenter&&(!b.touches||b.touches[0][H]!==0)&&(A=this.cursorToScrollbarPosition(L)[H]-this[H],this.hasDragged=!0,this.updatePosition(Z[0]+A,Z[1]+A),this.hasDragged&&xo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))}mouseUpHandler(b){this.hasDragged&&xo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(b,A,L,H){let{buttonsEnabled:Z,margin:X=0,vertical:ut}=this.options,bt=this.rendered?"animate":"attr",Tt=H,yt=0;this.group.show(),this.x=b,this.y=A+this.trackBorderWidth,this.width=L,this.height=H,this.xOffset=Tt,this.yOffset=yt,ut?(this.width=this.yOffset=L=yt=this.size,this.xOffset=Tt=0,this.yOffset=yt=Z?this.size:0,this.barWidth=H-(Z?2*L:0),this.x=b+=X):(this.height=H=this.size,this.xOffset=Tt=Z?this.size:0,this.barWidth=L-(Z?2*H:0),this.y=this.y+X),this.group[bt]({translateX:b,translateY:this.y}),this.track[bt]({width:L,height:H}),this.scrollbarButtons[1][bt]({translateX:ut?0:L-Tt,translateY:ut?H-yt:0})}removeEvents(){this._events.forEach(function(b){_c.apply(null,b)}),this._events.length=0}render(){let b=this.renderer,A=this.options,L=this.size,H=this.chart.styledMode,Z=b.g("scrollbar").attr({zIndex:A.zIndex}).hide().add();this.group=Z,this.track=b.rect().addClass("highcharts-scrollbar-track").attr({r:A.trackBorderRadius||0,height:L,width:L}).add(Z),H||this.track.attr({fill:A.trackBackgroundColor,stroke:A.trackBorderColor,"stroke-width":A.trackBorderWidth});let X=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-ol(0,X),y:-ol(0,X)}),this.scrollbarGroup=b.g().add(Z),this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:L-X,width:L-X,r:A.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=b.path(ys.swapXY([["M",-3,L/4],["L",-3,2*L/3],["M",0,L/4],["L",0,2*L/3],["M",3,L/4],["L",3,2*L/3]],A.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),H||(this.scrollbar.attr({fill:A.barBackgroundColor,stroke:A.barBorderColor,"stroke-width":A.barBorderWidth}),this.scrollbarRifles.attr({stroke:A.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-ol(0,this.scrollbarStrokeWidth),-ol(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(b,A){let L,H,Z=this.options,X=Z.vertical,ut=Z.minWidth,bt=this.barWidth,Tt=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!Ru(bt))return;let yt=bt*Math.min(A,1);L=Math.ceil(bt*(b=Math.max(b,0))),this.calculatedWidth=H=Js(yt-L),H<ut&&(L=(bt-ut+H)*b,H=ut);let Ct=Math.floor(L+this.xOffset+this.yOffset),pt=H/2-.5;this.from=b,this.to=A,X?(this.scrollbarGroup[Tt]({translateY:Ct}),this.scrollbar[Tt]({height:H}),this.scrollbarRifles[Tt]({translateY:pt}),this.scrollbarTop=Ct,this.scrollbarLeft=0):(this.scrollbarGroup[Tt]({translateX:Ct}),this.scrollbar[Tt]({width:H}),this.scrollbarRifles[Tt]({translateX:pt}),this.scrollbarLeft=Ct,this.scrollbarTop=0),H<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),Z.showFull===!1&&(b<=0&&A>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(b){return Vn(this.options.liveRedraw,Et().svg&&!Et().isTouchDevice&&!this.chart.boosted)||b==="mouseup"||b==="touchend"||!Ru(b)}trackClick(b){var X;let A=((X=this.chart.pointer)==null?void 0:X.normalize(b))||b,L=this.to-this.from,H=this.y+this.scrollbarTop,Z=this.x+this.scrollbarLeft;this.options.vertical&&A.chartY>H||!this.options.vertical&&A.chartX>Z?this.updatePosition(this.from+L,this.to+L):this.updatePosition(this.from-L,this.to-L),xo(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})}update(b){this.destroy(),this.init(this.chart.renderer,Lr(!0,this.options,b),this.chart)}updatePosition(b,A){A>1&&(b=Js(1-Js(A-b)),A=1),b<0&&(A=Js(A-b),b=0),this.from=b,this.to=A}}ys.defaultOptions=Qs,ms.scrollbar=Lr(!0,ys.defaultOptions,ms.scrollbar);var Go=wt(540),Ir=wt.n(Go);let{defaultOptions:is}=Et(),{isTouchDevice:Ou}=Et(),{prototype:{symbols:Wr}}=Ir(),{addEvent:Nn,clamp:Ca,correctFloat:Nr,defined:ns,destroyObjectProperties:Kl,erase:vo,extend:_o,find:ka,fireEvent:Zl,isArray:Ma,isNumber:rs,merge:Ta,pick:Vr,removeEvent:to,splat:Ql}=Et();function Rs(q,...b){let A=[].filter.call(b,rs);if(A.length)return Math[q].apply(0,A)}class bs{static compose(b,A,L){gn.compose(b,bs),mo.compose(b,A,L)}constructor(b){this.isDirty=!1,this.scrollbarHeight=0,this.init(b)}drawHandle(b,A,L,H){let Z=this.navigatorOptions.handles.height;this.handles[A][H](L?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(b,10)+.5-Z)}:{translateX:Math.round(this.left+parseInt(b,10)),translateY:Math.round(this.top+this.height/2-Z/2-1)})}drawOutline(b,A,L,H){let Z=this.navigatorOptions.maskInside,X=this.outline.strokeWidth(),ut=X/2,bt=X%2/2,Tt=this.scrollButtonSize,yt=this.size,Ct=this.top,pt=this.height,vt=Ct-ut,mt=Ct+pt,kt=this.left,Pt,Gt;L?(Pt=Ct+A+bt,A=Ct+b+bt,Gt=[["M",kt+pt,Ct-Tt-bt],["L",kt+pt,Pt],["L",kt,Pt],["M",kt,A],["L",kt+pt,A],["L",kt+pt,Ct+yt+Tt]],Z&&Gt.push(["M",kt+pt,Pt-ut],["L",kt+pt,A+ut])):(kt-=Tt,b+=kt+Tt-bt,A+=kt+Tt-bt,Gt=[["M",kt,vt],["L",b,vt],["L",b,mt],["M",A,mt],["L",A,vt],["L",kt+yt+2*Tt,vt]],Z&&Gt.push(["M",b-ut,vt],["L",A+ut,vt])),this.outline[H]({d:Gt})}drawMasks(b,A,L,H){let Z,X,ut,bt,Tt=this.left,yt=this.top,Ct=this.height;L?(ut=[Tt,Tt,Tt],bt=[yt,yt+b,yt+A],X=[Ct,Ct,Ct],Z=[b,A-b,this.size-A]):(ut=[Tt,Tt+b,Tt+A],bt=[yt,yt,yt],X=[b,A-b,this.size-A],Z=[Ct,Ct,Ct]),this.shades.forEach((pt,vt)=>{pt[H]({x:ut[vt],y:bt[vt],width:X[vt],height:Z[vt]})})}renderElements(){var Tt;let b=this,A=b.navigatorOptions,L=A.maskInside,H=b.chart,Z=H.inverted,X=H.renderer,ut={cursor:Z?"ns-resize":"ew-resize"},bt=b.navigatorGroup??(b.navigatorGroup=X.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!L,L,!L].forEach((yt,Ct)=>{let pt=b.shades[Ct]??(b.shades[Ct]=X.rect().addClass("highcharts-navigator-mask"+(Ct===1?"-inside":"-outside")).add(bt));H.styledMode||(pt.attr({fill:yt?A.maskFill:"rgba(0,0,0,0)"}),Ct===1&&pt.css(ut))}),b.outline||(b.outline=X.path().addClass("highcharts-navigator-outline").add(bt)),H.styledMode||b.outline.attr({"stroke-width":A.outlineWidth,stroke:A.outlineColor}),(Tt=A.handles)==null?void 0:Tt.enabled){let yt=A.handles,{height:Ct,width:pt}=yt;[0,1].forEach(vt=>{var kt;let mt=yt.symbols[vt];if(b.handles[vt]&&b.handles[vt].symbolUrl===mt){if(!b.handles[vt].isImg&&b.handles[vt].symbolName!==mt){let Pt=Wr[mt].call(Wr,-pt/2-1,0,pt,Ct);b.handles[vt].attr({d:Pt}),b.handles[vt].symbolName=mt}}else(kt=b.handles[vt])==null||kt.destroy(),b.handles[vt]=X.symbol(mt,-pt/2-1,0,pt,Ct,yt),b.handles[vt].attr({zIndex:7-vt}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][vt]).add(bt),b.addMouseEvents();H.inverted&&b.handles[vt].attr({rotation:90,rotationOriginX:Math.floor(-pt/2),rotationOriginY:(Ct+pt)/2}),H.styledMode||b.handles[vt].attr({fill:yt.backgroundColor,stroke:yt.borderColor,"stroke-width":yt.lineWidth,width:yt.width,height:yt.height,x:-pt/2-1,y:0}).css(ut)})}}update(b,A=!1){var Z;let L=this.chart,H=L.options.chart.inverted!==((Z=L.scrollbar)==null?void 0:Z.options.vertical);if(Ta(!0,L.options.navigator,b),this.navigatorOptions=L.options.navigator||{},this.setOpposite(),ns(b.enabled)||H)return this.destroy(),this.navigatorEnabled=b.enabled||this.navigatorEnabled,this.init(L);if(this.navigatorEnabled&&(this.isDirty=!0,b.adaptToUpdatedData===!1&&this.baseSeries.forEach(X=>{to(X,"updatedData",this.updatedDataHandler)},this),b.adaptToUpdatedData&&this.baseSeries.forEach(X=>{X.eventsToUnbind.push(Nn(X,"updatedData",this.updatedDataHandler))},this),(b.series||b.baseSeries)&&this.setBaseSeries(void 0,!1),b.height||b.xAxis||b.yAxis)){this.height=b.height??this.height;let X=this.getXAxisOffsets();this.xAxis.update({...b.xAxis,offsets:X,[L.inverted?"width":"height"]:this.height,[L.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...b.yAxis,[L.inverted?"width":"height"]:this.height},!1)}A&&L.redraw()}render(b,A,L,H){let Z=this.chart,X=this.xAxis,ut=X.pointRange||0,bt=X.navigatorAxis.fake?Z.xAxis[0]:X,Tt=this.navigatorEnabled,yt=this.rendered,Ct=Z.inverted,pt=Z.xAxis[0].minRange,vt=Z.xAxis[0].options.maxRange,mt=this.scrollButtonSize,kt,Pt,Gt,oe=this.scrollbarHeight,fe,Qt;if(this.hasDragged&&!ns(L))return;if(this.isDirty&&this.renderElements(),b=Nr(b-ut/2),A=Nr(A+ut/2),!rs(b)||!rs(A)){if(!yt)return;L=0,H=Vr(X.width,bt.width)}this.left=Vr(X.left,Z.plotLeft+mt+(Ct?Z.plotWidth:0));let ae=this.size=fe=Vr(X.len,(Ct?Z.plotHeight:Z.plotWidth)-2*mt);kt=Ct?oe:fe+2*mt,L=Vr(L,X.toPixels(b,!0)),H=Vr(H,X.toPixels(A,!0)),rs(L)&&Math.abs(L)!==1/0||(L=0,H=kt);let Oe=X.toValue(L,!0),ce=X.toValue(H,!0),ye=Math.abs(Nr(ce-Oe));ye<pt?this.grabbedLeft?L=X.toPixels(ce-pt-ut,!0):this.grabbedRight&&(H=X.toPixels(Oe+pt+ut,!0)):ns(vt)&&Nr(ye-ut)>vt&&(this.grabbedLeft?L=X.toPixels(ce-vt-ut,!0):this.grabbedRight&&(H=X.toPixels(Oe+vt+ut,!0))),this.zoomedMax=Ca(Math.max(L,H),0,ae),this.zoomedMin=Ca(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(L,H),0,ae),this.range=this.zoomedMax-this.zoomedMin,ae=Math.round(this.zoomedMax);let Te=Math.round(this.zoomedMin);Tt&&(this.navigatorGroup.attr({visibility:"inherit"}),Qt=yt&&!this.hasDragged?"animate":"attr",this.drawMasks(Te,ae,Ct,Qt),this.drawOutline(Te,ae,Ct,Qt),this.navigatorOptions.handles.enabled&&(this.drawHandle(Te,0,Ct,Qt),this.drawHandle(ae,1,Ct,Qt))),this.scrollbar&&(Ct?(Gt=this.top-mt,Pt=this.left-oe+(Tt||!bt.opposite?0:(bt.titleOffset||0)+bt.axisTitleMargin),oe=fe+2*mt):(Gt=this.top+(Tt?this.height:-oe),Pt=this.left-mt),this.scrollbar.position(Pt,Gt,kt,oe),this.scrollbar.setRange(this.zoomedMin/(fe||1),this.zoomedMax/(fe||1))),this.rendered=!0,this.isDirty=!1,Zl(this,"afterRender")}addMouseEvents(){let b=this,A=b.chart,L=A.container,H=[],Z,X;b.mouseMoveHandler=Z=function(ut){b.onMouseMove(ut)},b.mouseUpHandler=X=function(ut){b.onMouseUp(ut)},(H=b.getPartsEvents("mousedown")).push(Nn(A.renderTo,"mousemove",Z),Nn(L.ownerDocument,"mouseup",X),Nn(A.renderTo,"touchmove",Z),Nn(L.ownerDocument,"touchend",X)),H.concat(b.getPartsEvents("touchstart")),b.eventsToUnbind=H,b.series&&b.series[0]&&H.push(Nn(b.series[0].xAxis,"foundExtremes",function(){A.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(b){let A=this,L=[];return["shades","handles"].forEach(function(H){A[H].forEach(function(Z,X){L.push(Nn(Z.element,b,function(ut){A[H+"Mousedown"](ut,X)}))})}),L}shadesMousedown(b,A){var mt;b=((mt=this.chart.pointer)==null?void 0:mt.normalize(b))||b;let L=this.chart,H=this.xAxis,Z=this.zoomedMin,X=this.size,ut=this.range,bt=this.left,Tt=b.chartX,yt,Ct,pt,vt;L.inverted&&(Tt=b.chartY,bt=this.top),A===1?(this.grabbedCenter=Tt,this.fixedWidth=ut,this.dragOffset=Tt-Z):(vt=Tt-bt-ut/2,A===0?vt=Math.max(0,vt):A===2&&vt+ut>=X&&(vt=X-ut,this.reversedExtremes?(vt-=ut,Ct=this.getUnionExtremes().dataMin):yt=this.getUnionExtremes().dataMax),vt!==Z&&(this.fixedWidth=ut,ns((pt=H.navigatorAxis.toFixedRange(vt,vt+ut,Ct,yt)).min)&&Zl(this,"setRange",{min:Math.min(pt.min,pt.max),max:Math.max(pt.min,pt.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(b,A){var X;b=((X=this.chart.pointer)==null?void 0:X.normalize(b))||b;let L=this.chart,H=L.xAxis[0],Z=this.reversedExtremes;A===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=Z?H.min:H.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=Z?H.max:H.min),L.setFixedRange(void 0)}onMouseMove(b){var yt;let A=this,L=A.chart,H=A.navigatorSize,Z=A.range,X=A.dragOffset,ut=L.inverted,bt=A.left,Tt;(!b.touches||b.touches[0].pageX!==0)&&(Tt=(b=((yt=L.pointer)==null?void 0:yt.normalize(b))||b).chartX,ut&&(bt=A.top,Tt=b.chartY),A.grabbedLeft?(A.hasDragged=!0,A.render(0,0,Tt-bt,A.otherHandlePos)):A.grabbedRight?(A.hasDragged=!0,A.render(0,0,A.otherHandlePos,Tt-bt)):A.grabbedCenter&&(A.hasDragged=!0,Tt<X?Tt=X:Tt>H+X-Z&&(Tt=H+X-Z),A.render(0,0,Tt-X,Tt-X+Z)),A.hasDragged&&A.scrollbar&&Vr(A.scrollbar.options.liveRedraw,!Ou&&!this.chart.boosted)&&(b.DOMType=b.type,setTimeout(function(){A.onMouseUp(b)},0)))}onMouseUp(b){let A,L,H,Z,X,ut,bt=this.chart,Tt=this.xAxis,yt=this.scrollbar,Ct=b.DOMEvent||b,pt=bt.inverted,vt=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!yt||!yt.hasDragged)||b.trigger==="scrollbar")&&(H=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?Z=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(X=this.fixedExtreme),this.zoomedMax===this.size&&(X=this.reversedExtremes?H.dataMin:H.dataMax),this.zoomedMin===0&&(Z=this.reversedExtremes?H.dataMax:H.dataMin),ns((ut=Tt.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,Z,X)).min)&&Zl(this,"setRange",{min:Math.min(ut.min,ut.max),max:Math.max(ut.min,ut.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:Ct}})),b.DOMType!=="mousemove"&&b.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&rs(this.zoomedMin)&&rs(this.zoomedMax)&&(L=Math.round(this.zoomedMin),A=Math.round(this.zoomedMax),this.shades&&this.drawMasks(L,A,pt,vt),this.outline&&this.drawOutline(L,A,pt,vt),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(L,0,pt,vt),this.drawHandle(A,1,pt,vt)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let b=this.baseSeries||[];this.navigatorEnabled&&b[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&b.forEach(function(A){to(A,"updatedData",this.updatedDataHandler)},this),b[0].xAxis&&to(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(b){var kt;let A=b.options,L=A.navigator||{},H=L.enabled,Z=A.scrollbar||{},X=Z.enabled,ut=H&&L.height||0,bt=X&&Z.height||0,Tt=Z.buttonsEnabled&&bt||0;this.handles=[],this.shades=[],this.chart=b,this.setBaseSeries(),this.height=ut,this.scrollbarHeight=bt,this.scrollButtonSize=Tt,this.scrollbarEnabled=X,this.navigatorEnabled=H,this.navigatorOptions=L,this.scrollbarOptions=Z,this.setOpposite();let yt=this,Ct=yt.baseSeries,pt=b.xAxis.length,vt=b.yAxis.length,mt=Ct&&Ct[0]&&Ct[0].xAxis||b.xAxis[0]||{options:{}};if(b.isDirtyBox=!0,yt.navigatorEnabled){let Pt=this.getXAxisOffsets();yt.xAxis=new(qi())(b,Ta({breaks:mt.options.breaks,ordinal:mt.options.ordinal,overscroll:mt.options.overscroll},L.xAxis,{type:"datetime",yAxis:(kt=L.yAxis)==null?void 0:kt.id,index:pt,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:mt.options.ordinal?0:mt.options.minPadding,maxPadding:mt.options.ordinal?0:mt.options.maxPadding,zoomEnabled:!1},b.inverted?{offsets:Pt,width:ut}:{offsets:Pt,height:ut}),"xAxis"),yt.yAxis=new(qi())(b,Ta(L.yAxis,{alignTicks:!1,offset:0,index:vt,isInternal:!0,reversed:Vr(L.yAxis&&L.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:ut}:{height:ut}),"yAxis"),Ct||L.series.data?yt.updateNavigatorSeries(!1):b.series.length===0&&(yt.unbindRedraw=Nn(b,"beforeRedraw",function(){b.series.length>0&&!yt.series&&(yt.setBaseSeries(),yt.unbindRedraw())})),yt.reversedExtremes=b.inverted&&!yt.xAxis.reversed||!b.inverted&&yt.xAxis.reversed,yt.renderElements(),yt.addMouseEvents()}else yt.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(Pt,Gt){let oe=b.xAxis[0],fe=oe.getExtremes(),Qt=oe.len-2*Tt,ae=Rs("min",oe.options.min,fe.dataMin),Oe=Rs("max",oe.options.max,fe.dataMax)-ae;return Gt?Pt*Oe/Qt+ae:Qt*(Pt-ae)/Oe},toPixels:function(Pt){return this.translate(Pt)},toValue:function(Pt){return this.translate(Pt,!0)}},yt.xAxis.navigatorAxis.axis=yt.xAxis,yt.xAxis.navigatorAxis.toFixedRange=Sr.prototype.toFixedRange.bind(yt.xAxis.navigatorAxis);if(b.options.scrollbar.enabled){let Pt=Ta(b.options.scrollbar,{vertical:b.inverted});!rs(Pt.margin)&&yt.navigatorEnabled&&(Pt.margin=b.inverted?-3:3),b.scrollbar=yt.scrollbar=new ys(b.renderer,Pt,b),Nn(yt.scrollbar,"changed",function(Gt){let oe=yt.size,fe=oe*this.to,Qt=oe*this.from;yt.hasDragged=yt.scrollbar.hasDragged,yt.render(0,0,Qt,fe),this.shouldUpdateExtremes(Gt.DOMType)&&setTimeout(function(){yt.onMouseUp(Gt)})})}yt.addBaseSeriesEvents(),yt.addChartEvents()}setOpposite(){let b=this.navigatorOptions,A=this.navigatorEnabled,L=this.chart;this.opposite=Vr(b.opposite,!!(!A&&L.inverted))}getUnionExtremes(b){let A,L=this.chart.xAxis[0],H=this.chart.time,Z=this.xAxis,X=Z.options,ut=L.options;return b&&L.dataMin===null||(A={dataMin:Vr(H.parse(X==null?void 0:X.min),Rs("min",H.parse(ut.min),L.dataMin,Z.dataMin,Z.min)),dataMax:Vr(H.parse(X==null?void 0:X.max),Rs("max",H.parse(ut.max),L.dataMax,Z.dataMax,Z.max))}),A}setBaseSeries(b,A){let L=this.chart,H=this.baseSeries=[];b=b||L.options&&L.options.navigator.baseSeries||(L.series.length?ka(L.series,Z=>!Z.options.isInternal).index:0),(L.series||[]).forEach((Z,X)=>{!Z.options.isInternal&&(Z.options.showInNavigator||(X===b||Z.options.id===b)&&Z.options.showInNavigator!==!1)&&H.push(Z)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,A)}updateNavigatorSeries(b,A){var pt,vt;let L=this,H=L.chart,Z=L.baseSeries,X={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:(pt=this.navigatorOptions.xAxis)==null?void 0:pt.id,yAxis:(vt=this.navigatorOptions.yAxis)==null?void 0:vt.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},ut=L.series=(L.series||[]).filter(mt=>{let kt=mt.baseSeries;return!(0>Z.indexOf(kt))||(kt&&(to(kt,"updatedData",L.updatedDataHandler),delete kt.navigatorSeries),mt.chart&&mt.destroy(),!1)}),bt,Tt,yt=L.navigatorOptions.series,Ct;Z&&Z.length&&Z.forEach(mt=>{var oe;let kt=mt.navigatorSeries,Pt=_o({color:mt.color,visible:mt.visible},Ma(yt)?is.navigator.series:yt);if(kt&&L.navigatorOptions.adaptToUpdatedData===!1)return;X.name="Navigator "+Z.length,Ct=(bt=mt.options||{}).navigatorOptions||{},Pt.dataLabels=Ql(Pt.dataLabels),(Tt=Ta(bt,X,Pt,Ct)).pointRange=Vr(Pt.pointRange,Ct.pointRange,is.plotOptions[Tt.type||"line"].pointRange);let Gt=Ct.data||Pt.data;L.hasNavigatorData=L.hasNavigatorData||!!Gt,Tt.data=Gt||((oe=bt.data)==null?void 0:oe.slice(0)),kt&&kt.options?kt.update(Tt,A):(mt.navigatorSeries=H.initSeries(Tt),H.setSortedData(),mt.navigatorSeries.baseSeries=mt,ut.push(mt.navigatorSeries))}),(yt.data&&!(Z&&Z.length)||Ma(yt))&&(L.hasNavigatorData=!1,(yt=Ql(yt)).forEach((mt,kt)=>{X.name="Navigator "+(ut.length+1),(Tt=Ta(is.navigator.series,{color:H.series[kt]&&!H.series[kt].options.isInternal&&H.series[kt].color||H.options.colors[kt]||H.options.colors[0]},X,mt)).data=mt.data,Tt.data&&(L.hasNavigatorData=!0,ut.push(H.initSeries(Tt)))})),b&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let b=this,A=b.baseSeries||[];A[0]&&A[0].xAxis&&A[0].eventsToUnbind.push(Nn(A[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),A.forEach(L=>{L.eventsToUnbind.push(Nn(L,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),L.eventsToUnbind.push(Nn(L,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&L.xAxis&&L.eventsToUnbind.push(Nn(L,"updatedData",this.updatedDataHandler)),L.eventsToUnbind.push(Nn(L,"remove",function(){A&&vo(A,L),this.navigatorSeries&&b.series&&(vo(b.series,this.navigatorSeries),ns(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(b){return this.baseSeries.reduce(function(A,L){return Math.min(A,L.getColumn("x")[0]??A)},b)}modifyNavigatorAxisExtremes(){let b=this.xAxis;if(b.getExtremes!==void 0){let A=this.getUnionExtremes(!0);A&&(A.dataMin!==b.min||A.dataMax!==b.max)&&(b.min=A.dataMin,b.max=A.dataMax)}}modifyBaseAxisExtremes(){var kt;let b,A,L=this.chart.navigator,H=this.getExtremes(),Z=H.min,X=H.max,ut=H.dataMin,bt=H.dataMax,Tt=X-Z,yt=L.stickToMin,Ct=L.stickToMax,pt=Vr((kt=this.ordinal)==null?void 0:kt.convertOverscroll(this.options.overscroll),0),vt=L.series&&L.series[0],mt=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(yt&&(b=(A=ut)+Tt),Ct&&(b=bt+pt,yt||(A=Math.max(ut,b-Tt,L.getBaseSeriesMin(vt&&vt.xData?vt.xData[0]:-Number.MAX_VALUE)))),mt&&(yt||Ct)&&rs(A)&&(this.min=this.userMin=A,this.max=this.userMax=b)),L.stickToMin=L.stickToMax=null}updatedDataHandler(){let b=this.chart.navigator,A=this.navigatorSeries,L=b.reversedExtremes?Math.round(b.zoomedMin)===0:Math.round(b.zoomedMax)>=Math.round(b.size);b.stickToMax=Vr(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,L),b.stickToMin=b.shouldStickToMin(this,b),A&&!b.hasNavigatorData&&(A.options.pointStart=this.getColumn("x")[0],A.setData(this.options.data,!1,null,!1))}shouldStickToMin(b,A){let L=A.getBaseSeriesMin(b.getColumn("x")[0]),H=b.xAxis,Z=H.max,X=H.min,ut=H.options.range;return!!(rs(Z)&&rs(X))&&(ut&&Z-L>0?Z-L<ut:X<=L)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(Nn(this.chart,"redraw",function(){let b=this.navigator,A=b&&(b.baseSeries&&b.baseSeries[0]&&b.baseSeries[0].xAxis||this.xAxis[0]);A&&b.render(A.min,A.max)}),Nn(this.chart,"getMargins",function(){let b=this.navigator,A=b.opposite?"plotTop":"marginBottom";this.inverted&&(A=b.opposite?"marginRight":"plotLeft"),this[A]=(this[A]||0)+(b.navigatorEnabled||!this.inverted?b.height+b.scrollbarHeight:0)+b.navigatorOptions.margin}),Nn(bs,"setRange",function(b){this.chart.xAxis[0].setExtremes(b.min,b.max,b.redraw,b.animation,b.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(vo(this.chart.xAxis,this.xAxis),vo(this.chart.axes,this.xAxis)),this.yAxis&&(vo(this.chart.yAxis,this.yAxis),vo(this.chart.axes,this.yAxis)),(this.series||[]).forEach(b=>{b.destroy&&b.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(b=>{this[b]&&this[b].destroy&&this[b].destroy(),this[b]=null}),[this.handles].forEach(b=>{Kl(b)}),this.navigatorEnabled=!1}}let Xn={lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}},{defaultOptions:Jl}=Et(),{composed:So}=Et(),{addEvent:Os,defined:Wo,extend:Vo,isNumber:xs,merge:wo,pick:tc,pushUnique:Ea}=Et(),Aa=[];function eo(){let q,b,A=this.range,L=A.type,H=this.max,Z=this.chart.time,X=function(bt,Tt){let yt=Z.toParts(bt),Ct=yt.slice();L==="year"?Ct[0]+=Tt:Ct[1]+=Tt;let pt=Z.makeTime.apply(Z,Ct),vt=Z.toParts(pt);return L==="month"&&yt[1]===vt[1]&&Math.abs(Tt)===1&&(Ct[0]=yt[0],Ct[1]=yt[1],Ct[2]=0),(pt=Z.makeTime.apply(Z,Ct))-bt};xs(A)?(q=H-A,b=A):A&&(q=H+X(H,-(A.count||1)),this.chart&&this.chart.setFixedRange(H-q));let ut=tc(this.dataMin,Number.MIN_VALUE);return xs(q)||(q=ut),q<=ut&&(q=ut,b===void 0&&(b=X(q,A.count)),this.newMax=Math.min(q+b,tc(this.dataMax,Number.MAX_VALUE))),xs(H)?!xs(A)&&A&&A._offsetMin&&(q+=A._offsetMin):q=void 0,q}function zr(){var q;(q=this.rangeSelector)==null||q.redrawElements()}function ec(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new F(this))}function Xr(){let q=this.rangeSelector;if(q){xs(q.deferredYTDClick)&&(q.clickButton(q.deferredYTDClick),delete q.deferredYTDClick);let b=q.options.verticalAlign;q.options.floating||(b==="bottom"?this.extraBottomMargin=!0:b!=="top"||(this.extraTopMargin=!0))}}function Xo(){let q,b=this.rangeSelector;if(!b)return;let A=this.xAxis[0].getExtremes(),L=this.legend,H=b&&b.options.verticalAlign;xs(A.min)&&b.render(A.min,A.max),L.display&&H==="top"&&H===L.options.verticalAlign&&(q=wo(this.spacingBox),L.options.layout==="vertical"?q.y=this.plotTop:q.y+=b.getHeight(),L.group.placed=!1,L.align(q))}function ic(){for(let q=0,b=Aa.length;q<b;++q){let A=Aa[q];if(A[0]===this){A[1].forEach(L=>L()),Aa.splice(q,1);return}}}function Ra(){var b;let q=this.rangeSelector;if((b=q==null?void 0:q.options)!=null&&b.enabled){let A=q.getHeight(),L=q.options.verticalAlign;q.options.floating||(L==="bottom"?this.marginBottom+=A:L==="middle"||(this.plotTop+=A))}}function Fn(q){let b=q.options.rangeSelector,A=this.extraBottomMargin,L=this.extraTopMargin,H=this.rangeSelector;if(b&&b.enabled&&!Wo(H)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=H=new F(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,H){let Z=b&&b.verticalAlign||H.options&&H.options.verticalAlign;H.options.floating||(Z==="bottom"?this.extraBottomMargin=!0:Z==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==A||this.extraTopMargin!==L)&&(this.isDirtyBox=!0)}}let ss={compose:function(q,b,A){if(F=A,Ea(So,"RangeSelector")){let L=b.prototype;q.prototype.minFromRange=eo,Os(b,"afterGetContainer",ec),Os(b,"beforeRender",Xr),Os(b,"destroy",ic),Os(b,"getMargins",Ra),Os(b,"redraw",Xo),Os(b,"update",Fn),Os(b,"beforeRedraw",zr),L.callbacks.push(Xo),Vo(Jl,{rangeSelector:Xn.rangeSelector}),Vo(Jl.lang,Xn.lang)}}};var nc=wt(28),Oa=wt.n(nc);let{fireEvent:Pa,isArray:Ba,objectEach:rc,uniqueKey:Yo}=Et(),Pu=class{constructor(q={}){this.autoId=!q.id,this.columns={},this.id=q.id||Yo(),this.modified=this,this.rowCount=0,this.versionTag=Yo();let b=0;rc(q.columns||{},(A,L)=>{this.columns[L]=A.slice(),b=Math.max(b,A.length)}),this.applyRowCount(b)}applyRowCount(q){this.rowCount=q,rc(this.columns,b=>{Ba(b)&&(b.length=q)})}getColumn(q,b){return this.columns[q]}getColumns(q,b){return(q||Object.keys(this.columns)).reduce((A,L)=>(A[L]=this.columns[L],A),{})}getRow(q,b){return(b||Object.keys(this.columns)).map(A=>{var L;return(L=this.columns[A])==null?void 0:L[q]})}setColumn(q,b=[],A=0,L){this.setColumns({[q]:b},A,L)}setColumns(q,b,A){let L=this.rowCount;rc(q,(H,Z)=>{this.columns[Z]=H.slice(),L=H.length}),this.applyRowCount(L),A!=null&&A.silent||(Pa(this,"afterSetColumns"),this.versionTag=Yo())}setRow(q,b=this.rowCount,A,L){let{columns:H}=this,Z=A?this.rowCount+1:b+1;rc(q,(X,ut)=>{let bt=H[ut]||(L==null?void 0:L.addColumns)!==!1&&Array(Z);bt&&(A?bt.splice(b,0,X):bt[b]=X,H[ut]=bt)}),Z>this.rowCount&&this.applyRowCount(Z),L!=null&&L.silent||(Pa(this,"afterSetRows"),this.versionTag=Yo())}},{addEvent:kr,correctFloat:al,css:Td,defined:Ps,error:Bu,isNumber:Da,pick:vs,timeUnits:ll,isString:Wc}=Et();(function(q){function b(pt,vt,mt,kt,Pt=[],Gt=0,oe){let fe={},Qt=this.options.tickPixelInterval,ae=this.chart.time,Oe=[],ce,ye,Te,De,Le,Ee=0,We=[],Ze=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!Pt||Pt.length<3||vt===void 0)return ae.getTimeTicks.apply(ae,arguments);let ji=Pt.length;for(ce=0;ce<ji;ce++){if(Le=ce&&Pt[ce-1]>mt,Pt[ce]<vt&&(Ee=ce),ce===ji-1||Pt[ce+1]-Pt[ce]>5*Gt||Le){if(Pt[ce]>Ze){for(ye=ae.getTimeTicks(pt,Pt[Ee],Pt[ce],kt);ye.length&&ye[0]<=Ze;)ye.shift();ye.length&&(Ze=ye[ye.length-1]),Oe.push(We.length),We=We.concat(ye)}Ee=ce+1}if(Le)break}if(ye){if(De=ye.info,oe&&De.unitRange<=ll.hour){for(Ee=1,ce=We.length-1;Ee<ce;Ee++)ae.dateFormat("%d",We[Ee])!==ae.dateFormat("%d",We[Ee-1])&&(fe[We[Ee]]="day",Te=!0);Te&&(fe[We[0]]="day"),De.higherRanks=fe}De.segmentStarts=Oe,We.info=De}else Bu(12,!1,this.chart);if(oe&&Ps(Qt)){let Ji=We.length,_i=[],Cn=[],or,ln,en,hs,ha,Gn=Ji;for(;Gn--;)ln=this.translate(We[Gn]),en&&(Cn[Gn]=en-ln),_i[Gn]=en=ln;for(Cn.sort((Bd,Dd)=>Bd-Dd),(hs=Cn[Math.floor(Cn.length/2)])<.6*Qt&&(hs=null),Gn=We[Ji-1]>mt?Ji-1:Ji,en=void 0;Gn--;)ha=Math.abs(en-(ln=_i[Gn])),en&&ha<.8*Qt&&(hs===null||ha<.8*hs)?(fe[We[Gn]]&&!fe[We[Gn+1]]?(or=Gn+1,en=ln):or=Gn,We.splice(or,1)):en=ln}return We}function A(pt){let vt=this.ordinal.positions;if(!vt)return pt;let mt=vt.length-1,kt;return pt<0?pt=vt[0]:pt>mt?pt=vt[mt]:(mt=Math.floor(pt),kt=pt-mt),kt!==void 0&&vt[mt]!==void 0?vt[mt]+(kt?kt*(vt[mt+1]-vt[mt]):0):pt}function L(pt){let vt=this.ordinal,mt=this.old?this.old.min:this.min,kt=this.old?this.old.transA:this.transA,Pt=vt.getExtendedPositions();if(Pt!=null&&Pt.length){let Gt=al((pt-mt)*kt+this.minPixelPadding),oe=al(vt.getIndexOfPoint(Gt,Pt)),fe=al(oe%1);if(oe>=0&&oe<=Pt.length-1){let Qt=Pt[Math.floor(oe)],ae=Pt[Math.ceil(oe)];return Pt[Math.floor(oe)]+fe*(ae-Qt)}}return pt}function H(pt,vt){let mt=q.Additions.findIndexOf(pt,vt,!0);if(pt[mt]===vt)return mt;let kt=(vt-pt[mt])/(pt[mt+1]-pt[mt]);return mt+kt}function Z(){this.ordinal||(this.ordinal=new q.Additions(this))}function X(){let{eventArgs:pt,options:vt}=this;if(this.isXAxis&&Ps(vt.overscroll)&&vt.overscroll!==0&&Da(this.max)&&Da(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&((pt==null?void 0:pt.trigger)!=="pan"||this.isInternal)&&(pt==null?void 0:pt.trigger)!=="navigator")){let mt=this.ordinal.convertOverscroll(vt.overscroll);this.max+=mt,!this.isInternal&&Ps(this.userMin)&&(pt==null?void 0:pt.trigger)!=="mousewheel"&&(this.min+=mt)}}function ut(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function bt(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function Tt(pt){let vt=this.xAxis[0],mt=vt.ordinal.convertOverscroll(vt.options.overscroll),kt=pt.originalEvent.chartX,Pt=this.options.chart.panning,Gt=!1;if(Pt&&Pt.type!=="y"&&vt.options.ordinal&&vt.series.length&&(!pt.touches||pt.touches.length<=1)){let oe,fe,Qt=this.mouseDownX,ae=vt.getExtremes(),Oe=ae.dataMin,ce=ae.dataMax,ye=ae.min,Te=ae.max,De=this.hoverPoints,Le=vt.closestPointRange||vt.ordinal&&vt.ordinal.overscrollPointsRange,Ee=Math.round((Qt-kt)/(vt.translationSlope*(vt.ordinal.slope||Le))),We=vt.ordinal.getExtendedPositions(),Ze={ordinal:{positions:We,extendedOrdinalPositions:We}},ji=vt.index2val,Ji=vt.val2lin;if(ye<=Oe&&Ee<0||Te+mt>=ce&&Ee>0)return;Ze.ordinal.positions?Math.abs(Ee)>1&&(De&&De.forEach(function(_i){_i.setState()}),ce>(fe=Ze.ordinal.positions)[fe.length-1]&&fe.push(ce),this.setFixedRange(Te-ye),(oe=vt.navigatorAxis.toFixedRange(void 0,void 0,ji.apply(Ze,[Ji.apply(Ze,[ye,!0])+Ee]),ji.apply(Ze,[Ji.apply(Ze,[Te,!0])+Ee]))).min>=Math.min(fe[0],ye)&&oe.max<=Math.max(fe[fe.length-1],Te)+mt&&vt.setExtremes(oe.min,oe.max,!0,!1,{trigger:"pan"}),this.mouseDownX=kt,Td(this.container,{cursor:"move"})):Gt=!0}else Gt=!0;Gt||Pt&&/y/.test(Pt.type)?mt&&(vt.max=vt.dataMax+mt):pt.preventDefault()}function yt(){let pt=this.xAxis;pt&&pt.options.ordinal&&(delete pt.ordinal.index,delete pt.ordinal.originalOrdinalRange)}function Ct(pt,vt){let mt,kt=this.ordinal,Pt=kt.positions,Gt=kt.slope,oe;if(!Pt)return pt;let fe=Pt.length;if(Pt[0]<=pt&&Pt[fe-1]>=pt)mt=H(Pt,pt);else{if(!((oe=kt.getExtendedPositions&&kt.getExtendedPositions())&&oe.length))return pt;let Qt=oe.length;Gt||(Gt=(oe[Qt-1]-oe[0])/Qt);let ae=H(oe,Pt[0]);if(pt>=oe[0]&&pt<=oe[Qt-1])mt=H(oe,pt)-ae;else{if(!vt)return pt;mt=pt<oe[0]?-ae-(oe[0]-pt)/Gt:(pt-oe[Qt-1])/Gt+Qt-ae}}return vt?mt:Gt*(mt||0)+kt.offset}q.compose=function(pt,vt,mt){let kt=pt.prototype;return kt.ordinal2lin||(kt.getTimeTicks=b,kt.index2val=A,kt.lin2val=L,kt.val2lin=Ct,kt.ordinal2lin=kt.val2lin,kr(pt,"afterInit",Z),kr(pt,"foundExtremes",X),kr(pt,"afterSetScale",ut),kr(pt,"initialAxisTranslation",bt),kr(mt,"pan",Tt),kr(mt,"touchpan",Tt),kr(vt,"updatedData",yt)),pt},q.Additions=class{constructor(pt){this.index={},this.axis=pt}beforeSetTickPositions(){var ji;let pt=this.axis,vt=pt.ordinal,mt=pt.getExtremes(),kt=mt.min,Pt=mt.max,Gt=(ji=pt.brokenAxis)==null?void 0:ji.hasBreaks,oe=pt.options.ordinal,fe,Qt,ae,Oe,ce,ye,Te,De=[],Le=Number.MAX_VALUE,Ee=!1,We=!1,Ze=!1;if(oe||Gt){let Ji=0;if(pt.series.forEach(function(_i,Cn){let or=_i.getColumn("x",!0);if(Qt=[],Cn>0&&_i.options.id!=="highcharts-navigator-series"&&or.length>1&&(We=Ji!==or[1]-or[0]),Ji=or[1]-or[0],_i.boosted&&(Ze=_i.boosted),_i.reserveSpace()&&(_i.takeOrdinalPosition!==!1||Gt)&&(fe=(De=De.concat(or)).length,De.sort(function(ln,en){return ln-en}),Le=Math.min(Le,vs(_i.closestPointRange,Le)),fe)){for(Cn=0;Cn<fe-1;)De[Cn]!==De[Cn+1]&&Qt.push(De[Cn+1]),Cn++;Qt[0]!==De[0]&&Qt.unshift(De[0]),De=Qt}}),pt.ordinal.originalOrdinalRange||(pt.ordinal.originalOrdinalRange=(De.length-1)*Le),We&&Ze&&(De.pop(),De.shift()),(fe=De.length)>2){for(ae=De[1]-De[0],Te=fe-1;Te--&&!Ee;)De[Te+1]-De[Te]!==ae&&(Ee=!0);!pt.options.keepOrdinalPadding&&(De[0]-kt>ae||Pt-De[De.length-1]>ae)&&(Ee=!0)}else pt.options.overscroll&&(fe===2?Le=De[1]-De[0]:fe===1?(Le=pt.ordinal.convertOverscroll(pt.options.overscroll),De=[De[0],De[0]+Le]):Le=vt.overscrollPointsRange);Ee||pt.forceOrdinal?(pt.options.overscroll&&(vt.overscrollPointsRange=Le,De=De.concat(vt.getOverscrollPositions())),vt.positions=De,Oe=pt.ordinal2lin(Math.max(kt,De[0]),!0),ce=Math.max(pt.ordinal2lin(Math.min(Pt,De[De.length-1]),!0),1),vt.slope=ye=(Pt-kt)/(ce-Oe),vt.offset=kt-Oe*ye):(vt.overscrollPointsRange=vs(pt.closestPointRange,vt.overscrollPointsRange),vt.positions=pt.ordinal.slope=vt.offset=void 0)}pt.isOrdinal=oe&&Ee,vt.groupIntervalFactor=null}static findIndexOf(pt,vt,mt){let kt=0,Pt=pt.length-1,Gt;for(;kt<Pt;)pt[Gt=Math.ceil((kt+Pt)/2)]<=vt?kt=Gt:Pt=Gt-1;return pt[kt]===vt||mt?kt:-1}getExtendedPositions(pt=!0){let vt=this,mt=vt.axis,kt=mt.constructor.prototype,Pt=mt.chart,Gt=mt.series.reduce((ce,ye)=>{let Te=ye.currentDataGrouping;return ce+(Te?Te.count+Te.unitName:"raw")},""),oe=pt?mt.ordinal.convertOverscroll(mt.options.overscroll):0,fe=mt.getExtremes(),Qt,ae,Oe=vt.index;return Oe||(Oe=vt.index={}),!Oe[Gt]&&((Qt={series:[],chart:Pt,forceOrdinal:!1,getExtremes:function(){return{min:fe.dataMin,max:fe.dataMax+oe}},applyGrouping:kt.applyGrouping,getGroupPixelWidth:kt.getGroupPixelWidth,getTimeTicks:kt.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:kt.ordinal2lin,getIndexOfPoint:kt.getIndexOfPoint,val2lin:kt.val2lin}).ordinal.axis=Qt,mt.series.forEach(ce=>{var Te,De,Le;ae={xAxis:Qt,chart:Pt,groupPixelWidth:ce.groupPixelWidth,destroyGroupedData:Et().noop,getColumn:ce.getColumn,applyGrouping:ce.applyGrouping,getProcessedData:ce.getProcessedData,reserveSpace:ce.reserveSpace,visible:ce.visible};let ye=ce.getColumn("x").concat(pt?vt.getOverscrollPositions():[]);ae.dataTable=new Pu({columns:{x:ye}}),ae.options={...ce.options,dataGrouping:ce.currentDataGrouping?{firstAnchor:(Te=ce.options.dataGrouping)==null?void 0:Te.firstAnchor,anchor:(De=ce.options.dataGrouping)==null?void 0:De.anchor,lastAnchor:(Le=ce.options.dataGrouping)==null?void 0:Le.firstAnchor,enabled:!0,forced:!0,approximation:"open",units:[[ce.currentDataGrouping.unitName,[ce.currentDataGrouping.count]]]}:{enabled:!1}},Qt.series.push(ae),ce.processData.apply(ae)}),Qt.applyGrouping({hasExtremesChanged:!0}),(ae==null?void 0:ae.closestPointRange)!==(ae==null?void 0:ae.basePointRange)&&ae.currentDataGrouping&&(Qt.forceOrdinal=!0),mt.ordinal.beforeSetTickPositions.apply({axis:Qt}),!mt.ordinal.originalOrdinalRange&&Qt.ordinal.originalOrdinalRange&&(mt.ordinal.originalOrdinalRange=Qt.ordinal.originalOrdinalRange),Qt.ordinal.positions&&(Oe[Gt]=Qt.ordinal.positions)),Oe[Gt]}getGroupIntervalFactor(pt,vt,mt){let kt=mt.getColumn("x",!0),Pt=kt.length,Gt=[],oe,fe,Qt=this.groupIntervalFactor;if(!Qt){for(fe=0;fe<Pt-1;fe++)Gt[fe]=kt[fe+1]-kt[fe];Gt.sort(function(ae,Oe){return ae-Oe}),oe=Gt[Math.floor(Pt/2)],pt=Math.max(pt,kt[0]),vt=Math.min(vt,kt[Pt-1]),this.groupIntervalFactor=Qt=Pt*oe/(vt-pt)}return Qt}getIndexOfPoint(pt,vt){let mt=this.axis,kt=mt.min,Pt=mt.minPixelPadding;return H(vt,kt)+al((pt-Pt)/(mt.translationSlope*(this.slope||mt.closestPointRange||this.overscrollPointsRange)))}getOverscrollPositions(){let pt=this.axis,vt=this.convertOverscroll(pt.options.overscroll),mt=this.overscrollPointsRange,kt=[],Pt=pt.dataMax;if(Ps(mt))for(;Pt<pt.dataMax+vt;)kt.push(Pt+=mt);return kt}postProcessTickInterval(pt){let vt=this.axis,mt=this.slope,kt=vt.closestPointRange;return mt&&kt?vt.options.breaks?kt||pt:pt/(mt/kt):pt}convertOverscroll(pt=0){let vt=this,mt=vt.axis,kt=function(Pt){return vs(vt.originalOrdinalRange,Ps(mt.dataMax)&&Ps(mt.dataMin)?mt.dataMax-mt.dataMin:0)*Pt};if(Wc(pt)){let Pt=parseInt(pt,10);if(/%$/.test(pt))return kt(Pt/100);if(/px/.test(pt)){let Gt=Math.min(Pt,.9*mt.len)/mt.len;return kt(Gt/(1-Gt))}return 0}return pt}}})(J||(J={}));let Du=J,{defaultOptions:cl}=Et(),{addEvent:ur,createElement:ul,css:Mr,defined:os,destroyObjectProperties:Vc,diffObjects:Ed,discardElement:qo,extend:sc,fireEvent:Bs,isNumber:Tr,isString:Ds,merge:Yr,objectEach:Lu,pick:qr,splat:Xc}=Et();function Ko(q){let b=H=>RegExp(`%[[a-zA-Z]*${H}`).test(q);if(Ds(q)?q.indexOf("%L")!==-1:q.fractionalSecondDigits)return"text";let A=Ds(q)?["a","A","d","e","w","b","B","m","o","y","Y"].some(b):q.dateStyle||q.day||q.month||q.year,L=Ds(q)?["H","k","I","l","M","S"].some(b):q.timeStyle||q.hour||q.minute||q.second;return A&&L?"datetime-local":A?"date":L?"time":"text"}class vn{static compose(b,A){ss.compose(b,A,vn)}constructor(b){this.isDirty=!1,this.buttonOptions=vn.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.maxButtonWidth=()=>{let A=0;return this.buttons.forEach(L=>{let H=L.getBBox();H.width>A&&(A=H.width)}),A},this.init(b)}clickButton(b,A){let L=this.chart,H=this.buttonOptions[b],Z=L.xAxis[0],X=L.scroller&&L.scroller.getUnionExtremes()||Z||{},ut=H.type,bt=H.dataGrouping,Tt=X.dataMin,yt=X.dataMax,Ct,pt=Tr(Z==null?void 0:Z.max)?Math.round(Math.min(Z.max,yt??Z.max)):void 0,vt,mt=H._range,kt,Pt,Gt,oe=!0;if(Tt!==null&&yt!==null){if(this.setSelected(b),bt&&(this.forcedDataGrouping=!0,qi().prototype.setDataGrouping.call(Z||{chart:this.chart},bt,!1),this.frozenStates=H.preserveDataGrouping),ut==="month"||ut==="year")Z?(Pt={range:H,max:pt,chart:L,dataMin:Tt,dataMax:yt},Ct=Z.minFromRange.call(Pt),Tr(Pt.newMax)&&(pt=Pt.newMax),oe=!1):mt=H;else if(mt)Tr(pt)&&(pt=Math.min((Ct=Math.max(pt-mt,Tt))+mt,yt),oe=!1);else if(ut==="ytd")if(Z)!Z.hasData()||Tr(yt)&&Tr(Tt)||(Tt=Number.MAX_VALUE,yt=-Number.MAX_VALUE,L.series.forEach(fe=>{let Qt=fe.getColumn("x");Qt.length&&(Tt=Math.min(Qt[0],Tt),yt=Math.max(Qt[Qt.length-1],yt))}),A=!1),Tr(yt)&&Tr(Tt)&&(Ct=kt=(Gt=this.getYTDExtremes(yt,Tt)).min,pt=Gt.max);else{this.deferredYTDClick=b;return}else ut==="all"&&Z&&(L.navigator&&L.navigator.baseSeries[0]&&(L.navigator.baseSeries[0].xAxis.options.range=void 0),Ct=Tt,pt=yt);if(oe&&H._offsetMin&&os(Ct)&&(Ct+=H._offsetMin),H._offsetMax&&os(pt)&&(pt+=H._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=b+1),Z)Tr(Ct)&&Tr(pt)&&(Z.setExtremes(Ct,pt,qr(A,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:H}),L.setFixedRange(H._range));else{vt=Xc(L.options.xAxis||{})[0];let fe=ur(L,"afterCreateAxes",function(){let Qt=L.xAxis[0];Qt.range=Qt.options.range=mt,Qt.min=Qt.options.min=kt});ur(L,"load",function(){let Qt=L.xAxis[0];L.setFixedRange(H._range),Qt.options.range=vt.range,Qt.options.min=vt.min,fe()})}Bs(this,"afterBtnClick")}}setSelected(b){this.selected=this.options.selected=b}init(b){let A=this,L=b.options.rangeSelector,H=L.buttons,Z=L.selected,X=function(){let ut=A.minInput,bt=A.maxInput;ut&&ut.blur&&Bs(ut,"blur"),bt&&bt.blur&&Bs(bt,"blur")};A.chart=b,A.options=L,A.buttons=[],A.buttonOptions=H,this.eventsToUnbind=[],this.eventsToUnbind.push(ur(b.container,"mousedown",X)),this.eventsToUnbind.push(ur(b,"resize",X)),H.forEach(A.computeButtonRange),Z!==void 0&&H[Z]&&this.clickButton(Z,!1),this.eventsToUnbind.push(ur(b,"load",function(){b.xAxis&&b.xAxis[0]&&ur(b.xAxis[0],"setExtremes",function(ut){Tr(this.max)&&Tr(this.min)&&this.max-this.min!==b.fixedRange&&ut.trigger!=="rangeSelectorButton"&&ut.trigger!=="updatedData"&&A.forcedDataGrouping&&!A.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let b=this,A=this.chart,L=this.dropdown,H=this.dropdownLabel,Z=A.xAxis[0],X=Math.round(Z.max-Z.min),ut=!Z.hasVisibleSeries,bt=24*36e5,Tt=A.scroller&&A.scroller.getUnionExtremes()||Z,yt=Tt.dataMin,Ct=Tt.dataMax,pt=b.getYTDExtremes(Ct,yt),vt=pt.min,mt=pt.max,kt=b.selected,Pt=b.options.allButtonsEnabled,Gt=Array(b.buttonOptions.length).fill(0),oe=Tr(kt),fe=b.buttons,Qt=!1,ae=null;b.buttonOptions.forEach((Oe,ce)=>{var or;let ye=Oe._range,Te=Oe.type,De=Oe.count||1,Le=Oe._offsetMax-Oe._offsetMin,Ee=ce===kt,We=ye>Ct-yt,Ze=ye<Z.minRange,ji=!1,Ji=ye===X;if(Ee&&We&&(Qt=!0),Z.isOrdinal&&((or=Z.ordinal)==null?void 0:or.positions)&&ye&&X<ye){let ln=Z.ordinal.positions,en=Du.Additions.findIndexOf(ln,Z.min,!0),hs=Math.min(Du.Additions.findIndexOf(ln,Z.max,!0)+1,ln.length-1);ln[hs]-ln[en]>ye&&(Ji=!0)}else(Te==="month"||Te==="year")&&X+36e5>={month:28,year:365}[Te]*bt*De-Le&&X-36e5<={month:31,year:366}[Te]*bt*De+Le?Ji=!0:Te==="ytd"?(Ji=mt-vt+Le===X,ji=!Ee):Te==="all"&&(Ji=Z.max-Z.min>=Ct-yt);let _i=!Pt&&!(Qt&&Te==="all")&&(We||Ze||ut),Cn=Qt&&Te==="all"||!ji&&Ji||Ee&&b.frozenStates;_i?Gt[ce]=3:Cn&&(!oe||ce===kt)&&(ae=ce)}),ae!==null?(Gt[ae]=2,b.setSelected(ae),this.dropdown&&(this.dropdown.selectedIndex=ae+1)):(b.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),H&&(H.setState(0),H.attr({text:(cl.lang.rangeSelectorZoom||"")+" ▾"})));for(let Oe=0;Oe<Gt.length;Oe++){let ce=Gt[Oe],ye=fe[Oe];if(ye.state!==ce&&(ye.setState(ce),L)){L.options[Oe+1].disabled=ce===3,ce===2&&(H&&(H.setState(2),H.attr({text:b.buttonOptions[Oe].text+" ▾"})),L.selectedIndex=Oe+1);let Te=H.getBBox();Mr(L,{width:`${Te.width}px`,height:`${Te.height}px`})}}}computeButtonRange(b){let A=b.type,L=b.count||1,H={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};H[A]?b._range=H[A]*L:(A==="month"||A==="year")&&(b._range=24*{month:30,year:365}[A]*36e5*L),b._offsetMin=qr(b.offsetMin,0),b._offsetMax=qr(b.offsetMax,0),b._range+=b._offsetMax-b._offsetMin}getInputValue(b){let A=b==="min"?this.minInput:this.maxInput,L=this.chart.options.rangeSelector,H=this.chart.time;return A?(A.type==="text"&&L.inputDateParser||this.defaultInputDateParser)(A.value,H.timezone==="UTC",H):0}setInputValue(b,A){let L=this.options,H=this.chart.time,Z=b==="min"?this.minInput:this.maxInput,X=b==="min"?this.minDateBox:this.maxDateBox;if(Z){Z.setAttribute("type",Ko(L.inputDateFormat||"%e %b %Y"));let ut=Z.getAttribute("data-hc-time"),bt=os(ut)?Number(ut):void 0;if(os(A)){let Tt=bt;os(Tt)&&Z.setAttribute("data-hc-time-previous",Tt),Z.setAttribute("data-hc-time",A),bt=A}Z.value=H.dateFormat(this.inputTypeFormats[Z.type]||L.inputEditDateFormat,bt),X&&X.attr({text:H.dateFormat(L.inputDateFormat,bt)})}}setInputExtremes(b,A,L){let H=b==="min"?this.minInput:this.maxInput;if(H){let Z=this.inputTypeFormats[H.type],X=this.chart.time;if(Z){let ut=X.dateFormat(Z,A);H.min!==ut&&(H.min=ut);let bt=X.dateFormat(Z,L);H.max!==bt&&(H.max=bt)}}}showInput(b){let A=b==="min"?this.minDateBox:this.maxDateBox,L=b==="min"?this.minInput:this.maxInput;if(L&&A&&this.inputGroup){let H=L.type==="text",{translateX:Z=0,translateY:X=0}=this.inputGroup,{x:ut=0,width:bt=0,height:Tt=0}=A,{inputBoxWidth:yt}=this.options;Mr(L,{width:H?bt+(yt?-2:20)+"px":"auto",height:Tt-2+"px",border:"2px solid silver"}),H&&yt?Mr(L,{left:Z+ut+"px",top:X+"px"}):Mr(L,{left:Math.min(Math.round(ut+Z-(L.offsetWidth-bt)/2),this.chart.chartWidth-L.offsetWidth)+"px",top:X-(L.offsetHeight-Tt)/2+"px"})}}hideInput(b){let A=b==="min"?this.minInput:this.maxInput;A&&Mr(A,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(b,A,L){return(L==null?void 0:L.parse(b))||0}drawInput(b){let{chart:A,div:L,inputGroup:H}=this,Z=this,X=A.renderer.style||{},ut=A.renderer,bt=A.options.rangeSelector,Tt=cl.lang,yt=b==="min";function Ct(Gt){var De;let{maxInput:oe,minInput:fe}=Z,Qt=A.xAxis[0],ae=((De=A.scroller)==null?void 0:De.getUnionExtremes())||Qt,Oe=ae.dataMin,ce=ae.dataMax,ye=A.xAxis[0].getExtremes()[Gt],Te=Z.getInputValue(Gt);Tr(Te)&&Te!==ye&&(yt&&oe&&Tr(Oe)?Te>Number(oe.getAttribute("data-hc-time"))?Te=void 0:Te<Oe&&(Te=Oe):fe&&Tr(ce)&&(Te<Number(fe.getAttribute("data-hc-time"))?Te=void 0:Te>ce&&(Te=ce)),Te!==void 0&&Qt.setExtremes(yt?Te:Qt.min,yt?Qt.max:Te,void 0,void 0,{trigger:"rangeSelectorInput"}))}let pt=Tt[yt?"rangeSelectorFrom":"rangeSelectorTo"]||"",vt=ut.label(pt,0).addClass("highcharts-range-label").attr({padding:pt?2:0,height:pt?bt.inputBoxHeight:0}).add(H),mt=ut.label("",0).addClass("highcharts-range-input").attr({padding:2,width:bt.inputBoxWidth,height:bt.inputBoxHeight,"text-align":"center"}).on("click",function(){Z.showInput(b),Z[b+"Input"].focus()});A.styledMode||mt.attr({stroke:bt.inputBoxBorderColor,"stroke-width":1}),mt.add(H);let kt=ul("input",{name:b,className:"highcharts-range-selector"},void 0,L);kt.setAttribute("type",Ko(bt.inputDateFormat||"%e %b %Y")),A.styledMode||(vt.css(Yr(X,bt.labelStyle)),mt.css(Yr({color:"#333333"},X,bt.inputStyle)),Mr(kt,sc({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:X.fontSize,fontFamily:X.fontFamily,top:"-9999em"},bt.inputStyle))),kt.onfocus=()=>{Z.showInput(b)},kt.onblur=()=>{kt===Et().doc.activeElement&&Ct(b),Z.hideInput(b),Z.setInputValue(b),kt.blur()};let Pt=!1;return kt.onchange=()=>{Pt||(Ct(b),Z.hideInput(b),kt.blur())},kt.onkeypress=Gt=>{Gt.keyCode===13&&Ct(b)},kt.onkeydown=Gt=>{Pt=!0,(Gt.key==="ArrowUp"||Gt.key==="ArrowDown"||Gt.key==="Tab")&&Ct(b)},kt.onkeyup=()=>{Pt=!1},{dateBox:mt,input:kt,label:vt}}getPosition(){let b=this.chart,A=b.options.rangeSelector,L=A.verticalAlign==="top"?b.plotTop-b.axisOffset[0]:0;return{buttonTop:L+A.buttonPosition.y,inputTop:L+A.inputPosition.y-10}}getYTDExtremes(b,A){let L=this.chart.time,H=L.toParts(b)[0];return{max:b,min:Math.max(A,L.makeTime(H,0))}}createElements(){var bt;let b=this.chart,A=b.renderer,L=b.container,H=b.options,Z=H.rangeSelector,X=Z.inputEnabled,ut=qr((bt=H.chart.style)==null?void 0:bt.zIndex,0)+1;Z.enabled!==!1&&(this.group=A.g("range-selector-group").attr({zIndex:7}).add(),this.div=ul("div",void 0,{position:"relative",height:0,zIndex:ut}),this.buttonOptions.length&&this.renderButtons(),L.parentNode&&L.parentNode.insertBefore(this.div,L),X&&this.createInputs())}createInputs(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);let b=this.drawInput("min");this.minDateBox=b.dateBox,this.minLabel=b.label,this.minInput=b.input;let A=this.drawInput("max");this.maxDateBox=A.dateBox,this.maxLabel=A.label,this.maxInput=A.input}render(b,A){var Z,X;if(this.options.enabled===!1)return;let L=this.chart,H=L.options.rangeSelector;if(H.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",b),this.setInputValue("max",A),this.chart.styledMode||((Z=this.maxLabel)==null||Z.css(H.labelStyle),(X=this.minLabel)==null||X.css(H.labelStyle));let ut=L.scroller&&L.scroller.getUnionExtremes()||L.xAxis[0]||{};if(os(ut.dataMin)&&os(ut.dataMax)){let bt=L.xAxis[0].minRange||0;this.setInputExtremes("min",ut.dataMin,Math.min(ut.dataMax,this.getInputValue("max"))-bt),this.setInputExtremes("max",Math.max(ut.dataMin,this.getInputValue("min"))+bt,ut.dataMax)}if(this.inputGroup){let bt=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(Tt=>{if(Tt){let{width:yt}=Tt.getBBox();yt&&(Tt.attr({x:bt}),bt+=yt+H.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(H.labelStyle),this.alignElements(),this.updateButtonStates()}renderButtons(){var pt;var b;let{chart:A,options:L}=this,H=cl.lang,Z=A.renderer,X=Yr(L.buttonTheme),ut=X&&X.states;delete X.width,delete X.states,this.buttonGroup=Z.g("range-selector-buttons").add(this.group);let bt=this.dropdown=ul("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),Tt=(pt=A.userOptions.rangeSelector)==null?void 0:pt.buttonTheme;this.dropdownLabel=Z.button("",0,0,()=>{},Yr(X,{"stroke-width":qr(X["stroke-width"],0),width:"auto",paddingLeft:qr(L.buttonTheme.paddingLeft,Tt==null?void 0:Tt.padding,8),paddingRight:qr(L.buttonTheme.paddingRight,Tt==null?void 0:Tt.padding,8)}),ut&&ut.hover,ut&&ut.select,ut&&ut.disabled).hide().add(this.group),ur(bt,"touchstart",()=>{bt.style.fontSize="16px"});let yt=Et().isMS?"mouseover":"mouseenter",Ct=Et().isMS?"mouseout":"mouseleave";ur(bt,yt,()=>{Bs(this.dropdownLabel.element,yt)}),ur(bt,Ct,()=>{Bs(this.dropdownLabel.element,Ct)}),ur(bt,"change",()=>{Bs(this.buttons[bt.selectedIndex-1].element,"click")}),this.zoomText=Z.label(H.rangeSelectorZoom||"",0).attr({padding:L.buttonTheme.padding,height:L.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(L.labelStyle),(b=L.buttonTheme)["stroke-width"]??(b["stroke-width"]=0)),ul("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,bt),this.createButtons()}createButtons(){let{options:b}=this,A=Yr(b.buttonTheme),L=A&&A.states,H=A.width||28;delete A.width,delete A.states,this.buttonOptions.forEach((Z,X)=>{this.createButton(Z,X,H,L)})}createButton(b,A,L,H){let{dropdown:Z,buttons:X,chart:ut,options:bt}=this,Tt=ut.renderer,yt=Yr(bt.buttonTheme);Z==null||Z.add(ul("option",{textContent:b.title||b.text}),A+2),X[A]=Tt.button(b.text,0,0,Ct=>{let pt,vt=b.events&&b.events.click;vt&&(pt=vt.call(b,Ct)),pt!==!1&&this.clickButton(A),this.isActive=!0},yt,H&&H.hover,H&&H.select,H&&H.disabled).attr({"text-align":"center",width:L}).add(this.buttonGroup),b.title&&X[A].attr("title",b.title)}alignElements(){var kt;let{buttonGroup:b,buttons:A,chart:L,group:H,inputGroup:Z,options:X,zoomText:ut}=this,bt=L.options,Tt=bt.exporting&&bt.exporting.enabled!==!1&&bt.navigation&&bt.navigation.buttonOptions,{buttonPosition:yt,inputPosition:Ct,verticalAlign:pt}=X,vt=(Pt,Gt,oe)=>Tt&&this.titleCollision(L)&&pt==="top"&&oe&&Gt.y-Pt.getBBox().height-12<(Tt.y||0)+(Tt.height||0)+L.spacing[0]?-40:0,mt=L.plotLeft;if(H&&yt&&Ct){let Pt=yt.x-L.spacing[3];if(b){if(this.positionButtons(),!this.initialButtonGroupWidth){let Te=0;ut&&(Te+=ut.getBBox().width+5),A.forEach((De,Le)=>{Te+=De.width||0,Le!==A.length-1&&(Te+=X.buttonSpacing)}),this.initialButtonGroupWidth=Te}mt-=L.spacing[3];let ye=vt(b,yt,yt.align==="right"||Ct.align==="right");this.alignButtonGroup(ye),(kt=this.buttonGroup)!=null&&kt.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),H.placed=b.placed=L.hasLoaded}let Gt=0;X.inputEnabled&&Z&&(Gt=vt(Z,Ct,yt.align==="right"||Ct.align==="right"),Ct.align==="left"?Pt=mt:Ct.align==="right"&&(Pt=-Math.max(L.axisOffset[1],-Gt)),Z.align({y:Ct.y,width:Z.getBBox().width,align:Ct.align,x:Ct.x+Pt-2},!0,L.spacingBox),Z.placed=L.hasLoaded),this.handleCollision(Gt),H.align({verticalAlign:pt},!0,L.spacingBox);let oe=H.alignAttr.translateY,fe=H.getBBox().height+20,Qt=0;if(pt==="bottom"){let ye=L.legend&&L.legend.options;Qt=oe-(fe=fe+(ye&&ye.verticalAlign==="bottom"&&ye.enabled&&!ye.floating?L.legend.legendHeight+qr(ye.margin,10):0)-20)-(X.floating?0:X.y)-(L.titleOffset?L.titleOffset[2]:0)-10}pt==="top"?(X.floating&&(Qt=0),L.titleOffset&&L.titleOffset[0]&&(Qt=L.titleOffset[0]),Qt+=L.margin[0]-L.spacing[0]||0):pt==="middle"&&(Ct.y===yt.y?Qt=oe:(Ct.y||yt.y)&&(Ct.y<0||yt.y<0?Qt-=Math.min(Ct.y,yt.y):Qt=oe-fe)),H.translate(X.x,X.y+Math.floor(Qt));let{minInput:ae,maxInput:Oe,dropdown:ce}=this;X.inputEnabled&&ae&&Oe&&(ae.style.marginTop=H.translateY+"px",Oe.style.marginTop=H.translateY+"px"),ce&&(ce.style.marginTop=H.translateY+"px")}}redrawElements(){var H,Z,X,ut,bt;let b=this.chart,{inputBoxHeight:A,inputBoxBorderColor:L}=this.options;if((H=this.maxDateBox)==null||H.attr({height:A}),(Z=this.minDateBox)==null||Z.attr({height:A}),b.styledMode||((X=this.maxDateBox)==null||X.attr({stroke:L}),(ut=this.minDateBox)==null||ut.attr({stroke:L})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;let Tt=this.options.buttons??[],yt=Math.min(Tt.length,this.buttonOptions.length),{dropdown:Ct,options:pt}=this,vt=Yr(pt.buttonTheme),mt=vt&&vt.states,kt=vt.width||28;if(Tt.length<this.buttonOptions.length)for(let Pt=this.buttonOptions.length-1;Pt>=Tt.length;Pt--){let Gt=this.buttons.pop();Gt==null||Gt.destroy(),(bt=this.dropdown)==null||bt.options.remove(Pt+1)}for(let Pt=yt-1;Pt>=0;Pt--)if(Object.keys(Ed(Tt[Pt],this.buttonOptions[Pt])).length!==0){let Gt=Tt[Pt];this.buttons[Pt].destroy(),Ct==null||Ct.options.remove(Pt+1),this.createButton(Gt,Pt,kt,mt),this.computeButtonRange(Gt)}if(Tt.length>this.buttonOptions.length)for(let Pt=this.buttonOptions.length;Pt<Tt.length;Pt++)this.createButton(Tt[Pt],Pt,kt,mt),this.computeButtonRange(Tt[Pt]);this.buttonOptions=this.options.buttons??[],os(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}}alignButtonGroup(b,A){let{chart:L,options:H,buttonGroup:Z,dropdown:X,dropdownLabel:ut}=this,{buttonPosition:bt}=H,Tt=L.plotLeft-L.spacing[3],yt=bt.x-L.spacing[3],Ct=L.plotLeft;bt.align==="right"?(yt+=b-Tt,this.hasVisibleDropdown&&(Ct=L.chartWidth+b-this.maxButtonWidth()-20)):bt.align==="center"&&(yt-=Tt/2,this.hasVisibleDropdown&&(Ct=L.chartWidth/2-this.maxButtonWidth())),X&&Mr(X,{left:Ct+"px",top:(Z==null?void 0:Z.translateY)+"px"}),ut==null||ut.attr({x:Ct}),Z&&Z.align({y:bt.y,width:qr(A,this.initialButtonGroupWidth),align:bt.align,x:yt},!0,L.spacingBox)}positionButtons(){let{buttons:b,chart:A,options:L,zoomText:H}=this,Z=A.hasLoaded?"animate":"attr",{buttonPosition:X}=L,ut=A.plotLeft,bt=ut;H&&H.visibility!=="hidden"&&(H[Z]({x:qr(ut+X.x,ut)}),bt+=X.x+H.getBBox().width+5);for(let Tt=0,yt=this.buttonOptions.length;Tt<yt;++Tt)b[Tt].visibility!=="hidden"?(b[Tt][Z]({x:bt}),bt+=(b[Tt].width||0)+L.buttonSpacing):b[Tt][Z]({x:ut})}handleCollision(b){let{chart:A,buttonGroup:L,inputGroup:H,initialButtonGroupWidth:Z}=this,{buttonPosition:X,dropdown:ut,inputPosition:bt}=this.options,Tt=()=>{H&&L&&H.attr({translateX:H.alignAttr.translateX+(A.axisOffset[1]>=-b?0:-b),translateY:H.alignAttr.translateY+L.getBBox().height+10})};H&&L?bt.align===X.align?(Tt(),Z>A.plotWidth+b-20?this.collapseButtons():this.expandButtons()):Z-b+H.getBBox().width>A.plotWidth?ut==="responsive"?this.collapseButtons():Tt():this.expandButtons():L&&ut==="responsive"&&(Z>A.plotWidth?this.collapseButtons():this.expandButtons()),L&&(ut==="always"&&this.collapseButtons(),ut==="never"&&this.expandButtons()),this.alignButtonGroup(b)}collapseButtons(){let{buttons:b,zoomText:A}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,A.hide(),b.forEach(L=>void L.hide()),this.showDropdown())}expandButtons(){let{buttons:b,zoomText:A}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),A.show(),b.forEach(L=>void L.show()),this.positionButtons())}showDropdown(){let{buttonGroup:b,dropdownLabel:A,dropdown:L}=this;b&&L&&(A.show(),Mr(L,{visibility:"inherit"}),this.hasVisibleDropdown=!0)}hideDropdown(){let{dropdown:b}=this;b&&(this.dropdownLabel.hide(),Mr(b,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let b=this.options,A=this.group,L=b.inputPosition,H=b.buttonPosition,Z=b.y,X=H.y,ut=L.y,bt=0;if(b.height)return b.height;this.alignElements(),bt=A?A.getBBox(!0).height+13+Z:0;let Tt=Math.min(ut,X);return(ut<0&&X<0||ut>0&&X>0)&&(bt+=Math.abs(Tt)),bt}titleCollision(b){return!(b.options.title.text||b.options.subtitle.text)}update(b,A=!0){let L=this.chart;if(Yr(!0,this.options,b),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,L.options.rangeSelector.selected=void 0),os(b.enabled))return this.destroy(),this.init(L);this.isDirty=!!b.buttons,A&&this.render()}destroy(){let b=this,A=b.minInput,L=b.maxInput;b.eventsToUnbind&&(b.eventsToUnbind.forEach(H=>H()),b.eventsToUnbind=void 0),Vc(b.buttons),A&&(A.onfocus=A.onblur=A.onchange=null),L&&(L.onfocus=L.onblur=L.onchange=null),Lu(b,function(H,Z){H&&Z!=="chart"&&(H instanceof Oa()?H.destroy():H instanceof window.HTMLElement&&qo(H),delete b[Z]),H!==vn.prototype[Z]&&(b[Z]=null)},this),this.buttons=[]}}sc(vn.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});let Zo={applyRadius:function(q,b){let A=[];for(let L=0;L<q.length;L++){let H=q[L][1],Z=q[L][2];if(typeof H=="number"&&typeof Z=="number")if(L===0)A.push(["M",H,Z]);else if(L===q.length-1)A.push(["L",H,Z]);else if(b){let X=q[L-1],ut=q[L+1];if(X&&ut){let bt=X[1],Tt=X[2],yt=ut[1],Ct=ut[2];if(typeof bt=="number"&&typeof yt=="number"&&typeof Tt=="number"&&typeof Ct=="number"&&bt!==yt&&Tt!==Ct){let pt=bt<yt?1:-1,vt=Tt<Ct?1:-1;A.push(["L",H-pt*Math.min(Math.abs(H-bt),b),Z-vt*Math.min(Math.abs(Z-Tt),b)],["C",H,Z,H,Z,H+pt*Math.min(Math.abs(H-yt),b),Z+vt*Math.min(Math.abs(Z-Ct),b)])}}}else A.push(["L",H,Z])}return A}},{pick:Co}=Et(),{min:Yn,max:Ls,abs:Er}=Math;function Is(q,b,A){let L=b-1e-7,H=0,Z=q.length-1,X,ut;for(;H<=Z;)if((ut=L-q[X=Z+H>>1].xMin)>0)H=X+1;else{if(!(ut<0))return X;Z=X-1}return H>0?H-1:0}function io(q,b){let A=Is(q,b.x+1)+1;for(;A--;){var L;if(q[A].xMax>=b.x&&(L=q[A],b.x<=L.xMax&&b.x>=L.xMin&&b.y<=L.yMax&&b.y>=L.yMin))return A}return-1}function Ns(q){let b=[];if(q.length){b.push(["M",q[0].start.x,q[0].start.y]);for(let A=0;A<q.length;++A)b.push(["L",q[A].end.x,q[A].end.y])}return b}function oc(q,b){q.yMin=Ls(q.yMin,b.yMin),q.yMax=Yn(q.yMax,b.yMax),q.xMin=Ls(q.xMin,b.xMin),q.xMax=Yn(q.xMax,b.xMax)}let qn=function(q,b,A){let L=[],H=A.chartObstacles,Z=io(H,q),X=io(H,b),ut,bt=Co(A.startDirectionX,Er(b.x-q.x)>Er(b.y-q.y))?"x":"y",Tt,yt,Ct,pt;function vt(Gt,oe,fe,Qt,ae){let Oe={x:Gt.x,y:Gt.y};return Oe[oe]=fe[Qt||oe]+(ae||0),Oe}function mt(Gt,oe,fe){let Qt=Er(oe[fe]-Gt[fe+"Min"])>Er(oe[fe]-Gt[fe+"Max"]);return vt(oe,fe,Gt,fe+(Qt?"Max":"Min"),Qt?1:-1)}X>-1?(ut={start:yt=mt(H[X],b,bt),end:b},pt=yt):pt=b,Z>-1&&(yt=mt(Tt=H[Z],q,bt),L.push({start:q,end:yt}),yt[bt]>=q[bt]==yt[bt]>=pt[bt]&&(Ct=q[bt=bt==="y"?"x":"y"]<b[bt],L.push({start:yt,end:vt(yt,bt,Tt,bt+(Ct?"Max":"Min"),Ct?1:-1)}),bt=bt==="y"?"x":"y"));let kt=L.length?L[L.length-1].end:q;yt=vt(kt,bt,pt),L.push({start:kt,end:yt});let Pt=vt(yt,bt=bt==="y"?"x":"y",pt);return L.push({start:yt,end:Pt}),L.push(ut),{path:Zo.applyRadius(Ns(L),A.radius),obstacles:L}};function ko(q,b,A){let L=Co(A.startDirectionX,Er(b.x-q.x)>Er(b.y-q.y)),H=L?"x":"y",Z=[],X=A.obstacleMetrics,ut=Yn(q.x,b.x)-X.maxWidth-10,bt=Ls(q.x,b.x)+X.maxWidth+10,Tt=Yn(q.y,b.y)-X.maxHeight-10,yt=Ls(q.y,b.y)+X.maxHeight+10,Ct,pt,vt,mt=!1,kt=A.chartObstacles,Pt=Is(kt,bt),Gt=Is(kt,ut);function oe(Qt,ae,Oe){let ce,ye,Te,De,Le=Qt.x<ae.x?1:-1;Qt.x<ae.x?(ce=Qt,ye=ae):(ce=ae,ye=Qt),Qt.y<ae.y?(De=Qt,Te=ae):(De=ae,Te=Qt);let Ee=Le<0?Yn(Is(kt,ye.x),kt.length-1):0;for(;kt[Ee]&&(Le>0&&kt[Ee].xMin<=ye.x||Le<0&&kt[Ee].xMax>=ce.x);){if(kt[Ee].xMin<=ye.x&&kt[Ee].xMax>=ce.x&&kt[Ee].yMin<=Te.y&&kt[Ee].yMax>=De.y)return Oe?{y:Qt.y,x:Qt.x<ae.x?kt[Ee].xMin-1:kt[Ee].xMax+1,obstacle:kt[Ee]}:{x:Qt.x,y:Qt.y<ae.y?kt[Ee].yMin-1:kt[Ee].yMax+1,obstacle:kt[Ee]};Ee+=Le}return ae}function fe(Qt,ae,Oe,ce,ye){let Te=ye.soft,De=ye.hard,Le=ce?"x":"y",Ee={x:ae.x,y:ae.y},We={x:ae.x,y:ae.y},Ze=Qt[Le+"Max"]>=Te[Le+"Max"],ji=Qt[Le+"Min"]<=Te[Le+"Min"],Ji=Qt[Le+"Max"]>=De[Le+"Max"],_i=Qt[Le+"Min"]<=De[Le+"Min"],Cn=Er(Qt[Le+"Min"]-ae[Le]),or=Er(Qt[Le+"Max"]-ae[Le]),ln=10>Er(Cn-or)?ae[Le]<Oe[Le]:or<Cn;We[Le]=Qt[Le+"Min"],Ee[Le]=Qt[Le+"Max"];let en=oe(ae,We,ce)[Le]!==We[Le],hs=oe(ae,Ee,ce)[Le]!==Ee[Le];return ln=en?!hs||ln:!hs&&ln,ln=ji?!Ze||ln:!Ze&&ln,ln=_i?!Ji||ln:!Ji&&ln}for((Pt=io(kt=kt.slice(Gt,Pt+1),b))>-1&&(vt=function(Qt,ae,Oe){let ce=Yn(Qt.xMax-ae.x,ae.x-Qt.xMin)<Yn(Qt.yMax-ae.y,ae.y-Qt.yMin),ye=fe(Qt,ae,Oe,ce,{soft:A.hardBounds,hard:A.hardBounds});return ce?{y:ae.y,x:Qt[ye?"xMax":"xMin"]+(ye?1:-1)}:{x:ae.x,y:Qt[ye?"yMax":"yMin"]+(ye?1:-1)}}(kt[Pt],b,q),Z.push({end:b,start:vt}),b=vt);(Pt=io(kt,b))>-1;)pt=b[H]-q[H]<0,(vt={x:b.x,y:b.y})[H]=kt[Pt][pt?H+"Max":H+"Min"]+(pt?1:-1),Z.push({end:b,start:vt}),b=vt;return{path:Ns(Ct=(Ct=function Qt(ae,Oe,ce){let ye,Te,De,Le,Ee,We,Ze;if(ae.x===Oe.x&&ae.y===Oe.y)return[];let ji=ce?"x":"y",Ji=A.obstacleOptions.margin,_i={soft:{xMin:ut,xMax:bt,yMin:Tt,yMax:yt},hard:A.hardBounds};return(Ee=io(kt,ae))>-1?(Le=fe(Ee=kt[Ee],ae,Oe,ce,_i),oc(Ee,A.hardBounds),Ze=ce?{y:ae.y,x:Ee[Le?"xMax":"xMin"]+(Le?1:-1)}:{x:ae.x,y:Ee[Le?"yMax":"yMin"]+(Le?1:-1)},(We=io(kt,Ze))>-1&&(oc(We=kt[We],A.hardBounds),Ze[ji]=Le?Ls(Ee[ji+"Max"]-Ji+1,(We[ji+"Min"]+Ee[ji+"Max"])/2):Yn(Ee[ji+"Min"]+Ji-1,(We[ji+"Max"]+Ee[ji+"Min"])/2),ae.x===Ze.x&&ae.y===Ze.y?(mt&&(Ze[ji]=Le?Ls(Ee[ji+"Max"],We[ji+"Max"])+1:Yn(Ee[ji+"Min"],We[ji+"Min"])-1),mt=!mt):mt=!1),Te=[{start:ae,end:Ze}]):(ye=oe(ae,{x:ce?Oe.x:ae.x,y:ce?ae.y:Oe.y},ce),Te=[{start:ae,end:{x:ye.x,y:ye.y}}],ye[ce?"x":"y"]!==Oe[ce?"x":"y"]&&(Le=fe(ye.obstacle,ye,Oe,!ce,_i),oc(ye.obstacle,A.hardBounds),De={x:ce?ye.x:ye.obstacle[Le?"xMax":"xMin"]+(Le?1:-1),y:ce?ye.obstacle[Le?"yMax":"yMin"]+(Le?1:-1):ye.y},ce=!ce,Te=Te.concat(Qt({x:ye.x,y:ye.y},De,ce)))),Te=Te.concat(Qt(Te[Te.length-1].end,Oe,!ce))}(q,b,L)).concat(Z.reverse())),obstacles:Ct}}qn.requiresObstacles=!0,ko.requiresObstacles=!0;let Rn={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}},{setOptions:as}=Et(),{defined:Iu,error:no,merge:Mo}=Et();function ac(q){let b=q.shapeArgs;if(b)return{xMin:b.x||0,xMax:(b.x||0)+(b.width||0),yMin:b.y||0,yMax:(b.y||0)+(b.height||0)};let A=q.graphic&&q.graphic.getBBox();return A?{xMin:q.plotX-A.width/2,xMax:q.plotX+A.width/2,yMin:q.plotY-A.height/2,yMax:q.plotY+A.height/2}:null}(function(q){function b(H){let Z,X,ut=ac(this);switch(H.align){case"right":Z="xMax";break;case"left":Z="xMin"}switch(H.verticalAlign){case"top":X="yMin";break;case"bottom":X="yMax"}return{x:Z?ut[Z]:(ut.xMin+ut.xMax)/2,y:X?ut[X]:(ut.yMin+ut.yMax)/2}}function A(H,Z){let X;return!Iu(Z)&&(X=ac(this))&&(Z={x:(X.xMin+X.xMax)/2,y:(X.yMin+X.yMax)/2}),Math.atan2(Z.y-H.y,H.x-Z.x)}function L(H,Z,X){let ut=2*Math.PI,bt=ac(this),Tt=bt.xMax-bt.xMin,yt=bt.yMax-bt.yMin,Ct=Math.atan2(yt,Tt),pt=Tt/2,vt=yt/2,mt=bt.xMin+pt,kt=bt.yMin+vt,Pt={x:mt,y:kt},Gt=H,oe=1,fe=!1,Qt=1,ae=1;for(;Gt<-Math.PI;)Gt+=ut;for(;Gt>Math.PI;)Gt-=ut;return oe=Math.tan(Gt),Gt>-Ct&&Gt<=Ct?(ae=-1,fe=!0):Gt>Ct&&Gt<=Math.PI-Ct?ae=-1:Gt>Math.PI-Ct||Gt<=-(Math.PI-Ct)?(Qt=-1,fe=!0):Qt=-1,fe?(Pt.x+=Qt*pt,Pt.y+=ae*pt*oe):(Pt.x+=yt/(2*oe)*Qt,Pt.y+=ae*vt),X.x!==mt&&(Pt.x=X.x),X.y!==kt&&(Pt.y=X.y),{x:Pt.x+Z*Math.cos(Gt),y:Pt.y-Z*Math.sin(Gt)}}q.compose=function(H,Z,X){let ut=X.prototype;ut.getPathfinderAnchorPoint||(H.prototype.callbacks.push(function(bt){bt.options.connectors.enabled!==!1&&((bt.options.pathfinder||bt.series.reduce(function(Tt,yt){return yt.options&&Mo(!0,yt.options.connectors=yt.options.connectors||{},yt.options.pathfinder),Tt||yt.options&&yt.options.pathfinder},!1))&&(Mo(!0,bt.options.connectors=bt.options.connectors||{},bt.options.pathfinder),no('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new Z(this),this.pathfinder.update(!0))}),ut.getMarkerVector=L,ut.getPathfinderAnchorPoint=b,ut.getRadiansToVector=A,as(Rn))}})(it||(it={}));let dl=it;var Yc=wt(260),hl=wt.n(Yc);let{addEvent:qc,defined:Nu,pick:Qo,splat:Ad}=Et(),zu=Math.max,Rd=Math.min;class pl{static compose(b,A){dl.compose(b,pl,A)}constructor(b){this.init(b)}init(b){this.chart=b,this.connections=[],qc(b,"redraw",function(){this.pathfinder.update()})}update(b){let A=this.chart,L=this,H=L.connections;L.connections=[],A.series.forEach(function(Z){Z.visible&&!Z.options.isInternal&&Z.points.forEach(function(X){var yt;let ut,bt=X.options;bt&&bt.dependency&&(bt.connect=bt.dependency);let Tt=(yt=X.options)!=null&&yt.connect?Ad(X.options.connect):[];X.visible&&X.isInside!==!1&&Tt.forEach(Ct=>{let pt=typeof Ct=="string"?Ct:Ct.to;pt&&(ut=A.get(pt)),ut instanceof hl()&&ut.series.visible&&ut.visible&&ut.isInside!==!1&&L.connections.push(new Se(X,ut,typeof Ct=="string"?{}:Ct))})})});for(let Z=0,X,ut,bt=H.length,Tt=L.connections.length;Z<bt;++Z){ut=!1;let yt=H[Z];for(X=0;X<Tt;++X){let Ct=L.connections[X];if((yt.options&&yt.options.type)===(Ct.options&&Ct.options.type)&&yt.fromPoint===Ct.fromPoint&&yt.toPoint===Ct.toPoint){Ct.graphics=yt.graphics,ut=!0;break}}ut||yt.destroy()}delete this.chartObstacles,delete this.lineObstacles,L.renderConnections(b)}renderConnections(b){b?this.chart.series.forEach(function(A){let L=function(){let H=A.chart.pathfinder;(H&&H.connections||[]).forEach(function(Z){Z.fromPoint&&Z.fromPoint.series===A&&Z.render()}),A.pathfinderRemoveRenderEvent&&(A.pathfinderRemoveRenderEvent(),delete A.pathfinderRemoveRenderEvent)};A.options.animation===!1?L():A.pathfinderRemoveRenderEvent=qc(A,"afterAnimate",L)}):this.connections.forEach(function(A){A.render()})}getChartObstacles(b){let A=this.chart.series,L=Qo(b.algorithmMargin,0),H=[],Z;for(let X=0,ut=A.length;X<ut;++X)if(A[X].visible&&!A[X].options.isInternal)for(let bt=0,Tt=A[X].points.length,yt,Ct;bt<Tt;++bt)(Ct=A[X].points[bt]).visible&&(yt=function(pt){let vt=pt.shapeArgs;if(vt)return{xMin:vt.x||0,xMax:(vt.x||0)+(vt.width||0),yMin:vt.y||0,yMax:(vt.y||0)+(vt.height||0)};let mt=pt.graphic&&pt.graphic.getBBox();return mt?{xMin:pt.plotX-mt.width/2,xMax:pt.plotX+mt.width/2,yMin:pt.plotY-mt.height/2,yMax:pt.plotY+mt.height/2}:null}(Ct))&&H.push({xMin:yt.xMin-L,xMax:yt.xMax+L,yMin:yt.yMin-L,yMax:yt.yMax+L});return H=H.sort(function(X,ut){return X.xMin-ut.xMin}),Nu(b.algorithmMargin)||(Z=b.algorithmMargin=function(X){let ut,bt=X.length,Tt=[];for(let yt=0;yt<bt;++yt)for(let Ct=yt+1;Ct<bt;++Ct)(ut=function pt(vt,mt,kt){let Pt=Qo(kt,10),Gt=vt.yMax+Pt>mt.yMin-Pt&&vt.yMin-Pt<mt.yMax+Pt,oe=vt.xMax+Pt>mt.xMin-Pt&&vt.xMin-Pt<mt.xMax+Pt,fe=Gt?vt.xMin>mt.xMax?vt.xMin-mt.xMax:mt.xMin-vt.xMax:1/0,Qt=oe?vt.yMin>mt.yMax?vt.yMin-mt.yMax:mt.yMin-vt.yMax:1/0;return oe&&Gt?Pt?pt(vt,mt,Math.floor(Pt/2)):1/0:Rd(fe,Qt)}(X[yt],X[Ct]))<80&&Tt.push(ut);return Tt.push(80),zu(Math.floor(Tt.sort(function(yt,Ct){return yt-Ct})[Math.floor(Tt.length/10)]/2-1),1)}(H),H.forEach(function(X){X.xMin-=Z,X.xMax+=Z,X.yMin-=Z,X.yMax+=Z})),H}getObstacleMetrics(b){let A=0,L=0,H,Z,X=b.length;for(;X--;)H=b[X].xMax-b[X].xMin,Z=b[X].yMax-b[X].yMin,A<H&&(A=H),L<Z&&(L=Z);return{maxHeight:L,maxWidth:A}}getAlgorithmStartDirection(b){let A=b.align!=="left"&&b.align!=="right",L=b.verticalAlign!=="top"&&b.verticalAlign!=="bottom";return A?!!L&&void 0:!!L||void 0}}pl.prototype.algorithms={fastAvoid:ko,straight:function(q,b){return{path:[["M",q.x,q.y],["L",b.x,b.y]],obstacles:[{start:q,end:b}]}},simpleConnect:qn};let Kn=Et();Kn.Pathfinder=Kn.Pathfinder||pl,ie.compose(Kn.SVGRenderer),Kn.Pathfinder.compose(Kn.Chart,Kn.Point);let{addEvent:La,defined:ju,isNumber:Ia,pick:$u}=Et();function Na(){let q=this.chart.options.chart;!this.horiz&&Ia(this.options.staticScale)&&(!q.height||q.scrollablePlotArea&&q.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)}function zs(){if(this.redrawTrigger!=="adjustHeight"){for(let q of this.axes||[]){let b=q.chart,A=!!b.initiatedScale&&b.options.animation,L=q.options.staticScale;if(q.staticScale&&ju(q.min)){let H=$u(q.brokenAxis&&q.brokenAxis.unitLength,q.max+q.tickInterval-q.min)*L,Z=(H=Math.max(H,L))-b.plotHeight;!b.scrollablePixelsY&&Math.abs(Z)>=1&&(b.plotHeight=H,b.redrawTrigger="adjustHeight",b.setSize(void 0,b.chartHeight+Z,A)),q.series.forEach(function(X){let ut=X.sharedClipKey&&b.sharedClips[X.sharedClipKey];ut&&ut.attr(b.inverted?{width:b.plotHeight}:{height:b.plotHeight})})}}this.initiatedScale=!0}this.redrawTrigger=null}let Hu={compose:function(q,b){let A=b.prototype;A.adjustHeight||(La(q,"afterSetOptions",Na),A.adjustHeight=zs,La(b,"render",A.adjustHeight))}},Uu=Et();Hu.compose(Uu.Axis,Uu.Chart);let{correctFloat:Jo,isNumber:ro,isObject:To}=Et(),{column:{prototype:{pointClass:ta}}}=Ks().seriesTypes,{extend:fl}=Et();class Ss extends ta{static getColorByCategory(b,A){let L=b.options.colors||b.chart.options.colors,H=L?L.length:b.chart.options.chart.colorCount,Z=A.y%H,X=L&&L[Z];return{colorIndex:Z,color:X}}resolveColor(){let b=this.series;if(b.options.colorByPoint&&!this.options.color){let A=Ss.getColorByCategory(b,this);b.chart.styledMode||(this.color=A.color),this.options.colorIndex||(this.colorIndex=A.colorIndex)}else this.color=this.options.color||b.color}constructor(b,A){super(b,A),this.y||(this.y=0)}applyOptions(b,A){var L;return super.applyOptions(b,A),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!((L=this.isValid)!=null&&L.call(this)),this}setState(){super.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())}isValid(){return typeof this.x=="number"&&typeof this.x2=="number"}}fl(Ss.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});let{composed:js,noop:ea}=Et(),{parse:gl}=qs(),{column:so}=Ks().seriesTypes,{addEvent:ia,clamp:na,crisp:ra,defined:Od,extend:Pd,find:ls,isNumber:Kr,isObject:za,merge:ws,pick:dr,pushUnique:jr,relativeLength:sa}=Et();function Kc(){let q,b;if(this.isXAxis){for(let A of(q=dr(this.dataMax,-Number.MAX_VALUE),this.series)){let L=A.dataTable.getColumn("x2",!0)||A.dataTable.getColumn("end",!0);if(L)for(let H of L)Kr(H)&&H>q&&(q=H,b=!0)}b&&(this.dataMax=q)}}class oo extends so{static compose(b){jr(js,"Series.XRange")&&ia(b,"afterGetSeriesExtremes",Kc)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}getColumnMetrics(){let b=()=>{for(let L of this.chart.series){let H=L.xAxis;L.xAxis=L.yAxis,L.yAxis=H}};b();let A=super.getColumnMetrics();return b(),A}cropData(b,A,L){let H=b.getColumn("x")||[],Z=b.getColumn("x2");b.setColumn("x",Z,void 0,{silent:!0});let X=super.cropData(b,A,L);return b.setColumn("x",H.slice(X.start,X.end),void 0,{silent:!0}),X}findPointIndex(b){let A,{cropStart:L,points:H}=this,{id:Z}=b;if(Z){let X=ls(H,ut=>ut.id===Z);A=X?X.index:void 0}if(A===void 0){let X=ls(H,ut=>ut.x===b.x&&ut.x2===b.x2&&!ut.touched);A=X?X.index:void 0}return this.cropped&&Kr(A)&&Kr(L)&&A>=L&&(A-=L),A}alignDataLabel(b){var L;let A=b.plotX;b.plotX=dr(b.dlBox&&b.dlBox.centerX,b.plotX),b.dataLabel&&((L=b.shapeArgs)!=null&&L.width)&&b.dataLabel.css({width:`${b.shapeArgs.width}px`}),super.alignDataLabel.apply(this,arguments),b.plotX=A}translatePoint(b){var Cn;let A=this.xAxis,L=this.yAxis,H=this.columnMetrics,Z=this.options,X=Z.minPointLength||0,ut=(b.shapeArgs&&b.shapeArgs.width||0)/2,bt=this.pointXOffset=H.offset,Tt=dr(b.x2,b.x+(b.len||0)),yt=Z.borderRadius,Ct=this.chart.plotTop,pt=this.chart.plotLeft,vt=b.plotX,mt=A.translate(Tt,0,0,0,1),kt=Math.abs(mt-vt),Pt=this.chart.inverted,Gt=dr(Z.borderWidth,1),oe,fe,Qt=H.offset,ae=Math.round(H.width),Oe,ce,ye,Te;X&&((oe=X-kt)<0&&(oe=0),vt-=oe/2,mt+=oe/2),vt=Math.max(vt,-10),mt=na(mt,-10,A.len+10),Od(b.options.pointWidth)&&(Qt-=(Math.ceil(b.options.pointWidth)-ae)/2,ae=Math.ceil(b.options.pointWidth)),Z.pointPlacement&&Kr(b.plotY)&&L.categories&&(b.plotY=L.translate(b.y,0,1,0,1,Z.pointPlacement));let De=ra(Math.min(vt,mt),Gt),Le=ra(Math.max(vt,mt),Gt)-De,Ee=Math.min(sa(typeof yt=="object"?yt.radius:yt||0,ae),Math.min(Le,ae)/2),We={x:De,y:ra((b.plotY||0)+Qt,Gt),width:Le,height:ae,r:Ee};b.shapeArgs=We,Pt?b.tooltipPos[1]+=bt+ut:b.tooltipPos[0]-=ut+bt-We.width/2,ce=(Oe=We.x)+We.width,Oe<0||ce>A.len?(Oe=na(Oe,0,A.len),ye=(ce=na(ce,0,A.len))-Oe,b.dlBox=ws(We,{x:Oe,width:ce-Oe,centerX:ye?ye/2:null})):b.dlBox=null;let Ze=b.tooltipPos,ji=Pt?1:0,Ji=Pt?0:1,_i=this.columnMetrics?this.columnMetrics.offset:-H.width/2;Pt?Ze[ji]+=We.width/2:Ze[ji]=na(Ze[ji]+(A.reversed?-1:0)*We.width,A.left-pt,A.left+A.len-pt-1),Ze[Ji]=na(Ze[Ji]+(Pt?-1:1)*_i,L.top-Ct,L.top+L.len-Ct-1),(fe=b.partialFill)&&(za(fe)&&(fe=fe.amount),Kr(fe)||(fe=0),b.partShapeArgs=ws(We),Te=Math.max(Math.round(kt*fe+b.plotX-vt),0),b.clipRectArgs={x:A.reversed?We.x+kt-Te:We.x,y:We.y,width:Te,height:We.height}),b.key=b.category||b.name,b.yCategory=(Cn=L.categories)==null?void 0:Cn[b.y??-1]}translate(){for(let b of(super.translate.apply(this,arguments),this.points))this.translatePoint(b)}drawPoint(b,A){let L=this.options,H=this.chart.renderer,Z=b.shapeType,X=b.shapeArgs,ut=b.partShapeArgs,bt=b.clipRectArgs,Tt=b.state,yt=L.states[Tt||"normal"]||{},Ct=Tt===void 0?"attr":A,pt=this.pointAttribs(b,Tt),vt=dr(this.chart.options.chart.animation,yt.animation),mt=b.graphic,kt=b.partialFill;if(b.isNull||b.visible===!1)mt&&(b.graphic=mt.destroy());else if(mt?mt.rect[A](X):(b.graphic=mt=H.g("point").addClass(b.getClassName()).add(b.group||this.group),mt.rect=H[Z](ws(X)).addClass(b.getClassName()).addClass("highcharts-partfill-original").add(mt)),ut&&(mt.partRect?(mt.partRect[A](ws(ut)),mt.partialClipRect[A](ws(bt))):(mt.partialClipRect=H.clipRect(bt.x,bt.y,bt.width,bt.height),mt.partRect=H[Z](ut).addClass("highcharts-partfill-overlay").add(mt).clip(mt.partialClipRect))),!this.chart.styledMode&&(mt.rect[A](pt,vt).shadow(L.shadow),ut)){za(kt)||(kt={}),za(L.partialFill)&&(kt=ws(L.partialFill,kt));let Pt=kt.fill||gl(pt.fill).brighten(-.3).get()||gl(b.color||this.color).brighten(-.3).get();pt.fill=Pt,mt.partRect[Ct](pt,vt).shadow(L.shadow)}}drawPoints(){let b=this.getAnimationVerb();for(let A of this.points)this.drawPoint(A,b)}getAnimationVerb(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}isPointInside(b){let A=b.shapeArgs,L=b.plotX,H=b.plotY;return A?L!==void 0&&H!==void 0&&H>=0&&H<=this.yAxis.len&&(A.x||0)+(A.width||0)>=0&&L<=this.xAxis.len:super.isPointInside.apply(this,arguments)}}oo.defaultOptions=ws(so.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){let q=this.partialFill;if(To(q)&&(q=q.amount),ro(q)&&q>0)return Jo(100*q)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}),Pd(oo.prototype,{pointClass:Ss,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:Ks().series.prototype.animate,autoIncrement:ea,buildKDTree:ea}),Ks().registerSeriesType("xrange",oo);/**
* @license Highcharts JS v12.1.2 (2024-12-21)
* @module highcharts/modules/xrange
* @requires highcharts
*
* X-range series
*
* (c) 2010-2024 Torstein Honsi, Lars A. V. Cabrera
*
* License: www.highcharts.com/license
*/let lc=Et();oo.compose(lc.Axis);let{xrange:{prototype:{pointClass:ml}}}=Ks().seriesTypes;class Sn extends ml{static setGanttPointAliases(b,A){b.x=b.start=A.time.parse(b.start??b.x),b.x2=b.end=A.time.parse(b.end??b.x2),b.partialFill=b.completed=b.completed??b.partialFill}applyOptions(b,A){var H;let L=super.applyOptions(b,A);return Sn.setGanttPointAliases(L,L.series.chart),this.isNull=!((H=this.isValid)!=null&&H.call(this)),L}isValid(){return(typeof this.start=="number"||typeof this.x=="number")&&(typeof this.end=="number"||typeof this.x2=="number"||this.milestone)}}let{isNumber:Ki}=Et();var cc=wt(184),oa=wt.n(cc);let{addEvent:$s,find:Ar,fireEvent:Gi,isArray:Eo,isNumber:hr,pick:cs}=Et();(function(q){function b(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function A(){var yt;(yt=this.brokenAxis)!=null&&yt.hasBreaks&&(this.options.ordinal=!1)}function L(){let yt=this.brokenAxis;if(yt!=null&&yt.hasBreaks){let Ct=this.tickPositions,pt=this.tickPositions.info,vt=[];for(let mt=0;mt<Ct.length;mt++)yt.isInAnyBreak(Ct[mt])||vt.push(Ct[mt]);this.tickPositions=vt,this.tickPositions.info=pt}}function H(){this.brokenAxis||(this.brokenAxis=new Tt(this))}function Z(){var kt,Pt;let{isDirty:yt,options:{connectNulls:Ct},points:pt,xAxis:vt,yAxis:mt}=this;if(yt){let Gt=pt.length;for(;Gt--;){let oe=pt[Gt],fe=!(oe.y===null&&Ct===!1)&&(((kt=vt==null?void 0:vt.brokenAxis)==null?void 0:kt.isInAnyBreak(oe.x,!0))||((Pt=mt==null?void 0:mt.brokenAxis)==null?void 0:Pt.isInAnyBreak(oe.y,!0)));oe.visible=!fe&&oe.options.visible!==!1}}}function X(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,cs(this.pointArrayMap,["y"]))}function ut(yt,Ct){var Gt;let pt,vt,mt,kt=this,Pt=kt.points;if((Gt=yt==null?void 0:yt.brokenAxis)!=null&&Gt.hasBreaks){let oe=yt.brokenAxis;Ct.forEach(function(fe){var ae,Oe;pt=(oe==null?void 0:oe.breakArray)||[],vt=yt.isXAxis?yt.min:cs(kt.options.threshold,yt.min);let Qt=(Oe=(ae=yt==null?void 0:yt.options)==null?void 0:ae.breaks)==null?void 0:Oe.filter(function(ce){let ye=!0;for(let Te=0;Te<pt.length;Te++){let De=pt[Te];if(De.from===ce.from&&De.to===ce.to){ye=!1;break}}return ye});Pt.forEach(function(ce){mt=cs(ce["stack"+fe.toUpperCase()],ce[fe]),pt.forEach(function(ye){if(hr(vt)&&hr(mt)){let Te="";vt<ye.from&&mt>ye.to||vt>ye.from&&mt<ye.from?Te="pointBreak":(vt<ye.from&&mt>ye.from&&mt<ye.to||vt>ye.from&&mt>ye.to&&mt<ye.from)&&(Te="pointInBreak"),Te&&Gi(yt,Te,{point:ce,brk:ye})}}),Qt==null||Qt.forEach(function(ye){Gi(yt,"pointOutsideOfBreak",{point:ce,brk:ye})})})})}}function bt(){let yt=this.currentDataGrouping,Ct=yt==null?void 0:yt.gapSize,pt=this.points.slice(),vt=this.yAxis,mt=this.options.gapSize,kt=pt.length-1;if(mt&&kt>0){let Pt,Gt;for(this.options.gapUnit!=="value"&&(mt*=this.basePointRange),Ct&&Ct>mt&&Ct>=this.basePointRange&&(mt=Ct);kt--;)if(Gt&&Gt.visible!==!1||(Gt=pt[kt+1]),Pt=pt[kt],Gt.visible!==!1&&Pt.visible!==!1){if(Gt.x-Pt.x>mt){let oe=(Pt.x+Gt.x)/2;pt.splice(kt+1,0,{isNull:!0,x:oe}),vt.stacking&&this.options.stacking&&((vt.stacking.stacks[this.stackKey][oe]=new(oa())(vt,vt.options.stackLabels,!1,oe,this.stack)).total=0)}Gt=Pt}}return this.getGraphPath(pt)}q.compose=function(yt,Ct){if(!yt.keepProps.includes("brokenAxis")){yt.keepProps.push("brokenAxis"),$s(yt,"init",H),$s(yt,"afterInit",b),$s(yt,"afterSetTickPositions",L),$s(yt,"afterSetOptions",A);let pt=Ct.prototype;pt.drawBreaks=ut,pt.gappedPath=bt,$s(Ct,"afterGeneratePoints",Z),$s(Ct,"afterRender",X)}return yt};class Tt{static isInBreak(Ct,pt){let vt=Ct.repeat||1/0,mt=Ct.from,kt=Ct.to-Ct.from,Pt=pt>=mt?(pt-mt)%vt:vt-(mt-pt)%vt;return Ct.inclusive?Pt<=kt:Pt<kt&&Pt!==0}static lin2Val(Ct){let pt=this.brokenAxis,vt=pt&&pt.breakArray;if(!vt||!hr(Ct))return Ct;let mt=Ct,kt,Pt;for(Pt=0;Pt<vt.length&&!((kt=vt[Pt]).from>=mt);Pt++)(kt.to<mt||Tt.isInBreak(kt,mt))&&(mt+=kt.len);return mt}static val2Lin(Ct){let pt=this.brokenAxis,vt=pt&&pt.breakArray;if(!vt||!hr(Ct))return Ct;let mt=Ct,kt,Pt;for(Pt=0;Pt<vt.length;Pt++)if((kt=vt[Pt]).to<=Ct)mt-=kt.len;else{if(kt.from>=Ct)break;if(Tt.isInBreak(kt,Ct)){mt-=Ct-kt.from;break}}return mt}constructor(Ct){this.hasBreaks=!1,this.axis=Ct}findBreakAt(Ct,pt){return Ar(pt,function(vt){return vt.from<Ct&&Ct<vt.to})}isInAnyBreak(Ct,pt){let vt=this.axis,mt=vt.options.breaks||[],kt=mt.length,Pt,Gt,oe;if(kt&&hr(Ct)){for(;kt--;)Tt.isInBreak(mt[kt],Ct)&&(Pt=!0,Gt||(Gt=cs(mt[kt].showPoints,!vt.isXAxis)));oe=Pt&&pt?Pt&&!Gt:Pt}return oe}setBreaks(Ct,pt){let vt=this,mt=vt.axis,kt=mt.chart.time,Pt=Eo(Ct)&&!!Ct.length&&!!Object.keys(Ct[0]).length;mt.isDirty=vt.hasBreaks!==Pt,vt.hasBreaks=Pt,Ct==null||Ct.forEach(Gt=>{Gt.from=kt.parse(Gt.from)||0,Gt.to=kt.parse(Gt.to)||0}),Ct!==mt.options.breaks&&(mt.options.breaks=mt.userOptions.breaks=Ct),mt.forceRedraw=!0,mt.series.forEach(function(Gt){Gt.isDirty=!0}),Pt||mt.val2lin!==Tt.val2Lin||(delete mt.val2lin,delete mt.lin2val),Pt&&(mt.userOptions.ordinal=!1,mt.lin2val=Tt.lin2Val,mt.val2lin=Tt.val2Lin,mt.setExtremes=function(Gt,oe,fe,Qt,ae){if(vt.hasBreaks){let Oe,ce=this.options.breaks||[];for(;Oe=vt.findBreakAt(Gt,ce);)Gt=Oe.to;for(;Oe=vt.findBreakAt(oe,ce);)oe=Oe.from;oe<Gt&&(oe=Gt)}mt.constructor.prototype.setExtremes.call(this,Gt,oe,fe,Qt,ae)},mt.setAxisTranslation=function(){if(mt.constructor.prototype.setAxisTranslation.call(this),vt.unitLength=void 0,vt.hasBreaks){let Gt=mt.options.breaks||[],oe=[],fe=[],Qt=cs(mt.pointRangePadding,0),ae=0,Oe,ce,ye=mt.userMin||mt.min,Te=mt.userMax||mt.max,De,Le;Gt.forEach(function(Ee){ce=Ee.repeat||1/0,hr(ye)&&hr(Te)&&(Tt.isInBreak(Ee,ye)&&(ye+=Ee.to%ce-ye%ce),Tt.isInBreak(Ee,Te)&&(Te-=Te%ce-Ee.from%ce))}),Gt.forEach(function(Ee){if(De=Ee.from,ce=Ee.repeat||1/0,hr(ye)&&hr(Te)){for(;De-ce>ye;)De-=ce;for(;De<ye;)De+=ce;for(Le=De;Le<Te;Le+=ce)oe.push({value:Le,move:"in"}),oe.push({value:Le+Ee.to-Ee.from,move:"out",size:Ee.breakSize})}}),oe.sort(function(Ee,We){return Ee.value===We.value?(Ee.move==="in"?0:1)-(We.move==="in"?0:1):Ee.value-We.value}),Oe=0,De=ye,oe.forEach(function(Ee){(Oe+=Ee.move==="in"?1:-1)===1&&Ee.move==="in"&&(De=Ee.value),Oe===0&&hr(De)&&(fe.push({from:De,to:Ee.value,len:Ee.value-De-(Ee.size||0)}),ae+=Ee.value-De-(Ee.size||0))}),vt.breakArray=fe,hr(ye)&&hr(Te)&&hr(mt.min)&&(vt.unitLength=Te-ye-ae+Qt,Gi(mt,"afterBreaks"),mt.staticScale?mt.transA=mt.staticScale:vt.unitLength&&(mt.transA*=(Te-mt.min+Qt)/vt.unitLength),Qt&&(mt.minPixelPadding=mt.transA*(mt.minPointOffset||0)),mt.min=ye,mt.max=Te)}}),cs(pt,!0)&&mt.chart.redraw()}}q.Additions=Tt})(st||(st={}));let He=st,{dateFormats:rr}=Et(),{addEvent:pn,defined:zn,erase:$r,find:ui,isArray:Ao,isNumber:Rr,merge:aa,pick:Zn,timeUnits:Qn,wrap:Oi}=Et();function Zr(q){return Et().isObject(q,!0)}function Hs(q,b){let A={width:0,height:0};if(b.forEach(function(L){let H=q[L],Z=0,X=0,ut;Zr(H)&&(Z=(ut=Zr(H.label)?H.label:{}).getBBox?ut.getBBox().height:0,ut.textStr&&!Rr(ut.textPxLength)&&(ut.textPxLength=ut.getBBox().width),X=Rr(ut.textPxLength)?Math.round(ut.textPxLength):0,ut.textStr&&(X=Math.round(ut.getBBox().width)),A.height=Math.max(Z,A.height),A.width=Math.max(X,A.width))}),this.type==="treegrid"&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){let L=this.treeGrid.mapOfPosToGridNode[-1].height||0;A.width+=this.options.labels.indentation*(L-1)}return A}function uc(q){let{grid:b}=this,A=this.side===3;if(A||q.apply(this),!(b!=null&&b.isColumn)){let L=(b==null?void 0:b.columns)||[];A&&(L=L.slice().reverse()),L.forEach(H=>{H.getOffset()})}A&&q.apply(this)}function Us(q){if((this.options.grid||{}).enabled===!0){let{axisTitle:b,height:A,horiz:L,left:H,offset:Z,opposite:X,options:ut,top:bt,width:Tt}=this,yt=this.tickSize(),Ct=b&&b.getBBox().width,pt=ut.title.x,vt=ut.title.y,mt=Zn(ut.title.margin,L?5:10),kt=b?this.chart.renderer.fontMetrics(b).f:0,Pt=(L?bt+A:H)+(L?1:-1)*(X?-1:1)*(yt?yt[0]/2:0)+(this.side===ct.bottom?kt:0);q.titlePosition.x=L?H-(Ct||0)/2-mt+pt:Pt+(X?Tt:0)+Z+pt,q.titlePosition.y=L?Pt-(X?A:0)+(X?kt:-kt)/2+Z+vt:bt-mt+vt}}function Fs(){let{chart:q,options:{grid:b={}},userOptions:A}=this;if(b.enabled&&function(L){let H=L.options;H.labels.align=Zn(H.labels.align,"center"),L.categories||(H.showLastLabel=!1),L.labelRotation=0,H.labels.rotation=0,H.minTickInterval=1}(this),b.columns){let L=this.grid.columns=[],H=this.grid.columnIndex=0;for(;++H<b.columns.length;){let Z=aa(A,b.columns[H],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),X=new(qi())(this.chart,Z,"yAxis");X.grid.isColumn=!0,X.grid.columnIndex=H,$r(q.axes,X),$r(q[this.coll]||[],X),L.push(X)}}}function Zc(){let{axisTitle:q,grid:b,options:A}=this;if((A.grid||{}).enabled===!0){let L=this.min||0,H=this.max||0,Z=this.ticks[this.tickPositions[0]];if(q&&!this.chart.styledMode&&(Z!=null&&Z.slotWidth)&&!this.options.title.style.width&&q.css({width:`${Z.slotWidth}px`}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid&&this.grid.isOuterAxis()&&this.axisLine){let X=A.lineWidth;if(X){let ut=this.getLinePath(X),bt=ut[0],Tt=ut[1],yt=(this.tickSize("tick")||[1])[0]*(this.side===ct.top||this.side===ct.left?-1:1);if(bt[0]==="M"&&Tt[0]==="L"&&(this.horiz?(bt[2]+=yt,Tt[2]+=yt):(bt[1]+=yt,Tt[1]+=yt)),!this.horiz&&this.chart.marginRight){let Ct=["L",this.left,bt[2]||0],pt=[bt,Ct],vt=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(H+this.tickmarkOffset)],mt=[["M",Tt[1]||0,this.toPixels(H+this.tickmarkOffset)],vt];this.grid.upperBorder||L%1==0||(this.grid.upperBorder=this.grid.renderBorder(pt)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:A.lineColor,"stroke-width":A.lineWidth}),this.grid.upperBorder.animate({d:pt})),this.grid.lowerBorder||H%1==0||(this.grid.lowerBorder=this.grid.renderBorder(mt)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:A.lineColor,"stroke-width":A.lineWidth}),this.grid.lowerBorder.animate({d:mt}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:A.lineColor,"stroke-width":A.lineWidth}),this.grid.axisLineExtra.animate({d:ut})):this.grid.axisLineExtra=this.grid.renderBorder(ut),this.axisLine[this.showAxis?"show":"hide"]()}}if((b&&b.columns||[]).forEach(X=>X.render()),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)&&this.tickPositions.length){let X,ut,bt=this.tickmarkOffset,Tt=this.tickPositions[this.tickPositions.length-1],yt=this.tickPositions[0];for(;(X=this.hiddenLabels.pop())&&X.element;)X.show();for(;(ut=this.hiddenMarks.pop())&&ut.element;)ut.show();(X=this.ticks[yt].label)&&(L-yt>bt?this.hiddenLabels.push(X.hide()):X.show()),(X=this.ticks[Tt].label)&&(Tt-H>bt?this.hiddenLabels.push(X.hide()):X.show());let Ct=this.ticks[Tt].mark;Ct&&Tt-H<bt&&Tt-H>0&&this.ticks[Tt].isLast&&this.hiddenMarks.push(Ct.hide())}}}function yl(){let q=this.tickPositions&&this.tickPositions.info,b=this.options,A=b.grid||{},L=this.userOptions.labels||{};A.enabled&&(this.horiz?(this.series.forEach(H=>{H.options.pointRange=0}),q&&b.dateTimeLabelFormats&&b.labels&&!zn(L.align)&&(b.dateTimeLabelFormats[q.unitName].range===!1||q.count>1)&&(b.labels.align="left",zn(L.x)||(b.labels.x=3))):this.type!=="treegrid"&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function bl(q){let b,A=this.options,L=q.userOptions,H=A&&Zr(A.grid)?A.grid:{};H.enabled===!0&&(b=aa(!0,{className:"highcharts-grid-axis "+(L.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},L),this.coll!=="xAxis"||(zn(L.linkedTo)&&!zn(L.tickPixelInterval)&&(b.tickPixelInterval=350),!(!zn(L.tickPixelInterval)&&zn(L.linkedTo))||zn(L.tickPositioner)||zn(L.tickInterval)||zn(L.units)||(b.tickPositioner=function(Z,X){let ut=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(ut){let bt=b.units||[],Tt,yt=1,Ct="year";for(let mt=0;mt<bt.length;mt++){let kt=bt[mt];if(kt&&kt[0]===ut.unitName){Tt=mt;break}}let pt=Rr(Tt)&&bt[Tt+1];if(pt){Ct=pt[0]||"year";let mt=pt[1];yt=mt&&mt[0]||1}else ut.unitName==="year"&&(yt=10*ut.count);let vt=Qn[Ct];return this.tickInterval=vt*yt,this.chart.time.getTimeTicks({unitRange:vt,count:yt,unitName:Ct},Z,X,this.options.startOfWeek)}})),aa(!0,this.options,b),this.horiz&&(A.minPadding=Zn(L.minPadding,0),A.maxPadding=Zn(L.maxPadding,0)),Rr(A.grid.borderWidth)&&(A.tickWidth=A.lineWidth=H.borderWidth))}function xl(q){let b=q.userOptions,A=b&&b.grid||{},L=A.columns;A.enabled&&L&&aa(!0,this.options,L[0])}function ja(){(this.grid.columns||[]).forEach(q=>q.setScale())}function $a(q){let{horiz:b,maxLabelDimensions:A,options:{grid:L={}}}=this;if(L.enabled&&A){let H=2*this.options.labels.distance,Z=b?L.cellHeight||H+A.height:H+A.width;Ao(q.tickSize)?q.tickSize[0]=Z:q.tickSize=[Z,0]}}function Ro(){this.axes.forEach(q=>{(q.grid&&q.grid.columns||[]).forEach(b=>{b.setAxisSize(),b.setAxisTranslation()})})}function vl(q){let{grid:b}=this;(b.columns||[]).forEach(A=>A.destroy(q.keepEvents)),b.columns=void 0}function Sl(q){let b=q.userOptions||{},A=b.grid||{};A.enabled&&zn(A.borderColor)&&(b.tickColor=b.lineColor=A.borderColor),this.grid||(this.grid=new Cl(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function wl(q){let b=this.label,A=this.axis,L=A.reversed,H=A.chart,Z=A.options.grid||{},X=A.options.labels,ut=X.align,bt=ct[A.side],Tt=q.tickmarkOffset,yt=A.tickPositions,Ct=this.pos-Tt,pt=Rr(yt[q.index+1])?yt[q.index+1]-Tt:(A.max||0)+Tt,vt=A.tickSize("tick"),mt=vt?vt[0]:0,kt=vt?vt[1]/2:0;if(Z.enabled===!0){let Pt,Gt,oe,fe;if(bt==="top"?Gt=(Pt=A.top+A.offset)-mt:bt==="bottom"?Pt=(Gt=H.chartHeight-A.bottom+A.offset)+mt:(Pt=A.top+A.len-(A.translate(L?pt:Ct)||0),Gt=A.top+A.len-(A.translate(L?Ct:pt)||0)),bt==="right"?fe=(oe=H.chartWidth-A.right+A.offset)+mt:bt==="left"?oe=(fe=A.left+A.offset)-mt:(oe=Math.round(A.left+(A.translate(L?pt:Ct)||0))-kt,fe=Math.min(Math.round(A.left+(A.translate(L?Ct:pt)||0))-kt,A.left+A.len)),this.slotWidth=fe-oe,q.pos.x=ut==="left"?oe:ut==="right"?fe:oe+(fe-oe)/2,q.pos.y=Gt+(Pt-Gt)/2,b){let Qt=H.renderer.fontMetrics(b),ae=b.getBBox().height;if(X.useHTML)q.pos.y+=Qt.b+-(ae/2);else{let Oe=Math.round(ae/Qt.h);q.pos.y+=(Qt.b-(Qt.h-Qt.f))/2+-((Oe-1)*Qt.h/2)}}q.pos.x+=A.horiz&&X.x||0}}function Oo(q){let{axis:b,value:A}=q;if(b.options.grid&&b.options.grid.enabled){let L,H=b.tickPositions,Z=(b.linkedParent||b).series[0],X=A===H[0],ut=A===H[H.length-1],bt=Z&&ui(Z.options.data,function(Tt){return Tt[b.isXAxis?"x":"y"]===A});bt&&Z.is("gantt")&&(L=aa(bt),Et().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(L,b.chart)),q.isFirst=X,q.isLast=ut,q.point=L}}function us(){let q=this.options,b=q.grid||{},A=this.categories,L=this.tickPositions,H=L[0],Z=L[1],X=L[L.length-1],ut=L[L.length-2],bt=this.linkedParent&&this.linkedParent.min,Tt=this.linkedParent&&this.linkedParent.max,yt=bt||this.min,Ct=Tt||this.max,pt=this.tickInterval,vt=Rr(yt)&&yt>=H+pt&&yt<Z,mt=Rr(yt)&&H<yt&&H+pt>yt,kt=Rr(Ct)&&X>Ct&&X-pt<Ct,Pt=Rr(Ct)&&Ct<=X-pt&&Ct>ut;b.enabled===!0&&!A&&(this.isXAxis||this.isLinked)&&((mt||vt)&&!q.startOnTick&&(L[0]=yt),(kt||Pt)&&!q.endOnTick&&(L[L.length-1]=Ct))}function Ha(q){var b;let{options:{grid:A={}}}=this;return A.enabled===!0&&this.categories?this.tickInterval:q.apply(this,(b=arguments,Array.prototype.slice.call(b,1)))}(function(q){q[q.top=0]="top",q[q.right=1]="right",q[q.bottom=2]="bottom",q[q.left=3]="left"})(ct||(ct={}));class Cl{constructor(b){this.axis=b}isOuterAxis(){var bt;let b=this.axis,A=b.chart,L=b.grid.columnIndex,H=((bt=b.linkedParent)==null?void 0:bt.grid.columns)||b.grid.columns||[],Z=L?b.linkedParent:b,X=-1,ut=0;return b.side===3&&!A.inverted&&H.length?!b.linkedParent:((A[b.coll]||[]).forEach((Tt,yt)=>{Tt.side!==b.side||Tt.options.isInternal||(ut=yt,Tt!==Z||(X=yt))}),ut===X&&(!Rr(L)||H.length===L))}renderBorder(b){let A=this.axis,L=A.chart.renderer,H=A.options,Z=L.path(b).addClass("highcharts-axis-line").add(A.axisGroup);return L.styledMode||Z.attr({stroke:H.lineColor,"stroke-width":H.lineWidth,zIndex:7}),Z}}rr.E=function(q){return this.dateFormat("%a",q,!0).charAt(0)},rr.W=function(q){let b=this.toParts(q),A=(b[7]+6)%7,L=b.slice(0);L[2]=b[2]-A+3;let H=this.toParts(this.makeTime(L[0],0,1));return H[7]!==4&&(b[1]=0,b[2]=1+(11-H[7])%7),(1+Math.floor((this.makeTime(L[0],L[1],L[2])-this.makeTime(H[0],H[1],H[2]))/6048e5)).toString()};let kl={compose:function(q,b,A){return q.keepProps.includes("grid")||(q.keepProps.push("grid"),q.prototype.getMaxLabelDimensions=Hs,Oi(q.prototype,"unsquish",Ha),Oi(q.prototype,"getOffset",uc),pn(q,"init",Sl),pn(q,"afterGetTitlePosition",Us),pn(q,"afterInit",Fs),pn(q,"afterRender",Zc),pn(q,"afterSetAxisTranslation",yl),pn(q,"afterSetOptions",bl),pn(q,"afterSetOptions",xl),pn(q,"afterSetScale",ja),pn(q,"afterTickSize",$a),pn(q,"trimTicks",us),pn(q,"destroy",vl),pn(b,"afterSetChartSize",Ro),pn(A,"afterGetLabelPosition",wl),pn(A,"labelFormat",Oo)),q}},{extend:Ua,isNumber:la,pick:Qc}=Et();function ca(q,b,A,L,H,Z){let X=Z&&Z.after,ut=Z&&Z.before,bt={data:L,depth:A-1,id:q,level:A,parent:b||""},Tt=0,yt=0,Ct,pt;typeof ut=="function"&&ut(bt,Z);let vt=(H[q]||[]).map(mt=>{let kt=ca(mt.id,q,A+1,mt,H,Z),Pt=mt.start||NaN,Gt=mt.milestone===!0?Pt:mt.end||NaN;return Ct=!la(Ct)||Pt<Ct?Pt:Ct,pt=!la(pt)||Gt>pt?Gt:pt,Tt=Tt+1+kt.descendants,yt=Math.max(kt.height+1,yt),kt});return L&&(L.start=Qc(L.start,Ct),L.end=Qc(L.end,pt)),Ua(bt,{children:vt,descendants:Tt,height:yt}),typeof X=="function"&&X(bt,Z),bt}let Po={getNode:ca,getTree:function(q,b){return ca("",null,1,null,function(A){let L=[],H=A.reduce((Z,X)=>{let{parent:ut="",id:bt}=X;return Z[ut]===void 0&&(Z[ut]=[]),Z[ut].push(X),bt&&L.push(bt),Z},{});return Object.keys(H).forEach(Z=>{if(Z!==""&&L.indexOf(Z)===-1){let X=H[Z].map(function(ut){let{...bt}=ut;return bt});H[""].push(...X),delete H[Z]}}),H}(q),b)}},{addEvent:Bo,removeEvent:Fa,isObject:ds,isNumber:Ml,pick:Cs,wrap:dc}=Et();function Qr(){this.treeGrid||(this.treeGrid=new Jc(this))}function sr(q,b,A,L,H,Z,X,ut,bt){let Tt,yt,Ct,pt=Cs(this.options&&this.options.labels,Z),vt=this.pos,mt=this.axis,kt=mt.type==="treegrid",Pt=q.apply(this,[b,A,L,H,pt,X,ut,bt]);if(kt){let{width:Gt=0,padding:oe=mt.linkedParent?0:5}=pt&&ds(pt.symbol,!0)?pt.symbol:{},fe=pt&&Ml(pt.indentation)?pt.indentation:0;Ct=(yt=(Tt=mt.treeGrid.mapOfPosToGridNode)&&Tt[vt])&&yt.depth||1,Pt.x+=Gt+2*oe+(Ct-1)*fe}return Pt}function ao(q){let b,A,L,{pos:H,axis:Z,label:X,treeGrid:ut,options:bt}=this,Tt=ut==null?void 0:ut.labelIcon,yt=X==null?void 0:X.element,{treeGrid:Ct,options:pt,chart:vt,tickPositions:mt}=Z,kt=Ct.mapOfPosToGridNode,Pt=Cs(bt==null?void 0:bt.labels,pt==null?void 0:pt.labels),Gt=Pt&&ds(Pt.symbol,!0)?Pt.symbol:{},oe=kt&&kt[H],{descendants:fe,depth:Qt}=oe||{},ae=oe&&fe&&fe>0,Oe=Z.type==="treegrid"&&yt,ce=mt.indexOf(H)>-1,ye="highcharts-treegrid-node-",Te=ye+"level-",De=vt.styledMode;Oe&&oe&&X.removeClass(RegExp(Te+".*")).addClass(Te+Qt),q.apply(this,Array.prototype.slice.call(arguments,1)),Oe&&ae?(b=Ct.isCollapsed(oe),function(Le,Ee){let We=Le.treeGrid,Ze=!We.labelIcon,ji=Ee.renderer,Ji=Ee.xy,_i=Ee.options,Cn=_i.width||0,or=_i.height||0,ln=_i.padding??Le.axis.linkedParent?0:5,en={x:Ji.x-Cn/2-ln,y:Ji.y-or/2},hs=Ee.collapsed?90:180,ha=Ee.show&&Ml(en.y),Gn=We.labelIcon;Gn||(We.labelIcon=Gn=ji.path(ji.symbols[_i.type](_i.x||0,_i.y||0,Cn,or)).addClass("highcharts-label-icon").add(Ee.group)),Gn[ha?"show":"hide"](),ji.styledMode||Gn.attr({cursor:"pointer",fill:Cs(Ee.color,"#666666"),"stroke-width":1,stroke:_i.lineColor,strokeWidth:_i.lineWidth||0}),Gn[Ze?"attr":"animate"]({translateX:en.x,translateY:en.y,rotation:hs})}(this,{color:!De&&X.styles.color||"",collapsed:b,group:X.parentGroup,options:Gt,renderer:X.renderer,show:ce,xy:X.xy}),A=ye+(b?"collapsed":"expanded"),L=ye+(b?"expanded":"collapsed"),X.addClass(A).removeClass(L),De||X.css({cursor:"pointer"}),[X,Tt].forEach(Le=>{Le&&!Le.attachedTreeGridEvents&&(Bo(Le.element,"mouseover",function(){X.addClass("highcharts-treegrid-node-active"),X.renderer.styledMode||X.css({textDecoration:"underline"})}),Bo(Le.element,"mouseout",function(){(function(Ee,We){let Ze=ds(We.style)?We.style:{};Ee.removeClass("highcharts-treegrid-node-active"),Ee.renderer.styledMode||Ee.css({textDecoration:Ze.textDecoration||"none"})})(X,Pt)}),Bo(Le.element,"click",function(){ut.toggleCollapse()}),Le.attachedTreeGridEvents=!0)})):Tt&&(Fa(yt),X==null||X.css({cursor:"default"}),Tt.destroy())}class Jc{static compose(b){let A=b.prototype;A.toggleCollapse||(Bo(b,"init",Qr),dc(A,"getLabelPosition",sr),dc(A,"renderLabel",ao),A.collapse=function(L){this.treeGrid.collapse(L)},A.expand=function(L){this.treeGrid.expand(L)},A.toggleCollapse=function(L){this.treeGrid.toggleCollapse(L)})}constructor(b){this.tick=b}collapse(b){let A=this.tick,L=A.axis,H=L.brokenAxis;if(H&&L.treeGrid.mapOfPosToGridNode){let Z=A.pos,X=L.treeGrid.mapOfPosToGridNode[Z],ut=L.treeGrid.collapse(X);H.setBreaks(ut,Cs(b,!0))}}destroy(){this.labelIcon&&this.labelIcon.destroy()}expand(b){let{pos:A,axis:L}=this.tick,{treeGrid:H,brokenAxis:Z}=L,X=H.mapOfPosToGridNode;if(Z&&X){let ut=X[A],bt=H.expand(ut);Z.setBreaks(bt,Cs(b,!0))}}toggleCollapse(b){let A=this.tick,L=A.axis,H=L.brokenAxis;if(H&&L.treeGrid.mapOfPosToGridNode){let Z=A.pos,X=L.treeGrid.mapOfPosToGridNode[Z],ut=L.treeGrid.toggleCollapse(X);H.setBreaks(ut,Cs(b,!0))}}}let{extend:ua,isArray:pr,isNumber:On,isObject:Gs,merge:hc,pick:tu,relativeLength:Fu}=Et(),{getLevelOptions:an}={getLevelOptions:function(q){let b,A,L,H,Z,X,ut={};if(Gs(q))for(H=On(q.from)?q.from:1,X=q.levels,A={},b=Gs(q.defaults)?q.defaults:{},pr(X)&&(A=X.reduce((bt,Tt)=>{let yt,Ct,pt;return Gs(Tt)&&On(Tt.level)&&(Ct=tu((pt=hc({},Tt)).levelIsConstant,b.levelIsConstant),delete pt.levelIsConstant,delete pt.level,Gs(bt[yt=Tt.level+(Ct?0:H-1)])?hc(!0,bt[yt],pt):bt[yt]=pt),bt},{})),Z=On(q.to)?q.to:1,L=0;L<=Z;L++)ut[L]=hc({},b,Gs(A[L])?A[L]:{});return ut}},{addEvent:Jn,isArray:da,splat:B,find:y,fireEvent:T,isObject:D,isString:G,merge:nt,pick:K,removeEvent:gt,wrap:Mt}=Et();function At(q,b){let A=q.collapseEnd||0,L=q.collapseStart||0;return A>=b&&(L-=.5),{from:L,to:A,showPoints:!1}}function Bt(q,b,A){let L=[],H=[],Z={},X=b||!1,ut={},bt=-1,Tt=Po.getTree(q,{after:function(yt){let Ct=ut[yt.pos],pt=0,vt=0;Ct.children.forEach(function(mt){vt+=(mt.descendants||0)+1,pt=Math.max((mt.height||0)+1,pt)}),Ct.descendants=vt,Ct.height=pt,Ct.collapsed&&H.push(Ct)},before:function(yt){let Ct,pt,vt=D(yt.data,!0)?yt.data:{},mt=G(vt.name)?vt.name:"",kt=Z[yt.parent],Pt=D(kt,!0)?ut[kt.pos]:null;X&&D(Pt,!0)&&(Ct=y(Pt.children,function(Gt){return Gt.name===mt}))?(pt=Ct.pos,Ct.nodes.push(yt)):pt=bt++,!ut[pt]&&(ut[pt]=Ct={depth:Pt?Pt.depth+1:0,name:mt,id:vt.id,nodes:[yt],children:[],pos:pt},pt!==-1&&L.push(mt),D(Pt,!0)&&Pt.children.push(Ct)),G(yt.id)&&(Z[yt.id]=yt),Ct&&vt.collapsed===!0&&(Ct.collapsed=!0),yt.pos=pt}});return{categories:L,mapOfIdToNode:Z,mapOfPosToGridNode:ut=function(yt,Ct){let pt=function(vt,mt,kt){let Pt=vt.nodes,Gt=mt+(mt===-1?0:Ct-1),oe=(Gt-mt)/2,fe=mt+oe;return Pt.forEach(function(Qt){let ae=Qt.data;D(ae,!0)&&(ae.y=mt+(ae.seriesIndex||0),delete ae.seriesIndex),Qt.pos=fe}),kt[fe]=vt,vt.pos=fe,vt.tickmarkOffset=oe+.5,vt.collapseStart=Gt+.5,vt.children.forEach(function(Qt){pt(Qt,Gt+1,kt),Gt=(Qt.collapseEnd||0)-.5}),vt.collapseEnd=Gt+.5,kt};return pt(yt[-1],-1,{})}(ut,A),collapsedNodes:H,tree:Tt}}function Jt(q){let b=q.target;b.axes.filter(A=>A.type==="treegrid").forEach(function(A){let L=A.options||{},H=L.labels,Z=A.uniqueNames,X=b.time.parse(L.max),ut=!A.treeGrid.mapOfPosToGridNode||A.series.some(function(Ct){return!Ct.hasRendered||Ct.isDirtyData||Ct.isDirty}),bt=0,Tt,yt;if(ut){let Ct=[];if(Tt=A.series.reduce(function(pt,vt){let mt=vt.options.data||[],kt=mt[0],Pt=Array.isArray(kt)&&!kt.find(Gt=>typeof Gt=="object");return Ct.push(Pt),vt.visible&&(mt.forEach(function(Gt){(Pt||vt.options.keys&&vt.options.keys.length)&&(Gt=vt.pointClass.prototype.optionsToObject.call({series:vt},Gt),vt.pointClass.setGanttPointAliases(Gt,b)),D(Gt,!0)&&(Gt.seriesIndex=bt,pt.push(Gt))}),Z===!0&&bt++),pt},[]),X&&Tt.length<X)for(let pt=Tt.length;pt<=X;pt++)Tt.push({name:pt+""});yt=Bt(Tt,Z||!1,Z===!0?bt:1),A.categories=yt.categories,A.treeGrid.mapOfPosToGridNode=yt.mapOfPosToGridNode,A.hasNames=!0,A.treeGrid.tree=yt.tree,A.series.forEach(function(pt,vt){let mt=(pt.options.data||[]).map(function(kt){return(Ct[vt]||da(kt)&&pt.options.keys&&pt.options.keys.length)&&Tt.forEach(function(Pt){let Gt=B(kt);Gt.indexOf(Pt.x||0)>=0&&Gt.indexOf(Pt.x2||0)>=0&&(kt=Pt)}),D(kt,!0)?nt(kt):kt});pt.visible&&pt.setData(mt,!1)}),A.treeGrid.mapOptionsToLevel=an({defaults:H,from:1,levels:H&&H.levels,to:A.treeGrid.tree&&A.treeGrid.tree.height}),q.type==="beforeRender"&&(A.treeGrid.collapsedNodes=yt.collapsedNodes)}})}function Wt(q,b){let A=this.treeGrid.mapOptionsToLevel||{},L=this.type==="treegrid",H=this.ticks,Z=H[b],X,ut,bt;L&&this.treeGrid.mapOfPosToGridNode?((X=A[(bt=this.treeGrid.mapOfPosToGridNode[b]).depth])&&(ut={labels:X}),!Z&&z?H[b]=Z=new z(this,b,void 0,void 0,{category:bt.name,tickmarkOffset:bt.tickmarkOffset,options:ut}):(Z.parameters.category=bt.name,Z.options=ut,Z.addLabel())):q.apply(this,Array.prototype.slice.call(arguments,1))}function Xt(q,b,A,L){let H=this,Z=A.type==="treegrid";H.treeGrid||(H.treeGrid=new Fe(H)),Z&&(Jn(b,"beforeRender",Jt),Jn(b,"beforeRedraw",Jt),Jn(b,"addSeries",function(X){if(X.options.data){let ut=Bt(X.options.data,A.uniqueNames||!1,1);H.treeGrid.collapsedNodes=(H.treeGrid.collapsedNodes||[]).concat(ut.collapsedNodes)}}),Jn(H,"foundExtremes",function(){H.treeGrid.collapsedNodes&&H.treeGrid.collapsedNodes.forEach(function(X){let ut=H.treeGrid.collapse(X);H.brokenAxis&&(H.brokenAxis.setBreaks(ut,!1),H.treeGrid.collapsedNodes&&(H.treeGrid.collapsedNodes=H.treeGrid.collapsedNodes.filter(bt=>X.collapseStart!==bt.collapseStart||X.collapseEnd!==bt.collapseEnd)))})}),Jn(H,"afterBreaks",function(){H.coll==="yAxis"&&!H.staticScale&&H.chart.options.chart.height&&(H.isDirty=!0)}),A=nt({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10}},uniqueNames:!1},A,{reversed:!0})),q.apply(H,[b,A,L]),Z&&(H.hasNames=!0,H.options.showLastLabel=!0)}function Vt(q){var H;let b=this.options,A=this.chart.time,L=typeof b.linkedTo=="number"?(H=this.chart[this.coll])==null?void 0:H[b.linkedTo]:void 0;if(this.type==="treegrid"){if(this.min=this.userMin??A.parse(b.min)??this.dataMin,this.max=this.userMax??A.parse(b.max)??this.dataMax,T(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],L){let Z=L.getExtremes();this.min=K(Z.min,Z.dataMin),this.max=K(Z.max,Z.dataMax),this.tickPositions=L.tickPositions}this.linkedParent=L}else q.apply(this,Array.prototype.slice.call(arguments,1))}function de(q){let b=this;this.type==="treegrid"&&b.visible&&b.tickPositions.forEach(function(A){let L=b.ticks[A];L.label&&L.label.attachedTreeGridEvents&&(gt(L.label.element),L.label.attachedTreeGridEvents=!1)}),q.apply(b,Array.prototype.slice.call(arguments,1))}class Fe{static compose(b,A,L,H){if(!b.keepProps.includes("treeGrid")){let Z=b.prototype;b.keepProps.push("treeGrid"),Mt(Z,"generateTick",Wt),Mt(Z,"init",Xt),Mt(Z,"setTickInterval",Vt),Mt(Z,"redraw",de),Z.utils={getNode:Po.getNode},z||(z=H)}return kl.compose(b,A,H),He.compose(b,L),Jc.compose(H),b}constructor(b){this.axis=b}setCollapsedStatus(b){let A=this.axis,L=A.chart;A.series.forEach(function(H){let Z=H.options.data;if(b.id&&Z){let X=L.get(b.id),ut=Z[H.data.indexOf(X)];X&&ut&&(X.collapsed=b.collapsed,ut.collapsed=b.collapsed)}})}collapse(b){let A=this.axis,L=A.options.breaks||[],H=At(b,A.max);return L.push(H),b.collapsed=!0,A.treeGrid.setCollapsedStatus(b),L}expand(b){let A=this.axis,L=A.options.breaks||[],H=At(b,A.max);return b.collapsed=!1,A.treeGrid.setCollapsedStatus(b),L.reduce(function(Z,X){return(X.to!==H.to||X.from!==H.from)&&Z.push(X),Z},[])}getTickPositions(){let b=this.axis,A=Math.floor(b.min/b.tickInterval)*b.tickInterval,L=Math.ceil(b.max/b.tickInterval)*b.tickInterval;return Object.keys(b.treeGrid.mapOfPosToGridNode||{}).reduce(function(H,Z){let X=+Z;return X>=A&&X<=L&&!(b.brokenAxis&&b.brokenAxis.isInAnyBreak(X))&&H.push(X),H},[])}isCollapsed(b){let A=this.axis,L=A.options.breaks||[],H=At(b,A.max);return L.some(function(Z){return Z.from===H.from&&Z.to===H.to})}toggleCollapse(b){return this.isCollapsed(b)?this.expand(b):this.collapse(b)}}let{series:ni,seriesTypes:{xrange:ri}}=Ks(),{extend:xi,isNumber:Ge,merge:Ve}=Et();class vi extends ri{static compose(b,A,L,H){ri.compose(b),A&&(Hu.compose(b,A),L)&&(pl.compose(A,L.prototype.pointClass),H&&Fe.compose(b,A,L,H))}drawPoint(b,A){let L=this.options,H=this.chart.renderer,Z=b.shapeArgs,X=b.plotY,ut=b.selected&&"select",bt=L.stacking&&!L.borderRadius,Tt=b.graphic,yt;b.options.milestone?Ge(X)&&b.y!==null&&b.visible!==!1?(yt=H.symbols.diamond(Z.x||0,Z.y||0,Z.width||0,Z.height||0),Tt?Tt[A]({d:yt}):b.graphic=Tt=H.path(yt).addClass(b.getClassName(),!0).add(b.group||this.group),this.chart.styledMode||b.graphic.attr(this.pointAttribs(b,ut)).shadow(L.shadow,null,bt)):Tt&&(b.graphic=Tt.destroy()):super.drawPoint(b,A)}translatePoint(b){let A,L;super.translatePoint(b),b.options.milestone&&(L=(A=b.shapeArgs).height||0,b.shapeArgs={x:(A.x||0)-L/2,y:A.y,width:L,height:L})}}vi.defaultOptions=Ve(ri.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){let q=this.series,b=q.xAxis,A=q.tooltipOptions.dateTimeLabelFormats,L=b.options.startOfWeek,H=q.tooltipOptions,Z=this.options.milestone,X=H.xDateFormat,ut="<b>"+(this.name||this.yCategory)+"</b>";if(H.pointFormat)return this.tooltipFormatter(H.pointFormat);!X&&Ki(this.start)&&(X=q.chart.time.getDateFormat(b.closestPointRange,this.start,L,A||{}));let bt=q.chart.time.dateFormat(X,this.start),Tt=q.chart.time.dateFormat(X,this.end);return ut+="<br/>",Z?ut+=bt+"<br/>":ut+="Start: "+bt+"<br/>End: "+Tt+"<br/>",ut}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}}),xi(vi.prototype,{pointArrayMap:["start","end","y"],pointClass:Sn,setData:ni.prototype.setData}),Ks().registerSeriesType("gantt",vi);/**
* @license Highcharts Gantt JS v12.1.2 (2024-12-21)
* @module highcharts/modules/gantt
* @requires highcharts
*
* Gantt series
*
* (c) 2016-2024 Lars A. V. Cabrera
*
* License: www.highcharts.com/license
*/let ze=Et();ze.Connection=ze.Connection||Se,ze.GanttChart=ze.GanttChart||bn,ze.Navigator=ze.Navigator||bs,ze.RangeSelector=ze.RangeSelector||vn,ze.Scrollbar=ze.Scrollbar||ys,ze.ganttChart=ze.GanttChart.ganttChart,ie.compose(ze.SVGRenderer),{compose:function(q,b){we(ke,"CurrentDateIndication")&&(ge(q,"afterSetOptions",Ke),ge(b,"render",Be),Ue(b.prototype,"getLabelText",_e))}}.compose(ze.Axis,ze.PlotLineOrBand),vi.compose(ze.Axis,ze.Chart,ze.Series,ze.Tick),ze.Navigator.compose(ze.Chart,ze.Axis,ze.Series),ze.RangeSelector.compose(ze.Axis,ze.Chart),ze.Scrollbar.compose(ze.Axis);let wn=Et();return at.default})())}(Em)),Em.exports}var jD=zD();const $D=up(jD),HD=vr(Y.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),UD=vr(Y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),FD=vr(Y.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune"),GD="Ensure that the 'tpm serve' command is running and that a valid configuration file exists in the root of your project.",Nx=`Failed to fetch data from backend. ${GD}`,zx="http://localhost:5445/api";function _D(){const t=jc(),[r,a]=W.useState(0),{setContext:c}=W.use(Ka),p=W.use(Ka).context.team,m=W.use(Ka).context.components,S=W.use(Ka).context.selectedMembers,k=W.use(Ka).context.timeline,O=W.use(Ka).context.deadline,R=W.use(Ka).context.interval,j=W.use(Ka).context.statuses,$=W.use(Ka).context.priorities,I=Dt=>{let St=[];Dt&&(typeof Dt=="string"?St=[...m,Dt]:St=Dt),c(jt=>({...jt,components:St}))},[F,z]=W.useState([]),[_,J]=W.useState(null),it=!!_,st=Dt=>{J(Dt.currentTarget)},ct=()=>{J(null)},ht=[],[lt]=W.useState(k.map(Dt=>(Dt.active&&ht.push({id:Dt.uid,value:Dt.date,color:Dt.current?"red":"blue",width:5}),{id:Dt.uid,name:Dt.uid+(Dt.active?` (in ${Dt.durationToReleaseHR})`:"")})).flat(1)),wt=Dt=>{c(St=>({...St,deadline:Dt.target.value}))},at=(Dt,St)=>{const jt={...j};jt[Dt]=St,c(Se=>({...Se,statuses:jt}))},_t=(Dt,St)=>{const jt={...$};jt[Dt]=St,c(Se=>({...Se,priorities:jt}))},[Et]=W.useState(p.map(Dt=>({id:Dt.id,name:Dt.name,avatar:Dt.name.split(" ").map(St=>St.substring(0,1).toUpperCase())}))),ot=Dt=>()=>{const St=S.indexOf(Dt),jt=[...S];St===-1?jt.push(Dt):jt.splice(St,1),c(Se=>({...Se,selectedMembers:jt}))},[It,se]=W.useState(!1),re=Dt=>()=>{se(Dt)},ie=Y.jsxs(Ln,{sx:{p:2,width:336},role:"presentation",children:[Y.jsxs(Ln,{sx:{pb:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[Y.jsx(Un,{variant:"h7",component:"div",sx:{flexGrow1:1},children:"Details"}),Y.jsx(Ja,{"aria-label":"close",onClick:()=>a(Dt=>Dt+1),children:Y.jsx(kS,{})})]}),Y.jsxs(ih,{fullWidth:!0,size:"small",children:[Y.jsx(ER,{id:"deadline-select-label",children:"deadline"}),Y.jsx(Ox,{labelId:"deadline-select-label",id:"deadline-select",value:O,label:"deadline",onChange:wt,children:lt.map((Dt,St)=>Y.jsx(Hm,{size:"small",value:Dt.id,children:Y.jsx("small",{children:Dt.name})},St))})]}),Y.jsx(Ln,{sx:{py:2},children:Y.jsx(xu,{})}),Y.jsxs(ih,{sx:{width:"100%"},component:"fieldset",children:[Y.jsx(Sm,{component:"legend",children:"Status"}),Y.jsx($b,{sx:{pt:1,pl:1},"aria-label":"position",row:!0,children:Object.keys(j).map((Dt,St)=>Y.jsx(jb,{value:"end",control:Y.jsx(bS,{checked:j[Dt],size:"small",sx:{"&.MuiSwitch-root .MuiSwitch-switchBase":{color:"darkgray"},"&.MuiSwitch-root .MuiSwitch-track":{backgroundColor:t.tasks[Dt].backgroundColor},"&.MuiSwitch-root .Mui-checked":{color:t.tasks[Dt].backgroundColor}},onChange:jt=>at(Dt,jt.target.checked)}),label:Y.jsx(Ln,{component:"div",fontSize:14,children:Dt}),labelPlacement:"end"},St))})]}),Y.jsx(Ln,{sx:{py:2},children:Y.jsx(xu,{})}),Y.jsxs(ih,{sx:{width:"100%"},component:"fieldset",children:[Y.jsx(Sm,{component:"legend",children:"Priority"}),Y.jsx(Ln,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[{id:"critical",label:"Critical"},{id:"high",label:"High"},{id:"low",label:"Low"}].map(Dt=>Y.jsx(jb,{sx:{"& .MuiTypography-root":{fontSize:"14px"}},control:Y.jsx(zb,{size:"small",checked:$[Dt.id],onChange:St=>_t(Dt.id,St.target.checked),inputProps:{"aria-label":"controlled"}}),label:Dt.label},Dt.id))})]}),Y.jsx(Ln,{sx:{py:2},children:Y.jsx(xu,{})}),Y.jsxs(ih,{sx:{width:"100%"},component:"fieldset",children:[Y.jsx(Sm,{component:"legend",children:"Team"}),Y.jsx(Tx,{sx:{width:"100%",maxWidth:360,bgcolor:"background.paper"},children:Et.map(Dt=>{const St=`checkbox-list-label-${Dt.id}`;return Y.jsx(md,{secondaryAction:Y.jsx(CA,{sx:{width:32,height:32},children:Dt.avatar}),disablePadding:!0,children:Y.jsxs(QR,{role:void 0,onClick:ot(Dt.id),sx:{pl:0},dense:!0,children:[Y.jsx(cO,{children:Y.jsx(zb,{size:"small",edge:"start",checked:S.includes(Dt.id),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":St}})}),Y.jsx(nh,{id:St,primary:`${Dt.name} (${Dt.id})`})]})},Dt.id)})})]})]}),Kt=Date.now(),zt=Dt=>{const St=[],jt=(Se,ke,ge,Pe)=>{const we=[Se,Pe.id].join("."),Ue={name:Pe.name,id:we,parent:Se!==""?Se:void 0,start:Kt+Pe.start,end:Kt+Pe.end,color:t.components.backgroundColor};Pe.percentage&&(Ue.completed={amount:Pe.percentage}),St.push(Ue);const Ae=(Ke,Be)=>{Be.forEach((_e,me)=>{const Ei=_e.status==">"?"dev":_e.status=="+"?"done":_e.status=="!"?"blocked":"todo",di=_e.tasks.length?t.tasks.story.backgroundColor:t.tasks[Ei].backgroundColor,Ai=[Ke,_e.id?_e.id:me].join("."),Di={name:_e.title,id:Ai,parent:Ke,start:Kt+_e.start,end:Kt+_e.end,owner:_e.assignees.join(", "),color:di};_e.percentage&&(Ue.completed={amount:_e.percentage}),St.push(Di),Ae(Ai,_e.tasks)})};Ae(we,Pe.tasks),Pe.components.forEach(Ke=>{jt(we,ke,ge,Ke)})};return jt("",{},{},Dt),St},[ne,te]=W.useState({credits:{enabled:!1},chart:{type:"gantt",plotBackgroundColor:"rgba(128,128,128,0.02)",plotBorderColor:"rgba(128,128,128,0.1)",plotBorderWidth:1},plotOptions:{series:{borderRadius:"50%",connectors:{dashStyle:"ShortDot",lineWidth:2,radius:5,startMarker:{enabled:!1}},groupPadding:0,dataLabels:[{enabled:!0,align:"left",format:"",padding:10,style:{color:"white",fontWeight:"normal",textOutline:"none"}},{enabled:!0,align:"center",format:"{#if point.completed}{(multiply point.completed.amount 100):.0f}%{/if}",padding:10,style:{fontWeight:"normal",textOutline:"none",opacity:.6}}]}},series:[{name:"WBS",data:[]}],tooltip:{pointFormat:'<span style="font-weight: bold">{point.name}</span><br>{point.start:%e %b}{#unless point.milestone} → {point.end:%e %b}{/unless}<br>{#if point.completed}Completed: {multiply point.completed.amount 100}%<br>{/if}Assignee: {#if point.owner}{point.owner}{else}-{/if}'},xAxis:[{currentDateIndicator:{color:"#2caffe",dashStyle:"ShortDot",width:2,label:{format:""}},dateTimeLabelFormats:{day:'%e<br><span style="opacity: 0.5; font-size: 0.7em">%a</span>'},grid:{borderWidth:0},gridLineWidth:1,min:R.start,max:R.end,custom:{today:Kt,weekendPlotBands:!0},plotLines:ht.map(Dt=>({label:{rotation:0,text:Dt.id,x:-32,y:-4},value:Dt.value,color:Dt.color,width:Dt.width,zIndex:10}))}],yAxis:{grid:{borderWidth:0},gridLineWidth:0,labels:{symbol:{width:8,height:6,x:-4,y:-2}},staticScale:30},accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}},point:{descriptionFormatter:function(Dt){const St=Dt.completed?Dt.completed.amount||Dt.completed:null,jt=St?" Task "+Math.round(St*1e3)/10+"% completed.":"",Se=Dt.dependency&&Dt.series.chart.get(Dt.dependency).name,ke=Se?" Depends on "+Se+".":"";return GS.format(Dt.milestone?"{point.yCategory}. Milestone at {point.x:%Y-%m-%d}. Owner: {point.owner}.{dependsOn}":"{point.yCategory}.{completed} Start {point.x:%Y-%m-%d}, end {point.x2:%Y-%m-%d}. Owner: {point.owner}.{dependsOn}",{point:Dt,completed:jt,dependsOn:ke})}}},lang:{accessibility:{axis:{xAxisDescriptionPlural:"The chart has a two-part X axis showing time in both week numbers and days."}}}});return W.useEffect(()=>{(async()=>{try{const St=[];j&&St.push(`status=${Object.keys(j).filter(Ue=>j[Ue]).join(",")}`),S.length&&St.push(`assignees=${S.join(",")}`);const jt=[];O&&k.forEach(Ue=>{Ue.uid===O&&jt.push(Ue.id)}),Object.keys($).forEach(Ue=>{$[Ue]&&jt.push(Ue)}),jt.length&&St.push(`tags=${jt.join(",")}`);const Se=["tasks"].concat(m).join("/"),ke=St.join("&"),ge=`${zx}/${Se}?${ke}`,Pe=await fetch(ge);if(!Pe.ok)throw`Error fetching WBD (${ge}): ${Pe.status}`;const we=await Pe.json();if(we.success){const Ue=zt(we.data);te(Ae=>({...Ae,series:[{name:"WBS",data:Ue}]})),z(we.data.components.map(Ae=>Ae.id))}}catch(St){throw new Error(`${St.message} : ${Nx}`)}})()},[r,m]),Y.jsxs(yp,{maxWidth:"xl",sx:{pt:1},children:[Y.jsxs(Ln,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignContent:"center"},children:[Y.jsx(Ex,{id:"basic-menu",anchorEl:_,open:it,onClose:ct,MenuListProps:{"aria-labelledby":"basic-button"},children:F.map((Dt,St)=>Y.jsx(Hm,{onClick:jt=>{J(null),I(Dt)},children:Dt},St))}),Y.jsxs(qA,{"aria-label":"breadcrumb",children:[Y.jsx(Ja,{size:"small",onClick:()=>I(),children:Y.jsx(HD,{fontSize:"inherit"})}),m.map((Dt,St)=>Y.jsx(nS,{size:"small",sx:{textTransform:"none"},onClick:()=>I(m.slice(0,St+1)),children:Dt},St)),F.length&&Y.jsx(Ja,{size:"small",id:"basic-button","aria-controls":it?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":it?"true":void 0,onClick:st,children:Y.jsx(UD,{fontSize:"inherit"})})]}),Y.jsx(ih,{component:"fieldset",children:Y.jsx($b,{"aria-label":"position",row:!0,children:Y.jsx(ih,{variant:"standard",sx:{pl:4},children:Y.jsx(Ja,{size:"small",onClick:re(!0),children:Y.jsx(FD,{fontSize:"inherit"})})})})}),Y.jsx(lS,{open:It,anchor:"right",onClose:re(!1),children:ie})]}),Y.jsx(_S,{containerProps:{style:{height:"100%"}},constructorType:"ganttChart",highcharts:$D,options:ne},r)]})}function WD(){const[t,r]=W.useState(0);return Y.jsx(_m,{FallbackComponent:cy,onReset:()=>{r(a=>a+1)},children:Y.jsx(W.Suspense,{fallback:Y.jsx(uy,{}),children:Y.jsx(_D,{},t)})})}const V0=[{id:"id",label:"ID",minWidth:96},{id:"name",label:"Name/email",minWidth:128},{id:"fte",label:"FTE",minWidth:32,align:"right"},{id:"done",label:"Done",minWidth:32,align:"right"},{id:"total",label:"Total",minWidth:32,align:"right"},{id:"status",label:"Status (todo/dev/blocked)",minWidth:220,align:"center"}];function VD(){const t=W.use(Ka).context.team;console.log("Team",t);const r=jc(),[a,c]=W.useState(!1),[p,m]=W.useState(0),[S,k]=W.useState(10),O=($,I)=>{m(I)},R=$=>{k(+$.target.value),m(0)},j=t.map(($,I)=>{const z=$.status.todo+$.status.dev+$.status.blocked,_=[{id:"todo",value:$.status.todo,percents:"0%",color:r.tasks.todo.color,backgroundColor:r.tasks.todo.backgroundColor},{id:"dev",value:$.status.dev,percents:"0%",color:r.tasks.dev.color,backgroundColor:r.tasks.dev.backgroundColor},{id:"blocked",value:$.status.blocked,percents:"0%",color:r.tasks.blocked.color,backgroundColor:r.tasks.blocked.backgroundColor}].map(J=>({...J,percents:z>0?Math.round(100*J.value/z)+"%":"0%"}));return{id:$.id,name:Y.jsxs("div",{children:[$.name,Y.jsx("br",{}),$.bandwidth.length>1?$.bandwidth.map((J,it)=>Y.jsxs("div",{children:[J.project," (",J.email,")",Y.jsx("br",{})]},"bw"+I+"-"+it)):$.bandwidth[0].email]},I),fte:1,done:$.status.done,total:$.status.total,status:Y.jsx(WS,{status:_})}});return Y.jsxs(yp,{maxWidth:"xl",sx:{pt:2},children:[Y.jsx(Ln,{sx:{display:"flex",flexDirection:"row-reverse",justifyContent:"space-between",backgroundColor:"lightgrey1"},children:Y.jsx(ih,{component:"fieldset",children:Y.jsx($b,{"aria-label":"position",row:!0,children:Y.jsx(jb,{value:"end",control:Y.jsx(bS,{checked:a,size:"small",color:"primary",onChange:$=>c($.target.checked)}),label:Y.jsx(Ln,{component:"div",fontSize:14,children:"Show 0 fte"}),labelPlacement:"end"})})})}),Y.jsxs(ng,{sx:{width:"100%",overflow:"hidden"},children:[Y.jsx(xP,{sx:{maxHeight:1024},children:Y.jsxs(vS,{stickyHeader:!0,"aria-label":"sticky table",children:[Y.jsx(wS,{children:Y.jsx(Vb,{children:V0.map($=>Y.jsx(cp,{align:$.align,style:{minWidth:$.minWidth},children:$.label},$.id))})}),Y.jsx(SS,{children:j.filter($=>$.fte>0||a).slice(p*S,p*S+S).map(($,I)=>Y.jsx(Vb,{hover:!0,role:"checkbox",tabIndex:-1,children:V0.map(F=>{const z=$[F.id];return Y.jsx(cp,{align:F.align,children:F.format&&typeof z=="number"?F.format(z):z},F.id)})},I))})]})}),Y.jsx(VP,{rowsPerPageOptions:[5,10,25,100],component:"div",count:j.filter($=>$.fte>0||a).length,rowsPerPage:S,page:p,onPageChange:O,onRowsPerPageChange:R})]})]})}function rh(){return rh=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},rh.apply(this,arguments)}const XD=["children","options"],Si={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var X0;(function(t){t[t.MAX=0]="MAX",t[t.HIGH=1]="HIGH",t[t.MED=2]="MED",t[t.LOW=3]="LOW",t[t.MIN=4]="MIN"})(X0||(X0={}));const Y0=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,r)=>(t[r.toLowerCase()]=r,t),{class:"className",for:"htmlFor"}),q0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},YD=["style","script"],qD=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,KD=/mailto:/i,ZD=/\n{2,}$/,XS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,QD=/^ *> ?/gm,JD=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,tL=/^ {2,}\n/,eL=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,YS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,qS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,iL=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,nL=/^(?:\n *)*\n/,rL=/\r\n?/g,sL=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,oL=/^\[\^([^\]]+)]/,aL=/\f/g,lL=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,cL=/^\s*?\[(x|\s)\]/,KS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ZS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,QS=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Zb=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,uL=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,JS=/^<!--[\s\S]*?(?:-->)/,dL=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Qb=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,hL=/^\{.*\}$/,pL=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,fL=/^<([^ >]+@[^ >]+)>/,gL=/^<([^ >]+:\/[^ >]+)>/,mL=/-([a-z])?/gi,tw=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,yL=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,bL=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xL=/^\[([^\]]*)\] ?\[([^\]]*)\]/,vL=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,SL=/\t/g,wL=/(^ *\||\| *$)/g,CL=/^ *:-+: *$/,kL=/^ *:-+ *$/,ML=/^ *-+: *$/,py="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",TL=new RegExp(`^([*_])\\1${py}\\1\\1(?!\\1)`),EL=new RegExp(`^([*_])${py}\\1(?!\\1|\\w)`),AL=new RegExp(`^==${py}==`),RL=new RegExp(`^~~${py}~~`),OL=/^\\([^0-9A-Za-z\s])/,PL=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,BL=/^\n+/,DL=/^([ \t]*)/,LL=/\\([^\\])/g,K0=/ *\n+$/,IL=/(?:^|\n)( *)$/,jx="(?:\\d+\\.)",$x="(?:[*+-])";function ew(t){return"( *)("+(t===1?jx:$x)+") +"}const iw=ew(1),nw=ew(2);function rw(t){return new RegExp("^"+(t===1?iw:nw))}const NL=rw(1),zL=rw(2);function sw(t){return new RegExp("^"+(t===1?iw:nw)+"[^\\n]*(?:\\n(?!\\1"+(t===1?jx:$x)+" )[^\\n]*)*(\\n|$)","gm")}const ow=sw(1),aw=sw(2);function lw(t){const r=t===1?jx:$x;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const cw=lw(1),uw=lw(2);function Z0(t,r){const a=r===1,c=a?cw:uw,p=a?ow:aw,m=a?NL:zL;return{match(S,k){const O=IL.exec(k.prevCapture);return O&&(k.list||!k.inline&&!k.simple)?c.exec(S=O[1]+S):null},order:1,parse(S,k,O){const R=a?+S[2]:void 0,j=S[0].replace(ZD,`
`).match(p);let $=!1;return{items:j.map(function(I,F){const z=m.exec(I)[0].length,_=new RegExp("^ {1,"+z+"}","gm"),J=I.replace(_,"").replace(m,""),it=F===j.length-1,st=J.indexOf(`
`)!==-1||it&&$;$=st;const ct=O.inline,ht=O.list;let lt;O.list=!0,st?(O.inline=!1,lt=J.replace(K0,`
`)):(O.inline=!0,lt=J.replace(K0,""));const wt=k(lt,O);return O.inline=ct,O.list=ht,wt}),ordered:a,start:R}},render:(S,k,O)=>t(S.ordered?"ol":"ul",{key:O.key,start:S.type===Si.orderedList?S.start:void 0},S.items.map(function(R,j){return t("li",{key:j},k(R,O))}))}}const jL=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),$L=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,dw=[XS,YS,qS,KS,QS,ZS,JS,tw,ow,cw,aw,uw],HL=[...dw,/^[^\n]+(?: \n|\n{2,})/,Zb,Qb];function Af(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function UL(t){return ML.test(t)?"right":CL.test(t)?"center":kL.test(t)?"left":null}function Q0(t,r,a,c){const p=a.inTable;a.inTable=!0;let m=[[]],S="";function k(){if(!S)return;const O=m[m.length-1];O.push.apply(O,r(S,a)),S=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((O,R,j)=>{O.trim()==="|"&&(k(),c)?R!==0&&R!==j.length-1&&m.push([]):S+=O}),k(),a.inTable=p,m}function FL(t,r,a){a.inline=!0;const c=t[2]?t[2].replace(wL,"").split("|").map(UL):[],p=t[3]?function(S,k,O){return S.trim().split(`
`).map(function(R){return Q0(R,k,O,!0)})}(t[3],r,a):[],m=Q0(t[1],r,a,!!p.length);return a.inline=!1,p.length?{align:c,cells:p,header:m,type:Si.table}:{children:m,type:Si.paragraph}}function J0(t,r){return t.align[r]==null?{}:{textAlign:t.align[r]}}function fd(t){return function(r,a){return a.inline?t.exec(r):null}}function gd(t){return function(r,a){return a.inline||a.simple?t.exec(r):null}}function yu(t){return function(r,a){return a.inline||a.simple?null:t.exec(r)}}function Rf(t){return function(r){return t.exec(r)}}function GL(t,r){if(r.inline||r.simple)return null;let a="";t.split(`
`).every(p=>(p+=`
`,!dw.some(m=>m.test(p))&&(a+=p,!!p.trim())));const c=a.trimEnd();return c==""?null:[a,c]}function _L(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return t}function t1(t){return t.replace(LL,"$1")}function Am(t,r,a){const c=a.inline||!1,p=a.simple||!1;a.inline=!0,a.simple=!0;const m=t(r,a);return a.inline=c,a.simple=p,m}function WL(t,r,a){const c=a.inline||!1,p=a.simple||!1;a.inline=!1,a.simple=!0;const m=t(r,a);return a.inline=c,a.simple=p,m}function VL(t,r,a){const c=a.inline||!1;a.inline=!1;const p=t(r,a);return a.inline=c,p}const fb=(t,r,a)=>({children:Am(r,t[1],a)});function gb(){return{}}function mb(){return null}function XL(...t){return t.filter(Boolean).join(" ")}function yb(t,r,a){let c=t;const p=r.split(".");for(;p.length&&(c=c[p[0]],c!==void 0);)p.shift();return c||a}function YL(t="",r={}){function a(I,F,...z){const _=yb(r.overrides,`${I}.props`,{});return r.createElement(function(J,it){const st=yb(it,J);return st?typeof st=="function"||typeof st=="object"&&"render"in st?st:yb(it,`${J}.component`,J):J}(I,r.overrides),rh({},F,_,{className:XL(F==null?void 0:F.className,_.className)||void 0}),...z)}function c(I){I=I.replace(lL,"");let F=!1;r.forceInline?F=!0:r.forceBlock||(F=vL.test(I)===!1);const z=R(O(F?I:`${I.trimEnd().replace(BL,"")}
`,{inline:F}));for(;typeof z[z.length-1]=="string"&&!z[z.length-1].trim();)z.pop();if(r.wrapper===null)return z;const _=r.wrapper||(F?"span":"div");let J;if(z.length>1||r.forceWrapper)J=z;else{if(z.length===1)return J=z[0],typeof J=="string"?a("span",{key:"outer"},J):J;J=null}return r.createElement(_,{key:"outer"},J)}function p(I,F){const z=F.match(qD);return z?z.reduce(function(_,J){const it=J.indexOf("=");if(it!==-1){const st=function(wt){return wt.indexOf("-")!==-1&&wt.match(dL)===null&&(wt=wt.replace(mL,function(at,_t){return _t.toUpperCase()})),wt}(J.slice(0,it)).trim(),ct=function(wt){const at=wt[0];return(at==='"'||at==="'")&&wt.length>=2&&wt[wt.length-1]===at?wt.slice(1,-1):wt}(J.slice(it+1).trim()),ht=Y0[st]||st;if(ht==="ref")return _;const lt=_[ht]=function(wt,at,_t,Et){return at==="style"?_t.split(/;\s?/).reduce(function(ot,It){const se=It.slice(0,It.indexOf(":"));return ot[se.trim().replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=It.slice(se.length+1).trim(),ot},{}):at==="href"||at==="src"?Et(_t,wt,at):(_t.match(hL)&&(_t=_t.slice(1,_t.length-1)),_t==="true"||_t!=="false"&&_t)}(I,st,ct,r.sanitizer);typeof lt=="string"&&(Zb.test(lt)||Qb.test(lt))&&(_[ht]=c(lt.trim()))}else J!=="style"&&(_[Y0[J]||J]=!0);return _},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||_L,r.slugify=r.slugify||Af,r.namedCodesToUnicode=r.namedCodesToUnicode?rh({},q0,r.namedCodesToUnicode):q0,r.createElement=r.createElement||W.createElement;const m=[],S={},k={[Si.blockQuote]:{match:yu(XS),order:1,parse(I,F,z){const[,_,J]=I[0].replace(QD,"").match(JD);return{alert:_,children:F(J,z)}},render(I,F,z){const _={key:z.key};return I.alert&&(_.className="markdown-alert-"+r.slugify(I.alert.toLowerCase(),Af),I.children.unshift({attrs:{},children:[{type:Si.text,text:I.alert}],noInnerParse:!0,type:Si.htmlBlock,tag:"header"})),a("blockquote",_,F(I.children,z))}},[Si.breakLine]:{match:Rf(tL),order:1,parse:gb,render:(I,F,z)=>a("br",{key:z.key})},[Si.breakThematic]:{match:yu(eL),order:1,parse:gb,render:(I,F,z)=>a("hr",{key:z.key})},[Si.codeBlock]:{match:yu(qS),order:0,parse:I=>({lang:void 0,text:I[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(I,F,z)=>a("pre",{key:z.key},a("code",rh({},I.attrs,{className:I.lang?`lang-${I.lang}`:""}),I.text))},[Si.codeFenced]:{match:yu(YS),order:0,parse:I=>({attrs:p("code",I[3]||""),lang:I[2]||void 0,text:I[4],type:Si.codeBlock})},[Si.codeInline]:{match:gd(iL),order:3,parse:I=>({text:I[2]}),render:(I,F,z)=>a("code",{key:z.key},I.text)},[Si.footnote]:{match:yu(sL),order:0,parse:I=>(m.push({footnote:I[2],identifier:I[1]}),{}),render:mb},[Si.footnoteReference]:{match:fd(oL),order:1,parse:I=>({target:`#${r.slugify(I[1],Af)}`,text:I[1]}),render:(I,F,z)=>a("a",{key:z.key,href:r.sanitizer(I.target,"a","href")},a("sup",{key:z.key},I.text))},[Si.gfmTask]:{match:fd(cL),order:1,parse:I=>({completed:I[1].toLowerCase()==="x"}),render:(I,F,z)=>a("input",{checked:I.completed,key:z.key,readOnly:!0,type:"checkbox"})},[Si.heading]:{match:yu(r.enforceAtxHeadings?ZS:KS),order:1,parse:(I,F,z)=>({children:Am(F,I[2],z),id:r.slugify(I[2],Af),level:I[1].length}),render:(I,F,z)=>a(`h${I.level}`,{id:I.id,key:z.key},F(I.children,z))},[Si.headingSetext]:{match:yu(QS),order:0,parse:(I,F,z)=>({children:Am(F,I[1],z),level:I[2]==="="?1:2,type:Si.heading})},[Si.htmlBlock]:{match:Rf(Zb),order:1,parse(I,F,z){const[,_]=I[3].match(DL),J=new RegExp(`^${_}`,"gm"),it=I[3].replace(J,""),st=(ct=it,HL.some(_t=>_t.test(ct))?VL:Am);var ct;const ht=I[1].toLowerCase(),lt=YD.indexOf(ht)!==-1,wt=(lt?ht:I[1]).trim(),at={attrs:p(wt,I[2]),noInnerParse:lt,tag:wt};return z.inAnchor=z.inAnchor||ht==="a",lt?at.text=I[3]:at.children=st(F,it,z),z.inAnchor=!1,at},render:(I,F,z)=>a(I.tag,rh({key:z.key},I.attrs),I.text||(I.children?F(I.children,z):""))},[Si.htmlSelfClosing]:{match:Rf(Qb),order:1,parse(I){const F=I[1].trim();return{attrs:p(F,I[2]||""),tag:F}},render:(I,F,z)=>a(I.tag,rh({},I.attrs,{key:z.key}))},[Si.htmlComment]:{match:Rf(JS),order:1,parse:()=>({}),render:mb},[Si.image]:{match:gd($L),order:1,parse:I=>({alt:I[1],target:t1(I[2]),title:I[3]}),render:(I,F,z)=>a("img",{key:z.key,alt:I.alt||void 0,title:I.title||void 0,src:r.sanitizer(I.target,"img","src")})},[Si.link]:{match:fd(jL),order:3,parse:(I,F,z)=>({children:WL(F,I[1],z),target:t1(I[2]),title:I[3]}),render:(I,F,z)=>a("a",{key:z.key,href:r.sanitizer(I.target,"a","href"),title:I.title},F(I.children,z))},[Si.linkAngleBraceStyleDetector]:{match:fd(gL),order:0,parse:I=>({children:[{text:I[1],type:Si.text}],target:I[1],type:Si.link})},[Si.linkBareUrlDetector]:{match:(I,F)=>F.inAnchor||r.disableAutoLink?null:fd(pL)(I,F),order:0,parse:I=>({children:[{text:I[1],type:Si.text}],target:I[1],title:void 0,type:Si.link})},[Si.linkMailtoDetector]:{match:fd(fL),order:0,parse(I){let F=I[1],z=I[1];return KD.test(z)||(z="mailto:"+z),{children:[{text:F.replace("mailto:",""),type:Si.text}],target:z,type:Si.link}}},[Si.orderedList]:Z0(a,1),[Si.unorderedList]:Z0(a,2),[Si.newlineCoalescer]:{match:yu(nL),order:3,parse:gb,render:()=>`
`},[Si.paragraph]:{match:GL,order:3,parse:fb,render:(I,F,z)=>a("p",{key:z.key},F(I.children,z))},[Si.ref]:{match:fd(yL),order:0,parse:I=>(S[I[1]]={target:I[2],title:I[4]},{}),render:mb},[Si.refImage]:{match:gd(bL),order:0,parse:I=>({alt:I[1]||void 0,ref:I[2]}),render:(I,F,z)=>S[I.ref]?a("img",{key:z.key,alt:I.alt,src:r.sanitizer(S[I.ref].target,"img","src"),title:S[I.ref].title}):null},[Si.refLink]:{match:fd(xL),order:0,parse:(I,F,z)=>({children:F(I[1],z),fallbackChildren:I[0],ref:I[2]}),render:(I,F,z)=>S[I.ref]?a("a",{key:z.key,href:r.sanitizer(S[I.ref].target,"a","href"),title:S[I.ref].title},F(I.children,z)):a("span",{key:z.key},I.fallbackChildren)},[Si.table]:{match:yu(tw),order:1,parse:FL,render(I,F,z){const _=I;return a("table",{key:z.key},a("thead",null,a("tr",null,_.header.map(function(J,it){return a("th",{key:it,style:J0(_,it)},F(J,z))}))),a("tbody",null,_.cells.map(function(J,it){return a("tr",{key:it},J.map(function(st,ct){return a("td",{key:ct,style:J0(_,ct)},F(st,z))}))})))}},[Si.text]:{match:Rf(PL),order:4,parse:I=>({text:I[0].replace(uL,(F,z)=>r.namedCodesToUnicode[z]?r.namedCodesToUnicode[z]:F)}),render:I=>I.text},[Si.textBolded]:{match:gd(TL),order:2,parse:(I,F,z)=>({children:F(I[2],z)}),render:(I,F,z)=>a("strong",{key:z.key},F(I.children,z))},[Si.textEmphasized]:{match:gd(EL),order:3,parse:(I,F,z)=>({children:F(I[2],z)}),render:(I,F,z)=>a("em",{key:z.key},F(I.children,z))},[Si.textEscaped]:{match:gd(OL),order:1,parse:I=>({text:I[1],type:Si.text})},[Si.textMarked]:{match:gd(AL),order:3,parse:fb,render:(I,F,z)=>a("mark",{key:z.key},F(I.children,z))},[Si.textStrikethroughed]:{match:gd(RL),order:3,parse:fb,render:(I,F,z)=>a("del",{key:z.key},F(I.children,z))}};r.disableParsingRawHTML===!0&&(delete k[Si.htmlBlock],delete k[Si.htmlSelfClosing]);const O=function(I){let F=Object.keys(I);function z(_,J){let it=[];for(J.prevCapture=J.prevCapture||"";_;){let st=0;for(;st<F.length;){const ct=F[st],ht=I[ct],lt=ht.match(_,J);if(lt){const wt=lt[0];J.prevCapture+=wt,_=_.substring(wt.length);const at=ht.parse(lt,z,J);at.type==null&&(at.type=ct),it.push(at);break}st++}}return J.prevCapture="",it}return F.sort(function(_,J){let it=I[_].order,st=I[J].order;return it!==st?it-st:_<J?-1:1}),function(_,J){return z(function(it){return it.replace(rL,`
`).replace(aL,"").replace(SL," ")}(_),J)}}(k),R=(j=function(I,F){return function(z,_,J){const it=I[z.type].render;return F?F(()=>it(z,_,J),z,_,J):it(z,_,J)}}(k,r.renderRule),function I(F,z={}){if(Array.isArray(F)){const _=z.key,J=[];let it=!1;for(let st=0;st<F.length;st++){z.key=st;const ct=I(F[st],z),ht=typeof ct=="string";ht&&it?J[J.length-1]+=ct:ct!==null&&J.push(ct),it=ht}return z.key=_,J}return j(F,I,z)});var j;const $=c(t);return m.length?a("div",null,$,a("footer",{key:"footer"},m.map(function(I){return a("div",{id:r.slugify(I.identifier,Af),key:I.identifier},I.identifier,R(O(I.footnote,{inline:!0})))}))):$}const qL=t=>{let{children:r="",options:a}=t,c=function(p,m){if(p==null)return{};var S,k,O={},R=Object.keys(p);for(k=0;k<R.length;k++)m.indexOf(S=R[k])>=0||(O[S]=p[S]);return O}(t,XD);return W.cloneElement(YL(r,a),c)};var Ti=function(){return Ti=Object.assign||function(t){for(var r,a=1,c=arguments.length;a<c;a++)for(var p in r=arguments[a])Object.prototype.hasOwnProperty.call(r,p)&&(t[p]=r[p]);return t},Ti.apply(this,arguments)};function Gl(t,r){var a={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&r.indexOf(c)<0&&(a[c]=t[c]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var p=0;for(c=Object.getOwnPropertySymbols(t);p<c.length;p++)r.indexOf(c[p])<0&&Object.prototype.propertyIsEnumerable.call(t,c[p])&&(a[c[p]]=t[c[p]])}return a}var Fm=function(t){return Y.jsx(Ln,Ti({},t))},KL=function(t){var r=t.children;return Y.jsx(Fm,Ti({component:"blockquote",dir:"auto",sx:{borderInlineStart:"3px solid",paddingInlineStart:"1.5rem",borderColor:"text.secondary",m:"0.25rem 0"}},{children:r}))},Hc=function(t){return Y.jsx(Un,Ti({},t))},ZL=function(t){var r=t.children,a=t.component,c=a===void 0?"p":a,p=t.variant,m=p===void 0?"body1":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},QL=function(t){return Y.jsx(xu,Ti({},t))},JL=function(t){var r=t.children,a=t.component,c=a===void 0?"h1":a,p=t.variant,m=p===void 0?"h1":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},tI=function(t){var r=t.children,a=t.component,c=a===void 0?"h2":a,p=t.variant,m=p===void 0?"h2":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},eI=function(t){var r=t.children,a=t.component,c=a===void 0?"h3":a,p=t.variant,m=p===void 0?"h3":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},iI=function(t){var r=t.children,a=t.component,c=a===void 0?"h4":a,p=t.variant,m=p===void 0?"h4":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},nI=function(t){var r=t.children,a=t.component,c=a===void 0?"h5":a,p=t.variant,m=p===void 0?"h5":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},rI=function(t){var r=t.children,a=t.component,c=a===void 0?"h6":a,p=t.variant,m=p===void 0?"h6":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},sI=function(t){var r=t.children;return Y.jsx("code",Ti({style:{backgroundColor:"rgba(126, 125, 124, 0.1)",borderRadius:"0.25rem",padding:"0.25rem 0.5rem"}},{children:r}))},oI=function(t){return Y.jsx(GR,Ti({},t))},aI=function(t){var r=t.children,a=r===void 0?"":r,c=t.language,p=c===void 0?"tsx":c,m=t.Highlight,S=t.themes,k=t.theme,O=t.hideLineNumbers;return Y.jsx(m,Ti({code:a,language:p,theme:k||S.vsDark},{children:function(R){var j=R.style,$=R.tokens,I=R.getLineProps,F=R.getTokenProps;return Y.jsx("pre",Ti({style:Ti(Ti({borderRadius:"0.5rem",padding:"0.5rem 0.75rem",overflow:"auto"},j),t.styles)},{children:$.map(function(z,_){return Y.jsxs("div",Ti({},I({line:z}),{children:[!O&&Y.jsxs("span",{children:[_+1," "]}),z.map(function(J,it){return Y.jsx("span",Ti({},F({token:J})),it)})]}),_)})}))}}))},lI=function(t){var r=t.children,a=r===void 0?"":r,c=t.styles;return Y.jsx("pre",Ti({style:Ti({borderRadius:"0.5rem",padding:"0.5rem 0.75rem",overflow:"auto"},c)},{children:a}))},hw=function(t){var r=t.children,a=t.Highlight,c=t.themes,p=t.theme,m=t.styles,S=t.hideLineNumbers;if(r&&r.props&&r.props.className&&r.props.className.startsWith("lang-")){var k=r.props.children,O=r.props.className?r.props.className.replace("lang-",""):"tsx";return a&&c?Y.jsx(aI,Ti({Highlight:a,themes:c,language:O,theme:p,styles:m,hideLineNumbers:S},{children:k})):Y.jsx(lI,Ti({styles:m},{children:k}))}return Y.jsx(Fm,Ti({component:"pre",sx:{whiteSpace:"pre-wrap"}},{children:r}))},cI=function(t){var r=t.children,a=t.component,c=a===void 0?"span":a,p=t.variant,m=p===void 0?"body1":p,S=Gl(t,["children","component","variant"]);return Y.jsx(Hc,Ti({component:c,variant:m},S,{children:r}))},uI=function(t){return Y.jsx(SS,Ti({},t))},e1=function(t){return Y.jsx(cp,Ti({},t,{sx:Ti({whiteSpace:"nowrap"},t.sx)}))},dI=function(t){return Y.jsx(kP,Ti({},t))},hI=function(t){return Y.jsx(wS,Ti({},t))},pI=function(t){return Y.jsx(Vb,Ti({},t))},fI=function(t){return Y.jsx(vS,Ti({},t))},gI=function(t){var r=t.children,a=t.sx,c=Gl(t,["children","sx"]);return Y.jsx(Fm,Ti({sx:a||function(p){var m=p.palette;return Ti({overflow:"auto"},function(S){return{"::-webkit-scrollbar":{width:"8px",height:"6px"},"::-webkit-scrollbar-track":{background:S.mode==="dark"?S.background.default:S.background.paper,borderRadius:"8px",overflow:"hidden"},"::-webkit-scrollbar-thumb":{background:oh(S.background.default,.05),borderRadius:"8px"}}}(m))}},{children:Y.jsx(Fm,Ti({sx:{width:"100%",display:"table",tableLayout:"fixed"}},{children:Y.jsx(fI,Ti({},c,{children:r}))}))}))},mI=function(t){var r=t.children,a=t.component,c=a===void 0?"ul":a,p=Gl(t,["children","component"]);return Y.jsx(Hc,Ti({component:c},p,{children:r}))},yI=function(t){var r=t.children,a=t.component,c=a===void 0?"ol":a,p=Gl(t,["children","component"]);return Y.jsx(Hc,Ti({component:c},p,{children:r}))},bI={a:oI,blockquote:KL,code:sI,h1:JL,h2:tI,h3:eI,h4:iI,h5:nI,h6:rI,hr:QL,ol:yI,p:ZL,pre:hw,span:cI,table:gI,tbody:uI,td:e1,tfoot:dI,th:e1,thead:hI,tr:pI,ul:mI},pw=function(t){var r=t===void 0?{}:t,a=r.hideLineNumbers,c=r.theme,p=r.styles,m=r.Highlight,S=r.themes;return Ti(Ti({},bI),{pre:{component:hw,props:{theme:c,styles:p,Highlight:m,themes:S,hideLineNumbers:a}}})},xI=function(t){var r=t.children,a=r===void 0?"":r,c=function(p){var m=p.options,S=p.overrides,k=pw(p);return m?m.overrides?m:Ti(Ti({},m),{overrides:k}):{overrides:S||k}}(t);return function(p){return"options"in p&&"overrides"in p}(t)&&console.error("Cannot set both 'options' and 'overrides' in the MuiMarkdown component props."),Y.jsx(qL,Ti({options:c},{children:a||""}))};function vI(t){return si("MuiRichTreeView",t)}ci("MuiRichTreeView",["root"]);function fw(t){return KT}const SI=(t,r)=>{const a=W.useRef({}),[c,p]=W.useState(()=>{const S={};return t.forEach(k=>{k.models&&Object.entries(k.models).forEach(([O,R])=>{a.current[O]={isControlled:r[O]!==void 0,getDefaultValue:R.getDefaultValue},S[O]=R.getDefaultValue(r)})}),S});return Object.fromEntries(Object.entries(a.current).map(([S,k])=>{const O=r[S]??c[S];return[S,{value:O,setControlledValue:R=>{k.isControlled||p(j=>Bi({},j,{[S]:R}))}}]}))};class wI{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(r,a,c={}){let p=this.events[r];p||(p={highPriority:new Map,regular:new Map},this.events[r]=p),c.isFirst?p.highPriority.set(a,!0):p.regular.set(a,!0)}removeListener(r,a){this.events[r]&&(this.events[r].regular.delete(a),this.events[r].highPriority.delete(a))}removeAllListeners(){this.events={}}emit(r,...a){const c=this.events[r];if(!c)return;const p=Array.from(c.highPriority.keys()),m=Array.from(c.regular.keys());for(let S=p.length-1;S>=0;S-=1){const k=p[S];c.highPriority.has(k)&&k.apply(this,a)}for(let S=0;S<m.length;S+=1){const k=m[S];c.regular.has(k)&&k.apply(this,a)}}once(r,a){const c=this;this.on(r,function p(...m){c.removeListener(r,p),a.apply(c,m)})}}const CI=t=>t.isPropagationStopped!==void 0,gw=()=>{const[t]=W.useState(()=>new wI),r=W.useCallback((...c)=>{const[p,m,S={}]=c;S.defaultMuiPrevented=!1,!(CI(S)&&S.isPropagationStopped())&&t.emit(p,m,S)},[t]),a=W.useCallback((c,p)=>(t.on(c,p),()=>{t.removeListener(c,p)}),[t]);return{instance:{$$publishEvent:r,$$subscribeEvent:a}}};gw.params={};const mw=({plugins:t})=>{const r=new Set(t);return{instance:{getAvailablePlugins:()=>r}}};mw.params={};let i1=0;const kI=()=>(i1+=1,`mui-tree-view-${i1}`),yw=({id:t,treeId:r="",itemId:a})=>t??`${r}-${a}`,Hx=({params:t,state:r,setState:a})=>{W.useEffect(()=>{a(p=>p.id.treeId===t.id&&p.id.treeId!==void 0?p:Bi({},p,{id:Bi({},p.id,{treeId:t.id??kI()})}))},[a,t.id]);const c=t.id??r.id.treeId;return{getRootProps:()=>({id:c}),contextValue:{treeId:c}}};Hx.params={id:!0};Hx.getInitialState=({id:t})=>({id:{treeId:t??void 0}});const MI=[gw,mw,Hx],TI=["slots","slotProps","apiRef","experimentalFeatures"],EI=t=>{let{props:{slots:r,slotProps:a,apiRef:c,experimentalFeatures:p},plugins:m}=t,S=Lc(t.props,TI);const k={};m.forEach(I=>{Object.assign(k,I.params)});const O={},R={};Object.keys(S).forEach(I=>{const F=S[I];k[I]?O[I]=F:R[I]=F});const j=p??{},$=m.reduce((I,F)=>F.getDefaultizedParams?F.getDefaultizedParams({params:I,experimentalFeatures:j}):I,O);return{apiRef:c,forwardedProps:R,pluginParams:$,slots:r??{},slotProps:a??{},experimentalFeatures:j}},AI=({plugins:t,instance:r,publicAPI:a,rootRef:c})=>({runItemPlugins:k=>{let O=null,R=null;const j=[],$={};t.forEach(z=>{if(!z.itemPlugin)return;const _=z.itemPlugin({props:k,rootRef:O,contentRef:R});_!=null&&_.rootRef&&(O=_.rootRef),_!=null&&_.contentRef&&(R=_.contentRef),_!=null&&_.propsEnhancers&&(j.push(_.propsEnhancers),Object.keys(_.propsEnhancers).forEach(J=>{$[J]=!0}))});const I=z=>_=>{const J={};return j.forEach(it=>{const st=it[z];st!=null&&Object.assign(J,st(_))}),J},F=Object.fromEntries(Object.keys($).map(z=>[z,I(z)]));return{contentRef:R,rootRef:O,propsEnhancers:F}},wrapItem:({itemId:k,children:O})=>{let R=O;for(let j=t.length-1;j>=0;j-=1){const $=t[j];$.wrapItem&&(R=$.wrapItem({itemId:k,children:R,instance:r}))}return R},wrapRoot:({children:k})=>{let O=k;for(let R=t.length-1;R>=0;R-=1){const j=t[R];j.wrapRoot&&(O=j.wrapRoot({children:O,instance:r}))}return O},instance:r,rootRef:c,publicAPI:a});function RI(t){const r=W.useRef({});return t?(t.current==null&&(t.current={}),t.current):r.current}const OI=({plugins:t,rootRef:r,props:a})=>{const c=[...MI,...t],{pluginParams:p,forwardedProps:m,apiRef:S,experimentalFeatures:k,slots:O,slotProps:R}=EI({plugins:c,props:a}),j=SI(c,p),I=W.useRef({}).current,F=RI(S),z=W.useRef(null),_=ir(z,r),J=AI({plugins:c,instance:I,publicAPI:F,rootRef:z}),[it,st]=W.useState(()=>{const wt={};return c.forEach(at=>{at.getInitialState&&Object.assign(wt,at.getInitialState(p))}),wt}),ct=[],ht=wt=>{const at=wt({instance:I,params:p,slots:O,slotProps:R,experimentalFeatures:k,state:it,setState:st,rootRef:z,models:j,plugins:c});at.getRootProps&&ct.push(at.getRootProps),at.publicAPI&&Object.assign(F,at.publicAPI),at.instance&&Object.assign(I,at.instance),at.contextValue&&Object.assign(J,at.contextValue)};return c.forEach(ht),{getRootProps:(wt={})=>{const at=Bi({role:"tree"},m,wt,{ref:_});return ct.forEach(_t=>{Object.assign(at,_t(wt))}),at},rootRef:_,contextValue:J,instance:I}},bw=W.createContext(null);function PI(t){const{value:r,children:a}=t;return Y.jsx(bw.Provider,{value:r,children:r.wrapRoot({children:a,instance:r.instance})})}const fy=()=>{const t=W.useContext(bw);if(t==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
`));return t},BI=(t,r,a)=>{t.$$publishEvent(r,a)},ip="__TREE_VIEW_ROOT_PARENT_ID__",DI=t=>{const r={};return t.forEach((a,c)=>{r[a]=c}),r},xw=W.createContext(()=>-1),LI=["children"],vw=({items:t,isItemDisabled:r,getItemLabel:a,getItemId:c})=>{const p={},m={},S={[ip]:[]},k=(R,j,$)=>{var _,J;const I=c?c(R):R.id;if(I==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(R)].join(`
`));if(p[I]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${I}"`].join(`
`));const F=a?a(R):R.label;if(F==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(R)].join(`
`));p[I]={id:I,label:F,parentId:$,idAttribute:void 0,expandable:!!((_=R.children)!=null&&_.length),disabled:r?r(R):!1,depth:j},m[I]=R;const z=$??ip;S[z]||(S[z]=[]),S[z].push(I),(J=R.children)==null||J.forEach(it=>k(it,j+1,I))};t.forEach(R=>k(R,0,null));const O={};return Object.keys(S).forEach(R=>{O[R]=DI(S[R])}),{itemMetaMap:p,itemMap:m,itemOrderedChildrenIds:S,itemChildrenIndexes:O}},lg=({instance:t,params:r,state:a,setState:c,experimentalFeatures:p})=>{const m=W.useCallback(it=>a.items.itemMetaMap[it],[a.items.itemMetaMap]),S=W.useCallback(it=>a.items.itemMap[it],[a.items.itemMap]),k=W.useCallback(()=>{const it=st=>{const ct=a.items.itemMap[st],ht=Lc(ct,LI),lt=a.items.itemOrderedChildrenIds[st];return lt&&(ht.children=lt.map(it)),ht};return a.items.itemOrderedChildrenIds[ip].map(it)},[a.items.itemMap,a.items.itemOrderedChildrenIds]),O=W.useCallback(it=>{if(it==null)return!1;let st=t.getItemMeta(it);if(!st)return!1;if(st.disabled)return!0;for(;st.parentId!=null;)if(st=t.getItemMeta(st.parentId),st.disabled)return!0;return!1},[t]),R=W.useCallback(it=>{const st=t.getItemMeta(it).parentId??ip;return a.items.itemChildrenIndexes[st][it]},[t,a.items.itemChildrenIndexes]),j=W.useCallback(it=>a.items.itemOrderedChildrenIds[it??ip]??[],[a.items.itemOrderedChildrenIds]),$=it=>{const st=t.getItemMeta(it);return st==null?null:document.getElementById(yw({treeId:a.id.treeId,itemId:it,id:st.idAttribute}))},I=it=>r.disabledItemsFocusable?!0:!t.isItemDisabled(it),F=W.useRef(!1),z=W.useCallback(()=>{F.current=!0},[]),_=W.useCallback(()=>F.current,[]);return W.useEffect(()=>{t.areItemUpdatesPrevented()||c(it=>{const st=vw({items:r.items,isItemDisabled:r.isItemDisabled,getItemId:r.getItemId,getItemLabel:r.getItemLabel});return Object.values(it.items.itemMetaMap).forEach(ct=>{st.itemMetaMap[ct.id]||BI(t,"removeItem",{id:ct.id})}),Bi({},it,{items:st})})},[t,c,r.items,r.isItemDisabled,r.getItemId,r.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof r.itemChildrenIndentation=="number"?`${r.itemChildrenIndentation}px`:r.itemChildrenIndentation}}),publicAPI:{getItem:S,getItemDOMElement:$,getItemTree:k,getItemOrderedChildrenIds:j},instance:{getItemMeta:m,getItem:S,getItemTree:k,getItemsToRender:()=>{const it=st=>{var ht;const ct=a.items.itemMetaMap[st];return{label:ct.label,itemId:ct.id,id:ct.idAttribute,children:(ht=a.items.itemOrderedChildrenIds[st])==null?void 0:ht.map(it)}};return a.items.itemOrderedChildrenIds[ip].map(it)},getItemIndex:R,getItemDOMElement:$,getItemOrderedChildrenIds:j,isItemDisabled:O,isItemNavigable:I,preventItemUpdates:z,areItemUpdatesPrevented:_},contextValue:{items:{onItemClick:r.onItemClick,disabledItemsFocusable:r.disabledItemsFocusable,indentationAtItemLevel:p.indentationAtItemLevel??!1}}}};lg.getInitialState=t=>({items:vw({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel})});lg.getDefaultizedParams=({params:t})=>Bi({},t,{disabledItemsFocusable:t.disabledItemsFocusable??!1,itemChildrenIndentation:t.itemChildrenIndentation??"12px"});lg.wrapRoot=({children:t,instance:r})=>Y.jsx(xw.Provider,{value:a=>{var c;return((c=r.getItemMeta(a))==null?void 0:c.depth)??0},children:t});lg.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const gy=({instance:t,params:r,models:a})=>{const c=W.useMemo(()=>{const $=new Map;return a.expandedItems.value.forEach(I=>{$.set(I,!0)}),$},[a.expandedItems.value]),p=($,I)=>{var F;(F=r.onExpandedItemsChange)==null||F.call(r,$,I),a.expandedItems.setControlledValue(I)},m=W.useCallback($=>c.has($),[c]),S=W.useCallback($=>{var I;return!!((I=t.getItemMeta($))!=null&&I.expandable)},[t]),k=tl(($,I)=>{const F=t.isItemExpanded(I);t.setItemExpansion($,I,!F)}),O=tl(($,I,F)=>{if(t.isItemExpanded(I)===F)return;let _;F?_=[I].concat(a.expandedItems.value):_=a.expandedItems.value.filter(J=>J!==I),r.onItemExpansionToggle&&r.onItemExpansionToggle($,I,F),p($,_)}),R=($,I)=>{const F=t.getItemMeta(I),_=t.getItemOrderedChildrenIds(F.parentId).filter(it=>t.isItemExpandable(it)&&!t.isItemExpanded(it)),J=a.expandedItems.value.concat(_);_.length>0&&(r.onItemExpansionToggle&&_.forEach(it=>{r.onItemExpansionToggle($,it,!0)}),p($,J))},j=W.useMemo(()=>r.expansionTrigger?r.expansionTrigger:t.isTreeViewEditable?"iconContainer":"content",[r.expansionTrigger,t.isTreeViewEditable]);return{publicAPI:{setItemExpansion:O},instance:{isItemExpanded:m,isItemExpandable:S,setItemExpansion:O,toggleItemExpansion:k,expandAllSiblings:R},contextValue:{expansion:{expansionTrigger:j}}}};gy.models={expandedItems:{getDefaultValue:t=>t.defaultExpandedItems}};const II=[];gy.getDefaultizedParams=({params:t})=>Bi({},t,{defaultExpandedItems:t.defaultExpandedItems??II});gy.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Sw=(t,r)=>{let a=r.length-1;for(;a>=0&&!t.isItemNavigable(r[a]);)a-=1;if(a!==-1)return r[a]},ww=(t,r)=>{const a=t.getItemMeta(r),c=t.getItemOrderedChildrenIds(a.parentId),p=t.getItemIndex(r);if(p===0)return a.parentId;let m=p-1;for(;!t.isItemNavigable(c[m])&&m>=0;)m-=1;if(m===-1)return a.parentId==null?null:ww(t,a.parentId);let S=c[m],k=Sw(t,t.getItemOrderedChildrenIds(S));for(;t.isItemExpanded(S)&&k!=null;)S=k,k=t.getItemOrderedChildrenIds(S).find(t.isItemNavigable);return S},Rm=(t,r)=>{if(t.isItemExpanded(r)){const c=t.getItemOrderedChildrenIds(r).find(t.isItemNavigable);if(c!=null)return c}let a=t.getItemMeta(r);for(;a!=null;){const c=t.getItemOrderedChildrenIds(a.parentId),p=t.getItemIndex(a.id);if(p<c.length-1){let m=p+1;for(;!t.isItemNavigable(c[m])&&m<c.length-1;)m+=1;if(t.isItemNavigable(c[m]))return c[m]}a=t.getItemMeta(a.parentId)}return null},Cw=t=>{let r=null;for(;r==null||t.isItemExpanded(r);){const a=t.getItemOrderedChildrenIds(r),c=Sw(t,a);if(c==null)return r;r=c}return r},Xf=t=>t.getItemOrderedChildrenIds(null).find(t.isItemNavigable),kw=(t,r,a)=>{if(r===a)return[r,a];const c=t.getItemMeta(r),p=t.getItemMeta(a);if(c.parentId===p.id||p.parentId===c.id)return p.parentId===c.id?[c.id,p.id]:[p.id,c.id];const m=[c.id],S=[p.id];let k=c.parentId,O=p.parentId,R=S.indexOf(k)!==-1,j=m.indexOf(O)!==-1,$=!0,I=!0;for(;!j&&!R;)$&&(m.push(k),R=S.indexOf(k)!==-1,$=k!==null,!R&&$&&(k=t.getItemMeta(k).parentId)),I&&!R&&(S.push(O),j=m.indexOf(O)!==-1,I=O!==null,!j&&I&&(O=t.getItemMeta(O).parentId));const F=R?k:O,z=t.getItemOrderedChildrenIds(F),_=m[m.indexOf(F)-1],J=S[S.indexOf(F)-1];return z.indexOf(_)<z.indexOf(J)?[r,a]:[a,r]},NI=(t,r,a)=>{const c=O=>{if(t.isItemExpandable(O)&&t.isItemExpanded(O))return t.getItemOrderedChildrenIds(O)[0];let R=t.getItemMeta(O);for(;R!=null;){const j=t.getItemOrderedChildrenIds(R.parentId),$=t.getItemIndex(R.id);if($<j.length-1)return j[$+1];R=t.getItemMeta(R.parentId)}throw new Error("Invalid range")},[p,m]=kw(t,r,a),S=[p];let k=p;for(;k!==m;)k=c(k),t.isItemDisabled(k)||S.push(k);return S},zI=t=>{let r=Xf(t);const a=[];for(;r!=null;)a.push(r),r=Rm(t,r);return a},Jb=(t,r)=>r!==t.closest('*[role="treeitem"]'),Om=t=>Array.isArray(t)?t:t!=null?[t]:[],bb=t=>{const r={};return t.forEach(a=>{r[a]=!0}),r},my=({instance:t,params:r,models:a})=>{const c=W.useRef(null),p=W.useRef({}),m=W.useMemo(()=>{const _=new Map;return Array.isArray(a.selectedItems.value)?a.selectedItems.value.forEach(J=>{_.set(J,!0)}):a.selectedItems.value!=null&&_.set(a.selectedItems.value,!0),_},[a.selectedItems.value]),S=(_,J)=>{if(r.onItemSelectionToggle)if(r.multiSelect){const it=J.filter(ct=>!t.isItemSelected(ct)),st=a.selectedItems.value.filter(ct=>!J.includes(ct));it.forEach(ct=>{r.onItemSelectionToggle(_,ct,!0)}),st.forEach(ct=>{r.onItemSelectionToggle(_,ct,!1)})}else J!==a.selectedItems.value&&(a.selectedItems.value!=null&&r.onItemSelectionToggle(_,a.selectedItems.value,!1),J!=null&&r.onItemSelectionToggle(_,J,!0));r.onSelectedItemsChange&&r.onSelectedItemsChange(_,J),a.selectedItems.setControlledValue(J)},k=_=>m.has(_),O=({event:_,itemId:J,keepExistingSelection:it=!1,shouldBeSelected:st})=>{if(r.disableSelection)return;let ct;if(it){const ht=Om(a.selectedItems.value),lt=t.isItemSelected(J);lt&&(st===!1||st==null)?ct=ht.filter(wt=>wt!==J):!lt&&(st===!0||st==null)?ct=[J].concat(ht):ct=ht}else st===!1||st==null&&t.isItemSelected(J)?ct=r.multiSelect?[]:null:ct=r.multiSelect?[J]:J;S(_,ct),c.current=J,p.current={}},R=(_,[J,it])=>{if(r.disableSelection||!r.multiSelect)return;let st=Om(a.selectedItems.value).slice();Object.keys(p.current).length>0&&(st=st.filter(wt=>!p.current[wt]));const ct=bb(st),ht=NI(t,J,it),lt=ht.filter(wt=>!ct[wt]);st=st.concat(lt),S(_,st),p.current=bb(ht)};return{getRootProps:()=>({"aria-multiselectable":r.multiSelect}),publicAPI:{selectItem:O},instance:{isItemSelected:k,selectItem:O,selectAllNavigableItems:_=>{if(r.disableSelection||!r.multiSelect)return;const J=zI(t);S(_,J),p.current=bb(J)},expandSelectionRange:(_,J)=>{if(c.current!=null){const[it,st]=kw(t,J,c.current);R(_,[it,st])}},selectRangeFromStartToItem:(_,J)=>{R(_,[Xf(t),J])},selectRangeFromItemToEnd:(_,J)=>{R(_,[J,Cw(t)])},selectItemFromArrowNavigation:(_,J,it)=>{if(r.disableSelection||!r.multiSelect)return;let st=Om(a.selectedItems.value).slice();Object.keys(p.current).length===0?(st.push(it),p.current={[J]:!0,[it]:!0}):(p.current[J]||(p.current={}),p.current[it]?(st=st.filter(ct=>ct!==J),delete p.current[J]):(st.push(it),p.current[it]=!0)),S(_,st)}},contextValue:{selection:{multiSelect:r.multiSelect,checkboxSelection:r.checkboxSelection,disableSelection:r.disableSelection}}}};my.models={selectedItems:{getDefaultValue:t=>t.defaultSelectedItems}};const jI=[];my.getDefaultizedParams=({params:t})=>Bi({},t,{disableSelection:t.disableSelection??!1,multiSelect:t.multiSelect??!1,checkboxSelection:t.checkboxSelection??!1,defaultSelectedItems:t.defaultSelectedItems??(t.multiSelect?jI:null)});my.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const n1=1e3;class $I{constructor(r=n1){this.timeouts=new Map,this.cleanupTimeout=n1,this.cleanupTimeout=r}register(r,a,c){this.timeouts||(this.timeouts=new Map);const p=setTimeout(()=>{typeof a=="function"&&a(),this.timeouts.delete(c.cleanupToken)},this.cleanupTimeout);this.timeouts.set(c.cleanupToken,p)}unregister(r){const a=this.timeouts.get(r.cleanupToken);a&&(this.timeouts.delete(r.cleanupToken),clearTimeout(a))}reset(){this.timeouts&&(this.timeouts.forEach((r,a)=>{this.unregister({cleanupToken:a})}),this.timeouts=void 0)}}class HI{constructor(){this.registry=new FinalizationRegistry(r=>{typeof r=="function"&&r()})}register(r,a,c){this.registry.register(r,a,c)}unregister(r){this.registry.unregister(r)}reset(){}}class UI{}function FI(t){let r=0;return function(c,p,m){t.registry===null&&(t.registry=typeof FinalizationRegistry<"u"?new HI:new $I);const[S]=W.useState(new UI),k=W.useRef(null),O=W.useRef(void 0);O.current=m;const R=W.useRef(null);if(!k.current&&O.current){const j=($,I)=>{var F;I.defaultMuiPrevented||(F=O.current)==null||F.call(O,$,I)};k.current=c.$$subscribeEvent(p,j),r+=1,R.current={cleanupToken:r},t.registry.register(S,()=>{var $;($=k.current)==null||$.call(k),k.current=null,R.current=null},R.current)}else!O.current&&k.current&&(k.current(),k.current=null,R.current&&(t.registry.unregister(R.current),R.current=null));W.useEffect(()=>{if(!k.current&&O.current){const j=($,I)=>{var F;I.defaultMuiPrevented||(F=O.current)==null||F.call(O,$,I)};k.current=c.$$subscribeEvent(p,j)}return R.current&&t.registry&&(t.registry.unregister(R.current),R.current=null),()=>{var j;(j=k.current)==null||j.call(k),k.current=null}},[c,p])}}const GI={registry:null},_I=FI(GI),Mw=(t=document)=>{const r=t.activeElement;return r?r.shadowRoot?Mw(r.shadowRoot):r:null},WI=(t,r)=>{let a=Om(r).find(c=>{if(!t.isItemNavigable(c))return!1;const p=t.getItemMeta(c);return p&&(p.parentId==null||t.isItemExpanded(p.parentId))});return a==null&&(a=Xf(t)),a},Ux=({instance:t,params:r,state:a,setState:c,models:p,rootRef:m})=>{const S=WI(t,p.selectedItems.value),k=tl(J=>{const it=typeof J=="function"?J(a.focusedItemId):J;a.focusedItemId!==it&&c(st=>Bi({},st,{focusedItemId:it}))}),O=W.useCallback(()=>!!m.current&&m.current.contains(Mw(el(m.current))),[m]),R=W.useCallback(J=>a.focusedItemId===J&&O(),[a.focusedItemId,O]),j=J=>{const it=t.getItemMeta(J);return it&&(it.parentId==null||t.isItemExpanded(it.parentId))},$=(J,it)=>{const st=t.getItemDOMElement(it);st&&st.focus(),k(it),r.onItemFocus&&r.onItemFocus(J,it)},I=tl((J,it)=>{j(it)&&$(J,it)}),F=tl(()=>{if(a.focusedItemId==null)return;if(t.getItemMeta(a.focusedItemId)){const it=t.getItemDOMElement(a.focusedItemId);it&&it.blur()}k(null)}),z=J=>J===S;_I(t,"removeItem",({id:J})=>{a.focusedItemId===J&&$(null,S)});const _=J=>it=>{var st;(st=J.onFocus)==null||st.call(J,it),!it.defaultMuiPrevented&&it.target===it.currentTarget&&$(it,S)};return{getRootProps:J=>({onFocus:_(J)}),publicAPI:{focusItem:I},instance:{isItemFocused:R,canItemBeTabbed:z,focusItem:I,removeFocusedItem:F}}};Ux.getInitialState=()=>({focusedItemId:null});Ux.params={onItemFocus:!0};const Pm=(t,r)=>t.getAvailablePlugins().has(r),VI=({props:t})=>{const{instance:r}=fy(),{label:a,itemId:c}=t,[p,m]=W.useState(a),S=r.isItemBeingEdited(c);return W.useEffect(()=>{S||m(a)},[S,a]),{propsEnhancers:{labelInput:({externalEventHandlers:k,interactions:O})=>r.isItemEditable(c)?{value:p??"","data-element":"labelInput",onChange:F=>{var z;(z=k.onChange)==null||z.call(k,F),m(F.target.value)},onKeyDown:F=>{var _;if((_=k.onKeyDown)==null||_.call(k,F),F.defaultMuiPrevented)return;const z=F.target;F.key==="Enter"&&z.value?O.handleSaveItemLabel(F,z.value):F.key==="Escape"&&O.handleCancelItemLabelEditing(F)},onBlur:F=>{var z;(z=k.onBlur)==null||z.call(k,F),!F.defaultMuiPrevented&&F.target.value&&O.handleSaveItemLabel(F,F.target.value)},autoFocus:!0,type:"text"}:{}}}},Su=({instance:t,state:r,setState:a,params:c})=>{const p=W.useRef(r.editedItemId),m=$=>p.current===$,S=$=>{a(I=>Bi({},I,{editedItemId:$})),p.current=$},k=$=>$===r.editedItemId,O=!!c.isItemEditable,R=$=>{if($==null||!O)return!1;const I=t.getItem($);return I?typeof c.isItemEditable=="function"?c.isItemEditable(I):!!c.isItemEditable:!1},j=($,I)=>{if(!I)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",$].join(`
`));a(F=>{const z=F.items.itemMetaMap[$];return z.label!==I?Bi({},F,{items:Bi({},F.items,{itemMetaMap:Bi({},F.items.itemMetaMap,{[$]:Bi({},z,{label:I})})})}):F}),c.onItemLabelChange&&c.onItemLabelChange($,I)};return{instance:{setEditedItemId:S,isItemBeingEdited:k,updateItemLabel:j,isItemEditable:R,isTreeViewEditable:O,isItemBeingEditedRef:m},publicAPI:{updateItemLabel:j}}};Su.itemPlugin=VI;Su.getDefaultizedParams=({params:t,experimentalFeatures:r})=>{const a=r==null?void 0:r.labelEditing;return Bi({},t,{isItemEditable:a?t.isItemEditable??!1:!1})};Su.getInitialState=()=>({editedItemId:null});Su.params={onItemLabelChange:!0,isItemEditable:!0};function XI(t){return!!t&&t.length===1&&!!t.match(/\S/)}const Tw=({instance:t,params:r,state:a})=>{const c=ig(),p=W.useRef({}),m=tl(j=>{p.current=j(p.current)});W.useEffect(()=>{if(t.areItemUpdatesPrevented())return;const j={},$=I=>{j[I.id]=I.label.substring(0,1).toLowerCase()};Object.values(a.items.itemMetaMap).forEach($),p.current=j},[a.items.itemMetaMap,r.getItemId,t]);const S=(j,$)=>{const I=$.toLowerCase(),F=it=>{const st=Rm(t,it);return st===null?Xf(t):st};let z=null,_=F(j);const J={};for(;z==null&&!J[_];)p.current[_]===I?z=_:(J[_]=!0,_=F(_));return z},k=j=>!r.disableSelection&&!t.isItemDisabled(j),O=j=>!t.isItemDisabled(j)&&t.isItemExpandable(j);return{instance:{updateFirstCharMap:m,handleItemKeyDown:(j,$)=>{if(j.defaultMuiPrevented||j.altKey||Jb(j.target,j.currentTarget))return;const I=j.ctrlKey||j.metaKey,F=j.key;switch(!0){case(F===" "&&k($)):{j.preventDefault(),r.multiSelect&&j.shiftKey?t.expandSelectionRange(j,$):t.selectItem({event:j,itemId:$,keepExistingSelection:r.multiSelect,shouldBeSelected:r.multiSelect?void 0:!0});break}case F==="Enter":{Pm(t,Su)&&t.isItemEditable($)&&!t.isItemBeingEdited($)?t.setEditedItemId($):O($)?(t.toggleItemExpansion(j,$),j.preventDefault()):k($)&&(r.multiSelect?(j.preventDefault(),t.selectItem({event:j,itemId:$,keepExistingSelection:!0})):t.isItemSelected($)||(t.selectItem({event:j,itemId:$}),j.preventDefault()));break}case F==="ArrowDown":{const z=Rm(t,$);z&&(j.preventDefault(),t.focusItem(j,z),r.multiSelect&&j.shiftKey&&k(z)&&t.selectItemFromArrowNavigation(j,$,z));break}case F==="ArrowUp":{const z=ww(t,$);z&&(j.preventDefault(),t.focusItem(j,z),r.multiSelect&&j.shiftKey&&k(z)&&t.selectItemFromArrowNavigation(j,$,z));break}case(F==="ArrowRight"&&!c||F==="ArrowLeft"&&c):{if(I)return;if(t.isItemExpanded($)){const z=Rm(t,$);z&&(t.focusItem(j,z),j.preventDefault())}else O($)&&(t.toggleItemExpansion(j,$),j.preventDefault());break}case(F==="ArrowLeft"&&!c||F==="ArrowRight"&&c):{if(I)return;if(O($)&&t.isItemExpanded($))t.toggleItemExpansion(j,$),j.preventDefault();else{const z=t.getItemMeta($).parentId;z&&(t.focusItem(j,z),j.preventDefault())}break}case F==="Home":{k($)&&r.multiSelect&&I&&j.shiftKey?t.selectRangeFromStartToItem(j,$):t.focusItem(j,Xf(t)),j.preventDefault();break}case F==="End":{k($)&&r.multiSelect&&I&&j.shiftKey?t.selectRangeFromItemToEnd(j,$):t.focusItem(j,Cw(t)),j.preventDefault();break}case F==="*":{t.expandAllSiblings(j,$),j.preventDefault();break}case(String.fromCharCode(j.keyCode)==="A"&&I&&r.multiSelect&&!r.disableSelection):{t.selectAllNavigableItems(j),j.preventDefault();break}case(!I&&!j.shiftKey&&XI(F)):{const z=S($,F);z!=null&&(t.focusItem(j,z),j.preventDefault());break}}}}}};Tw.params={};const Ew=({slots:t,slotProps:r})=>({contextValue:{icons:{slots:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon},slotProps:{collapseIcon:r.collapseIcon,expandIcon:r.expandIcon,endIcon:r.endIcon}}}});Ew.params={};const YI=[lg,gy,my,Ux,Tw,Ew,Su];function Aw(t){const{instance:r,items:{onItemClick:a},selection:{multiSelect:c,checkboxSelection:p,disableSelection:m},expansion:{expansionTrigger:S}}=fy(),k=r.isItemExpandable(t),O=r.isItemExpanded(t),R=r.isItemFocused(t),j=r.isItemSelected(t),$=r.isItemDisabled(t),I=r!=null&&r.isItemBeingEdited?r==null?void 0:r.isItemBeingEdited(t):!1,F=r.isItemEditable?r.isItemEditable(t):!1,z=lt=>{if(!$){R||r.focusItem(lt,t);const wt=c&&(lt.shiftKey||lt.ctrlKey||lt.metaKey);k&&!(wt&&r.isItemExpanded(t))&&r.toggleItemExpansion(lt,t)}},_=lt=>{$||(R||r.focusItem(lt,t),c&&(lt.shiftKey||lt.ctrlKey||lt.metaKey)?lt.shiftKey?r.expandSelectionRange(lt,t):r.selectItem({event:lt,itemId:t,keepExistingSelection:!0}):r.selectItem({event:lt,itemId:t,shouldBeSelected:!0}))},J=lt=>{if(m||$)return;const wt=lt.nativeEvent.shiftKey;c&&wt?r.expandSelectionRange(lt,t):r.selectItem({event:lt,itemId:t,keepExistingSelection:c,shouldBeSelected:lt.target.checked})},it=lt=>{(lt.shiftKey||lt.ctrlKey||lt.metaKey||$)&<.preventDefault()},st=()=>{Pm(r,Su)&&r.isItemEditable(t)&&(r.isItemBeingEdited(t)?r.setEditedItemId(null):r.setEditedItemId(t))};return{disabled:$,expanded:O,selected:j,focused:R,editable:F,editing:I,disableSelection:m,checkboxSelection:p,handleExpansion:z,handleSelection:_,handleCheckboxSelection:J,handleContentClick:a,preventSelection:it,expansionTrigger:S,toggleItemEditing:st,handleSaveItemLabel:(lt,wt)=>{Pm(r,Su)&&r.isItemBeingEditedRef(t)&&(r.updateItemLabel(t,wt),st(),r.focusItem(lt,t))},handleCancelItemLabelEditing:lt=>{Pm(r,Su)&&r.isItemBeingEditedRef(t)&&(st(),r.focusItem(lt,t))}}}const qI=xe("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(t,r)=>r.root,shouldForwardProp:t=>sp(t)&&t!=="action"})(({theme:t})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:t.shape.borderRadius,backgroundColor:t.vars?`rgba(${t.vars.palette.primary.darkChannel} / ${t.vars.palette.action.focusOpacity})`:Yi(t.palette.primary.dark,t.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(t.vars||t).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(t.vars||t).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(t.vars||t).palette.action.active}`}}]}));function KI(t){return t.action==null?null:Y.jsx(qI,Bi({},t))}const ZI=xe("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(t,r)=>r.labelInput})(({theme:t})=>Bi({},t.typography.body1,{width:"100%",backgroundColor:t.palette.background.paper,borderRadius:t.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${t.palette.primary.main}`}})),QI=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],Rw=W.forwardRef(function(r,a){const{classes:c,className:p,displayIcon:m,expansionIcon:S,icon:k,label:O,itemId:R,onClick:j,onMouseDown:$,dragAndDropOverlayProps:I,labelInputProps:F}=r,z=Lc(r,QI),{disabled:_,expanded:J,selected:it,focused:st,editing:ct,editable:ht,disableSelection:lt,checkboxSelection:wt,handleExpansion:at,handleSelection:_t,handleCheckboxSelection:Et,handleContentClick:ot,preventSelection:It,expansionTrigger:se,toggleItemEditing:re}=Aw(R),ie=k||S||m,Kt=W.useRef(null),zt=Dt=>{It(Dt),$&&$(Dt)},ne=Dt=>{var St;ot==null||ot(Dt,R),!((St=Kt.current)!=null&&St.contains(Dt.target))&&(se==="content"&&at(Dt),wt||_t(Dt),j&&j(Dt))},te=Dt=>{Dt.defaultMuiPrevented||re()};return Y.jsxs("div",Bi({},z,{className:je(c.root,p,J&&c.expanded,it&&c.selected,st&&c.focused,_&&c.disabled,ct&&c.editing,ht&&c.editable),onClick:ne,onMouseDown:zt,ref:a,children:[Y.jsx("div",{className:c.iconContainer,children:ie}),wt&&Y.jsx(zb,{className:c.checkbox,checked:it,onChange:Et,disabled:_||lt,ref:Kt,tabIndex:-1}),ct?Y.jsx(ZI,Bi({},F,{className:c.labelInput})):Y.jsx("div",Bi({className:c.label},ht&&{onDoubleClick:te},{children:O})),I&&Y.jsx(KI,Bi({},I))]}))});function JI(t){return si("MuiTreeItem",t)}const bu=ci("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),tN=vr(Y.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),eN=vr(Y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function Ow(t){const{children:r,itemId:a}=t,{wrapItem:c,instance:p}=fy();return c({children:r,itemId:a,instance:p})}Ow.propTypes={children:Pv.node,itemId:Pv.string.isRequired};const iN=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],nN=["ownerState"],rN=["ownerState"],sN=["ownerState"],oN=fw(),aN=t=>{const{classes:r}=t;return oi({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},JI,r)},lN=xe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(t,r)=>r.root})({listStyle:"none",margin:0,padding:0,outline:0}),cN=xe(Rw,{name:"MuiTreeItem",slot:"Content",overridesResolver:(t,r)=>[r.content,r.iconContainer&&{[`& .${bu.iconContainer}`]:r.iconContainer},r.label&&{[`& .${bu.label}`]:r.label}],shouldForwardProp:t=>sp(t)&&t!=="indentationAtItemLevel"})(({theme:t})=>({padding:t.spacing(.5,1),borderRadius:t.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:t.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bu.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${bu.focused}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${bu.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${bu.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Yi(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`& .${bu.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${bu.label}`]:Bi({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},t.typography.body1),[`& .${bu.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${t.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),uN=xe(Db,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(t,r)=>r.groupTransition,shouldForwardProp:t=>sp(t)&&t!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),dN=W.forwardRef(function(r,a){var ki,_r,xn,Ho;const{icons:c,runItemPlugins:p,items:{disabledItemsFocusable:m,indentationAtItemLevel:S},selection:{disableSelection:k},expansion:{expansionTrigger:O},treeId:R,instance:j}=fy(),$=W.useContext(xw),I=oN({props:r,name:"MuiTreeItem"}),{children:F,className:z,slots:_,slotProps:J,ContentComponent:it=Rw,ContentProps:st,itemId:ct,id:ht,label:lt,onClick:wt,onMouseDown:at,onBlur:_t,onKeyDown:Et}=I,ot=Lc(I,iN),{expanded:It,focused:se,selected:re,disabled:ie,editing:Kt,handleExpansion:zt,handleCancelItemLabelEditing:ne,handleSaveItemLabel:te}=Aw(ct),{contentRef:Dt,rootRef:St,propsEnhancers:jt}=p(I),Se=W.useRef(null),ke=W.useRef(null),ge=ir(a,St,Se),Pe=ir(st==null?void 0:st.ref,Dt,ke),we={expandIcon:(_==null?void 0:_.expandIcon)??c.slots.expandIcon??tN,collapseIcon:(_==null?void 0:_.collapseIcon)??c.slots.collapseIcon??eN,endIcon:(_==null?void 0:_.endIcon)??c.slots.endIcon,icon:_==null?void 0:_.icon,groupTransition:_==null?void 0:_.groupTransition},Ue=ei=>Array.isArray(ei)?ei.length>0&&ei.some(Ue):!!ei,Ae=Ue(F),Ke=Bi({},I,{expanded:It,focused:se,selected:re,disabled:ie,indentationAtItemLevel:S}),Be=aN(Ke),_e=we.groupTransition??void 0,me=$l({elementType:_e,ownerState:{},externalSlotProps:J==null?void 0:J.groupTransition,additionalProps:Bi({unmountOnExit:!0,in:It,component:"ul",role:"group"},S?{indentationAtItemLevel:!0}:{}),className:Be.groupTransition}),Ei=ei=>{O==="iconContainer"&&zt(ei)},di=It?we.collapseIcon:we.expandIcon,Ai=$l({elementType:di,ownerState:{},externalSlotProps:ei=>It?Bi({},yd(c.slotProps.collapseIcon,ei),yd(J==null?void 0:J.collapseIcon,ei)):Bi({},yd(c.slotProps.expandIcon,ei),yd(J==null?void 0:J.expandIcon,ei)),additionalProps:{onClick:Ei}}),Di=Lc(Ai,nN),Ni=Ae&&di?Y.jsx(di,Bi({},Di)):null,bi=Ae?void 0:we.endIcon,bn=$l({elementType:bi,ownerState:{},externalSlotProps:ei=>Ae?{}:Bi({},yd(c.slotProps.endIcon,ei),yd(J==null?void 0:J.endIcon,ei))}),Zi=Lc(bn,rN),qi=bi?Y.jsx(bi,Bi({},Zi)):null,Ye=we.icon,sn=$l({elementType:Ye,ownerState:{},externalSlotProps:J==null?void 0:J.icon}),Vi=Lc(sn,sN),Ri=Ye?Y.jsx(Ye,Bi({},Vi)):null;let lr;re?lr=!0:k||ie?lr=void 0:lr=!1;function tn(ei){!se&&(!ie||m)&&ei.currentTarget===ei.target&&j.focusItem(ei,ct)}function Xi(ei){var ts,Sr,es,qs;_t==null||_t(ei),!(Kt||ei.relatedTarget&&Jb(ei.relatedTarget,Se.current)&&(ei.target&&((Sr=(ts=ei.target)==null?void 0:ts.dataset)==null?void 0:Sr.element)==="labelInput"&&Jb(ei.target,Se.current)||((qs=(es=ei.relatedTarget)==null?void 0:es.dataset)==null?void 0:qs.element)==="labelInput"))&&j.removeFocusedItem()}const on=ei=>{var ts,Sr;Et==null||Et(ei),((Sr=(ts=ei.target)==null?void 0:ts.dataset)==null?void 0:Sr.element)!=="labelInput"&&j.handleItemKeyDown(ei,ct)},In=yw({itemId:ct,treeId:R,id:ht}),Ci=j.canItemBeTabbed(ct)?0:-1,dn={rootRefObject:Se,contentRefObject:ke,interactions:{handleSaveItemLabel:te,handleCancelItemLabelEditing:ne}},cr=((ki=jt.root)==null?void 0:ki.call(jt,Bi({},dn,{externalEventHandlers:Im(ot)})))??{},gn=((_r=jt.content)==null?void 0:_r.call(jt,Bi({},dn,{externalEventHandlers:Im(st)})))??{},ti=((xn=jt.dragAndDropOverlay)==null?void 0:xn.call(jt,Bi({},dn,{externalEventHandlers:{}})))??{},ai=((Ho=jt.labelInput)==null?void 0:Ho.call(jt,Bi({},dn,{externalEventHandlers:{}})))??{};return Y.jsx(Ow,{itemId:ct,children:Y.jsxs(lN,Bi({className:je(Be.root,z),role:"treeitem","aria-expanded":Ae?It:void 0,"aria-selected":lr,"aria-disabled":ie||void 0,id:In,tabIndex:Ci},ot,{ownerState:Ke,onFocus:tn,onBlur:Xi,onKeyDown:on,ref:ge,style:S?Bi({},ot.style,{"--TreeView-itemDepth":typeof $=="function"?$(ct):$}):ot.style},cr,{children:[Y.jsx(cN,Bi({as:it,classes:{root:Be.content,expanded:Be.expanded,selected:Be.selected,focused:Be.focused,disabled:Be.disabled,editable:Be.editable,editing:Be.editing,iconContainer:Be.iconContainer,label:Be.label,labelInput:Be.labelInput,checkbox:Be.checkbox},label:lt,itemId:ct,onClick:wt,onMouseDown:at,icon:Ri,expansionIcon:Ni,displayIcon:qi,ownerState:Ke},st,gn,ti.action==null?{}:{dragAndDropOverlayProps:ti},ai.value==null?{}:{labelInputProps:ai},{ref:Pe})),F&&Y.jsx(uN,Bi({as:_e},me,{children:F}))]}))})}),hN=["ownerState"];function pN({slots:t,slotProps:r,label:a,id:c,itemId:p,itemsToRender:m}){const S=(t==null?void 0:t.item)??dN,k=$l({elementType:S,externalSlotProps:r==null?void 0:r.item,additionalProps:{itemId:p,id:c,label:a},ownerState:{itemId:p,label:a}}),O=Lc(k,hN),R=W.useMemo(()=>m?Y.jsx(Pw,{itemsToRender:m,slots:t,slotProps:r}):null,[m,t,r]);return Y.jsx(S,Bi({},O,{children:R}))}function Pw(t){const{itemsToRender:r,slots:a,slotProps:c}=t;return Y.jsx(W.Fragment,{children:r.map(p=>Y.jsx(pN,{slots:a,slotProps:c,label:p.label,id:p.id,itemId:p.itemId,itemsToRender:p.children},p.itemId))})}const fN=fw(),gN=t=>{const{classes:r}=t;return oi({root:["root"]},vI,r)},mN=xe("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(t,r)=>r.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),r1=W.forwardRef(function(r,a){const c=fN({props:r,name:"MuiRichTreeView"}),{getRootProps:p,contextValue:m,instance:S}=OI({plugins:YI,rootRef:a,props:c}),{slots:k,slotProps:O}=c,R=gN(c),j=(k==null?void 0:k.root)??mN,$=$l({elementType:j,externalSlotProps:O==null?void 0:O.root,className:R.root,getSlotProps:p,ownerState:c});return Y.jsx(PI,{value:m,children:Y.jsx(j,Bi({},$,{children:Y.jsx(Pw,{slots:k,slotProps:O,itemsToRender:S.getItemsToRender()})}))})}),yN=vr(Y.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16.77c.68 0 1.23-.56 1.23-1.23V8c0-1.1-.9-2-2-2m0 12H4V6h5.17l2 2H20zm-2-6H6v-2h12zm-4 4H6v-2h8z"}),"TopicOutlined"),Bw=async()=>{try{const t=`${zx}/docs`,r=await fetch(t);if(!r.ok)throw`Error fetching assessments (${t}) : ${r.status}`;return(async()=>{const c=await r.json(),p={},m=(k,O="")=>{const R=`${O}.${k.id}`;return{id:R,label:k.id,children:k.docs.map(j=>{const $=`${R}.${j.id}`;return p[$]=j.md,{id:$,label:j.id}}).concat((k.components||[]).map(j=>m(j,R)))}};return{toc:c.data.docs?[m(c.data.docs)]:[],topics:p}})()}catch(t){throw new Error(`${t.message} : ${Nx}`)}};let Dw=Bw();const bN=()=>{Dw=Bw()};function xN(){const{toc:t,topics:r}=W.use(Dw),[a,c]=W.useState("use TOC to select specific topic"),[,p]=W.useState(null),m=(R,j,$)=>{$&&(p(j),r[j]&&c(r[j]))},[S,k]=W.useState(!1),O=R=>()=>{k(R)};return Y.jsxs(yp,{maxWidth:"xl",sx:{pt:2},children:[Y.jsx(Ja,{size:"small1",onClick:O(!0),sx:{display:{xs:"block",md:"none"}},children:Y.jsx(yN,{fontSize:"inherit"})}),Y.jsx(lS,{open:S,anchor:"left",onClose:O(!1),children:Y.jsx(Ln,{sx:{p:2,width:320},role:"presentation",children:Y.jsx(r1,{items:t.length?t:[{id:"nodata",label:"nodata"}],onItemSelectionToggle:m})})}),Y.jsxs(ib,{container:!0,spacing:2,children:[Y.jsx(ib,{size:{md:3},sx:{display:{xs:"none",md:"block"}},children:Y.jsx(r1,{items:t.length?t:[{id:"nodata",label:"nodata"}],onItemSelectionToggle:m})}),Y.jsx(ib,{size:{xs:12,md:9},children:Y.jsx(xI,{overrides:{...pw({}),h1:{component:"p",props:{style:{fontSize:"32px"}}},h2:{component:"p",props:{style:{fontSize:"24px"}}},h3:{component:"p",props:{style:{fontSize:"16px"}}},h4:{component:"p",props:{style:{fontSize:"14px"}}},h5:{component:"p",props:{style:{fontSize:"12px"}}}},children:a})})]})]})}function vN(){const[t,r]=W.useState(0);return Y.jsx(_m,{FallbackComponent:cy,onReset:()=>{bN(),r(a=>a+1)},children:Y.jsx(W.Suspense,{fallback:Y.jsx(uy,{}),children:Y.jsx(xN,{},t)})})}const SN=vr(Y.jsx("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build");function wN(t){return Y.jsxs(yp,{maxWidth:"md",sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"50vh",textAlign:"center"},children:[Y.jsx(SN,{sx:{fontSize:32,color:"primary.main",mb:2}}),Y.jsx(Un,{variant:"h5",fontWeight:"bold",gutterBottom:!0,children:"Under Construction"}),Y.jsx(Un,{variant:"h7",color:"text.secondary",mb:3,children:"We're working on something great. Stay tuned!"}),t.details&&Y.jsx(Un,{variant:"h6",color:"text.secondary",children:t.details})]})}function CN(){return Y.jsx(wN,{details:"Automated job description generation and recruitment powered by a referral grid leveraging Ethereum DAO technology etc."})}const Lw=async()=>{try{const t=await Promise.all(["info","projects"].map(async r=>[r,await fetch(`${zx}/${r}`)]));if(t.some(r=>!r[1].ok))throw`Error fetching data : ${response.status}`;return Promise.all(t.map(async r=>[r[0],await r[1].json()]))}catch(t){throw new Error(`${t.message} : ${Nx}`)}};let Iw=Lw();const kN=()=>{Iw=Lw()},MN=[{id:"projects",title:"Projects",href:"/"},{id:"timeline",title:"Timeline",href:"/timeline"},{id:"team",title:"Team",href:"/team"},{id:"docs",title:"Docs",href:"/docs"},{id:"assistant",title:"Assistant",href:"/assistant"}];function TN(){const t=Object.fromEntries(W.use(Iw)),r=Date.now(),a=24*36e5,c=t.info.data.scmUser??"",p=t.projects.data.team,m=p.find(F=>F.bandwidth.find(z=>z.email==c)),S=m?[m.id]:[],k=t.projects.data.projects[0].timeline??[],O=k.map(F=>F.current?F.uid:null).filter(F=>F)[0],R=k.find(F=>F.uid===O),j={start:r-a,end:R?r+R.durationToRelease+a:r+30*a},[$,I]=W.useState({version:t.info.data.version,projects:t.projects.data.projects,team:p,components:[],selectedMembers:S,timeline:k,deadline:O,interval:j,statuses:{todo:!0,dev:!0,blocked:!0,done:!1},priorities:{critical:!1,high:!1,low:!1}});return Y.jsx(Ka.Provider,{value:{context:$,setContext:I},children:Y.jsx(JT,{theme:Xb,children:Y.jsxs(dD,{children:[Y.jsx(SD,{version:$.version,pages:MN}),Y.jsxs(UB,{children:[Y.jsx(tp,{index:!0,element:Y.jsx(ID,{})}),Y.jsx(tp,{path:"timeline",element:Y.jsx(WD,{})}),Y.jsx(tp,{path:"team",element:Y.jsx(VD,{})}),Y.jsx(tp,{path:"docs",element:Y.jsx(vN,{})}),Y.jsx(tp,{path:"assistant",element:Y.jsx(CN,{})})]})]})})})}function EN(){const[t,r]=W.useState(0);return Y.jsx(_m,{FallbackComponent:cy,onReset:()=>{kN(),r(a=>a+1)},children:Y.jsx(W.Suspense,{fallback:Y.jsx(uy,{}),children:Y.jsx(TN,{},t)})})}lC.createRoot(document.getElementById("root")).render(Y.jsx(W.StrictMode,{children:Y.jsx(EN,{})}));