From 3cc983f30b894dbb43af77c9d0e385278a62f596 Mon Sep 17 00:00:00 2001 From: Dmytro Vovk Date: Mon, 12 Aug 2024 17:30:20 +0100 Subject: [PATCH] save --- build/assets/index-32d2948d.js | 777 +++++++++++++++++++++++++++++++++ 1 file changed, 777 insertions(+) create mode 100644 build/assets/index-32d2948d.js diff --git a/build/assets/index-32d2948d.js b/build/assets/index-32d2948d.js new file mode 100644 index 0000000..87102c9 --- /dev/null +++ b/build/assets/index-32d2948d.js @@ -0,0 +1,777 @@ +var aI=Object.defineProperty;var sI=(e,t,r)=>t in e?aI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rs=(e,t,r)=>(sI(e,typeof t!="symbol"?t+"":t,r),r);function lI(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Gx={exports:{}},Bd={},Kx={exports:{}},ke={};/** + * @license React + * react.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 Ul=Symbol.for("react.element"),cI=Symbol.for("react.portal"),dI=Symbol.for("react.fragment"),fI=Symbol.for("react.strict_mode"),hI=Symbol.for("react.profiler"),pI=Symbol.for("react.provider"),mI=Symbol.for("react.context"),vI=Symbol.for("react.forward_ref"),gI=Symbol.for("react.suspense"),yI=Symbol.for("react.memo"),SI=Symbol.for("react.lazy"),VS=Symbol.iterator;function bI(e){return e===null||typeof e!="object"?null:(e=VS&&e[VS]||e["@@iterator"],typeof e=="function"?e:null)}var Yx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qx=Object.assign,Xx={};function os(e,t,r){this.props=e,this.context=t,this.refs=Xx,this.updater=r||Yx}os.prototype.isReactComponent={};os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jx(){}Jx.prototype=os.prototype;function qv(e,t,r){this.props=e,this.context=t,this.refs=Xx,this.updater=r||Yx}var Vv=qv.prototype=new Jx;Vv.constructor=qv;Qx(Vv,os.prototype);Vv.isPureReactComponent=!0;var GS=Array.isArray,Zx=Object.prototype.hasOwnProperty,Gv={current:null},eC={key:!0,ref:!0,__self:!0,__source:!0};function tC(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Zx.call(t,n)&&!eC.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,Pe=J[we];if(0>>1;weo(Se,ce))Vo(G,Se)?(J[we]=G,J[V]=ce,we=V):(J[we]=Se,J[De]=ce,we=De);else if(Vo(G,ce))J[we]=G,J[V]=ce,we=V;else break e}}return ae}function o(J,ae){var ce=J.sortIndex-ae.sortIndex;return ce!==0?ce:J.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,g=!1,S=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(J){for(var ae=r(c);ae!==null;){if(ae.callback===null)n(c);else if(ae.startTime<=J)n(c),ae.sortIndex=ae.expirationTime,t(l,ae);else break;ae=r(c)}}function k(J){if(y=!1,x(J),!S)if(r(l)!==null)S=!0,oe(E);else{var ae=r(c);ae!==null&&pe(k,ae.startTime-J)}}function E(J,ae){S=!1,y&&(y=!1,v(P),P=-1),g=!0;var ce=p;try{for(x(ae),f=r(l);f!==null&&(!(f.expirationTime>ae)||J&&!M());){var we=f.callback;if(typeof we=="function"){f.callback=null,p=f.priorityLevel;var Pe=we(f.expirationTime<=ae);ae=e.unstable_now(),typeof Pe=="function"?f.callback=Pe:f===r(l)&&n(l),x(ae)}else n(l);f=r(l)}if(f!==null)var bt=!0;else{var De=r(c);De!==null&&pe(k,De.startTime-ae),bt=!1}return bt}finally{f=null,p=ce,g=!1}}var O=!1,_=null,P=-1,I=5,j=-1;function M(){return!(e.unstable_now()-jJ||125we?(J.sortIndex=ce,t(c,J),r(l)===null&&J===r(c)&&(y?(v(P),P=-1):y=!0,pe(k,ce-we))):(J.sortIndex=Pe,t(l,J),S||g||(S=!0,oe(E))),J},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(J){var ae=p;return function(){var ce=p;p=ae;try{return J.apply(this,arguments)}finally{p=ce}}}})(aC);iC.exports=aC;var II=iC.exports;/** + * @license React + * react-dom.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 jI=N,Ur=II;function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bm=Object.prototype.hasOwnProperty,zI=/^[: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]*$/,YS={},QS={};function NI(e){return bm.call(QS,e)?!0:bm.call(YS,e)?!1:zI.test(e)?QS[e]=!0:(YS[e]=!0,!1)}function AI(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function MI(e,t,r,n){if(t===null||typeof t>"u"||AI(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qt[e]=new gr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qt[t]=new gr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qt[e]=new gr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qt[e]=new gr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qt[e]=new gr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qt[e]=new gr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qt[e]=new gr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qt[e]=new gr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qt[e]=new gr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yv=/[\-:]([a-z])/g;function Qv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yv,Qv);qt[t]=new gr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yv,Qv);qt[t]=new gr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yv,Qv);qt[t]=new gr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qt[e]=new gr(e,1,!1,e.toLowerCase(),null,!1,!1)});qt.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qt[e]=new gr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xv(e,t,r,n){var o=qt.hasOwnProperty(t)?qt[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Wh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ds(e):""}function LI(e){switch(e.tag){case 5:return Ds(e.type);case 16:return Ds("Lazy");case 13:return Ds("Suspense");case 19:return Ds("SuspenseList");case 0:case 2:case 15:return e=Uh(e.type,!1),e;case 11:return e=Uh(e.type.render,!1),e;case 1:return e=Uh(e.type,!0),e;default:return""}}function Cm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ha:return"Fragment";case fa:return"Portal";case wm:return"Profiler";case Jv:return"StrictMode";case _m:return"Suspense";case xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uC:return(e.displayName||"Context")+".Consumer";case lC:return(e._context.displayName||"Context")+".Provider";case Zv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eg:return t=e.displayName||null,t!==null?t:Cm(e.type)||"Memo";case Po:t=e._payload,e=e._init;try{return Cm(e(t))}catch{}}return null}function $I(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cm(t);case 8:return t===Jv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DI(e){var t=dC(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eu(e){e._valueTracker||(e._valueTracker=DI(e))}function fC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=dC(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function $c(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}}function Rm(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function JS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Yo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hC(e,t){t=t.checked,t!=null&&Xv(e,"checked",t,!1)}function km(e,t){hC(e,t);var r=Yo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pm(e,t.type,Yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ZS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Pm(e,t,r){(t!=="number"||$c(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Fs=Array.isArray;function Ra(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ou.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Xs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},FI=["Webkit","ms","Moz","O"];Object.keys(Xs).forEach(function(e){FI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xs[t]=Xs[e]})});function gC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Xs.hasOwnProperty(e)&&Xs[e]?(""+t).trim():t+"px"}function yC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=gC(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var BI=st({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Om(e,t){if(t){if(BI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(te(62))}}function Im(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 jm=null;function tg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zm=null,ka=null,Pa=null;function rb(e){if(e=Vl(e)){if(typeof zm!="function")throw Error(te(280));var t=e.stateNode;t&&(t=Vd(t),zm(e.stateNode,e.type,t))}}function SC(e){ka?Pa?Pa.push(e):Pa=[e]:ka=e}function bC(){if(ka){var e=ka,t=Pa;if(Pa=ka=null,rb(e),t)for(e=0;e>>=0,e===0?32:31-(JI(e)/ZI|0)|0}var Iu=64,ju=4194304;function Bs(e){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Bs(s):(i&=a,i!==0&&(n=Bs(i)))}else a=r&~o,a!==0?n=Bs(a):i!==0&&(n=Bs(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Hl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=r}function nj(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Zs),db=String.fromCharCode(32),fb=!1;function FC(e,t){switch(e){case"keyup":return Ij.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function zj(e,t){switch(e){case"compositionend":return BC(t);case"keypress":return t.which!==32?null:(fb=!0,db);case"textInput":return e=t.data,e===db&&fb?null:e;default:return null}}function Nj(e,t){if(pa)return e==="compositionend"||!ug&&FC(e,t)?(e=$C(),cc=ag=jo=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=vb(r)}}function qC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VC(){for(var e=window,t=$c();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$c(e.document)}return t}function cg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uj(e){var t=VC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&qC(r.ownerDocument.documentElement,r)){if(n!==null&&cg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=gb(r,i);var a=gb(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ma=null,Dm=null,tl=null,Fm=!1;function yb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fm||ma==null||ma!==$c(n)||(n=ma,"selectionStart"in n&&cg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),tl&&yl(tl,n)||(tl=n,n=qc(Dm,"onSelect"),0ya||(e.current=Vm[ya],Vm[ya]=null,ya--)}function Ke(e,t){ya++,Vm[ya]=e.current,e.current=t}var Qo={},or=ri(Qo),Cr=ri(!1),Ei=Qo;function $a(e,t){var r=e.type.contextTypes;if(!r)return Qo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rr(e){return e=e.childContextTypes,e!=null}function Gc(){Je(Cr),Je(or)}function Rb(e,t,r){if(or.current!==Qo)throw Error(te(168));Ke(or,t),Ke(Cr,r)}function tR(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(te(108,$I(e)||"Unknown",o));return st({},r,n)}function Kc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qo,Ei=or.current,Ke(or,e),Ke(Cr,Cr.current),!0}function kb(e,t,r){var n=e.stateNode;if(!n)throw Error(te(169));r?(e=tR(e,t,Ei),n.__reactInternalMemoizedMergedChildContext=e,Je(Cr),Je(or),Ke(or,e)):Je(Cr),Ke(Cr,r)}var no=null,Gd=!1,np=!1;function rR(e){no===null?no=[e]:no.push(e)}function t2(e){Gd=!0,rR(e)}function ni(){if(!np&&no!==null){np=!0;var e=0,t=We;try{var r=no;for(We=1;e>=a,o-=a,so=1<<32-_n(t)+o|r<P?(I=_,_=null):I=_.sibling;var j=p(v,_,x[P],k);if(j===null){_===null&&(_=I);break}e&&_&&j.alternate===null&&t(v,_),b=i(j,b,P),O===null?E=j:O.sibling=j,O=j,_=I}if(P===x.length)return r(v,_),nt&&hi(v,P),E;if(_===null){for(;PP?(I=_,_=null):I=_.sibling;var M=p(v,_,j.value,k);if(M===null){_===null&&(_=I);break}e&&_&&M.alternate===null&&t(v,_),b=i(M,b,P),O===null?E=M:O.sibling=M,O=M,_=I}if(j.done)return r(v,_),nt&&hi(v,P),E;if(_===null){for(;!j.done;P++,j=x.next())j=f(v,j.value,k),j!==null&&(b=i(j,b,P),O===null?E=j:O.sibling=j,O=j);return nt&&hi(v,P),E}for(_=n(v,_);!j.done;P++,j=x.next())j=g(_,v,P,j.value,k),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?P:j.key),b=i(j,b,P),O===null?E=j:O.sibling=j,O=j);return e&&_.forEach(function($){return t(v,$)}),nt&&hi(v,P),E}function C(v,b,x,k){if(typeof x=="object"&&x!==null&&x.type===ha&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Tu:e:{for(var E=x.key,O=b;O!==null;){if(O.key===E){if(E=x.type,E===ha){if(O.tag===7){r(v,O.sibling),b=o(O,x.props.children),b.return=v,v=b;break e}}else if(O.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Po&&Eb(E)===O.type){r(v,O.sibling),b=o(O,x.props),b.ref=Is(v,O,x),b.return=v,v=b;break e}r(v,O);break}else t(v,O);O=O.sibling}x.type===ha?(b=Ci(x.props.children,v.mode,k,x.key),b.return=v,v=b):(k=yc(x.type,x.key,x.props,null,v.mode,k),k.ref=Is(v,b,x),k.return=v,v=k)}return a(v);case fa:e:{for(O=x.key;b!==null;){if(b.key===O)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){r(v,b.sibling),b=o(b,x.children||[]),b.return=v,v=b;break e}else{r(v,b);break}else t(v,b);b=b.sibling}b=dp(x,v.mode,k),b.return=v,v=b}return a(v);case Po:return O=x._init,C(v,b,O(x._payload),k)}if(Fs(x))return S(v,b,x,k);if(ks(x))return y(v,b,x,k);Du(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(r(v,b.sibling),b=o(b,x),b.return=v,v=b):(r(v,b),b=cp(x,v.mode,k),b.return=v,v=b),a(v)):r(v,b)}return C}var Fa=aR(!0),sR=aR(!1),Xc=ri(null),Jc=null,wa=null,pg=null;function mg(){pg=wa=Jc=null}function vg(e){var t=Xc.current;Je(Xc),e._currentValue=t}function Ym(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ea(e,t){Jc=e,pg=wa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_r=!0),e.firstContext=null)}function an(e){var t=e._currentValue;if(pg!==e)if(e={context:e,memoizedValue:t,next:null},wa===null){if(Jc===null)throw Error(te(308));wa=e,Jc.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Si=null;function gg(e){Si===null?Si=[e]:Si.push(e)}function lR(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,gg(t)):(r.next=o.next,o.next=r),t.interleaved=r,mo(e,n)}function mo(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var To=!1;function yg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uR(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,je&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,mo(e,r)}return o=n.interleaved,o===null?(t.next=t,gg(n)):(t.next=o.next,o.next=t),n.interleaved=t,mo(e,r)}function fc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ng(e,r)}}function Ob(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Zc(e,t,r,n){var o=e.updateQueue;To=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var p=s.lane,g=s.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,y=s;switch(p=t,g=r,y.tag){case 1:if(S=y.payload,typeof S=="function"){f=S.call(g,f,p);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,p=typeof S=="function"?S.call(g,f,p):S,p==null)break e;f=st({},f,p);break e;case 2:To=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=g,l=f):d=d.next=g,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(1);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ji|=a,e.lanes=a,e.memoizedState=f}}function Ib(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ip.transition;ip.transition={};try{e(!1),t()}finally{We=r,ip.transition=n}}function kR(){return sn().memoizedState}function i2(e,t,r){var n=Wo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},PR(e))TR(t,r);else if(r=lR(e,t,r,n),r!==null){var o=pr();xn(r,e,n,o),ER(r,t,n)}}function a2(e,t,r){var n=Wo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(PR(e))TR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,Cn(s,a)){var l=t.interleaved;l===null?(o.next=o,gg(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=lR(e,t,o,n),r!==null&&(o=pr(),xn(r,e,n,o),ER(r,t,n))}}function PR(e){var t=e.alternate;return e===at||t!==null&&t===at}function TR(e,t){rl=td=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ER(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ng(e,r)}}var rd={readContext:an,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},s2={readContext:an,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:an,useEffect:zb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,pc(4194308,4,wR.bind(null,t,e),r)},useLayoutEffect:function(e,t){return pc(4194308,4,e,t)},useInsertionEffect:function(e,t){return pc(4,2,e,t)},useMemo:function(e,t){var r=Nn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Nn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=i2.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:jb,useDebugValue:kg,useDeferredValue:function(e){return Nn().memoizedState=e},useTransition:function(){var e=jb(!1),t=e[0];return e=o2.bind(null,e[1]),Nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,o=Nn();if(nt){if(r===void 0)throw Error(te(407));r=r()}else{if(r=t(),Nt===null)throw Error(te(349));Ii&30||hR(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,zb(mR.bind(null,n,i,e),[e]),n.flags|=2048,kl(9,pR.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Nn(),t=Nt.identifierPrefix;if(nt){var r=lo,n=so;r=(n&~(1<<32-_n(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Cl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Dn]=t,e[wl]=n,DR(e,t,!1,!1),t.stateNode=e;e:{switch(a=Im(r,n),r){case"dialog":Xe("cancel",e),Xe("close",e),o=n;break;case"iframe":case"object":case"embed":Xe("load",e),o=n;break;case"video":case"audio":for(o=0;oUa&&(t.flags|=128,n=!0,js(i,!1),t.lanes=4194304)}else{if(!n)if(e=ed(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),js(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!nt)return Xt(t),null}else 2*vt()-i.renderingStartTime>Ua&&r!==1073741824&&(t.flags|=128,n=!0,js(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,r=it.current,Ke(it,n?r&1|2:r&1),t):(Xt(t),null);case 22:case 23:return jg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Mr&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(te(156,t.tag))}function m2(e,t){switch(fg(t),t.tag){case 1:return Rr(t.type)&&Gc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(),Je(Cr),Je(or),wg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bg(t),null;case 13:if(Je(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(te(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(it),null;case 4:return Ba(),null;case 10:return vg(t.type._context),null;case 22:case 23:return jg(),null;case 24:return null;default:return null}}var Bu=!1,nr=!1,v2=typeof WeakSet=="function"?WeakSet:Set,me=null;function _a(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ct(e,t,n)}else r.current=null}function ov(e,t,r){try{r()}catch(n){ct(e,t,n)}}var Hb=!1;function g2(e,t){if(Bm=Uc,e=VC(),cg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++d===n&&(l=a),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Wm={focusedElem:e,selectionRange:r},Uc=!1,me=t;me!==null;)if(t=me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,me=e;else for(;me!==null;){t=me;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,C=S.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:gn(t.type,y),C);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(te(163))}}catch(k){ct(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return S=Hb,Hb=!1,S}function nl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ov(t,r,i)}o=o.next}while(o!==n)}}function Qd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function iv(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function WR(e){var t=e.alternate;t!==null&&(e.alternate=null,WR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dn],delete t[wl],delete t[qm],delete t[Zj],delete t[e2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function UR(e){return e.tag===5||e.tag===3||e.tag===4}function qb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||UR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function av(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Vc));else if(n!==4&&(e=e.child,e!==null))for(av(e,t,r),e=e.sibling;e!==null;)av(e,t,r),e=e.sibling}function sv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(sv(e,t,r),e=e.sibling;e!==null;)sv(e,t,r),e=e.sibling}var Ft=null,yn=!1;function Co(e,t,r){for(r=r.child;r!==null;)HR(e,t,r),r=r.sibling}function HR(e,t,r){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Wd,r)}catch{}switch(r.tag){case 5:nr||_a(r,t);case 6:var n=Ft,o=yn;Ft=null,Co(e,t,r),Ft=n,yn=o,Ft!==null&&(yn?(e=Ft,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ft.removeChild(r.stateNode));break;case 18:Ft!==null&&(yn?(e=Ft,r=r.stateNode,e.nodeType===8?rp(e.parentNode,r):e.nodeType===1&&rp(e,r),vl(e)):rp(Ft,r.stateNode));break;case 4:n=Ft,o=yn,Ft=r.stateNode.containerInfo,yn=!0,Co(e,t,r),Ft=n,yn=o;break;case 0:case 11:case 14:case 15:if(!nr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ov(r,t,a),o=o.next}while(o!==n)}Co(e,t,r);break;case 1:if(!nr&&(_a(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){ct(r,t,s)}Co(e,t,r);break;case 21:Co(e,t,r);break;case 22:r.mode&1?(nr=(n=nr)||r.memoizedState!==null,Co(e,t,r),nr=n):Co(e,t,r);break;default:Co(e,t,r)}}function Vb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new v2),t.forEach(function(n){var o=k2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function vn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=vt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*S2(n/1960))-n,10e?16:e,zo===null)var n=!1;else{if(e=zo,zo=null,id=0,je&6)throw Error(te(331));var o=je;for(je|=4,me=e.current;me!==null;){var i=me,a=i.child;if(me.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Og?xi(e,0):Eg|=r),kr(e,t)}function JR(e,t){t===0&&(e.mode&1?(t=ju,ju<<=1,!(ju&130023424)&&(ju=4194304)):t=1);var r=pr();e=mo(e,t),e!==null&&(Hl(e,t,r),kr(e,r))}function R2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),JR(e,r)}function k2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(te(314))}n!==null&&n.delete(t),JR(e,r)}var ZR;ZR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cr.current)_r=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _r=!1,h2(e,t,r);_r=!!(e.flags&131072)}else _r=!1,nt&&t.flags&1048576&&nR(t,Qc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;mc(e,t),e=t.pendingProps;var o=$a(t,or.current);Ea(t,r),o=xg(null,t,n,e,o,r);var i=Cg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rr(n)?(i=!0,Kc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,yg(t),o.updater=Yd,t.stateNode=o,o._reactInternals=t,Xm(t,n,e,r),t=ev(null,t,n,!0,i,r)):(t.tag=0,nt&&i&&dg(t),fr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(mc(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=T2(n),e=gn(n,e),o){case 0:t=Zm(null,t,n,e,r);break e;case 1:t=Bb(null,t,n,e,r);break e;case 11:t=Db(null,t,n,e,r);break e;case 14:t=Fb(null,t,n,gn(n.type,e),r);break e}throw Error(te(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gn(n,o),Zm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gn(n,o),Bb(e,t,n,o,r);case 3:e:{if(MR(t),e===null)throw Error(te(387));n=t.pendingProps,i=t.memoizedState,o=i.element,uR(e,t),Zc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Wa(Error(te(423)),t),t=Wb(e,t,n,r,o);break e}else if(n!==o){o=Wa(Error(te(424)),t),t=Wb(e,t,n,r,o);break e}else for(Dr=Do(t.stateNode.containerInfo.firstChild),Fr=t,nt=!0,Sn=null,r=sR(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Da(),n===o){t=vo(e,t,r);break e}fr(e,t,n,r)}t=t.child}return t;case 5:return cR(t),e===null&&Km(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Um(n,o)?a=null:i!==null&&Um(n,i)&&(t.flags|=32),AR(e,t),fr(e,t,a,r),t.child;case 6:return e===null&&Km(t),null;case 13:return LR(e,t,r);case 4:return Sg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Fa(t,null,n,r):fr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gn(n,o),Db(e,t,n,o,r);case 7:return fr(e,t,t.pendingProps,r),t.child;case 8:return fr(e,t,t.pendingProps.children,r),t.child;case 12:return fr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ke(Xc,n._currentValue),n._currentValue=a,i!==null)if(Cn(i.value,a)){if(i.children===o.children&&!Cr.current){t=vo(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=fo(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Ym(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(te(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Ym(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}fr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ea(t,r),o=an(o),n=n(o),t.flags|=1,fr(e,t,n,r),t.child;case 14:return n=t.type,o=gn(n,t.pendingProps),o=gn(n.type,o),Fb(e,t,n,o,r);case 15:return zR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:gn(n,o),mc(e,t),t.tag=1,Rr(n)?(e=!0,Kc(t)):e=!1,Ea(t,r),OR(t,n,o),Xm(t,n,o,r),ev(null,t,n,!0,e,r);case 19:return $R(e,t,r);case 22:return NR(e,t,r)}throw Error(te(156,t.tag))};function ek(e,t){return PC(e,t)}function P2(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,r,n){return new P2(e,t,r,n)}function Ng(e){return e=e.prototype,!(!e||!e.isReactComponent)}function T2(e){if(typeof e=="function")return Ng(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zv)return 11;if(e===eg)return 14}return 2}function Uo(e,t){var r=e.alternate;return r===null?(r=tn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yc(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Ng(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ha:return Ci(r.children,o,i,t);case Jv:a=8,o|=8;break;case wm:return e=tn(12,r,t,o|2),e.elementType=wm,e.lanes=i,e;case _m:return e=tn(13,r,t,o),e.elementType=_m,e.lanes=i,e;case xm:return e=tn(19,r,t,o),e.elementType=xm,e.lanes=i,e;case cC:return Jd(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lC:a=10;break e;case uC:a=9;break e;case Zv:a=11;break e;case eg:a=14;break e;case Po:a=16,n=null;break e}throw Error(te(130,e==null?e:typeof e,""))}return t=tn(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ci(e,t,r,n){return e=tn(7,e,n,t),e.lanes=r,e}function Jd(e,t,r,n){return e=tn(22,e,n,t),e.elementType=cC,e.lanes=r,e.stateNode={isHidden:!1},e}function cp(e,t,r){return e=tn(6,e,null,t),e.lanes=r,e}function dp(e,t,r){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E2(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qh(0),this.expirationTimes=qh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ag(e,t,r,n,o,i,a,s,l){return e=new E2(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},yg(i),e}function O2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ok)}catch(e){console.error(e)}}ok(),oC.exports=qr;var Kl=oC.exports,ew=Kl;Sm.createRoot=ew.createRoot,Sm.hydrateRoot=ew.hydrateRoot;/** + * @remix-run/router v1.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ik(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function M2(){return Math.random().toString(36).substr(2,8)}function rw(e,t){return{usr:e.state,key:e.key,idx:t}}function fv(e,t,r,n){return r===void 0&&(r=null),Tl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ss(t):t,{state:r,key:t&&t.key||n||M2()})}function ld(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ss(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function L2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=No.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Tl({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=No.Pop;let C=d(),v=C==null?null:C-c;c=C,l&&l({action:s,location:y.location,delta:v})}function p(C,v){s=No.Push;let b=fv(y.location,C,v);r&&r(b,C),c=d()+1;let x=rw(b,c),k=y.createHref(b);try{a.pushState(x,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(k)}i&&l&&l({action:s,location:y.location,delta:1})}function g(C,v){s=No.Replace;let b=fv(y.location,C,v);r&&r(b,C),c=d();let x=rw(b,c),k=y.createHref(b);a.replaceState(x,"",k),i&&l&&l({action:s,location:y.location,delta:0})}function S(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:ld(C);return b=b.replace(/ $/,"%20"),kt(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let y={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(tw,f),l=C,()=>{o.removeEventListener(tw,f),l=null}},createHref(C){return t(o,C)},createURL:S,encodeLocation(C){let v=S(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(C){return a.go(C)}};return y}var nw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nw||(nw={}));function $2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ss(t):t,o=Dg(n.pathname||"/",r);if(o==null)return null;let i=ak(e);D2(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(kt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Ho([n,l.relativePath]),d=r.concat(l);i.children&&i.children.length>0&&(kt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ak(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:V2(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of sk(i.path))o(i,a,l)}),t}function sk(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=sk(n.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function D2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:G2(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const F2=/^:[\w-]+$/,B2=3,W2=2,U2=1,H2=10,q2=-2,ow=e=>e==="*";function V2(e,t){let r=e.split("/"),n=r.length;return r.some(ow)&&(n+=q2),t&&(n+=W2),r.filter(o=>!ow(o)).reduce((o,i)=>o+(F2.test(i)?B2:i===""?U2:H2),n)}function G2(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function K2(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=s[f]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const S=s[f];return g&&!S?c[p]=void 0:c[p]=(S||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Q2(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ik(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function X2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ik(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Dg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function J2(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ss(e):e;return{pathname:r?r.startsWith("/")?r:Z2(r,t):t,search:rz(n),hash:nz(o)}}function Z2(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function fp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ez(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function lk(e,t){let r=ez(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function uk(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=ss(e):(o=Tl({},e),kt(!o.pathname||!o.pathname.includes("?"),fp("?","pathname","search",o)),kt(!o.pathname||!o.pathname.includes("#"),fp("#","pathname","hash",o)),kt(!o.search||!o.search.includes("#"),fp("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=r;else{let f=t.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=J2(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Ho=e=>e.join("/").replace(/\/\/+/g,"/"),tz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ck=["post","put","patch","delete"];new Set(ck);const iz=["get",...ck];new Set(iz);/** + * React Router v6.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),N.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=uk(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ho([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,a,i,e])}const uz=N.createContext(null);function cz(e){let t=N.useContext(oi).outlet;return t&&N.createElement(uz.Provider,{value:e},t)}function pk(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=N.useContext(Bi),{matches:o}=N.useContext(oi),{pathname:i}=of(),a=JSON.stringify(lk(o,n.v7_relativeSplatPath));return N.useMemo(()=>uk(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function dz(e,t){return fz(e,t)}function fz(e,t,r,n){Yl()||kt(!1);let{navigator:o}=N.useContext(Bi),{matches:i}=N.useContext(oi),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=of(),d;if(t){var f;let C=typeof t=="string"?ss(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||kt(!1),d=C}else d=c;let p=d.pathname||"/",g=p;if(l!=="/"){let C=l.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=$2(e,{pathname:g}),y=gz(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Ho([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Ho([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,r,n);return t&&y?N.createElement(nf.Provider,{value:{location:El({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:No.Pop}},y):y}function hz(){let e=wz(),t=oz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),r?N.createElement("pre",{style:o},r):null,i)}const pz=N.createElement(hz,null);class mz extends N.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?N.createElement(oi.Provider,{value:this.props.routeContext},N.createElement(dk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vz(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(Fg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(oi.Provider,{value:t},n)}function gz(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let a=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||kt(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let g,S=!1,y=null,C=null;r&&(g=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||pz,l&&(c<0&&p===0?(xz("route-fallback",!1),S=!0,C=null):c===p&&(S=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,p+1)),b=()=>{let x;return g?x=y:S?x=C:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(vz,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(mz,{location:r.location,revalidation:r.revalidation,component:y,error:g,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var mk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mk||{}),ud=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ud||{});function yz(e){let t=N.useContext(Fg);return t||kt(!1),t}function Sz(e){let t=N.useContext(az);return t||kt(!1),t}function bz(e){let t=N.useContext(oi);return t||kt(!1),t}function vk(e){let t=bz(),r=t.matches[t.matches.length-1];return r.route.id||kt(!1),r.route.id}function wz(){var e;let t=N.useContext(dk),r=Sz(ud.UseRouteError),n=vk(ud.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function _z(){let{router:e}=yz(mk.UseNavigateStable),t=vk(ud.UseNavigateStable),r=N.useRef(!1);return fk(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,El({fromRouteId:t},i)))},[e,t])}const iw={};function xz(e,t,r){!t&&!iw[e]&&(iw[e]=!0)}function Cz(e){return cz(e.context)}function Zt(e){kt(!1)}function Rz(e){let{basename:t="/",children:r=null,location:n,navigationType:o=No.Pop,navigator:i,static:a=!1,future:s}=e;Yl()&&kt(!1);let l=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:i,static:a,future:El({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof n=="string"&&(n=ss(n));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:S="default"}=n,y=N.useMemo(()=>{let C=Dg(d,l);return C==null?null:{location:{pathname:C,search:f,hash:p,state:g,key:S},navigationType:o}},[l,d,f,p,g,S,o]);return y==null?null:N.createElement(Bi.Provider,{value:c},N.createElement(nf.Provider,{children:r,value:y}))}function kz(e){let{children:t,location:r}=e;return dz(hv(t),r)}new Promise(()=>{});function hv(e,t){t===void 0&&(t=[]);let r=[];return N.Children.forEach(e,(n,o)=>{if(!N.isValidElement(n))return;let i=[...t,o];if(n.type===N.Fragment){r.push.apply(r,hv(n.props.children,i));return}n.type!==Zt&&kt(!1),!n.props.index||!n.props.children||kt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=hv(n.props.children,i)),r.push(a)}),r}/** + * React Router DOM v6.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pv(){return pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Tz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ez(e,t){return e.button===0&&(!t||t==="_self")&&!Tz(e)}const Oz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Iz="6";try{window.__reactRouterVersion=Iz}catch{}const jz="startTransition",aw=Ma[jz];function zz(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=A2({window:o,v5Compat:!0}));let a=i.current,[s,l]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=N.useCallback(f=>{c&&aw?aw(()=>l(f)):l(f)},[l,c]);return N.useLayoutEffect(()=>a.listen(d),[a,d]),N.createElement(Rz,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const Nz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Az=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ko=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=Pz(t,Oz),{basename:g}=N.useContext(Bi),S,y=!1;if(typeof c=="string"&&Az.test(c)&&(S=c,Nz))try{let x=new URL(window.location.href),k=c.startsWith("//")?new URL(x.protocol+c):new URL(c),E=Dg(k.pathname,g);k.origin===x.origin&&E!=null?c=E+k.search+k.hash:y=!0}catch{}let C=sz(c,{relative:o}),v=Mz(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function b(x){n&&n(x),x.defaultPrevented||v(x)}return N.createElement("a",pv({},p,{href:S||C,onClick:y||i?n:b,ref:r,target:l}))});var sw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sw||(sw={}));var lw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lw||(lw={}));function Mz(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=hk(),c=of(),d=pk(e,{relative:a});return N.useCallback(f=>{if(Ez(f,r)){f.preventDefault();let p=n!==void 0?n:ld(c)===ld(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,d,n,o,r,e,i,a,s])}var gk={exports:{}},yk={};/** + * @license React + * use-sync-external-store-shim.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 Ha=N;function Lz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $z=typeof Object.is=="function"?Object.is:Lz,Dz=Ha.useState,Fz=Ha.useEffect,Bz=Ha.useLayoutEffect,Wz=Ha.useDebugValue;function Uz(e,t){var r=t(),n=Dz({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Bz(function(){o.value=r,o.getSnapshot=t,hp(o)&&i({inst:o})},[e,r,t]),Fz(function(){return hp(o)&&i({inst:o}),e(function(){hp(o)&&i({inst:o})})},[e]),Wz(r),r}function hp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!$z(e,r)}catch{return!0}}function Hz(e,t){return t()}var qz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hz:Uz;yk.useSyncExternalStore=Ha.useSyncExternalStore!==void 0?Ha.useSyncExternalStore:qz;gk.exports=yk;var Vz=gk.exports,Sk={exports:{}},bk={};/** + * @license React + * use-sync-external-store-shim/with-selector.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 af=N,Gz=Vz;function Kz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yz=typeof Object.is=="function"?Object.is:Kz,Qz=Gz.useSyncExternalStore,Xz=af.useRef,Jz=af.useEffect,Zz=af.useMemo,eN=af.useDebugValue;bk.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=Xz(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Zz(function(){function l(g){if(!c){if(c=!0,d=g,g=n(g),o!==void 0&&a.hasValue){var S=a.value;if(o(S,g))return f=S}return f=g}if(S=f,Yz(d,g))return S;var y=n(g);return o!==void 0&&o(S,y)?S:(d=g,f=y)}var c=!1,d,f,p=r===void 0?null:r;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,r,n,o]);var s=Qz(e,i[0],i[1]);return Jz(function(){a.hasValue=!0,a.value=s},[s]),eN(s),s};Sk.exports=bk;var tN=Sk.exports;function rN(e){e()}let wk=rN;const nN=e=>wk=e,oN=()=>wk,uw=Symbol.for("react-redux-context"),cw=typeof globalThis<"u"?globalThis:{};function iN(){var e;if(!N.createContext)return{};const t=(e=cw[uw])!=null?e:cw[uw]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const Xo=iN();function Bg(e=Xo){return function(){return N.useContext(e)}}const _k=Bg(),aN=()=>{throw new Error("uSES not initialized!")};let xk=aN;const sN=e=>{xk=e},lN=(e,t)=>e===t;function uN(e=Xo){const t=e===Xo?_k:Bg(e);return function(n,o={}){const{equalityFn:i=lN,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:c,getServerState:d,stabilityCheck:f,noopCheck:p}=t();N.useRef(!0);const g=N.useCallback({[n.name](y){return n(y)}}[n.name],[n,f,a]),S=xk(c.addNestedSub,l.getState,d||l.getState,g,i);return N.useDebugValue(S),S}}const Oe=uN();function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}var Ck={exports:{}},Ue={};/** @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 Mt=typeof Symbol=="function"&&Symbol.for,Wg=Mt?Symbol.for("react.element"):60103,Ug=Mt?Symbol.for("react.portal"):60106,sf=Mt?Symbol.for("react.fragment"):60107,lf=Mt?Symbol.for("react.strict_mode"):60108,uf=Mt?Symbol.for("react.profiler"):60114,cf=Mt?Symbol.for("react.provider"):60109,df=Mt?Symbol.for("react.context"):60110,Hg=Mt?Symbol.for("react.async_mode"):60111,ff=Mt?Symbol.for("react.concurrent_mode"):60111,hf=Mt?Symbol.for("react.forward_ref"):60112,pf=Mt?Symbol.for("react.suspense"):60113,dN=Mt?Symbol.for("react.suspense_list"):60120,mf=Mt?Symbol.for("react.memo"):60115,vf=Mt?Symbol.for("react.lazy"):60116,fN=Mt?Symbol.for("react.block"):60121,hN=Mt?Symbol.for("react.fundamental"):60117,pN=Mt?Symbol.for("react.responder"):60118,mN=Mt?Symbol.for("react.scope"):60119;function Gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wg:switch(e=e.type,e){case Hg:case ff:case sf:case uf:case lf:case pf:return e;default:switch(e=e&&e.$$typeof,e){case df:case hf:case vf:case mf:case cf:return e;default:return t}}case Ug:return t}}}function Rk(e){return Gr(e)===ff}Ue.AsyncMode=Hg;Ue.ConcurrentMode=ff;Ue.ContextConsumer=df;Ue.ContextProvider=cf;Ue.Element=Wg;Ue.ForwardRef=hf;Ue.Fragment=sf;Ue.Lazy=vf;Ue.Memo=mf;Ue.Portal=Ug;Ue.Profiler=uf;Ue.StrictMode=lf;Ue.Suspense=pf;Ue.isAsyncMode=function(e){return Rk(e)||Gr(e)===Hg};Ue.isConcurrentMode=Rk;Ue.isContextConsumer=function(e){return Gr(e)===df};Ue.isContextProvider=function(e){return Gr(e)===cf};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wg};Ue.isForwardRef=function(e){return Gr(e)===hf};Ue.isFragment=function(e){return Gr(e)===sf};Ue.isLazy=function(e){return Gr(e)===vf};Ue.isMemo=function(e){return Gr(e)===mf};Ue.isPortal=function(e){return Gr(e)===Ug};Ue.isProfiler=function(e){return Gr(e)===uf};Ue.isStrictMode=function(e){return Gr(e)===lf};Ue.isSuspense=function(e){return Gr(e)===pf};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sf||e===ff||e===uf||e===lf||e===pf||e===dN||typeof e=="object"&&e!==null&&(e.$$typeof===vf||e.$$typeof===mf||e.$$typeof===cf||e.$$typeof===df||e.$$typeof===hf||e.$$typeof===hN||e.$$typeof===pN||e.$$typeof===mN||e.$$typeof===fN)};Ue.typeOf=Gr;Ck.exports=Ue;var vN=Ck.exports,kk=vN,gN={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yN={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pk={};Pk[kk.ForwardRef]=gN;Pk[kk.Memo]=yN;var Tk={exports:{}},He={};/** + * @license React + * 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 qg=Symbol.for("react.element"),Vg=Symbol.for("react.portal"),gf=Symbol.for("react.fragment"),yf=Symbol.for("react.strict_mode"),Sf=Symbol.for("react.profiler"),bf=Symbol.for("react.provider"),wf=Symbol.for("react.context"),SN=Symbol.for("react.server_context"),_f=Symbol.for("react.forward_ref"),xf=Symbol.for("react.suspense"),Cf=Symbol.for("react.suspense_list"),Rf=Symbol.for("react.memo"),kf=Symbol.for("react.lazy"),bN=Symbol.for("react.offscreen"),Ek;Ek=Symbol.for("react.module.reference");function dn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qg:switch(e=e.type,e){case gf:case Sf:case yf:case xf:case Cf:return e;default:switch(e=e&&e.$$typeof,e){case SN:case wf:case _f:case kf:case Rf:case bf:return e;default:return t}}case Vg:return t}}}He.ContextConsumer=wf;He.ContextProvider=bf;He.Element=qg;He.ForwardRef=_f;He.Fragment=gf;He.Lazy=kf;He.Memo=Rf;He.Portal=Vg;He.Profiler=Sf;He.StrictMode=yf;He.Suspense=xf;He.SuspenseList=Cf;He.isAsyncMode=function(){return!1};He.isConcurrentMode=function(){return!1};He.isContextConsumer=function(e){return dn(e)===wf};He.isContextProvider=function(e){return dn(e)===bf};He.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qg};He.isForwardRef=function(e){return dn(e)===_f};He.isFragment=function(e){return dn(e)===gf};He.isLazy=function(e){return dn(e)===kf};He.isMemo=function(e){return dn(e)===Rf};He.isPortal=function(e){return dn(e)===Vg};He.isProfiler=function(e){return dn(e)===Sf};He.isStrictMode=function(e){return dn(e)===yf};He.isSuspense=function(e){return dn(e)===xf};He.isSuspenseList=function(e){return dn(e)===Cf};He.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gf||e===Sf||e===yf||e===xf||e===Cf||e===bN||typeof e=="object"&&e!==null&&(e.$$typeof===kf||e.$$typeof===Rf||e.$$typeof===bf||e.$$typeof===wf||e.$$typeof===_f||e.$$typeof===Ek||e.getModuleId!==void 0)};He.typeOf=dn;Tk.exports=He;var dw=Tk.exports;function wN(){const e=oN();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const fw={notify(){},get:()=>[]};function _N(e,t){let r,n=fw,o=0,i=!1;function a(y){d();const C=n.subscribe(y);let v=!1;return()=>{v||(v=!0,C(),f())}}function s(){n.notify()}function l(){S.onStateChange&&S.onStateChange()}function c(){return i}function d(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=wN())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=fw)}function p(){i||(i=!0,d())}function g(){i&&(i=!1,f())}const S={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>n};return S}const xN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",CN=xN?N.useLayoutEffect:N.useEffect;function RN({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=_N(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=N.useMemo(()=>e.getState(),[e]);CN(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||Xo;return N.createElement(l.Provider,{value:a},r)}function Ok(e=Xo){const t=e===Xo?_k:Bg(e);return function(){const{store:n}=t();return n}}const kN=Ok();function PN(e=Xo){const t=e===Xo?kN:Ok(e);return function(){return t().dispatch}}const Ql=PN();sN(tN.useSyncExternalStoreWithSelector);nN(Kl.unstable_batchedUpdates);function wn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:Gg(e)?2:Kg(e)?3:0}function Ia(e,t){return ls(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function TN(e,t){return ls(e)===2?e.get(t):e[t]}function Ik(e,t,r){var n=ls(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function jk(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Gg(e){return NN&&e instanceof Map}function Kg(e){return AN&&e instanceof Set}function mi(e){return e.o||e.t}function Yg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nk(e);delete t[rt];for(var r=ja(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=EN),Object.freeze(e),t&&Ni(e,function(r,n){return Qg(n,!0)},!0)),e}function EN(){wn(2)}function Xg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Wn(e){var t=yv[e];return t||wn(18,e),t}function ON(e,t){yv[e]||(yv[e]=t)}function mv(){return Ol}function pp(e,t){t&&(Wn("Patches"),e.u=[],e.s=[],e.v=t)}function cd(e){vv(e),e.p.forEach(IN),e.p=null}function vv(e){e===Ol&&(Ol=e.l)}function hw(e){return Ol={p:[],l:Ol,h:e,m:!0,_:0}}function IN(e){var t=e[rt];t.i===0||t.i===1?t.j():t.g=!0}function mp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Wn("ES5").S(t,e,n),n?(r[rt].P&&(cd(t),wn(4)),go(e)&&(e=dd(t,e),t.l||fd(t,e)),t.u&&Wn("Patches").M(r[rt].t,e,t.u,t.s)):e=dd(t,r,[]),cd(t),t.u&&t.v(t.u,t.s),e!==zk?e:void 0}function dd(e,t,r){if(Xg(t))return t;var n=t[rt];if(!n)return Ni(t,function(s,l){return pw(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return fd(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Yg(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),Ni(i,function(s,l){return pw(e,n,o,s,l,r,a)}),fd(e,o,!1),r&&e.u&&Wn("Patches").N(n,r,e.u,e.s)}return n.o}function pw(e,t,r,n,o,i,a){if(Jo(o)){var s=dd(e,o,i&&t&&t.i!==3&&!Ia(t.R,n)?i.concat(n):void 0);if(Ik(r,n,s),!Jo(s))return;e.m=!1}else a&&r.add(o);if(go(o)&&!Xg(o)){if(!e.h.D&&e._<1)return;dd(e,o),t&&t.A.l||fd(e,o)}}function fd(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Qg(t,r)}function vp(e,t){var r=e[rt];return(r?mi(r):e)[t]}function mw(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Io(e){e.P||(e.P=!0,e.l&&Io(e.l))}function gp(e){e.o||(e.o=Yg(e.t))}function gv(e,t,r){var n=Gg(t)?Wn("MapSet").F(t,r):Kg(t)?Wn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:mv(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,c=Il;a&&(l=[s],c=Us);var d=Proxy.revocable(l,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,r):Wn("ES5").J(t,r);return(r?r.A:mv()).p.push(n),n}function jN(e){return Jo(e)||wn(22,e),function t(r){if(!go(r))return r;var n,o=r[rt],i=ls(r);if(o){if(!o.P&&(o.i<4||!Wn("ES5").K(o)))return o.t;o.I=!0,n=vw(r,i),o.I=!1}else n=vw(r,i);return Ni(n,function(a,s){o&&TN(o.t,a)===s||Ik(n,a,t(s))}),i===3?new Set(n):n}(e)}function vw(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Yg(e)}function zN(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var l=this[rt];return Il.get(l,i)},set:function(l){var c=this[rt];Il.set(c,i,l)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][rt];if(!s.P)switch(s.i){case 5:n(s)&&Io(s);break;case 4:r(s)&&Io(s)}}}function r(i){for(var a=i.t,s=i.k,l=ja(s),c=l.length-1;c>=0;c--){var d=l[c];if(d!==rt){var f=a[d];if(f===void 0&&!Ia(a,d))return!0;var p=s[d],g=p&&p[rt];if(g?g.t!==f:!jk(p,f))return!0}}var S=!!a[rt];return l.length!==ja(a).length+(S?0:1)}function n(i){var a=i.k;if(a.length!==i.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?v-1:0),x=1;x1?d-1:0),p=1;p=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Wn("Patches").$;return Jo(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Hr=new LN,Ak=Hr.produce;Hr.produceWithPatches.bind(Hr);Hr.setAutoFreeze.bind(Hr);Hr.setUseProxies.bind(Hr);Hr.applyPatches.bind(Hr);Hr.createDraft.bind(Hr);Hr.finishDraft.bind(Hr);function qa(e){"@babel/helpers - typeof";return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(e)}function $N(e,t){if(qa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mk(e){var t=$N(e,"string");return qa(t)=="symbol"?t:t+""}function D(e,t,r){return t=Mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ww(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(rr(1));return r(Zg)(e,t)}if(typeof e!="function")throw new Error(rr(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(rr(3));return i}function f(y){if(typeof y!="function")throw new Error(rr(4));if(l)throw new Error(rr(5));var C=!0;return c(),s.push(y),function(){if(C){if(l)throw new Error(rr(6));C=!1,c();var b=s.indexOf(y);s.splice(b,1),a=null}}}function p(y){if(!DN(y))throw new Error(rr(7));if(typeof y.type>"u")throw new Error(rr(8));if(l)throw new Error(rr(9));try{l=!0,i=o(i,y)}finally{l=!1}for(var C=a=s,v=0;v"u")throw new Error(rr(12));if(typeof r(void 0,{type:hd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rr(13))})}function Lk(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(rr(14));f[g]=C,d=d||C!==y}return d=d||i.length!==Object.keys(l).length,d?f:l}}function pd(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[l];return l>0&&(r.splice(l,1),r.unshift(c)),c.value}return md}function o(s,l){n(s)===md&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var HN=function(t,r){return t===r};function qN(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,i=0;i1?t-1:0),n=1;n0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]{let r=e.sessions.findIndex(n=>n.pin===t.payload.pin);r!==-1?e.sessions[r]=t.payload:e.sessions.push(t.payload),e.activeSessionPin=t.payload.pin},updateNodesInfoInCurrentSession:(e,t)=>{let r=e.sessions.findIndex(n=>n.pin===e.activeSessionPin);r!==-1&&(e.sessions[r].nodes=t.payload,t.payload.length>0&&(e.activeNodeId=t.payload[0].id))},setActiveSessionPin:(e,t)=>{e.activeSessionPin=t.payload,e.activeNodeId=""},setActiveNodeId:(e,t)=>{e.activeNodeId=t.payload},addOrUpdateNodeVersion:(e,t)=>{let r=e.nodeVersions.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeVersions[r]=t.payload:e.nodeVersions.push(t.payload)},addOrUpdateNodeFlags:(e,t)=>{let r=e.flags.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.flags[r]=t.payload:e.flags.push(t.payload)},addOrUpdateCmdLineArgs:(e,t)=>{let r=e.cmdLineArgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cmdLineArgs[r]=t.payload:e.cmdLineArgs.push(t.payload)},addOrUpdateNodeLogs:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);r!==-1?e.nodeLogs[r]=t.payload:e.nodeLogs.push(t.payload)},addOrUpdateSyncStages:(e,t)=>{let r=e.syncStages.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.syncStages[r]=t.payload:e.syncStages.push(t.payload)},setLogWithNameSelected:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);if(r!==-1){e.nodeLogs[r].logFiles.forEach(o=>{o.selected=!1});let n=e.nodeLogs[r].logFiles.findIndex(o=>o.name===t.payload);n!==-1&&(e.nodeLogs[r].logFiles[n].selected=!0)}},addOrUpdateDBs:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.dbs[r]=t.payload:e.dbs.push(t.payload)},addOrUpdateDBTable:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.dbs[r].dbs.findIndex(o=>o.path===t.payload.path);n!==-1?(e.dbs[r].dbs[n].tables=t.payload.tables,e.dbs[r].dbs[n].keysCount=t.payload.keysCount,e.dbs[r].dbs[n].size=t.payload.size):e.dbs[r].dbs.push({path:t.payload.path,tables:t.payload.tables,keysCount:t.payload.keysCount,size:t.payload.size})}},addOrUpdateReorg:(e,t)=>{let r=e.reorgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.reorgs[r]=t.payload:e.reorgs.push(t.payload)},resetAppStateToMockState:e=>{e.sessions=[],e.activeSession=null,e.activeSessionPin="",e.activeNodeId="",e.nodeVersions=[],e.flags=[],e.cmdLineArgs=[],e.nodeLogs=[],e.syncStages=[],e.dbs=[],e.reorgs=[]}}}),{addOrUpdateSession:Uk,updateNodesInfoInCurrentSession:Hk,setActiveSessionPin:wA,setActiveNodeId:_A,addOrUpdateNodeVersion:xA,addOrUpdateNodeFlags:CA,addOrUpdateCmdLineArgs:RA,addOrUpdateNodeLogs:kA,addOrUpdateSyncStages:PA,setLogWithNameSelected:TA,addOrUpdateDBs:EA,addOrUpdateDBTable:OA,addOrUpdateReorg:IA,resetAppStateToMockState:jA}=Wk.actions,qk=e=>e.app.sessions,ty=e=>e.app.activeSessionPin,ft=e=>e.app.activeNodeId,Vk=e=>e.app.nodeVersions,zA=e=>e.app.flags,NA=e=>e.app.cmdLineArgs,AA=e=>e.app.nodeLogs,MA=e=>e.app.syncStages,LA=e=>e.app.dbs,$A=e=>e.app.reorgs,ry=ze([qk,ty],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),ny=ze([ry],e=>{let t=[];return e!=null&&(t=e.nodes),t}),DA=ze([qk,ty],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),FA=ze([ny,ft],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),BA=ze([ny,ft,Vk],(e,t,r)=>{let n=null;return e.forEach(o=>{if(o.id===t){let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n={active:!0,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""}}}),n}),WA=ze([ny,ft,Vk],(e,t,r)=>{let n=[];return e.forEach(o=>{let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n.push({active:o.id===t,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""})}),n}),Gk=ze([zA,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),UA=ze([NA,ft],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),HA=ze([AA,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),qA=ze([MA,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),oy=ze([LA,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),VA=ze([$A,ft],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),GA=()=>ze([oy,(e,t)=>t],(e,t)=>{let r={path:t,tables:[],keysCount:0,size:0};return e.forEach(n=>{n.path===t&&(r=n)}),r}),KA=Wk.reducer,wp=({tab:e,selectedTab:t,testId:r,onButtonClicked:n})=>{const o=i=>{let a="px-4 py-2 text-sm font-medium border-blue-600 hover:bg-blue-700 hover:text-white";const s="bg-blue-600 text-white",l="bg-white text-blue-600 outline-top",c="border-l border-r border-t border-b rounded-tl-md rounded-bl-md",d="border-r border-t border-b rounded-tr-md rounded-br-md",f="border-r border-t border-b";return i===Ev.Command?a=a+" "+c:i===Ev.NodeInfo?a=a+" "+d:a=a+" "+f,i===t?a+" "+s:a+" "+l};return m.jsx("button",{className:o(e),onClick:()=>{n(e)},"data-testid":r,children:e})},YA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),QA=({flag:e})=>{function t(o){return o&&typeof o=="object"&&o.constructor===Array}const r=o=>t(o)?n(o):m.jsx("td",{className:"px-4 py-2",children:String(o)}),n=o=>{let i="";return o.forEach((a,s)=>{s{const i=o.target,a=e.usage;a&&i.setAttribute("title",a)},children:[m.jsx("td",{className:"px-4 py-2",children:e.flag}),r(e.value),m.jsx("td",{className:"px-4 py-2",children:String(e.default)})]},e.flag)};var iy={},Kk={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kk);var Pt=Kk.exports,_p={};function oo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Yk(e){if(!oo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Yk(e[r])}),t}function nn(e,t,r={clone:!0}){const n=r.clone?Z({},e):e;return oo(e)&&oo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(oo(t[o])&&o in e&&oo(e[o])?n[o]=nn(e[o],t[o],r):r.clone?n[o]=oo(t[o])?Yk(t[o]):t[o]:n[o]=t[o])}),n}const XA=Object.freeze(Object.defineProperty({__proto__:null,default:nn,isPlainObject:oo},Symbol.toStringTag,{value:"Module"}));var xp={exports:{}},Cp,Tw;function JA(){if(Tw)return Cp;Tw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cp=e,Cp}var Rp,Ew;function ZA(){if(Ew)return Rp;Ew=1;var e=JA();function t(){}function r(){}return r.resetWarningCache=t,Rp=function(){function n(a,s,l,c,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Rp}var Ow;function Qk(){return Ow||(Ow=1,xp.exports=ZA()()),xp.exports}var Yr=Qk();function jl(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function aM(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function sM(e,t){return()=>null}function lM(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Zk(e){return e&&e.ownerDocument||document}function uM(e){return Zk(e).defaultView||window}function cM(e,t){return()=>null}function eP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const dM=typeof window<"u"?N.useLayoutEffect:N.useEffect,tP=dM;let jw=0;function fM(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(jw+=1,r(`mui-${jw}`))},[t]),n}const zw=Ma["useId".toString()];function hM(e){if(zw!==void 0){const t=zw();return e??t}return fM(e)}function pM(e,t,r,n,o){return null}function rP({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,a]=N.useState(t),s=o?e:i,l=N.useCallback(c=>{o||a(c)},[]);return[s,l]}function Hs(e){const t=N.useRef(e);return tP(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function vd(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{eP(r,t)})},e)}const Nw={};function mM(e,t){const r=N.useRef(Nw);return r.current===Nw&&(r.current=e(t)),r}const vM=[];function gM(e){N.useEffect(e,vM)}class Pf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Pf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function yM(){const e=mM(Pf.create).current;return gM(e.disposeEffect),e}let Tf=!0,bv=!1;const SM=new Pf,bM={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wM(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&bM[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _M(e){e.metaKey||e.altKey||e.ctrlKey||(Tf=!0)}function kp(){Tf=!1}function xM(){this.visibilityState==="hidden"&&bv&&(Tf=!0)}function CM(e){e.addEventListener("keydown",_M,!0),e.addEventListener("mousedown",kp,!0),e.addEventListener("pointerdown",kp,!0),e.addEventListener("touchstart",kp,!0),e.addEventListener("visibilitychange",xM,!0)}function RM(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Tf||wM(t)}function nP(){const e=N.useCallback(o=>{o!=null&&CM(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(bv=!0,SM.start(100,()=>{bv=!1}),t.current=!1,!0):!1}function n(o){return RM(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function oP(e,t){const r=Z({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=Z({},i),Object.keys(o).forEach(a=>{r[n][a]=oP(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Kn(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}const Aw=e=>e,kM=()=>{let e=Aw;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Aw}}},PM=kM(),iP=PM,TM={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 kn(e,t,r="Mui"){const n=TM[t];return n?`${r}-${n}`:`${iP.generate(e)}-${t}`}function Yn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=kn(e,o,r)}),n}function EM(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const OM=Object.freeze(Object.defineProperty({__proto__:null,default:EM},Symbol.toStringTag,{value:"Module"}));function aP(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>Z({},r,{[n.key]:n.val}),{})};function sP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ye(e,jM),i=zM(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,g){const S=a.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(S!==-1&&typeof t[a[S]]=="number"?t[a[S]]:g)-n/100}${r})`}function d(p){return a.indexOf(p)+1`@media (min-width:${ay[e]}px)`};function Rn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Mw;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||Mw;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||ay).indexOf(s)!==-1){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function lP(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function uP(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function MM(e,...t){const r=lP(e),n=[r,...t].reduce((o,i)=>nn(o,i),{});return uP(Object.keys(r),n)}function LM(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i{e[o]!=null&&(r[o]=!0)}),r}function Pp({values:e,breakpoints:t,base:r}){const n=r||LM(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Ef(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function gd(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ef(e,r)||n,t&&(o=t(o,n,e)),o}function gt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ef(l,n)||{};return Rn(a,s,f=>{let p=gd(c,o,f);return f===p&&typeof f=="string"&&(p=gd(c,o,`${t}${f==="default"?"":qe(f)}`,f)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function $M(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const DM={m:"margin",p:"padding"},FM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},BM=$M(e=>{if(e.length>2)if(Lw[e])e=Lw[e];else return[e];const[t,r]=e.split(""),n=DM[t],o=FM[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),sy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ly=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...sy,...ly];function Xl(e,t,r,n){var o;const i=(o=Ef(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function uy(e){return Xl(e,"spacing",8)}function Ai(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function WM(e,t){return r=>e.reduce((n,o)=>(n[o]=Ai(t,r),n),{})}function UM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=BM(r),i=WM(o,n),a=e[r];return Rn(e,a,i)}function cP(e,t){const r=uy(e.theme);return Object.keys(e).map(n=>UM(e,t,n,r)).reduce(al,{})}function lt(e){return cP(e,sy)}lt.propTypes={};lt.filterProps=sy;function ut(e){return cP(e,ly)}ut.propTypes={};ut.filterProps=ly;function HM(e=8){if(e.mui)return e;const t=uy({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Of(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?al(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function en(e){return typeof e!="number"?e:`${e}px solid`}function fn(e,t){return gt({prop:e,themeKey:"borders",transform:t})}const qM=fn("border",en),VM=fn("borderTop",en),GM=fn("borderRight",en),KM=fn("borderBottom",en),YM=fn("borderLeft",en),QM=fn("borderColor"),XM=fn("borderTopColor"),JM=fn("borderRightColor"),ZM=fn("borderBottomColor"),eL=fn("borderLeftColor"),tL=fn("outline",en),rL=fn("outlineColor"),If=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ai(t,n)});return Rn(e,e.borderRadius,r)}return null};If.propTypes={};If.filterProps=["borderRadius"];Of(qM,VM,GM,KM,YM,QM,XM,JM,ZM,eL,If,tL,rL);const jf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xl(e.theme,"spacing",8),r=n=>({gap:Ai(t,n)});return Rn(e,e.gap,r)}return null};jf.propTypes={};jf.filterProps=["gap"];const zf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xl(e.theme,"spacing",8),r=n=>({columnGap:Ai(t,n)});return Rn(e,e.columnGap,r)}return null};zf.propTypes={};zf.filterProps=["columnGap"];const Nf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xl(e.theme,"spacing",8),r=n=>({rowGap:Ai(t,n)});return Rn(e,e.rowGap,r)}return null};Nf.propTypes={};Nf.filterProps=["rowGap"];const nL=gt({prop:"gridColumn"}),oL=gt({prop:"gridRow"}),iL=gt({prop:"gridAutoFlow"}),aL=gt({prop:"gridAutoColumns"}),sL=gt({prop:"gridAutoRows"}),lL=gt({prop:"gridTemplateColumns"}),uL=gt({prop:"gridTemplateRows"}),cL=gt({prop:"gridTemplateAreas"}),dL=gt({prop:"gridArea"});Of(jf,zf,Nf,nL,oL,iL,aL,sL,lL,uL,cL,dL);function za(e,t){return t==="grey"?t:e}const fL=gt({prop:"color",themeKey:"palette",transform:za}),hL=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:za}),pL=gt({prop:"backgroundColor",themeKey:"palette",transform:za});Of(fL,hL,pL);function $r(e){return e<=1&&e!==0?`${e*100}%`:e}const mL=gt({prop:"width",transform:$r}),cy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ay[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:$r(r)}};return Rn(e,e.maxWidth,t)}return null};cy.filterProps=["maxWidth"];const vL=gt({prop:"minWidth",transform:$r}),gL=gt({prop:"height",transform:$r}),yL=gt({prop:"maxHeight",transform:$r}),SL=gt({prop:"minHeight",transform:$r});gt({prop:"size",cssProperty:"width",transform:$r});gt({prop:"size",cssProperty:"height",transform:$r});const bL=gt({prop:"boxSizing"});Of(mL,cy,vL,gL,yL,SL,bL);const wL={border:{themeKey:"borders",transform:en},borderTop:{themeKey:"borders",transform:en},borderRight:{themeKey:"borders",transform:en},borderBottom:{themeKey:"borders",transform:en},borderLeft:{themeKey:"borders",transform:en},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:en},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:If},color:{themeKey:"palette",transform:za},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:za},backgroundColor:{themeKey:"palette",transform:za},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:jf},rowGap:{style:Nf},columnGap:{style:zf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$r},maxWidth:{style:cy},minWidth:{transform:$r},height:{transform:$r},maxHeight:{transform:$r},minHeight:{transform:$r},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Jl=wL;function _L(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function xL(e,t){return typeof e=="function"?e(t):e}function dP(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=Ef(o,c)||{};return f?f(a):Rn(a,n,S=>{let y=gd(p,d,S);return S===y&&typeof S=="string"&&(y=gd(p,d,`${r}${S==="default"?"":qe(S)}`,S)),l===!1?y:{[l]:y}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:Jl;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const d=lP(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(g=>{const S=xL(c[g],i);if(S!=null)if(typeof S=="object")if(a[g])p=al(p,e(g,S,i,a));else{const y=Rn({theme:i},S,C=>({[g]:C}));_L(y,S)?p[g]=t({sx:S,theme:i}):p=al(p,y)}else p=al(p,e(g,S,i,a))}),uP(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const fP=dP();fP.filterProps=["sx"];const Af=fP;function hP(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const CL=["breakpoints","palette","spacing","shape"];function Zl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Ye(e,CL),s=sP(r),l=HM(o);let c=nn({breakpoints:s,direction:"ltr",components:{},palette:Z({mode:"light"},n),spacing:l,shape:Z({},AM,i)},a);return c.applyStyles=hP,c=t.reduce((d,f)=>nn(d,f),c),c.unstable_sxConfig=Z({},Jl,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Af({sx:f,theme:this})},c}const RL=Object.freeze(Object.defineProperty({__proto__:null,default:Zl,private_createBreakpoints:sP,unstable_applyStyles:hP},Symbol.toStringTag,{value:"Module"}));function pP(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var kL=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,PL=pP(function(e){return kL.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function TL(e){if(e.sheet)return e.sheet;for(var t=0;t0?Bt(us,--Er):0,Ga--,xt===10&&(Ga=1,Lf--),xt}function Br(){return xt=Er2||Nl(xt)>3?"":" "}function BL(e,t){for(;--t&&Br()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return eu(e,Sc()+(t<6&&Un()==32&&Br()==32))}function _v(e){for(;Br();)switch(xt){case e:return Er;case 34:case 39:e!==34&&e!==39&&_v(xt);break;case 40:e===41&&_v(e);break;case 92:Br();break}return Er}function WL(e,t){for(;Br()&&e+xt!==47+10;)if(e+xt===42+42&&Un()===47)break;return"/*"+eu(t,Er-1)+"*"+Mf(e===47?e:Br())}function UL(e){for(;!Nl(Un());)Br();return eu(e,Er)}function HL(e){return bP(wc("",null,null,null,[""],e=SP(e),0,[0],e))}function wc(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,f=a,p=0,g=0,S=0,y=1,C=1,v=1,b=0,x="",k=o,E=i,O=n,_=x;C;)switch(S=b,b=Br()){case 40:if(S!=108&&Bt(_,f-1)==58){wv(_+=Le(bc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=bc(b);break;case 9:case 10:case 13:case 32:_+=FL(S);break;case 92:_+=BL(Sc()-1,7);continue;case 47:switch(Un()){case 42:case 47:Hu(qL(WL(Br(),Sc()),t,r),l);break;default:_+="/"}break;case 123*y:s[c++]=An(_)*v;case 125*y:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:v==-1&&(_=Le(_,/\f/g,"")),g>0&&An(_)-f&&Hu(g>32?Dw(_+";",n,r,f-1):Dw(Le(_," ","")+";",n,r,f-2),l);break;case 59:_+=";";default:if(Hu(O=$w(_,t,r,c,d,o,s,x,k=[],E=[],f),i),b===123)if(d===0)wc(_,t,O,O,k,i,f,s,E);else switch(p===99&&Bt(_,3)===110?100:p){case 100:case 108:case 109:case 115:wc(e,O,O,n&&Hu($w(e,O,O,0,0,o,s,x,o,k=[],f),E),o,E,f,s,n?k:E);break;default:wc(_,O,O,O,[""],E,0,s,E)}}c=d=g=0,y=v=1,x=_="",f=a;break;case 58:f=1+An(_),g=S;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&DL()==125)continue}switch(_+=Mf(b),b*y){case 38:v=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(An(_)-1)*v,v=1;break;case 64:Un()===45&&(_+=bc(Br())),p=Un(),d=f=An(x=_+=UL(Sc())),b++;break;case 45:S===45&&An(_)==2&&(y=0)}}return i}function $w(e,t,r,n,o,i,a,s,l,c,d){for(var f=o-1,p=o===0?i:[""],g=hy(p),S=0,y=0,C=0;S0?p[v]+" "+b:Le(b,/&\f/g,p[v])))&&(l[C++]=x);return $f(e,t,r,o===0?dy:s,l,c,d)}function qL(e,t,r){return $f(e,t,r,mP,Mf($L()),zl(e,2,-2),0)}function Dw(e,t,r,n){return $f(e,t,r,fy,zl(e,0,n),zl(e,n+1,-1),n)}function Na(e,t){for(var r="",n=hy(e),o=0;o6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+yd+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wv(e,"stretch")?wP(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,An(e)-3-(~wv(e,"!important")&&10))){case 107:return Le(e,":",":"+Ae)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+er+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ae+e+er+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+er+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+er+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+er+e+e}return e}var e$=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case fy:t.return=wP(t.value,t.length);break;case vP:return Na([Ns(t,{value:Le(t.value,"@","@"+Ae)})],o);case dy:if(t.length)return LL(t.props,function(i){switch(ML(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Na([Ns(t,{props:[Le(i,/:(read-\w+)/,":"+yd+"$1")]})],o);case"::placeholder":return Na([Ns(t,{props:[Le(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Ns(t,{props:[Le(i,/:(plac\w+)/,":"+yd+"$1")]}),Ns(t,{props:[Le(i,/:(plac\w+)/,er+"input-$1")]})],o)}return""})}},t$=[e$],_P=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||t$,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var i$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a$=/[A-Z]|^ms/g,s$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RP=function(t){return t.charCodeAt(1)===45},Bw=function(t){return t!=null&&typeof t!="boolean"},Tp=pP(function(e){return RP(e)?e:e.replace(a$,"-$&").toLowerCase()}),Ww=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(s$,function(n,o,i){return Mn={name:o,styles:i,next:Mn},o})}return i$[t]!==1&&!RP(t)&&typeof r=="number"&&r!==0?r+"px":r};function Al(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Mn={name:r.name,styles:r.styles,next:Mn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Mn={name:n.name,styles:n.styles,next:Mn},n=n.next;var o=r.styles+";";return o}return l$(e,t,r)}case"function":{if(e!==void 0){var i=Mn,a=r(e);return Mn=i,Al(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function l$(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?h$:p$},Vw=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},m$=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return xP(r,n,o),c$(function(){return CP(r,n,o)}),null},v$=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=Vw(t,r,n),l=s||qw(o),c=!l("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;gt(S$(o)?r:o):t;return m.jsx(f$,{styles:n})}/** + * @mui/styled-engine v5.15.14 + * + * @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 OP(e,t){return xv(e,t)}const IP=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},w$=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:b$,StyledEngineProvider:y$,ThemeContext:Df,css:EP,default:OP,internal_processStyles:IP,keyframes:Ff},Symbol.toStringTag,{value:"Module"}));function _$(e){return Object.keys(e).length===0}function x$(e=null){const t=N.useContext(Df);return!t||_$(t)?e:t}const C$=Zl();function R$(e=C$){return x$(e)}function jP({props:e,name:t,defaultTheme:r,themeId:n}){let o=R$(r);return n&&(o=o[n]||o),IM({theme:o,name:t,props:e})}const k$=["sx"],P$=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Jl;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function my(e){const{sx:t}=e,r=Ye(e,k$),{systemProps:n,otherProps:o}=P$(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return oo(s)?Z({},n,s):n}:i=Z({},n,t),Z({},o,{sx:i})}const T$=Object.freeze(Object.defineProperty({__proto__:null,default:Af,extendSxProp:my,unstable_createStyleFunctionSx:dP,unstable_defaultSxConfig:Jl},Symbol.toStringTag,{value:"Module"}));function E$(e,t){return Z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var yt={};const O$=mr(eM),I$=mr(OM);var zP=Pt;Object.defineProperty(yt,"__esModule",{value:!0});var Ka=yt.alpha=LP;yt.blend=W$;yt.colorChannel=void 0;var Sd=yt.darken=gy;yt.decomposeColor=ln;yt.emphasize=$P;var j$=yt.getContrastRatio=L$;yt.getLuminance=wd;yt.hexToRgb=NP;yt.hslToRgb=MP;var bd=yt.lighten=yy;yt.private_safeAlpha=$$;yt.private_safeColorChannel=void 0;yt.private_safeDarken=D$;yt.private_safeEmphasize=B$;yt.private_safeLighten=F$;yt.recomposeColor=cs;yt.rgbToHex=M$;var Gw=zP(O$),z$=zP(I$);function vy(e,t=0,r=1){return(0,z$.default)(e,t,r)}function NP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function N$(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ln(e){if(e.type)return e;if(e.charAt(0)==="#")return ln(NP(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,Gw.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Gw.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const AP=e=>{const t=ln(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};yt.colorChannel=AP;const A$=(e,t)=>{try{return AP(e)}catch{return e}};yt.private_safeColorChannel=A$;function cs(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function M$(e){if(e.indexOf("#")===0)return e;const{values:t}=ln(e);return`#${t.map((r,n)=>N$(n===3?Math.round(255*r):r)).join("")}`}function MP(e){e=ln(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,d=(c+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),cs({type:s,values:l})}function wd(e){e=ln(e);let t=e.type==="hsl"||e.type==="hsla"?ln(MP(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function L$(e,t){const r=wd(e),n=wd(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function LP(e,t){return e=ln(e),t=vy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,cs(e)}function $$(e,t,r){try{return LP(e,t)}catch{return e}}function gy(e,t){if(e=ln(e),t=vy(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return cs(e)}function D$(e,t,r){try{return gy(e,t)}catch{return e}}function yy(e,t){if(e=ln(e),t=vy(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return cs(e)}function F$(e,t,r){try{return yy(e,t)}catch{return e}}function $P(e,t=.15){return wd(e)>.5?gy(e,t):yy(e,t)}function B$(e,t,r){try{return $P(e,t)}catch{return e}}function W$(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=ln(e),a=ln(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return cs({type:"rgb",values:s})}const U$={black:"#000",white:"#fff"},Ml=U$,H$={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"},q$=H$,V$={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ra=V$,G$={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},na=G$,K$={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},As=K$,Y$={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},oa=Y$,Q$={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ia=Q$,X$={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},aa=X$,J$=["mode","contrastThreshold","tonalOffset"],Kw={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:Ml.white,default:Ml.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}},Ep={text:{primary:Ml.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:Ml.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}};function Yw(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=bd(e.main,o):t==="dark"&&(e.dark=Sd(e.main,i)))}function Z$(e="light"){return e==="dark"?{main:oa[200],light:oa[50],dark:oa[400]}:{main:oa[700],light:oa[400],dark:oa[800]}}function e4(e="light"){return e==="dark"?{main:ra[200],light:ra[50],dark:ra[400]}:{main:ra[500],light:ra[300],dark:ra[700]}}function t4(e="light"){return e==="dark"?{main:na[500],light:na[300],dark:na[700]}:{main:na[700],light:na[400],dark:na[800]}}function r4(e="light"){return e==="dark"?{main:ia[400],light:ia[300],dark:ia[700]}:{main:ia[700],light:ia[500],dark:ia[900]}}function n4(e="light"){return e==="dark"?{main:aa[400],light:aa[300],dark:aa[700]}:{main:aa[800],light:aa[500],dark:aa[900]}}function o4(e="light"){return e==="dark"?{main:As[400],light:As[300],dark:As[700]}:{main:"#ed6c02",light:As[500],dark:As[900]}}function i4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ye(e,J$),i=e.primary||Z$(t),a=e.secondary||e4(t),s=e.error||t4(t),l=e.info||r4(t),c=e.success||n4(t),d=e.warning||o4(t);function f(y){return j$(y,Ep.text.primary)>=r?Ep.text.primary:Kw.text.primary}const p=({color:y,name:C,mainShade:v=500,lightShade:b=300,darkShade:x=700})=>{if(y=Z({},y),!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(jl(11,C?` (${C})`:"",v));if(typeof y.main!="string")throw new Error(jl(12,C?` (${C})`:"",JSON.stringify(y.main)));return Yw(y,"light",b,n),Yw(y,"dark",x,n),y.contrastText||(y.contrastText=f(y.main)),y},g={dark:Ep,light:Kw};return nn(Z({common:Z({},Ml),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:q$,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},g[t]),o)}const a4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function s4(e){return Math.round(e*1e5)/1e5}const Qw={textTransform:"uppercase"},Xw='"Roboto", "Helvetica", "Arial", sans-serif';function l4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Xw,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=Ye(r,a4),g=o/14,S=f||(v=>`${v/c*g}rem`),y=(v,b,x,k,E)=>Z({fontFamily:n,fontWeight:v,fontSize:S(b),lineHeight:x},n===Xw?{letterSpacing:`${s4(k/b)}em`}:{},E,d),C={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,Qw),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,Qw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(Z({htmlFontSize:c,pxToRem:S,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),p,{clone:!1})}const u4=.2,c4=.14,d4=.12;function tt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${u4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${c4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${d4})`].join(",")}const f4=["none",tt(0,2,1,-1,0,1,1,0,0,1,3,0),tt(0,3,1,-2,0,2,2,0,0,1,5,0),tt(0,3,3,-2,0,3,4,0,0,1,8,0),tt(0,2,4,-1,0,4,5,0,0,1,10,0),tt(0,3,5,-1,0,5,8,0,0,1,14,0),tt(0,3,5,-1,0,6,10,0,0,1,18,0),tt(0,4,5,-2,0,7,10,1,0,2,16,1),tt(0,5,5,-3,0,8,10,1,0,3,14,2),tt(0,5,6,-3,0,9,12,1,0,3,16,2),tt(0,6,6,-3,0,10,14,1,0,4,18,3),tt(0,6,7,-4,0,11,15,1,0,4,20,3),tt(0,7,8,-4,0,12,17,2,0,5,22,4),tt(0,7,8,-4,0,13,19,2,0,5,24,4),tt(0,7,9,-4,0,14,21,2,0,5,26,4),tt(0,8,9,-5,0,15,22,2,0,6,28,5),tt(0,8,10,-5,0,16,24,2,0,6,30,5),tt(0,8,11,-5,0,17,26,2,0,6,32,5),tt(0,9,11,-5,0,18,28,2,0,7,34,6),tt(0,9,12,-6,0,19,29,2,0,7,36,6),tt(0,10,13,-6,0,20,31,3,0,8,38,7),tt(0,10,13,-6,0,21,33,3,0,8,40,7),tt(0,10,14,-6,0,22,35,3,0,8,42,7),tt(0,11,14,-7,0,23,36,3,0,9,44,8),tt(0,11,15,-7,0,24,38,3,0,9,46,8)],h4=f4,p4=["duration","easing","delay"],m4={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)"},v4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jw(e){return`${Math.round(e)}ms`}function g4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function y4(e){const t=Z({},m4,e.easing),r=Z({},v4,e.duration);return Z({getAutoHeightDuration:g4,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=i;return Ye(i,p4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:Jw(a)} ${s} ${typeof l=="string"?l:Jw(l)}`).join(",")}},e,{easing:t,duration:r})}const S4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},b4=S4,w4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _4(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Ye(e,w4);if(e.vars)throw new Error(jl(18));const s=i4(n),l=Zl(e);let c=nn(l,{mixins:E$(l.breakpoints,r),palette:s,shadows:h4.slice(),typography:l4(s,i),transitions:y4(o),zIndex:Z({},b4)});return c=nn(c,a),c=t.reduce((d,f)=>nn(d,f),c),c.unstable_sxConfig=Z({},Jl,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Af({sx:f,theme:this})},c}const x4=_4(),DP=x4,FP="$$material";function bo({props:e,name:t}){return jP({props:e,name:t,defaultTheme:DP,themeId:FP})}var tu={};const C4=mr(cN);var Op={exports:{}},Zw;function R4(){return Zw||(Zw=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(n.indexOf(i)>=0)continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Op)),Op.exports}const k4=mr(w$),P4=mr(XA),T4=mr(oM),E4=mr(nM),O4=mr(RL),I4=mr(T$);var ds=Pt;Object.defineProperty(tu,"__esModule",{value:!0});var j4=tu.default=q4;tu.shouldForwardProp=_c;tu.systemDefaultTheme=void 0;var Qr=ds(C4),Rv=ds(R4()),e_=D4(k4),z4=P4;ds(T4);ds(E4);var N4=ds(O4),A4=ds(I4);const M4=["ownerState"],L4=["variants"],$4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(BP=function(n){return n?r:t})(e)}function D4(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=BP(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function F4(e){return Object.keys(e).length===0}function B4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const W4=tu.systemDefaultTheme=(0,N4.default)(),U4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qu({defaultTheme:e,theme:t,themeId:r}){return F4(t)?e:t[r]||t}function H4(e){return e?(t,r)=>r[e]:null}function xc(e,t){let{ownerState:r}=t,n=(0,Rv.default)(t,M4);const o=typeof e=="function"?e((0,Qr.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>xc(i,(0,Qr.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,Rv.default)(o,L4);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Qr.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Qr.default)({ownerState:r},n,r)):l.style))}),s}return o}function q4(e={}){const{themeId:t,defaultTheme:r=W4,rootShouldForwardProp:n=_c,slotShouldForwardProp:o=_c}=e,i=a=>(0,A4.default)((0,Qr.default)({},a,{theme:qu((0,Qr.default)({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,e_.internal_processStyles)(a,E=>E.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=H4(U4(c))}=s,g=(0,Rv.default)(s,$4),S=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,y=f||!1;let C,v=_c;c==="Root"||c==="root"?v=n:c?v=o:B4(a)&&(v=void 0);const b=(0,e_.default)(a,(0,Qr.default)({shouldForwardProp:v,label:C},g)),x=E=>typeof E=="function"&&E.__emotion_real!==E||(0,z4.isPlainObject)(E)?O=>xc(E,(0,Qr.default)({},O,{theme:qu({theme:O.theme,defaultTheme:r,themeId:t})})):E,k=(E,...O)=>{let _=x(E);const P=O?O.map(x):[];l&&p&&P.push(M=>{const $=qu((0,Qr.default)({},M,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[l]||!$.components[l].styleOverrides)return null;const B=$.components[l].styleOverrides,W={};return Object.entries(B).forEach(([se,oe])=>{W[se]=xc(oe,(0,Qr.default)({},M,{theme:$}))}),p(M,W)}),l&&!S&&P.push(M=>{var $;const B=qu((0,Qr.default)({},M,{defaultTheme:r,themeId:t})),W=B==null||($=B.components)==null||($=$[l])==null?void 0:$.variants;return xc({variants:W},(0,Qr.default)({},M,{theme:B}))}),y||P.push(i);const I=P.length-O.length;if(Array.isArray(E)&&I>0){const M=new Array(I).fill("");_=[...E,...M],_.raw=[...E.raw,...M]}const j=b(_,...P);return a.muiName&&(j.muiName=a.muiName),j};return b.withConfig&&(k.withConfig=b.withConfig),k}}function V4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const G4=e=>V4(e)&&e!=="classes",WP=G4,K4=j4({themeId:FP,defaultTheme:DP,rootShouldForwardProp:WP}),Tt=K4;function Y4(e){return kn("MuiSvgIcon",e)}Yn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Q4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X4=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${qe(t)}`,`fontSize${qe(r)}`]};return Kn(o,Y4,n)},J4=Tt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${qe(r.color)}`],t[`fontSize${qe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,d,f,p,g,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),UP=N.forwardRef(function(t,r){const n=bo({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,g=Ye(n,Q4),S=N.isValidElement(o)&&o.type==="svg",y=Z({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:S}),C={};d||(C.viewBox=p);const v=X4(y);return m.jsxs(J4,Z({as:s,className:dt(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},C,g,S&&o.props,{ownerState:y,children:[S?o.props.children:o,f?m.jsx("title",{children:f}):null]}))});UP.muiName="SvgIcon";const t_=UP;function Ui(e,t){function r(n,o){return m.jsx(t_,Z({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=t_.muiName,N.memo(N.forwardRef(r))}const Z4={configure:e=>{iP.configure(e)}},e3=Object.freeze(Object.defineProperty({__proto__:null,capitalize:qe,createChainedFunction:iM,createSvgIcon:Ui,debounce:aM,deprecatedPropType:sM,isMuiElement:lM,ownerDocument:Zk,ownerWindow:uM,requirePropFactory:cM,setRef:eP,unstable_ClassNameGenerator:Z4,unstable_useEnhancedEffect:tP,unstable_useId:hM,unsupportedProp:pM,useControlled:rP,useEventCallback:Hs,useForkRef:vd,useIsFocusVisible:nP},Symbol.toStringTag,{value:"Module"})),t3=mr(e3);var r_;function Lt(){return r_||(r_=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=t3}(_p)),_p}var r3=Pt;Object.defineProperty(iy,"__esModule",{value:!0});var ru=iy.default=void 0,n3=r3(Lt()),o3=m;ru=iy.default=(0,n3.default)((0,o3.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var Sy={},i3=Pt;Object.defineProperty(Sy,"__esModule",{value:!0});var nu=Sy.default=void 0,a3=i3(Lt()),s3=m;nu=Sy.default=(0,a3.default)((0,s3.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var by={},l3=Pt;Object.defineProperty(by,"__esModule",{value:!0});var ou=by.default=void 0,u3=l3(Lt()),c3=m;ou=by.default=(0,u3.default)((0,c3.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const d3=({flags:e})=>{const[t,r]=re.useState(!1),[n,o]=re.useState([]),[i,a]=re.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(g=>g.value!==void 0&&g.value!==""&&g.value!==null).sort((g,S)=>g.flag.localeCompare(g.flag)),l=(f,p)=>{if(p==="default"){let g=[];return i?g=f.sort((S,y)=>S.default>y.default?1:-1):g=f.sort((S,y)=>S.defaultg.flag.localeCompare(S.flag)):f},c=()=>{const f=l(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?m.jsx(ru,{}):m.jsx(nu,{}):m.jsx(ou,{className:"ml-2"});return m.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Flag"}),m.jsx("th",{className:"px-4 py-2",children:"Value"}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:c,children:m.jsxs("div",{className:"flex flex-row",children:["Default",d()]})})]})}),m.jsx("tbody",{children:n.map(f=>m.jsx(QA,{flag:f},f.flag))})]})},f3=({flags:e})=>{const[t,r]=N.useState([]);return N.useEffect(()=>{e!==void 0&&r(e)},[e]),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("input",{type:"text",className:"border-2 border-gray-300 rounded-lg p-2 mb-2",placeholder:"Search",onChange:n=>{const o=e==null?void 0:e.filter(a=>a.flag.toLowerCase().includes(n.target.value.toLowerCase())),i=e==null?void 0:e.filter(a=>a.usage.toLowerCase().includes(n.target.value.toLowerCase()));r([...o,...i])}}),m.jsx(d3,{flags:t})]})},h3=({nodeInfo:e,onRowClicked:t})=>{const n=(i,a)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",onClick:()=>{t(i,String(a))},children:[m.jsxs("td",{className:"px-4 py-2 font-bold",children:[i,":"]}),m.jsx("td",{className:"px-4 py-2",children:String(a).length>50?`${String(a).substring(0,50)}...`:a})]}),o=(i,a)=>{if(!i)return n(a,"null");let s=Object.keys(i);return m.jsxs("tr",{className:"border-b border-gray-200",children:[a.length>0?m.jsx("td",{className:"px-4 py-2 font-bold",children:a+":"}):null,s.map(l=>typeof i[l]=="object"?o(i[l],l):n(l,i[l]))]})};return m.jsx("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:m.jsx("tbody",{children:o(e,"")})})},p3=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(h3,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),m3=({syncStages:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:m.jsx("tbody",{children:e.map(t=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:[m.jsx("td",{className:"px-4 py-2",children:t.key}),m.jsx("td",{className:"px-4 py-2",children:t.value})]},t.key))})})}),v3=({reorg:e})=>e===void 0?null:m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"font-bold",children:"Blocks scanned:"}),m.jsx("span",{children:e.totalBlocks}),m.jsx("span",{className:"font-bold",children:"Time took:"}),m.jsx("span",{children:e.timeTook}),m.jsx("span",{className:"font-bold",children:"Wrong blocks:"}),e.wrongBlocks.length===0?m.jsx("span",{children:"None"}):m.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:m.jsx("tbody",{children:e.wrongBlocks.map(t=>m.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:m.jsx("td",{className:"px-4 py-2",children:t})},t))})})]}),fs="#1ea7fd",iu="red";const Vn=({primary:e=!1,size:t="medium",backgroundColor:r,disabled:n=!1,label:o,...i})=>{const a=e?"storybook-button--primary":"storybook-button--secondary",s=n?"gray":r;return m.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,a].join(" "),style:{backgroundColor:s},disabled:n,...i,children:o})};var Go=(e=>(e.Unknown="Unknown",e.Local="Local",e.Remote="Remote",e))(Go||{});const n_={isConnectedToInternet:!0,isConnectedToNode:!0,nodeConnectionType:"Unknown",backendAddress:window.location.origin},HP=Wi({name:"app",initialState:n_,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},setNodeConnectionType:(e,t)=>{e.nodeConnectionType=t.payload},setBackendAddress:(e,t)=>{console.log("Setting backend address to: ",t.payload),e.backendAddress=t.payload},resetConectionState:()=>n_}}),{setIsConnectedToInternet:JV,setIsConnectedToNode:o_,setNodeConnectionType:Ip,setBackendAddress:g3,resetConectionState:y3}=HP.actions,qP=e=>e.connection.nodeConnectionType,S3=HP.reducer,ca={second:1e3,minute:6e4,hour:36e5},i_={peers:[],bootnodes:[]},VP=Wi({name:"network",initialState:i_,reducers:{updatePeersState:(e,t)=>{const r=e.peers.findIndex(n=>n.nodeId===t.payload.activeNodeId);r!==-1&&e.peers[r].peers.forEach(n=>{if(n.lastUpdateTime0&&(a=o/t.payload.countInterval);let s=0;i>0&&(s=i/t.payload.countInterval);let l=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=l,n.network.sCountedBytesOut=c}})},addOrUpdatePeer:(e,t)=>{const r=t.payload.nodeId;let n=t.payload.peer;n.lastUpdateTime=Date.now();let o=e.peers.findIndex(i=>i.nodeId===r);if(o!==-1){let i=e.peers[o].peers.findIndex(a=>a.id===n.id);i!==-1?(n.network.inRate=e.peers[o].peers[i].network.inRate,n.network.outRate=e.peers[o].peers[i].network.outRate,n.network.sCountedBytesIn=e.peers[o].peers[i].network.sCountedBytesIn,n.network.sCountedBytesOut=e.peers[o].peers[i].network.sCountedBytesOut,n.network.bytesIn+=e.peers[o].peers[i].network.bytesIn,n.network.bytesOut+=e.peers[o].peers[i].network.bytesOut,Vu(e.peers[o].peers[i].network,n.network,"capBytesIn"),Vu(e.peers[o].peers[i].network,n.network,"capBytesOut"),Vu(e.peers[o].peers[i].network,n.network,"typeBytesIn"),Vu(e.peers[o].peers[i].network,n.network,"typeBytesOut"),e.peers[o].peers[i]=n):e.peers[o].peers.push(n)}else e.peers.push({nodeId:r,peers:[n]})},addOrUpdateBootnodes:(e,t)=>{let r=e.bootnodes.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.bootnodes[r]=t.payload:e.bootnodes.push(t.payload)},resetNetworkStateToMockState:()=>i_}}),Vu=(e,t,r)=>{let n=e[r],o=Object.keys(n);o.length>0&&o.forEach(i=>{let a=0;if(typeof n[i]=="number"){let s=e[r][i]||0;a=t[r][i]||0,t[r][i]=a+s}})},{resetNetworkStateToMockState:b3,addOrUpdatePeer:w3,addOrUpdateBootnodes:_3,updatePeersState:x3}=VP.actions,C3=e=>e.network.peers,wy=ze([C3,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),R3=()=>ze([wy,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),Bf=ze([wy,ft],(e,t)=>GP(t,"Sentry",e)),Wf=ze([wy,ft],(e,t)=>GP(t,"Sentinel",e)),GP=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type.toLowerCase()===t.toLowerCase()&&n.push(o)}),n},k3=ze([Bf],e=>KP(e)),P3=ze([Wf],e=>KP(e)),KP=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},T3=ze([Bf],e=>YP(e)),E3=ze([Wf],e=>YP(e)),YP=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},O3=ze([Bf],e=>QP(e)),I3=ze([Wf],e=>QP(e)),QP=e=>{let t={activePeers:0,totalPeers:e.length,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0,totalInRate:0,totalOutRate:0};return e.forEach(r=>{t.totalInBytes+=r.network.bytesIn,t.totalOutBytes+=r.network.bytesOut,t.totalInRate+=r.network.inRate,t.totalOutRate+=r.network.outRate,r.active&&t.activePeers++,r.network.static&&t.staticPeers++}),t},j3=VP.reducer;var Cc=(e=>(e[e.Queued=0]="Queued",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e))(Cc||{});const a_={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},XP=Wi({name:"syncStages",initialState:a_,reducers:{setSnapshotFilesList:(e,t)=>{let r=e.snapshotFilesList.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.snapshotFilesList[r].files=t.payload.files:e.snapshotFilesList.push(t.payload)},setSnapshotDownloadStatus:(e,t)=>{let r=e.snapshotDownloadStatus.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.snapshotDownloadStatus[r].downloadStatus=t.payload.downloadStatus:e.snapshotDownloadStatus.push(t.payload)},setSnapshotIndexStatus:(e,t)=>{let r=e.snapshotIndexStatus.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.snapshotIndexStatus[r].indexStatus=t.payload.indexStatus:e.snapshotIndexStatus.push(t.payload)},setNodeSyncStages:(e,t)=>{let r=e.syncStages.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.syncStages[r]=t.payload:e.syncStages.push(t.payload)},setTestSnpSyncMsgIdx:(e,t)=>{e.testSnpSyncMsgIdx=t.payload},resetSyncStagesState:()=>a_}}),{setSnapshotFilesList:z3,resetSyncStagesState:ZV,setSnapshotDownloadStatus:N3,setSnapshotIndexStatus:A3,setNodeSyncStages:M3,setTestSnpSyncMsgIdx:eG}=XP.actions,L3=e=>e.syncStages.snapshotDownloadStatus,JP=ze([L3,ft],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),$3=e=>e.syncStages.snapshotIndexStatus;ze([$3,ft],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r});const D3=e=>e.syncStages.syncStages,F3=ze([D3,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),B3=e=>e.syncStages.snapshotFilesList,W3=ze([B3,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r}),U3=ze([W3],e=>(e==null?void 0:e.length)===0),H3=XP.reducer,s_={issues:[]},q3=Wi({name:"issue",initialState:s_,reducers:{addOrUpdateIssue:(e,t)=>{let r=e.issues.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.issues[r].issues.findIndex(o=>o.id===t.payload.issue.id);n!==-1?e.issues[r].issues[n]=t.payload.issue:e.issues[r].issues.push(t.payload.issue)}else e.issues.push({nodeId:t.payload.nodeId,issues:[t.payload.issue]})},removeIssueWithId:(e,t)=>{let r=e.issues.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.issues[r].issues.findIndex(o=>o.id===t.payload.issueId);n!==-1&&e.issues[r].issues.splice(n,1)}},resetIssueState:()=>s_}}),V3=e=>e.issues.issues,_y=ze([V3,ft],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),G3=ze([_y],e=>e.length>10?"9+":e.length.toString()),K3=ze([_y],e=>{let t=[];return e.forEach(r=>{r.type==="NetworkSpeedIssue"&&t.push(r)}),t}),Y3=q3.reducer;var xy="persist:",Cy="persist/FLUSH",Uf="persist/REHYDRATE",Ry="persist/PAUSE",ky="persist/PERSIST",Py="persist/PURGE",Ty="persist/REGISTER",Q3=-1;function Rc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rc=function(r){return typeof r}:Rc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rc(e)}function l_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function X3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lD(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var uD=5e3;function cD(e,t){var r=e.version!==void 0?e.version:Q3;e.debug;var n=e.stateReconciler===void 0?Z3:e.stateReconciler,o=e.getStoredState||rD,i=e.timeout!==void 0?e.timeout:uD,a=null,s=!1,l=!0,c=function(f){return f._persist.rehydrated&&a&&!l&&a.update(f),f};return function(d,f){var p=d||{},g=p._persist,S=sD(p,["_persist"]),y=S;if(f.type===ky){var C=!1,v=function(P,I){C||(f.rehydrate(e.key,P,I),C=!0)};if(i&&setTimeout(function(){!C&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),l=!1,a||(a=eD(e)),g)return Zn({},t(y,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),o(e).then(function(_){var P=e.migrate||function(I,j){return Promise.resolve(I)};P(_,r).then(function(I){v(I)},function(I){v(void 0,I)})},function(_){v(void 0,_)}),Zn({},t(y,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===Py)return s=!0,f.result(oD(e)),Zn({},t(y,f),{_persist:g});if(f.type===Cy)return f.result(a&&a.flush()),Zn({},t(y,f),{_persist:g});if(f.type===Ry)l=!0;else if(f.type===Uf){if(s)return Zn({},y,{_persist:Zn({},g,{rehydrated:!0})});if(f.key===e.key){var b=t(y,f),x=f.payload,k=n!==!1&&x!==void 0?n(x,d,b,e):b,E=Zn({},k,{_persist:Zn({},g,{rehydrated:!0})});return c(E)}}}if(!g)return t(d,f);var O=t(y,f);return O===y?d:c(Zn({},O,{_persist:g}))}}function c_(e){return hD(e)||fD(e)||dD()}function dD(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function fD(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function hD(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:ZP,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Ty:return kv({},t,{registry:[].concat(c_(t.registry),[r.key])});case Uf:var n=t.registry.indexOf(r.key),o=c_(t.registry);return o.splice(n,1),kv({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function vD(e,t,r){var n=r||!1,o=Zg(mD,ZP,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:Ty,key:c})},a=function(c,d,f){var p={type:Uf,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=kv({},o,{purge:function(){var c=[];return e.dispatch({type:Py,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:Cy,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:Ry})},persist:function(){e.dispatch({type:ky,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var Ey={},Oy={};Oy.__esModule=!0;Oy.default=SD;function kc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kc=function(r){return typeof r}:kc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kc(e)}function jp(){}var gD={getItem:jp,setItem:jp,removeItem:jp};function yD(e){if((typeof self>"u"?"undefined":kc(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return!1}return!0}function SD(e){var t="".concat(e,"Storage");return yD(t)?self[t]:gD}Ey.__esModule=!0;Ey.default=_D;var bD=wD(Oy);function wD(e){return e&&e.__esModule?e:{default:e}}function _D(e){var t=(0,bD.default)(e);return{getItem:function(n){return new Promise(function(o,i){o(t.getItem(n))})},setItem:function(n,o){return new Promise(function(i,a){i(t.setItem(n,o))})},removeItem:function(n){return new Promise(function(o,i){o(t.removeItem(n))})}}}var eT=void 0,xD=CD(Ey);function CD(e){return e&&e.__esModule?e:{default:e}}var RD=(0,xD.default)("local");eT=RD;const f_={nodeHeaders:[]},tT=Wi({name:"headers",initialState:f_,reducers:{addOrUpdateHeaders:(e,t)=>{let r=e.nodeHeaders.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeHeaders[r].headers=t.payload.headers:e.nodeHeaders.push({nodeId:t.payload.nodeId,headers:t.payload.headers})},resetHeadersState:()=>f_}}),{addOrUpdateHeaders:kD,resetHeadersState:tG}=tT.actions,PD=e=>e.headers.nodeHeaders;ze([PD,ft],(e,t)=>e.find(r=>r.nodeId===t));const TD=tT.reducer,h_={networkSpeed:[]},ED=Wi({name:"systemInfo",initialState:h_,reducers:{addOrUpdateNetworkSpeed:(e,t)=>{let r=e.networkSpeed.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.networkSpeed[r].networkSpeed=t.payload.networkSpeed:e.networkSpeed.push({nodeId:t.payload.nodeId,networkSpeed:t.payload.networkSpeed})},resetSystemInfoState:()=>h_}}),OD=e=>e.sysInfo.networkSpeed;ze([OD,ft],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.networkSpeed)}),r});const ID=ED.reducer,jD={key:"root",blacklist:["connection"],storage:eT},zD=Lk({app:KA,network:j3,connection:S3,syncStages:H3,issues:Y3,headers:TD,sysInfo:ID}),ND=cD(jD,zD),Ee=cA({reducer:ND,middleware:e=>e({serializableCheck:{ignoredActions:[Cy,Uf,Ry,ky,Py,Ty]}})}),AD=vD(Ee),Pv=()=>Ee.getState().connection.nodeConnectionType===Go.Local,MD="sessions",LD="nodes",$D="version",DD="flags",FD="cmdline",BD="logs",WD="sync-stages",rT="dbs",UD="tables",HD="reorgs",qD="peers",VD="bootnodes",GD="snapshot-sync",KD="snapshot-files-list",YD="headers",QD="nodeinfo",XD=()=>Ee.getState().app.activeSessionPin,Iy=(e=!1)=>{const t=XD();let r=Ee.getState().connection.backendAddress;console.log("addr: ",r);let n=`${r}/api`;return e&&(n+="/v2"),`${n}/${MD}/${t}`},Ir=(e=!1)=>{if(Pv()){let t=Ee.getState().connection.backendAddress;return console.log("1addr: ",t),`${t}/debug/diag`}else{const t=Iy(e),r=Ee.getState().app.activeNodeId;return`${t}/${LD}/${r}`}},JD=()=>`${Ir(!0)}/${$D}`,nT=()=>`${Ir(!0)}/${DD}`,oT=()=>`${Ir(!0)}/${FD}`,iT=(e=!1)=>`${Ir(e)}/${BD}`,aT=()=>`${Ir()}/${WD}`,ZD=()=>`${Ir(!0)}/${rT}`,e5=e=>`${Ir()}/${rT}/${e}/${UD}`,sT=()=>`${Ir()}/${HD}`,t5=()=>`${Ir(!0)}/${qD}`,r5=()=>`${Ir(!0)}/${VD}`,n5=()=>`${Ir(!0)}/${GD}`,o5=()=>`${Ir(!0)}/${KD}`,i5=()=>`${Ir(!0)}/${YD}`,a5=()=>`${Ir(!0)}/${QD}`,s5=()=>`${window.location.origin}/diagaddr`,l5=()=>{{const e=ar(s5(),"GET");return ir(e)}},u5=()=>{{const e=ar(Iy(),"GET");return ir(e)}},c5=()=>{{const e=ar(a5(),"GET");return ir(e)}},d5=()=>{{const e=ar(JD(),"GET");return ir(e)}},f5=()=>{{const e=ar(nT(),"GET");return ir(e)}},h5=()=>{{const e=ar(oT(),"GET");return ir(e)}},p5=()=>{{const e=ar(iT(!0),"GET");return ir(e)}},m5=()=>{{const e=ar(aT(),"GET");return ir(e)}},v5=()=>{{const e=ar(ZD(),"GET");return ir(e)}},g5=e=>{{const t=ar(e5(e),"GET");return ir(t)}},y5=()=>{{const e=ar(sT(),"GET");return ir(e)}},S5=()=>{{const e=ar(t5(),"GET");return ir(e)}},b5=()=>{{const e=ar(r5(),"GET");return ir(e)}},w5=()=>{{const e=ar(n5(),"GET");return ir(e)}},_5=()=>{{const e=ar(o5(),"GET");return ir(e)}},x5=()=>{{const e=ar(i5(),"GET");return ir(e)}},ir=e=>fetch(e).then(t=>(Ee.dispatch(o_(!0)),t.json())).catch(t=>{throw Ee.dispatch(o_(!1)),t});function ar(e,t,r){return new Request(e,{method:t,headers:{"Content-Type":"application/json"}})}var jy={},C5=Pt;Object.defineProperty(jy,"__esModule",{value:!0});var _d=jy.default=void 0,R5=C5(Lt()),k5=m;_d=jy.default=(0,R5.default)((0,k5.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var zy={},P5=Pt;Object.defineProperty(zy,"__esModule",{value:!0});var Hf=zy.default=void 0,T5=P5(Lt()),E5=m;Hf=zy.default=(0,T5.default)((0,E5.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function lT(e){return bo}function O5(e){return typeof e=="string"}function I5(e,t,r){return e===void 0||O5(e)?t:Z({},t,{ownerState:Z({},t.ownerState,r)})}function j5(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function z5(e,t,r){return typeof e=="function"?e(t,r):e}function p_(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function N5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const g=dt(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),S=Z({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=Z({},r,o,n);return g.length>0&&(y.className=g),Object.keys(S).length>0&&(y.style=S),{props:y,internalRef:void 0}}const a=j5(Z({},o,n)),s=p_(n),l=p_(o),c=t(a),d=dt(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),f=Z({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=Z({},c,r,l,s);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const A5=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],M5=["component","slots","slotProps"],L5=["component"];function m_(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=Ye(t,A5),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=i,p=Ye(i,M5),g=d[e]||n,S=z5(f[e],o),y=N5(Z({className:r},l,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:S})),{props:{component:C},internalRef:v}=y,b=Ye(y.props,L5),x=vd(v,S==null?void 0:S.ref,t.ref),k=a?a(b):{},E=Z({},o,k),O=e==="root"?C||c:C,_=I5(g,Z({},e==="root"&&!c&&!d[e]&&s,e!=="root"&&!d[e]&&s,b,O&&{as:O},{ref:x}),E);return Object.keys(k).forEach(P=>{delete _[P]}),[g,_]}const $5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},v_=$5,D5=["ownerState"],F5=["variants"],B5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function W5(e){return Object.keys(e).length===0}function U5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const H5=Zl(),q5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gu({defaultTheme:e,theme:t,themeId:r}){return W5(t)?e:t[r]||t}function V5(e){return e?(t,r)=>r[e]:null}function Pc(e,t){let{ownerState:r}=t,n=Ye(t,D5);const o=typeof e=="function"?e(Z({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>Pc(i,Z({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=Ye(o,F5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(Z({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(Z({ownerState:r},n,r)):l.style))}),s}return o}function G5(e={}){const{themeId:t,defaultTheme:r=H5,rootShouldForwardProp:n=zp,slotShouldForwardProp:o=zp}=e,i=a=>Af(Z({},a,{theme:Gu(Z({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{IP(a,E=>E.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=V5(q5(c))}=s,g=Ye(s,B5),S=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,y=f||!1;let C,v=zp;c==="Root"||c==="root"?v=n:c?v=o:U5(a)&&(v=void 0);const b=OP(a,Z({shouldForwardProp:v,label:C},g)),x=E=>typeof E=="function"&&E.__emotion_real!==E||oo(E)?O=>Pc(E,Z({},O,{theme:Gu({theme:O.theme,defaultTheme:r,themeId:t})})):E,k=(E,...O)=>{let _=x(E);const P=O?O.map(x):[];l&&p&&P.push(M=>{const $=Gu(Z({},M,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[l]||!$.components[l].styleOverrides)return null;const B=$.components[l].styleOverrides,W={};return Object.entries(B).forEach(([se,oe])=>{W[se]=Pc(oe,Z({},M,{theme:$}))}),p(M,W)}),l&&!S&&P.push(M=>{var $;const B=Gu(Z({},M,{defaultTheme:r,themeId:t})),W=B==null||($=B.components)==null||($=$[l])==null?void 0:$.variants;return Pc({variants:W},Z({},M,{theme:B}))}),y||P.push(i);const I=P.length-O.length;if(Array.isArray(E)&&I>0){const M=new Array(I).fill("");_=[...E,...M],_.raw=[...E.raw,...M]}const j=b(_,...P);return a.muiName&&(j.muiName=a.muiName),j};return b.withConfig&&(k.withConfig=b.withConfig),k}}const K5=G5(),Y5=K5,Q5=["component","direction","spacing","divider","children","className","useFlexGap"],X5=Zl(),J5=Y5("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Z5(e){return jP({props:e,name:"MuiStack",defaultTheme:X5})}function eF(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],rF=({ownerState:e,theme:t})=>{let r=Z({display:"flex",flexDirection:"column"},Rn({theme:t},Pp({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=uy(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Pp({values:e.direction,base:o}),a=Pp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,d)=>{if(!i[l]){const p=c>0?i[d[c-1]]:"column";i[l]=p}}),r=nn(r,Rn({theme:t},a,(l,c)=>e.useFlexGap?{gap:Ai(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${tF(c?i[c]:e.direction)}`]:Ai(n,l)}}))}return r=MM(t.breakpoints,r),r};function nF(e={}){const{createStyledComponent:t=J5,useThemeProps:r=Z5,componentName:n="MuiStack"}=e,o=()=>Kn({root:["root"]},l=>kn(n,l),{}),i=t(rF);return N.forwardRef(function(l,c){const d=r(l),f=my(d),{component:p="div",direction:g="column",spacing:S=0,divider:y,children:C,className:v,useFlexGap:b=!1}=f,x=Ye(f,Q5),k={direction:g,spacing:S,useFlexGap:b},E=o();return m.jsx(i,Z({as:p,ownerState:k,ref:c,className:dt(E.root,v)},x,{children:y?eF(C,y):C}))})}function oF(e){return kn("MuiPaper",e)}Yn("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 iF=["className","component","elevation","square","variant"],aF=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Kn(i,oF,o)},sF=Tt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ka("#fff",v_(t.elevation))}, ${Ka("#fff",v_(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),lF=N.forwardRef(function(t,r){const n=bo({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,c=Ye(n,iF),d=Z({},n,{component:i,elevation:a,square:s,variant:l}),f=aF(d);return m.jsx(sF,Z({as:i,ownerState:d,className:dt(f.root,o),ref:r},c))}),uF=lF;function cF(e){return kn("MuiAlert",e)}const dF=Yn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),g_=dF;function xd(e,t){return xd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},xd(e,t)}function fF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xd(e,t)}const y_=re.createContext(null);function Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ny(e,t){var r=function(i){return t&&N.isValidElement(i)?t(i):i},n=Object.create(null);return e&&N.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function hF(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),m.jsx("span",{className:p,style:g,children:m.jsx("span",{className:S})})}const bF=Yn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xr=bF,wF=["center","classes","className"];let qf=e=>e,S_,b_,w_,__;const Tv=550,_F=80,xF=Ff(S_||(S_=qf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),CF=Ff(b_||(b_=qf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),RF=Ff(w_||(w_=qf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),kF=Tt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),PF=Tt(SF,{name:"MuiTouchRipple",slot:"Ripple"})(__||(__=qf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Xr.rippleVisible,xF,Tv,({theme:e})=>e.transitions.easing.easeInOut,Xr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xr.child,Xr.childLeaving,CF,Tv,({theme:e})=>e.transitions.easing.easeInOut,Xr.childPulsate,RF,({theme:e})=>e.transitions.easing.easeInOut),TF=N.forwardRef(function(t,r){const n=bo({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=Ye(n,wF),[l,c]=N.useState([]),d=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=N.useRef(!1),g=yM(),S=N.useRef(null),y=N.useRef(null),C=N.useCallback(k=>{const{pulsate:E,rippleX:O,rippleY:_,rippleSize:P,cb:I}=k;c(j=>[...j,m.jsx(PF,{classes:{ripple:dt(i.ripple,Xr.ripple),rippleVisible:dt(i.rippleVisible,Xr.rippleVisible),ripplePulsate:dt(i.ripplePulsate,Xr.ripplePulsate),child:dt(i.child,Xr.child),childLeaving:dt(i.childLeaving,Xr.childLeaving),childPulsate:dt(i.childPulsate,Xr.childPulsate)},timeout:Tv,pulsate:E,rippleX:O,rippleY:_,rippleSize:P},d.current)]),d.current+=1,f.current=I},[i]),v=N.useCallback((k={},E={},O=()=>{})=>{const{pulsate:_=!1,center:P=o||E.pulsate,fakeElement:I=!1}=E;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const j=I?null:y.current,M=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,B,W;if(P||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)$=Math.round(M.width/2),B=Math.round(M.height/2);else{const{clientX:se,clientY:oe}=k.touches&&k.touches.length>0?k.touches[0]:k;$=Math.round(se-M.left),B=Math.round(oe-M.top)}if(P)W=Math.sqrt((2*M.width**2+M.height**2)/3),W%2===0&&(W+=1);else{const se=Math.max(Math.abs((j?j.clientWidth:0)-$),$)*2+2,oe=Math.max(Math.abs((j?j.clientHeight:0)-B),B)*2+2;W=Math.sqrt(se**2+oe**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{C({pulsate:_,rippleX:$,rippleY:B,rippleSize:W,cb:O})},g.start(_F,()=>{S.current&&(S.current(),S.current=null)})):C({pulsate:_,rippleX:$,rippleY:B,rippleSize:W,cb:O})},[o,C,g]),b=N.useCallback(()=>{v({},{pulsate:!0})},[v]),x=N.useCallback((k,E)=>{if(g.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,g.start(0,()=>{x(k,E)});return}S.current=null,c(O=>O.length>0?O.slice(1):O),f.current=E},[g]);return N.useImperativeHandle(r,()=>({pulsate:b,start:v,stop:x}),[b,v,x]),m.jsx(kF,Z({className:dt(Xr.root,i.root,a),ref:y},s,{children:m.jsx(yF,{component:null,exit:!0,children:l})}))}),EF=TF;function OF(e){return kn("MuiButtonBase",e)}const IF=Yn("MuiButtonBase",["root","disabled","focusVisible"]),jF=IF,zF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],NF=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Kn({root:["root",t&&"disabled",r&&"focusVisible"]},OF,o);return r&&n&&(a.root+=` ${n}`),a},AF=Tt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${jF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),MF=N.forwardRef(function(t,r){const n=bo({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:S,onClick:y,onContextMenu:C,onDragLeave:v,onFocus:b,onFocusVisible:x,onKeyDown:k,onKeyUp:E,onMouseDown:O,onMouseLeave:_,onMouseUp:P,onTouchEnd:I,onTouchMove:j,onTouchStart:M,tabIndex:$=0,TouchRippleProps:B,touchRippleRef:W,type:se}=n,oe=Ye(n,zF),pe=N.useRef(null),J=N.useRef(null),ae=vd(J,W),{isFocusVisibleRef:ce,onFocus:we,onBlur:Pe,ref:bt}=nP(),[De,Se]=N.useState(!1);c&&De&&Se(!1),N.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),pe.current.focus()}}),[]);const[V,G]=N.useState(!1);N.useEffect(()=>{G(!0)},[]);const q=V&&!d&&!c;N.useEffect(()=>{De&&p&&!d&&V&&J.current.pulsate()},[d,p,De,V]);function X(_e,si,li=f){return Hs(Xn=>(si&&si(Xn),!li&&J.current&&J.current[_e](Xn),!0))}const U=X("start",O),he=X("stop",C),ue=X("stop",v),ie=X("stop",P),le=X("stop",_e=>{De&&_e.preventDefault(),_&&_(_e)}),K=X("start",M),ee=X("stop",I),ne=X("stop",j),fe=X("stop",_e=>{Pe(_e),ce.current===!1&&Se(!1),S&&S(_e)},!1),ge=Hs(_e=>{pe.current||(pe.current=_e.currentTarget),we(_e),ce.current===!0&&(Se(!0),x&&x(_e)),b&&b(_e)}),ye=()=>{const _e=pe.current;return l&&l!=="button"&&!(_e.tagName==="A"&&_e.href)},be=N.useRef(!1),Re=Hs(_e=>{p&&!be.current&&De&&J.current&&_e.key===" "&&(be.current=!0,J.current.stop(_e,()=>{J.current.start(_e)})),_e.target===_e.currentTarget&&ye()&&_e.key===" "&&_e.preventDefault(),k&&k(_e),_e.target===_e.currentTarget&&ye()&&_e.key==="Enter"&&!c&&(_e.preventDefault(),y&&y(_e))}),Ne=Hs(_e=>{p&&_e.key===" "&&J.current&&De&&!_e.defaultPrevented&&(be.current=!1,J.current.stop(_e,()=>{J.current.pulsate(_e)})),E&&E(_e),y&&_e.target===_e.currentTarget&&ye()&&_e.key===" "&&!_e.defaultPrevented&&y(_e)});let Fe=l;Fe==="button"&&(oe.href||oe.to)&&(Fe=g);const Et={};Fe==="button"?(Et.type=se===void 0?"button":se,Et.disabled=c):(!oe.href&&!oe.to&&(Et.role="button"),c&&(Et["aria-disabled"]=c));const br=vd(r,bt,pe),lr=Z({},n,{centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:De}),Kt=NF(lr);return m.jsxs(AF,Z({as:Fe,className:dt(Kt.root,s),ownerState:lr,onBlur:fe,onClick:y,onContextMenu:he,onFocus:ge,onKeyDown:Re,onKeyUp:Ne,onMouseDown:U,onMouseLeave:le,onMouseUp:ie,onDragLeave:ue,onTouchEnd:ee,onTouchMove:ne,onTouchStart:K,ref:br,tabIndex:c?-1:$,type:se},Et,oe,{children:[a,q?m.jsx(EF,Z({ref:ae,center:i},B)):null]}))}),uT=MF;function LF(e){return kn("MuiIconButton",e)}const $F=Yn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),DF=$F,FF=["edge","children","className","color","disabled","disableFocusRipple","size"],BF=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${qe(n)}`,o&&`edge${qe(o)}`,`size${qe(i)}`]};return Kn(a,LF,t)},WF=Tt(uT,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${qe(r.color)}`],r.edge&&t[`edge${qe(r.edge)}`],t[`size${qe(r.size)}`]]}})(({theme:e,ownerState:t})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ka(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return Z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Z({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":Z({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ka(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${DF.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),UF=N.forwardRef(function(t,r){const n=bo({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=Ye(n,FF),p=Z({},n,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:d}),g=BF(p);return m.jsx(WF,Z({className:dt(g.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:r},f,{ownerState:p,children:i}))}),HF=UF,qF=Ui(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),VF=Ui(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),GF=Ui(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),KF=Ui(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),YF=Ui(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),QF=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],XF=lT(),JF=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`color${qe(r||n)}`,`${t}${qe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Kn(i,cF,o)},ZF=Tt(uF,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${qe(r.color||r.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Sd:bd,r=e.palette.mode==="light"?bd:Sd;return Z({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,n])=>n.main&&n.light).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${g_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,n])=>n.main&&n.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${g_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,n])=>n.main&&n.dark).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:Z({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)})}))]})}),eB=Tt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tB=Tt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),x_=Tt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),C_={success:m.jsx(qF,{fontSize:"inherit"}),warning:m.jsx(VF,{fontSize:"inherit"}),error:m.jsx(GF,{fontSize:"inherit"}),info:m.jsx(KF,{fontSize:"inherit"})},rB=N.forwardRef(function(t,r){const n=XF({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:d={},icon:f,iconMapping:p=C_,onClose:g,role:S="alert",severity:y="success",slotProps:C={},slots:v={},variant:b="standard"}=n,x=Ye(n,QF),k=Z({},n,{color:l,severity:y,variant:b,colorSeverity:l||y}),E=JF(k),O={slots:Z({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:Z({},d,C)},[_,P]=m_("closeButton",{elementType:HF,externalForwardedProps:O,ownerState:k}),[I,j]=m_("closeIcon",{elementType:YF,externalForwardedProps:O,ownerState:k});return m.jsxs(ZF,Z({role:S,elevation:0,ownerState:k,className:dt(E.root,a),ref:r},x,{children:[f!==!1?m.jsx(eB,{ownerState:k,className:E.icon,children:f||p[y]||C_[y]}):null,m.jsx(tB,{ownerState:k,className:E.message,children:i}),o!=null?m.jsx(x_,{ownerState:k,className:E.action,children:o}):null,o==null&&g?m.jsx(x_,{ownerState:k,className:E.action,children:m.jsx(_,Z({size:"small","aria-label":s,title:s,color:"inherit",onClick:g},P,{children:m.jsx(I,Z({fontSize:"small"},j))}))}):null]}))}),cT=rB,dT=()=>m.jsx("div",{className:"justify-center items-center flex top-[80vh] bottom-0 left-0 right-0 z-50 absolute",children:m.jsx("div",{className:"absolute bottom-[50px] flex items-center w-fit h-fit",role:"alert",children:m.jsx(cT,{severity:"success",children:"Copied!"})})}),nB=({value:e,onClose:t})=>{const[r,n]=re.useState(!1),o=()=>{n(!0),setTimeout(()=>{n(!1)},1500),navigator.clipboard.writeText(e.value)};return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:[m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center p-4 min-w-[20vw]",children:[m.jsxs("div",{className:"flex flex-row w-full",children:[m.jsx("div",{className:"flex-[1]"}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:e.key})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(Hf,{onClick:()=>t(),className:"cursor-pointer"})})]}),m.jsx("div",{className:"inline-block relative p-6 flex-auto justify-center items-center w-full break-all max-h-[80vh] overflow-scroll",children:m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:e.value})}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(_d,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(dT,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var Ev=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(Ev||{});const oB=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=N.useState("Command"),[s,l]=N.useState(!1),[c,d]=N.useState(null),f=N.useRef(null);async function p(v){return"clipboard"in navigator?await navigator.clipboard.writeText(v):document.execCommand("copy",!0,v)}const g=()=>{let v="";switch(i){case"Command":v=oT();break;case"Flags":v=nT();break;case"Node Info":v=Iy();break;case"Stages":v=aT();break;case"Reorgs":v=sT();break}return v},S=()=>{const v=g();p(v).then(()=>{l(!0),setTimeout(()=>{l(!1)},1500)}).catch(b=>{console.log(b)})},y=v=>{a(v),C()},C=()=>{f.current&&f.current.scroll({top:0,behavior:"smooth"})};return m.jsxs("div",{className:"flex flex-row",children:[m.jsxs("div",{className:"flex flex-col max-h-[90vh] items-center justify-center w-full",children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx(wp,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{y(v)}}),m.jsx(wp,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{y(v)}}),m.jsx(wp,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{y(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(Vn,{backgroundColor:fs,label:s?"Copied":"Copy curl",onClick:()=>S(),primary:!0})]}),m.jsx("div",{className:"h-10"}),m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-w-[1400px] min-w-[30vw] overflow-auto","data-testid":"test_details_section_content",ref:f,children:[i==="Command"&&m.jsx(YA,{cmdLine:e}),i==="Flags"&&m.jsx(f3,{flags:t}),i==="Node Info"&&m.jsx(p3,{nodeDetails:r,onShowNodeValueDetails:(v,b)=>{d({key:v,value:b})}}),i==="Stages"&&m.jsx(m3,{syncStages:n}),i==="Reorgs"&&m.jsx(v3,{reorg:o})]})]}),c&&m.jsx(nB,{value:c,onClose:()=>d(null)})]})},iB=()=>{const e=Oe(ft),t=Oe(Gk),r=Oe(UA),n=Oe(FA),o=Oe(qA),i=Oe(VA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(oB,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},aB=e=>{let t={eth:{network:0,difficulty:0,genesis:"",config:{}}};if(e.protocols){const n=atob(e.protocols);t=JSON.parse(n)}let r=[];return r.push({enode:e.enode||"",enr:e.enr||"",ports:{discovery:e.ports.discovery||0,listener:e.ports.listener||0},listener_addr:e.listener_addr||""}),{id:e.id,name:e.name,protocols:fT(t),enodes:hT(r)}},sB=e=>({id:e.id,name:e.name,protocols:fT(e.protocols),enodes:hT(e.enodes)}),fT=e=>({eth:lB(e.eth)}),lB=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),hT=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},uB=["boolean","string","number"],cB=e=>{let t=[];for(let r in e)t.push(dB(r,e[r]));return t},dB=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:fB(t.value)}),fB=e=>{let t=typeof e;return uB.includes(t)||hB(e)||pB(e)?e:""};function hB(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function pB(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const mB=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),vB=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},gB=(e,t)=>({enr:(e==null?void 0:e.enr)||"",enode:(e==null?void 0:e.enode)||"",id:e.id,name:e.name,caps:e.caps,network:yB(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),yB=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:SB(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Ku(e.network.capBytesIn),capBytesOut:Ku(e.network.capBytesOut),typeBytesIn:Ku(e.network.typeBytesIn),typeBytesOut:Ku(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),SB=(e,t)=>t.includes(e),Ku=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},bB=(e,t,r)=>{let n=[];for(let d in e.segmentsDownloading){let f=wB(d,r);d.includes("beaconblocks")&&(f=100),n.push(_B(e.segmentsDownloading[d],f,d))}let o=(t==null?void 0:t.downloadFinished)||!1;if(!o){let d=!1;for(let f of n)if(f.downloadedBytesl?s.push(l):s.length>0?s[s.length-1]=l:s.push(l),{downloaded:e.downloaded,total:e.total,totalTime:s,downloadRate:e.downloadRate,uploadRate:e.uploadRate,peers:e.peers,files:e.files,connections:e.connections,alloc:e.alloc,sys:e.sys,downloadFinished:o,segments:n,indexingFinished:i,indexed:a,torrentMetadataReady:e.torrentMetadataReady}},wB=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},_B=(e,t,r)=>({name:r,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseeds:R_(e.webseeds),peers:R_(e.peers),indexed:t,downloadedStats:xB(e==null?void 0:e.downloadedStats)}),xB=e=>e?{timeTook:e==null?void 0:e.timeTook,averageRate:e==null?void 0:e.averageRate}:null,R_=e=>{if(e){let t=[];return e.forEach(r=>{t.push({url:r.url,downloadRate:r.downloadRate})}),t}else return[]},CB=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let l=RB(e.segments[s]);r.push(l),n+=l.progress}r.length>0&&(n=n/t);let o=[0],i=e.timeElapsed;return(o[o.length-1]||0)>i?o.push(i):o.length>0?o[o.length-1]=i:o.push(i),{totalTime:o,progress:n,segments:r,alloc:0,sys:0}},RB=e=>({name:e.segmentName,progress:e.percent}),kB=e=>{var t,r,n,o,i,a,s,l,c,d,f,p,g,S;return{canonicalMarker:{ancestorHash:((t=e==null?void 0:e.canonicalMarker)==null?void 0:t.ancestorHash)||"",ancestorHeight:((r=e==null?void 0:e.canonicalMarker)==null?void 0:r.ancestorHeight)||0},waitingForHeaders:(e==null?void 0:e.waitingForHeaders)||0,processed:{age:((n=e==null?void 0:e.processed)==null?void 0:n.age)||0,blkPerSec:((o=e==null?void 0:e.processed)==null?void 0:o.blkPerSec)||0,headers:((i=e==null?void 0:e.processed)==null?void 0:i.headers)||0,highest:((a=e==null?void 0:e.processed)==null?void 0:a.highest)||0,in:((s=e==null?void 0:e.processed)==null?void 0:s.in)||0},write:{alloc:((l=e==null?void 0:e.writeHeaders)==null?void 0:l.alloc)||0,blockNumber:((c=e==null?void 0:e.writeHeaders)==null?void 0:c.blockNumber)||0,invalidHeaders:((d=e==null?void 0:e.writeHeaders)==null?void 0:d.invalidHeaders)||0,previousBlockNumber:((f=e==null?void 0:e.writeHeaders)==null?void 0:f.previousBlockNumber)||0,rejectedBadHeaders:((p=e==null?void 0:e.writeHeaders)==null?void 0:p.rejectedBadHeaders)||0,speed:((g=e==null?void 0:e.writeHeaders)==null?void 0:g.speed)||0,sys:((S=e==null?void 0:e.writeHeaders)==null?void 0:S.sys)||0}}},Ht=()=>Ee.getState().app.activeNodeId,PB=()=>{l5().then(e=>{e.address!=null?(Ee.dispatch(Ip(Go.Local)),Ee.dispatch(g3(e.address))):Ee.dispatch(Ip(Go.Unknown))}).catch(e=>{Ee.dispatch(Ip(Go.Remote))})},TB=()=>{let e=Ht();for(let t of Ee.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},EB=()=>{u5().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(sB(r))}),Ee.dispatch(Hk(t))}).catch(e=>{console.log("Error fetching session: ",e)})},OB=()=>{c5().then(e=>{let t=[];e!==null&&e.nodes_info.length>0&&t.push(aB(e.nodes_info[0])),Ee.dispatch(Hk(t))}).catch(e=>{console.log("Error fetching node info: ",e)})},IB=()=>{d5().then(e=>{let t=mB(e);Ee.dispatch(xA({nodeId:Ht(),version:t}))}).catch(e=>{console.log("Error fetching version: ",e)})},jB=()=>{f5().then(e=>{let t=cB(e);Ee.dispatch(CA({nodeId:Ht(),flags:t}))}).catch(e=>{console.log("Error fetching flags: ",e)})},zB=()=>{h5().then(e=>{Ee.dispatch(RA({nodeId:Ht(),args:e}))}).catch(e=>{console.log("Error fetching cmd line args: ",e)})},NB=()=>{m5().then(e=>{Ee.dispatch(PA({nodeId:Ht(),syncStages:vB(e)}))}).catch(e=>{console.log("Error fetching sync stages: ",e)})},pT=()=>{p5().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${iT()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),Ee.dispatch(kA({nodeId:Ht(),logFiles:t}))}).catch(e=>{console.log("Error fetching logs: ",e)})},AB=()=>{v5().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[],keysCount:0,size:0})}),Ee.dispatch(EA({nodeId:Ht(),dbs:t}))}).catch(e=>{console.log("Error fetching DBs: ",e)})},MB=e=>{g5(e).then(t=>{let r=0,n=0,o=[];t.forEach(i=>{r+=i.count,n+=i.size,o.push({name:i.name,count:i.count,size:i.size})}),Ee.dispatch(OA({nodeId:Ht(),path:e,tables:o,keysCount:r,size:n}))}).catch(t=>{console.log("Error fetching DB: ",t)})},LB=()=>{y5().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:Ht(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};Ee.dispatch(IA(r))}).catch(e=>{console.log("Error fetching reorgs: ",e)})},k_=()=>{const e=Ht(),t=Ee.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=Ee.getState().network.bootnodes[t].bootnodes),S5().then(n=>{n.forEach(o=>{let i=gB(o,r);Ee.dispatch(w3({peer:i,nodeId:Ht()}))})}).catch(n=>{console.log("Error fetching peers: ",n)})},$B=()=>{b5().then(e=>{Ee.dispatch(_3({nodeId:Ht(),bootnodes:e}))}).catch(e=>{console.log("Error fetching bootnodes: ",e)})},P_=()=>{w5().then(e=>{if(e){let t=TB(),r=0;t&&t.segments.forEach(i=>{i.name.includes("beaconblocks")||r++});let n=CB(e.snapshotIndexing,r),o=bB(e.snapshotDownload,t,n);e.syncStages!=null&&e.syncStages.length!=0&&Ee.dispatch(M3({nodeId:Ht(),stages:e.syncStages})),Ee.dispatch(A3({nodeId:Ht(),indexStatus:n})),Ee.dispatch(N3({nodeId:Ht(),downloadStatus:o}))}}).catch(e=>{console.log("Error fetching snapshot download status: ",e)})},DB=()=>{_5().then(e=>{Ee.dispatch(z3({nodeId:Ht(),files:e.files}))}).catch(e=>{console.log("Error fetching snapshot files list: ",e)})},FB=()=>{x5().then(e=>{const t=kB(e);Ee.dispatch(kD({nodeId:Ht(),headers:t}))}).catch(e=>{console.log("Error fetching headers: ",e)})};var mT={exports:{}},Np={exports:{}},T_;function BB(){return T_||(T_=1,function(e,t){(function(r,n){e.exports=n()})(gi,function(){var r=Array.prototype.slice;function n(u,h){h&&(u.prototype=Object.create(h.prototype)),u.prototype.constructor=u}function o(u){return l(u)?u:ie(u)}n(i,o);function i(u){return c(u)?u:le(u)}n(a,o);function a(u){return d(u)?u:K(u)}n(s,o);function s(u){return l(u)&&!f(u)?u:ee(u)}function l(u){return!!(u&&u[g])}function c(u){return!!(u&&u[S])}function d(u){return!!(u&&u[y])}function f(u){return c(u)||d(u)}function p(u){return!!(u&&u[C])}o.isIterable=l,o.isKeyed=c,o.isIndexed=d,o.isAssociative=f,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var g="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,x=1<>>0;if(""+w!==h||w===4294967295)return NaN;h=w}return h<0?$(u)+h:h}function W(){return!0}function se(u,h,w){return(u===0||w!==void 0&&u<=-w)&&(h===void 0||w!==void 0&&h>=w)}function oe(u,h){return J(u,h,0)}function pe(u,h){return J(u,h,h)}function J(u,h,w){return u===void 0?w:u<0?Math.max(0,h+u):h===void 0?u:Math.min(h,u)}var ae=0,ce=1,we=2,Pe=typeof Symbol=="function"&&Symbol.iterator,bt="@@iterator",De=Pe||bt;function Se(u){this.next=u}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=ae,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[De]=function(){return this};function V(u,h,w,R){var T=u===0?h:u===1?w:[h,w];return R?R.value=T:R={value:T,done:!1},R}function G(){return{value:void 0,done:!0}}function q(u){return!!he(u)}function X(u){return u&&typeof u.next=="function"}function U(u){var h=he(u);return h&&h.call(u)}function he(u){var h=u&&(Pe&&u[Pe]||u[bt]);if(typeof h=="function")return h}function ue(u){return u&&typeof u.length=="number"}n(ie,o);function ie(u){return u==null?Fe():l(u)?u.toSeq():lr(u)}ie.of=function(){return ie(arguments)},ie.prototype.toSeq=function(){return this},ie.prototype.toString=function(){return this.__toString("Seq {","}")},ie.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},ie.prototype.__iterate=function(u,h){return _e(this,u,h,!0)},ie.prototype.__iterator=function(u,h){return si(this,u,h,!0)},n(le,ie);function le(u){return u==null?Fe().toKeyedSeq():l(u)?c(u)?u.toSeq():u.fromEntrySeq():Et(u)}le.prototype.toKeyedSeq=function(){return this},n(K,ie);function K(u){return u==null?Fe():l(u)?c(u)?u.entrySeq():u.toIndexedSeq():br(u)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(u,h){return _e(this,u,h,!1)},K.prototype.__iterator=function(u,h){return si(this,u,h,!1)},n(ee,ie);function ee(u){return(u==null?Fe():l(u)?c(u)?u.entrySeq():u:br(u)).toSetSeq()}ee.of=function(){return ee(arguments)},ee.prototype.toSetSeq=function(){return this},ie.isSeq=Re,ie.Keyed=le,ie.Set=ee,ie.Indexed=K;var ne="@@__IMMUTABLE_SEQ__@@";ie.prototype[ne]=!0,n(fe,K);function fe(u){this._array=u,this.size=u.length}fe.prototype.get=function(u,h){return this.has(u)?this._array[B(this,u)]:h},fe.prototype.__iterate=function(u,h){for(var w=this._array,R=w.length-1,T=0;T<=R;T++)if(u(w[h?R-T:T],T,this)===!1)return T+1;return T},fe.prototype.__iterator=function(u,h){var w=this._array,R=w.length-1,T=0;return new Se(function(){return T>R?G():V(u,T,w[h?R-T++:T++])})},n(ge,le);function ge(u){var h=Object.keys(u);this._object=u,this._keys=h,this.size=h.length}ge.prototype.get=function(u,h){return h!==void 0&&!this.has(u)?h:this._object[u]},ge.prototype.has=function(u){return this._object.hasOwnProperty(u)},ge.prototype.__iterate=function(u,h){for(var w=this._object,R=this._keys,T=R.length-1,z=0;z<=T;z++){var A=R[h?T-z:z];if(u(w[A],A,this)===!1)return z+1}return z},ge.prototype.__iterator=function(u,h){var w=this._object,R=this._keys,T=R.length-1,z=0;return new Se(function(){var A=R[h?T-z:z];return z++>T?G():V(u,A,w[A])})},ge.prototype[C]=!0,n(ye,K);function ye(u){this._iterable=u,this.size=u.length||u.size}ye.prototype.__iterateUncached=function(u,h){if(h)return this.cacheResult().__iterate(u,h);var w=this._iterable,R=U(w),T=0;if(X(R))for(var z;!(z=R.next()).done&&u(z.value,T++,this)!==!1;);return T},ye.prototype.__iteratorUncached=function(u,h){if(h)return this.cacheResult().__iterator(u,h);var w=this._iterable,R=U(w);if(!X(R))return new Se(G);var T=0;return new Se(function(){var z=R.next();return z.done?z:V(u,T++,z.value)})},n(be,K);function be(u){this._iterator=u,this._iteratorCache=[]}be.prototype.__iterateUncached=function(u,h){if(h)return this.cacheResult().__iterate(u,h);for(var w=this._iterator,R=this._iteratorCache,T=0;T=R.length){var z=w.next();if(z.done)return z;R[T]=z.value}return V(u,T,R[T++])})};function Re(u){return!!(u&&u[ne])}var Ne;function Fe(){return Ne||(Ne=new fe([]))}function Et(u){var h=Array.isArray(u)?new fe(u).fromEntrySeq():X(u)?new be(u).fromEntrySeq():q(u)?new ye(u).fromEntrySeq():typeof u=="object"?new ge(u):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+u);return h}function br(u){var h=Kt(u);if(!h)throw new TypeError("Expected Array or iterable object of values: "+u);return h}function lr(u){var h=Kt(u)||typeof u=="object"&&new ge(u);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+u);return h}function Kt(u){return ue(u)?new fe(u):X(u)?new be(u):q(u)?new ye(u):void 0}function _e(u,h,w,R){var T=u._cache;if(T){for(var z=T.length-1,A=0;A<=z;A++){var L=T[w?z-A:A];if(h(L[1],R?L[0]:A,u)===!1)return A+1}return A}return u.__iterateUncached(h,w)}function si(u,h,w,R){var T=u._cache;if(T){var z=T.length-1,A=0;return new Se(function(){var L=T[w?z-A:A];return A++>z?G():V(h,R?L[0]:A-1,L[1])})}return u.__iteratorUncached(h,w)}function li(u,h){return h?Xn(h,u,"",{"":u}):mu(u)}function Xn(u,h,w,R){return Array.isArray(h)?u.call(R,w,K(h).map(function(T,z){return Xn(u,T,z,h)})):Z0(h)?u.call(R,w,le(h).map(function(T,z){return Xn(u,T,z,h)})):h}function mu(u){return Array.isArray(u)?K(u).map(mu).toList():Z0(u)?le(u).map(mu).toMap():u}function Z0(u){return u&&(u.constructor===Object||u.constructor===void 0)}function wt(u,h){if(u===h||u!==u&&h!==h)return!0;if(!u||!h)return!1;if(typeof u.valueOf=="function"&&typeof h.valueOf=="function"){if(u=u.valueOf(),h=h.valueOf(),u===h||u!==u&&h!==h)return!0;if(!u||!h)return!1}return!!(typeof u.equals=="function"&&typeof h.equals=="function"&&u.equals(h))}function fh(u,h){if(u===h)return!0;if(!l(h)||u.size!==void 0&&h.size!==void 0&&u.size!==h.size||u.__hash!==void 0&&h.__hash!==void 0&&u.__hash!==h.__hash||c(u)!==c(h)||d(u)!==d(h)||p(u)!==p(h))return!1;if(u.size===0&&h.size===0)return!0;var w=!f(u);if(p(u)){var R=u.entries();return h.every(function(F,H){var Q=R.next().value;return Q&&wt(Q[1],F)&&(w||wt(Q[0],H))})&&R.next().done}var T=!1;if(u.size===void 0)if(h.size===void 0)typeof u.cacheResult=="function"&&u.cacheResult();else{T=!0;var z=u;u=h,h=z}var A=!0,L=h.__iterate(function(F,H){if(w?!u.has(F):T?!wt(F,u.get(H,E)):!wt(u.get(H,E),F))return A=!1,!1});return A&&u.size===L}n(Yt,K);function Yt(u,h){if(!(this instanceof Yt))return new Yt(u,h);if(this._value=u,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(hh)return hh;hh=this}}Yt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Yt.prototype.get=function(u,h){return this.has(u)?this._value:h},Yt.prototype.includes=function(u){return wt(this._value,u)},Yt.prototype.slice=function(u,h){var w=this.size;return se(u,h,w)?this:new Yt(this._value,pe(h,w)-oe(u,w))},Yt.prototype.reverse=function(){return this},Yt.prototype.indexOf=function(u){return wt(this._value,u)?0:-1},Yt.prototype.lastIndexOf=function(u){return wt(this._value,u)?this.size:-1},Yt.prototype.__iterate=function(u,h){for(var w=0;w=0&&h=0&&ww?G():V(u,z++,A)})},$t.prototype.equals=function(u){return u instanceof $t?this._start===u._start&&this._end===u._end&&this._step===u._step:fh(this,u)};var ph;n(wo,o);function wo(){throw TypeError("Abstract")}n(gs,wo);function gs(){}n(Vi,wo);function Vi(){}n(gu,wo);function gu(){}wo.Keyed=gs,wo.Indexed=Vi,wo.Set=gu;var ys=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(h,w){h=h|0,w=w|0;var R=h&65535,T=w&65535;return R*T+((h>>>16)*T+R*(w>>>16)<<16>>>0)|0};function mh(u){return u>>>1&1073741824|u&3221225471}function jr(u){if(u===!1||u===null||u===void 0||typeof u.valueOf=="function"&&(u=u.valueOf(),u===!1||u===null||u===void 0))return 0;if(u===!0)return 1;var h=typeof u;if(h==="number"){if(u!==u||u===1/0)return 0;var w=u|0;for(w!==u&&(w^=u*4294967295);u>4294967295;)u/=4294967295,w^=u;return mh(w)}if(h==="string")return u.length>AO?jO(u):vh(u);if(typeof u.hashCode=="function")return u.hashCode();if(h==="object")return zO(u);if(typeof u.toString=="function")return vh(u.toString());throw new Error("Value type "+h+" cannot be hashed.")}function jO(u){var h=wh[u];return h===void 0&&(h=vh(u),bh===MO&&(bh=0,wh={}),bh++,wh[u]=h),h}function vh(u){for(var h=0,w=0;w0)switch(u.nodeType){case 1:return u.uniqueID;case 9:return u.documentElement&&u.documentElement.uniqueID}}var gh=typeof WeakMap=="function",yh;gh&&(yh=new WeakMap);var Sh=0,ui="__immutablehash__";typeof Symbol=="function"&&(ui=Symbol(ui));var AO=16,MO=255,bh=0,wh={};function zr(u){vu(u!==1/0,"Cannot perform this action with an infinite size.")}n(Ie,gs);function Ie(u){return u==null?pn():_h(u)&&!p(u)?u:pn().withMutations(function(h){var w=i(u);zr(w.size),w.forEach(function(R,T){return h.set(T,R)})})}Ie.of=function(){var u=r.call(arguments,0);return pn().withMutations(function(h){for(var w=0;w=u.length)throw new Error("Missing value for key: "+u[w]);h.set(u[w],u[w+1])}})},Ie.prototype.toString=function(){return this.__toString("Map {","}")},Ie.prototype.get=function(u,h){return this._root?this._root.get(0,void 0,u,h):h},Ie.prototype.set=function(u,h){return iS(this,u,h)},Ie.prototype.setIn=function(u,h){return this.updateIn(u,E,function(){return h})},Ie.prototype.remove=function(u){return iS(this,u,E)},Ie.prototype.deleteIn=function(u){return this.updateIn(u,function(){return E})},Ie.prototype.update=function(u,h,w){return arguments.length===1?u(this):this.updateIn([u],h,w)},Ie.prototype.updateIn=function(u,h,w){w||(w=h,h=void 0);var R=cS(this,IS(u),h,w);return R===E?void 0:R},Ie.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):pn()},Ie.prototype.merge=function(){return yu(this,void 0,arguments)},Ie.prototype.mergeWith=function(u){var h=r.call(arguments,1);return yu(this,u,h)},Ie.prototype.mergeIn=function(u){var h=r.call(arguments,1);return this.updateIn(u,pn(),function(w){return typeof w.merge=="function"?w.merge.apply(w,h):h[h.length-1]})},Ie.prototype.mergeDeep=function(){return yu(this,sS,arguments)},Ie.prototype.mergeDeepWith=function(u){var h=r.call(arguments,1);return yu(this,lS(u),h)},Ie.prototype.mergeDeepIn=function(u){var h=r.call(arguments,1);return this.updateIn(u,pn(),function(w){return typeof w.mergeDeep=="function"?w.mergeDeep.apply(w,h):h[h.length-1]})},Ie.prototype.sort=function(u){return pt(Zi(this,u))},Ie.prototype.sortBy=function(u,h){return pt(Zi(this,h,u))},Ie.prototype.withMutations=function(u){var h=this.asMutable();return u(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Ie.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Ie.prototype.asImmutable=function(){return this.__ensureOwner()},Ie.prototype.wasAltered=function(){return this.__altered},Ie.prototype.__iterator=function(u,h){return new xh(this,u,h)},Ie.prototype.__iterate=function(u,h){var w=this,R=0;return this._root&&this._root.iterate(function(T){return R++,u(T[1],T[0],w)},h),R},Ie.prototype.__ensureOwner=function(u){return u===this.__ownerID?this:u?Rh(this.size,this._root,u,this.__hash):(this.__ownerID=u,this.__altered=!1,this)};function _h(u){return!!(u&&u[rS])}Ie.isMap=_h;var rS="@@__IMMUTABLE_MAP__@@",Te=Ie.prototype;Te[rS]=!0,Te[v]=Te.remove,Te.removeIn=Te.deleteIn;function Ss(u,h){this.ownerID=u,this.entries=h}Ss.prototype.get=function(u,h,w,R){for(var T=this.entries,z=0,A=T.length;z=WO)return LO(u,F,R,T);var ve=u&&u===this.ownerID,xe=ve?F:M(F);return de?L?H===Q-1?xe.pop():xe[H]=xe.pop():xe[H]=[R,T]:xe.push([R,T]),ve?(this.entries=xe,this):new Ss(u,xe)}};function Gi(u,h,w){this.ownerID=u,this.bitmap=h,this.nodes=w}Gi.prototype.get=function(u,h,w,R){h===void 0&&(h=jr(w));var T=1<<((u===0?h:h>>>u)&k),z=this.bitmap;return z&T?this.nodes[dS(z&T-1)].get(u+b,h,w,R):R},Gi.prototype.update=function(u,h,w,R,T,z,A){w===void 0&&(w=jr(R));var L=(h===0?w:w>>>h)&k,F=1<=UO)return DO(u,ve,H,L,Ce);if(Q&&!Ce&&ve.length===2&&aS(ve[de^1]))return ve[de^1];if(Q&&Ce&&ve.length===1&&aS(Ce))return Ce;var et=u&&u===this.ownerID,mn=Q?Ce?H:H^F:H|F,In=Q?Ce?fS(ve,de,Ce,et):BO(ve,de,et):FO(ve,de,Ce,et);return et?(this.bitmap=mn,this.nodes=In,this):new Gi(u,mn,In)};function bs(u,h,w){this.ownerID=u,this.count=h,this.nodes=w}bs.prototype.get=function(u,h,w,R){h===void 0&&(h=jr(w));var T=(u===0?h:h>>>u)&k,z=this.nodes[T];return z?z.get(u+b,h,w,R):R},bs.prototype.update=function(u,h,w,R,T,z,A){w===void 0&&(w=jr(R));var L=(h===0?w:w>>>h)&k,F=T===E,H=this.nodes,Q=H[L];if(F&&!Q)return this;var de=kh(Q,u,h+b,w,R,T,z,A);if(de===Q)return this;var ve=this.count;if(!Q)ve++;else if(!de&&(ve--,ve>>w)&k,A=(w===0?R:R>>>w)&k,L,F=z===A?[Ph(u,h,w+b,R,T)]:(L=new Jn(h,R,T),z>>=1)A[L]=w&1?h[z++]:void 0;return A[R]=T,new bs(u,z+1,A)}function yu(u,h,w){for(var R=[],T=0;T>1&1431655765),u=(u&858993459)+(u>>2&858993459),u=u+(u>>4)&252645135,u=u+(u>>8),u=u+(u>>16),u&127}function fS(u,h,w,R){var T=R?u:M(u);return T[h]=w,T}function FO(u,h,w,R){var T=u.length+1;if(R&&h+1===T)return u[h]=w,u;for(var z=new Array(T),A=0,L=0;L0&&R=0&&u>>h&k;if(R>=this.array.length)return new _o([],u);var T=R===0,z;if(h>0){var A=this.array[R];if(z=A&&A.removeBefore(u,h-b,w),z===A&&T)return this}if(T&&!z)return this;var L=Yi(this,u);if(!T)for(var F=0;F>>h&k;if(R>=this.array.length)return this;var T;if(h>0){var z=this.array[R];if(T=z&&z.removeAfter(u,h-b,w),T===z&&R===this.array.length-1)return this}var A=Yi(this,u);return A.array.splice(R+1),T&&(A.array[R]=T),A};var ws={};function mS(u,h){var w=u._origin,R=u._capacity,T=xs(R),z=u._tail;return A(u._root,u._level,0);function A(H,Q,de){return Q===0?L(H,de):F(H,Q,de)}function L(H,Q){var de=Q===T?z&&z.array:H&&H.array,ve=Q>w?0:w-Q,xe=R-Q;return xe>x&&(xe=x),function(){if(ve===xe)return ws;var Ce=h?--xe:ve++;return de&&de[Ce]}}function F(H,Q,de){var ve,xe=H&&H.array,Ce=de>w?0:w-de>>Q,et=(R-de>>Q)+1;return et>x&&(et=x),function(){do{if(ve){var mn=ve();if(mn!==ws)return mn;ve=null}if(Ce===et)return ws;var In=h?--et:Ce++;ve=A(xe&&xe[In],Q-b,de+(In<=u.size||h<0)return u.withMutations(function(A){h<0?xo(A,h).set(0,w):xo(A,0,h+1).set(h,w)});h+=u._origin;var R=u._tail,T=u._root,z=P(_);return h>=xs(u._capacity)?R=Eh(R,u.__ownerID,0,h,w,z):T=Eh(T,u.__ownerID,u._level,h,w,z),z.value?u.__ownerID?(u._root=T,u._tail=R,u.__hash=void 0,u.__altered=!0,u):_s(u._origin,u._capacity,u._level,T,R):u}function Eh(u,h,w,R,T,z){var A=R>>>w&k,L=u&&A0){var H=u&&u.array[A],Q=Eh(H,h,w-b,R,T,z);return Q===H?u:(F=Yi(u,h),F.array[A]=Q,F)}return L&&u.array[A]===T?u:(I(z),F=Yi(u,h),T===void 0&&A===F.array.length-1?F.array.pop():F.array[A]=T,F)}function Yi(u,h){return h&&u&&h===u.ownerID?u:new _o(u?u.array.slice():[],h)}function gS(u,h){if(h>=xs(u._capacity))return u._tail;if(h<1<0;)w=w.array[h>>>R&k],R-=b;return w}}function xo(u,h,w){h!==void 0&&(h=h|0),w!==void 0&&(w=w|0);var R=u.__ownerID||new j,T=u._origin,z=u._capacity,A=T+h,L=w===void 0?z:w<0?z+w:T+w;if(A===T&&L===z)return u;if(A>=L)return u.clear();for(var F=u._level,H=u._root,Q=0;A+Q<0;)H=new _o(H&&H.array.length?[void 0,H]:[],R),F+=b,Q+=1<=1<de?new _o([],R):xe;if(xe&&ve>de&&Ab;mn-=b){var In=de>>>mn&k;et=et.array[In]=Yi(et.array[In],R)}et.array[de>>>b&k]=xe}if(L=ve)A-=ve,L-=ve,F=b,H=null,Ce=Ce&&Ce.removeBefore(R,0,A);else if(A>T||ve>>F&k;if(ku!==ve>>>F&k)break;ku&&(Q+=(1<T&&(H=H.removeBefore(R,F,A-Q)),H&&veT&&(T=L.size),l(A)||(L=L.map(function(F){return li(F)})),R.push(L)}return T>u.size&&(u=u.setSize(T)),uS(u,h,R)}function xs(u){return u>>b<=x&&T.size>=R.size*2?(F=T.filter(function(H,Q){return H!==void 0&&z!==Q}),L=F.toKeyedSeq().map(function(H){return H[0]}).flip().toMap(),u.__ownerID&&(L.__ownerID=F.__ownerID=u.__ownerID)):(L=R.remove(h),F=z===T.size-1?T.pop():T.set(z,void 0))}else if(A){if(w===T.get(z)[1])return u;L=R,F=T.set(z,[h,w])}else L=R.set(h,T.size),F=T.set(T.size,[h,w]);return u.__ownerID?(u.size=L.size,u._map=L,u._list=F,u.__hash=void 0,u):Oh(L,F)}n(Kr,le);function Kr(u,h){this._iter=u,this._useKeys=h,this.size=u.size}Kr.prototype.get=function(u,h){return this._iter.get(u,h)},Kr.prototype.has=function(u){return this._iter.has(u)},Kr.prototype.valueSeq=function(){return this._iter.valueSeq()},Kr.prototype.reverse=function(){var u=this,h=Ih(this,!0);return this._useKeys||(h.valueSeq=function(){return u._iter.toSeq().reverse()}),h},Kr.prototype.map=function(u,h){var w=this,R=_S(this,u,h);return this._useKeys||(R.valueSeq=function(){return w._iter.toSeq().map(u,h)}),R},Kr.prototype.__iterate=function(u,h){var w=this,R;return this._iter.__iterate(this._useKeys?function(T,z){return u(T,z,w)}:(R=h?TS(this):0,function(T){return u(T,h?--R:R++,w)}),h)},Kr.prototype.__iterator=function(u,h){if(this._useKeys)return this._iter.__iterator(u,h);var w=this._iter.__iterator(ce,h),R=h?TS(this):0;return new Se(function(){var T=w.next();return T.done?T:V(u,h?--R:R++,T.value,T)})},Kr.prototype[C]=!0,n(Qi,K);function Qi(u){this._iter=u,this.size=u.size}Qi.prototype.includes=function(u){return this._iter.includes(u)},Qi.prototype.__iterate=function(u,h){var w=this,R=0;return this._iter.__iterate(function(T){return u(T,R++,w)},h)},Qi.prototype.__iterator=function(u,h){var w=this._iter.__iterator(ce,h),R=0;return new Se(function(){var T=w.next();return T.done?T:V(u,R++,T.value,T)})},n(Xi,ee);function Xi(u){this._iter=u,this.size=u.size}Xi.prototype.has=function(u){return this._iter.includes(u)},Xi.prototype.__iterate=function(u,h){var w=this;return this._iter.__iterate(function(R){return u(R,R,w)},h)},Xi.prototype.__iterator=function(u,h){var w=this._iter.__iterator(ce,h);return new Se(function(){var R=w.next();return R.done?R:V(u,R.value,R.value,R)})},n(Ji,le);function Ji(u){this._iter=u,this.size=u.size}Ji.prototype.entrySeq=function(){return this._iter.toSeq()},Ji.prototype.__iterate=function(u,h){var w=this;return this._iter.__iterate(function(R){if(R){PS(R);var T=l(R);return u(T?R.get(1):R[1],T?R.get(0):R[0],w)}},h)},Ji.prototype.__iterator=function(u,h){var w=this._iter.__iterator(ce,h);return new Se(function(){for(;;){var R=w.next();if(R.done)return R;var T=R.value;if(T){PS(T);var z=l(T);return V(u,z?T.get(0):T[0],z?T.get(1):T[1],R)}}})},Qi.prototype.cacheResult=Kr.prototype.cacheResult=Xi.prototype.cacheResult=Ji.prototype.cacheResult=Nh;function wS(u){var h=Tn(u);return h._iter=u,h.size=u.size,h.flip=function(){return u},h.reverse=function(){var w=u.reverse.apply(this);return w.flip=function(){return u.reverse()},w},h.has=function(w){return u.includes(w)},h.includes=function(w){return u.has(w)},h.cacheResult=Nh,h.__iterateUncached=function(w,R){var T=this;return u.__iterate(function(z,A){return w(A,z,T)!==!1},R)},h.__iteratorUncached=function(w,R){if(w===we){var T=u.__iterator(w,R);return new Se(function(){var z=T.next();if(!z.done){var A=z.value[0];z.value[0]=z.value[1],z.value[1]=A}return z})}return u.__iterator(w===ce?ae:ce,R)},h}function _S(u,h,w){var R=Tn(u);return R.size=u.size,R.has=function(T){return u.has(T)},R.get=function(T,z){var A=u.get(T,E);return A===E?z:h.call(w,A,T,u)},R.__iterateUncached=function(T,z){var A=this;return u.__iterate(function(L,F,H){return T(h.call(w,L,F,H),F,A)!==!1},z)},R.__iteratorUncached=function(T,z){var A=u.__iterator(we,z);return new Se(function(){var L=A.next();if(L.done)return L;var F=L.value,H=F[0];return V(T,H,h.call(w,F[1],H,u),L)})},R}function Ih(u,h){var w=Tn(u);return w._iter=u,w.size=u.size,w.reverse=function(){return u},u.flip&&(w.flip=function(){var R=wS(u);return R.reverse=function(){return u.flip()},R}),w.get=function(R,T){return u.get(h?R:-1-R,T)},w.has=function(R){return u.has(h?R:-1-R)},w.includes=function(R){return u.includes(R)},w.cacheResult=Nh,w.__iterate=function(R,T){var z=this;return u.__iterate(function(A,L){return R(A,L,z)},!T)},w.__iterator=function(R,T){return u.__iterator(R,!T)},w}function xS(u,h,w,R){var T=Tn(u);return R&&(T.has=function(z){var A=u.get(z,E);return A!==E&&!!h.call(w,A,z,u)},T.get=function(z,A){var L=u.get(z,E);return L!==E&&h.call(w,L,z,u)?L:A}),T.__iterateUncached=function(z,A){var L=this,F=0;return u.__iterate(function(H,Q,de){if(h.call(w,H,Q,de))return F++,z(H,R?Q:F-1,L)},A),F},T.__iteratorUncached=function(z,A){var L=u.__iterator(we,A),F=0;return new Se(function(){for(;;){var H=L.next();if(H.done)return H;var Q=H.value,de=Q[0],ve=Q[1];if(h.call(w,ve,de,u))return V(z,R?de:F++,ve,H)}})},T}function VO(u,h,w){var R=Ie().asMutable();return u.__iterate(function(T,z){R.update(h.call(w,T,z,u),0,function(A){return A+1})}),R.asImmutable()}function GO(u,h,w){var R=c(u),T=(p(u)?pt():Ie()).asMutable();u.__iterate(function(A,L){T.update(h.call(w,A,L,u),function(F){return F=F||[],F.push(R?[L,A]:A),F})});var z=ES(u);return T.map(function(A){return Ge(u,z(A))})}function jh(u,h,w,R){var T=u.size;if(h!==void 0&&(h=h|0),w!==void 0&&(w===1/0?w=T:w=w|0),se(h,w,T))return u;var z=oe(h,T),A=pe(w,T);if(z!==z||A!==A)return jh(u.toSeq().cacheResult(),h,w,R);var L=A-z,F;L===L&&(F=L<0?0:L);var H=Tn(u);return H.size=F===0?F:u.size&&F||void 0,!R&&Re(u)&&F>=0&&(H.get=function(Q,de){return Q=B(this,Q),Q>=0&&QF)return G();var et=ve.next();return R||Q===ce?et:Q===ae?V(Q,Ce-1,void 0,et):V(Q,Ce-1,et.value[1],et)})},H}function KO(u,h,w){var R=Tn(u);return R.__iterateUncached=function(T,z){var A=this;if(z)return this.cacheResult().__iterate(T,z);var L=0;return u.__iterate(function(F,H,Q){return h.call(w,F,H,Q)&&++L&&T(F,H,A)}),L},R.__iteratorUncached=function(T,z){var A=this;if(z)return this.cacheResult().__iterator(T,z);var L=u.__iterator(we,z),F=!0;return new Se(function(){if(!F)return G();var H=L.next();if(H.done)return H;var Q=H.value,de=Q[0],ve=Q[1];return h.call(w,ve,de,A)?T===we?H:V(T,de,ve,H):(F=!1,G())})},R}function CS(u,h,w,R){var T=Tn(u);return T.__iterateUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterate(z,A);var F=!0,H=0;return u.__iterate(function(Q,de,ve){if(!(F&&(F=h.call(w,Q,de,ve))))return H++,z(Q,R?de:H-1,L)}),H},T.__iteratorUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterator(z,A);var F=u.__iterator(we,A),H=!0,Q=0;return new Se(function(){var de,ve,xe;do{if(de=F.next(),de.done)return R||z===ce?de:z===ae?V(z,Q++,void 0,de):V(z,Q++,de.value[1],de);var Ce=de.value;ve=Ce[0],xe=Ce[1],H&&(H=h.call(w,xe,ve,L))}while(H);return z===we?de:V(z,ve,xe,de)})},T}function YO(u,h){var w=c(u),R=[u].concat(h).map(function(A){return l(A)?w&&(A=i(A)):A=w?Et(A):br(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(R.length===0)return u;if(R.length===1){var T=R[0];if(T===u||w&&c(T)||d(u)&&d(T))return T}var z=new fe(R);return w?z=z.toKeyedSeq():d(u)||(z=z.toSetSeq()),z=z.flatten(!0),z.size=R.reduce(function(A,L){if(A!==void 0){var F=L.size;if(F!==void 0)return A+F}},0),z}function RS(u,h,w){var R=Tn(u);return R.__iterateUncached=function(T,z){var A=0,L=!1;function F(H,Q){var de=this;H.__iterate(function(ve,xe){return(!h||Q0}function zh(u,h,w){var R=Tn(u);return R.size=new fe(w).map(function(T){return T.size}).min(),R.__iterate=function(T,z){for(var A=this.__iterator(ce,z),L,F=0;!(L=A.next()).done&&T(L.value,F++,this)!==!1;);return F},R.__iteratorUncached=function(T,z){var A=w.map(function(H){return H=o(H),U(z?H.reverse():H)}),L=0,F=!1;return new Se(function(){var H;return F||(H=A.map(function(Q){return Q.next()}),F=H.some(function(Q){return Q.done})),F?G():V(T,L++,h.apply(null,H.map(function(Q){return Q.value})))})},R}function Ge(u,h){return Re(u)?h:u.constructor(h)}function PS(u){if(u!==Object(u))throw new TypeError("Expected [K, V] tuple: "+u)}function TS(u){return zr(u.size),$(u)}function ES(u){return c(u)?i:d(u)?a:s}function Tn(u){return Object.create((c(u)?le:d(u)?K:ee).prototype)}function Nh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ie.prototype.cacheResult.call(this)}function OS(u,h){return u>h?1:u=0;w--)h={value:arguments[w],next:h};return this.__ownerID?(this.size=u,this._head=h,this.__hash=void 0,this.__altered=!0,this):Cs(u,h)},_t.prototype.pushAll=function(u){if(u=a(u),u.size===0)return this;zr(u.size);var h=this.size,w=this._head;return u.reverse().forEach(function(R){h++,w={value:R,next:w}}),this.__ownerID?(this.size=h,this._head=w,this.__hash=void 0,this.__altered=!0,this):Cs(h,w)},_t.prototype.pop=function(){return this.slice(1)},_t.prototype.unshift=function(){return this.push.apply(this,arguments)},_t.prototype.unshiftAll=function(u){return this.pushAll(u)},_t.prototype.shift=function(){return this.pop.apply(this,arguments)},_t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dh()},_t.prototype.slice=function(u,h){if(se(u,h,this.size))return this;var w=oe(u,this.size),R=pe(h,this.size);if(R!==this.size)return Vi.prototype.slice.call(this,u,h);for(var T=this.size-w,z=this._head;w--;)z=z.next;return this.__ownerID?(this.size=T,this._head=z,this.__hash=void 0,this.__altered=!0,this):Cs(T,z)},_t.prototype.__ensureOwner=function(u){return u===this.__ownerID?this:u?Cs(this.size,this._head,u,this.__hash):(this.__ownerID=u,this.__altered=!1,this)},_t.prototype.__iterate=function(u,h){if(h)return this.reverse().__iterate(u);for(var w=0,R=this._head;R&&u(R.value,w++,this)!==!1;)R=R.next;return w},_t.prototype.__iterator=function(u,h){if(h)return this.reverse().__iterator(u);var w=0,R=this._head;return new Se(function(){if(R){var T=R.value;return R=R.next,V(u,w++,T)}return G()})};function DS(u){return!!(u&&u[FS])}_t.isStack=DS;var FS="@@__IMMUTABLE_STACK__@@",ea=_t.prototype;ea[FS]=!0,ea.withMutations=Te.withMutations,ea.asMutable=Te.asMutable,ea.asImmutable=Te.asImmutable,ea.wasAltered=Te.wasAltered;function Cs(u,h,w,R){var T=Object.create(ea);return T.size=u,T._head=h,T.__ownerID=w,T.__hash=R,T.__altered=!1,T}var BS;function Dh(){return BS||(BS=Cs(0))}function On(u,h){var w=function(R){u.prototype[R]=h[R]};return Object.keys(h).forEach(w),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(w),u}o.Iterator=Se,On(o,{toArray:function(){zr(this.size);var u=new Array(this.size||0);return this.valueSeq().__iterate(function(h,w){u[w]=h}),u},toIndexedSeq:function(){return new Qi(this)},toJS:function(){return this.toSeq().map(function(u){return u&&typeof u.toJS=="function"?u.toJS():u}).__toJS()},toJSON:function(){return this.toSeq().map(function(u){return u&&typeof u.toJSON=="function"?u.toJSON():u}).__toJS()},toKeyedSeq:function(){return new Kr(this,!0)},toMap:function(){return Ie(this.toKeyedSeq())},toObject:function(){zr(this.size);var u={};return this.__iterate(function(h,w){u[w]=h}),u},toOrderedMap:function(){return pt(this.toKeyedSeq())},toOrderedSet:function(){return En(c(this)?this.valueSeq():this)},toSet:function(){return Ze(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Xi(this)},toSeq:function(){return d(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return _t(c(this)?this.valueSeq():this)},toList:function(){return Qe(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(u,h){return this.size===0?u+h:u+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+h},concat:function(){var u=r.call(arguments,0);return Ge(this,YO(this,u))},includes:function(u){return this.some(function(h){return wt(h,u)})},entries:function(){return this.__iterator(we)},every:function(u,h){zr(this.size);var w=!0;return this.__iterate(function(R,T,z){if(!u.call(h,R,T,z))return w=!1,!1}),w},filter:function(u,h){return Ge(this,xS(this,u,h,!0))},find:function(u,h,w){var R=this.findEntry(u,h);return R?R[1]:w},forEach:function(u,h){return zr(this.size),this.__iterate(h?u.bind(h):u)},join:function(u){zr(this.size),u=u!==void 0?""+u:",";var h="",w=!0;return this.__iterate(function(R){w?w=!1:h+=u,h+=R!=null?R.toString():""}),h},keys:function(){return this.__iterator(ae)},map:function(u,h){return Ge(this,_S(this,u,h))},reduce:function(u,h,w){zr(this.size);var R,T;return arguments.length<2?T=!0:R=h,this.__iterate(function(z,A,L){T?(T=!1,R=z):R=u.call(w,R,z,A,L)}),R},reduceRight:function(u,h,w){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return Ge(this,Ih(this,!0))},slice:function(u,h){return Ge(this,jh(this,u,h,!0))},some:function(u,h){return!this.every(Ru(u),h)},sort:function(u){return Ge(this,Zi(this,u))},values:function(){return this.__iterator(ce)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(u,h){return $(u?this.toSeq().filter(u,h):this)},countBy:function(u,h){return VO(this,u,h)},equals:function(u){return fh(this,u)},entrySeq:function(){var u=this;if(u._cache)return new fe(u._cache);var h=u.toSeq().map(tI).toIndexedSeq();return h.fromEntrySeq=function(){return u.toSeq()},h},filterNot:function(u,h){return this.filter(Ru(u),h)},findEntry:function(u,h,w){var R=w;return this.__iterate(function(T,z,A){if(u.call(h,T,z,A))return R=[z,T],!1}),R},findKey:function(u,h){var w=this.findEntry(u,h);return w&&w[0]},findLast:function(u,h,w){return this.toKeyedSeq().reverse().find(u,h,w)},findLastEntry:function(u,h,w){return this.toKeyedSeq().reverse().findEntry(u,h,w)},findLastKey:function(u,h){return this.toKeyedSeq().reverse().findKey(u,h)},first:function(){return this.find(W)},flatMap:function(u,h){return Ge(this,QO(this,u,h))},flatten:function(u){return Ge(this,RS(this,u,!0))},fromEntrySeq:function(){return new Ji(this)},get:function(u,h){return this.find(function(w,R){return wt(R,u)},void 0,h)},getIn:function(u,h){for(var w=this,R=IS(u),T;!(T=R.next()).done;){var z=T.value;if(w=w&&w.get?w.get(z,E):E,w===E)return h}return w},groupBy:function(u,h){return GO(this,u,h)},has:function(u){return this.get(u,E)!==E},hasIn:function(u){return this.getIn(u,E)!==E},isSubset:function(u){return u=typeof u.includes=="function"?u:o(u),this.every(function(h){return u.includes(h)})},isSuperset:function(u){return u=typeof u.isSubset=="function"?u:o(u),u.isSubset(this)},keyOf:function(u){return this.findKey(function(h){return wt(h,u)})},keySeq:function(){return this.toSeq().map(eI).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(u){return this.toKeyedSeq().reverse().keyOf(u)},max:function(u){return wu(this,u)},maxBy:function(u,h){return wu(this,h,u)},min:function(u){return wu(this,u?WS(u):HS)},minBy:function(u,h){return wu(this,h?WS(h):HS,u)},rest:function(){return this.slice(1)},skip:function(u){return this.slice(Math.max(0,u))},skipLast:function(u){return Ge(this,this.toSeq().reverse().skip(u).reverse())},skipWhile:function(u,h){return Ge(this,CS(this,u,h,!0))},skipUntil:function(u,h){return this.skipWhile(Ru(u),h)},sortBy:function(u,h){return Ge(this,Zi(this,h,u))},take:function(u){return this.slice(0,Math.max(0,u))},takeLast:function(u){return Ge(this,this.toSeq().reverse().take(u).reverse())},takeWhile:function(u,h){return Ge(this,KO(this,u,h))},takeUntil:function(u,h){return this.takeWhile(Ru(u),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=nI(this))}});var cr=o.prototype;cr[g]=!0,cr[De]=cr.values,cr.__toJS=cr.toArray,cr.__toStringMapper=US,cr.inspect=cr.toSource=function(){return this.toString()},cr.chain=cr.flatMap,cr.contains=cr.includes,On(i,{flip:function(){return Ge(this,wS(this))},mapEntries:function(u,h){var w=this,R=0;return Ge(this,this.toSeq().map(function(T,z){return u.call(h,[z,T],R++,w)}).fromEntrySeq())},mapKeys:function(u,h){var w=this;return Ge(this,this.toSeq().flip().map(function(R,T){return u.call(h,R,T,w)}).flip())}});var Cu=i.prototype;Cu[S]=!0,Cu[De]=cr.entries,Cu.__toJS=cr.toObject,Cu.__toStringMapper=function(u,h){return JSON.stringify(h)+": "+US(u)},On(a,{toKeyedSeq:function(){return new Kr(this,!1)},filter:function(u,h){return Ge(this,xS(this,u,h,!1))},findIndex:function(u,h){var w=this.findEntry(u,h);return w?w[0]:-1},indexOf:function(u){var h=this.keyOf(u);return h===void 0?-1:h},lastIndexOf:function(u){var h=this.lastKeyOf(u);return h===void 0?-1:h},reverse:function(){return Ge(this,Ih(this,!1))},slice:function(u,h){return Ge(this,jh(this,u,h,!1))},splice:function(u,h){var w=arguments.length;if(h=Math.max(h|0,0),w===0||w===2&&!h)return this;u=oe(u,u<0?this.count():this.size);var R=this.slice(0,u);return Ge(this,w===1?R:R.concat(M(arguments,2),this.slice(u+h)))},findLastIndex:function(u,h){var w=this.findLastEntry(u,h);return w?w[0]:-1},first:function(){return this.get(0)},flatten:function(u){return Ge(this,RS(this,u,!1))},get:function(u,h){return u=B(this,u),u<0||this.size===1/0||this.size!==void 0&&u>this.size?h:this.find(function(w,R){return R===u},void 0,h)},has:function(u){return u=B(this,u),u>=0&&(this.size!==void 0?this.size===1/0||uh?-1:0}function nI(u){if(u.size===1/0)return 0;var h=p(u),w=c(u),R=h?1:0,T=u.__iterate(w?h?function(z,A){R=31*R+qS(jr(z),jr(A))|0}:function(z,A){R=R+qS(jr(z),jr(A))|0}:h?function(z){R=31*R+jr(z)|0}:function(z){R=R+jr(z)|0});return oI(T,R)}function oI(u,h){return h=ys(h,3432918353),h=ys(h<<15|h>>>-15,461845907),h=ys(h<<13|h>>>-13,5),h=(h+3864292196|0)^u,h=ys(h^h>>>16,2246822507),h=ys(h^h>>>13,3266489909),h=mh(h^h>>>16),h}function qS(u,h){return u^h+2654435769+(u<<6)+(u>>2)|0}var iI={Iterable:o,Seq:ie,Collection:wo,Map:Ie,OrderedMap:pt,List:Qe,Stack:_t,Set:Ze,OrderedSet:En,Record:Nr,Range:$t,Repeat:Yt,is:wt,fromJS:li};return iI})}(Np)),Np.exports}function WB(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}const UB=Object.freeze(Object.defineProperty({__proto__:null,default:WB},Symbol.toStringTag,{value:"Module"})),HB=mr(UB);var Ap,E_;function vT(){if(E_)return Ap;E_=1;var e=typeof gi=="object"&&gi&&gi.Object===Object&&gi;return Ap=e,Ap}var Mp,O_;function qB(){if(O_)return Mp;O_=1;var e=vT(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Mp=r,Mp}var Lp,I_;function Vf(){if(I_)return Lp;I_=1;var e=qB(),t=e.Symbol;return Lp=t,Lp}var $p,j_;function VB(){if(j_)return $p;j_=1;var e=Vf(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var d=n.call(a);return c&&(s?a[o]=l:delete a[o]),d}return $p=i,$p}var Dp,z_;function GB(){if(z_)return Dp;z_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Dp=r,Dp}var Fp,N_;function Gf(){if(N_)return Fp;N_=1;var e=Vf(),t=VB(),r=GB(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:n:i&&i in Object(s)?t(s):r(s)}return Fp=a,Fp}var Bp,A_;function au(){if(A_)return Bp;A_=1;function e(t){return t!=null&&typeof t=="object"}return Bp=e,Bp}var Wp,M_;function KB(){if(M_)return Wp;M_=1;var e=Gf(),t=au(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return Wp=n,Wp}var Up,L_;function YB(){if(L_)return Up;L_=1;function e(t){return function(r){return t(r)}}return Up=e,Up}var qs={exports:{}};qs.exports;var $_;function QB(){return $_||($_=1,function(e,t){var r=vT(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(qs,qs.exports)),qs.exports}var Hp,D_;function XB(){if(D_)return Hp;D_=1;var e=KB(),t=YB(),r=QB(),n=r&&r.isRegExp,o=n?t(n):e;return Hp=o,Hp}var qp,F_;function JB(){if(F_)return qp;F_=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n0&&i(d)?o>1?r(d,o-1,i,a,s):e(s,d):a||(s[s.length]=d)}return s}return rm=r,rm}var nm,J_;function uW(){if(J_)return nm;J_=1;var e=lW();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return nm=t,nm}var om,Z_;function cW(){if(Z_)return om;Z_=1;var e=XB(),t=rW(),r=nW(),n=uW();function o(i,a,s){var l=0,c=0;if(i==="")return i;if(!i||!r(i))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var d=a;e(d)||(d=new RegExp("("+t(d)+")","gi"));for(var f=i.split(d),p=1,g=f.length;p=0&&l===s&&c())}function Vs(e,t){if(e==null)return{};var r=Ye(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var dW=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ht(this,e),D(this,"_cellSizeAndPositionData",{}),D(this,"_lastMeasuredIndex",-1),D(this,"_lastBatchedIndex",-1),D(this,"_cellCount",void 0),D(this,"_cellSizeGetter",void 0),D(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return St(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(r){var n=r.cellCount,o=r.estimatedCellSize,i=r.cellSizeGetter;this._cellCount=n,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(r){if(r<0||r>=this._cellCount)throw Error("Requested index ".concat(r," is outside of range 0..").concat(this._cellCount));if(r>this._lastMeasuredIndex)for(var n=this.getSizeAndPositionOfLastMeasuredCell(),o=n.offset+n.size,i=this._lastMeasuredIndex+1;i<=r;i++){var a=this._cellSizeGetter({index:i});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(a));a===null?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=r):(this._cellSizeAndPositionData[i]={offset:o,size:a},o+=a,this._lastMeasuredIndex=r)}return this._cellSizeAndPositionData[r]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var r=this.getSizeAndPositionOfLastMeasuredCell(),n=r.offset+r.size,o=this._cellCount-this._lastMeasuredIndex-1,i=o*this._estimatedCellSize;return n+i}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;if(i<=0)return 0;var l=this.getSizeAndPositionOfCell(s),c=l.offset,d=c-i+l.size,f;switch(o){case"start":f=c;break;case"end":f=d;break;case"center":f=c-(i-l.size)/2;break;default:f=Math.max(d,Math.min(c,a));break}var p=this.getTotalSize();return Math.max(0,Math.min(p-i,f))}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset,i=this.getTotalSize();if(i===0)return{};var a=o+n,s=this._findNearestCell(o),l=this.getSizeAndPositionOfCell(s);o=l.offset+l.size;for(var c=s;oo&&(r=i-1)}return n>0?n-1:0}},{key:"_exponentialSearch",value:function(r,n){for(var o=1;r=r?this._binarySearch(o,0,r):this._exponentialSearch(o,r)}}]),e}(),fW=15e5,hW=16777100,pW=function(){return typeof window<"u"},mW=function(){return!!window.chrome},vW=function(){return pW()&&mW()?hW:fW},r1=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?vW():r,o=Vs(t,["maxScrollSize"]);ht(this,e),D(this,"_cellSizeAndPositionManager",void 0),D(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new dW(o),this._maxScrollSize=n}return St(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(r){this._cellSizeAndPositionManager.configure(r)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(a-i))}},{key:"getSizeAndPositionOfCell",value:function(r){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(r)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;a=this._safeOffsetToOffset({containerSize:i,offset:a});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:l})}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset;return o=this._safeOffsetToOffset({containerSize:n,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:n,offset:o})}},{key:"resetCell",value:function(r){this._cellSizeAndPositionManager.resetCell(r)}},{key:"_getOffsetPercentage",value:function(r){var n=r.containerSize,o=r.offset,i=r.totalSize;return i<=n?0:o/(i-n)}},{key:"_offsetToSafeOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:i});return Math.round(s*(a-n))}},{key:"_safeOffsetToOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(i-n))}}]),e}();function Ya(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),a=!e||i.every(function(l){var c=o[l];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(l){var c=t[l],d=o[l];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});t=o,a&&s&&n(o)}}var Yu=-1,eo=1;function wT(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===eo?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}}function n1(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,f=e.size,p=e.sizeJustIncreasedFromZero,g=e.updateScrollIndexCallback,S=r.getCellCount(),y=d>=0&&d0&&(fr.getTotalSize()-f&&g(S-1)}function _T(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,f=e.rowSizeAndPositionManager,p=e.rowStartIndex,g=e.rowStopIndex,S=e.styleCache,y=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],x=n.areOffsetsAdjusted()||f.areOffsetsAdjusted(),k=!l&&!x,E=p;E<=g;E++)for(var O=f.getSizeAndPositionOfCell(E),_=o;_<=i;_++){var P=n.getSizeAndPositionOfCell(_),I=_>=C.start&&_<=C.stop&&E>=v.start&&E<=v.stop,j="".concat(E,"-").concat(_),M=void 0;k&&S[j]?M=S[j]:a&&!a.has(E,_)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:O.size,left:P.offset+s,position:"absolute",top:O.offset+y,width:P.size},S[j]=M);var $={columnIndex:_,isScrolling:l,isVisible:I,key:j,parent:d,rowIndex:E,style:M},B=void 0;(c||l)&&!s&&!y?(t[j]||(t[j]=r($)),B=t[j]):B=r($),!(B==null||B===!1)&&b.push(B)}return b}const gW=!!(typeof window<"u"&&window.document&&window.document.createElement);var Qu;function Ov(e){if((!Qu&&Qu!==0||e)&&gW){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Qu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Qu}var hr;typeof window<"u"?hr=window:typeof self<"u"?hr=self:hr={};var yW=hr.requestAnimationFrame||hr.webkitRequestAnimationFrame||hr.mozRequestAnimationFrame||hr.oRequestAnimationFrame||hr.msRequestAnimationFrame||function(e){return hr.setTimeout(e,1e3/60)},SW=hr.cancelAnimationFrame||hr.webkitCancelAnimationFrame||hr.mozCancelAnimationFrame||hr.oCancelAnimationFrame||hr.msCancelAnimationFrame||function(e){hr.clearTimeout(e)},o1=yW,bW=SW,Qa=function(t){return bW(t.id)},Ly=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=o1(a)},i={id:o1(o)};return i},i1,a1;function s1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ci(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(r,n.state)),r.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(r,n.state)),n}return St(t,[{key:"getOffsetForCell",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.alignment,i=o===void 0?this.props.scrollToAlignment:o,a=n.columnIndex,s=a===void 0?this.props.scrollToColumn:a,l=n.rowIndex,c=l===void 0?this.props.scrollToRow:l,d=ci({},this.props,{scrollToAlignment:i,scrollToColumn:s,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(d),scrollTop:this._getCalculatedScrollTop(d)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(n){var o=n.scrollLeft,i=o===void 0?0:o,a=n.scrollTop,s=a===void 0?0:a;if(!(s<0)){this._debounceScrollEnded();var l=this.props,c=l.autoHeight,d=l.autoWidth,f=l.height,p=l.width,g=this.state.instanceProps,S=g.scrollbarSize,y=g.rowSizeAndPositionManager.getTotalSize(),C=g.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+S),i),b=Math.min(Math.max(0,y-f+S),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==b){var x=v!==this.state.scrollLeft?v>this.state.scrollLeft?eo:Yu:this.state.scrollDirectionHorizontal,k=b!==this.state.scrollTop?b>this.state.scrollTop?eo:Yu:this.state.scrollDirectionVertical,E={isScrolling:!0,scrollDirectionHorizontal:x,scrollDirectionVertical:k,scrollPositionChangeReason:im.OBSERVED};c||(E.scrollTop=b),d||(E.scrollLeft=v),E.needToResetStyleCache=!1,this.setState(E)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:C,totalRowsHeight:y})}}},{key:"invalidateCellSizeAfterRender",value:function(n){var o=n.columnIndex,i=n.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){var n=this.props,o=n.columnCount,i=n.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(o-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(i-1)}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,l=this.props,c=l.scrollToColumn,d=l.scrollToRow,f=this.state.instanceProps;f.columnSizeAndPositionManager.resetCell(i),f.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===eo?i<=c:i>=c),this._recomputeScrollTopFlag=d>=0&&(this.state.scrollDirectionVertical===eo?s<=d:s>=d),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(n){var o=n.columnIndex,i=n.rowIndex,a=this.props.columnCount,s=this.props;a>1&&o!==void 0&&this._updateScrollLeftForScrollToColumn(ci({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(ci({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,l=n.scrollTop,c=n.scrollToRow,d=n.width,f=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),f.scrollbarSizeMeasured||this.setState(function(S){var y=ci({},S,{needToResetStyleCache:!1});return y.instanceProps.scrollbarSize=o(),y.instanceProps.scrollbarSizeMeasured=!0,y}),typeof a=="number"&&a>=0||typeof l=="number"&&l>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:l});p&&(p.needToResetStyleCache=!1,this.setState(p))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var g=i>0&&d>0;s>=0&&g&&this._updateScrollLeftForScrollToColumn(),c>=0&&g&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:l||0,totalColumnsWidth:f.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:f.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(n,o){var i=this,a=this.props,s=a.autoHeight,l=a.autoWidth,c=a.columnCount,d=a.height,f=a.rowCount,p=a.scrollToAlignment,g=a.scrollToColumn,S=a.scrollToRow,y=a.width,C=this.state,v=C.scrollLeft,b=C.scrollPositionChangeReason,x=C.scrollTop,k=C.instanceProps;this._handleInvalidatedGridSize();var E=c>0&&n.columnCount===0||f>0&&n.rowCount===0;b===im.REQUESTED&&(!l&&v>=0&&(v!==this._scrollingContainer.scrollLeft||E)&&(this._scrollingContainer.scrollLeft=v),!s&&x>=0&&(x!==this._scrollingContainer.scrollTop||E)&&(this._scrollingContainer.scrollTop=x));var O=(n.width===0||n.height===0)&&d>0&&y>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):n1({cellSizeAndPositionManager:k.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:g,size:y,sizeJustIncreasedFromZero:O,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):n1({cellSizeAndPositionManager:k.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:x,scrollToAlignment:p,scrollToIndex:S,size:d,sizeJustIncreasedFromZero:O,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||x!==o.scrollTop){var _=k.rowSizeAndPositionManager.getTotalSize(),P=k.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:x,totalColumnsWidth:P,totalRowsHeight:_})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Qa(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,l=n.containerProps,c=n.containerRole,d=n.containerStyle,f=n.height,p=n.id,g=n.noContentRenderer,S=n.role,y=n.style,C=n.tabIndex,v=n.width,b=this.state,x=b.instanceProps,k=b.needToResetStyleCache,E=this._isScrolling(),O={boxSizing:"border-box",direction:"ltr",height:i?"auto":f,position:"relative",width:a?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};k&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=x.columnSizeAndPositionManager.getTotalSize(),P=x.rowSizeAndPositionManager.getTotalSize(),I=P>f?x.scrollbarSize:0,j=_>v?x.scrollbarSize:0;(j!==this._horizontalScrollBarSize||I!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=j,this._verticalScrollBarSize=I,this._scrollbarPresenceChanged=!0),O.overflowX=_+I<=v?"hidden":"auto",O.overflowY=P+j<=f?"hidden":"auto";var M=this._childrenToDisplay,$=M.length===0&&f>0&&v>0;return N.createElement("div",Z({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:bn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:S,style:ci({},O,{},y),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:ci({width:o?"auto":_,height:P,maxWidth:_,maxHeight:P,overflow:"hidden",pointerEvents:E?"none":"",position:"relative"},d)},M),$&&g())}},{key:"_calculateChildrenToRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=n.cellRenderer,a=n.cellRangeRenderer,s=n.columnCount,l=n.deferredMeasurementCache,c=n.height,d=n.overscanColumnCount,f=n.overscanIndicesGetter,p=n.overscanRowCount,g=n.rowCount,S=n.width,y=n.isScrollingOptOut,C=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,b=o.instanceProps,x=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,k=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,E=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&S>0){var O=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:S,offset:k}),_=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:x}),P=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:S,offset:k}),I=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:x});this._renderedColumnStartIndex=O.start,this._renderedColumnStopIndex=O.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var j=f({direction:"horizontal",cellCount:s,overscanCellsCount:d,scrollDirection:C,startIndex:typeof O.start=="number"?O.start:0,stopIndex:typeof O.stop=="number"?O.stop:-1}),M=f({direction:"vertical",cellCount:g,overscanCellsCount:p,scrollDirection:v,startIndex:typeof _.start=="number"?_.start:0,stopIndex:typeof _.stop=="number"?_.stop:-1}),$=j.overscanStartIndex,B=j.overscanStopIndex,W=M.overscanStartIndex,se=M.overscanStopIndex;if(l){if(!l.hasFixedHeight()){for(var oe=W;oe<=se;oe++)if(!l.has(oe,0)){$=0,B=s-1;break}}if(!l.hasFixedWidth()){for(var pe=$;pe<=B;pe++)if(!l.has(0,pe)){W=0,se=g-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:$,columnStopIndex:B,deferredMeasurementCache:l,horizontalOffsetAdjustment:P,isScrolling:E,isScrollingOptOut:y,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:W,rowStopIndex:se,scrollLeft:k,scrollTop:x,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:O,visibleRowIndices:_}),this._columnStartIndex=$,this._columnStopIndex=B,this._rowStartIndex=W,this._rowStopIndex=se}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Qa(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Ly(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalColumnsWidth,l=n.totalRowsHeight;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,g=o.props,S=g.height,y=g.onScroll,C=g.width;y({clientHeight:S,clientWidth:C,scrollHeight:l,scrollLeft:f,scrollTop:p,scrollWidth:s})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_isScrolling",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(n,"isScrolling")?!!n.isScrolling:!!o.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var n=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,n({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(n,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(n,o)}},{key:"_resetStyleCache",value:function(){var n=this._styleCache,o=this._cellCache,i=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var l="".concat(a,"-").concat(s);this._styleCache[l]=n[l],i&&(this._cellCache[l]=o[l])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i={};n.columnCount===0&&o.scrollLeft!==0||n.rowCount===0&&o.scrollTop!==0?(i.scrollLeft=0,i.scrollTop=0):(n.scrollLeft!==o.scrollLeft&&n.scrollToColumn<0||n.scrollTop!==o.scrollTop&&n.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}));var a=o.instanceProps;i.needToResetStyleCache=!1,(n.columnWidth!==a.prevColumnWidth||n.rowHeight!==a.prevRowHeight)&&(i.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:n.columnCount,estimatedCellSize:t._getEstimatedColumnSize(n),cellSizeGetter:t._wrapSizeGetter(n.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:n.rowCount,estimatedCellSize:t._getEstimatedRowSize(n),cellSizeGetter:t._wrapSizeGetter(n.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),n.autoHeight&&n.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(i,{isScrolling:!1});var s,l;return t1({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.columnCount,nextCellSize:typeof n.columnWidth=="number"?n.columnWidth:null,nextScrollToIndex:n.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollLeftForScrollToColumnStateUpdate(n,o)}}),t1({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.rowCount,nextCellSize:typeof n.rowHeight=="number"?n.rowHeight:null,nextScrollToIndex:n.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=t._getScrollTopForScrollToRowStateUpdate(n,o)}}),a.prevColumnCount=n.columnCount,a.prevColumnWidth=n.columnWidth,a.prevIsScrolling=n.isScrolling===!0,a.prevRowCount=n.rowCount,a.prevRowHeight=n.rowHeight,a.prevScrollToColumn=n.scrollToColumn,a.prevScrollToRow=n.scrollToRow,a.scrollbarSize=n.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,i.instanceProps=a,ci({},i,{},s,{},l)}},{key:"_getEstimatedColumnSize",value:function(n){return typeof n.columnWidth=="number"?n.columnWidth:n.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(n){return typeof n.rowHeight=="number"?n.rowHeight:n.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(n){var o=n.prevState,i=n.scrollLeft,a=n.scrollTop,s={scrollPositionChangeReason:im.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?eo:Yu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?eo:Yu,s.scrollTop=a),typeof i=="number"&&i>=0&&i!==o.scrollLeft||typeof a=="number"&&a>=0&&a!==o.scrollTop?s:{}}},{key:"_wrapSizeGetter",value:function(n){return typeof n=="function"?n:function(){return n}}},{key:"_getCalculatedScrollLeft",value:function(n,o){var i=n.columnCount,a=n.height,s=n.scrollToAlignment,l=n.scrollToColumn,c=n.width,d=o.scrollLeft,f=o.instanceProps;if(i>0){var p=i-1,g=l<0?p:Math.min(p,l),S=f.rowSizeAndPositionManager.getTotalSize(),y=f.scrollbarSizeMeasured&&S>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-y,currentOffset:d,targetIndex:g})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(n,o){var i=o.scrollLeft,a=t._getCalculatedScrollLeft(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(n,o){var i=n.height,a=n.rowCount,s=n.scrollToAlignment,l=n.scrollToRow,c=n.width,d=o.scrollTop,f=o.instanceProps;if(a>0){var p=a-1,g=l<0?p:Math.min(p,l),S=f.columnSizeAndPositionManager.getTotalSize(),y=f.scrollbarSizeMeasured&&S>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-y,currentOffset:d,targetIndex:g})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(n,o){var i=o.scrollTop,a=t._getCalculatedScrollTop(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:a}):{}}}]),t}(N.PureComponent),D(i1,"propTypes",null),a1);D(uo,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:_T,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Ov,noContentRenderer:_W,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:wT,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:wW,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});su(uo);var xW=1;function $y(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===xW?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var l1,u1;function c1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function CW(e){for(var t=1;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',j=P.head||P.getElementsByTagName("head")[0],M=P.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(P.createTextNode(I)),j.appendChild(M)}},E=function(P,I){if(n)P.attachEvent("onresize",I);else{if(!P.__resizeTriggers__){var j=P.ownerDocument,M=r.getComputedStyle(P);M&&M.position=="static"&&(P.style.position="relative"),k(j),P.__resizeLast__={},P.__resizeListeners__=[],(P.__resizeTriggers__=j.createElement("div")).className="resize-triggers";var $='
';if(window.trustedTypes){var B=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return $}});P.__resizeTriggers__.innerHTML=B.createHTML("")}else P.__resizeTriggers__.innerHTML=$;P.appendChild(P.__resizeTriggers__),a(P),P.addEventListener("scroll",l,!0),f&&(P.__resizeTriggers__.__animationListener__=function(se){se.animationName==v&&a(P)},P.__resizeTriggers__.addEventListener(f,P.__resizeTriggers__.__animationListener__))}P.__resizeListeners__.push(I)}},O=function(P,I){if(n)P.detachEvent("onresize",I);else if(P.__resizeListeners__.splice(P.__resizeListeners__.indexOf(I),1),!P.__resizeListeners__.length){P.removeEventListener("scroll",l,!0),P.__resizeTriggers__.__animationListener__&&(P.__resizeTriggers__.removeEventListener(f,P.__resizeTriggers__.__animationListener__),P.__resizeTriggers__.__animationListener__=null);try{P.__resizeTriggers__=!P.removeChild(P.__resizeTriggers__)}catch{}}};return{addResizeListener:E,removeResizeListener:O}}var d1,f1;function h1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function RW(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ht(this,e),D(this,"_cellHeightCache",{}),D(this,"_cellWidthCache",{}),D(this,"_columnWidthCache",{}),D(this,"_rowHeightCache",{}),D(this,"_defaultHeight",void 0),D(this,"_defaultWidth",void 0),D(this,"_minHeight",void 0),D(this,"_minWidth",void 0),D(this,"_keyMapper",void 0),D(this,"_hasFixedHeight",void 0),D(this,"_hasFixedWidth",void 0),D(this,"_columnCount",0),D(this,"_rowCount",0),D(this,"columnWidth",function(d){var f=d.index,p=t._keyMapper(0,f);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),D(this,"rowHeight",function(d){var f=d.index,p=t._keyMapper(f,0);return t._rowHeightCache[p]!==void 0?t._rowHeightCache[p]:t._defaultHeight});var n=r.defaultHeight,o=r.defaultWidth,i=r.fixedHeight,a=r.fixedWidth,s=r.keyMapper,l=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=l||0,this._minWidth=c||0,this._keyMapper=s||EW,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:kW),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:PW)}return St(e,[{key:"clear",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(r,n)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(r,n);return this._cellWidthCache[o]!==void 0?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0}},{key:"set",value:function(r,n,o,i){var a=this._keyMapper(r,n);n>=this._columnCount&&(this._columnCount=n+1),r>=this._rowCount&&(this._rowCount=r+1),this._cellHeightCache[a]=i,this._cellWidthCache[a]=o,this._updateCachedColumnAndRowSizes(r,n)}},{key:"_updateCachedColumnAndRowSizes",value:function(r,n){if(!this._hasFixedWidth){for(var o=0,i=0;i=0){var C=l.getScrollPositionForCell({align:d,cellIndex:f,height:c,scrollLeft:S,scrollTop:y,width:p});(C.scrollLeft!==S||C.scrollTop!==y)&&n._setScrollPosition(C)}}),D(Y(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var l=n.props,c=l.cellLayoutManager,d=l.height,f=l.isScrollingChange,p=l.width,g=n._scrollbarSize,S=c.getTotalSize(),y=S.height,C=S.width,v=Math.max(0,Math.min(C-p+g,s.target.scrollLeft)),b=Math.max(0,Math.min(y-d+g,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==b){var x=s.cancelable?sa.OBSERVED:sa.REQUESTED;n.state.isScrolling||f(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:x,scrollTop:b})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalWidth:C,totalHeight:y})}}),n._scrollbarSize=Ov(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return St(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var n=this.props,o=n.cellLayoutManager,i=n.scrollLeft,a=n.scrollToCell,s=n.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Ov(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var l=o.getTotalSize(),c=l.height,d=l.width;this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalHeight:c,totalWidth:d})}},{key:"componentDidUpdate",value:function(n,o){var i=this.props,a=i.height,s=i.scrollToAlignment,l=i.scrollToCell,c=i.width,d=this.state,f=d.scrollLeft,p=d.scrollPositionChangeReason,g=d.scrollTop;p===sa.REQUESTED&&(f>=0&&f!==o.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),g>=0&&g!==o.scrollTop&&g!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=g)),(a!==n.height||s!==n.scrollToAlignment||l!==n.scrollToCell||c!==n.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoHeight,i=n.cellCount,a=n.cellLayoutManager,s=n.className,l=n.height,c=n.horizontalOverscanSize,d=n.id,f=n.noContentRenderer,p=n.style,g=n.verticalOverscanSize,S=n.width,y=this.state,C=y.isScrolling,v=y.scrollLeft,b=y.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var x=a.getTotalSize(),k=x.height,E=x.width,O=Math.max(0,v-c),_=Math.max(0,b-g),P=Math.min(E,v+S+c),I=Math.min(k,b+l+g),j=l>0&&S>0?a.cellRenderers({height:I-_,isScrolling:C,width:P-O,x:O,y:_}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:S,willChange:"transform"},$=k>l?this._scrollbarSize:0,B=E>S?this._scrollbarSize:0;return M.overflowX=E+$<=S?"hidden":"auto",M.overflowY=k+B<=l?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:bn("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:OW({},M,{},p),tabIndex:0},i>0&&N.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:k,maxHeight:k,maxWidth:E,overflow:"hidden",pointerEvents:C?"none":"",width:E}},j),i===0&&f())}},{key:"_enablePointerEventsAfterDelay",value:function(){var n=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var o=n.props.isScrollingChange;o(!1),n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1})},IW)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,l=n.totalWidth;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,g=o.props,S=g.height,y=g.onScroll,C=g.width;y({clientHeight:S,clientWidth:C,scrollHeight:s,scrollLeft:f,scrollTop:p,scrollWidth:l})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:sa.REQUESTED};o>=0&&(a.scrollLeft=o),i>=0&&(a.scrollTop=i),(o>=0&&o!==this.state.scrollLeft||i>=0&&i!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.cellCount===0&&(o.scrollLeft!==0||o.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:sa.REQUESTED}:n.scrollLeft!==o.scrollLeft||n.scrollTop!==o.scrollTop?{scrollLeft:n.scrollLeft!=null?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null?n.scrollTop:o.scrollTop,scrollPositionChangeReason:sa.REQUESTED}:null}}]),t}(N.PureComponent);D(Kf,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});Kf.propTypes={};su(Kf);var jW=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;ht(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return St(e,[{key:"addCellIndex",value:function(r){var n=r.index;this._indexMap[n]||(this._indexMap[n]=!0,this._indices.push(n))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),zW=100,NW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zW;ht(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return St(e,[{key:"getCellIndices",value:function(r){var n=r.height,o=r.width,i=r.x,a=r.y,s={};return this.getSections({height:n,width:o,x:i,y:a}).forEach(function(l){return l.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(l){return s[l]})}},{key:"getCellMetadata",value:function(r){var n=r.index;return this._cellMetadata[n]}},{key:"getSections",value:function(r){for(var n=r.height,o=r.width,i=r.x,a=r.y,s=Math.floor(i/this._sectionSize),l=Math.floor((i+o-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),d=Math.floor((a+n-1)/this._sectionSize),f=[],p=s;p<=l;p++)for(var g=c;g<=d;g++){var S="".concat(p,".").concat(g);this._sections[S]||(this._sections[S]=new jW({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:g*this._sectionSize})),f.push(this._sections[S])}return f}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var r=this;return Object.keys(this._sections).map(function(n){return r._sections[n].toString()})}},{key:"registerCell",value:function(r){var n=r.cellMetadatum,o=r.index;this._cellMetadata[o]=n,this.getSections(n).forEach(function(i){return i.addCellIndex({index:o})})}}]),e}();function AW(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new NW(n),a=0,s=0,l=0;l=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var S=g.startIndex-1;if(!t({index:S}))g.startIndex=S;else break}return a}function UW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}var y1,S1,TT=(S1=y1=function(e){Sr(t,e);function t(){var r,n;ht(this,t);for(var o=arguments.length,i=new Array(o),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:0})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"render",value:function(){var n=this.props,o=n.className,i=n.noRowsRenderer,a=n.scrollToIndex,s=n.width,l=bn("ReactVirtualized__List",o);return N.createElement(uo,Z({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),D(y1,"propTypes",null),S1);D(TT,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:$y,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function HW(e){if(Array.isArray(e))return e}function qW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function VW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GW(e,t){return HW(e)||qW(e,t)||PT(e,t)||VW()}function KW(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>=n?(o=i,r=i-1):t=i+1}return o}function YW(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>=0?(i=a,r=a-1):t=a+1}return i}function QW(e,t,r,n,o){return typeof r=="function"?YW(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):KW(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function XW(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>n?(o=i,r=i-1):t=i+1}return o}function JW(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>0?(i=a,r=a-1):t=a+1}return i}function ZW(e,t,r,n,o){return typeof r=="function"?JW(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):XW(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function e6(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a>>1,s=e[a];o(s,n)<0?(i=a,t=a+1):r=a-1}return i}function r6(e,t,r,n,o){return typeof r=="function"?t6(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):e6(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function n6(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a<=n?(o=i,t=i+1):r=i-1}return o}function o6(e,t,r,n,o){for(var i=t-1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)<=0?(i=a,t=a+1):r=a-1}return i}function i6(e,t,r,n,o){return typeof r=="function"?o6(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):n6(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function a6(e,t,r,n){for(;t<=r;){var o=t+r>>>1,i=e[o];if(i===n)return o;i<=n?t=o+1:r=o-1}return-1}function s6(e,t,r,n,o){for(;t<=r;){var i=t+r>>>1,a=e[i],s=o(a,n);if(s===0)return i;s<=0?t=i+1:r=i-1}return-1}function l6(e,t,r,n,o){return typeof r=="function"?s6(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):a6(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const Cd={ge:QW,gt:ZW,lt:r6,le:i6,eq:l6};var Ca=0,vi=1,Tc=2;function Wy(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var lu=Wy.prototype;function am(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function ET(e,t){var r=Xa(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function b1(e,t){var r=e.intervals([]);r.push(t),ET(e,r)}function w1(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?Ca:(r.splice(n,1),ET(e,r),vi)}lu.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};lu.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?b1(this,e):this.left.insert(e):this.left=Xa([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?b1(this,e):this.right.insert(e):this.right=Xa([e]);else{var r=Cd.ge(this.leftPoints,e,Uy),n=Cd.ge(this.rightPoints,e,Hy);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};lu.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return w1(this,e);var n=this.left.remove(e);return n===Tc?(this.left=null,this.count-=1,vi):(n===vi&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return Ca;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return w1(this,e);var n=this.right.remove(e);return n===Tc?(this.right=null,this.count-=1,vi):(n===vi&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?Tc:Ca;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var i=this,a=this.left;a.right;)i=a,a=a.right;if(i===this)a.right=this.right;else{var s=this.left,n=this.right;i.count-=a.count,i.right=a.left,a.left=s,a.right=n}am(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?am(this,this.left):am(this,this.right);return vi}for(var s=Cd.ge(this.leftPoints,e,Uy);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function jT(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return IT(this.rightPoints,e,t)}else return jT(this.leftPoints,t)};lu.queryInterval=function(e,t,r){if(ethis.mid&&this.right){var n=this.right.queryInterval(e,t,r);if(n)return n}return tthis.mid?IT(this.rightPoints,e,r):jT(this.leftPoints,r)};function u6(e,t){return e-t}function Uy(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Hy(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Xa(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(j=W,M=W):(j=Math.min(j,W),M=Math.max(M,W)),O.push(l({index:W,isScrolling:k,key:p(W),parent:n,style:(pe={height:s.getHeight(W)},D(pe,b==="ltr"?"left":"right",se),D(pe,"position","absolute"),D(pe,"top",oe),D(pe,"width",s.getWidth(W)),pe)}))}),P0&&arguments[0]!==void 0?arguments[0]:{};ht(this,e),D(this,"_cellMeasurerCache",void 0),D(this,"_columnIndexOffset",void 0),D(this,"_rowIndexOffset",void 0),D(this,"columnWidth",function(l){var c=l.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),D(this,"rowHeight",function(l){var c=l.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=o===void 0?0:o,a=r.rowIndexOffset,s=a===void 0?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=s}return St(e,[{key:"clear",value:function(r,n){this._cellMeasurerCache.clear(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"set",value:function(r,n,o,i){this._cellMeasurerCache.set(r+this._rowIndexOffset,n+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function k1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t0?new lm({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new lm({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new lm({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return St(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,s):s}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,l=this.props,c=l.fixedColumnCount,d=l.fixedRowCount,f=Math.max(0,i-c),p=Math.max(0,s-d);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:p}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:f,rowIndex:p}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:s}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:f,rowIndex:s}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var n=this.props,o=n.scrollLeft,i=n.scrollTop;if(o>0||i>0){var a={};o>0&&(a.scrollLeft=o),i>0&&(a.scrollTop=i),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var n=this.props,o=n.onScroll,i=n.onSectionRendered;n.onScrollbarPresenceChange,n.scrollLeft;var a=n.scrollToColumn;n.scrollTop;var s=n.scrollToRow,l=Vs(n,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,d=c.scrollLeft,f=c.scrollTop;return N.createElement("div",{style:this._containerOuterStyle},N.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(Jt({},l,{onScroll:o,scrollLeft:d}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Jt({},l,{onScroll:o,scrollTop:f})),this._renderBottomRightGrid(Jt({},l,{onScroll:o,onSectionRendered:i,scrollLeft:d,scrollToColumn:a,scrollToRow:s,scrollTop:f}))))}},{key:"_getBottomGridHeight",value:function(n){var o=n.height,i=this._getTopGridHeight(n);return o-i}},{key:"_getLeftGridWidth",value:function(n){var o=n.fixedColumnCount,i=n.columnWidth;if(this._leftGridWidth==null)if(typeof i=="function"){for(var a=0,s=0;s=0?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null&&n.scrollTop>=0?n.scrollTop:o.scrollTop}:null}}]),t}(N.PureComponent);D(Yf,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Yf.propTypes={};su(Yf);var zT=function(e){Sr(t,e);function t(r,n){var o;return ht(this,t),o=yr(this,Vt(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Y(o)),o}return St(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,l=o.scrollLeft,c=o.scrollTop,d=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:l,scrollTop:c,scrollWidth:d})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,l=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:l,scrollWidth:c})}}]),t}(N.PureComponent);zT.propTypes={};function v6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.defaultSortBy,n=t.defaultSortDirection,o=n===void 0?{}:n;if(!e)throw Error('Required parameter "sortCallback" not specified');var i=r||[],a={};i.forEach(function(l){a[l]=o[l]!==void 0?o[l]:"ASC"});function s(l){var c=l.defaultSortDirection,d=l.event,f=l.sortBy;if(d.shiftKey)a[f]!==void 0?a[f]=a[f]==="ASC"?"DESC":"ASC":(a[f]=c,i.push(f));else if(d.ctrlKey||d.metaKey){var p=i.indexOf(f);p>=0&&(i.splice(p,1),delete a[f])}else{i.length=0,i.push(f);var g=Object.keys(a);g.forEach(function(S){S!==f&&delete a[S]}),a[f]!==void 0?a[f]=a[f]==="ASC"?"DESC":"ASC":a[f]=c}e({sortBy:i,sortDirection:a})}return{sort:s,sortBy:i,sortDirection:a}}function NT(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function AT(e){var t=e.cellData;return t==null?"":String(t)}function Vy(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}Vy.propTypes=null;var co={ASC:"ASC",DESC:"DESC"};function Gy(e){var t=e.sortDirection,r=bn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===co.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===co.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===co.ASC?N.createElement("path",{d:"M7 14l5-5 5 5z"}):N.createElement("path",{d:"M7 10l5 5 5-5z"}),N.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}Gy.propTypes={};function Ky(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[N.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return i&&a.push(N.createElement(Gy,{key:"SortIndicator",sortDirection:o})),a}Ky.propTypes=null;function Yy(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,l=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(i||a||s||l||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(g){return i({event:g,index:n,rowData:d})}),a&&(p.onDoubleClick=function(g){return a({event:g,index:n,rowData:d})}),s&&(p.onMouseOut=function(g){return s({event:g,index:n,rowData:d})}),l&&(p.onMouseOver=function(g){return l({event:g,index:n,rowData:d})}),c&&(p.onContextMenu=function(g){return c({event:g,index:n,rowData:d})})),N.createElement("div",Z({},p,{className:t,key:o,role:"row",style:f}),r)}Yy.propTypes=null;var Qy=function(e){Sr(t,e);function t(){return ht(this,t),yr(this,Vt(t).apply(this,arguments))}return t}(N.Component);D(Qy,"defaultProps",{cellDataGetter:NT,cellRenderer:AT,defaultSortDirection:co.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ky,style:{}});Qy.propTypes={};function T1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function la(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var n=Kl.findDOMNode(this.Grid),o=n.clientWidth||0,i=n.offsetWidth||0;return i-o}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var n=this,o=this.props,i=o.children,a=o.className,s=o.disableHeader,l=o.gridClassName,c=o.gridStyle,d=o.headerHeight,f=o.headerRowRenderer,p=o.height,g=o.id,S=o.noRowsRenderer,y=o.rowClassName,C=o.rowStyle,v=o.scrollToIndex,b=o.style,x=o.width,k=this.state.scrollbarWidth,E=s?p:p-d,O=typeof y=="function"?y({index:-1}):y,_=typeof C=="function"?C({index:-1}):C;return this._cachedColumnStyles=[],N.Children.toArray(i).forEach(function(P,I){var j=n._getFlexStyleForColumn(P,P.props.style);n._cachedColumnStyles[I]=la({overflow:"hidden"},j)}),N.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":N.Children.toArray(i).length,"aria-rowcount":this.props.rowCount,className:bn("ReactVirtualized__Table",a),id:g,role:"grid",style:b},!s&&f({className:bn("ReactVirtualized__Table__headerRow",O),columns:this._getHeaderColumns(),style:la({height:d,overflow:"hidden",paddingRight:k,width:x},_)}),N.createElement(uo,Z({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:bn("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:x,columnCount:1,height:E,id:void 0,noContentRenderer:S,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:k,scrollToRow:v,style:la({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,l=n.rowData,c=n.rowIndex,d=this.props.onColumnClick,f=o.props,p=f.cellDataGetter,g=f.cellRenderer,S=f.className,y=f.columnData,C=f.dataKey,v=f.id,b=p({columnData:y,dataKey:C,rowData:l}),x=g({cellData:b,columnData:y,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:l,rowIndex:c}),k=function(P){d&&d({columnData:y,dataKey:C,event:P})},E=this._cachedColumnStyles[i],O=typeof x=="string"?x:null;return N.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:bn("ReactVirtualized__Table__rowColumn",S),key:"Row"+c+"-Col"+i,onClick:k,role:"gridcell",style:E,title:O},x)}},{key:"_createHeader",value:function(n){var o=n.column,i=n.index,a=this.props,s=a.headerClassName,l=a.headerStyle,c=a.onHeaderClick,d=a.sort,f=a.sortBy,p=a.sortDirection,g=o.props,S=g.columnData,y=g.dataKey,C=g.defaultSortDirection,v=g.disableSort,b=g.headerRenderer,x=g.id,k=g.label,E=!v&&d,O=bn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),_=this._getFlexStyleForColumn(o,la({},l,{},o.props.headerStyle)),P=b({columnData:S,dataKey:y,disableSort:v,label:k,sortBy:f,sortDirection:p}),I,j,M,$,B;if(E||c){var W=f!==y,se=W?C:p===co.DESC?co.ASC:co.DESC,oe=function(ae){E&&d({defaultSortDirection:C,event:ae,sortBy:y,sortDirection:se}),c&&c({columnData:S,dataKey:y,event:ae})},pe=function(ae){(ae.key==="Enter"||ae.key===" ")&&oe(ae)};B=o.props["aria-label"]||k||y,$="none",M=0,I=oe,j=pe}return f===y&&($=p===co.ASC?"ascending":"descending"),N.createElement("div",{"aria-label":B,"aria-sort":$,className:O,id:x,key:"Header-Col"+i,onClick:I,onKeyDown:j,role:"columnheader",style:_,tabIndex:M},P)}},{key:"_createRow",value:function(n){var o=this,i=n.rowIndex,a=n.isScrolling,s=n.key,l=n.parent,c=n.style,d=this.props,f=d.children,p=d.onRowClick,g=d.onRowDoubleClick,S=d.onRowRightClick,y=d.onRowMouseOver,C=d.onRowMouseOut,v=d.rowClassName,b=d.rowGetter,x=d.rowRenderer,k=d.rowStyle,E=this.state.scrollbarWidth,O=typeof v=="function"?v({index:i}):v,_=typeof k=="function"?k({index:i}):k,P=b({index:i}),I=N.Children.toArray(f).map(function($,B){return o._createColumn({column:$,columnIndex:B,isScrolling:a,parent:l,rowData:P,rowIndex:i,scrollbarWidth:E})}),j=bn("ReactVirtualized__Table__row",O),M=la({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:E},_);return x({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:g,onRowRightClick:S,onRowMouseOver:y,onRowMouseOut:C,rowData:P,style:M})}},{key:"_getFlexStyleForColumn",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i="".concat(n.props.flexGrow," ").concat(n.props.flexShrink," ").concat(n.props.width,"px"),a=la({},o,{flex:i,msFlex:i,WebkitFlex:i});return n.props.maxWidth&&(a.maxWidth=n.props.maxWidth),n.props.minWidth&&(a.minWidth=n.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var n=this,o=this.props,i=o.children,a=o.disableHeader,s=a?[]:N.Children.toArray(i);return s.map(function(l,c){return n._createHeader({column:l,index:c})})}},{key:"_getRowHeight",value:function(n){var o=this.props.rowHeight;return typeof o=="function"?o({index:n}):o}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.scrollHeight,a=n.scrollTop,s=this.props.onScroll;s({clientHeight:o,scrollHeight:i,scrollTop:a})}},{key:"_onSectionRendered",value:function(n){var o=n.rowOverscanStartIndex,i=n.rowOverscanStopIndex,a=n.rowStartIndex,s=n.rowStopIndex,l=this.props.onRowsRendered;l({overscanStartIndex:o,overscanStopIndex:i,startIndex:a,stopIndex:s})}},{key:"_setRef",value:function(n){this.Grid=n}},{key:"_setScrollbarWidth",value:function(){var n=this.getScrollbarWidth();this.setState({scrollbarWidth:n})}}]),t}(N.PureComponent);D(Xy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:$y,overscanRowCount:10,rowRenderer:Yy,headerRowRenderer:Vy,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});Xy.propTypes={};var Ko=[],sl=null,Ri=null;function MT(){Ri&&(Ri=null,document.body&&sl!=null&&(document.body.style.pointerEvents=sl),sl=null)}function g6(){MT(),Ko.forEach(function(e){return e.__resetIsScrolling()})}function y6(){Ri&&Qa(Ri);var e=0;Ko.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Ri=Ly(g6,e)}function LT(e){e.currentTarget===window&&sl==null&&document.body&&(sl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),y6(),Ko.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function E1(e,t){Ko.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",LT),Ko.push(e)}function O1(e,t){Ko=Ko.filter(function(r){return r!==e}),Ko.length||(t.removeEventListener("scroll",LT),Ri&&(Qa(Ri),MT()))}var Jy=function(t){return t===window},Gs=function(t){return t.getBoundingClientRect()};function I1(e,t){if(e)if(Jy(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:typeof n=="number"?n:0,width:typeof o=="number"?o:0}}else return Gs(e);else return{height:t.serverHeight,width:t.serverWidth}}function S6(e,t){if(Jy(t)&&document.documentElement){var r=document.documentElement,n=Gs(e),o=Gs(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=$T(t),a=Gs(e),s=Gs(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function $T(e){return Jy(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}var j1,z1;function N1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function b6(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,o=this.props.onResize,i=this.state,a=i.height,s=i.width,l=this._child||Kl.findDOMNode(this);if(l instanceof Element&&n){var c=S6(l,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var d=I1(n,this.props);(a!==d.height||s!==d.width)&&(this.setState({height:d.height,width:d.width}),o({height:d.height,width:d.width}))}},{key:"componentDidMount",value:function(){var n=this.props.scrollElement;this._detectElementResize=xT(),this.updatePosition(n),n&&(E1(this,n),this._registerResizeListener(n)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(n,o){var i=this.props.scrollElement,a=n.scrollElement;a!==i&&a!=null&&i!=null&&(this.updatePosition(i),O1(this,a),E1(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(O1(this,n),this._unregisterResizeListener(n)),this._isMounted=!1}},{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.isScrolling,a=o.scrollTop,s=o.scrollLeft,l=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:l,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),D(j1,"propTypes",null),z1);D(FT,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:w6,scrollElement:DT(),serverHeight:0,serverWidth:0});const _6=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:Dy,AutoSizer:CT,CellMeasurer:RT,CellMeasurerCache:TW,Collection:Fy,Column:Qy,ColumnSizer:kT,Grid:uo,InfiniteLoader:By,List:TT,Masonry:qy,MultiGrid:Yf,ScrollSync:zT,SortDirection:co,SortIndicator:Gy,Table:Xy,WindowScroller:FT,accessibilityOverscanIndicesGetter:$y,createMasonryCellPositioner:m6,createTableMultiSort:v6,defaultCellRangeRenderer:_T,defaultOverscanIndicesGetter:wT,defaultTableCellDataGetter:NT,defaultTableCellRenderer:AT,defaultTableHeaderRenderer:Ky,defaultTableHeaderRowRenderer:Vy,defaultTableRowRenderer:Yy},Symbol.toStringTag,{value:"Module"})),x6=mr(_6);function io(e,t,r){return t<=e&&e<=r}function Qf(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function C6(e){for(var t=String(e),r=t.length,n=0,o=[];n57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(n===r-1)o.push(65533);else{var a=e.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=i&1023,l=a&1023;o.push(65536+(s<<10)+l),n+=1}else o.push(65533)}n+=1}return o}function R6(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var Rd=-1;function Zy(e){this.tokens=[].slice.call(e)}Zy.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Rd},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Ja=-1;function um(e,t){if(e)throw TypeError("Decoder error");return t||65533}var kd="utf-8";function Pd(e,t){if(!(this instanceof Pd))return new Pd(e,t);if(e=e!==void 0?String(e).toLowerCase():kd,e!==kd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Qf(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Pd.prototype={decode:function(t,r){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),r=Qf(r),this._streaming||(this._decoder=new k6({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new Zy(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==Ja);)a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));if(!this._streaming){do{if(a=this._decoder.handler(o,o.read()),a===Ja)break;a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),R6(i)}};function Td(e,t){if(!(this instanceof Td))return new Td(e,t);if(e=e!==void 0?String(e).toLowerCase():kd,e!==kd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Qf(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Td.prototype={encode:function(t,r){t=t?String(t):"",r=Qf(r),this._streaming||(this._encoder=new P6(this._options)),this._streaming=!!r.stream;for(var n=[],o=new Zy(C6(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Ja);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Ja;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function k6(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,l){if(l===Rd&&o!==0)return o=0,um(t);if(l===Rd)return Ja;if(o===0){if(io(l,0,127))return l;if(io(l,194,223))o=1,r=l-192;else if(io(l,224,239))l===224&&(i=160),l===237&&(a=159),o=2,r=l-224;else if(io(l,240,244))l===240&&(i=144),l===244&&(a=143),o=3,r=l-240;else return um(t);return r=r<<6*o,null}if(!io(l,i,a))return r=o=n=0,i=128,a=191,s.prepend(l),um(t);if(i=128,a=191,n+=1,r+=l-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function P6(e){e.fatal,this.handler=function(t,r){if(r===Rd)return Ja;if(io(r,0,127))return r;var n,o;io(r,128,2047)?(n=1,o=192):io(r,2048,65535)?(n=2,o=224):io(r,65536,1114111)&&(n=3,o=240);for(var i=[(r>>6*n)+o];n>0;){var a=r>>6*(n-1);i.push(128|a&63),n-=1}return i}}const T6=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Pd,TextEncoder:Td},Symbol.toStringTag,{value:"Module"})),E6=mr(T6);var A1={},M1;function O6(){return M1||(M1=1,function(e){if(e.fetch)return;var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(_){return _&&DataView.prototype.isPrototypeOf(_)},o=ArrayBuffer.isView||function(_){return _&&r.indexOf(Object.prototype.toString.call(_))>-1};function i(_){if(typeof _!="string"&&(_=String(_)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(_))throw new TypeError("Invalid character in header field name");return _.toLowerCase()}function a(_){return typeof _!="string"&&(_=String(_)),_}function s(_){var P={next:function(){var I=_.shift();return{done:I===void 0,value:I}}};return t.iterable&&(P[Symbol.iterator]=function(){return P}),P}function l(_){this.map={},_ instanceof l?_.forEach(function(P,I){this.append(I,P)},this):Array.isArray(_)?_.forEach(function(P){this.append(P[0],P[1])},this):_&&Object.getOwnPropertyNames(_).forEach(function(P){this.append(P,_[P])},this)}l.prototype.append=function(_,P){_=i(_),P=a(P);var I=this.map[_];this.map[_]=I?I+","+P:P},l.prototype.delete=function(_){delete this.map[i(_)]},l.prototype.get=function(_){return _=i(_),this.has(_)?this.map[_]:null},l.prototype.has=function(_){return this.map.hasOwnProperty(i(_))},l.prototype.set=function(_,P){this.map[i(_)]=a(P)},l.prototype.forEach=function(_,P){for(var I in this.map)this.map.hasOwnProperty(I)&&_.call(P,this.map[I],I,this)},l.prototype.keys=function(){var _=[];return this.forEach(function(P,I){_.push(I)}),s(_)},l.prototype.values=function(){var _=[];return this.forEach(function(P){_.push(P)}),s(_)},l.prototype.entries=function(){var _=[];return this.forEach(function(P,I){_.push([I,P])}),s(_)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function c(_){if(_.bodyUsed)return Promise.reject(new TypeError("Already read"));_.bodyUsed=!0}function d(_){return new Promise(function(P,I){_.onload=function(){P(_.result)},_.onerror=function(){I(_.error)}})}function f(_){var P=new FileReader,I=d(P);return P.readAsArrayBuffer(_),I}function p(_){var P=new FileReader,I=d(P);return P.readAsText(_),I}function g(_){for(var P=new Uint8Array(_),I=new Array(P.length),j=0;j-1?P:_}function b(_,P){P=P||{};var I=P.body;if(_ instanceof b){if(_.bodyUsed)throw new TypeError("Already read");this.url=_.url,this.credentials=_.credentials,P.headers||(this.headers=new l(_.headers)),this.method=_.method,this.mode=_.mode,!I&&_._bodyInit!=null&&(I=_._bodyInit,_.bodyUsed=!0)}else this.url=String(_);if(this.credentials=P.credentials||this.credentials||"omit",(P.headers||!this.headers)&&(this.headers=new l(P.headers)),this.method=v(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(I)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function x(_){var P=new FormData;return _.trim().split("&").forEach(function(I){if(I){var j=I.split("="),M=j.shift().replace(/\+/g," "),$=j.join("=").replace(/\+/g," ");P.append(decodeURIComponent(M),decodeURIComponent($))}}),P}function k(_){var P=new l,I=_.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(j){var M=j.split(":"),$=M.shift().trim();if($){var B=M.join(":").trim();P.append($,B)}}),P}y.call(b.prototype);function E(_,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new l(P.headers),this.url=P.url||"",this._initBody(_)}y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},E.error=function(){var _=new E(null,{status:0,statusText:""});return _.type="error",_};var O=[301,302,303,307,308];E.redirect=function(_,P){if(O.indexOf(P)===-1)throw new RangeError("Invalid status code");return new E(null,{status:P,headers:{location:_}})},e.Headers=l,e.Request=b,e.Response=E,e.fetch=function(_,P){return new Promise(function(I,j){var M=new b(_,P),$=new XMLHttpRequest;$.onload=function(){var B={status:$.status,statusText:$.statusText,headers:k($.getAllResponseHeaders()||"")};B.url="responseURL"in $?$.responseURL:B.headers.get("X-Request-URL");var W="response"in $?$.response:$.responseText;I(new E(W,B))},$.onerror=function(){j(new TypeError("Network request failed"))},$.ontimeout=function(){j(new TypeError("Network request failed"))},$.open(M.method,M.url,!0),M.credentials==="include"?$.withCredentials=!0:M.credentials==="omit"&&($.withCredentials=!1),"responseType"in $&&t.blob&&($.responseType="blob"),M.headers.forEach(function(B,W){$.setRequestHeader(W,B)}),$.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:gi)),A1}function L1(e,t){for(var r=0;r0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");g0(this)}},Qn(e,[{key:"closed",get:function(){return _i(this)===!1?Promise.reject(Zu("closed")):this._closedPromise}}]),e}(),nU=function(){function e(r){if(!ro(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(da(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Ao(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");hE(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return Ys(this)?this._ownerReadableStream===void 0?Promise.reject(Md("cancel")):pE(this,n):Promise.reject(ec("cancel"))},t.read=function(n){return Ys(this)?this._ownerReadableStream===void 0?Promise.reject(Md("read from")):ArrayBuffer.isView(n)?Id(n.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):n.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):oU(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(ec("read"))},t.releaseLock=function(){if(!Ys(this))throw ec("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");g0(this)}},Qn(e,[{key:"closed",get:function(){return Ys(this)?this._closedPromise:Promise.reject(ec("closed"))}}]),e}();function Ys(e){return!(!ps(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function _i(e){return!(!ps(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function hE(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?yU(e):t._state==="closed"?bU(e):(SU(e,t._storedError),e._closedPromise.catch(function(){}))}function pE(e,t){var r=e._ownerReadableStream;return ki(r,t)}function g0(e){e._ownerReadableStream._state==="readable"?TE(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):wU(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function oU(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):lU(n._readableStreamController,t,r)}function y0(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Zo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[d0](t)}var mE=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Ju(this)===!1)throw tc("close");if(Ad(this)===!1)throw new TypeError("The stream is not in a state that permits close");zd(this)},t.enqueue=function(n){if(Ju(this)===!1)throw tc("enqueue");if(Ad(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return Nd(this,n)},t.error=function(n){if(Ju(this)===!1)throw tc("error");ei(this,n)},t[c0]=function(r){ms(this);var n=this._cancelAlgorithm(r);return jd(this),n},t[d0]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=q8(this);return this._closeRequested===!0&&this._queue.length===0?(jd(this),cu(n)):Ll(this),Promise.resolve(Zo(o,!1,r))}var i=uE(n,r);return Ll(this),i},Qn(e,[{key:"desiredSize",get:function(){if(Ju(this)===!1)throw tc("desiredSize");return S0(this)}}]),e}();function Ju(e){return!(!ps(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Ll(e){var t=vE(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){if(e._pulling=!1,e._pullAgain===!0)return e._pullAgain=!1,Ll(e)},function(n){ei(e,n)}).catch(ao)}}function vE(e){var t=e._controlledReadableStream;if(Ad(e)===!1||e._started===!1)return!1;if(Ao(t)===!0&&th(t)>0)return!0;var r=S0(e);return r>0}function jd(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function zd(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(jd(e),cu(t))}function Nd(e,t){var r=e._controlledReadableStream;if(Ao(r)===!0&&th(r)>0)m0(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw ei(e,o),o}try{V8(e,t,n)}catch(o){throw ei(e,o),o}}Ll(e)}function ei(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(ms(e),jd(e),cE(r,t))}function S0(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function iU(e){return vE(e)!==!0}function Ad(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function gE(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ms(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=o,e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,Ll(t)},function(l){ei(t,l)}).catch(ao)}function aU(e,t,r,n){var o=Object.create(mE.prototype);function i(){return lE(t,"start",[o])}var a=Od(t,"pull",0,[o]),s=Od(t,"cancel",1,[]);gE(e,o,i,a,s,r,n)}var sU=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(hm(this)===!1)throw pm("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Id(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");pU(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(hm(this)===!1)throw pm("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(n))throw new TypeError("You can only respond with array buffer views");if(Id(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");mU(this._associatedReadableByteStreamController,n)},Qn(e,[{key:"view",get:function(){if(hm(this)===!1)throw pm("view");return this._view}}]),e}(),yE=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(da(this)===!1)throw Ms("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var n=this._controlledReadableByteStream._state;if(n!=="readable")throw new TypeError("The stream (in "+n+" state) is not in the readable state and cannot be closed");fU(this)},t.enqueue=function(n){if(da(this)===!1)throw Ms("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var o=this._controlledReadableByteStream._state;if(o!=="readable")throw new TypeError("The stream (in "+o+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(n))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(Id(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");hU(this,n)},t.error=function(n){if(da(this)===!1)throw Ms("error");du(this,n)},t[c0]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}ms(this);var o=this._cancelAlgorithm(r);return rh(this),o},t[d0]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,xE(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(Zo(i,!1,r))}var a=this._autoAllocateChunkSize;if(a!==void 0){var s;try{s=new ArrayBuffer(a)}catch(d){return Promise.reject(d)}var l={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(l)}var c=uE(n,r);return qi(this),c},Qn(e,[{key:"byobRequest",get:function(){if(da(this)===!1)throw Ms("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0],o=new Uint8Array(n.buffer,n.byteOffset+n.bytesFilled,n.byteLength-n.bytesFilled),i=Object.create(sU.prototype);gU(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(da(this)===!1)throw Ms("desiredSize");return kE(this)}}]),e}();function da(e){return!(!ps(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function hm(e){return!(!ps(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function qi(e){var t=dU(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,qi(e))},function(n){du(e,n)}).catch(ao)}}function SE(e){w0(e),e._pendingPullIntos=[]}function b0(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=bE(t);t.readerType==="default"?m0(e,n,r):tU(e,n,r)}function bE(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function Ec(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function wE(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,o=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+o,a=i-i%r,s=o,l=!1;a>n&&(s=a-t.bytesFilled,l=!0);for(var c=e._queue;s>0;){var d=c[0],f=Math.min(s,d.byteLength),p=t.byteOffset+t.bytesFilled;B8(t.buffer,p,d.buffer,d.byteOffset,f),d.byteLength===f?c.shift():(d.byteOffset+=f,d.byteLength-=f),e._queueTotalSize-=f,_E(e,f,t),s-=f}return l}function _E(e,t,r){w0(e),r.bytesFilled+=t}function xE(e){e._queueTotalSize===0&&e._closeRequested===!0?(rh(e),cu(e._controlledReadableByteStream)):qi(e)}function w0(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function CE(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];wE(e,t)===!0&&(_0(e),b0(e._controlledReadableByteStream,t))}}function lU(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=eh(t.buffer),s={buffer:a,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:o,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),V1(n,r);if(n._state==="closed"){var l=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Zo(l,!0,r))}if(e._queueTotalSize>0){if(wE(e,s)===!0){var c=bE(s);return xE(e),Promise.resolve(Zo(c,!1,r))}if(e._closeRequested===!0){var d=new TypeError("Insufficient bytes to fill elements in the given buffer");return du(e,d),Promise.reject(d)}}e._pendingPullIntos.push(s);var f=V1(n,r);return qi(e),f}function uU(e,t){t.buffer=eh(t.buffer);var r=e._controlledReadableByteStream;if(v0(r)===!0)for(;dE(r)>0;){var n=_0(e);b0(r,n)}}function cU(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(_E(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);Ec(e,i,0,i.byteLength)}r.buffer=eh(r.buffer),r.bytesFilled-=n,b0(e._controlledReadableByteStream,r),CE(e)}}function RE(e,t){var r=e._pendingPullIntos[0],n=e._controlledReadableByteStream;if(n._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");uU(e,r)}else cU(e,t,r);qi(e)}function _0(e){var t=e._pendingPullIntos.shift();return w0(e),t}function dU(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(fE(t)===!0&&th(t)>0||v0(t)===!0&&dE(t)>0)return!0;var r=kE(e);return r>0}function rh(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function fU(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0){e._closeRequested=!0;return}if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos[0];if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw du(e,n),n}}rh(e),cu(t)}function hU(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=eh(n);if(fE(r)===!0)if(th(r)===0)Ec(e,a,o,i);else{var s=new Uint8Array(a,o,i);m0(r,s,!1)}else v0(r)===!0?(Ec(e,a,o,i),CE(e)):Ec(e,a,o,i);qi(e)}function du(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(SE(e),ms(e),rh(e),cE(r,t))}function kE(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function pU(e,t){if(t=Number(t),W8(t)===!1)throw new RangeError("bytesWritten must be a finite");RE(e,t)}function mU(e,t){var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,RE(e,t.byteLength)}function PE(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,SE(t),t._queue=t._queueTotalSize=void 0,ms(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=zv(i),t._pullAlgorithm=n,t._cancelAlgorithm=o,t._autoAllocateChunkSize=a,t._pendingPullIntos=[],e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,qi(t)},function(l){du(t,l)}).catch(ao)}function vU(e,t,r){var n=Object.create(yE.prototype);function o(){return lE(t,"start",[n])}var i=Od(t,"pull",0,[n]),a=Od(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),I6(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");PE(e,n,o,i,a,r,s)}function gU(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function G1(e){if(typeof e!="object"||e===null)return!1;var t=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return t.call(e),!0}catch{return!1}}function ua(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Md(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Zu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function yU(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function SU(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function bU(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function TE(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function wU(e,t){e._closedPromise=Promise.reject(t)}function _U(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function ec(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function tc(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function pm(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Ms(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var xU=ii.ReadableStream,CU=Ve.createDataProperty,RU=function(){function e(r){var n=r.highWaterMark;CU(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),kU=Ve.createDataProperty,PU=function(){function e(r){var n=r.highWaterMark;kU(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();UT("streams:transform-stream:verbose");var TU=Ve.InvokeOrNoop,EU=Ve.CreateAlgorithmFromUnderlyingMethod,OU=Ve.PromiseCall,EE=Ve.typeIsObject,K1=Ve.ValidateAndNormalizeHighWaterMark;Ve.IsNonNegativeNumber;var Y1=Ve.MakeSizeAlgorithmFromSizeFunction,IU=ii.CreateReadableStream,OE=ii.ReadableStreamDefaultControllerClose,jU=ii.ReadableStreamDefaultControllerEnqueue,zU=ii.ReadableStreamDefaultControllerError,NU=ii.ReadableStreamDefaultControllerGetDesiredSize,AU=ii.ReadableStreamDefaultControllerHasBackpressure,x0=ii.ReadableStreamDefaultControllerCanCloseOrEnqueue,MU=Pn.CreateWritableStream,LU=Pn.WritableStreamDefaultControllerErrorIfNeeded,IE=function(){function e(t,r,n){t===void 0&&(t={}),r===void 0&&(r={}),n===void 0&&(n={});var o=r.size,i=r.highWaterMark,a=n.size,s=n.highWaterMark,l=t.writableType;if(l!==void 0)throw new RangeError("Invalid writable type specified");var c=Y1(o);i===void 0&&(i=1),i=K1(i);var d=t.readableType;if(d!==void 0)throw new RangeError("Invalid readable type specified");var f=Y1(a);s===void 0&&(s=0),s=K1(s);var p,g=new Promise(function(y){p=y});jE(this,g,i,c,s,f),DU(this,t);var S=TU(t,"start",[this._transformStreamController]);p(S)}return Qn(e,[{key:"readable",get:function(){if(Q1(this)===!1)throw J1("readable");return this._readable}},{key:"writable",get:function(){if(Q1(this)===!1)throw J1("writable");return this._writable}}]),e}();function $U(e,t,r,n,o,i,a){n===void 0&&(n=1),o===void 0&&(o=function(){return 1}),i===void 0&&(i=0),a===void 0&&(a=function(){return 1});var s=Object.create(IE.prototype),l,c=new Promise(function(p){l=p});jE(s,c,n,o,i,a);var d=Object.create(zE.prototype);NE(s,d,t,r);var f=e();return l(f),s}function jE(e,t,r,n,o,i){function a(){return t}function s(p){return WU(e,p)}function l(p){return UU(e,p)}function c(){return HU(e)}e._writable=MU(a,s,c,l,r,n);function d(){return qU(e)}function f(p){return oh(e,p),Promise.resolve()}e._readable=IU(a,d,f,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,ih(e,!0),e._transformStreamController=void 0}function Q1(e){return!(!EE(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function nh(e,t){zU(e._readable._readableStreamController,t),oh(e,t)}function oh(e,t){AE(e._transformStreamController),LU(e._writable._writableStreamController,t),e._backpressure===!0&&ih(e,!1)}function ih(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var zE=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(rc(this)===!1)throw nc("enqueue");ME(this,n)},t.error=function(n){if(rc(this)===!1)throw nc("error");FU(this,n)},t.terminate=function(){if(rc(this)===!1)throw nc("terminate");BU(this)},Qn(e,[{key:"desiredSize",get:function(){if(rc(this)===!1)throw nc("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return NU(n)}}]),e}();function rc(e){return!(!EE(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function NE(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function DU(e,t){var r=Object.create(zE.prototype),n=function(s){try{return ME(r,s),Promise.resolve()}catch(l){return Promise.reject(l)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return OU(o,t,[s,r])}}var i=EU(t,"flush",0,[r]);NE(e,r,n,i)}function AE(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function ME(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(x0(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{jU(n,t)}catch(i){throw oh(r,i),r._readable._storedError}var o=AU(n);o!==r._backpressure&&ih(r,!0)}function FU(e,t){nh(e._controlledTransformStream,t)}function X1(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw nh(e._controlledTransformStream,n),n})}function BU(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;x0(r)===!0&&OE(r);var n=new TypeError("TransformStream terminated");oh(t,n)}function WU(e,t){var r=e._transformStreamController;if(e._backpressure===!0){var n=e._backpressureChangePromise;return n.then(function(){var o=e._writable,i=o._state;if(i==="erroring")throw o._storedError;return X1(r,t)})}return X1(r,t)}function UU(e,t){return nh(e,t),Promise.resolve()}function HU(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return AE(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;x0(o)===!0&&OE(o)}).catch(function(o){throw nh(e,o),t._storedError})}function qU(e){return ih(e,!1),e._backpressureChangePromise}var VU={CreateTransformStream:$U,TransformStream:IE};function nc(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function J1(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var GU=VU.TransformStream;const KU=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:RU,CountQueuingStrategy:PU,ReadableStream:xU,TransformStream:GU,WritableStream:F8},Symbol.toStringTag,{value:"Module"})),YU=mr(KU);function QU(e,t){return fetch(e,t).then(r=>({body:r.body,headers:r.headers,ok:r.ok,status:r.status,statusText:r.statusText,url:r.url}))}let XU=class LE{constructor(t={}){this.h={},t instanceof LE&&t.forEach((r,n)=>this.append(n,r)),Object.getOwnPropertyNames(t).forEach(r=>this.append(r,t[r]))}append(t,r){t=t.toLowerCase(),Array.isArray(this.h[t])||(this.h[t]=[]),this.h[t].push(r)}set(t,r){this.h[t.toLowerCase()]=[r]}has(t){return Array.isArray(this.h[t.toLowerCase()])}get(t){if(t=t.toLowerCase(),Array.isArray(this.h[t]))return this.h[t][0]}getAll(t){return this.h[t.toLowerCase()].concat()}entries(){const t=[];return this.forEach((r,n)=>{t.push([n,r])}),JU(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function JU(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function mm(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function Z1({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,l=!1;const c=new ReadableStream({start(p){s=p},cancel(){l=!0,i.abort()}}),{method:d="GET",signal:f}=o;if(i.open(d,n),i.responseType=e,i.withCredentials=o.credentials!=="omit",o.headers)for(const p of o.headers.entries())i.setRequestHeader(p[0],p[1]);return new Promise((p,g)=>{if(o.body&&(d==="GET"||d==="HEAD")&&g(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),f)if(f.aborted){g(mm());return}else f.addEventListener("abort",()=>{i.abort(),s&&s.error(mm()),g(mm())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:t9(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:e9(i.responseURL,n)})},i.onerror=function(){return g(new TypeError("Network request failed"))},i.ontimeout=function(){g(new TypeError("Network request failed"))},i.onprogress=function(){if(!l){const S=a(i.response);s.enqueue(S)}},i.onload=function(){s.close()},i.send(o.body)})}}function ZU(){return typeof Headers<"u"?new Headers:new XU}function e9(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function t9(e){const t=ZU();if(e){const r=e.split(`\r +`);for(let n=0;n0){const a=o.substring(0,i),s=o.substring(i+2);t.append(a,s)}}}return t}let vm=null;function r9(){return vm||(vm=n9()),vm}function n9(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return QU;const e="moz-chunked-arraybuffer";return o9(e)?Z1({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):Z1({responseType:"text",responseParserFactory:function(){const t=new TextEncoder;let r=0;return function(n){const o=n.substr(r);return r=n.length,t.encode(o,{stream:!0})}}})}function o9(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function C0(e,t={}){let r=t.transport;return r||(r=C0.transportFactory()),r(e,t)}C0.transportFactory=r9;const i9=Object.freeze(Object.defineProperty({__proto__:null,default:C0},Symbol.toStringTag,{value:"Module"})),a9=mr(i9);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?gi:self,function(){return function(r){function n(i){if(o[i])return o[i].exports;var a=o[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var o={};return n.m=r,n.c=o,n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="./",n(n.s=46)}([function(r){r.exports=N},function(r){function n(i,a){var s=i[1]||"",l=i[3];if(!l)return s;if(a&&typeof btoa=="function"){var c=o(l),d=l.sources.map(function(f){return"/*# sourceURL="+l.sourceRoot+f+" */"});return[s].concat(d).concat([c]).join(` +`)}return[s].join(` +`)}function o(i){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+a)+" */"}r.exports=function(i){var a=[];return a.toString=function(){return this.map(function(s){var l=n(s,i);return s[2]?"@media "+s[2]+"{"+l+"}":l}).join("")},a.i=function(s,l){typeof s=="string"&&(s=[[null,s,""]]);for(var c,d={},f=0;f"u"&&(j=I.apply(this,arguments)),j}}(function(){return window&&document&&document.all&&!window.atob}),b=function(I){return document.querySelector(I)},x=function(){var I={};return function(j){if(typeof j=="function")return j();if(typeof I[j]>"u"){var M=b.call(this,j);if(window.HTMLIFrameElement&&M instanceof window.HTMLIFrameElement)try{M=M.contentDocument.head}catch{M=null}I[j]=M}return I[j]}}(),k=null,E=0,O=[],_=o(5);r.exports=function(I,j){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");j=j||{},j.attrs=typeof j.attrs=="object"?j.attrs:{},j.singleton||typeof j.singleton=="boolean"||(j.singleton=v()),j.insertInto||(j.insertInto="head"),j.insertAt||(j.insertAt="bottom");var M=a(I,j);return i(M,j),function($){for(var B=[],W=0;WO?-1:O?O-1-$:-1},S=function(x){return x?Array.isArray(x)?x.length===1?Object(i.Range)(x[0],x[0]+1):Object(i.Range)(x[0],x[1]+1):Object(i.Range)(x,x+1):Object(i.Range)(0,0)},y=function(x,k){var E=new Uint8Array(x.length+k.length);return E.set(x,0),E.set(k,x.length),E},C=function(x,k){var E=k?y(k,x):x,O=E.length,_=0,P=0,I=Object(i.List)().withMutations(function(j){for(;PC.b?pe(se):J()}}),I),c(j,M)}return d(_,O),k(_,[{key:"render",value:function(){var P=this.props,I=P.resultsCount,j=P.filterActive,M=P.disabled,$="match"+(I===1?"":"es"),B=j?v.active:v.inactive;return Object(f.createElement)("div",{className:"react-lazylog-searchbar "+v.searchBar},Object(f.createElement)("input",{autoComplete:"off",type:"text",name:"search",placeholder:"Search",className:"react-lazylog-searchbar-input "+v.searchInput,onChange:this.handleSearchChange,onKeyPress:this.handleSearchKeyPress,value:this.state.keywords,disabled:M}),Object(f.createElement)("button",{disabled:M,className:"react-lazylog-searchbar-filter "+(j?"active":"inactive")+" "+v.button+" "+B,onClick:this.handleFilterToggle},Object(f.createElement)(y,null)),Object(f.createElement)("span",{className:"react-lazylog-searchbar-matches "+(I?"active":"inactive")+" "+(I?v.active:v.inactive)},I," ",$))}}]),_}(f.Component),Object.defineProperty(b,"propTypes",{enumerable:!0,writable:!0,value:{onSearch:p.func,onClearSearch:p.func,onFilterLinesWithMatches:p.func,resultsCount:p.number,filterActive:p.bool,disabled:p.bool}}),Object.defineProperty(b,"defaultProps",{enumerable:!0,writable:!0,value:{onSearch:function(){},onClearSearch:function(){},onFilterLinesWithMatches:function(){},resultsCount:0,filterActive:!1,disabled:!1}}),x)},function(r,n,o){var i=o(26);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._1lq6olr9h2p7MJDCA8c-aL { + height: 15px; + cursor: pointer; +} +`,""]),n.locals={filterLinesIcon:"_1lq6olr9h2p7MJDCA8c-aL"}},function(r,n,o){var i=o(28);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._3hsz3SFOTsWryCiRA9Mjtq { + display: flex; + align-items: center; + justify-content: flex-end; + font-family: "Monaco", monospace; + font-size: 12px; + background-color: #222222; + color: #d6d6d6; + padding: 10px; +} + +._2JObJsQyVcVoB1YD6078ip { + background-color: #464646; + color: #d6d6d6; + height: 20px; + min-width: 200px; + font-size: 12px; + padding: 2px 5px; + border: 1px solid #4e4e4e; + margin-right: 10px; +} + +._1NGepveS5BPffleJYyamDk { + color: #d6d6d6; + fill: #d6d6d6; +} + +._3cXa-36GYrmnrGIXEg46cX { + color: #464646; + fill: #464646; +} + +.qZaVIaYTJWY-GaoXJJ2Cp { + background: none; + border: none; + margin-right: 10px; +} +`,""]),n.locals={searchBar:"_3hsz3SFOTsWryCiRA9Mjtq",searchInput:"_2JObJsQyVcVoB1YD6078ip",active:"_1NGepveS5BPffleJYyamDk",inactive:"_3cXa-36GYrmnrGIXEg46cX",button:"qZaVIaYTJWY-GaoXJJ2Cp"}},function(r,n,o){function i(V){if(Array.isArray(V)){for(var G=0,q=Array(V.length);GFe&&(br=Kt-Fe,lr=lr.slice(-Fe),Kt=lr.count());var _e=Object(O.g)({follow:ye,scrollToLine:ge,previousCount:Et,count:Kt,offset:br});U.setState({lines:lr,offset:br,count:Kt,scrollToIndex:_e}),(be||Re)&&U.forceSearch()}}),Object.defineProperty(U,"handleEnd",{enumerable:!0,writable:!0,value:function(K){U.encodedLog=K,U.setState({loaded:!0}),U.props.onLoad&&U.props.onLoad()}}),Object.defineProperty(U,"handleError",{enumerable:!0,writable:!0,value:function(K){U.setState({error:K}),U.props.onError&&U.props.onError(K)}}),Object.defineProperty(U,"handleHighlight",{enumerable:!0,writable:!0,value:function(K){var ee=U.props.onHighlight,ne=U.state.isFilteringLinesWithMatches;if(K.target.id){var fe=+K.target.id;if(fe){var ge=U.state.highlight.first(),ye=U.state.highlight.last(),be=void 0;be=ge===fe?null:K.shiftKey&&ge?fe>ge?[ge,fe]:[fe,ye]:fe;var Re=Object(O.e)(be),Ne={highlight:Re};ne&&Object.assign(Ne,{scrollToIndex:Object(O.g)({scrollToLine:fe})}),U.setState(Ne,function(){ee&&ee(Re),ne&&U.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(U,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var ee=U.state,ne=ee.resultLines,fe=ee.searchKeywords,ge=U.props,ye=ge.caseInsensitive,be=ge.stream,Re=ge.websocket,Ne=be||Re||K!==fe?ae(K,U.encodedLog,ye):ne;U.setState({resultLines:Ne,isSearching:!0,searchKeywords:K},U.filterLinesWithMatches)}}),Object.defineProperty(U,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=U.state.searchKeywords;K&&K.length>O.b&&U.handleSearch(U.state.searchKeywords)}}),Object.defineProperty(U,"handleClearSearch",{enumerable:!0,writable:!0,value:function(){U.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:Object(p.List)(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:U.state.isFilteringLinesWithMatches,scrollToIndex:0})}}),Object.defineProperty(U,"handleFilterLinesWithMatches",{enumerable:!0,writable:!0,value:function(K){U.setState({isFilteringLinesWithMatches:K,filteredLines:Object(p.List)(),resultLineUniqueIndexes:[]},U.filterLinesWithMatches)}}),Object.defineProperty(U,"filterLinesWithMatches",{enumerable:!0,writable:!0,value:function(){var K=U.state,ee=K.resultLines,ne=K.lines,fe=K.isFilteringLinesWithMatches;if(0{const t=["Bytes","KB","MB","GB","TB"];if(e===0)return"0 Byte";const r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(2)+" "+t[r]},xr=e=>{if(isNaN(e)||e===void 0||e===null||e===0)return"0 B/s";const t=["B/s","KB/s","MB/s","GB/s","TB/s"],r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(2)+" "+t[r]},p9=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",P0=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),o=t>0?t+"h ":"",i=r>0?r+"m ":"",a=n+"s";return o+i+a},m9=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return P0(o)},T0=(e,t)=>e===0||t===0?"0%":p9(e/t*100),ex=e=>ot(e)+"/s",v9=({logs:e=[],onLogSelected:t,onDownload:r,...n})=>{const o=a=>{t(a)},i=()=>m.jsxs("table",{className:"table-auto w-fit text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{})]})}),m.jsx("tbody",{children:e.map((a,s)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>o(a.name),children:[m.jsx("td",{className:"pl-2",children:a.selected&&m.jsx(ah,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:ot(a.size)}),m.jsx("td",{children:m.jsx($E,{onClick:l=>{l.preventDefault(),l.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},g9=()=>{const e=Ql(),t=Oe(ft),r=Oe(HA),[n,o]=N.useState(""),[i,a]=N.useState("Head");N.useEffect(()=>{r.forEach(c=>{if(c.selected){const d=Math.round(c.size/10);let f=c.url;i==="Head"?f=c.url+"?offset=0&limit="+d:i==="Tail"&&(f=c.url+"?offset="+(c.size-d)+"&limit="+d),o(f)}})},[i,r]),N.useEffect(()=>{let c=!1;r.forEach(d=>{d.selected&&(c=!0)}),c||o("")},[r]),N.useEffect(()=>{t!==""&&pT()},[t]);const s=c=>{fetch(c.url,{method:"GET",headers:{"Content-Type":"text/plain"}}).then(d=>d.blob()).then(d=>{const f=window.URL.createObjectURL(new Blob([d])),p=document.createElement("a");p.href=f,p.setAttribute("download",c.name),document.body.appendChild(p),p.click(),document.body.removeChild(p)})},l=c=>{let d="px-4 py-2 mr-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700 border";const f="bg-gray-900 text-white";return c===i?d+" "+f:d};return m.jsxs("div",{className:"flex flex-col w-full pt-4 pb-4",children:[m.jsx(v9,{logs:r,onLogSelected:c=>{e(TA(c))},onDownload:c=>{s(c)}}),n!==""?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row pb-2 pt-2",children:[m.jsx("button",{className:l("Head"),onClick:()=>a("Head"),children:"Head"}),m.jsx("button",{className:l("Tail"),onClick:()=>a("Tail"),children:"Tail"}),m.jsx("button",{className:l("All"),onClick:()=>a("All"),children:"All"})]}),m.jsx(s9.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},y9=({db:e,selected:t,onDbSelected:r})=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",style:{backgroundColor:t?"lightblue":"white"},onClick:()=>r(e.path),children:[m.jsx("td",{className:"px-4 py-2",children:e.path}),m.jsx("td",{className:"px-4 py-2",children:e.keysCount}),m.jsx("td",{className:"px-4 py-2",children:ot(e.size)})]},e.path),S9=Ui(m.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Aa=({title:e,filter:t=!1,sort:r=!0,onFilterChange:n,onSortChange:o})=>{const[i,a]=re.useState("asc");return m.jsx("th",{className:"px-4 py-2",children:m.jsxs("div",{className:"flex flex-row",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{children:e}),t&&m.jsx("input",{className:"border rounded-lg p-1",onChange:s=>n&&n(s.target.value)})]}),r&&m.jsx("div",{className:"flex flex-col",children:m.jsx(S9,{className:"cursor-pointer",onClick:()=>{a(i==="asc"?"desc":"asc"),o&&o(i==="asc"?"desc":"asc")}})})]})})},b9=({dbs:e,onDbSelected:t})=>{const[r,n]=re.useState(""),[o,i]=re.useState(e),[a,s]=re.useState(""),[l,c]=re.useState({db:{sortDirection:"asc",sortValue:!0},keysCount:{sortDirection:"asc",sortValue:!1},size:{sortDirection:"asc",sortValue:!1}});return N.useEffect(()=>{i(e.filter(d=>d.path.toLowerCase().includes(a.toLowerCase())))},[e,a]),N.useEffect(()=>{i([...o].sort((d,f)=>l.db.sortValue?l.db.sortDirection==="asc"?d.path.localeCompare(f.path):f.path.localeCompare(d.path):l.keysCount.sortValue?l.keysCount.sortDirection==="asc"?d.keysCount-f.keysCount:f.keysCount-d.keysCount:l.size.sortValue?l.size.sortDirection==="asc"?d.size-f.size:f.size-d.size:0))},[l]),m.jsxs("table",{className:"table-auto rounded-lg bg-white text-left w-full","data-testid":"details_section_flags_table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx(Aa,{title:"DB",filter:!0,sort:!0,onFilterChange:d=>s(d),onSortChange:d=>{c({...l,db:{sortDirection:d,sortValue:!0},keysCount:{sortDirection:"asc",sortValue:!1},size:{sortDirection:"asc",sortValue:!1}})}}),m.jsx(Aa,{title:"Keys Count",sort:!0,onSortChange:d=>{c({...l,db:{sortDirection:"asc",sortValue:!1},keysCount:{sortDirection:d,sortValue:!0},size:{sortDirection:"asc",sortValue:!1}})}}),m.jsx(Aa,{title:"Size",sort:!0,onSortChange:d=>{c({...l,db:{sortDirection:"asc",sortValue:!1},keysCount:{sortDirection:"asc",sortValue:!1},size:{sortDirection:d,sortValue:!0}})}})]})}),m.jsx("tbody",{children:o.map(d=>m.jsx(y9,{db:d,selected:r===d.path,onDbSelected:f=>{n(f),t(f)}}))})]})},w9=({table:e})=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",children:[m.jsx("td",{className:"px-4 py-2",children:e.name}),m.jsx("td",{className:"px-4 py-2",children:e.count}),m.jsx("td",{className:"px-4 py-2",children:ot(e.size)})]},e.name),_9=({tables:e})=>{const[t,r]=re.useState(e),[n,o]=re.useState(""),[i,a]=re.useState({table:{sortDirection:"asc",sortValue:!0},keysCount:{sortDirection:"asc",sortValue:!1},size:{sortDirection:"asc",sortValue:!1}});return N.useEffect(()=>{r(e.filter(s=>s.name.toLowerCase().includes(n.toLowerCase())))},[e,n]),N.useEffect(()=>{r([...t].sort((s,l)=>i.table.sortValue?i.table.sortDirection==="asc"?s.name.localeCompare(l.name):l.name.localeCompare(s.name):i.keysCount.sortValue?i.keysCount.sortDirection==="asc"?s.count-l.count:l.count-s.count:i.size.sortValue?i.size.sortDirection==="asc"?s.size-l.size:l.size-s.size:0))},[i]),m.jsxs("table",{className:"table-auto rounded-lg bg-white text-left w-full","data-testid":"details_section_flags_table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx(Aa,{title:"Table",filter:!0,sort:!0,onFilterChange:s=>o(s),onSortChange:s=>{a({...i,table:{sortDirection:s,sortValue:!0},keysCount:{sortDirection:"asc",sortValue:!1},size:{sortDirection:"asc",sortValue:!1}})}}),m.jsx(Aa,{title:"Keys Count",sort:!0,onSortChange:s=>{a({...i,table:{sortDirection:"asc",sortValue:!1},keysCount:{sortDirection:s,sortValue:!0},size:{sortDirection:"asc",sortValue:!1}})}}),m.jsx(Aa,{title:"Size",sort:!0,onSortChange:s=>{a({...i,table:{sortDirection:"asc",sortValue:!1},keysCount:{sortDirection:"asc",sortValue:!1},size:{sortDirection:s,sortValue:!0}})}})]})}),m.jsx("tbody",{children:t.map(s=>m.jsx(w9,{table:s}))})]})},x9=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),DE=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),C9=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),R9=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,r)=>new Set([...t,...r]),[])),k9=(e,t)=>{t=t||R9(e);let r=t,n=t;DE(t)&&(r=t.map(i=>i.label),n=t.map(i=>i.key));const o=e.map(i=>n.map(a=>P9(a,i)));return[r,...o]},P9=(e,t)=>{const r=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(n,o,i,a){const s=n[o];if(s==null)a.splice(1);else return s},t);return r===void 0?e in t?t[e]:"":r},T9=e=>typeof e>"u"||e===null?"":e,FE=(e,t=",",r='"')=>e.filter(n=>n).map(n=>n.map(o=>T9(o)).map(o=>`${r}${o}${r}`).join(t)).join(` +`),E9=(e,t,r,n)=>FE(t?[t,...e]:e,r,n),O9=(e,t,r,n)=>FE(k9(e,t),r,n),I9=(e,t,r,n)=>t?`${t.join(r)} +${e}`:e.replace(/"/g,'""'),BE=(e,t,r,n)=>{if(DE(e))return O9(e,t,r,n);if(C9(e))return E9(e,t,r,n);if(typeof e=="string")return I9(e,t,r);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},WE=(e,t,r,n,o)=>{const i=BE(e,r,n,o),a=x9()?"application/csv":"text/csv",s=new Blob([t?"\uFEFF":"",i],{type:a}),l=`data:${a};charset=utf-8,${t?"\uFEFF":""}${i}`,c=window.URL||window.webkitURL;return typeof c.createObjectURL>"u"?l:c.createObjectURL(s)},UE={data:Yr.oneOfType([Yr.string,Yr.array,Yr.func]).isRequired,headers:Yr.array,target:Yr.string,separator:Yr.string,filename:Yr.string,uFEFF:Yr.bool,onClick:Yr.func,asyncOnClick:Yr.bool,enclosingCharacter:Yr.string},HE={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},j9={target:"_blank"};class tx extends re.Component{constructor(t){super(t),this.state={}}buildURI(){return WE(...arguments)}componentDidMount(){const{data:t,headers:r,separator:n,enclosingCharacter:o,uFEFF:i,target:a,specs:s,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,i,r,n,o),a,s,l)}getWindow(){return this.state.page}render(){return null}}Rs(tx,"defaultProps",Object.assign(HE,j9)),Rs(tx,"propTypes",UE);var ac;let z9=(ac=class extends re.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return WE(...arguments)}handleLegacy(t,r=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:n,headers:o,separator:i,filename:a,enclosingCharacter:s,uFEFF:l}=this.props,c=r&&typeof n=="function"?n():n;let d=new Blob([l?"\uFEFF":"",BE(c,o,i,s)]);return window.navigator.msSaveBlob(d,a),!1}}handleAsyncClick(t){const r=n=>{if(n===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,r)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:r,separator:n,filename:o,uFEFF:i,children:a,onClick:s,asyncOnClick:l,enclosingCharacter:c,...d}=this.props,p=typeof window>"u"?"":this.buildURI(t,i,r,n,c);return m.jsx("a",{download:o,...d,ref:g=>this.link=g,target:"_self",href:p,onClick:this.handleClick(),children:a})}},Rs(ac,"defaultProps",HE),Rs(ac,"propTypes",UE),ac);const N9=z9;var E0={},A9=Pt;Object.defineProperty(E0,"__esModule",{value:!0});var O0=E0.default=void 0,M9=A9(Lt()),L9=m;O0=E0.default=(0,M9.default)((0,L9.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const $9=()=>{const e=Oe(oy),[t,r]=N.useState(""),o=GA()(Ee.getState(),t),[i,a]=N.useState([]),s=d=>{d.key==="Escape"&&r("")};N.useEffect(()=>(window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}),[]),N.useEffect(()=>{t.length>0&&a(o.tables.map(d=>({tName:d.name,KC:d.count,size:ot(d.size)})))},[t]);const l=()=>t.length>0?[{label:"Table Name",key:"tName"},{label:"Keys Count",key:"KC"},{label:"Size",key:"size"}]:[{label:"DB Name",key:"dbName"},{label:"Keys Count",key:"KC"},{label:"Size",key:"size"}],c=()=>t.length>0?o.tables.map(d=>({tName:d.name,KC:d.count,size:ot(d.size)})):e.map(d=>({dbName:d.path,KC:d.keysCount,size:ot(d.size)}));return m.jsxs("div",{className:"flex flex-col w-full py-4",children:[m.jsx(N9,{headers:l(),data:c(),filename:t.length>0?t+".csv":"dbs.csv",className:"btn btn-primary",target:"_blank",children:m.jsx(Vn,{backgroundColor:fs,label:"Export to CSV",onClick:()=>{},primary:!0})}),t.length<=0?m.jsxs("div",{className:"w-full h-[90vh] overflow-y-auto mt-10 flex flex-col items-center",children:[m.jsx("span",{className:"mb-5 font-bold text-lg",children:"Data Bases"}),m.jsx(b9,{dbs:e,onDbSelected:d=>r(d)})]}):m.jsxs("div",{className:"w-full h-[90vh] overflow-y-auto mt-10 flex flex-col items-center",children:[m.jsxs("div",{className:"mb-5 flex flex-row space-between w-full",children:[m.jsx("div",{className:"flex-[1]",children:m.jsx(O0,{onClick:()=>{r("")},className:"cursor-pointer"})}),m.jsx("div",{className:"contents flex-[1]",children:m.jsx("span",{className:"font-bold text-lg",children:t})}),m.jsx("div",{className:"flex-[1]"})]}),m.jsx(_9,{tables:o.tables})]})]})},D9=({onClose:e,onCreate:t,...r})=>{const[n,o]=re.useState(""),i=a=>{o(a.target.value)};return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-1 z-50 outline-none focus:outline-none",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center",children:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Create Session"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center",children:[m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:"To create a new session, enter a name."}),m.jsx("input",{type:"text",placeholder:"Enter Session Name",className:"border-2 border-slate-200 rounded-md p-2",value:n,onChange:i})]}),m.jsxs("div",{className:"flex items-center justify-end p-6",children:[m.jsx(Vn,{backgroundColor:iu,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(Vn,{backgroundColor:fs,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},qE=({onSessionSelected:e,...t})=>{const r=Ql(),n=Oe(DA),[o,i]=N.useState(!1),a=d=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(d)},s=d=>{r(wA(d)),e()},l=d=>"./build/bin/erigon support --diagnostics.sessions "+d,c=()=>m.jsxs(m.Fragment,{children:[m.jsxs("table",{className:"table-auto rounded-lg shadow-lg bg-white text-left w-fit mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"PIN"}),m.jsx("th",{className:"px-4 py-2",children:"Support cmd"})]})}),m.jsx("tbody",{children:n.map((d,f)=>m.jsxs("tr",{className:"border-b border-gray-200",onClick:()=>s(d.pin),children:[m.jsx("td",{className:"pl-2",children:d.active&&m.jsx(ah,{})}),m.jsx("td",{className:"px-4 py-2",children:d.name}),m.jsxs("td",{className:"px-4 py-2 hover:bg-gray-100",children:[d.pin," ",m.jsx(_d,{onClick:()=>a(d.pin),className:"cursor-pointer pr-2"})]}),m.jsxs("td",{className:"px-4 py-2 hover:bg-gray-100",children:[l(d.pin)," ",m.jsx(_d,{onClick:()=>a(l(d.pin)),className:"cursor-pointer pr-2"})]})]},f))})]}),o&&m.jsx(dT,{})]});return m.jsx(m.Fragment,{children:n.length>0&&c()})},F9=({title:e="",body:t="",positiveButton:r="",negativeButton:n="",onClose:o=()=>{},onNegativeClick:i=()=>{},onPositiveClick:a=()=>{}})=>{const s=()=>r!==""&&n!==""?m.jsxs(m.Fragment,{children:[l(!0,r),m.jsx("div",{className:"w-2"}),l(!1,n)]}):r!==""?m.jsx(m.Fragment,{children:l(!0,r)}):n!==""?m.jsx(m.Fragment,{children:l(!1,n)}):null,l=(c,d)=>m.jsx(Vn,{backgroundColor:c?iu:fs,label:d,onClick:c?a:i,primary:!0});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center p-4 min-w-[20vw]",children:[m.jsxs("div",{className:"flex flex-row w-full",children:[m.jsx("div",{className:"flex-[1]"}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:e})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(Hf,{onClick:()=>o(),className:"cursor-pointer"})})]}),m.jsx("div",{className:"inline-block relative p-6 flex-auto justify-center items-center w-full break-all max-h-[80vh] overflow-scroll",children:m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:t})}),m.jsx("div",{className:"flex items-center justify-end p-6",children:s()})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},B9=()=>{const e=Ql(),[t,r]=N.useState(!1),[n,o]=N.useState(!1),i=Oe(qP);function a(s,l){return Math.floor(Math.random()*(l-s)+s)}return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),m.jsx(qE,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(Vn,{backgroundColor:iu,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(D9,{onClose:()=>r(!1),onCreate:s=>{let l=a(1e7,99999999).toString();e(Uk({name:s,pin:l,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(Vn,{backgroundColor:fs,label:"Create Session",onClick:()=>r(!0),primary:!0,disabled:i!=Go.Remote}),n&&m.jsx(F9,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(jA()),e(b3()),e(y3()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var I0={},W9=Pt;Object.defineProperty(I0,"__esModule",{value:!0});var VE=I0.default=void 0,U9=W9(Lt()),H9=m;VE=I0.default=(0,U9.default)((0,H9.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");var j0={},q9=Pt;Object.defineProperty(j0,"__esModule",{value:!0});var GE=j0.default=void 0,V9=q9(Lt()),G9=m;GE=j0.default=(0,V9.default)((0,G9.jsx)("path",{d:"M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77c.38-.18.79-.27 1.23-.27 1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z"}),"Hub");const K9=({onSessionClicked:e,onNodeClicked:t})=>{const r=Oe(ry),n=Oe(BA);return m.jsxs("div",{className:"flex flex-row h-10 bg-blue-500 absolute bottom-0 left-0 w-full z-10 px-5 py-1",children:[m.jsxs("button",{className:"text-white bg-blue-600 hover:bg-blue-700 px-2 rounded-md",onClick:()=>{e()},children:[m.jsx(VE,{}),m.jsx("span",{className:"px-1"}),(r==null?void 0:r.name)||"No Session Selected"]}),m.jsx("span",{className:"mx-4"}),m.jsxs("button",{className:"text-white bg-blue-600 hover:bg-blue-700 px-2 rounded-md",onClick:()=>{t()},children:[m.jsx(GE,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},Y9=({open:e,onClose:t,...r})=>m.jsxs("dialog",{className:"fixed z-10 inset-0 overflow-y-auto",open:e,onClose:()=>{t()},children:[m.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75","aria-hidden":"true"}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center relative bg-white rounded-lg p-4",children:[m.jsx("h3",{className:"pb-4 text-xl font-semibold",children:"Sessions List"}),m.jsx(qE,{onSessionSelected:()=>{t()}}),m.jsx(Vn,{backgroundColor:iu,label:"Close",onClick:t,primary:!0})]})})]}),Q9=({onNodeSelected:e,...t})=>{const r=Ql(),n=Oe(WA),o=a=>{r(_A(a)),e()},i=()=>m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Version"}),m.jsx("th",{className:"px-4 py-2",children:"Chain"}),m.jsx("th",{className:"px-4 py-2",children:"Block"}),m.jsx("th",{className:"px-4 py-2",children:"Address"})]})}),m.jsx("tbody",{children:n.map((a,s)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>o(a.id),children:[m.jsx("td",{className:"pl-2",children:a.active&&m.jsx(ah,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:a.version}),m.jsx("td",{className:"px-4 py-2",children:a.chain}),m.jsx("td",{className:"px-4 py-2",children:a.block}),m.jsx("td",{className:"px-4 py-2",children:a.address})]},s))})]});return m.jsx(m.Fragment,{children:n.length>0&&i()})},X9=({open:e,onClose:t,...r})=>m.jsxs("dialog",{className:"fixed z-10 inset-0 overflow-y-auto",open:e,onClose:()=>{t()},children:[m.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75","aria-hidden":"true"}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center relative bg-white rounded-lg p-4",children:[m.jsx("h3",{className:"pb-4 text-xl font-semibold",children:"Nodes List"}),m.jsx(Q9,{onNodeSelected:()=>{t()}}),m.jsx(Vn,{backgroundColor:iu,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Lr=function(){return Lr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Wt(vs,--Or):0,Za--,Ct===10&&(Za=1,lh--),Ct}function Wr(){return Ct=Or2||Dl(Ct)>3?"":" "}function fH(e,t){for(;--t&&Wr()&&!(Ct<48||Ct>102||Ct>57&&Ct<65||Ct>70&&Ct<97););return fu(e,Oc()+(t<6&&Hn()==32&&Wr()==32))}function $v(e){for(;Wr();)switch(Ct){case e:return Or;case 34:case 39:e!==34&&e!==39&&$v(Ct);break;case 40:e===41&&$v(e);break;case 92:Wr();break}return Or}function hH(e,t){for(;Wr()&&e+Ct!==47+10;)if(e+Ct===42+42&&Hn()===47)break;return"/*"+fu(t,Or-1)+"*"+sh(e===47?e:Wr())}function pH(e){for(;!Dl(Hn());)Wr();return fu(e,Or)}function rx(e){return ZE(jc("",null,null,null,[""],e=JE(e),0,[0],e))}function jc(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,f=a,p=0,g=0,S=0,y=1,C=1,v=1,b=0,x="",k=o,E=i,O=n,_=x;C;)switch(S=b,b=Wr()){case 40:if(S!=108&&Wt(_,f-1)==58){Lv(_+=Be(Ic(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Ic(b);break;case 9:case 10:case 13:case 32:_+=dH(S);break;case 92:_+=fH(Oc()-1,7);continue;case 47:switch(Hn()){case 42:case 47:oc(mH(hH(Wr(),Oc()),t,r),l);break;default:_+="/"}break;case 123*y:s[c++]=Ln(_)*v;case 125*y:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:g>0&&Ln(_)-f&&oc(g>32?ox(_+";",n,r,f-1):ox(Be(_," ","")+";",n,r,f-2),l);break;case 59:_+=";";default:if(oc(O=nx(_,t,r,c,d,o,s,x,k=[],E=[],f),i),b===123)if(d===0)jc(_,t,O,O,k,i,f,s,E);else switch(p===99&&Wt(_,3)===110?100:p){case 100:case 109:case 115:jc(e,O,O,n&&oc(nx(e,O,O,0,0,o,s,x,o,k=[],f),E),o,E,f,s,n?k:E);break;default:jc(_,O,O,O,[""],E,0,s,E)}}c=d=g=0,y=v=1,x=_="",f=a;break;case 58:f=1+Ln(_),g=S;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&cH()==125)continue}switch(_+=sh(b),b*y){case 38:v=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(Ln(_)-1)*v,v=1;break;case 64:Hn()===45&&(_+=Ic(Wr())),p=Hn(),d=f=Ln(x=_+=pH(Oc())),b++;break;case 45:S===45&&Ln(_)==2&&(y=0)}}return i}function nx(e,t,r,n,o,i,a,s,l,c,d){for(var f=o-1,p=o===0?i:[""],g=M0(p),S=0,y=0,C=0;S0?p[v]+" "+b:Be(b,/&\f/g,p[v])))&&(l[C++]=x);return uh(e,t,r,o===0?N0:s,l,c,d)}function mH(e,t,r){return uh(e,t,r,KE,sh(uH()),$l(e,2,-2),0)}function ox(e,t,r,n){return uh(e,t,r,A0,$l(e,0,n),$l(e,n+1,-1),n)}function Pi(e,t){for(var r="",n=M0(e),o=0;o6)switch(Wt(e,t+1)){case 109:if(Wt(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Ld+(Wt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lv(e,"stretch")?eO(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wt(e,t+1)!==115)break;case 6444:switch(Wt(e,Ln(e)-3-(~Lv(e,"!important")&&10))){case 107:return Be(e,":",":"+Me)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(Wt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+tr+"$2box$3")+e}break;case 5936:switch(Wt(e,t+11)){case 114:return Me+e+tr+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+tr+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+tr+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+tr+e+e}return e}var xH=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case A0:t.return=eO(t.value,t.length);break;case YE:return Pi([Ls(t,{value:Be(t.value,"@","@"+Me)})],o);case N0:if(t.length)return lH(t.props,function(i){switch(sH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pi([Ls(t,{props:[Be(i,/:(read-\w+)/,":"+Ld+"$1")]})],o);case"::placeholder":return Pi([Ls(t,{props:[Be(i,/:(plac\w+)/,":"+Me+"input-$1")]}),Ls(t,{props:[Be(i,/:(plac\w+)/,":"+Ld+"$1")]}),Ls(t,{props:[Be(i,/:(plac\w+)/,tr+"input-$1")]})],o)}return""})}},zc=typeof document<"u",CH=zc?void 0:gH(function(){return z0(function(){var e={};return function(t){return e[t]}})}),RH=[xH],tO=function(t){var r=t.key;if(zc&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var E=k.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var o=t.stylisPlugins||RH,i={},a,s=[];zc&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(k){for(var E=k.getAttribute("data-emotion").split(" "),O=1;O=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var NH={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},AH=/[A-Z]|^ms/g,MH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oO=function(t){return t.charCodeAt(1)===45},ux=function(t){return t!=null&&typeof t!="boolean"},gm=z0(function(e){return oO(e)?e:e.replace(AH,"-$&").toLowerCase()}),cx=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(MH,function(n,o,i){return $n={name:o,styles:i,next:$n},o})}return NH[t]!==1&&!oO(t)&&typeof r=="number"&&r!==0?r+"px":r};function Fl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return $n={name:r.name,styles:r.styles,next:$n},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)$n={name:n.name,styles:n.styles,next:$n},n=n.next;var o=r.styles+";";return o}return LH(e,t,r)}case"function":{if(e!==void 0){var i=$n,a=r(e);return $n=i,Fl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function LH(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?DH:FH},hx=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},BH=typeof document<"u",WH=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;nO(r,n,o);var i=TH(function(){return jH(r,n,o)});if(!BH&&i!==void 0){for(var a,s=n.name,l=n.next;l!==void 0;)s+=" "+l.name,l=l.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},UH=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=hx(t,r,n),l=s||fx(o),c=!l("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;g"u")return!1;var t=hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wq(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!on(i)||!Gn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function _q(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!on(o)||!Gn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var xq={name:"applyStyles",enabled:!0,phase:"write",fn:wq,effect:_q,requires:["computeStyles"]};function qn(e){return e.split("-")[0]}var Ti=Math.max,Fd=Math.min,ts=Math.round;function Fv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pO(){return!/^((?!chrome|android).)*safari/i.test(Fv())}function rs(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&on(e)&&(o=e.offsetWidth>0&&ts(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ts(n.height)/e.offsetHeight||1);var a=$i(e)?hn(e):window,s=a.visualViewport,l=!pO()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,d=(n.top+(l&&s?s.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function F0(e){var t=rs(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function mO(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&D0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yo(e){return hn(e).getComputedStyle(e)}function Cq(e){return["table","td","th"].indexOf(Gn(e))>=0}function ai(e){return(($i(e)?e.ownerDocument:e.document)||window.document).documentElement}function dh(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(D0(e)?e.host:null)||ai(e)}function Ex(e){return!on(e)||yo(e).position==="fixed"?null:e.offsetParent}function Rq(e){var t=/firefox/i.test(Fv()),r=/Trident/i.test(Fv());if(r&&on(e)){var n=yo(e);if(n.position==="fixed")return null}var o=dh(e);for(D0(o)&&(o=o.host);on(o)&&["html","body"].indexOf(Gn(o))<0;){var i=yo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function pu(e){for(var t=hn(e),r=Ex(e);r&&Cq(r)&&yo(r).position==="static";)r=Ex(r);return r&&(Gn(r)==="html"||Gn(r)==="body"&&yo(r).position==="static")?t:r||Rq(e)||t}function B0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ul(e,t,r){return Ti(e,Fd(t,r))}function kq(e,t,r){var n=ul(e,t,r);return n>r?r:n}function vO(){return{top:0,right:0,bottom:0,left:0}}function gO(e){return Object.assign({},vO(),e)}function yO(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Pq=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,gO(typeof t!="number"?t:yO(t,hu))};function Tq(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=qn(r.placement),l=B0(s),c=[Tr,cn].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=Pq(o.padding,r),p=F0(i),g=l==="y"?Pr:Tr,S=l==="y"?un:cn,y=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],C=a[l]-r.rects.reference[l],v=pu(i),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,x=y/2-C/2,k=f[g],E=b-p[d]-f[S],O=b/2-p[d]/2+x,_=ul(k,O,E),P=l;r.modifiersData[n]=(t={},t[P]=_,t.centerOffset=_-O,t)}}function Eq(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||mO(t.elements.popper,o)&&(t.elements.arrow=o))}var Oq={name:"arrow",enabled:!0,phase:"main",fn:Tq,effect:Eq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var Iq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jq(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:ts(t*o)/o||0,y:ts(r*o)/o||0}}function Ox(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,g=p===void 0?0:p,S=a.y,y=S===void 0?0:S,C=typeof d=="function"?d({x:g,y}):{x:g,y};g=C.x,y=C.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=Tr,k=Pr,E=window;if(c){var O=pu(r),_="clientHeight",P="clientWidth";if(O===hn(r)&&(O=ai(r),yo(O).position!=="static"&&s==="absolute"&&(_="scrollHeight",P="scrollWidth")),O=O,o===Pr||(o===Tr||o===cn)&&i===Bl){k=un;var I=f&&O===E&&E.visualViewport?E.visualViewport.height:O[_];y-=I-n.height,y*=l?1:-1}if(o===Tr||(o===Pr||o===un)&&i===Bl){x=cn;var j=f&&O===E&&E.visualViewport?E.visualViewport.width:O[P];g-=j-n.width,g*=l?1:-1}}var M=Object.assign({position:s},c&&Iq),$=d===!0?jq({x:g,y}):{x:g,y};if(g=$.x,y=$.y,l){var B;return Object.assign({},M,(B={},B[k]=b?"0":"",B[x]=v?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[k]=b?y+"px":"",t[x]=v?g+"px":"",t.transform="",t))}function zq(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:qn(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ox(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ox(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Nq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zq,data:{}},ic={passive:!0};function Aq(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=hn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,ic)}),s&&l.addEventListener("resize",r.update,ic),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,ic)}),s&&l.removeEventListener("resize",r.update,ic)}}var Mq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Aq,data:{}},Lq={left:"right",right:"left",bottom:"top",top:"bottom"};function Nc(e){return e.replace(/left|right|bottom|top/g,function(t){return Lq[t]})}var $q={start:"end",end:"start"};function Ix(e){return e.replace(/start|end/g,function(t){return $q[t]})}function W0(e){var t=hn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function U0(e){return rs(ai(e)).left+W0(e).scrollLeft}function Dq(e,t){var r=hn(e),n=ai(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=pO();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+U0(e),y:l}}function Fq(e){var t,r=ai(e),n=W0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ti(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ti(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+U0(e),l=-n.scrollTop;return yo(o||r).direction==="rtl"&&(s+=Ti(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function H0(e){var t=yo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function SO(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:on(e)&&H0(e)?e:SO(dh(e))}function cl(e,t){var r;t===void 0&&(t=[]);var n=SO(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=hn(n),a=o?[i].concat(i.visualViewport||[],H0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(cl(dh(a)))}function Bv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bq(e,t){var r=rs(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function jx(e,t,r){return t===fO?Bv(Dq(e,r)):$i(t)?Bq(t,r):Bv(Fq(ai(e)))}function Wq(e){var t=cl(dh(e)),r=["absolute","fixed"].indexOf(yo(e).position)>=0,n=r&&on(e)?pu(e):e;return $i(n)?t.filter(function(o){return $i(o)&&mO(o,n)&&Gn(o)!=="body"}):[]}function Uq(e,t,r,n){var o=t==="clippingParents"?Wq(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,c){var d=jx(e,c,n);return l.top=Ti(d.top,l.top),l.right=Fd(d.right,l.right),l.bottom=Fd(d.bottom,l.bottom),l.left=Ti(d.left,l.left),l},jx(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function bO(e){var t=e.reference,r=e.element,n=e.placement,o=n?qn(n):null,i=n?ns(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case Pr:l={x:a,y:t.y-r.height};break;case un:l={x:a,y:t.y+t.height};break;case cn:l={x:t.x+t.width,y:s};break;case Tr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?B0(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case es:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Bl:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function Wl(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?uq:s,c=r.rootBoundary,d=c===void 0?fO:c,f=r.elementContext,p=f===void 0?$s:f,g=r.altBoundary,S=g===void 0?!1:g,y=r.padding,C=y===void 0?0:y,v=gO(typeof C!="number"?C:yO(C,hu)),b=p===$s?cq:$s,x=e.rects.popper,k=e.elements[S?b:p],E=Uq($i(k)?k:k.contextElement||ai(e.elements.popper),l,d,a),O=rs(e.elements.reference),_=bO({reference:O,element:x,strategy:"absolute",placement:o}),P=Bv(Object.assign({},x,_)),I=p===$s?P:O,j={top:E.top-I.top+v.top,bottom:I.bottom-E.bottom+v.bottom,left:E.left-I.left+v.left,right:I.right-E.right+v.right},M=e.modifiersData.offset;if(p===$s&&M){var $=M[o];Object.keys(j).forEach(function(B){var W=[cn,un].indexOf(B)>=0?1:-1,se=[Pr,un].indexOf(B)>=0?"y":"x";j[B]+=$[se]*W})}return j}function Hq(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?hO:l,d=ns(n),f=d?s?Tx:Tx.filter(function(S){return ns(S)===d}):hu,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var g=p.reduce(function(S,y){return S[y]=Wl(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[qn(y)],S},{});return Object.keys(g).sort(function(S,y){return g[S]-g[y]})}function qq(e){if(qn(e)===$0)return[];var t=Nc(e);return[Ix(e),t,Ix(t)]}function Vq(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,S=g===void 0?!0:g,y=r.allowedAutoPlacements,C=t.options.placement,v=qn(C),b=v===C,x=l||(b||!S?[Nc(C)]:qq(C)),k=[C].concat(x).reduce(function(De,Se){return De.concat(qn(Se)===$0?Hq(t,{placement:Se,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:y}):Se)},[]),E=t.rects.reference,O=t.rects.popper,_=new Map,P=!0,I=k[0],j=0;j=0,se=W?"width":"height",oe=Wl(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),pe=W?B?cn:Tr:B?un:Pr;E[se]>O[se]&&(pe=Nc(pe));var J=Nc(pe),ae=[];if(i&&ae.push(oe[$]<=0),s&&ae.push(oe[pe]<=0,oe[J]<=0),ae.every(function(De){return De})){I=M,P=!1;break}_.set(M,ae)}if(P)for(var ce=S?3:1,we=function(Se){var V=k.find(function(G){var q=_.get(G);if(q)return q.slice(0,Se).every(function(X){return X})});if(V)return I=V,"break"},Pe=ce;Pe>0;Pe--){var bt=we(Pe);if(bt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var Gq={name:"flip",enabled:!0,phase:"main",fn:Vq,requiresIfExists:["offset"],data:{_skip:!1}};function zx(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Nx(e){return[Pr,cn,un,Tr].some(function(t){return e[t]>=0})}function Kq(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Wl(t,{elementContext:"reference"}),s=Wl(t,{altBoundary:!0}),l=zx(a,n),c=zx(s,o,i),d=Nx(l),f=Nx(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var Yq={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kq};function Qq(e,t,r){var n=qn(e),o=[Tr,Pr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Tr,cn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function Xq(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=hO.reduce(function(d,f){return d[f]=Qq(f,t.rects,i),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var Jq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xq};function Zq(e){var t=e.state,r=e.name;t.modifiersData[r]=bO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var e7={name:"popperOffsets",enabled:!0,phase:"read",fn:Zq,data:{}};function t7(e){return e==="x"?"y":"x"}function r7(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,g=p===void 0?!0:p,S=r.tetherOffset,y=S===void 0?0:S,C=Wl(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),v=qn(t.placement),b=ns(t.placement),x=!b,k=B0(v),E=t7(k),O=t.modifiersData.popperOffsets,_=t.rects.reference,P=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,j=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(O){if(i){var B,W=k==="y"?Pr:Tr,se=k==="y"?un:cn,oe=k==="y"?"height":"width",pe=O[k],J=pe+C[W],ae=pe-C[se],ce=g?-P[oe]/2:0,we=b===es?_[oe]:P[oe],Pe=b===es?-P[oe]:-_[oe],bt=t.elements.arrow,De=g&&bt?F0(bt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vO(),V=Se[W],G=Se[se],q=ul(0,_[oe],De[oe]),X=x?_[oe]/2-ce-q-V-j.mainAxis:we-q-V-j.mainAxis,U=x?-_[oe]/2+ce+q+G+j.mainAxis:Pe+q+G+j.mainAxis,he=t.elements.arrow&&pu(t.elements.arrow),ue=he?k==="y"?he.clientTop||0:he.clientLeft||0:0,ie=(B=M==null?void 0:M[k])!=null?B:0,le=pe+X-ie-ue,K=pe+U-ie,ee=ul(g?Fd(J,le):J,pe,g?Ti(ae,K):ae);O[k]=ee,$[k]=ee-pe}if(s){var ne,fe=k==="x"?Pr:Tr,ge=k==="x"?un:cn,ye=O[E],be=E==="y"?"height":"width",Re=ye+C[fe],Ne=ye-C[ge],Fe=[Pr,Tr].indexOf(v)!==-1,Et=(ne=M==null?void 0:M[E])!=null?ne:0,br=Fe?Re:ye-_[be]-P[be]-Et+j.altAxis,lr=Fe?ye+_[be]+P[be]-Et-j.altAxis:Ne,Kt=g&&Fe?kq(br,ye,lr):ul(g?br:Re,ye,g?lr:Ne);O[E]=Kt,$[E]=Kt-ye}t.modifiersData[n]=$}}var n7={name:"preventOverflow",enabled:!0,phase:"main",fn:r7,requiresIfExists:["offset"]};function o7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i7(e){return e===hn(e)||!on(e)?W0(e):o7(e)}function a7(e){var t=e.getBoundingClientRect(),r=ts(t.width)/e.offsetWidth||1,n=ts(t.height)/e.offsetHeight||1;return r!==1||n!==1}function s7(e,t,r){r===void 0&&(r=!1);var n=on(t),o=on(t)&&a7(t),i=ai(t),a=rs(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Gn(t)!=="body"||H0(i))&&(s=i7(t)),on(t)?(l=rs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=U0(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function l7(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function u7(e){var t=l7(e);return bq.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function c7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function d7(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ax={placement:"bottom",modifiers:[],strategy:"absolute"};function Mx(){for(var e=arguments.length,t=new Array(e),r=0;r .`,` { + `,`; + + `,`; + } +`],[` + position: relative; + width: 100%; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},$e.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return wO({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),y7=function(e,t){var r,n=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,l=e.prefix,c=e.suffix,d=e.open,f=e.defaultOpen,p=e.active,g=p===void 0?!1:p,S=e.disabled,y=S===void 0?!1:S,C=e.rootStyles,v=e.component,b=e.onOpenChange,x=e.onClick,k=e.onKeyUp,E=Li(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),O=re.useContext(Dd),_=re.useContext(ch),P=_.collapsed,I=_.rtl,j=_.transitionDuration,M=L0(),$=M.renderExpandIcon,B=M.closeOnClick,W=M.menuItemStyles,se=M.transitionDuration,oe=re.useState(!!f),pe=oe[0],J=oe[1],ae=re.useState(!1),ce=ae[0],we=ae[1],Pe=re.useState(!1),bt=Pe[0],De=Pe[1],Se=re.useRef(null),V=re.useRef(null),G=re.useRef(),q=m7({level:O,buttonRef:Se,contentRef:V}).popperInstance,X=re.useCallback(function(){var ee,ne=V.current;if(ne){var fe=(ee=ne==null?void 0:ne.querySelector(".".concat($e.subMenuContent," > ul")))===null||ee===void 0?void 0:ee.clientHeight;ne.style.overflow="hidden",ne.style.height="".concat(fe,"px"),G.current=setTimeout(function(){ne.style.overflow="auto",ne.style.height="auto"},se)}},[se]),U=function(){var ee,ne=V.current;if(ne){var fe=(ee=ne==null?void 0:ne.querySelector(".".concat($e.subMenuContent," > ul")))===null||ee===void 0?void 0:ee.clientHeight;ne.style.overflow="hidden",ne.style.height="".concat(fe,"px"),ne.offsetHeight,ne.style.height="0px"}},he=function(){O===0&&P||(typeof d>"u"?(clearTimeout(Number(G.current)),pe?U():X(),b==null||b(!pe),J(!pe)):b==null||b(!d))};re.useEffect(function(){!(O===0&&P)&&typeof d<"u"&&bt&&(clearTimeout(Number(G.current)),d?X():U())},[P,X,i,O,b,d]);var ue=function(ee){x==null||x(ee),he()},ie=function(ee){k==null||k(ee),ee.key==="Enter"&&he()},le=function(ee){if(W){var ne={level:O,disabled:y,active:g,isSubmenu:!0,open:d??pe},fe=W.root,ge=W.button,ye=W.label,be=W.icon,Re=W.prefix,Ne=W.suffix,Fe=W.subMenuContent,Et=W.SubMenuExpandIcon;switch(ee){case"root":return typeof fe=="function"?fe(ne):fe;case"button":return typeof ge=="function"?ge(ne):ge;case"label":return typeof ye=="function"?ye(ne):ye;case"icon":return typeof be=="function"?be(ne):be;case"prefix":return typeof Re=="function"?Re(ne):Re;case"suffix":return typeof Ne=="function"?Ne(ne):Ne;case"SubMenuExpandIcon":return typeof Et=="function"?Et(ne):Et;case"subMenuContent":return typeof Fe=="function"?Fe(ne):Fe;default:return}}};re.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),P&&O===0&&we(!1)},[P,O,I,j,q]),re.useEffect(function(){var ee=function(ye){var be,Re,Ne;!ce&&(!((be=Se.current)===null||be===void 0)&&be.contains(ye))?we(!0):(B&&!(!((Re=ye.closest(".".concat($e.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains($e.subMenuRoot))||!(!((Ne=V.current)===null||Ne===void 0)&&Ne.contains(ye))&&ce)&&we(!1)},ne=function(ye){ee(ye.target)},fe=function(ye){ye.key==="Enter"?ee(ye.target):ye.key==="Escape"&&we(!1)},ge=function(){document.removeEventListener("click",ne),document.removeEventListener("keyup",fe)};return ge(),P&&O===0&&(document.addEventListener("click",ne,!1),document.addEventListener("keyup",fe,!1)),function(){ge()}},[P,O,B,ce]),re.useEffect(function(){De(!0)},[]);var K=(r={},r[$e.active]=g,r[$e.disabled]=y,r[$e.open]=d??pe,r);return re.createElement(g7,{ref:t,className:It($e.menuItemRoot,$e.subMenuRoot,K,o),menuItemStyles:le("root"),level:O,collapsed:P,rtl:I,disabled:y,active:g,buttonStyles:le("button"),rootStyles:C},re.createElement(_O,Lr({"data-testid":"".concat($e.button,"-test-id"),ref:Se,title:s,className:It($e.button,K),onClick:ue,onKeyUp:ie,component:v,tabIndex:0},E),a&&re.createElement(uO,{rtl:I,className:It($e.icon,K),rootStyles:le("icon")},a),l&&re.createElement(cO,{collapsed:P,transitionDuration:j,firstLevel:O===0,className:It($e.prefix,K),rtl:I,rootStyles:le("prefix")},l),re.createElement(lO,{className:It($e.label,K),rootStyles:le("label")},i),c&&re.createElement(dO,{collapsed:P,transitionDuration:j,firstLevel:O===0,className:It($e.suffix,K),rootStyles:le("suffix")},c),re.createElement(aq,{rtl:I,className:It($e.SubMenuExpandIcon,K),collapsed:P,level:O,rootStyles:le("SubMenuExpandIcon")},$?$({level:O,disabled:y,active:g,open:d??pe}):P&&O===0?re.createElement(lq,null):re.createElement(sq,{rtl:I,open:d??pe}))),re.createElement(iq,{ref:V,openWhenCollapsed:ce,open:d??pe,firstLevel:O===0,collapsed:P,defaultOpen:d&&!bt||f,className:It($e.subMenuContent,K),rootStyles:le("subMenuContent")},re.createElement(Dd.Provider,{value:O+1},n)))},S7=re.forwardRef(y7),Lx,b7=At.li($x||($x=sr([` + width: 100%; + position: relative; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`],[` + width: 100%; + position: relative; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},$e.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return wO({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),w7=function(e,t){var r,n=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,l=e.active,c=l===void 0?!1:l,d=e.disabled,f=d===void 0?!1:d,p=e.component,g=e.rootStyles,S=Li(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),y=re.useContext(Dd),C=re.useContext(ch),v=C.collapsed,b=C.rtl,x=C.transitionDuration,k=L0().menuItemStyles,E=function(_){if(k){var P={level:y,disabled:f,active:c,isSubmenu:!1},I=k.root,j=k.button,M=k.label,$=k.icon,B=k.prefix,W=k.suffix;switch(_){case"root":return typeof I=="function"?I(P):I;case"button":return typeof j=="function"?j(P):j;case"label":return typeof M=="function"?M(P):M;case"icon":return typeof $=="function"?$(P):$;case"prefix":return typeof B=="function"?B(P):B;case"suffix":return typeof W=="function"?W(P):W;default:return}}},O=(r={},r[$e.active]=c,r[$e.disabled]=f,r);return re.createElement(b7,{ref:t,className:It($e.menuItemRoot,O,i),menuItemStyles:E("root"),level:y,collapsed:v,rtl:b,disabled:f,active:c,buttonStyles:E("button"),rootStyles:g},re.createElement(_O,Lr({className:It($e.button,O),"data-testid":"".concat($e.button,"-test-id"),component:p,tabIndex:0},S),o&&re.createElement(uO,{rtl:b,className:It($e.icon,O),rootStyles:E("icon")},o),a&&re.createElement(cO,{collapsed:v,transitionDuration:x,firstLevel:y===0,className:It($e.prefix,O),rtl:b,rootStyles:E("prefix")},a),re.createElement(lO,{className:It($e.label,O),rootStyles:E("label")},n),s&&re.createElement(dO,{collapsed:v,transitionDuration:x,firstLevel:y===0,className:It($e.suffix,O),rootStyles:E("suffix")},s)))},Ro=re.forwardRef(w7),$x,q0={},_7=Pt;Object.defineProperty(q0,"__esModule",{value:!0});var xO=q0.default=void 0,x7=_7(Lt()),C7=m;xO=q0.default=(0,x7.default)((0,C7.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuOutlined");var V0={},R7=Pt;Object.defineProperty(V0,"__esModule",{value:!0});var CO=V0.default=void 0,k7=R7(Lt()),P7=m;CO=V0.default=(0,k7.default)((0,P7.jsx)("path",{d:"M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5m3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"PermDataSetting");var G0={},T7=Pt;Object.defineProperty(G0,"__esModule",{value:!0});var RO=G0.default=void 0,E7=T7(Lt()),O7=m;RO=G0.default=(0,E7.default)((0,O7.jsx)("path",{d:"M12 14.67 3.41 6.09 2 7.5l8.5 8.5H4v2h16v-2h-6.5l5.15-5.15c.26.1.55.15.85.15 1.38 0 2.5-1.12 2.5-2.5S20.88 6 19.5 6 17 7.12 17 8.5c0 .35.07.67.2.97z"}),"NetworkPing");var K0={},I7=Pt;Object.defineProperty(K0,"__esModule",{value:!0});var kO=K0.default=void 0,j7=I7(Lt()),z7=m;kO=K0.default=(0,j7.default)((0,z7.jsx)("path",{d:"M19 3H4.99C3.89 3 3 3.9 3 5l.01 14c0 1.1.89 2 1.99 2h10l6-6V5c0-1.1-.9-2-2-2M7 8h10v2H7zm5 6H7v-2h5zm2 5.5V14h5.5z"}),"StickyNote2");var Y0={},N7=Pt;Object.defineProperty(Y0,"__esModule",{value:!0});var PO=Y0.default=void 0,A7=N7(Lt()),M7=m;PO=Y0.default=(0,A7.default)((0,M7.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-2m-8 14H7v-4h4zm0-6H7V7h4zm6 6h-4v-4h4zm0-6h-4V7h4z"}),"Dataset");var Q0={},L7=Pt;Object.defineProperty(Q0,"__esModule",{value:!0});var TO=Q0.default=void 0,$7=L7(Lt()),Dx=m;TO=Q0.default=(0,$7.default)([(0,Dx.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),(0,Dx.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings");var X0={},D7=Pt;Object.defineProperty(X0,"__esModule",{value:!0});var EO=X0.default=void 0,F7=D7(Lt()),B7=m;EO=X0.default=(0,F7.default)((0,B7.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Sync");var J0={},W7=Pt;Object.defineProperty(J0,"__esModule",{value:!0});var Wv=J0.default=void 0,U7=W7(Lt()),H7=m;Wv=J0.default=(0,U7.default)((0,H7.jsx)("path",{d:"M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25m-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-1.75s5 1.21 5 1.75zm9 0H14v-1.25c0-.46-.2-.86-.52-1.22.88-.3 1.96-.53 3.02-.53 2.44 0 5 1.21 5 1.75zM7.5 12c1.93 0 3.5-1.57 3.5-3.5S9.43 5 7.5 5 4 6.57 4 8.5 5.57 12 7.5 12m0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 5.5c1.93 0 3.5-1.57 3.5-3.5S18.43 5 16.5 5 13 6.57 13 8.5s1.57 3.5 3.5 3.5m0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2"}),"PeopleOutline");const q7=()=>{const[e,t]=N.useState(!1);return Oe(G3),m.jsx(ZH,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(rq,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(Ro,{icon:m.jsx(xO,{}),onClick:()=>{t(!e)}}),m.jsx(Ro,{component:m.jsx(ko,{to:"/"}),icon:m.jsx(CO,{}),children:"Process"}),m.jsxs(S7,{label:"Network",icon:m.jsx(RO,{}),children:[m.jsx(Ro,{component:m.jsx(ko,{to:"/sentry-network"}),icon:m.jsx(Wv,{}),children:"eth/6x P2P"}),m.jsx(Ro,{component:m.jsx(ko,{to:"/sentinel-network"}),icon:m.jsx(Wv,{}),children:"Beacon chain P2P"}),m.jsx(Ro,{component:m.jsx(ko,{to:"/downloader"}),icon:m.jsx(EO,{}),children:"Downloader"})]}),m.jsx(Ro,{component:m.jsx(ko,{to:"/logs"}),icon:m.jsx(kO,{}),children:"Logs"}),m.jsx(Ro,{component:m.jsx(ko,{to:"/data"}),icon:m.jsx(PO,{}),children:"Data"}),m.jsx(Ro,{component:m.jsx(ko,{to:"/admin"}),icon:m.jsx(TO,{}),children:"Admin"})]})})};function V7(e){return kn("MuiTypography",e)}Yn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const G7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],K7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${qe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Kn(s,V7,a)},Y7=Tt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${qe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Z({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Fx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Q7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},X7=e=>Q7[e]||e,J7=N.forwardRef(function(t,r){const n=bo({props:t,name:"MuiTypography"}),o=X7(n.color),i=my(Z({},n,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=Fx}=i,S=Ye(i,G7),y=Z({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:g}),C=l||(f?"p":g[p]||Fx[p])||"span",v=K7(y);return m.jsx(Y7,Z({as:C,ref:r,ownerState:y,className:dt(v.root,s)},S))}),Bx=J7;function Z7({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const eV=N.createContext(void 0),tV=eV;function OO(){return N.useContext(tV)}function rV(e){return kn("PrivateSwitchBase",e)}Yn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nV=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],oV=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${qe(o)}`],input:["input"]};return Kn(i,rV,t)},iV=Tt(uT)(({ownerState:e})=>Z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),aV=Tt("input",{shouldForwardProp:WP})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sV=N.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:g,inputRef:S,name:y,onBlur:C,onChange:v,onFocus:b,readOnly:x,required:k=!1,tabIndex:E,type:O,value:_}=t,P=Ye(t,nV),[I,j]=rP({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=OO(),$=ae=>{b&&b(ae),M&&M.onFocus&&M.onFocus(ae)},B=ae=>{C&&C(ae),M&&M.onBlur&&M.onBlur(ae)},W=ae=>{if(ae.nativeEvent.defaultPrevented)return;const ce=ae.target.checked;j(ce),v&&v(ae,ce)};let se=l;M&&typeof se>"u"&&(se=M.disabled);const oe=O==="checkbox"||O==="radio",pe=Z({},t,{checked:I,disabled:se,disableFocusRipple:c,edge:d}),J=oV(pe);return m.jsxs(iV,Z({component:"span",className:dt(J.root,a),centerRipple:!0,focusRipple:!c,disabled:se,tabIndex:null,role:void 0,onFocus:$,onBlur:B,ownerState:pe,ref:r},P,{children:[m.jsx(aV,Z({autoFocus:n,checked:o,defaultChecked:s,className:J.input,disabled:se,id:oe?p:void 0,name:y,onChange:W,readOnly:x,ref:S,required:k,ownerState:pe,tabIndex:E,type:O},O==="checkbox"&&_===void 0?{}:{value:_},g)),I?i:f]}))}),lV=sV,uV=nF({createStyledComponent:Tt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>bo({props:e,name:"MuiStack"})}),cV=uV;function dV(e){return kn("MuiFormControlLabel",e)}const fV=Yn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Qs=fV,hV=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],pV=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${qe(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Kn(a,dV,t)},mV=Tt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qs.label}`]:t.label},t.root,t[`labelPlacement${qe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Z({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Qs.label}`]:{[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),vV=Tt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qs.error}`]:{color:(e.vars||e).palette.error.main}})),gV=N.forwardRef(function(t,r){var n,o;const i=bo({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:p="end",required:g,slotProps:S={}}=i,y=Ye(i,hV),C=OO(),v=(n=c??l.props.disabled)!=null?n:C==null?void 0:C.disabled,b=g??l.props.required,x={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof i[I]<"u"&&(x[I]=i[I])});const k=Z7({props:i,muiFormControl:C,states:["error"]}),E=Z({},i,{disabled:v,labelPlacement:p,required:b,error:k.error}),O=pV(E),_=(o=S.typography)!=null?o:s.typography;let P=f;return P!=null&&P.type!==Bx&&!d&&(P=m.jsx(Bx,Z({component:"span"},_,{className:dt(O.label,_==null?void 0:_.className),children:P}))),m.jsxs(mV,Z({className:dt(O.root,a),ownerState:E,ref:r},y,{children:[N.cloneElement(l,x),b?m.jsxs(cV,{display:"block",children:[P,m.jsxs(vV,{ownerState:E,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):P]}))}),Wx=gV;function yV(e){return kn("MuiSwitch",e)}const SV=Yn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),dr=SV,bV=["className","color","edge","size","sx"],wV=lT(),_V=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${qe(r)}`,`size${qe(n)}`],switchBase:["switchBase",`color${qe(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Kn(s,yV,t);return Z({},t,l)},xV=Tt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${qe(r.edge)}`],t[`size${qe(r.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,[`& .${dr.thumb}`]:{width:16,height:16},[`& .${dr.switchBase}`]:{padding:4,[`&.${dr.checked}`]:{transform:"translateX(16px)"}}}}]}),CV=Tt(lV,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${dr.input}`]:t.input},r.color!=="default"&&t[`color${qe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${dr.checked}`]:{transform:"translateX(20px)"},[`&.${dr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${dr.checked} + .${dr.track}`]:{opacity:.5},[`&.${dr.disabled} + .${dr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${dr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ka(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${dr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ka(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?bd(e.palette[t].main,.62):Sd(e.palette[t].main,.55)}`}},[`&.${dr.checked} + .${dr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),RV=Tt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),kV=Tt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),PV=N.forwardRef(function(t,r){const n=wV({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=n,c=Ye(n,bV),d=Z({},n,{color:i,edge:a,size:s}),f=_V(d),p=m.jsx(kV,{className:f.thumb,ownerState:d});return m.jsxs(xV,{className:dt(f.root,o),sx:l,ownerState:d,children:[m.jsx(CV,Z({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:d},c,{classes:Z({},f,{root:f.switchBase})})),m.jsx(RV,{className:f.track,ownerState:d})]})}),Ux=PV,TV=({segments:e,segmentSelected:t,onSegmentClicked:r})=>{const n=e.map(_=>({status:_,visible:!0,active:_.downloadedBytes<_.totalBytes&&_.downloadedBytes>0})),[o,i]=N.useState(n),[a,s]=N.useState(!1),[l,c]=N.useState(!1),[d,f]=N.useState({column:"Name",descending:!0}),p=_=>_.peers.length||0,g=_=>{let P=0;return _.peers.forEach(I=>{P+=I.downloadRate}),P},S=_=>_.webseeds.length||0,y=_=>{let P=0;return _.webseeds.forEach(I=>{P+=I.downloadRate}),P},C=(_,P)=>_/P*100,v=(_,P)=>{let j=[..._].sort((M,$)=>P.column==="Name"?b(M.status.name,$.status.name,P.descending):P.column==="Progress"?x(C(M.status.downloadedBytes,M.status.totalBytes),C($.status.downloadedBytes,$.status.totalBytes),P.descending):P.column==="Size"?x(M.status.totalBytes,$.status.totalBytes,P.descending):P.column==="PeersCount"?x(p(M.status),p($.status),P.descending):P.column==="PeersRate"?x(g(M.status),g($.status),P.descending):P.column==="WebseedsCount"?x(S(M.status),S($.status),P.descending):P.column==="WebseedsRate"?x(y(M.status),y($.status),P.descending):x(M.active?1:0,$.active?1:0,P.descending));f(P),i(j)},b=(_,P,I)=>I?P.localeCompare(_):_.localeCompare(P),x=(_,P,I)=>I?P-_:_-P,k=_=>d.column!==_?m.jsx(ou,{className:"ml-2"}):d.descending?m.jsx(ru,{}):m.jsx(nu,{}),E=_=>{s(_.target.checked);let P=o;P.forEach(I=>{_.target.checked?C(I.status.downloadedBytes,I.status.totalBytes)===100&&(I.visible=!1):C(I.status.downloadedBytes,I.status.totalBytes)===100&&(I.visible=!0)}),i(P)},O=_=>{c(_.target.checked);let P=o;P.forEach(I=>{_.target.checked?C(I.status.downloadedBytes,I.status.totalBytes)===0&&(I.visible=!1):C(I.status.downloadedBytes,I.status.totalBytes)===0&&(I.visible=!0)}),i(P)};return m.jsxs("div",{className:"w-full h-[95%]",style:{overflowY:t?"hidden":"scroll"},children:[m.jsxs("div",{className:"flex flex-row justify-around",children:[m.jsx(Wx,{control:m.jsx(Ux,{checked:a,onChange:E}),label:"Hide downloaded files"}),m.jsx(Wx,{control:m.jsx(Ux,{checked:l,onChange:O}),label:"Hide files with no progress"})]}),m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"Name",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Name",k("Name")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"Progress",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Progress",k("Progress")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"Size",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Size",k("Size")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"PeersCount",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Count",k("PeersCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"PeersRate",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Rate",k("PeersRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"WebseedsCount",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Count",k("WebseedsCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"WebseedsRate",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Rate",k("WebseedsRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{v(o,{column:"Active",descending:!d.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Active",k("Active")]})})]})}),m.jsx("tbody",{children:o.map(_=>m.jsxs("tr",{className:"border-b hover:bg-gray-100 cursor-pointer",onClick:()=>{r(_.status)},children:[m.jsx("td",{className:"px-4 py-2",children:_.status.name}),m.jsx("td",{className:"px-4 py-2",children:T0(_.status.downloadedBytes,_.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:ot(_.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:p(_.status)}),m.jsx("td",{className:"px-4 py-2",children:xr(g(_.status))}),m.jsx("td",{className:"px-4 py-2",children:S(_.status)}),m.jsx("td",{className:"px-4 py-2",children:xr(y(_.status))}),m.jsx("td",{className:"px-4 py-2",children:_.active.toString()})]},_.status.name))})]})]})},Hx=({peers:e})=>{const[t,r]=N.useState(e),[n,o]=N.useState({column:"Url",descending:!0});N.useEffect(()=>{i(e,n)},[e]);const i=(c,d)=>{let p=[...c].sort((g,S)=>d.column==="Url"?a(g.url,S.url,d.descending):s(g.downloadRate,S.downloadRate,d.descending));o(d),r(p)},a=(c,d,f)=>f?d.localeCompare(c):c.localeCompare(d),s=(c,d,f)=>f?d-c:c-d,l=c=>n.column!==c?m.jsx(ou,{className:"ml-2"}):n.descending?m.jsx(ru,{}):m.jsx(nu,{});return m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{i(t,{column:"Url",descending:!n.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["URL",l("Url")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{i(t,{column:"Rate",descending:!n.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Rate",l("Rate")]})})]})}),m.jsx("tbody",{children:t.map(c=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:c.url}),m.jsx("td",{className:"px-4 py-2",children:ot(c.downloadRate)})]}))})]})},EV=({segment:e})=>{const t=f=>f?f.downloadedBytes>=f.totalBytes:!1,[r,n]=N.useState(t(e)),o=f=>{let p=0;return f.forEach(g=>{p+=g.downloadRate}),xr(p)},i=f=>f.peers.length||0,a=f=>{let p=0;return f.peers.forEach(g=>{p+=g.downloadRate}),p},s=f=>f.webseeds.length||0,l=f=>{let p=0;return f.webseeds.forEach(g=>{p+=g.downloadRate}),p},c=f=>{var p,g;return m.jsx("div",{className:"flex flex-col justify-around",children:m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Size"}),m.jsx("th",{children:"Time Taken"}),m.jsx("th",{children:"AverageRate"})]})}),m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:f.name}),m.jsx("td",{className:"px-4 py-2",children:ot(f.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:P0(((p=f.downloadedStats)==null?void 0:p.timeTook)||0)}),m.jsx("td",{className:"px-4 py-2",children:xr(((g=f.downloadedStats)==null?void 0:g.averageRate)||0)})]})})]})})},d=f=>m.jsxs("div",{className:"flex flex-col justify-around",children:[m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Progress"}),m.jsx("th",{children:"Size"}),m.jsx("th",{children:"Peers Count"}),m.jsx("th",{children:"Peers Rate"}),m.jsx("th",{children:"Webseeds Count"}),m.jsx("th",{children:"Webseeds Rate"})]})}),m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:f.name}),m.jsx("td",{className:"px-4 py-2",children:T0(f.downloadedBytes,f.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:ot(f.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:i(f)}),m.jsx("td",{className:"px-4 py-2",children:xr(a(f))}),m.jsx("td",{className:"px-4 py-2",children:s(f)}),m.jsx("td",{className:"px-4 py-2",children:xr(l(f))})]})})]}),m.jsxs("div",{className:"flex flex-row justify-around mt-20",children:[f.peers.length>0&&m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[45vh] w-full overflow-auto items-center",children:[m.jsx("p",{className:"font-bold text-lg",children:f.peers.length+" peers"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+o(f.peers)}),m.jsx(Hx,{peers:f.peers})]})}),f.webseeds.length>0&&m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[40vh] w-full overflow-auto items-center",children:[m.jsx("p",{className:"font-bold text-lg",children:f.webseeds.length+" webseeds"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+o(f.webseeds)}),m.jsx(Hx,{peers:f.webseeds})]})})]})]});return m.jsx("div",{className:"w-full h-full",children:e?r?c(e):d(e):m.jsx("div",{})})},OV=({onClose:e})=>{const t=Oe(JP),[r,n]=N.useState(0),[o,i]=N.useState(0),[a,s]=N.useState(null),l=p=>{p.key==="Escape"&&(a?s(null):e())};N.useEffect(()=>(window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}),[a]),N.useEffect(()=>{let p=0,g=0;t.segments.forEach(S=>{p+=d(S),g+=c(S)}),n(p),i(g)},[t]);const c=p=>{let g=0;return p.peers.forEach(S=>{g+=S.downloadRate}),g},d=p=>{let g=0;return p.webseeds.forEach(S=>{g+=S.downloadRate}),g},f=()=>m.jsxs("div",{className:"flex flex-row w-full pt-10 pr-10 pl-10",children:[m.jsx("div",{className:"flex-[1]",children:a&&m.jsx(O0,{onClick:()=>{s(null)},className:"cursor-pointer"})}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsxs("h3",{className:"text-3xl font-semibold",children:[a?"Segment details":"Segments List"," "]})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(Hf,{onClick:()=>e(),className:"cursor-pointer"})})]});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-[100vw]",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-fit bg-white outline-none focus:outline-none items-center",children:[f(),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-start items-center h-[75vh] overflow-scroll",children:[m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white h-[90%]",children:[m.jsx(TV,{segments:t.segments,segmentSelected:a!=null,onSegmentClicked:p=>s(p)}),a&&m.jsx("div",{className:"absolute z-10 w-[95%] h-[80%] bg-white",children:m.jsx(EV,{segment:a})})]}),!a&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"webseeds :"}),m.jsx("p",{children:xr(r)})]}),m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"peers :"}),m.jsx("p",{children:xr(o)})]})]})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},IV=({flag:e})=>{function t(o){return o&&typeof o=="object"&&o.constructor===Array}const r=o=>t(o)?n(o):m.jsx("td",{className:"px-4 py-2",children:String(o)}),n=o=>m.jsx(m.Fragment,{children:o.map(i=>m.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:m.jsx("td",{className:"px-4 py-2",children:i+""})},i))});return m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onMouseOver:o=>{const i=o.target,a=e.usage;a&&i.setAttribute("title",a)},children:[m.jsx("td",{className:"px-4 py-2",children:e.flag}),r(e.value),m.jsx("td",{className:"px-4 py-2",children:String(e.usage)})]},e.flag)},jV=({flags:e})=>m.jsx("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[500px] max-w-[1400px] min-w-[30vw] overflow-auto",children:m.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Flag"}),m.jsx("th",{className:"px-4 py-2",children:"Value"}),m.jsx("th",{className:"px-4 py-2",children:"Flag Usage"})]})}),m.jsx("tbody",{children:e==null?void 0:e.map(t=>m.jsx(IV,{flag:t},t.flag))})]})}),zV=["datadir","downloader.api.addr","downloader.disable.ipv4","downloader.disable.ipv6","nat","pprof","pprof.addr","pprof.cpuprofile","pprof.port","seedbox","torrent.conns.perfile","torrent.download.rate","torrent.download.slots","torrent.maxpeers","torrent.port","torrent.staticpeers","torrent.upload.rate","torrent.verbosity","trace","verbosity","verify","verify.failfast","verify.files","webseed"],NV=()=>{const e=Oe(JP),[t,r]=N.useState(!1),n=Oe(Gk),o=Oe(K3),i=hk(),a=()=>i("/issues"),s=n.filter(d=>zV.includes(d.flag)),l=()=>!e.downloadFinished&&e.indexed<100&&e.torrentMetadataReady0?"downloading and waiting for metadata":"waiting for metadata":!e.downloadFinished&&e.indexed<100?"Downloading":e.indexed<100?"Indexing":"Finished",c=()=>{let d=0;return e.totalTime.forEach(f=>{d+=f}),P0(d)};return m.jsxs("div",{children:[o.length>0&&m.jsx("p",{className:"font-bold mt-5 mb-5 text-yellow-400 cursor-pointer",onClick:a,children:"Found "+o.length+" download speed issues"}),m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Status"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Downaloaded"}),m.jsx("th",{className:"px-4 py-2",children:"Total"}),m.jsx("th",{className:"px-4 py-2",children:"Time Left"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"}),m.jsx("th",{className:"px-4 py-2",children:"Download Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Upload Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Peers"}),m.jsx("th",{className:"px-4 py-2",children:"Files"}),m.jsx("th",{className:"px-4 py-2",children:"Connections"}),m.jsx("th",{className:"px-4 py-2",children:"Alloc"}),m.jsx("th",{className:"px-4 py-2",children:"Sys"})]})}),m.jsx("tbody",{children:m.jsxs("tr",{onClick:()=>{r(!0)},children:[m.jsx("td",{className:"px-4 py-2",children:"Snapshots"}),m.jsx("td",{className:"px-4 py-2 text-center",children:l()}),m.jsx("td",{className:"px-4 py-2",children:T0(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:ot(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:ot(e.total)}),m.jsx("td",{className:"px-4 py-2",children:m9(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:c()}),m.jsx("td",{className:"px-4 py-2",children:ex(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:ex(e.uploadRate)}),m.jsx("td",{className:"px-4 py-2",children:e.peers}),m.jsx("td",{className:"px-4 py-2",children:e.files}),m.jsx("td",{className:"px-4 py-2",children:e.connections}),m.jsx("td",{className:"px-4 py-2",children:ot(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:ot(e.sys)})]})})]}),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("p",{className:"font-bold mt-5",children:"Flags related to downloader"}),m.jsx(jV,{flags:s})]}),t&&m.jsx(OV,{onClose:()=>{r(!1)}})]})},AV=({selectedStatistics:e,statistics:t,onRowClicked:r})=>{const n=o=>{let i="px-4 py-2 hover:bg-gray-100";const a="bg-gray-300",s="bg-white text-black";return(o===zn.Active||o===zn.Static||o===zn.Total)&&(i+=" border-r"),o===e?i+" "+a:i+" "+s};return m.jsxs("div",{className:"flex flex-row",children:[m.jsx("div",{className:"shadow-lg rounded-md bg-white overflow-auto mr-5",children:m.jsx("table",{className:"table-fixed text-center",children:m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsxs("td",{className:n(zn.Active),onClick:()=>r(zn.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(zn.Static),onClick:()=>r(zn.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(zn.Total),onClick:()=>r(zn.Total),children:[m.jsx("span",{children:"Total Seen:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.totalPeers})]})]})})})}),m.jsx("div",{className:"shadow-lg rounded-md bg-white overflow-auto",children:m.jsx("table",{className:"table-fixed text-center",children:m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"In Rate:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:xr(t.totalInRate)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Network In:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:ot(t.totalInBytes)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Out Rate:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:xr(t.totalOutRate)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Network Out:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:ot(t.totalOutBytes)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Total Network:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:ot(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},ym=({peers:e,onPeerClicked:t})=>{const[r,n]=N.useState(e),[o,i]=N.useState({column:"Type",descending:!0});N.useEffect(()=>{a(e,o)},[e]);const a=(f,p)=>{let g=f.sort((S,y)=>p.column==="Id"?s(S.id,y.id,p.descending):p.column==="Type"?s(S.type,y.type,p.descending):p.column==="Status"?s(S.active.toString(),y.active.toString(),p.descending):p.column==="TotalIn"?l(S.network.bytesIn,y.network.bytesIn,p.descending):p.column==="TotalOut"?l(S.network.bytesOut,y.network.bytesOut,p.descending):p.column==="InSpeed"?l(S.network.inRate,y.network.inRate,p.descending):l(S.network.outRate,y.network.outRate,p.descending));i(p),n(g)},s=(f,p,g)=>g?p.localeCompare(f):f.localeCompare(p),l=(f,p,g)=>g?p-f:f-p,c=f=>o.column!==f?m.jsx(ou,{className:"ml-2"}):o.descending?m.jsx(ru,{}):m.jsx(nu,{}),d=f=>f.network.static?"static":f.network.bootnode?"bootnode":"dynamic";return m.jsx("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[83vh] w-full overflow-auto",children:m.jsxs("table",{className:"table-fixed text-left w-full",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Id",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["peer ID",c("Id")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Type",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Type",c("Type")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Status",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Status",c("Status")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"TotalIn",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Total In",c("TotalIn")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"TotalOut",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Total Out",c("TotalOut")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"InSpeed",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["In Speed",c("InSpeed")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"OutSpeed",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Out Speed",c("OutSpeed")]})})]})}),m.jsx("tbody",{children:r.map((f,p)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>{t(f.id)},children:[m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:f.id}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:d(f)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:f.active?"active":""}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:ot(f.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:ot(f.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:xr(f.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:xr(f.network.outRate)})]},p))})]})})},MV=({peerId:e,onClose:t,...r})=>{const o=R3()(Ee.getState(),e),i=(f,p)=>{let g=Object.keys(f),S=Object.keys(p);const y=new Set([...g,...S]),C=Array.from(y);let v=[];return C.forEach(b=>{let x=f[b]|0,k=p[b]|0;v.push({key:b,bytesIn:x,bytesOut:k})}),v},a=()=>{let f=i(o.network.capBytesIn,o.network.capBytesOut);return l(f)},s=()=>{let f=i(o.network.typeBytesIn,o.network.typeBytesOut);return l(f)},l=f=>m.jsxs("table",{className:"table-auto text-left w-full",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b font-bold",children:[m.jsx("th",{children:"Type"}),m.jsx("th",{children:"In"}),m.jsx("th",{children:"Out"})]})}),m.jsx("tbody",{children:f.map(p=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{children:p.key}),m.jsx("td",{children:ot(p.bytesIn)}),m.jsx("td",{children:ot(p.bytesOut)})]},p.key))})]}),c=()=>m.jsxs("table",{className:"table-auto text-left w-full",children:[m.jsx("thead",{}),m.jsxs("tbody",{children:[d("ID",o.id),d("protocols",o.protocols),d("enr",o.enr),d("Enode",o.enode),d("Cient",o.name),d("caps",o.caps.toString()),d("local address",o.network.localAddress),d("remote address",o.network.remoteAddress),d("In",ot(o.network.bytesIn)),d("Out",ot(o.network.bytesOut)),d("In speed",xr(o.network.inRate)),d("Out speed",xr(o.network.outRate))]})]}),d=(f,p)=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{children:f+": "}),m.jsx("td",{children:p})]},f);return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center",children:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Peer Details"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center items-center max-h-[70vh] overflow-scroll",children:[m.jsx("p",{className:"font-bold underline",children:"Main info :"}),c(),m.jsx("div",{className:"h-5"}),m.jsx("p",{className:"font-bold underline",children:"Network Usage By Capability :"}),a(),m.jsx("div",{className:"h-5"}),m.jsx("p",{className:"font-bold underline",children:"Network Usage By Type :"}),s()]}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(Vn,{backgroundColor:fs,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var zn=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(zn||{});const qx=({type:e})=>{let t=[],r={activePeers:0,totalPeers:0,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0,totalInRate:0,totalOutRate:0},n=[],o=[];e==="sentry"?(t=Oe(Bf),r=Oe(O3),n=Oe(k3),o=Oe(T3)):(t=Oe(Wf),r=Oe(I3),n=Oe(P3),o=Oe(E3));const[i,a]=N.useState(null),[s,l]=N.useState("none"),c=()=>m.jsxs("table",{className:"table-fixed rounded-lg shadow-lg bg-white text-left mb-4 w-full h-fit",children:[m.jsx("thead",{children:m.jsx("tr",{className:"border-b",children:m.jsx("th",{className:"px-4 py-2",children:"Error"})})}),m.jsx("tbody",{})]});return m.jsxs("div",{className:"flex items-center flex-col",children:[m.jsxs("div",{className:"flex justify-center items-center flex-row mb-5",children:[m.jsx("p",{className:"mb-2 font-bold text-2xl",children:e==="sentry"?"eth/6x P2P":"Beacon chain P2P"}),m.jsx("div",{className:"w-5"}),m.jsx(AV,{statistics:r,selectedStatistics:s,onRowClicked:d=>{l(d)}})]}),s==="active"&&m.jsx(ym,{peers:n,onPeerClicked:d=>{a(d)}}),s==="static"&&m.jsx(ym,{peers:o,onPeerClicked:d=>{a(d)}}),s==="total"&&m.jsx(ym,{peers:t,onPeerClicked:d=>{a(d)}}),s==="errors"&&c(),i&&m.jsx(MV,{peerId:i,onClose:()=>{a(null)}})]})},LV=()=>{const e=Oe(F3),t=n=>{switch(n){case Cc.Queued:return"Queued";case Cc.Running:return"Running";case Cc.Completed:return"Completed";default:return"Unknown"}},r=n=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:n.id}),m.jsx("td",{className:"px-4 py-2",children:t(n.state)}),n.subStages.length===0?null:m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"SubStage"}),m.jsx("th",{className:"px-4 py-2",children:"State"})]})}),m.jsx("tbody",{children:n.subStages.map(o=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:o.id}),m.jsx("td",{className:"px-4 py-2",children:t(o.state)})]}))})]})]});return m.jsx("div",{children:m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Stage"}),m.jsx("th",{className:"px-4 py-2",children:"State"})]})}),m.jsx("tbody",{children:e.map(n=>r(n))})]})})},$V=()=>m.jsx("div",{children:m.jsx(LV,{})}),DV=()=>{const e=Oe(_y),t=()=>m.jsx("div",{children:m.jsx("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:m.jsx("tbody",{children:e.map(r=>m.jsx("tr",{children:m.jsx("div",{className:"p-1",children:m.jsx(cT,{variant:"filled",severity:"warning",children:r.message})})}))})})});return m.jsx("div",{className:"flex flex-col",children:e.length>0?t():m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"No issues detected"})})};function FV(){return m.jsx("div",{children:m.jsx(kz,{children:m.jsxs(Zt,{path:"/",element:m.jsx(BV,{}),children:[m.jsx(Zt,{index:!0,element:m.jsx(iB,{})}),m.jsx(Zt,{path:"sentry-network",element:m.jsx(qx,{type:"sentry"})}),m.jsx(Zt,{path:"sentinel-network",element:m.jsx(qx,{type:"sentinel"})}),m.jsx(Zt,{path:"downloader",element:m.jsx(NV,{})}),m.jsx(Zt,{path:"logs",element:m.jsx(g9,{})}),m.jsx(Zt,{path:"chain",element:m.jsx(WV,{})}),m.jsx(Zt,{path:"data",element:m.jsx($9,{})}),m.jsx(Zt,{path:"debug",element:m.jsx(UV,{})}),m.jsx(Zt,{path:"testing",element:m.jsx(HV,{})}),m.jsx(Zt,{path:"performance",element:m.jsx($V,{})}),m.jsx(Zt,{path:"documentation",element:m.jsx(qV,{})}),m.jsx(Zt,{path:"issues",element:m.jsx(DV,{})}),m.jsx(Zt,{path:"admin",element:m.jsx(B9,{})}),m.jsx(Zt,{path:"*",element:m.jsx(VV,{})})]})})})}function BV(){const e=Ql(),t=Oe(ft),r=Oe(oy),n=Oe(ty),o=Oe(ry),i=Oe(U3),a=Oe(qP),[s,l]=N.useState(!1),[c,d]=N.useState(!1);N.useEffect(()=>{o&&(document!=null&&document.title)&&(document.title="ErigonWatch - "+o.name)},[o]),N.useEffect(()=>{PB()},[]),N.useEffect(()=>{},[]),N.useEffect(()=>{a!==Go.Unknown&&Pv()&&e(Uk({name:"localSession",pin:"noPin",is_active:!0,nodes:[]}))},[a]),N.useEffect(()=>{a!==Go.Unknown&&(Pv()?OB():n!==""&&EB())},[n,a]),N.useEffect(()=>{t!==""&&n!==""&&f()},[t]);const f=()=>{zB(),jB(),IB(),pT(),NB(),AB(),LB(),k_(),setInterval(()=>{k_()},5*ca.second),$B(),P_(),setInterval(()=>{P_()},20*ca.second),setInterval(()=>{},2*ca.second),setInterval(()=>{e(x3({activeNodeId:t,countInterval:15}))},15*ca.second),FB()};let p=null;return N.useEffect(()=>(i?p=setInterval(()=>{DB()},5*ca.second):clearInterval(p),()=>clearInterval(p)),[i]),N.useEffect(()=>{t!==""&&r.length>0&&r.forEach(g=>{g.tables.length===0&&MB(g.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(q7,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(Cz,{})}),m.jsx(K9,{onSessionClicked:()=>{l(!0)},onNodeClicked:()=>{d(!0)}}),m.jsx(Y9,{open:s,onClose:()=>{l(!1)}}),m.jsx(X9,{open:c,onClose:()=>{d(!1)}})]})}function WV(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function UV(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function HV(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function qV(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function VV(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(ko,{to:"/",children:"Go to the home page"})})]})}function Ac(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ac=function(r){return typeof r}:Ac=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ac(e)}function GV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){for(var r=0;r