diff --git a/web/dist/assets/index-2a2af674.js b/web/dist/assets/index-2a2af674.js deleted file mode 100644 index 16d9df4..0000000 --- a/web/dist/assets/index-2a2af674.js +++ /dev/null @@ -1,775 +0,0 @@ -function yO(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 di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xa(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 _x={exports:{}},Pd={},xx={exports:{}},Te={};/** - * @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 Ll=Symbol.for("react.element"),bO=Symbol.for("react.portal"),wO=Symbol.for("react.fragment"),_O=Symbol.for("react.strict_mode"),xO=Symbol.for("react.profiler"),CO=Symbol.for("react.provider"),RO=Symbol.for("react.context"),kO=Symbol.for("react.forward_ref"),PO=Symbol.for("react.suspense"),TO=Symbol.for("react.memo"),EO=Symbol.for("react.lazy"),OS=Symbol.iterator;function OO(e){return e===null||typeof e!="object"?null:(e=OS&&e[OS]||e["@@iterator"],typeof e=="function"?e:null)}var Cx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rx=Object.assign,kx={};function Ja(e,t,r){this.props=e,this.context=t,this.refs=kx,this.updater=r||Cx}Ja.prototype.isReactComponent={};Ja.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")};Ja.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Px(){}Px.prototype=Ja.prototype;function Ev(e,t,r){this.props=e,this.context=t,this.refs=kx,this.updater=r||Cx}var Ov=Ev.prototype=new Px;Ov.constructor=Ev;Rx(Ov,Ja.prototype);Ov.isPureReactComponent=!0;var IS=Array.isArray,Tx=Object.prototype.hasOwnProperty,Iv={current:null},Ex={key:!0,ref:!0,__self:!0,__source:!0};function Ox(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)Tx.call(t,n)&&!Ex.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ke=Y[we];if(0>>1;weo(Se,ce))Go(V,Se)?(Y[we]=V,Y[G]=ce,we=G):(Y[we]=Se,Y[$e]=ce,we=$e);else if(Go(V,ce))Y[we]=V,Y[G]=ce,we=G;else break e}}return te}function o(Y,te){var ce=Y.sortIndex-te.sortIndex;return ce!==0?ce:Y.id-te.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 u=[],c=[],d=1,f=null,p=3,y=!1,S=!1,g=!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 _(Y){for(var te=r(c);te!==null;){if(te.callback===null)n(c);else if(te.startTime<=Y)n(c),te.sortIndex=te.expirationTime,t(u,te);else break;te=r(c)}}function k(Y){if(g=!1,_(Y),!S)if(r(u)!==null)S=!0,ae(T);else{var te=r(c);te!==null&&he(k,te.startTime-Y)}}function T(Y,te){S=!1,g&&(g=!1,v(O),O=-1),y=!0;var ce=p;try{for(_(te),f=r(u);f!==null&&(!(f.expirationTime>te)||Y&&!M());){var we=f.callback;if(typeof we=="function"){f.callback=null,p=f.priorityLevel;var ke=we(f.expirationTime<=te);te=e.unstable_now(),typeof ke=="function"?f.callback=ke:f===r(u)&&n(u),_(te)}else n(u);f=r(u)}if(f!==null)var yt=!0;else{var $e=r(c);$e!==null&&he(k,$e.startTime-te),yt=!1}return yt}finally{f=null,p=ce,y=!1}}var E=!1,x=null,O=-1,I=5,j=-1;function M(){return!(e.unstable_now()-jY||125we?(Y.sortIndex=ce,t(c,Y),r(u)===null&&Y===r(c)&&(g?(v(O),O=-1):g=!0,he(k,ce-we))):(Y.sortIndex=ke,t(u,Y),S||y||(S=!0,ae(T))),Y},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(Y){var te=p;return function(){var ce=p;p=te;try{return Y.apply(this,arguments)}finally{p=ce}}}})(Nx);zx.exports=Nx;var BO=zx.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 Ax=N,Fr=BO;function re(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"),im=Object.prototype.hasOwnProperty,WO=/^[: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]*$/,zS={},NS={};function UO(e){return im.call(NS,e)?!0:im.call(zS,e)?!1:WO.test(e)?NS[e]=!0:(zS[e]=!0,!1)}function HO(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 qO(e,t,r,n){if(t===null||typeof t>"u"||HO(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 hr(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 Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new hr(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){Ut[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var zv=/[\-:]([a-z])/g;function Nv(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(zv,Nv);Ut[t]=new hr(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(zv,Nv);Ut[t]=new hr(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(zv,Nv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Av(e,t,r,n){var o=Ut.hasOwnProperty(t)?Ut[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var u=` -`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Oh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?js(e):""}function GO(e){switch(e.tag){case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return e=Ih(e.type,!1),e;case 11:return e=Ih(e.type.render,!1),e;case 1:return e=Ih(e.type,!0),e;default:return""}}function um(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 ia:return"Fragment";case oa:return"Portal";case am:return"Profiler";case Mv:return"StrictMode";case sm:return"Suspense";case lm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $x:return(e.displayName||"Context")+".Consumer";case Lx:return(e._context.displayName||"Context")+".Provider";case Lv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $v:return t=e.displayName||null,t!==null?t:um(e.type)||"Memo";case wo:t=e._payload,e=e._init;try{return um(e(t))}catch{}}return null}function VO(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 um(t);case 8:return t===Mv?"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 Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KO(e){var t=Fx(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 wu(e){e._valueTracker||(e._valueTracker=KO(e))}function Bx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Pc(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 cm(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function MS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Uo(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 Wx(e,t){t=t.checked,t!=null&&Av(e,"checked",t,!1)}function dm(e,t){Wx(e,t);var r=Uo(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")?fm(e,t.type,r):t.hasOwnProperty("defaultValue")&&fm(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function LS(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 fm(e,t,r){(t!=="number"||Pc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var zs=Array.isArray;function ga(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_u.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qs={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},YO=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(e){YO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qs[t]=qs[e]})});function Gx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qs.hasOwnProperty(e)&&qs[e]?(""+t).trim():t+"px"}function Vx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Gx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var QO=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 mm(e,t){if(t){if(QO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function vm(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 gm=null;function Dv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ym=null,ya=null,Sa=null;function FS(e){if(e=Fl(e)){if(typeof ym!="function")throw Error(re(280));var t=e.stateNode;t&&(t=jd(t),ym(e.stateNode,e.type,t))}}function Kx(e){ya?Sa?Sa.push(e):Sa=[e]:ya=e}function Yx(){if(ya){var e=ya,t=Sa;if(Sa=ya=null,FS(e),t)for(e=0;e>>=0,e===0?32:31-(sI(e)/lI|0)|0}var xu=64,Cu=4194304;function Ns(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 Ic(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=Ns(s):(i&=a,i!==0&&(n=Ns(i)))}else a=r&~o,a!==0?n=Ns(a):i!==0&&(n=Ns(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 $l(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=r}function fI(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=Vs),YS=String.fromCharCode(32),QS=!1;function mC(e,t){switch(e){case"keyup":return FI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function WI(e,t){switch(e){case"compositionend":return vC(t);case"keypress":return t.which!==32?null:(QS=!0,YS);case"textInput":return e=t.data,e===YS&&QS?null:e;default:return null}}function UI(e,t){if(aa)return e==="compositionend"||!Vv&&mC(e,t)?(e=hC(),tc=Hv=Po=null,aa=!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=eb(r)}}function bC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wC(){for(var e=window,t=Pc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Pc(e.document)}return t}function Kv(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 JI(e){var t=wC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bC(r.ownerDocument.documentElement,r)){if(n!==null&&Kv(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=tb(r,i);var a=tb(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,sa=null,Cm=null,Ys=null,Rm=!1;function rb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Rm||sa==null||sa!==Pc(n)||(n=sa,"selectionStart"in n&&Kv(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}),Ys&&fl(Ys,n)||(Ys=n,n=Nc(Cm,"onSelect"),0ca||(e.current=Im[ca],Im[ca]=null,ca--)}function Ve(e,t){ca++,Im[ca]=e.current,e.current=t}var Ho={},nr=Qo(Ho),wr=Qo(!1),xi=Ho;function Oa(e,t){var r=e.type.contextTypes;if(!r)return Ho;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 _r(e){return e=e.childContextTypes,e!=null}function Mc(){Xe(wr),Xe(nr)}function ub(e,t,r){if(nr.current!==Ho)throw Error(re(168));Ve(nr,t),Ve(wr,r)}function OC(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(re(108,VO(e)||"Unknown",o));return st({},r,n)}function Lc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ho,xi=nr.current,Ve(nr,e),Ve(wr,wr.current),!0}function cb(e,t,r){var n=e.stateNode;if(!n)throw Error(re(169));r?(e=OC(e,t,xi),n.__reactInternalMemoizedMergedChildContext=e,Xe(wr),Xe(nr),Ve(nr,e)):Xe(wr),Ve(wr,r)}var to=null,zd=!1,qh=!1;function IC(e){to===null?to=[e]:to.push(e)}function c2(e){zd=!0,IC(e)}function Xo(){if(!qh&&to!==null){qh=!0;var e=0,t=Be;try{var r=to;for(Be=1;e>=a,o-=a,oo=1<<32-yn(t)+o|r<O?(I=x,x=null):I=x.sibling;var j=p(v,x,_[O],k);if(j===null){x===null&&(x=I);break}e&&x&&j.alternate===null&&t(v,x),b=i(j,b,O),E===null?T=j:E.sibling=j,E=j,x=I}if(O===_.length)return r(v,x),rt&&si(v,O),T;if(x===null){for(;O<_.length;O++)x=f(v,_[O],k),x!==null&&(b=i(x,b,O),E===null?T=x:E.sibling=x,E=x);return rt&&si(v,O),T}for(x=n(v,x);O<_.length;O++)I=y(x,v,O,_[O],k),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?O:I.key),b=i(I,b,O),E===null?T=I:E.sibling=I,E=I);return e&&x.forEach(function(M){return t(v,M)}),rt&&si(v,O),T}function g(v,b,_,k){var T=ys(_);if(typeof T!="function")throw Error(re(150));if(_=T.call(_),_==null)throw Error(re(151));for(var E=T=null,x=b,O=b=0,I=null,j=_.next();x!==null&&!j.done;O++,j=_.next()){x.index>O?(I=x,x=null):I=x.sibling;var M=p(v,x,j.value,k);if(M===null){x===null&&(x=I);break}e&&x&&M.alternate===null&&t(v,x),b=i(M,b,O),E===null?T=M:E.sibling=M,E=M,x=I}if(j.done)return r(v,x),rt&&si(v,O),T;if(x===null){for(;!j.done;O++,j=_.next())j=f(v,j.value,k),j!==null&&(b=i(j,b,O),E===null?T=j:E.sibling=j,E=j);return rt&&si(v,O),T}for(x=n(v,x);!j.done;O++,j=_.next())j=y(x,v,O,j.value,k),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?O:j.key),b=i(j,b,O),E===null?T=j:E.sibling=j,E=j);return e&&x.forEach(function(B){return t(v,B)}),rt&&si(v,O),T}function C(v,b,_,k){if(typeof _=="object"&&_!==null&&_.type===ia&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case bu:e:{for(var T=_.key,E=b;E!==null;){if(E.key===T){if(T=_.type,T===ia){if(E.tag===7){r(v,E.sibling),b=o(E,_.props.children),b.return=v,v=b;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===wo&&gb(T)===E.type){r(v,E.sibling),b=o(E,_.props),b.ref=xs(v,E,_),b.return=v,v=b;break e}r(v,E);break}else t(v,E);E=E.sibling}_.type===ia?(b=yi(_.props.children,v.mode,k,_.key),b.return=v,v=b):(k=uc(_.type,_.key,_.props,null,v.mode,k),k.ref=xs(v,b,_),k.return=v,v=k)}return a(v);case oa:e:{for(E=_.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){r(v,b.sibling),b=o(b,_.children||[]),b.return=v,v=b;break e}else{r(v,b);break}else t(v,b);b=b.sibling}b=Zh(_,v.mode,k),b.return=v,v=b}return a(v);case wo:return E=_._init,C(v,b,E(_._payload),k)}if(zs(_))return S(v,b,_,k);if(ys(_))return g(v,b,_,k);Iu(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(r(v,b.sibling),b=o(b,_),b.return=v,v=b):(r(v,b),b=Jh(_,v.mode,k),b.return=v,v=b),a(v)):r(v,b)}return C}var ja=DC(!0),FC=DC(!1),Bl={},$n=Qo(Bl),vl=Qo(Bl),gl=Qo(Bl);function pi(e){if(e===Bl)throw Error(re(174));return e}function ng(e,t){switch(Ve(gl,t),Ve(vl,e),Ve($n,Bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pm(t,e)}Xe($n),Ve($n,t)}function za(){Xe($n),Xe(vl),Xe(gl)}function BC(e){pi(gl.current);var t=pi($n.current),r=pm(t,e.type);t!==r&&(Ve(vl,e),Ve($n,r))}function og(e){vl.current===e&&(Xe($n),Xe(vl))}var it=Qo(0);function Uc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gh=[];function ig(){for(var e=0;er?r:4,e(!0);var n=Vh.transition;Vh.transition={};try{e(!1),t()}finally{Be=r,Vh.transition=n}}function nR(){return rn().memoizedState}function p2(e,t,r){var n=Lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},oR(e))iR(t,r);else if(r=AC(e,t,r,n),r!==null){var o=dr();Sn(r,e,n,o),aR(r,t,n)}}function m2(e,t,r){var n=Lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(oR(e))iR(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,wn(s,a)){var u=t.interleaved;u===null?(o.next=o,tg(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=AC(e,t,o,n),r!==null&&(o=dr(),Sn(r,e,n,o),aR(r,t,n))}}function oR(e){var t=e.alternate;return e===at||t!==null&&t===at}function iR(e,t){Qs=Hc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function aR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Bv(e,r)}}var qc={readContext:tn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},v2={readContext:tn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:Sb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ic(4194308,4,JC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var r=In();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=In();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=p2.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:yb,useDebugValue:cg,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=yb(!1),t=e[0];return e=h2.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,o=In();if(rt){if(r===void 0)throw Error(re(407));r=r()}else{if(r=t(),Nt===null)throw Error(re(349));Ri&30||HC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Sb(GC.bind(null,n,i,e),[e]),n.flags|=2048,bl(9,qC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=In(),t=Nt.identifierPrefix;if(rt){var r=io,n=oo;r=(n&~(1<<32-yn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yl++,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[Mn]=t,e[ml]=n,mR(e,t,!1,!1),t.stateNode=e;e:{switch(a=vm(r,n),r){case"dialog":Qe("cancel",e),Qe("close",e),o=n;break;case"iframe":case"object":case"embed":Qe("load",e),o=n;break;case"video":case"audio":for(o=0;oAa&&(t.flags|=128,n=!0,Cs(i,!1),t.lanes=4194304)}else{if(!n)if(e=Uc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return Yt(t),null}else 2*mt()-i.renderingStartTime>Aa&&r!==1073741824&&(t.flags|=128,n=!0,Cs(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=mt(),t.sibling=null,r=it.current,Ve(it,n?r&1|2:r&1),t):(Yt(t),null);case 22:case 23:return vg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?jr&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function C2(e,t){switch(Qv(t),t.tag){case 1:return _r(t.type)&&Mc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),Xe(wr),Xe(nr),ig(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return og(t),null;case 13:if(Xe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));Ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(it),null;case 4:return za(),null;case 10:return eg(t.type._context),null;case 22:case 23:return vg(),null;case 24:return null;default:return null}}var zu=!1,tr=!1,R2=typeof WeakSet=="function"?WeakSet:Set,me=null;function pa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dt(e,t,n)}else r.current=null}function Um(e,t,r){try{r()}catch(n){dt(e,t,n)}}var Tb=!1;function k2(e,t){if(km=jc,e=wC(),Kv(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,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(u=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++d===n&&(u=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Pm={focusedElem:e,selectionRange:r},jc=!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 g=S.memoizedProps,C=S.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:hn(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(k){dt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return S=Tb,Tb=!1,S}function Xs(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&&Um(t,r,i)}o=o.next}while(o!==n)}}function Md(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 Hm(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 yR(e){var t=e.alternate;t!==null&&(e.alternate=null,yR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ml],delete t[Om],delete t[l2],delete t[u2])),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 SR(e){return e.tag===5||e.tag===3||e.tag===4}function Eb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||SR(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 qm(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=Ac));else if(n!==4&&(e=e.child,e!==null))for(qm(e,t,r),e=e.sibling;e!==null;)qm(e,t,r),e=e.sibling}function Gm(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(Gm(e,t,r),e=e.sibling;e!==null;)Gm(e,t,r),e=e.sibling}var Dt=null,pn=!1;function bo(e,t,r){for(r=r.child;r!==null;)bR(e,t,r),r=r.sibling}function bR(e,t,r){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Td,r)}catch{}switch(r.tag){case 5:tr||pa(r,t);case 6:var n=Dt,o=pn;Dt=null,bo(e,t,r),Dt=n,pn=o,Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dt.removeChild(r.stateNode));break;case 18:Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?Hh(e.parentNode,r):e.nodeType===1&&Hh(e,r),cl(e)):Hh(Dt,r.stateNode));break;case 4:n=Dt,o=pn,Dt=r.stateNode.containerInfo,pn=!0,bo(e,t,r),Dt=n,pn=o;break;case 0:case 11:case 14:case 15:if(!tr&&(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)&&Um(r,t,a),o=o.next}while(o!==n)}bo(e,t,r);break;case 1:if(!tr&&(pa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dt(r,t,s)}bo(e,t,r);break;case 21:bo(e,t,r);break;case 22:r.mode&1?(tr=(n=tr)||r.memoizedState!==null,bo(e,t,r),tr=n):bo(e,t,r);break;default:bo(e,t,r)}}function Ob(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new R2),t.forEach(function(n){var o=A2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=mt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T2(n/1960))-n,10e?16:e,To===null)var n=!1;else{if(e=To,To=null,Kc=0,Ie&6)throw Error(re(331));var o=Ie;for(Ie|=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 u=0;umt()-pg?gi(e,0):hg|=r),xr(e,t)}function TR(e,t){t===0&&(e.mode&1?(t=Cu,Cu<<=1,!(Cu&130023424)&&(Cu=4194304)):t=1);var r=dr();e=fo(e,t),e!==null&&($l(e,t,r),xr(e,r))}function N2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function A2(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(re(314))}n!==null&&n.delete(t),TR(e,r)}var ER;ER=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return br=!1,_2(e,t,r);br=!!(e.flags&131072)}else br=!1,rt&&t.flags&1048576&&jC(t,Dc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ac(e,t),e=t.pendingProps;var o=Oa(t,nr.current);wa(t,r),o=sg(null,t,n,e,o,r);var i=lg();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,_r(n)?(i=!0,Lc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rg(t),o.updater=Nd,t.stateNode=o,o._reactInternals=t,Mm(t,n,e,r),t=Dm(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&Yv(t),ur(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ac(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=L2(n),e=hn(n,e),o){case 0:t=$m(null,t,n,e,r);break e;case 1:t=Rb(null,t,n,e,r);break e;case 11:t=xb(null,t,n,e,r);break e;case 14:t=Cb(null,t,n,hn(n.type,e),r);break e}throw Error(re(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),$m(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Rb(e,t,n,o,r);case 3:e:{if(fR(t),e===null)throw Error(re(387));n=t.pendingProps,i=t.memoizedState,o=i.element,MC(e,t),Wc(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=Na(Error(re(423)),t),t=kb(e,t,n,r,o);break e}else if(n!==o){o=Na(Error(re(424)),t),t=kb(e,t,n,r,o);break e}else for(Ar=No(t.stateNode.containerInfo.firstChild),Mr=t,rt=!0,mn=null,r=FC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ia(),n===o){t=ho(e,t,r);break e}ur(e,t,n,r)}t=t.child}return t;case 5:return BC(t),e===null&&zm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Tm(n,o)?a=null:i!==null&&Tm(n,i)&&(t.flags|=32),dR(e,t),ur(e,t,a,r),t.child;case 6:return e===null&&zm(t),null;case 13:return hR(e,t,r);case 4:return ng(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ja(t,null,n,r):ur(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),xb(e,t,n,o,r);case 7:return ur(e,t,t.pendingProps,r),t.child;case 8:return ur(e,t,t.pendingProps.children,r),t.child;case 12:return ur(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,Ve(Fc,n._currentValue),n._currentValue=a,i!==null)if(wn(i.value,a)){if(i.children===o.children&&!wr.current){t=ho(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 u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=lo(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),Nm(i.return,r,t),s.lanes|=r;break}u=u.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(re(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Nm(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}ur(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,wa(t,r),o=tn(o),n=n(o),t.flags|=1,ur(e,t,n,r),t.child;case 14:return n=t.type,o=hn(n,t.pendingProps),o=hn(n.type,o),Cb(e,t,n,o,r);case 15:return uR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),ac(e,t),t.tag=1,_r(n)?(e=!0,Lc(t)):e=!1,wa(t,r),$C(t,n,o),Mm(t,n,o,r),Dm(null,t,n,!0,e,r);case 19:return pR(e,t,r);case 22:return cR(e,t,r)}throw Error(re(156,t.tag))};function OR(e,t){return rC(e,t)}function M2(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 Jr(e,t,r,n){return new M2(e,t,r,n)}function yg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L2(e){if(typeof e=="function")return yg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lv)return 11;if(e===$v)return 14}return 2}function $o(e,t){var r=e.alternate;return r===null?(r=Jr(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 uc(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")yg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ia:return yi(r.children,o,i,t);case Mv:a=8,o|=8;break;case am:return e=Jr(12,r,t,o|2),e.elementType=am,e.lanes=i,e;case sm:return e=Jr(13,r,t,o),e.elementType=sm,e.lanes=i,e;case lm:return e=Jr(19,r,t,o),e.elementType=lm,e.lanes=i,e;case Dx:return $d(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lx:a=10;break e;case $x:a=9;break e;case Lv:a=11;break e;case $v:a=14;break e;case wo:a=16,n=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Jr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yi(e,t,r,n){return e=Jr(7,e,n,t),e.lanes=r,e}function $d(e,t,r,n){return e=Jr(22,e,n,t),e.elementType=Dx,e.lanes=r,e.stateNode={isHidden:!1},e}function Jh(e,t,r){return e=Jr(6,e,null,t),e.lanes=r,e}function Zh(e,t,r){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $2(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=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sg(e,t,r,n,o,i,a,s,u){return e=new $2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},rg(i),e}function D2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),jx.exports=Wr;var Wl=jx.exports,$b=Wl;om.createRoot=$b.createRoot,om.hydrateRoot=$b.hydrateRoot;/** - * @remix-run/router v1.15.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 _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q2(){return Math.random().toString(36).substr(2,8)}function Fb(e,t){return{usr:e.state,key:e.key,idx:t}}function Xm(e,t,r,n){return r===void 0&&(r=null),_l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ts(t):t,{state:r,key:t&&t.key||n||q2()})}function Xc(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 ts(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 G2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Eo.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(_l({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Eo.Pop;let C=d(),v=C==null?null:C-c;c=C,u&&u({action:s,location:g.location,delta:v})}function p(C,v){s=Eo.Push;let b=Xm(g.location,C,v);r&&r(b,C),c=d()+1;let _=Fb(b,c),k=g.createHref(b);try{a.pushState(_,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&u&&u({action:s,location:g.location,delta:1})}function y(C,v){s=Eo.Replace;let b=Xm(g.location,C,v);r&&r(b,C),c=d();let _=Fb(b,c),k=g.createHref(b);a.replaceState(_,"",k),i&&u&&u({action:s,location:g.location,delta:0})}function S(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:Xc(C);return Rt(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return s},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Db,f),u=C,()=>{o.removeEventListener(Db,f),u=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:y,go(C){return a.go(C)}};return g}var Bb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bb||(Bb={}));function V2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ts(t):t,o=Cg(n.pathname||"/",r);if(o==null)return null;let i=AR(e);K2(i);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Rt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Do([n,u.relativePath]),d=r.concat(u);i.children&&i.children.length>0&&(Rt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),AR(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:tj(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 u of MR(i.path))o(i,a,u)}),t}function MR(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=MR(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function K2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rj(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Y2=/^:[\w-]+$/,Q2=3,X2=2,J2=1,Z2=10,ej=-2,Wb=e=>e==="*";function tj(e,t){let r=e.split("/"),n=r.length;return r.some(Wb)&&(n+=ej),t&&(n+=X2),r.filter(o=>!Wb(o)).reduce((o,i)=>o+(Y2.test(i)?Q2:i===""?J2:Z2),n)}function rj(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 nj(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{let{paramName:p,isOptional:y}=d;if(p==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const S=s[f];return y&&!S?c[p]=void 0:c[p]=sj(S||"",p),c},{}),pathname:i,pathnameBase:a,pattern:e}}function ij(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),xg(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,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function aj(e){try{return decodeURI(e)}catch(t){return xg(!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 sj(e,t){try{return decodeURIComponent(e)}catch(r){return xg(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Cg(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 lj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ts(e):e;return{pathname:r?r.startsWith("/")?r:uj(r,t):t,search:fj(n),hash:hj(o)}}function uj(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 ep(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 cj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function LR(e,t){let r=cj(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function $R(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=ts(e):(o=_l({},e),Rt(!o.pathname||!o.pathname.includes("?"),ep("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),ep("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),ep("#","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 u=lj(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Do=e=>e.join("/").replace(/\/\/+/g,"/"),dj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DR=["post","put","patch","delete"];new Set(DR);const mj=["get",...DR];new Set(mj);/** - * React Router v6.22.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 xl(){return xl=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=$R(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Do([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,a,i,e])}const bj=N.createContext(null);function wj(e){let t=N.useContext(Jo).outlet;return t&&N.createElement(bj.Provider,{value:e},t)}function WR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=N.useContext(Mi),{matches:o}=N.useContext(Jo),{pathname:i}=Hd(),a=JSON.stringify(LR(o,n.v7_relativeSplatPath));return N.useMemo(()=>$R(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function _j(e,t){return xj(e,t)}function xj(e,t,r,n){Ul()||Rt(!1);let{navigator:o}=N.useContext(Mi),{matches:i}=N.useContext(Jo),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Hd(),d;if(t){var f;let C=typeof t=="string"?ts(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Rt(!1),d=C}else d=c;let p=d.pathname||"/",y=u==="/"?p:p.slice(u.length)||"/",S=V2(e,{pathname:y}),g=Tj(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Do([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Do([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,r,n);return t&&g?N.createElement(Ud.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Eo.Pop}},g):g}function Cj(){let e=jj(),t=pj(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 Rj=N.createElement(Cj,null);class kj 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(Jo.Provider,{value:this.props.routeContext},N.createElement(FR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Pj(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(Rg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Jo.Provider,{value:t},n)}function Tj(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]));d>=0||Rt(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!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 y,S=!1,g=null,C=null;r&&(y=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Rj,u&&(c<0&&p===0?(Nj("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 _;return y?_=g:S?_=C:f.route.Component?_=N.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=d,N.createElement(Pj,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:_})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(kj,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var UR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(UR||{}),Jc=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}(Jc||{});function Ej(e){let t=N.useContext(Rg);return t||Rt(!1),t}function Oj(e){let t=N.useContext(vj);return t||Rt(!1),t}function Ij(e){let t=N.useContext(Jo);return t||Rt(!1),t}function HR(e){let t=Ij(),r=t.matches[t.matches.length-1];return r.route.id||Rt(!1),r.route.id}function jj(){var e;let t=N.useContext(FR),r=Oj(Jc.UseRouteError),n=HR(Jc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function zj(){let{router:e}=Ej(UR.UseNavigateStable),t=HR(Jc.UseNavigateStable),r=N.useRef(!1);return BR(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}const Ub={};function Nj(e,t,r){!t&&!Ub[e]&&(Ub[e]=!0)}function Aj(e){return wj(e.context)}function Xt(e){Rt(!1)}function Mj(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Eo.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&Rt(!1);let u=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:u,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},s)}),[u,s,i,a]);typeof n=="string"&&(n=ts(n));let{pathname:d="/",search:f="",hash:p="",state:y=null,key:S="default"}=n,g=N.useMemo(()=>{let C=Cg(d,u);return C==null?null:{location:{pathname:C,search:f,hash:p,state:y,key:S},navigationType:o}},[u,d,f,p,y,S,o]);return g==null?null:N.createElement(Mi.Provider,{value:c},N.createElement(Ud.Provider,{children:r,value:g}))}function Lj(e){let{children:t,location:r}=e;return _j(Jm(t),r)}new Promise(()=>{});function Jm(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,Jm(n.props.children,i));return}n.type!==Xt&&Rt(!1),!n.props.index||!n.props.children||Rt(!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=Jm(n.props.children,i)),r.push(a)}),r}/** - * React Router DOM v6.22.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 Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Dj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fj(e,t){return e.button===0&&(!t||t==="_self")&&!Dj(e)}const Bj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Wj="6";try{window.__reactRouterVersion=Wj}catch{}const Uj="startTransition",Hb=Ta[Uj];function Hj(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=H2({window:o,v5Compat:!0}));let a=i.current,[s,u]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=N.useCallback(f=>{c&&Hb?Hb(()=>u(f)):u(f)},[u,c]);return N.useLayoutEffect(()=>a.listen(d),[a,d]),N.createElement(Mj,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const qj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yr=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=$j(t,Bj),{basename:y}=N.useContext(Mi),S,g=!1;if(typeof c=="string"&&Gj.test(c)&&(S=c,qj))try{let _=new URL(window.location.href),k=c.startsWith("//")?new URL(_.protocol+c):new URL(c),T=Cg(k.pathname,y);k.origin===_.origin&&T!=null?c=T+k.search+k.hash:g=!0}catch{}let C=gj(c,{relative:o}),v=Vj(c,{replace:a,state:s,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function b(_){n&&n(_),_.defaultPrevented||v(_)}return N.createElement("a",Zm({},p,{href:S||C,onClick:g||i?n:b,ref:r,target:u}))});var qb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qb||(qb={}));var Gb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gb||(Gb={}));function Vj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,u=yj(),c=Hd(),d=WR(e,{relative:a});return N.useCallback(f=>{if(Fj(f,r)){f.preventDefault();let p=n!==void 0?n:Xc(c)===Xc(d);u(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,u,d,n,o,r,e,i,a,s])}var qR={exports:{}},GR={};/** - * @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 Ma=N;function Kj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yj=typeof Object.is=="function"?Object.is:Kj,Qj=Ma.useState,Xj=Ma.useEffect,Jj=Ma.useLayoutEffect,Zj=Ma.useDebugValue;function ez(e,t){var r=t(),n=Qj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Jj(function(){o.value=r,o.getSnapshot=t,tp(o)&&i({inst:o})},[e,r,t]),Xj(function(){return tp(o)&&i({inst:o}),e(function(){tp(o)&&i({inst:o})})},[e]),Zj(r),r}function tp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Yj(e,r)}catch{return!0}}function tz(e,t){return t()}var rz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tz:ez;GR.useSyncExternalStore=Ma.useSyncExternalStore!==void 0?Ma.useSyncExternalStore:rz;qR.exports=GR;var nz=qR.exports,VR={exports:{}},KR={};/** - * @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 qd=N,oz=nz;function iz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var az=typeof Object.is=="function"?Object.is:iz,sz=oz.useSyncExternalStore,lz=qd.useRef,uz=qd.useEffect,cz=qd.useMemo,dz=qd.useDebugValue;KR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=lz(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=cz(function(){function u(y){if(!c){if(c=!0,d=y,y=n(y),o!==void 0&&a.hasValue){var S=a.value;if(o(S,y))return f=S}return f=y}if(S=f,az(d,y))return S;var g=n(y);return o!==void 0&&o(S,g)?S:(d=y,f=g)}var c=!1,d,f,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,n,o]);var s=sz(e,i[0],i[1]);return uz(function(){a.hasValue=!0,a.value=s},[s]),dz(s),s};VR.exports=KR;var fz=VR.exports;function hz(e){e()}let YR=hz;const pz=e=>YR=e,mz=()=>YR,Vb=Symbol.for("react-redux-context"),Kb=typeof globalThis<"u"?globalThis:{};function vz(){var e;if(!N.createContext)return{};const t=(e=Kb[Vb])!=null?e:Kb[Vb]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const qo=vz();function kg(e=qo){return function(){return N.useContext(e)}}const QR=kg(),gz=()=>{throw new Error("uSES not initialized!")};let XR=gz;const yz=e=>{XR=e},Sz=(e,t)=>e===t;function bz(e=qo){const t=e===qo?QR:kg(e);return function(n,o={}){const{equalityFn:i=Sz,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:c,getServerState:d,stabilityCheck:f,noopCheck:p}=t();N.useRef(!0);const y=N.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),S=XR(c.addNestedSub,u.getState,d||u.getState,y,i);return N.useDebugValue(S),S}}const Ee=bz();function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var JR={exports:{}},We={};/** @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,Pg=Mt?Symbol.for("react.element"):60103,Tg=Mt?Symbol.for("react.portal"):60106,Gd=Mt?Symbol.for("react.fragment"):60107,Vd=Mt?Symbol.for("react.strict_mode"):60108,Kd=Mt?Symbol.for("react.profiler"):60114,Yd=Mt?Symbol.for("react.provider"):60109,Qd=Mt?Symbol.for("react.context"):60110,Eg=Mt?Symbol.for("react.async_mode"):60111,Xd=Mt?Symbol.for("react.concurrent_mode"):60111,Jd=Mt?Symbol.for("react.forward_ref"):60112,Zd=Mt?Symbol.for("react.suspense"):60113,wz=Mt?Symbol.for("react.suspense_list"):60120,ef=Mt?Symbol.for("react.memo"):60115,tf=Mt?Symbol.for("react.lazy"):60116,_z=Mt?Symbol.for("react.block"):60121,xz=Mt?Symbol.for("react.fundamental"):60117,Cz=Mt?Symbol.for("react.responder"):60118,Rz=Mt?Symbol.for("react.scope"):60119;function Hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pg:switch(e=e.type,e){case Eg:case Xd:case Gd:case Kd:case Vd:case Zd:return e;default:switch(e=e&&e.$$typeof,e){case Qd:case Jd:case tf:case ef:case Yd:return e;default:return t}}case Tg:return t}}}function ZR(e){return Hr(e)===Xd}We.AsyncMode=Eg;We.ConcurrentMode=Xd;We.ContextConsumer=Qd;We.ContextProvider=Yd;We.Element=Pg;We.ForwardRef=Jd;We.Fragment=Gd;We.Lazy=tf;We.Memo=ef;We.Portal=Tg;We.Profiler=Kd;We.StrictMode=Vd;We.Suspense=Zd;We.isAsyncMode=function(e){return ZR(e)||Hr(e)===Eg};We.isConcurrentMode=ZR;We.isContextConsumer=function(e){return Hr(e)===Qd};We.isContextProvider=function(e){return Hr(e)===Yd};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pg};We.isForwardRef=function(e){return Hr(e)===Jd};We.isFragment=function(e){return Hr(e)===Gd};We.isLazy=function(e){return Hr(e)===tf};We.isMemo=function(e){return Hr(e)===ef};We.isPortal=function(e){return Hr(e)===Tg};We.isProfiler=function(e){return Hr(e)===Kd};We.isStrictMode=function(e){return Hr(e)===Vd};We.isSuspense=function(e){return Hr(e)===Zd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gd||e===Xd||e===Kd||e===Vd||e===Zd||e===wz||typeof e=="object"&&e!==null&&(e.$$typeof===tf||e.$$typeof===ef||e.$$typeof===Yd||e.$$typeof===Qd||e.$$typeof===Jd||e.$$typeof===xz||e.$$typeof===Cz||e.$$typeof===Rz||e.$$typeof===_z)};We.typeOf=Hr;JR.exports=We;var kz=JR.exports,ek=kz,Pz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tk={};tk[ek.ForwardRef]=Pz;tk[ek.Memo]=Tz;var 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 Og=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),rf=Symbol.for("react.fragment"),nf=Symbol.for("react.strict_mode"),of=Symbol.for("react.profiler"),af=Symbol.for("react.provider"),sf=Symbol.for("react.context"),Ez=Symbol.for("react.server_context"),lf=Symbol.for("react.forward_ref"),uf=Symbol.for("react.suspense"),cf=Symbol.for("react.suspense_list"),df=Symbol.for("react.memo"),ff=Symbol.for("react.lazy"),Oz=Symbol.for("react.offscreen"),rk;rk=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Og:switch(e=e.type,e){case rf:case of:case nf:case uf:case cf:return e;default:switch(e=e&&e.$$typeof,e){case Ez:case sf:case lf:case ff:case df:case af:return e;default:return t}}case Ig:return t}}}He.ContextConsumer=sf;He.ContextProvider=af;He.Element=Og;He.ForwardRef=lf;He.Fragment=rf;He.Lazy=ff;He.Memo=df;He.Portal=Ig;He.Profiler=of;He.StrictMode=nf;He.Suspense=uf;He.SuspenseList=cf;He.isAsyncMode=function(){return!1};He.isConcurrentMode=function(){return!1};He.isContextConsumer=function(e){return an(e)===sf};He.isContextProvider=function(e){return an(e)===af};He.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Og};He.isForwardRef=function(e){return an(e)===lf};He.isFragment=function(e){return an(e)===rf};He.isLazy=function(e){return an(e)===ff};He.isMemo=function(e){return an(e)===df};He.isPortal=function(e){return an(e)===Ig};He.isProfiler=function(e){return an(e)===of};He.isStrictMode=function(e){return an(e)===nf};He.isSuspense=function(e){return an(e)===uf};He.isSuspenseList=function(e){return an(e)===cf};He.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===rf||e===of||e===nf||e===uf||e===cf||e===Oz||typeof e=="object"&&e!==null&&(e.$$typeof===ff||e.$$typeof===df||e.$$typeof===af||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===rk||e.getModuleId!==void 0)};He.typeOf=an;function Iz(){const e=mz();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 Yb={notify(){},get:()=>[]};function jz(e,t){let r,n=Yb,o=0,i=!1;function a(g){d();const C=n.subscribe(g);let v=!1;return()=>{v||(v=!0,C(),f())}}function s(){n.notify()}function u(){S.onStateChange&&S.onStateChange()}function c(){return i}function d(){o++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Iz())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Yb)}function p(){i||(i=!0,d())}function y(){i&&(i=!1,f())}const S={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>n};return S}const zz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nz=zz?N.useLayoutEffect:N.useEffect;function Az({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=jz(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]);Nz(()=>{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 u=t||qo;return N.createElement(u.Provider,{value:a},r)}function nk(e=qo){const t=e===qo?QR:kg(e);return function(){const{store:n}=t();return n}}const Mz=nk();function Lz(e=qo){const t=e===qo?Mz:nk(e);return function(){return t().dispatch}}const Hl=Lz();yz(fz.useSyncExternalStoreWithSelector);pz(Wl.unstable_batchedUpdates);function gn(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:jg(e)?2:zg(e)?3:0}function xa(e,t){return rs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $z(e,t){return rs(e)===2?e.get(t):e[t]}function ok(e,t,r){var n=rs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ik(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function jg(e){return Hz&&e instanceof Map}function zg(e){return qz&&e instanceof Set}function ui(e){return e.o||e.t}function Ng(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sk(e);delete t[tt];for(var r=Ca(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Dz),Object.freeze(e),t&&Ti(e,function(r,n){return Ag(n,!0)},!0)),e}function Dz(){gn(2)}function Mg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dn(e){var t=nv[e];return t||gn(18,e),t}function Fz(e,t){nv[e]||(nv[e]=t)}function ev(){return Cl}function rp(e,t){t&&(Dn("Patches"),e.u=[],e.s=[],e.v=t)}function Zc(e){tv(e),e.p.forEach(Bz),e.p=null}function tv(e){e===Cl&&(Cl=e.l)}function Qb(e){return Cl={p:[],l:Cl,h:e,m:!0,_:0}}function Bz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function np(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Dn("ES5").S(t,e,n),n?(r[tt].P&&(Zc(t),gn(4)),po(e)&&(e=ed(t,e),t.l||td(t,e)),t.u&&Dn("Patches").M(r[tt].t,e,t.u,t.s)):e=ed(t,r,[]),Zc(t),t.u&&t.v(t.u,t.s),e!==ak?e:void 0}function ed(e,t,r){if(Mg(t))return t;var n=t[tt];if(!n)return Ti(t,function(s,u){return Xb(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return td(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ng(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),Ti(i,function(s,u){return Xb(e,n,o,s,u,r,a)}),td(e,o,!1),r&&e.u&&Dn("Patches").N(n,r,e.u,e.s)}return n.o}function Xb(e,t,r,n,o,i,a){if(Go(o)){var s=ed(e,o,i&&t&&t.i!==3&&!xa(t.R,n)?i.concat(n):void 0);if(ok(r,n,s),!Go(s))return;e.m=!1}else a&&r.add(o);if(po(o)&&!Mg(o)){if(!e.h.D&&e._<1)return;ed(e,o),t&&t.A.l||td(e,o)}}function td(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ag(t,r)}function op(e,t){var r=e[tt];return(r?ui(r):e)[t]}function Jb(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 Ro(e){e.P||(e.P=!0,e.l&&Ro(e.l))}function ip(e){e.o||(e.o=Ng(e.t))}function rv(e,t,r){var n=jg(t)?Dn("MapSet").F(t,r):zg(t)?Dn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:ev(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=Rl;a&&(u=[s],c=Ms);var d=Proxy.revocable(u,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,r):Dn("ES5").J(t,r);return(r?r.A:ev()).p.push(n),n}function Wz(e){return Go(e)||gn(22,e),function t(r){if(!po(r))return r;var n,o=r[tt],i=rs(r);if(o){if(!o.P&&(o.i<4||!Dn("ES5").K(o)))return o.t;o.I=!0,n=Zb(r,i),o.I=!1}else n=Zb(r,i);return Ti(n,function(a,s){o&&$z(o.t,a)===s||ok(n,a,t(s))}),i===3?new Set(n):n}(e)}function Zb(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ng(e)}function Uz(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var u=this[tt];return Rl.get(u,i)},set:function(u){var c=this[tt];Rl.set(c,i,u)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][tt];if(!s.P)switch(s.i){case 5:n(s)&&Ro(s);break;case 4:r(s)&&Ro(s)}}}function r(i){for(var a=i.t,s=i.k,u=Ca(s),c=u.length-1;c>=0;c--){var d=u[c];if(d!==tt){var f=a[d];if(f===void 0&&!xa(a,d))return!0;var p=s[d],y=p&&p[tt];if(y?y.t!==f:!ik(p,f))return!0}}var S=!!a[tt];return u.length!==Ca(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 u=0;u1?v-1:0),_=1;_1?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=Dn("Patches").$;return Go(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Br=new Vz,lk=Br.produce;Br.produceWithPatches.bind(Br);Br.setAutoFreeze.bind(Br);Br.setUseProxies.bind(Br);Br.applyPatches.bind(Br);Br.createDraft.bind(Br);Br.finishDraft.bind(Br);function La(e){"@babel/helpers - typeof";return La=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},La(e)}function Kz(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uk(e){var t=Kz(e,"string");return La(t)=="symbol"?t:String(t)}function F(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 o1(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(er(1));return r($g)(e,t)}if(typeof e!="function")throw new Error(er(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function d(){if(u)throw new Error(er(3));return i}function f(g){if(typeof g!="function")throw new Error(er(4));if(u)throw new Error(er(5));var C=!0;return c(),s.push(g),function(){if(C){if(u)throw new Error(er(6));C=!1,c();var b=s.indexOf(g);s.splice(b,1),a=null}}}function p(g){if(!Yz(g))throw new Error(er(7));if(typeof g.type>"u")throw new Error(er(8));if(u)throw new Error(er(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var C=a=s,v=0;v"u")throw new Error(er(12));if(typeof r(void 0,{type:rd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(er(13))})}function ck(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(er(14));f[y]=C,d=d||C!==g}return d=d||i.length!==Object.keys(u).length,d?f:u}}function nd(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return od}function o(s,u){n(s)===od&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var eN=function(t,r){return t===r};function tN(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.push({path:t.payload.path,tables:t.payload.tables})}},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:IN,updateNodesInfoInCurrentSession:jN,setActiveSessionPin:zN,setActiveNodeId:NN,addOrUpdateNodeVersion:AN,addOrUpdateNodeFlags:MN,addOrUpdateCmdLineArgs:LN,addOrUpdateNodeLogs:$N,addOrUpdateSyncStages:DN,setLogWithNameSelected:FN,addOrUpdateDBs:BN,addOrUpdateDBTable:WN,addOrUpdateReorg:UN,resetAppStateToMockState:HN}=mk.actions,vk=e=>e.app.sessions,Fg=e=>e.app.activeSessionPin,kt=e=>e.app.activeNodeId,gk=e=>e.app.nodeVersions,qN=e=>e.app.flags,GN=e=>e.app.cmdLineArgs,VN=e=>e.app.nodeLogs,KN=e=>e.app.syncStages,YN=e=>e.app.dbs,QN=e=>e.app.reorgs,yk=Ue([vk,Fg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Bg=Ue([yk],e=>{let t=[];return e!=null&&(t=e.nodes),t}),XN=Ue([vk,Fg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),JN=Ue([Bg,kt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),ZN=Ue([Bg,kt,gk],(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}),eA=Ue([Bg,kt,gk],(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}),tA=Ue([qN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),rA=Ue([GN,kt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),nA=Ue([VN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),oA=Ue([KN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),Sk=Ue([YN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),iA=Ue([QN,kt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),aA=mk.reducer,ks=({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",u="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===hv.Command?a=a+" "+c:i===hv.Reorgs?a=a+" "+d:a=a+" "+f,i===t?a+" "+s:a+" "+u};return m.jsx("button",{className:o(e),onClick:()=>{n(e)},"data-testid":r,children:e})},sA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),lA=({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.default)})]},e.flag)};var Wg={},bk={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})(bk);var nt=bk.exports,up={};function ko(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 wk(e){if(!ko(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=wk(e[r])}),t}function bn(e,t,r={clone:!0}){const n=r.clone?ne({},e):e;return ko(e)&&ko(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ko(t[o])&&o in e&&ko(e[o])?n[o]=bn(e[o],t[o],r):r.clone?n[o]=ko(t[o])?wk(t[o]):t[o]:n[o]=t[o])}),n}var cp={exports:{}},dp,d1;function uA(){if(d1)return dp;d1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dp=e,dp}var fp,f1;function cA(){if(f1)return fp;f1=1;var e=uA();function t(){}function r(){}return r.resetWarningCache=t,fp=function(){function n(a,s,u,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},fp}var h1;function _k(){return h1||(h1=1,cp.exports=cA()()),cp.exports}_k();function Da(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 fA(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 hA(e,t){return()=>null}function pA(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 xk(e){return e&&e.ownerDocument||document}function mA(e){return xk(e).defaultView||window}function vA(e,t){return()=>null}function Ck(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const gA=typeof window<"u"?N.useLayoutEffect:N.useEffect,Rk=gA;let p1=0;function yA(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(p1+=1,r(`mui-${p1}`))},[t]),n}const m1=Ta["useId".toString()];function SA(e){if(m1!==void 0){const t=m1();return e??t}return yA(e)}function bA(e,t,r,n,o){return null}function kk({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,u=N.useCallback(c=>{o||a(c)},[]);return[s,u]}function Ls(e){const t=N.useRef(e);return Rk(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function iv(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ck(r,t)})},e)}const v1={};function wA(e,t){const r=N.useRef(v1);return r.current===v1&&(r.current=e(t)),r}const _A=[];function xA(e){N.useEffect(e,_A)}class hf{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new hf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function CA(){const e=wA(hf.create).current;return xA(e.disposeEffect),e}let pf=!0,av=!1;const RA=new hf,kA={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 PA(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&kA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function TA(e){e.metaKey||e.altKey||e.ctrlKey||(pf=!0)}function hp(){pf=!1}function EA(){this.visibilityState==="hidden"&&av&&(pf=!0)}function OA(e){e.addEventListener("keydown",TA,!0),e.addEventListener("mousedown",hp,!0),e.addEventListener("pointerdown",hp,!0),e.addEventListener("touchstart",hp,!0),e.addEventListener("visibilitychange",EA,!0)}function IA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return pf||PA(t)}function Pk(){const e=N.useCallback(o=>{o!=null&&OA(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(av=!0,RA.start(100,()=>{av=!1}),t.current=!1,!0):!1}function n(o){return IA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Tk(e,t){const r=ne({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ne({},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]=ne({},i),Object.keys(o).forEach(a=>{r[n][a]=Tk(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function qn(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 g1=e=>e,jA=()=>{let e=g1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=g1}}},zA=jA(),Ek=zA,NA={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 xn(e,t,r="Mui"){const n=NA[t];return n?`${r}-${n}`:`${Ek.generate(e)}-${t}`}function Gn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=xn(e,o,r)}),n}function AA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ok(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;t0?Ft(ns,--kr):0,Fa--,_t===10&&(Fa=1,vf--),_t}function Lr(){return _t=kr2||Pl(_t)>3?"":" "}function XA(e,t){for(;--t&&Lr()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Gl(e,cc()+(t<6&&Fn()==32&&Lr()==32))}function lv(e){for(;Lr();)switch(_t){case e:return kr;case 34:case 39:e!==34&&e!==39&&lv(_t);break;case 40:e===41&&lv(e);break;case 92:Lr();break}return kr}function JA(e,t){for(;Lr()&&e+_t!==47+10;)if(e+_t===42+42&&Fn()===47)break;return"/*"+Gl(t,kr-1)+"*"+mf(e===47?e:Lr())}function ZA(e){for(;!Pl(Fn());)Lr();return Gl(e,kr)}function eM(e){return Lk(fc("",null,null,null,[""],e=Mk(e),0,[0],e))}function fc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,_="",k=o,T=i,E=n,x=_;C;)switch(S=b,b=Lr()){case 40:if(S!=108&&Ft(x,f-1)==58){sv(x+=Me(dc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=dc(b);break;case 9:case 10:case 13:case 32:x+=QA(S);break;case 92:x+=XA(cc()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Mu(tM(JA(Lr(),cc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=jn(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:v==-1&&(x=Me(x,/\f/g,"")),y>0&&jn(x)-f&&Mu(y>32?S1(x+";",n,r,f-1):S1(Me(x," ","")+";",n,r,f-2),u);break;case 59:x+=";";default:if(Mu(E=y1(x,t,r,c,d,o,s,_,k=[],T=[],f),i),b===123)if(d===0)fc(x,t,E,E,k,i,f,s,T);else switch(p===99&&Ft(x,3)===110?100:p){case 100:case 108:case 109:case 115:fc(e,E,E,n&&Mu(y1(e,E,E,0,0,o,s,_,o,k=[],f),T),o,T,f,s,n?k:T);break;default:fc(x,E,E,E,[""],T,0,s,T)}}c=d=y=0,g=v=1,_=x="",f=a;break;case 58:f=1+jn(x),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&YA()==125)continue}switch(x+=mf(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(jn(x)-1)*v,v=1;break;case 64:Fn()===45&&(x+=dc(Lr())),p=Fn(),d=f=jn(_=x+=ZA(cc())),b++;break;case 45:S===45&&jn(x)==2&&(g=0)}}return i}function y1(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=qg(p),S=0,g=0,C=0;S0?p[v]+" "+b:Me(b,/&\f/g,p[v])))&&(u[C++]=_);return gf(e,t,r,o===0?Ug:s,u,c,d)}function tM(e,t,r){return gf(e,t,r,jk,mf(KA()),kl(e,2,-2),0)}function S1(e,t,r,n){return gf(e,t,r,Hg,kl(e,0,n),kl(e,n+1,-1),n)}function Ra(e,t){for(var r="",n=qg(e),o=0;o6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+id+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sv(e,"stretch")?$k(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ft(e,t+1)!==115)break;case 6444:switch(Ft(e,jn(e)-3-(~sv(e,"!important")&&10))){case 107:return Me(e,":",":"+Ne)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Ft(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Jt+e+e}return e}var cM=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Hg:t.return=$k(t.value,t.length);break;case zk:return Ra([Ps(t,{value:Me(t.value,"@","@"+Ne)})],o);case Ug:if(t.length)return VA(t.props,function(i){switch(GA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ra([Ps(t,{props:[Me(i,/:(read-\w+)/,":"+id+"$1")]})],o);case"::placeholder":return Ra([Ps(t,{props:[Me(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),Ps(t,{props:[Me(i,/:(plac\w+)/,":"+id+"$1")]}),Ps(t,{props:[Me(i,/:(plac\w+)/,Jt+"input-$1")]})],o)}return""})}},dM=[cM],fM=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(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||dM,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var C=g.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 gM={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},yM=/[A-Z]|^ms/g,SM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fk=function(t){return t.charCodeAt(1)===45},w1=function(t){return t!=null&&typeof t!="boolean"},pp=Ik(function(e){return Fk(e)?e:e.replace(yM,"-$&").toLowerCase()}),_1=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(SM,function(n,o,i){return zn={name:o,styles:i,next:zn},o})}return gM[t]!==1&&!Fk(t)&&typeof r=="number"&&r!==0?r+"px":r};function Tl(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 zn={name:r.name,styles:r.styles,next:zn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)zn={name:n.name,styles:n.styles,next:zn},n=n.next;var o=r.styles+";";return o}return bM(e,t,r)}case"function":{if(e!==void 0){var i=zn,a=r(e);return zn=i,Tl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function bM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?kM:PM},R1=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},TM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dk(r,n,o),xM(function(){return mM(r,n,o)}),null},EM=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=R1(t,r,n),u=s||C1(o),c=!u("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,y=1;y{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zM=["values","unit","step"],NM=e=>{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)=>ne({},r,{[n.key]:n.val}),{})};function AM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=lt(e,zM),i=NM(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,y){const S=a.indexOf(y);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]]:y)-n/100}${r})`}function d(p){return a.indexOf(p)+1`@media (min-width:${Vg[e]}px)`};function _n(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||k1;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||k1;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Vg).indexOf(s)!==-1){const u=i.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function Hk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function qk(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function $M(e,...t){const r=Hk(e),n=[r,...t].reduce((o,i)=>bn(o,i),{});return qk(Object.keys(r),n)}function DM(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 mp({values:e,breakpoints:t,base:r}){const n=r||DM(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,u)=>(Array.isArray(e)?(a[s]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function yf(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 ad(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=yf(e,r)||n,t&&(o=t(o,n,e)),o}function vt(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],u=a.theme,c=yf(u,n)||{};return _n(a,s,f=>{let p=ad(c,o,f);return f===p&&typeof f=="string"&&(p=ad(c,o,`${t}${f==="default"?"":Ke(f)}`,f)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function FM(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const BM={m:"margin",p:"padding"},WM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},P1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},UM=FM(e=>{if(e.length>2)if(P1[e])e=P1[e];else return[e];const[t,r]=e.split(""),n=BM[t],o=WM[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Kg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Yg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Kg,...Yg];function Vl(e,t,r,n){var o;const i=(o=yf(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 Qg(e){return Vl(e,"spacing",8)}function Ei(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 HM(e,t){return r=>e.reduce((n,o)=>(n[o]=Ei(t,r),n),{})}function qM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=UM(r),i=HM(o,n),a=e[r];return _n(e,a,i)}function Gk(e,t){const r=Qg(e.theme);return Object.keys(e).map(n=>qM(e,t,n,r)).reduce(el,{})}function ut(e){return Gk(e,Kg)}ut.propTypes={};ut.filterProps=Kg;function ct(e){return Gk(e,Yg)}ct.propTypes={};ct.filterProps=Yg;function GM(e=8){if(e.mui)return e;const t=Qg({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 Sf(...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]?el(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Xr(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return vt({prop:e,themeKey:"borders",transform:t})}const VM=sn("border",Xr),KM=sn("borderTop",Xr),YM=sn("borderRight",Xr),QM=sn("borderBottom",Xr),XM=sn("borderLeft",Xr),JM=sn("borderColor"),ZM=sn("borderTopColor"),e4=sn("borderRightColor"),t4=sn("borderBottomColor"),r4=sn("borderLeftColor"),n4=sn("outline",Xr),o4=sn("outlineColor"),bf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ei(t,n)});return _n(e,e.borderRadius,r)}return null};bf.propTypes={};bf.filterProps=["borderRadius"];Sf(VM,KM,YM,QM,XM,JM,ZM,e4,t4,r4,bf,n4,o4);const wf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({gap:Ei(t,n)});return _n(e,e.gap,r)}return null};wf.propTypes={};wf.filterProps=["gap"];const _f=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({columnGap:Ei(t,n)});return _n(e,e.columnGap,r)}return null};_f.propTypes={};_f.filterProps=["columnGap"];const xf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({rowGap:Ei(t,n)});return _n(e,e.rowGap,r)}return null};xf.propTypes={};xf.filterProps=["rowGap"];const i4=vt({prop:"gridColumn"}),a4=vt({prop:"gridRow"}),s4=vt({prop:"gridAutoFlow"}),l4=vt({prop:"gridAutoColumns"}),u4=vt({prop:"gridAutoRows"}),c4=vt({prop:"gridTemplateColumns"}),d4=vt({prop:"gridTemplateRows"}),f4=vt({prop:"gridTemplateAreas"}),h4=vt({prop:"gridArea"});Sf(wf,_f,xf,i4,a4,s4,l4,u4,c4,d4,f4,h4);function ka(e,t){return t==="grey"?t:e}const p4=vt({prop:"color",themeKey:"palette",transform:ka}),m4=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ka}),v4=vt({prop:"backgroundColor",themeKey:"palette",transform:ka});Sf(p4,m4,v4);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const g4=vt({prop:"width",transform:Nr}),Xg=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])||Vg[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:Nr(r)}};return _n(e,e.maxWidth,t)}return null};Xg.filterProps=["maxWidth"];const y4=vt({prop:"minWidth",transform:Nr}),S4=vt({prop:"height",transform:Nr}),b4=vt({prop:"maxHeight",transform:Nr}),w4=vt({prop:"minHeight",transform:Nr});vt({prop:"size",cssProperty:"width",transform:Nr});vt({prop:"size",cssProperty:"height",transform:Nr});const _4=vt({prop:"boxSizing"});Sf(g4,Xg,y4,S4,b4,w4,_4);const x4={border:{themeKey:"borders",transform:Xr},borderTop:{themeKey:"borders",transform:Xr},borderRight:{themeKey:"borders",transform:Xr},borderBottom:{themeKey:"borders",transform:Xr},borderLeft:{themeKey:"borders",transform:Xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bf},color:{themeKey:"palette",transform:ka},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ka},backgroundColor:{themeKey:"palette",transform:ka},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:wf},rowGap:{style:xf},columnGap:{style:_f},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:Xg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cf=x4;function C4(...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 R4(e,t){return typeof e=="function"?e(t):e}function k4(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=yf(o,c)||{};return f?f(a):_n(a,n,S=>{let g=ad(p,d,S);return S===g&&typeof S=="string"&&(g=ad(p,d,`${r}${S==="default"?"":Ke(S)}`,S)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:Cf;function s(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const d=Hk(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(y=>{const S=R4(c[y],i);if(S!=null)if(typeof S=="object")if(a[y])p=el(p,e(y,S,i,a));else{const g=_n({theme:i},S,C=>({[y]:C}));C4(g,S)?p[y]=t({sx:S,theme:i}):p=el(p,g)}else p=el(p,e(y,S,i,a))}),qk(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Vk=k4();Vk.filterProps=["sx"];const Jg=Vk;function P4(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 T4=["breakpoints","palette","spacing","shape"];function Rf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=lt(e,T4),s=AM(r),u=GM(o);let c=bn({breakpoints:s,direction:"ltr",components:{},palette:ne({mode:"light"},n),spacing:u,shape:ne({},LM,i)},a);return c.applyStyles=P4,c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=ne({},Cf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Jg({sx:f,theme:this})},c}function E4(e){return Object.keys(e).length===0}function O4(e=null){const t=N.useContext(Uk);return!t||E4(t)?e:t}const I4=Rf();function j4(e=I4){return O4(e)}const z4=["sx"],N4=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Cf;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Kk(e){const{sx:t}=e,r=lt(e,z4),{systemProps:n,otherProps:o}=N4(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return ko(s)?ne({},n,s):n}:i=ne({},n,t),ne({},o,{sx:i})}const A4=["ownerState"],M4=["variants"],L4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $4(e){return Object.keys(e).length===0}function D4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const F4=Rf(),B4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lu({defaultTheme:e,theme:t,themeId:r}){return $4(t)?e:t[r]||t}function W4(e){return e?(t,r)=>r[e]:null}function pc(e,t){let{ownerState:r}=t,n=lt(t,A4);const o=typeof e=="function"?e(ne({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>pc(i,ne({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=lt(o,M4);return i.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(ne({ownerState:r},n)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(ne({ownerState:r},n)):u.style))}),s}return o}function Yk(e={}){const{themeId:t,defaultTheme:r=F4,rootShouldForwardProp:n=hc,slotShouldForwardProp:o=hc}=e,i=a=>Jg(ne({},a,{theme:Lu(ne({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{jM(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=W4(B4(c))}=s,y=lt(s,L4),S=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let C,v=hc;c==="Root"||c==="root"?v=n:c?v=o:D4(a)&&(v=void 0);const b=IM(a,ne({shouldForwardProp:v,label:C},y)),_=T=>typeof T=="function"&&T.__emotion_real!==T||ko(T)?E=>pc(T,ne({},E,{theme:Lu({theme:E.theme,defaultTheme:r,themeId:t})})):T,k=(T,...E)=>{let x=_(T);const O=E?E.map(_):[];u&&p&&O.push(M=>{const B=Lu(ne({},M,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[u]||!B.components[u].styleOverrides)return null;const $=B.components[u].styleOverrides,D={};return Object.entries($).forEach(([Z,ae])=>{D[Z]=pc(ae,ne({},M,{theme:B}))}),p(M,D)}),u&&!S&&O.push(M=>{var B;const $=Lu(ne({},M,{defaultTheme:r,themeId:t})),D=$==null||(B=$.components)==null||(B=B[u])==null?void 0:B.variants;return pc({variants:D},ne({},M,{theme:$}))}),g||O.push(i);const I=O.length-E.length;if(Array.isArray(T)&&I>0){const M=new Array(I).fill("");x=[...T,...M],x.raw=[...T.raw,...M]}const j=b(x,...O);return a.muiName&&(j.muiName=a.muiName),j};return b.withConfig&&(k.withConfig=b.withConfig),k}}const U4=Yk(),H4=U4;function q4(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Tk(t.components[r].defaultProps,n)}function Qk({props:e,name:t,defaultTheme:r,themeId:n}){let o=j4(r);return n&&(o=o[n]||o),q4({theme:o,name:t,props:e})}function Zg(e,t=0,r=1){return AA(e,t,r)}function G4(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 Oi(e){if(e.type)return e;if(e.charAt(0)==="#")return Oi(G4(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Da(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(Da(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function kf(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 V4(e){e=Oi(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 u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),kf({type:s,values:u})}function T1(e){e=Oi(e);let t=e.type==="hsl"||e.type==="hsla"?Oi(V4(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 K4(e,t){const r=T1(e),n=T1(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ba(e,t){return e=Oi(e),t=Zg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kf(e)}function sd(e,t){if(e=Oi(e),t=Zg(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 kf(e)}function ld(e,t){if(e=Oi(e),t=Zg(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 kf(e)}const Y4=["component","direction","spacing","divider","children","className","useFlexGap"],Q4=Rf(),X4=H4("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function J4(e){return Qk({props:e,name:"MuiStack",defaultTheme:Q4})}function Z4(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],tL=({ownerState:e,theme:t})=>{let r=ne({display:"flex",flexDirection:"column"},_n({theme:t},mp({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Qg(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),i=mp({values:e.direction,base:o}),a=mp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,c,d)=>{if(!i[u]){const p=c>0?i[d[c-1]]:"column";i[u]=p}}),r=bn(r,_n({theme:t},a,(u,c)=>e.useFlexGap?{gap:Ei(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${eL(c?i[c]:e.direction)}`]:Ei(n,u)}}))}return r=$M(t.breakpoints,r),r};function rL(e={}){const{createStyledComponent:t=X4,useThemeProps:r=J4,componentName:n="MuiStack"}=e,o=()=>qn({root:["root"]},u=>xn(n,u),{}),i=t(tL);return N.forwardRef(function(u,c){const d=r(u),f=Kk(d),{component:p="div",direction:y="column",spacing:S=0,divider:g,children:C,className:v,useFlexGap:b=!1}=f,_=lt(f,Y4),k={direction:y,spacing:S,useFlexGap:b},T=o();return m.jsx(i,ne({as:p,ownerState:k,ref:c,className:wt(T.root,v)},_,{children:g?Z4(C,g):C}))})}function nL(e,t){return ne({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const oL={black:"#000",white:"#fff"},El=oL,iL={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"},aL=iL,sL={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"},Yi=sL,lL={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"},Qi=lL,uL={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"},Ts=uL,cL={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"},Xi=cL,dL={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"},Ji=dL,fL={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"},Zi=fL,hL=["mode","contrastThreshold","tonalOffset"],E1={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:El.white,default:El.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}},vp={text:{primary:El.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:El.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 O1(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=ld(e.main,o):t==="dark"&&(e.dark=sd(e.main,i)))}function pL(e="light"){return e==="dark"?{main:Xi[200],light:Xi[50],dark:Xi[400]}:{main:Xi[700],light:Xi[400],dark:Xi[800]}}function mL(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function vL(e="light"){return e==="dark"?{main:Qi[500],light:Qi[300],dark:Qi[700]}:{main:Qi[700],light:Qi[400],dark:Qi[800]}}function gL(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[500],dark:Ji[900]}}function yL(e="light"){return e==="dark"?{main:Zi[400],light:Zi[300],dark:Zi[700]}:{main:Zi[800],light:Zi[500],dark:Zi[900]}}function SL(e="light"){return e==="dark"?{main:Ts[400],light:Ts[300],dark:Ts[700]}:{main:"#ed6c02",light:Ts[500],dark:Ts[900]}}function bL(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=lt(e,hL),i=e.primary||pL(t),a=e.secondary||mL(t),s=e.error||vL(t),u=e.info||gL(t),c=e.success||yL(t),d=e.warning||SL(t);function f(g){return K4(g,vp.text.primary)>=r?vp.text.primary:E1.text.primary}const p=({color:g,name:C,mainShade:v=500,lightShade:b=300,darkShade:_=700})=>{if(g=ne({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Da(11,C?` (${C})`:"",v));if(typeof g.main!="string")throw new Error(Da(12,C?` (${C})`:"",JSON.stringify(g.main)));return O1(g,"light",b,n),O1(g,"dark",_,n),g.contrastText||(g.contrastText=f(g.main)),g},y={dark:vp,light:E1};return bn(ne({common:ne({},El),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:u,name:"info"}),success:p({color:c,name:"success"}),grey:aL,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},y[t]),o)}const wL=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _L(e){return Math.round(e*1e5)/1e5}const I1={textTransform:"uppercase"},j1='"Roboto", "Helvetica", "Arial", sans-serif';function xL(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=j1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=lt(r,wL),y=o/14,S=f||(v=>`${v/c*y}rem`),g=(v,b,_,k,T)=>ne({fontFamily:n,fontWeight:v,fontSize:S(b),lineHeight:_},n===j1?{letterSpacing:`${_L(k/b)}em`}:{},T,d),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,I1),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,I1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bn(ne({htmlFontSize:c,pxToRem:S,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},C),p,{clone:!1})}const CL=.2,RL=.14,kL=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CL})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RL})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kL})`].join(",")}const PL=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],TL=PL,EL=["duration","easing","delay"],OL={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)"},IL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z1(e){return`${Math.round(e)}ms`}function jL(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zL(e){const t=ne({},OL,e.easing),r=ne({},IL,e.duration);return ne({getAutoHeightDuration:jL,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return lt(i,EL),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:z1(a)} ${s} ${typeof u=="string"?u:z1(u)}`).join(",")}},e,{easing:t,duration:r})}const NL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},AL=NL,ML=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LL(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=lt(e,ML);if(e.vars)throw new Error(Da(18));const s=bL(n),u=Rf(e);let c=bn(u,{mixins:nL(u.breakpoints,r),palette:s,shadows:TL.slice(),typography:xL(s,i),transitions:zL(o),zIndex:ne({},AL)});return c=bn(c,a),c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=ne({},Cf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Jg({sx:f,theme:this})},c}const $L=LL(),Xk=$L,Jk="$$material";function Vn({props:e,name:t}){return Qk({props:e,name:t,defaultTheme:Xk,themeId:Jk})}const Zk=e=>hc(e)&&e!=="classes",DL=Yk({themeId:Jk,defaultTheme:Xk,rootShouldForwardProp:Zk}),Pt=DL;function FL(e){return xn("MuiSvgIcon",e)}Gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const BL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],WL=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ke(t)}`,`fontSize${Ke(r)}`]};return qn(o,FL,n)},UL=Pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ke(r.color)}`],t[`fontSize${Ke(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,d,f,p,y,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||(u=s.pxToRem)==null?void 0:u.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:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),eP=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,y=lt(n,BL),S=N.isValidElement(o)&&o.type==="svg",g=ne({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:S}),C={};d||(C.viewBox=p);const v=WL(g);return m.jsxs(UL,ne({as:s,className:wt(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},C,y,S&&o.props,{ownerState:g,children:[S?o.props.children:o,f?m.jsx("title",{children:f}):null]}))});eP.muiName="SvgIcon";const N1=eP;function os(e,t){function r(n,o){return m.jsx(N1,ne({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=N1.muiName,N.memo(N.forwardRef(r))}const HL={configure:e=>{Ek.configure(e)}},qL=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:dA,createSvgIcon:os,debounce:fA,deprecatedPropType:hA,isMuiElement:pA,ownerDocument:xk,ownerWindow:mA,requirePropFactory:vA,setRef:Ck,unstable_ClassNameGenerator:HL,unstable_useEnhancedEffect:Rk,unstable_useId:SA,unsupportedProp:bA,useControlled:kk,useEventCallback:Ls,useForkRef:iv,useIsFocusVisible:Pk},Symbol.toStringTag,{value:"Module"})),GL=Xa(qL);var A1;function ot(){return A1||(A1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=GL}(up)),up}var VL=nt;Object.defineProperty(Wg,"__esModule",{value:!0});var Kl=Wg.default=void 0,KL=VL(ot()),YL=m;Kl=Wg.default=(0,KL.default)((0,YL.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var ey={},QL=nt;Object.defineProperty(ey,"__esModule",{value:!0});var Yl=ey.default=void 0,XL=QL(ot()),JL=m;Yl=ey.default=(0,XL.default)((0,JL.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var ty={},ZL=nt;Object.defineProperty(ty,"__esModule",{value:!0});var Ql=ty.default=void 0,e3=ZL(ot()),t3=m;Ql=ty.default=(0,e3.default)((0,t3.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const r3=({flags:e})=>{const[t,r]=se.useState(!1),[n,o]=se.useState([]),[i,a]=se.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(y=>y.value!==void 0&&y.value!==""&&y.value!==null).sort((y,S)=>y.flag.localeCompare(y.flag)),u=(f,p)=>{if(p==="default"){let y=[];return i?y=f.sort((S,g)=>S.default>g.default?1:-1):y=f.sort((S,g)=>S.defaulty.flag.localeCompare(S.flag)):f},c=()=>{const f=u(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?m.jsx(Kl,{}):m.jsx(Yl,{}):m.jsx(Ql,{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(lA,{flag:f}))})]})},n3=({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(r3,{flags:t})]})},o3=({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(u=>typeof i[u]=="object"?o(i[u],u):n(u,i[u]))]})};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,"")})})},i3=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(o3,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),a3=({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))})})}),s3=({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))})})]}),is="#1ea7fd",Xl="red";const Un=({primary:e=!1,size:t="medium",backgroundColor:r,label:n,...o})=>{const i=e?"storybook-button--primary":"storybook-button--secondary";return m.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,i].join(" "),style:{backgroundColor:r},...o,children:n})},M1={isConnectedToInternet:!0,isConnectedToNode:!0},tP=ql({name:"app",initialState:M1,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>M1}}),{setIsConnectedToInternet:UH,setIsConnectedToNode:L1,resetConectionState:l3}=tP.actions,u3=tP.reducer,$s={second:1e3,minute:6e4,hour:36e5},$1={peers:[],bootnodes:[]},rP=ql({name:"network",initialState:$1,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 u=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=u,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,$u(e.peers[o].peers[i].network,n.network,"capBytesIn"),$u(e.peers[o].peers[i].network,n.network,"capBytesOut"),$u(e.peers[o].peers[i].network,n.network,"typeBytesIn"),$u(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:()=>$1}}),$u=(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:c3,addOrUpdatePeer:d3,addOrUpdateBootnodes:f3,updatePeersState:h3}=rP.actions,p3=e=>e.network.peers,ry=Ue([p3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),m3=()=>Ue([ry,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),Pf=Ue([ry,kt],(e,t)=>nP(t,"Sentry",e)),Tf=Ue([ry,kt],(e,t)=>nP(t,"Sentinel",e)),nP=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},v3=Ue([Pf],e=>oP(e)),g3=Ue([Tf],e=>oP(e)),oP=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},y3=Ue([Pf],e=>iP(e)),S3=Ue([Tf],e=>iP(e)),iP=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},b3=Ue([Pf],e=>aP(e)),w3=Ue([Tf],e=>aP(e)),aP=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},_3=rP.reducer,D1={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},sP=ql({name:"syncStages",initialState:D1,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:()=>D1}}),{setSnapshotFilesList:x3,resetSyncStagesState:HH,setSnapshotDownloadStatus:C3,setSnapshotIndexStatus:R3,setNodeSyncStages:k3,setTestSnpSyncMsgIdx:qH}=sP.actions,P3=e=>e.syncStages.snapshotDownloadStatus,Ef=Ue([P3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),T3=e=>e.syncStages.snapshotIndexStatus,lP=Ue([T3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),E3=e=>e.syncStages.syncStages,uP=Ue([E3,kt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),O3=e=>e.syncStages.snapshotFilesList,cP=Ue([O3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r});Ue([cP],e=>e.length===0);const I3=sP.reducer;var cv=(e=>(e.SnapshotSegmentMissingPeers="SnapshotSegmentMissingPeers",e))(cv||{});const F1={issues:[]},dP=ql({name:"issue",initialState:F1,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:()=>F1}}),{addOrUpdateIssue:B1,resetIssueState:GH,removeIssueWithId:j3}=dP.actions,z3=e=>e.issues.issues,fP=Ue([z3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),N3=Ue([fP],e=>e.length>10?"9+":e.length.toString()),A3=dP.reducer;var ny="persist:",oy="persist/FLUSH",Of="persist/REHYDRATE",iy="persist/PAUSE",ay="persist/PERSIST",sy="persist/PURGE",ly="persist/REGISTER",M3=-1;function mc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mc=function(r){return typeof r}:mc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mc(e)}function W1(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 L3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K3(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 Y3=5e3;function Q3(e,t){var r=e.version!==void 0?e.version:M3;e.debug;var n=e.stateReconciler===void 0?D3:e.stateReconciler,o=e.getStoredState||W3,i=e.timeout!==void 0?e.timeout:Y3,a=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&a&&!u&&a.update(f),f};return function(d,f){var p=d||{},y=p._persist,S=V3(p,["_persist"]),g=S;if(f.type===ay){var C=!1,v=function(O,I){C||(f.rehydrate(e.key,O,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),u=!1,a||(a=F3(e)),y)return Xn({},t(g,f),{_persist:y});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(x){var O=e.migrate||function(I,j){return Promise.resolve(I)};O(x,r).then(function(I){v(I)},function(I){v(void 0,I)})},function(x){v(void 0,x)}),Xn({},t(g,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===sy)return s=!0,f.result(H3(e)),Xn({},t(g,f),{_persist:y});if(f.type===oy)return f.result(a&&a.flush()),Xn({},t(g,f),{_persist:y});if(f.type===iy)u=!0;else if(f.type===Of){if(s)return Xn({},g,{_persist:Xn({},y,{rehydrated:!0})});if(f.key===e.key){var b=t(g,f),_=f.payload,k=n!==!1&&_!==void 0?n(_,d,b,e):b,T=Xn({},k,{_persist:Xn({},y,{rehydrated:!0})});return c(T)}}}if(!y)return t(d,f);var E=t(g,f);return E===g?d:c(Xn({},E,{_persist:y}))}}function H1(e){return Z3(e)||J3(e)||X3()}function X3(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function J3(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Z3(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:hP,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case ly:return dv({},t,{registry:[].concat(H1(t.registry),[r.key])});case Of:var n=t.registry.indexOf(r.key),o=H1(t.registry);return o.splice(n,1),dv({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function r$(e,t,r){var n=r||!1,o=$g(t$,hP,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:ly,key:c})},a=function(c,d,f){var p={type:Of,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=dv({},o,{purge:function(){var c=[];return e.dispatch({type:sy,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:oy,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:iy})},persist:function(){e.dispatch({type:ay,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var uy={},cy={};cy.__esModule=!0;cy.default=i$;function vc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vc=function(r){return typeof r}:vc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vc(e)}function gp(){}var n$={getItem:gp,setItem:gp,removeItem:gp};function o$(e){if((typeof self>"u"?"undefined":vc(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 i$(e){var t="".concat(e,"Storage");return o$(t)?self[t]:n$}uy.__esModule=!0;uy.default=l$;var a$=s$(cy);function s$(e){return e&&e.__esModule?e:{default:e}}function l$(e){var t=(0,a$.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 pP=void 0,u$=c$(uy);function c$(e){return e&&e.__esModule?e:{default:e}}var d$=(0,u$.default)("local");pP=d$;const f$={key:"root",blacklist:["connection"],storage:pP},h$=ck({app:aA,network:_3,connection:u3,syncStages:I3,issues:A3}),p$=Q3(f$,h$),je=bN({reducer:p$,middleware:e=>e({serializableCheck:{ignoredActions:[oy,Of,iy,ay,sy,ly]}})}),m$=r$(je),v$="sessions",g$="nodes",y$="versions",S$="flags",b$="cmdline",w$="logs",_$="sync-stages",mP="dbs",x$="tables",C$="reorgs",R$="peers",k$="peers",P$=()=>je.getState().app.activeSessionPin,dy=()=>{const e=P$();return`${window.location.origin}/api/${v$}/${e}`},ln=()=>{const e=dy(),t=je.getState().app.activeNodeId;return`${e}/${g$}/${t}`},T$=()=>`${ln()}/${y$}`,vP=()=>`${ln()}/${S$}`,gP=()=>`${ln()}/${b$}`,yP=()=>`${ln()}/${w$}`,SP=()=>`${ln()}/${_$}`,E$=()=>`${ln()}/${mP}`,O$=e=>`${ln()}/${mP}/${e}/${x$}`,bP=()=>`${ln()}/${C$}`,I$=()=>`${ln()}/${R$}`,j$=()=>`${ln()}/${k$}`,z$=()=>`${ln()}/snapshot-sync`,N$=()=>`${ln()}/snapshot-files-list`,A$=()=>{{const e=Gr(dy(),"GET");return qr(e)}},M$=()=>{{const e=Gr(T$(),"GET");return qr(e)}},L$=()=>{{const e=Gr(vP(),"GET");return qr(e)}},$$=()=>{{const e=Gr(gP(),"GET");return qr(e)}},D$=()=>{{const e=Gr(yP(),"GET");return qr(e)}},F$=()=>{{const e=Gr(SP(),"GET");return qr(e)}},B$=()=>{{const e=Gr(E$(),"GET");return qr(e)}},W$=e=>{{const t=Gr(O$(e),"GET");return qr(t)}},U$=()=>{{const e=Gr(bP(),"GET");return qr(e)}},H$=()=>{{const e=Gr(I$(),"GET");return qr(e)}},q$=()=>{{const e=Gr(j$(),"GET");return qr(e)}},G$=()=>{{const e=Gr(z$(),"GET");return qr(e)}},V$=()=>{{const e=Gr(N$(),"GET");return qr(e)}},qr=e=>fetch(e).then(t=>(je.dispatch(L1(!0)),t.json())).catch(t=>{je.dispatch(L1(!1))});function Gr(e,t,r){return new Request(e,{method:t,body:r})}var fy={},K$=nt;Object.defineProperty(fy,"__esModule",{value:!0});var hy=fy.default=void 0,Y$=K$(ot()),Q$=m;hy=fy.default=(0,Y$.default)((0,Q$.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 py={},X$=nt;Object.defineProperty(py,"__esModule",{value:!0});var If=py.default=void 0,J$=X$(ot()),Z$=m;If=py.default=(0,J$.default)((0,Z$.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");const e5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},G1=e5;function t5(e){return xn("MuiPaper",e)}Gn("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 r5=["className","component","elevation","square","variant"],n5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qn(i,t5,o)},o5=Pt("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 ne({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"&&ne({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ba("#fff",G1(t.elevation))}, ${Ba("#fff",G1(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),i5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=lt(n,r5),d=ne({},n,{component:i,elevation:a,square:s,variant:u}),f=n5(d);return m.jsx(o5,ne({as:i,ownerState:d,className:wt(f.root,o),ref:r},c))}),a5=i5;function s5(e){return xn("MuiAlert",e)}const l5=Gn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),V1=l5;function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ud(e,t)}function u5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ud(e,t)}const K1=se.createContext(null);function Q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function my(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 c5(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 u in t){if(n[u])for(a=0;a{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),m.jsx("span",{className:p,style:y,children:m.jsx("span",{className:S})})}const g5=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kr=g5,y5=["center","classes","className"];let jf=e=>e,Y1,Q1,X1,J1;const fv=550,S5=80,b5=Gg(Y1||(Y1=jf` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),w5=Gg(Q1||(Q1=jf` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),_5=Gg(X1||(X1=jf` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),x5=Pt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),C5=Pt(v5,{name:"MuiTouchRipple",slot:"Ripple"})(J1||(J1=jf` - 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; - } -`),Kr.rippleVisible,b5,fv,({theme:e})=>e.transitions.easing.easeInOut,Kr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Kr.child,Kr.childLeaving,w5,fv,({theme:e})=>e.transitions.easing.easeInOut,Kr.childPulsate,_5,({theme:e})=>e.transitions.easing.easeInOut),R5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=lt(n,y5),[u,c]=N.useState([]),d=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=N.useRef(!1),y=CA(),S=N.useRef(null),g=N.useRef(null),C=N.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:x,rippleSize:O,cb:I}=k;c(j=>[...j,m.jsx(C5,{classes:{ripple:wt(i.ripple,Kr.ripple),rippleVisible:wt(i.rippleVisible,Kr.rippleVisible),ripplePulsate:wt(i.ripplePulsate,Kr.ripplePulsate),child:wt(i.child,Kr.child),childLeaving:wt(i.childLeaving,Kr.childLeaving),childPulsate:wt(i.childPulsate,Kr.childPulsate)},timeout:fv,pulsate:T,rippleX:E,rippleY:x,rippleSize:O},d.current)]),d.current+=1,f.current=I},[i]),v=N.useCallback((k={},T={},E=()=>{})=>{const{pulsate:x=!1,center:O=o||T.pulsate,fakeElement:I=!1}=T;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:g.current,M=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,$,D;if(O||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)B=Math.round(M.width/2),$=Math.round(M.height/2);else{const{clientX:Z,clientY:ae}=k.touches&&k.touches.length>0?k.touches[0]:k;B=Math.round(Z-M.left),$=Math.round(ae-M.top)}if(O)D=Math.sqrt((2*M.width**2+M.height**2)/3),D%2===0&&(D+=1);else{const Z=Math.max(Math.abs((j?j.clientWidth:0)-B),B)*2+2,ae=Math.max(Math.abs((j?j.clientHeight:0)-$),$)*2+2;D=Math.sqrt(Z**2+ae**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{C({pulsate:x,rippleX:B,rippleY:$,rippleSize:D,cb:E})},y.start(S5,()=>{S.current&&(S.current(),S.current=null)})):C({pulsate:x,rippleX:B,rippleY:$,rippleSize:D,cb:E})},[o,C,y]),b=N.useCallback(()=>{v({},{pulsate:!0})},[v]),_=N.useCallback((k,T)=>{if(y.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,y.start(0,()=>{_(k,T)});return}S.current=null,c(E=>E.length>0?E.slice(1):E),f.current=T},[y]);return N.useImperativeHandle(r,()=>({pulsate:b,start:v,stop:_}),[b,v,_]),m.jsx(x5,ne({className:wt(Kr.root,i.root,a),ref:g},s,{children:m.jsx(m5,{component:null,exit:!0,children:u})}))}),k5=R5;function P5(e){return xn("MuiButtonBase",e)}const T5=Gn("MuiButtonBase",["root","disabled","focusVisible"]),E5=T5,O5=["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"],I5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=qn({root:["root",t&&"disabled",r&&"focusVisible"]},P5,o);return r&&n&&(a.root+=` ${n}`),a},j5=Pt("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"},[`&.${E5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:S,onClick:g,onContextMenu:C,onDragLeave:v,onFocus:b,onFocusVisible:_,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:x,onMouseUp:O,onTouchEnd:I,onTouchMove:j,onTouchStart:M,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:D,type:Z}=n,ae=lt(n,O5),he=N.useRef(null),Y=N.useRef(null),te=iv(Y,D),{isFocusVisibleRef:ce,onFocus:we,onBlur:ke,ref:yt}=Pk(),[$e,Se]=N.useState(!1);c&&$e&&Se(!1),N.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),he.current.focus()}}),[]);const[G,V]=N.useState(!1);N.useEffect(()=>{V(!0)},[]);const q=G&&!d&&!c;N.useEffect(()=>{$e&&p&&!d&&G&&Y.current.pulsate()},[d,p,$e,G]);function J(_e,ti,ri=f){return Ls(Yn=>(ti&&ti(Yn),!ri&&Y.current&&Y.current[_e](Yn),!0))}const U=J("start",E),pe=J("stop",C),ue=J("stop",v),ie=J("stop",O),le=J("stop",_e=>{$e&&_e.preventDefault(),x&&x(_e)}),K=J("start",M),ee=J("stop",I),oe=J("stop",j),fe=J("stop",_e=>{ke(_e),ce.current===!1&&Se(!1),S&&S(_e)},!1),ge=Ls(_e=>{he.current||(he.current=_e.currentTarget),we(_e),ce.current===!0&&(Se(!0),_&&_(_e)),b&&b(_e)}),ye=()=>{const _e=he.current;return u&&u!=="button"&&!(_e.tagName==="A"&&_e.href)},be=N.useRef(!1),Re=Ls(_e=>{p&&!be.current&&$e&&Y.current&&_e.key===" "&&(be.current=!0,Y.current.stop(_e,()=>{Y.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(),g&&g(_e))}),ze=Ls(_e=>{p&&_e.key===" "&&Y.current&&$e&&!_e.defaultPrevented&&(be.current=!1,Y.current.stop(_e,()=>{Y.current.pulsate(_e)})),T&&T(_e),g&&_e.target===_e.currentTarget&&ye()&&_e.key===" "&&!_e.defaultPrevented&&g(_e)});let De=u;De==="button"&&(ae.href||ae.to)&&(De=y);const Tt={};De==="button"?(Tt.type=Z===void 0?"button":Z,Tt.disabled=c):(!ae.href&&!ae.to&&(Tt.role="button"),c&&(Tt["aria-disabled"]=c));const vr=iv(r,yt,he),ir=ne({},n,{centerRipple:i,component:u,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:B,focusVisible:$e}),Gt=I5(ir);return m.jsxs(j5,ne({as:De,className:wt(Gt.root,s),ownerState:ir,onBlur:fe,onClick:g,onContextMenu:pe,onFocus:ge,onKeyDown:Re,onKeyUp:ze,onMouseDown:U,onMouseLeave:le,onMouseUp:ie,onDragLeave:ue,onTouchEnd:ee,onTouchMove:oe,onTouchStart:K,ref:vr,tabIndex:c?-1:B,type:Z},Tt,ae,{children:[a,q?m.jsx(k5,ne({ref:te,center:i},$)):null]}))}),wP=z5;function N5(e){return xn("MuiIconButton",e)}const A5=Gn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),M5=A5,L5=["edge","children","className","color","disabled","disableFocusRipple","size"],$5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`]};return qn(a,N5,t)},D5=Pt(wP,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ke(r.color)}`],r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({theme:e,ownerState:t})=>ne({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})`:Ba(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 ne({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ne({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":ne({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(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)},{[`&.${M5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),F5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=lt(n,L5),p=ne({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:d}),y=$5(p);return m.jsx(D5,ne({className:wt(y.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},f,{children:i}))}),B5=F5,W5=os(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"),U5=os(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),H5=os(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"),q5=os(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"),G5=os(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"),V5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],K5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${Ke(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return qn(i,s5,o)},Y5=Pt(a5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ke(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?sd:ld,n=e.palette.mode==="light"?ld:sd,o=t.color||t.severity;return ne({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${V1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${V1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&ne({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),Q5=Pt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),X5=Pt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Z1=Pt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ew={success:m.jsx(W5,{fontSize:"inherit"}),warning:m.jsx(U5,{fontSize:"inherit"}),error:m.jsx(H5,{fontSize:"inherit"}),info:m.jsx(q5,{fontSize:"inherit"})},J5=N.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Vn({props:t,name:"MuiAlert"}),{action:d,children:f,className:p,closeText:y="Close",color:S,components:g={},componentsProps:C={},icon:v,iconMapping:b=ew,onClose:_,role:k="alert",severity:T="success",slotProps:E={},slots:x={},variant:O="standard"}=c,I=lt(c,V5),j=ne({},c,{color:S,severity:T,variant:O}),M=K5(j),B=(n=(o=x.closeButton)!=null?o:g.CloseButton)!=null?n:B5,$=(i=(a=x.closeIcon)!=null?a:g.CloseIcon)!=null?i:G5,D=(s=E.closeButton)!=null?s:C.closeButton,Z=(u=E.closeIcon)!=null?u:C.closeIcon;return m.jsxs(Y5,ne({role:k,elevation:0,ownerState:j,className:wt(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(Q5,{ownerState:j,className:M.icon,children:v||b[T]||ew[T]}):null,m.jsx(X5,{ownerState:j,className:M.message,children:f}),d!=null?m.jsx(Z1,{ownerState:j,className:M.action,children:d}):null,d==null&&_?m.jsx(Z1,{ownerState:j,className:M.action,children:m.jsx(B,ne({size:"small","aria-label":y,title:y,color:"inherit",onClick:_},D,{children:m.jsx($,ne({fontSize:"small"},Z))}))}):null]}))}),_P=J5,xP=()=>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(_P,{severity:"success",children:"Copied!"})})}),Z5=({value:e,onClose:t})=>{const[r,n]=se.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(If,{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(hy,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(xP,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var hv=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(hv||{});const eD=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=N.useState("Command"),[s,u]=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 y=()=>{let v="";switch(i){case"Command":v=gP();break;case"Flags":v=vP();break;case"Node Info":v=dy();break;case"Stages":v=SP();break;case"Reorgs":v=bP();break}return v},S=()=>{const v=y();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(b=>{console.log(b)})},g=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(ks,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(Un,{backgroundColor:is,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(sA,{cmdLine:e}),i==="Flags"&&m.jsx(n3,{flags:t}),i==="Node Info"&&m.jsx(i3,{nodeDetails:r,onShowNodeValueDetails:(v,b)=>{d({key:v,value:b})}}),i==="Stages"&&m.jsx(a3,{syncStages:n}),i==="Reorgs"&&m.jsx(s3,{reorg:o})]})]}),c&&m.jsx(Z5,{value:c,onClose:()=>d(null)})]})},tD=()=>{const e=Ee(kt),t=Ee(tA),r=Ee(rA),n=Ee(JN),o=Ee(oA),i=Ee(iA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(eD,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},rD=e=>({id:e.id,name:e.name,protocols:nD(e.protocols),enodes:iD(e.enodes)}),nD=e=>({eth:oD(e.eth)}),oD=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),iD=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},aD=["boolean","string","number"],sD=e=>{let t=[];for(let r in e)t.push(lD(r,e[r]));return t},lD=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:uD(t.value)}),uD=e=>{let t=typeof e;return aD.includes(t)||cD(e)||dD(e)?e:""};function cD(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function dD(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const fD=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),hD=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},pD=(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:mD(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),mD=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:vD(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Du(e.network.capBytesIn),capBytesOut:Du(e.network.capBytesOut),typeBytesIn:Du(e.network.typeBytesIn),typeBytesOut:Du(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),vD=(e,t)=>t.includes(e),Du=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},gD=(e,t,r)=>{let n=[];for(let d in e.segmentsDownloading){let f=yD(d,r);d.includes("beaconblocks")&&(f=100),n.push(SD(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.downloadedBytesu?s.push(u):s.length>0?s[s.length-1]=u:s.push(u),{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}},yD=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},SD=(e,t,r)=>({name:r,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseeds:tw(e.webseeds),peers:tw(e.peers),indexed:t}),tw=e=>{let t=[];return e.forEach(r=>{t.push({url:r.url,downloadRate:r.downloadRate})}),t},bD=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let u=wD(e.segments[s]);r.push(u),n+=u.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}},wD=e=>({name:e.segmentName,progress:e.percent}),rr=()=>je.getState().app.activeNodeId,_D=()=>{let e=rr();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},xD=()=>{A$().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(rD(r))}),je.dispatch(jN(t))})},CD=()=>{M$().then(e=>{let t=fD(e);je.dispatch(AN({nodeId:rr(),version:t}))})},RD=()=>{L$().then(e=>{let t=sD(e);je.dispatch(MN({nodeId:rr(),flags:t}))})},kD=()=>{$$().then(e=>{je.dispatch(LN({nodeId:rr(),args:e}))})},PD=()=>{F$().then(e=>{je.dispatch(DN({nodeId:rr(),syncStages:hD(e)}))})},CP=()=>{D$().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${yP()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),je.dispatch($N({nodeId:rr(),logFiles:t}))})},TD=()=>{B$().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),je.dispatch(BN({nodeId:rr(),dbs:t}))})},ED=e=>{W$(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),je.dispatch(WN({nodeId:rr(),path:e,tables:r}))})},OD=()=>{U$().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:rr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};je.dispatch(UN(r))})},rw=()=>{const e=rr(),t=je.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=je.getState().network.bootnodes[t].bootnodes),H$().then(n=>{n.forEach(o=>{let i=pD(o,r);je.dispatch(d3({peer:i,nodeId:rr()}))})})},ID=()=>{q$().then(e=>{je.dispatch(f3({nodeId:rr(),bootnodes:e}))})},nw=()=>{G$().then(e=>{if(e){let t=_D(),r=0;t&&t.segments.forEach(s=>{s.name.includes("beaconblocks")||r++});let n=bD(e.snapshotIndexing,r),o=gD(e.snapshotDownload,t,n),i=e.syncStages.currentStage;i===0&&(i=1);let a=[];if(e.syncStages.stagesList!=null&&e.syncStages.stagesList.forEach(s=>{let u=!1;s==="Snapshots"&&(u=!0),a.push({name:s,subStage:u})}),a.length!=0){let s={stages:a,currentStage:i};je.dispatch(k3({nodeId:rr(),stages:s}))}je.dispatch(R3({nodeId:rr(),indexStatus:n})),je.dispatch(C3({nodeId:rr(),downloadStatus:o}))}})},Fu=()=>{V$().then(e=>{je.dispatch(x3({nodeId:rr(),files:e.files}))})};var RP={exports:{}},yp={exports:{}},ow;function jD(){return ow||(ow=1,function(e,t){(function(r,n){e.exports=n()})(di,function(){var r=Array.prototype.slice;function n(l,h){h&&(l.prototype=Object.create(h.prototype)),l.prototype.constructor=l}function o(l){return u(l)?l:ie(l)}n(i,o);function i(l){return c(l)?l:le(l)}n(a,o);function a(l){return d(l)?l:K(l)}n(s,o);function s(l){return u(l)&&!f(l)?l:ee(l)}function u(l){return!!(l&&l[y])}function c(l){return!!(l&&l[S])}function d(l){return!!(l&&l[g])}function f(l){return c(l)||d(l)}function p(l){return!!(l&&l[C])}o.isIterable=u,o.isKeyed=c,o.isIndexed=d,o.isAssociative=f,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var y="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,_=1<>>0;if(""+w!==h||w===4294967295)return NaN;h=w}return h<0?B(l)+h:h}function D(){return!0}function Z(l,h,w){return(l===0||w!==void 0&&l<=-w)&&(h===void 0||w!==void 0&&h>=w)}function ae(l,h){return Y(l,h,0)}function he(l,h){return Y(l,h,h)}function Y(l,h,w){return l===void 0?w:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var te=0,ce=1,we=2,ke=typeof Symbol=="function"&&Symbol.iterator,yt="@@iterator",$e=ke||yt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=te,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[$e]=function(){return this};function G(l,h,w,R){var P=l===0?h:l===1?w:[h,w];return R?R.value=P:R={value:P,done:!1},R}function V(){return{value:void 0,done:!0}}function q(l){return!!pe(l)}function J(l){return l&&typeof l.next=="function"}function U(l){var h=pe(l);return h&&h.call(l)}function pe(l){var h=l&&(ke&&l[ke]||l[yt]);if(typeof h=="function")return h}function ue(l){return l&&typeof l.length=="number"}n(ie,o);function ie(l){return l==null?De():u(l)?l.toSeq():ir(l)}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(l,h){return _e(this,l,h,!0)},ie.prototype.__iterator=function(l,h){return ti(this,l,h,!0)},n(le,ie);function le(l){return l==null?De().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():Tt(l)}le.prototype.toKeyedSeq=function(){return this},n(K,ie);function K(l){return l==null?De():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():vr(l)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(l,h){return _e(this,l,h,!1)},K.prototype.__iterator=function(l,h){return ti(this,l,h,!1)},n(ee,ie);function ee(l){return(l==null?De():u(l)?c(l)?l.entrySeq():l:vr(l)).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 oe="@@__IMMUTABLE_SEQ__@@";ie.prototype[oe]=!0,n(fe,K);function fe(l){this._array=l,this.size=l.length}fe.prototype.get=function(l,h){return this.has(l)?this._array[$(this,l)]:h},fe.prototype.__iterate=function(l,h){for(var w=this._array,R=w.length-1,P=0;P<=R;P++)if(l(w[h?R-P:P],P,this)===!1)return P+1;return P},fe.prototype.__iterator=function(l,h){var w=this._array,R=w.length-1,P=0;return new Se(function(){return P>R?V():G(l,P,w[h?R-P++:P++])})},n(ge,le);function ge(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ge.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ge.prototype.has=function(l){return this._object.hasOwnProperty(l)},ge.prototype.__iterate=function(l,h){for(var w=this._object,R=this._keys,P=R.length-1,z=0;z<=P;z++){var A=R[h?P-z:z];if(l(w[A],A,this)===!1)return z+1}return z},ge.prototype.__iterator=function(l,h){var w=this._object,R=this._keys,P=R.length-1,z=0;return new Se(function(){var A=R[h?P-z:z];return z++>P?V():G(l,A,w[A])})},ge.prototype[C]=!0,n(ye,K);function ye(l){this._iterable=l,this.size=l.length||l.size}ye.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);var w=this._iterable,R=U(w),P=0;if(J(R))for(var z;!(z=R.next()).done&&l(z.value,P++,this)!==!1;);return P},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var w=this._iterable,R=U(w);if(!J(R))return new Se(V);var P=0;return new Se(function(){var z=R.next();return z.done?z:G(l,P++,z.value)})},n(be,K);function be(l){this._iterator=l,this._iteratorCache=[]}be.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);for(var w=this._iterator,R=this._iteratorCache,P=0;P=R.length){var z=w.next();if(z.done)return z;R[P]=z.value}return G(l,P,R[P++])})};function Re(l){return!!(l&&l[oe])}var ze;function De(){return ze||(ze=new fe([]))}function Tt(l){var h=Array.isArray(l)?new fe(l).fromEntrySeq():J(l)?new be(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ge(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function vr(l){var h=Gt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function ir(l){var h=Gt(l)||typeof l=="object"&&new ge(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Gt(l){return ue(l)?new fe(l):J(l)?new be(l):q(l)?new ye(l):void 0}function _e(l,h,w,R){var P=l._cache;if(P){for(var z=P.length-1,A=0;A<=z;A++){var L=P[w?z-A:A];if(h(L[1],R?L[0]:A,l)===!1)return A+1}return A}return l.__iterateUncached(h,w)}function ti(l,h,w,R){var P=l._cache;if(P){var z=P.length-1,A=0;return new Se(function(){var L=P[w?z-A:A];return A++>z?V():G(h,R?L[0]:A-1,L[1])})}return l.__iteratorUncached(h,w)}function ri(l,h){return h?Yn(h,l,"",{"":l}):su(l)}function Yn(l,h,w,R){return Array.isArray(h)?l.call(R,w,K(h).map(function(P,z){return Yn(l,P,z,h)})):L0(h)?l.call(R,w,le(h).map(function(P,z){return Yn(l,P,z,h)})):h}function su(l){return Array.isArray(l)?K(l).map(su).toList():L0(l)?le(l).map(su).toMap():l}function L0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function St(l,h){if(l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1;if(typeof l.valueOf=="function"&&typeof h.valueOf=="function"){if(l=l.valueOf(),h=h.valueOf(),l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1}return!!(typeof l.equals=="function"&&typeof h.equals=="function"&&l.equals(h))}function eh(l,h){if(l===h)return!0;if(!u(h)||l.size!==void 0&&h.size!==void 0&&l.size!==h.size||l.__hash!==void 0&&h.__hash!==void 0&&l.__hash!==h.__hash||c(l)!==c(h)||d(l)!==d(h)||p(l)!==p(h))return!1;if(l.size===0&&h.size===0)return!0;var w=!f(l);if(p(l)){var R=l.entries();return h.every(function(W,H){var X=R.next().value;return X&&St(X[1],W)&&(w||St(X[0],H))})&&R.next().done}var P=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{P=!0;var z=l;l=h,h=z}var A=!0,L=h.__iterate(function(W,H){if(w?!l.has(W):P?!St(W,l.get(H,T)):!St(l.get(H,T),W))return A=!1,!1});return A&&l.size===L}n(Vt,K);function Vt(l,h){if(!(this instanceof Vt))return new Vt(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(th)return th;th=this}}Vt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Vt.prototype.get=function(l,h){return this.has(l)?this._value:h},Vt.prototype.includes=function(l){return St(this._value,l)},Vt.prototype.slice=function(l,h){var w=this.size;return Z(l,h,w)?this:new Vt(this._value,he(h,w)-ae(l,w))},Vt.prototype.reverse=function(){return this},Vt.prototype.indexOf=function(l){return St(this._value,l)?0:-1},Vt.prototype.lastIndexOf=function(l){return St(this._value,l)?this.size:-1},Vt.prototype.__iterate=function(l,h){for(var w=0;w=0&&h=0&&ww?V():G(l,z++,A)})},Lt.prototype.equals=function(l){return l instanceof Lt?this._start===l._start&&this._end===l._end&&this._step===l._step:eh(this,l)};var rh;n(go,o);function go(){throw TypeError("Abstract")}n(cs,go);function cs(){}n(Di,go);function Di(){}n(uu,go);function uu(){}go.Keyed=cs,go.Indexed=Di,go.Set=uu;var ds=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(h,w){h=h|0,w=w|0;var R=h&65535,P=w&65535;return R*P+((h>>>16)*P+R*(w>>>16)<<16>>>0)|0};function nh(l){return l>>>1&1073741824|l&3221225471}function Tr(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var h=typeof l;if(h==="number"){if(l!==l||l===1/0)return 0;var w=l|0;for(w!==l&&(w^=l*4294967295);l>4294967295;)l/=4294967295,w^=l;return nh(w)}if(h==="string")return l.length>VE?HE(l):oh(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return qE(l);if(typeof l.toString=="function")return oh(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function HE(l){var h=uh[l];return h===void 0&&(h=oh(l),lh===KE&&(lh=0,uh={}),lh++,uh[l]=h),h}function oh(l){for(var h=0,w=0;w0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var ih=typeof WeakMap=="function",ah;ih&&(ah=new WeakMap);var sh=0,ni="__immutablehash__";typeof Symbol=="function"&&(ni=Symbol(ni));var VE=16,KE=255,lh=0,uh={};function Er(l){lu(l!==1/0,"Cannot perform this action with an infinite size.")}n(Oe,cs);function Oe(l){return l==null?cn():ch(l)&&!p(l)?l:cn().withMutations(function(h){var w=i(l);Er(w.size),w.forEach(function(R,P){return h.set(P,R)})})}Oe.of=function(){var l=r.call(arguments,0);return cn().withMutations(function(h){for(var w=0;w=l.length)throw new Error("Missing value for key: "+l[w]);h.set(l[w],l[w+1])}})},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Oe.prototype.set=function(l,h){return U0(this,l,h)},Oe.prototype.setIn=function(l,h){return this.updateIn(l,T,function(){return h})},Oe.prototype.remove=function(l){return U0(this,l,T)},Oe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return T})},Oe.prototype.update=function(l,h,w){return arguments.length===1?l(this):this.updateIn([l],h,w)},Oe.prototype.updateIn=function(l,h,w){w||(w=h,h=void 0);var R=K0(this,mS(l),h,w);return R===T?void 0:R},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):cn()},Oe.prototype.merge=function(){return cu(this,void 0,arguments)},Oe.prototype.mergeWith=function(l){var h=r.call(arguments,1);return cu(this,l,h)},Oe.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.merge=="function"?w.merge.apply(w,h):h[h.length-1]})},Oe.prototype.mergeDeep=function(){return cu(this,q0,arguments)},Oe.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return cu(this,G0(l),h)},Oe.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.mergeDeep=="function"?w.mergeDeep.apply(w,h):h[h.length-1]})},Oe.prototype.sort=function(l){return ht(Gi(this,l))},Oe.prototype.sortBy=function(l,h){return ht(Gi(this,h,l))},Oe.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(l,h){return new dh(this,l,h)},Oe.prototype.__iterate=function(l,h){var w=this,R=0;return this._root&&this._root.iterate(function(P){return R++,l(P[1],P[0],w)},h),R},Oe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?hh(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function ch(l){return!!(l&&l[F0])}Oe.isMap=ch;var F0="@@__IMMUTABLE_MAP__@@",Pe=Oe.prototype;Pe[F0]=!0,Pe[v]=Pe.remove,Pe.removeIn=Pe.deleteIn;function fs(l,h){this.ownerID=l,this.entries=h}fs.prototype.get=function(l,h,w,R){for(var P=this.entries,z=0,A=P.length;z=eO)return YE(l,W,R,P);var ve=l&&l===this.ownerID,xe=ve?W:M(W);return de?L?H===X-1?xe.pop():xe[H]=xe.pop():xe[H]=[R,P]:xe.push([R,P]),ve?(this.entries=xe,this):new fs(l,xe)}};function Fi(l,h,w){this.ownerID=l,this.bitmap=h,this.nodes=w}Fi.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var P=1<<((l===0?h:h>>>l)&k),z=this.bitmap;return z&P?this.nodes[Y0(z&P-1)].get(l+b,h,w,R):R},Fi.prototype.update=function(l,h,w,R,P,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,W=1<=tO)return XE(l,ve,H,L,Ce);if(X&&!Ce&&ve.length===2&&H0(ve[de^1]))return ve[de^1];if(X&&Ce&&ve.length===1&&H0(Ce))return Ce;var Ze=l&&l===this.ownerID,dn=X?Ce?H:H^W:H|W,Tn=X?Ce?Q0(ve,de,Ce,Ze):ZE(ve,de,Ze):JE(ve,de,Ce,Ze);return Ze?(this.bitmap=dn,this.nodes=Tn,this):new Fi(l,dn,Tn)};function hs(l,h,w){this.ownerID=l,this.count=h,this.nodes=w}hs.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var P=(l===0?h:h>>>l)&k,z=this.nodes[P];return z?z.get(l+b,h,w,R):R},hs.prototype.update=function(l,h,w,R,P,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,W=P===T,H=this.nodes,X=H[L];if(W&&!X)return this;var de=ph(X,l,h+b,w,R,P,z,A);if(de===X)return this;var ve=this.count;if(!X)ve++;else if(!de&&(ve--,ve>>w)&k,A=(w===0?R:R>>>w)&k,L,W=z===A?[mh(l,h,w+b,R,P)]:(L=new Qn(h,R,P),z>>=1)A[L]=w&1?h[z++]:void 0;return A[R]=P,new hs(l,z+1,A)}function cu(l,h,w){for(var R=[],P=0;P>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function Q0(l,h,w,R){var P=R?l:M(l);return P[h]=w,P}function JE(l,h,w,R){var P=l.length+1;if(R&&h+1===P)return l[h]=w,l;for(var z=new Array(P),A=0,L=0;L0&&R<_?ms(0,R,b,null,new yo(w.toArray())):h.withMutations(function(P){P.setSize(R),w.forEach(function(z,A){return P.set(A,z)})}))}Ye.of=function(){return this(arguments)},Ye.prototype.toString=function(){return this.__toString("List [","]")},Ye.prototype.get=function(l,h){if(l=$(this,l),l>=0&&l>>h&k;if(R>=this.array.length)return new yo([],l);var P=R===0,z;if(h>0){var A=this.array[R];if(z=A&&A.removeBefore(l,h-b,w),z===A&&P)return this}if(P&&!z)return this;var L=Wi(this,l);if(!P)for(var W=0;W>>h&k;if(R>=this.array.length)return this;var P;if(h>0){var z=this.array[R];if(P=z&&z.removeAfter(l,h-b,w),P===z&&R===this.array.length-1)return this}var A=Wi(this,l);return A.array.splice(R+1),P&&(A.array[R]=P),A};var ps={};function Z0(l,h){var w=l._origin,R=l._capacity,P=vs(R),z=l._tail;return A(l._root,l._level,0);function A(H,X,de){return X===0?L(H,de):W(H,X,de)}function L(H,X){var de=X===P?z&&z.array:H&&H.array,ve=X>w?0:w-X,xe=R-X;return xe>_&&(xe=_),function(){if(ve===xe)return ps;var Ce=h?--xe:ve++;return de&&de[Ce]}}function W(H,X,de){var ve,xe=H&&H.array,Ce=de>w?0:w-de>>X,Ze=(R-de>>X)+1;return Ze>_&&(Ze=_),function(){do{if(ve){var dn=ve();if(dn!==ps)return dn;ve=null}if(Ce===Ze)return ps;var Tn=h?--Ze:Ce++;ve=A(xe&&xe[Tn],X-b,de+(Tn<=l.size||h<0)return l.withMutations(function(A){h<0?So(A,h).set(0,w):So(A,0,h+1).set(h,w)});h+=l._origin;var R=l._tail,P=l._root,z=O(x);return h>=vs(l._capacity)?R=gh(R,l.__ownerID,0,h,w,z):P=gh(P,l.__ownerID,l._level,h,w,z),z.value?l.__ownerID?(l._root=P,l._tail=R,l.__hash=void 0,l.__altered=!0,l):ms(l._origin,l._capacity,l._level,P,R):l}function gh(l,h,w,R,P,z){var A=R>>>w&k,L=l&&A0){var H=l&&l.array[A],X=gh(H,h,w-b,R,P,z);return X===H?l:(W=Wi(l,h),W.array[A]=X,W)}return L&&l.array[A]===P?l:(I(z),W=Wi(l,h),P===void 0&&A===W.array.length-1?W.array.pop():W.array[A]=P,W)}function Wi(l,h){return h&&l&&h===l.ownerID?l:new yo(l?l.array.slice():[],h)}function tS(l,h){if(h>=vs(l._capacity))return l._tail;if(h<1<0;)w=w.array[h>>>R&k],R-=b;return w}}function So(l,h,w){h!==void 0&&(h=h|0),w!==void 0&&(w=w|0);var R=l.__ownerID||new j,P=l._origin,z=l._capacity,A=P+h,L=w===void 0?z:w<0?z+w:P+w;if(A===P&&L===z)return l;if(A>=L)return l.clear();for(var W=l._level,H=l._root,X=0;A+X<0;)H=new yo(H&&H.array.length?[void 0,H]:[],R),W+=b,X+=1<=1<de?new yo([],R):xe;if(xe&&ve>de&&Ab;dn-=b){var Tn=de>>>dn&k;Ze=Ze.array[Tn]=Wi(Ze.array[Tn],R)}Ze.array[de>>>b&k]=xe}if(L=ve)A-=ve,L-=ve,W=b,H=null,Ce=Ce&&Ce.removeBefore(R,0,A);else if(A>P||ve>>W&k;if(yu!==ve>>>W&k)break;yu&&(X+=(1<P&&(H=H.removeBefore(R,W,A-X)),H&&veP&&(P=L.size),u(A)||(L=L.map(function(W){return ri(W)})),R.push(L)}return P>l.size&&(l=l.setSize(P)),V0(l,h,R)}function vs(l){return l<_?0:l-1>>>b<=_&&P.size>=R.size*2?(W=P.filter(function(H,X){return H!==void 0&&z!==X}),L=W.toKeyedSeq().map(function(H){return H[0]}).flip().toMap(),l.__ownerID&&(L.__ownerID=W.__ownerID=l.__ownerID)):(L=R.remove(h),W=z===P.size-1?P.pop():P.set(z,void 0))}else if(A){if(w===P.get(z)[1])return l;L=R,W=P.set(z,[h,w])}else L=R.set(h,P.size),W=P.set(P.size,[h,w]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=W,l.__hash=void 0,l):yh(L,W)}n(Vr,le);function Vr(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Vr.prototype.get=function(l,h){return this._iter.get(l,h)},Vr.prototype.has=function(l){return this._iter.has(l)},Vr.prototype.valueSeq=function(){return this._iter.valueSeq()},Vr.prototype.reverse=function(){var l=this,h=Sh(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Vr.prototype.map=function(l,h){var w=this,R=aS(this,l,h);return this._useKeys||(R.valueSeq=function(){return w._iter.toSeq().map(l,h)}),R},Vr.prototype.__iterate=function(l,h){var w=this,R;return this._iter.__iterate(this._useKeys?function(P,z){return l(P,z,w)}:(R=h?fS(this):0,function(P){return l(P,h?--R:R++,w)}),h)},Vr.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var w=this._iter.__iterator(ce,h),R=h?fS(this):0;return new Se(function(){var P=w.next();return P.done?P:G(l,h?--R:R++,P.value,P)})},Vr.prototype[C]=!0,n(Ui,K);function Ui(l){this._iter=l,this.size=l.size}Ui.prototype.includes=function(l){return this._iter.includes(l)},Ui.prototype.__iterate=function(l,h){var w=this,R=0;return this._iter.__iterate(function(P){return l(P,R++,w)},h)},Ui.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h),R=0;return new Se(function(){var P=w.next();return P.done?P:G(l,R++,P.value,P)})},n(Hi,ee);function Hi(l){this._iter=l,this.size=l.size}Hi.prototype.has=function(l){return this._iter.includes(l)},Hi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){return l(R,R,w)},h)},Hi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){var R=w.next();return R.done?R:G(l,R.value,R.value,R)})},n(qi,le);function qi(l){this._iter=l,this.size=l.size}qi.prototype.entrySeq=function(){return this._iter.toSeq()},qi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){if(R){dS(R);var P=u(R);return l(P?R.get(1):R[1],P?R.get(0):R[0],w)}},h)},qi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){for(;;){var R=w.next();if(R.done)return R;var P=R.value;if(P){dS(P);var z=u(P);return G(l,z?P.get(0):P[0],z?P.get(1):P[1],R)}}})},Ui.prototype.cacheResult=Vr.prototype.cacheResult=Hi.prototype.cacheResult=qi.prototype.cacheResult=_h;function iS(l){var h=Rn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var w=l.reverse.apply(this);return w.flip=function(){return l.reverse()},w},h.has=function(w){return l.includes(w)},h.includes=function(w){return l.has(w)},h.cacheResult=_h,h.__iterateUncached=function(w,R){var P=this;return l.__iterate(function(z,A){return w(A,z,P)!==!1},R)},h.__iteratorUncached=function(w,R){if(w===we){var P=l.__iterator(w,R);return new Se(function(){var z=P.next();if(!z.done){var A=z.value[0];z.value[0]=z.value[1],z.value[1]=A}return z})}return l.__iterator(w===ce?te:ce,R)},h}function aS(l,h,w){var R=Rn(l);return R.size=l.size,R.has=function(P){return l.has(P)},R.get=function(P,z){var A=l.get(P,T);return A===T?z:h.call(w,A,P,l)},R.__iterateUncached=function(P,z){var A=this;return l.__iterate(function(L,W,H){return P(h.call(w,L,W,H),W,A)!==!1},z)},R.__iteratorUncached=function(P,z){var A=l.__iterator(we,z);return new Se(function(){var L=A.next();if(L.done)return L;var W=L.value,H=W[0];return G(P,H,h.call(w,W[1],H,l),L)})},R}function Sh(l,h){var w=Rn(l);return w._iter=l,w.size=l.size,w.reverse=function(){return l},l.flip&&(w.flip=function(){var R=iS(l);return R.reverse=function(){return l.flip()},R}),w.get=function(R,P){return l.get(h?R:-1-R,P)},w.has=function(R){return l.has(h?R:-1-R)},w.includes=function(R){return l.includes(R)},w.cacheResult=_h,w.__iterate=function(R,P){var z=this;return l.__iterate(function(A,L){return R(A,L,z)},!P)},w.__iterator=function(R,P){return l.__iterator(R,!P)},w}function sS(l,h,w,R){var P=Rn(l);return R&&(P.has=function(z){var A=l.get(z,T);return A!==T&&!!h.call(w,A,z,l)},P.get=function(z,A){var L=l.get(z,T);return L!==T&&h.call(w,L,z,l)?L:A}),P.__iterateUncached=function(z,A){var L=this,W=0;return l.__iterate(function(H,X,de){if(h.call(w,H,X,de))return W++,z(H,R?X:W-1,L)},A),W},P.__iteratorUncached=function(z,A){var L=l.__iterator(we,A),W=0;return new Se(function(){for(;;){var H=L.next();if(H.done)return H;var X=H.value,de=X[0],ve=X[1];if(h.call(w,ve,de,l))return G(z,R?de:W++,ve,H)}})},P}function oO(l,h,w){var R=Oe().asMutable();return l.__iterate(function(P,z){R.update(h.call(w,P,z,l),0,function(A){return A+1})}),R.asImmutable()}function iO(l,h,w){var R=c(l),P=(p(l)?ht():Oe()).asMutable();l.__iterate(function(A,L){P.update(h.call(w,A,L,l),function(W){return W=W||[],W.push(R?[L,A]:A),W})});var z=hS(l);return P.map(function(A){return Ge(l,z(A))})}function bh(l,h,w,R){var P=l.size;if(h!==void 0&&(h=h|0),w!==void 0&&(w===1/0?w=P:w=w|0),Z(h,w,P))return l;var z=ae(h,P),A=he(w,P);if(z!==z||A!==A)return bh(l.toSeq().cacheResult(),h,w,R);var L=A-z,W;L===L&&(W=L<0?0:L);var H=Rn(l);return H.size=W===0?W:l.size&&W||void 0,!R&&Re(l)&&W>=0&&(H.get=function(X,de){return X=$(this,X),X>=0&&XW)return V();var Ze=ve.next();return R||X===ce?Ze:X===te?G(X,Ce-1,void 0,Ze):G(X,Ce-1,Ze.value[1],Ze)})},H}function aO(l,h,w){var R=Rn(l);return R.__iterateUncached=function(P,z){var A=this;if(z)return this.cacheResult().__iterate(P,z);var L=0;return l.__iterate(function(W,H,X){return h.call(w,W,H,X)&&++L&&P(W,H,A)}),L},R.__iteratorUncached=function(P,z){var A=this;if(z)return this.cacheResult().__iterator(P,z);var L=l.__iterator(we,z),W=!0;return new Se(function(){if(!W)return V();var H=L.next();if(H.done)return H;var X=H.value,de=X[0],ve=X[1];return h.call(w,ve,de,A)?P===we?H:G(P,de,ve,H):(W=!1,V())})},R}function lS(l,h,w,R){var P=Rn(l);return P.__iterateUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterate(z,A);var W=!0,H=0;return l.__iterate(function(X,de,ve){if(!(W&&(W=h.call(w,X,de,ve))))return H++,z(X,R?de:H-1,L)}),H},P.__iteratorUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterator(z,A);var W=l.__iterator(we,A),H=!0,X=0;return new Se(function(){var de,ve,xe;do{if(de=W.next(),de.done)return R||z===ce?de:z===te?G(z,X++,void 0,de):G(z,X++,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:G(z,ve,xe,de)})},P}function sO(l,h){var w=c(l),R=[l].concat(h).map(function(A){return u(A)?w&&(A=i(A)):A=w?Tt(A):vr(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(R.length===0)return l;if(R.length===1){var P=R[0];if(P===l||w&&c(P)||d(l)&&d(P))return P}var z=new fe(R);return w?z=z.toKeyedSeq():d(l)||(z=z.toSetSeq()),z=z.flatten(!0),z.size=R.reduce(function(A,L){if(A!==void 0){var W=L.size;if(W!==void 0)return A+W}},0),z}function uS(l,h,w){var R=Rn(l);return R.__iterateUncached=function(P,z){var A=0,L=!1;function W(H,X){var de=this;H.__iterate(function(ve,xe){return(!h||X0}function wh(l,h,w){var R=Rn(l);return R.size=new fe(w).map(function(P){return P.size}).min(),R.__iterate=function(P,z){for(var A=this.__iterator(ce,z),L,W=0;!(L=A.next()).done&&P(L.value,W++,this)!==!1;);return W},R.__iteratorUncached=function(P,z){var A=w.map(function(H){return H=o(H),U(z?H.reverse():H)}),L=0,W=!1;return new Se(function(){var H;return W||(H=A.map(function(X){return X.next()}),W=H.some(function(X){return X.done})),W?V():G(P,L++,h.apply(null,H.map(function(X){return X.value})))})},R}function Ge(l,h){return Re(l)?h:l.constructor(h)}function dS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function fS(l){return Er(l.size),B(l)}function hS(l){return c(l)?i:d(l)?a:s}function Rn(l){return Object.create((c(l)?le:d(l)?K:ee).prototype)}function _h(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ie.prototype.cacheResult.call(this)}function pS(l,h){return l>h?1:l=0;w--)h={value:arguments[w],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):gs(l,h)},bt.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Er(l.size);var h=this.size,w=this._head;return l.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):gs(h,w)},bt.prototype.pop=function(){return this.slice(1)},bt.prototype.unshift=function(){return this.push.apply(this,arguments)},bt.prototype.unshiftAll=function(l){return this.pushAll(l)},bt.prototype.shift=function(){return this.pop.apply(this,arguments)},bt.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):Ph()},bt.prototype.slice=function(l,h){if(Z(l,h,this.size))return this;var w=ae(l,this.size),R=he(h,this.size);if(R!==this.size)return Di.prototype.slice.call(this,l,h);for(var P=this.size-w,z=this._head;w--;)z=z.next;return this.__ownerID?(this.size=P,this._head=z,this.__hash=void 0,this.__altered=!0,this):gs(P,z)},bt.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?gs(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},bt.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var w=0,R=this._head;R&&l(R.value,w++,this)!==!1;)R=R.next;return w},bt.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var w=0,R=this._head;return new Se(function(){if(R){var P=R.value;return R=R.next,G(l,w++,P)}return V()})};function xS(l){return!!(l&&l[CS])}bt.isStack=xS;var CS="@@__IMMUTABLE_STACK__@@",Vi=bt.prototype;Vi[CS]=!0,Vi.withMutations=Pe.withMutations,Vi.asMutable=Pe.asMutable,Vi.asImmutable=Pe.asImmutable,Vi.wasAltered=Pe.wasAltered;function gs(l,h,w,R){var P=Object.create(Vi);return P.size=l,P._head=h,P.__ownerID=w,P.__hash=R,P.__altered=!1,P}var RS;function Ph(){return RS||(RS=gs(0))}function Pn(l,h){var w=function(R){l.prototype[R]=h[R]};return Object.keys(h).forEach(w),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(w),l}o.Iterator=Se,Pn(o,{toArray:function(){Er(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,w){l[w]=h}),l},toIndexedSeq:function(){return new Ui(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new Vr(this,!0)},toMap:function(){return Oe(this.toKeyedSeq())},toObject:function(){Er(this.size);var l={};return this.__iterate(function(h,w){l[w]=h}),l},toOrderedMap:function(){return ht(this.toKeyedSeq())},toOrderedSet:function(){return kn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Hi(this)},toSeq:function(){return d(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return bt(c(this)?this.valueSeq():this)},toList:function(){return Ye(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,h){return this.size===0?l+h:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+h},concat:function(){var l=r.call(arguments,0);return Ge(this,sO(this,l))},includes:function(l){return this.some(function(h){return St(h,l)})},entries:function(){return this.__iterator(we)},every:function(l,h){Er(this.size);var w=!0;return this.__iterate(function(R,P,z){if(!l.call(h,R,P,z))return w=!1,!1}),w},filter:function(l,h){return Ge(this,sS(this,l,h,!0))},find:function(l,h,w){var R=this.findEntry(l,h);return R?R[1]:w},forEach:function(l,h){return Er(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Er(this.size),l=l!==void 0?""+l:",";var h="",w=!0;return this.__iterate(function(R){w?w=!1:h+=l,h+=R!=null?R.toString():""}),h},keys:function(){return this.__iterator(te)},map:function(l,h){return Ge(this,aS(this,l,h))},reduce:function(l,h,w){Er(this.size);var R,P;return arguments.length<2?P=!0:R=h,this.__iterate(function(z,A,L){P?(P=!1,R=z):R=l.call(w,R,z,A,L)}),R},reduceRight:function(l,h,w){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return Ge(this,Sh(this,!0))},slice:function(l,h){return Ge(this,bh(this,l,h,!0))},some:function(l,h){return!this.every(gu(l),h)},sort:function(l){return Ge(this,Gi(this,l))},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(l,h){return B(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return oO(this,l,h)},equals:function(l){return eh(this,l)},entrySeq:function(){var l=this;if(l._cache)return new fe(l._cache);var h=l.toSeq().map(hO).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(gu(l),h)},findEntry:function(l,h,w){var R=w;return this.__iterate(function(P,z,A){if(l.call(h,P,z,A))return R=[z,P],!1}),R},findKey:function(l,h){var w=this.findEntry(l,h);return w&&w[0]},findLast:function(l,h,w){return this.toKeyedSeq().reverse().find(l,h,w)},findLastEntry:function(l,h,w){return this.toKeyedSeq().reverse().findEntry(l,h,w)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(D)},flatMap:function(l,h){return Ge(this,lO(this,l,h))},flatten:function(l){return Ge(this,uS(this,l,!0))},fromEntrySeq:function(){return new qi(this)},get:function(l,h){return this.find(function(w,R){return St(R,l)},void 0,h)},getIn:function(l,h){for(var w=this,R=mS(l),P;!(P=R.next()).done;){var z=P.value;if(w=w&&w.get?w.get(z,T):T,w===T)return h}return w},groupBy:function(l,h){return iO(this,l,h)},has:function(l){return this.get(l,T)!==T},hasIn:function(l){return this.getIn(l,T)!==T},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(h){return l.includes(h)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(h){return St(h,l)})},keySeq:function(){return this.toSeq().map(fO).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return hu(this,l)},maxBy:function(l,h){return hu(this,h,l)},min:function(l){return hu(this,l?kS(l):TS)},minBy:function(l,h){return hu(this,h?kS(h):TS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return Ge(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return Ge(this,lS(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(gu(l),h)},sortBy:function(l,h){return Ge(this,Gi(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return Ge(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return Ge(this,aO(this,l,h))},takeUntil:function(l,h){return this.takeWhile(gu(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=mO(this))}});var sr=o.prototype;sr[y]=!0,sr[$e]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=PS,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Pn(i,{flip:function(){return Ge(this,iS(this))},mapEntries:function(l,h){var w=this,R=0;return Ge(this,this.toSeq().map(function(P,z){return l.call(h,[z,P],R++,w)}).fromEntrySeq())},mapKeys:function(l,h){var w=this;return Ge(this,this.toSeq().flip().map(function(R,P){return l.call(h,R,P,w)}).flip())}});var vu=i.prototype;vu[S]=!0,vu[$e]=sr.entries,vu.__toJS=sr.toObject,vu.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+PS(l)},Pn(a,{toKeyedSeq:function(){return new Vr(this,!1)},filter:function(l,h){return Ge(this,sS(this,l,h,!1))},findIndex:function(l,h){var w=this.findEntry(l,h);return w?w[0]:-1},indexOf:function(l){var h=this.keyOf(l);return h===void 0?-1:h},lastIndexOf:function(l){var h=this.lastKeyOf(l);return h===void 0?-1:h},reverse:function(){return Ge(this,Sh(this,!1))},slice:function(l,h){return Ge(this,bh(this,l,h,!1))},splice:function(l,h){var w=arguments.length;if(h=Math.max(h|0,0),w===0||w===2&&!h)return this;l=ae(l,l<0?this.count():this.size);var R=this.slice(0,l);return Ge(this,w===1?R:R.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var w=this.findLastEntry(l,h);return w?w[0]:-1},first:function(){return this.get(0)},flatten:function(l){return Ge(this,uS(this,l,!1))},get:function(l,h){return l=$(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(w,R){return R===l},void 0,h)},has:function(l){return l=$(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function mO(l){if(l.size===1/0)return 0;var h=p(l),w=c(l),R=h?1:0,P=l.__iterate(w?h?function(z,A){R=31*R+ES(Tr(z),Tr(A))|0}:function(z,A){R=R+ES(Tr(z),Tr(A))|0}:h?function(z){R=31*R+Tr(z)|0}:function(z){R=R+Tr(z)|0});return vO(P,R)}function vO(l,h){return h=ds(h,3432918353),h=ds(h<<15|h>>>-15,461845907),h=ds(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=ds(h^h>>>16,2246822507),h=ds(h^h>>>13,3266489909),h=nh(h^h>>>16),h}function ES(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var gO={Iterable:o,Seq:ie,Collection:go,Map:Oe,OrderedMap:ht,List:Ye,Stack:bt,Set:Je,OrderedSet:kn,Record:Or,Range:Lt,Repeat:Vt,is:St,fromJS:ri};return gO})}(yp)),yp.exports}function zD(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 ND=Object.freeze(Object.defineProperty({__proto__:null,default:zD},Symbol.toStringTag,{value:"Module"})),AD=Xa(ND);var Sp,iw;function kP(){if(iw)return Sp;iw=1;var e=typeof di=="object"&&di&&di.Object===Object&&di;return Sp=e,Sp}var bp,aw;function MD(){if(aw)return bp;aw=1;var e=kP(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return bp=r,bp}var wp,sw;function zf(){if(sw)return wp;sw=1;var e=MD(),t=e.Symbol;return wp=t,wp}var _p,lw;function LD(){if(lw)return _p;lw=1;var e=zf(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),u=a[o];try{a[o]=void 0;var c=!0}catch{}var d=n.call(a);return c&&(s?a[o]=u:delete a[o]),d}return _p=i,_p}var xp,uw;function $D(){if(uw)return xp;uw=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return xp=r,xp}var Cp,cw;function Nf(){if(cw)return Cp;cw=1;var e=zf(),t=LD(),r=$D(),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 Cp=a,Cp}var Rp,dw;function Jl(){if(dw)return Rp;dw=1;function e(t){return t!=null&&typeof t=="object"}return Rp=e,Rp}var kp,fw;function DD(){if(fw)return kp;fw=1;var e=Nf(),t=Jl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return kp=n,kp}var Pp,hw;function FD(){if(hw)return Pp;hw=1;function e(t){return function(r){return t(r)}}return Pp=e,Pp}var Ds={exports:{}};Ds.exports;var pw;function BD(){return pw||(pw=1,function(e,t){var r=kP(),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 u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Ds,Ds.exports)),Ds.exports}var Tp,mw;function WD(){if(mw)return Tp;mw=1;var e=DD(),t=FD(),r=BD(),n=r&&r.isRegExp,o=n?t(n):e;return Tp=o,Tp}var Ep,vw;function UD(){if(vw)return Ep;vw=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 Fp=r,Fp}var Bp,Tw;function eF(){if(Tw)return Bp;Tw=1;var e=ZD();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Bp=t,Bp}var Wp,Ew;function tF(){if(Ew)return Wp;Ew=1;var e=WD(),t=VD(),r=KD(),n=eF();function o(i,a,s){var u=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,y=f.length;p=0&&u===s&&c())}function Fs(e,t){if(e==null)return{};var r=lt(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 rF=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ft(this,e),F(this,"_cellSizeAndPositionData",{}),F(this,"_lastMeasuredIndex",-1),F(this,"_lastBatchedIndex",-1),F(this,"_cellCount",void 0),F(this,"_cellSizeGetter",void 0),F(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return gt(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 u=this.getSizeAndPositionOfCell(s),c=u.offset,d=c-i+u.size,f;switch(o){case"start":f=c;break;case"end":f=d;break;case"center":f=c-(i-u.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),u=this.getSizeAndPositionOfCell(s);o=u.offset+u.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}(),nF=15e5,oF=16777100,iF=function(){return typeof window<"u"},aF=function(){return!!window.chrome},sF=function(){return iF()&&aF()?oF:nF},jw=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?sF():r,o=Fs(t,["maxScrollSize"]);ft(this,e),F(this,"_cellSizeAndPositionManager",void 0),F(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new rF(o),this._maxScrollSize=n}return gt(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 u=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:u})}},{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 Wa(){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(u){var c=o[u];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(u){var c=t[u],d=o[u];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});t=o,a&&s&&n(o)}}var Bu=-1,Jn=1;function IP(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Jn?{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 zw(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,f=e.size,p=e.sizeJustIncreasedFromZero,y=e.updateScrollIndexCallback,S=r.getCellCount(),g=d>=0&&d0&&(fr.getTotalSize()-f&&y(S-1)}function jP(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,f=e.rowSizeAndPositionManager,p=e.rowStartIndex,y=e.rowStopIndex,S=e.styleCache,g=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],_=n.areOffsetsAdjusted()||f.areOffsetsAdjusted(),k=!u&&!_,T=p;T<=y;T++)for(var E=f.getSizeAndPositionOfCell(T),x=o;x<=i;x++){var O=n.getSizeAndPositionOfCell(x),I=x>=C.start&&x<=C.stop&&T>=v.start&&T<=v.stop,j="".concat(T,"-").concat(x),M=void 0;k&&S[j]?M=S[j]:a&&!a.has(T,x)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:E.size,left:O.offset+s,position:"absolute",top:E.offset+g,width:O.size},S[j]=M);var B={columnIndex:x,isScrolling:u,isVisible:I,key:j,parent:d,rowIndex:T,style:M},$=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r(B)),$=t[j]):$=r(B),!($==null||$===!1)&&b.push($)}return b}const lF=!!(typeof window<"u"&&window.document&&window.document.createElement);var Wu;function pv(e){if((!Wu&&Wu!==0||e)&&lF){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),Wu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Wu}var cr;typeof window<"u"?cr=window:typeof self<"u"?cr=self:cr={};var uF=cr.requestAnimationFrame||cr.webkitRequestAnimationFrame||cr.mozRequestAnimationFrame||cr.oRequestAnimationFrame||cr.msRequestAnimationFrame||function(e){return cr.setTimeout(e,1e3/60)},cF=cr.cancelAnimationFrame||cr.webkitCancelAnimationFrame||cr.mozCancelAnimationFrame||cr.oCancelAnimationFrame||cr.msCancelAnimationFrame||function(e){cr.clearTimeout(e)},Nw=uF,dF=cF,Ua=function(t){return dF(t.id)},yy=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=Nw(a)},i={id:Nw(o)};return i},Aw,Mw;function Lw(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 oi(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 gt(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,u=n.rowIndex,c=u===void 0?this.props.scrollToRow:u,d=oi({},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 u=this.props,c=u.autoHeight,d=u.autoWidth,f=u.height,p=u.width,y=this.state.instanceProps,S=y.scrollbarSize,g=y.rowSizeAndPositionManager.getTotalSize(),C=y.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+S),i),b=Math.min(Math.max(0,g-f+S),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==b){var _=v!==this.state.scrollLeft?v>this.state.scrollLeft?Jn:Bu:this.state.scrollDirectionHorizontal,k=b!==this.state.scrollTop?b>this.state.scrollTop?Jn:Bu:this.state.scrollDirectionVertical,T={isScrolling:!0,scrollDirectionHorizontal:_,scrollDirectionVertical:k,scrollPositionChangeReason:Up.OBSERVED};c||(T.scrollTop=b),d||(T.scrollLeft=v),T.needToResetStyleCache=!1,this.setState(T)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:C,totalRowsHeight:g})}}},{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,u=this.props,c=u.scrollToColumn,d=u.scrollToRow,f=this.state.instanceProps;f.columnSizeAndPositionManager.resetCell(i),f.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===Jn?i<=c:i>=c),this._recomputeScrollTopFlag=d>=0&&(this.state.scrollDirectionVertical===Jn?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(oi({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(oi({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,u=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 g=oi({},S,{needToResetStyleCache:!1});return g.instanceProps.scrollbarSize=o(),g.instanceProps.scrollbarSizeMeasured=!0,g}),typeof a=="number"&&a>=0||typeof u=="number"&&u>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:u});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 y=i>0&&d>0;s>=0&&y&&this._updateScrollLeftForScrollToColumn(),c>=0&&y&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:u||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,u=a.autoWidth,c=a.columnCount,d=a.height,f=a.rowCount,p=a.scrollToAlignment,y=a.scrollToColumn,S=a.scrollToRow,g=a.width,C=this.state,v=C.scrollLeft,b=C.scrollPositionChangeReason,_=C.scrollTop,k=C.instanceProps;this._handleInvalidatedGridSize();var T=c>0&&n.columnCount===0||f>0&&n.rowCount===0;b===Up.REQUESTED&&(!u&&v>=0&&(v!==this._scrollingContainer.scrollLeft||T)&&(this._scrollingContainer.scrollLeft=v),!s&&_>=0&&(_!==this._scrollingContainer.scrollTop||T)&&(this._scrollingContainer.scrollTop=_));var E=(n.width===0||n.height===0)&&d>0&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):zw({cellSizeAndPositionManager:k.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:y,size:g,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):zw({cellSizeAndPositionManager:k.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:_,scrollToAlignment:p,scrollToIndex:S,size:d,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||_!==o.scrollTop){var x=k.rowSizeAndPositionManager.getTotalSize(),O=k.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:_,totalColumnsWidth:O,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Ua(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,u=n.containerProps,c=n.containerRole,d=n.containerStyle,f=n.height,p=n.id,y=n.noContentRenderer,S=n.role,g=n.style,C=n.tabIndex,v=n.width,b=this.state,_=b.instanceProps,k=b.needToResetStyleCache,T=this._isScrolling(),E={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(),O=_.rowSizeAndPositionManager.getTotalSize(),I=O>f?_.scrollbarSize:0,j=x>v?_.scrollbarSize:0;(j!==this._horizontalScrollBarSize||I!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=j,this._verticalScrollBarSize=I,this._scrollbarPresenceChanged=!0),E.overflowX=x+I<=v?"hidden":"auto",E.overflowY=O+j<=f?"hidden":"auto";var M=this._childrenToDisplay,B=M.length===0&&f>0&&v>0;return N.createElement("div",ne({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:vn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:S,style:oi({},E,{},g),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:oi({width:o?"auto":x,height:O,maxWidth:x,maxHeight:O,overflow:"hidden",pointerEvents:T?"none":"",position:"relative"},d)},M),B&&y())}},{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,u=n.deferredMeasurementCache,c=n.height,d=n.overscanColumnCount,f=n.overscanIndicesGetter,p=n.overscanRowCount,y=n.rowCount,S=n.width,g=n.isScrollingOptOut,C=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,b=o.instanceProps,_=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,k=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,T=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&S>0){var E=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:S,offset:k}),x=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:_}),O=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:S,offset:k}),I=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:_});this._renderedColumnStartIndex=E.start,this._renderedColumnStopIndex=E.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var j=f({direction:"horizontal",cellCount:s,overscanCellsCount:d,scrollDirection:C,startIndex:typeof E.start=="number"?E.start:0,stopIndex:typeof E.stop=="number"?E.stop:-1}),M=f({direction:"vertical",cellCount:y,overscanCellsCount:p,scrollDirection:v,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),B=j.overscanStartIndex,$=j.overscanStopIndex,D=M.overscanStartIndex,Z=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var ae=D;ae<=Z;ae++)if(!u.has(ae,0)){B=0,$=s-1;break}}if(!u.hasFixedWidth()){for(var he=B;he<=$;he++)if(!u.has(0,he)){D=0,Z=y-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:B,columnStopIndex:$,deferredMeasurementCache:u,horizontalOffsetAdjustment:O,isScrolling:T,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:D,rowStopIndex:Z,scrollLeft:k,scrollTop:_,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:E,visibleRowIndices:x}),this._columnStartIndex=B,this._columnStopIndex=$,this._rowStartIndex=D,this._rowStopIndex=Z}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ua(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=yy(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,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:u,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 u="".concat(a,"-").concat(s);this._styleCache[u]=n[u],i&&(this._cellCache[u]=o[u])}}},{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,u;return Iw({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)}}),Iw({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(){u=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,oi({},i,{},s,{},u)}},{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:Up.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Jn:Bu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Jn:Bu,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,u=n.scrollToColumn,c=n.width,d=o.scrollLeft,f=o.instanceProps;if(i>0){var p=i-1,y=u<0?p:Math.min(p,u),S=f.rowSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:d,targetIndex:y})}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,u=n.scrollToRow,c=n.width,d=o.scrollTop,f=o.instanceProps;if(a>0){var p=a-1,y=u<0?p:Math.min(p,u),S=f.columnSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:d,targetIndex:y})}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),F(Aw,"propTypes",null),Mw);F(ao,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:jP,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:pv,noContentRenderer:hF,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:IP,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:fF,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zl(ao);var pF=1;function Sy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===pF?{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 $w,Dw;function Fw(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 mF(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=O.head||O.getElementsByTagName("head")[0],M=O.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(O.createTextNode(I)),j.appendChild(M)}},T=function(O,I){if(n)O.attachEvent("onresize",I);else{if(!O.__resizeTriggers__){var j=O.ownerDocument,M=r.getComputedStyle(O);M&&M.position=="static"&&(O.style.position="relative"),k(j),O.__resizeLast__={},O.__resizeListeners__=[],(O.__resizeTriggers__=j.createElement("div")).className="resize-triggers";var B='
';if(window.trustedTypes){var $=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return B}});O.__resizeTriggers__.innerHTML=$.createHTML("")}else O.__resizeTriggers__.innerHTML=B;O.appendChild(O.__resizeTriggers__),a(O),O.addEventListener("scroll",u,!0),f&&(O.__resizeTriggers__.__animationListener__=function(Z){Z.animationName==v&&a(O)},O.__resizeTriggers__.addEventListener(f,O.__resizeTriggers__.__animationListener__))}O.__resizeListeners__.push(I)}},E=function(O,I){if(n)O.detachEvent("onresize",I);else if(O.__resizeListeners__.splice(O.__resizeListeners__.indexOf(I),1),!O.__resizeListeners__.length){O.removeEventListener("scroll",u,!0),O.__resizeTriggers__.__animationListener__&&(O.__resizeTriggers__.removeEventListener(f,O.__resizeTriggers__.__animationListener__),O.__resizeTriggers__.__animationListener__=null);try{O.__resizeTriggers__=!O.removeChild(O.__resizeTriggers__)}catch{}}};return{addResizeListener:T,removeResizeListener:E}}var Bw,Ww;function Uw(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 vF(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),F(this,"_cellHeightCache",{}),F(this,"_cellWidthCache",{}),F(this,"_columnWidthCache",{}),F(this,"_rowHeightCache",{}),F(this,"_defaultHeight",void 0),F(this,"_defaultWidth",void 0),F(this,"_minHeight",void 0),F(this,"_minWidth",void 0),F(this,"_keyMapper",void 0),F(this,"_hasFixedHeight",void 0),F(this,"_hasFixedWidth",void 0),F(this,"_columnCount",0),F(this,"_rowCount",0),F(this,"columnWidth",function(d){var f=d.index,p=t._keyMapper(0,f);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),F(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,u=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=s||bF,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:gF),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:yF)}return gt(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=u.getScrollPositionForCell({align:d,cellIndex:f,height:c,scrollLeft:S,scrollTop:g,width:p});(C.scrollLeft!==S||C.scrollTop!==g)&&n._setScrollPosition(C)}}),F(Q(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var u=n.props,c=u.cellLayoutManager,d=u.height,f=u.isScrollingChange,p=u.width,y=n._scrollbarSize,S=c.getTotalSize(),g=S.height,C=S.width,v=Math.max(0,Math.min(C-p+y,s.target.scrollLeft)),b=Math.max(0,Math.min(g-d+y,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==b){var _=s.cancelable?ea.OBSERVED:ea.REQUESTED;n.state.isScrolling||f(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:_,scrollTop:b})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalWidth:C,totalHeight:g})}}),n._scrollbarSize=pv(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return gt(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=pv(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var u=o.getTotalSize(),c=u.height,d=u.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,u=i.scrollToCell,c=i.width,d=this.state,f=d.scrollLeft,p=d.scrollPositionChangeReason,y=d.scrollTop;p===ea.REQUESTED&&(f>=0&&f!==o.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),y>=0&&y!==o.scrollTop&&y!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=y)),(a!==n.height||s!==n.scrollToAlignment||u!==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,u=n.height,c=n.horizontalOverscanSize,d=n.id,f=n.noContentRenderer,p=n.style,y=n.verticalOverscanSize,S=n.width,g=this.state,C=g.isScrolling,v=g.scrollLeft,b=g.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var _=a.getTotalSize(),k=_.height,T=_.width,E=Math.max(0,v-c),x=Math.max(0,b-y),O=Math.min(T,v+S+c),I=Math.min(k,b+u+y),j=u>0&&S>0?a.cellRenderers({height:I-x,isScrolling:C,width:O-E,x:E,y:x}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:S,willChange:"transform"},B=k>u?this._scrollbarSize:0,$=T>S?this._scrollbarSize:0;return M.overflowX=T+B<=S?"hidden":"auto",M.overflowY=k+$<=u?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:vn("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:wF({},M,{},p),tabIndex:0},i>0&&N.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:k,maxHeight:k,maxWidth:T,overflow:"hidden",pointerEvents:C?"none":"",width:T}},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})},_F)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,u=n.totalWidth;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:s,scrollLeft:f,scrollTop:p,scrollWidth:u})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:ea.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:ea.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:ea.REQUESTED}:null}}]),t}(N.PureComponent);F(Af,"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});Af.propTypes={};Zl(Af);var xF=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;ft(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gt(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}(),CF=100,RF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CF;ft(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gt(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(u){return u.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(u){return s[u]})}},{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),u=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<=u;p++)for(var y=c;y<=d;y++){var S="".concat(p,".").concat(y);this._sections[S]||(this._sections[S]=new xF({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:y*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 kF(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new RF(n),a=0,s=0,u=0;u=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var S=y.startIndex-1;if(!t({index:S}))y.startIndex=S;else break}return a}function NF(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 Kw,Yw,$P=(Yw=Kw=function(e){mr(t,e);function t(){var r,n;ft(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,u=vn("ReactVirtualized__List",o);return N.createElement(ao,ne({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:u,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),F(Kw,"propTypes",null),Yw);F($P,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Sy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function AF(e){if(Array.isArray(e))return e}function MF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function LF(){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 $F(e,t){return AF(e)||MF(e,t)||LP(e,t)||LF()}function DF(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 FF(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 BF(e,t,r,n,o){return typeof r=="function"?FF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):DF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function WF(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 UF(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 HF(e,t,r,n,o){return typeof r=="function"?UF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):WF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function qF(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 VF(e,t,r,n,o){return typeof r=="function"?GF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):qF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function KF(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 YF(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 QF(e,t,r,n,o){return typeof r=="function"?YF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):KF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function XF(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 JF(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 ZF(e,t,r,n,o){return typeof r=="function"?JF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):XF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const cd={ge:BF,gt:HF,lt:VF,le:QF,eq:ZF};var va=0,ci=1,gc=2;function xy(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 eu=xy.prototype;function Hp(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 DP(e,t){var r=Ha(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 Qw(e,t){var r=e.intervals([]);r.push(t),DP(e,r)}function Xw(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?va:(r.splice(n,1),DP(e,r),ci)}eu.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};eu.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Qw(this,e):this.left.insert(e):this.left=Ha([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Qw(this,e):this.right.insert(e):this.right=Ha([e]);else{var r=cd.ge(this.leftPoints,e,Cy),n=cd.ge(this.rightPoints,e,Ry);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};eu.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Xw(this,e);var n=this.left.remove(e);return n===gc?(this.left=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return va;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Xw(this,e);var n=this.right.remove(e);return n===gc?(this.right=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?gc:va;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}Hp(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Hp(this,this.left):Hp(this,this.right);return ci}for(var s=cd.ge(this.leftPoints,e,Cy);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function WP(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return BP(this.rightPoints,e,t)}else return WP(this.leftPoints,t)};eu.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?BP(this.rightPoints,e,r):WP(this.leftPoints,r)};function eB(e,t){return e-t}function Cy(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Ry(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Ha(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(j=D,M=D):(j=Math.min(j,D),M=Math.max(M,D)),E.push(u({index:D,isScrolling:k,key:p(D),parent:n,style:(he={height:s.getHeight(D)},F(he,b==="ltr"?"left":"right",Z),F(he,"position","absolute"),F(he,"top",ae),F(he,"width",s.getWidth(D)),he)}))}),O0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),F(this,"_cellMeasurerCache",void 0),F(this,"_columnIndexOffset",void 0),F(this,"_rowIndexOffset",void 0),F(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),F(this,"rowHeight",function(u){var c=u.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 gt(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 r_(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 Qt(e){for(var t=1;t0?new Gp({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Gp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new Gp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return gt(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,u=this.props,c=u.fixedColumnCount,d=u.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,u=Fs(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(u),this._renderTopRightGrid(Qt({},u,{onScroll:o,scrollLeft:d}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qt({},u,{onScroll:o,scrollTop:f})),this._renderBottomRightGrid(Qt({},u,{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);F(Mf,"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});Mf.propTypes={};Zl(Mf);var UP=function(e){mr(t,e);function t(r,n){var o;return ft(this,t),o=pr(this,Ht(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Q(o)),o}return gt(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,u=o.scrollLeft,c=o.scrollTop,d=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:u,scrollTop:c,scrollWidth:d})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,u=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:u,scrollWidth:c})}}]),t}(N.PureComponent);UP.propTypes={};function sB(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(u){a[u]=o[u]!==void 0?o[u]:"ASC"});function s(u){var c=u.defaultSortDirection,d=u.event,f=u.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 y=Object.keys(a);y.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 HP(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function qP(e){var t=e.cellData;return t==null?"":String(t)}function Py(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}Py.propTypes=null;var so={ASC:"ASC",DESC:"DESC"};function Ty(e){var t=e.sortDirection,r=vn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===so.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===so.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===so.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"}))}Ty.propTypes={};function Ey(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(Ty,{key:"SortIndicator",sortDirection:o})),a}Ey.propTypes=null;function Oy(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(i||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(y){return i({event:y,index:n,rowData:d})}),a&&(p.onDoubleClick=function(y){return a({event:y,index:n,rowData:d})}),s&&(p.onMouseOut=function(y){return s({event:y,index:n,rowData:d})}),u&&(p.onMouseOver=function(y){return u({event:y,index:n,rowData:d})}),c&&(p.onContextMenu=function(y){return c({event:y,index:n,rowData:d})})),N.createElement("div",ne({},p,{className:t,key:o,role:"row",style:f}),r)}Oy.propTypes=null;var Iy=function(e){mr(t,e);function t(){return ft(this,t),pr(this,Ht(t).apply(this,arguments))}return t}(N.Component);F(Iy,"defaultProps",{cellDataGetter:HP,cellRenderer:qP,defaultSortDirection:so.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ey,style:{}});Iy.propTypes={};function o_(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 ta(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=Wl.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,u=o.gridClassName,c=o.gridStyle,d=o.headerHeight,f=o.headerRowRenderer,p=o.height,y=o.id,S=o.noRowsRenderer,g=o.rowClassName,C=o.rowStyle,v=o.scrollToIndex,b=o.style,_=o.width,k=this.state.scrollbarWidth,T=s?p:p-d,E=typeof g=="function"?g({index:-1}):g,x=typeof C=="function"?C({index:-1}):C;return this._cachedColumnStyles=[],N.Children.toArray(i).forEach(function(O,I){var j=n._getFlexStyleForColumn(O,O.props.style);n._cachedColumnStyles[I]=ta({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:vn("ReactVirtualized__Table",a),id:y,role:"grid",style:b},!s&&f({className:vn("ReactVirtualized__Table__headerRow",E),columns:this._getHeaderColumns(),style:ta({height:d,overflow:"hidden",paddingRight:k,width:_},x)}),N.createElement(ao,ne({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:vn("ReactVirtualized__Table__Grid",u),cellRenderer:this._createRow,columnWidth:_,columnCount:1,height:T,id:void 0,noContentRenderer:S,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:k,scrollToRow:v,style:ta({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,u=n.rowData,c=n.rowIndex,d=this.props.onColumnClick,f=o.props,p=f.cellDataGetter,y=f.cellRenderer,S=f.className,g=f.columnData,C=f.dataKey,v=f.id,b=p({columnData:g,dataKey:C,rowData:u}),_=y({cellData:b,columnData:g,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:u,rowIndex:c}),k=function(O){d&&d({columnData:g,dataKey:C,event:O})},T=this._cachedColumnStyles[i],E=typeof _=="string"?_:null;return N.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:vn("ReactVirtualized__Table__rowColumn",S),key:"Row"+c+"-Col"+i,onClick:k,role:"gridcell",style:T,title:E},_)}},{key:"_createHeader",value:function(n){var o=n.column,i=n.index,a=this.props,s=a.headerClassName,u=a.headerStyle,c=a.onHeaderClick,d=a.sort,f=a.sortBy,p=a.sortDirection,y=o.props,S=y.columnData,g=y.dataKey,C=y.defaultSortDirection,v=y.disableSort,b=y.headerRenderer,_=y.id,k=y.label,T=!v&&d,E=vn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),x=this._getFlexStyleForColumn(o,ta({},u,{},o.props.headerStyle)),O=b({columnData:S,dataKey:g,disableSort:v,label:k,sortBy:f,sortDirection:p}),I,j,M,B,$;if(T||c){var D=f!==g,Z=D?C:p===so.DESC?so.ASC:so.DESC,ae=function(te){T&&d({defaultSortDirection:C,event:te,sortBy:g,sortDirection:Z}),c&&c({columnData:S,dataKey:g,event:te})},he=function(te){(te.key==="Enter"||te.key===" ")&&ae(te)};$=o.props["aria-label"]||k||g,B="none",M=0,I=ae,j=he}return f===g&&(B=p===so.ASC?"ascending":"descending"),N.createElement("div",{"aria-label":$,"aria-sort":B,className:E,id:_,key:"Header-Col"+i,onClick:I,onKeyDown:j,role:"columnheader",style:x,tabIndex:M},O)}},{key:"_createRow",value:function(n){var o=this,i=n.rowIndex,a=n.isScrolling,s=n.key,u=n.parent,c=n.style,d=this.props,f=d.children,p=d.onRowClick,y=d.onRowDoubleClick,S=d.onRowRightClick,g=d.onRowMouseOver,C=d.onRowMouseOut,v=d.rowClassName,b=d.rowGetter,_=d.rowRenderer,k=d.rowStyle,T=this.state.scrollbarWidth,E=typeof v=="function"?v({index:i}):v,x=typeof k=="function"?k({index:i}):k,O=b({index:i}),I=N.Children.toArray(f).map(function(B,$){return o._createColumn({column:B,columnIndex:$,isScrolling:a,parent:u,rowData:O,rowIndex:i,scrollbarWidth:T})}),j=vn("ReactVirtualized__Table__row",E),M=ta({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:T},x);return _({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:y,onRowRightClick:S,onRowMouseOver:g,onRowMouseOut:C,rowData:O,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=ta({},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(u,c){return n._createHeader({column:u,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,u=this.props.onRowsRendered;u({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);F(jy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Sy,overscanRowCount:10,rowRenderer:Oy,headerRowRenderer:Py,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});jy.propTypes={};var Wo=[],tl=null,Si=null;function GP(){Si&&(Si=null,document.body&&tl!=null&&(document.body.style.pointerEvents=tl),tl=null)}function lB(){GP(),Wo.forEach(function(e){return e.__resetIsScrolling()})}function uB(){Si&&Ua(Si);var e=0;Wo.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Si=yy(lB,e)}function VP(e){e.currentTarget===window&&tl==null&&document.body&&(tl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),uB(),Wo.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function i_(e,t){Wo.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",VP),Wo.push(e)}function a_(e,t){Wo=Wo.filter(function(r){return r!==e}),Wo.length||(t.removeEventListener("scroll",VP),Si&&(Ua(Si),GP()))}var zy=function(t){return t===window},Bs=function(t){return t.getBoundingClientRect()};function s_(e,t){if(e)if(zy(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 Bs(e);else return{height:t.serverHeight,width:t.serverWidth}}function cB(e,t){if(zy(t)&&document.documentElement){var r=document.documentElement,n=Bs(e),o=Bs(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=KP(t),a=Bs(e),s=Bs(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function KP(e){return zy(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 l_,u_;function c_(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 dB(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,u=this._child||Wl.findDOMNode(this);if(u instanceof Element&&n){var c=cB(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var d=s_(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=zP(),this.updatePosition(n),n&&(i_(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),a_(this,a),i_(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(a_(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,u=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:u,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),F(l_,"propTypes",null),u_);F(QP,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:fB,scrollElement:YP(),serverHeight:0,serverWidth:0});const hB=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:by,AutoSizer:NP,CellMeasurer:AP,CellMeasurerCache:SF,Collection:wy,Column:Iy,ColumnSizer:MP,Grid:ao,InfiniteLoader:_y,List:$P,Masonry:ky,MultiGrid:Mf,ScrollSync:UP,SortDirection:so,SortIndicator:Ty,Table:jy,WindowScroller:QP,accessibilityOverscanIndicesGetter:Sy,createMasonryCellPositioner:aB,createTableMultiSort:sB,defaultCellRangeRenderer:jP,defaultOverscanIndicesGetter:IP,defaultTableCellDataGetter:HP,defaultTableCellRenderer:qP,defaultTableHeaderRenderer:Ey,defaultTableHeaderRowRenderer:Py,defaultTableRowRenderer:Oy},Symbol.toStringTag,{value:"Module"})),pB=Xa(hB);function ro(e,t,r){return t<=e&&e<=r}function Lf(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function mB(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,u=a&1023;o.push(65536+(s<<10)+u),n+=1}else o.push(65533)}n+=1}return o}function vB(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var dd=-1;function Ny(e){this.tokens=[].slice.call(e)}Ny.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():dd},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 qa=-1;function Vp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var fd="utf-8";function hd(e,t){if(!(this instanceof hd))return new hd(e,t);if(e=e!==void 0?String(e).toLowerCase():fd,e!==fd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Lf(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})}hd.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=Lf(r),this._streaming||(this._decoder=new gB({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new Ny(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==qa);)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===qa)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),vB(i)}};function pd(e,t){if(!(this instanceof pd))return new pd(e,t);if(e=e!==void 0?String(e).toLowerCase():fd,e!==fd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Lf(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}pd.prototype={encode:function(t,r){t=t?String(t):"",r=Lf(r),this._streaming||(this._encoder=new yB(this._options)),this._streaming=!!r.stream;for(var n=[],o=new Ny(mB(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==qa);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==qa;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function gB(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===dd&&o!==0)return o=0,Vp(t);if(u===dd)return qa;if(o===0){if(ro(u,0,127))return u;if(ro(u,194,223))o=1,r=u-192;else if(ro(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(ro(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Vp(t);return r=r<<6*o,null}if(!ro(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Vp(t);if(i=128,a=191,n+=1,r+=u-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function yB(e){e.fatal,this.handler=function(t,r){if(r===dd)return qa;if(ro(r,0,127))return r;var n,o;ro(r,128,2047)?(n=1,o=192):ro(r,2048,65535)?(n=2,o=224):ro(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 SB=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:hd,TextEncoder:pd},Symbol.toStringTag,{value:"Module"})),bB=Xa(SB);var d_={},f_;function wB(){return f_||(f_=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(x){return x&&DataView.prototype.isPrototypeOf(x)},o=ArrayBuffer.isView||function(x){return x&&r.indexOf(Object.prototype.toString.call(x))>-1};function i(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(x))throw new TypeError("Invalid character in header field name");return x.toLowerCase()}function a(x){return typeof x!="string"&&(x=String(x)),x}function s(x){var O={next:function(){var I=x.shift();return{done:I===void 0,value:I}}};return t.iterable&&(O[Symbol.iterator]=function(){return O}),O}function u(x){this.map={},x instanceof u?x.forEach(function(O,I){this.append(I,O)},this):Array.isArray(x)?x.forEach(function(O){this.append(O[0],O[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(O){this.append(O,x[O])},this)}u.prototype.append=function(x,O){x=i(x),O=a(O);var I=this.map[x];this.map[x]=I?I+","+O:O},u.prototype.delete=function(x){delete this.map[i(x)]},u.prototype.get=function(x){return x=i(x),this.has(x)?this.map[x]:null},u.prototype.has=function(x){return this.map.hasOwnProperty(i(x))},u.prototype.set=function(x,O){this.map[i(x)]=a(O)},u.prototype.forEach=function(x,O){for(var I in this.map)this.map.hasOwnProperty(I)&&x.call(O,this.map[I],I,this)},u.prototype.keys=function(){var x=[];return this.forEach(function(O,I){x.push(I)}),s(x)},u.prototype.values=function(){var x=[];return this.forEach(function(O){x.push(O)}),s(x)},u.prototype.entries=function(){var x=[];return this.forEach(function(O,I){x.push([I,O])}),s(x)},t.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function c(x){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}function d(x){return new Promise(function(O,I){x.onload=function(){O(x.result)},x.onerror=function(){I(x.error)}})}function f(x){var O=new FileReader,I=d(O);return O.readAsArrayBuffer(x),I}function p(x){var O=new FileReader,I=d(O);return O.readAsText(x),I}function y(x){for(var O=new Uint8Array(x),I=new Array(O.length),j=0;j-1?O:x}function b(x,O){O=O||{};var I=O.body;if(x instanceof b){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,O.headers||(this.headers=new u(x.headers)),this.method=x.method,this.mode=x.mode,!I&&x._bodyInit!=null&&(I=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=O.credentials||this.credentials||"omit",(O.headers||!this.headers)&&(this.headers=new u(O.headers)),this.method=v(O.method||this.method||"GET"),this.mode=O.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 O=new FormData;return x.trim().split("&").forEach(function(I){if(I){var j=I.split("="),M=j.shift().replace(/\+/g," "),B=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(M),decodeURIComponent(B))}}),O}function k(x){var O=new u,I=x.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(j){var M=j.split(":"),B=M.shift().trim();if(B){var $=M.join(":").trim();O.append(B,$)}}),O}g.call(b.prototype);function T(x,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new u(O.headers),this.url=O.url||"",this._initBody(x)}g.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var x=new T(null,{status:0,statusText:""});return x.type="error",x};var E=[301,302,303,307,308];T.redirect=function(x,O){if(E.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:x}})},e.Headers=u,e.Request=b,e.Response=T,e.fetch=function(x,O){return new Promise(function(I,j){var M=new b(x,O),B=new XMLHttpRequest;B.onload=function(){var $={status:B.status,statusText:B.statusText,headers:k(B.getAllResponseHeaders()||"")};$.url="responseURL"in B?B.responseURL:$.headers.get("X-Request-URL");var D="response"in B?B.response:B.responseText;I(new T(D,$))},B.onerror=function(){j(new TypeError("Network request failed"))},B.ontimeout=function(){j(new TypeError("Network request failed"))},B.open(M.method,M.url,!0),M.credentials==="include"?B.withCredentials=!0:M.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&t.blob&&(B.responseType="blob"),M.headers.forEach(function($,D){B.setRequestHeader(D,$)}),B.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:di)),d_}function h_(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");Jy(this)}},Kn(e,[{key:"closed",get:function(){return vi(this)===!1?Promise.reject(qu("closed")):this._closedPromise}}]),e}(),KW=function(){function e(r){if(!eo(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(na(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Oo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");xT(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(_d("cancel")):CT(this,n):Promise.reject(Gu("cancel"))},t.read=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(_d("read from")):ArrayBuffer.isView(n)?gd(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")):YW(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(Gu("read"))},t.releaseLock=function(){if(!Us(this))throw Gu("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");Jy(this)}},Kn(e,[{key:"closed",get:function(){return Us(this)?this._closedPromise:Promise.reject(Gu("closed"))}}]),e}();function Us(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function vi(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function xT(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?u6(e):t._state==="closed"?d6(e):(c6(e,t._storedError),e._closedPromise.catch(function(){}))}function CT(e,t){var r=e._ownerReadableStream;return bi(r,t)}function Jy(e){e._ownerReadableStream._state==="readable"?$T(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):f6(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 YW(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):ZW(n._readableStreamController,t,r)}function Zy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Vo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[Gy](t)}var RT=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Hu(this)===!1)throw Vu("close");if(wd(this)===!1)throw new TypeError("The stream is not in a state that permits close");Sd(this)},t.enqueue=function(n){if(Hu(this)===!1)throw Vu("enqueue");if(wd(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return bd(this,n)},t.error=function(n){if(Hu(this)===!1)throw Vu("error");Ko(this,n)},t[qy]=function(r){ls(this);var n=this._cancelAlgorithm(r);return yd(this),n},t[Gy]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=MW(this);return this._closeRequested===!0&&this._queue.length===0?(yd(this),ru(n)):Ol(this),Promise.resolve(Vo(o,!1,r))}var i=ST(n,r);return Ol(this),i},Kn(e,[{key:"desiredSize",get:function(){if(Hu(this)===!1)throw Vu("desiredSize");return e0(this)}}]),e}();function Hu(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Ol(e){var t=kT(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,Ol(e)},function(n){Ko(e,n)}).catch(no)}}function kT(e){var t=e._controlledReadableStream;if(wd(e)===!1||e._started===!1)return!1;if(Oo(t)===!0&&Wf(t)>0)return!0;var r=e0(e);return r>0}function yd(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Sd(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(yd(e),ru(t))}function bd(e,t){var r=e._controlledReadableStream;if(Oo(r)===!0&&Wf(r)>0)Qy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Ko(e,o),o}try{LW(e,t,n)}catch(o){throw Ko(e,o),o}}Ol(e)}function Ko(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(ls(e),yd(e),bT(r,t))}function e0(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function QW(e){return kT(e)!==!0}function wd(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function PT(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ls(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,Ol(t)},function(u){Ko(t,u)}).catch(no)}function XW(e,t,r,n){var o=Object.create(RT.prototype);function i(){return yT(t,"start",[o])}var a=vd(t,"pull",0,[o]),s=vd(t,"cancel",1,[]);PT(e,o,i,a,s,r,n)}var JW=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(Xp(this)===!1)throw Jp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(gd(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");i6(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(Xp(this)===!1)throw Jp("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(gd(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");a6(this._associatedReadableByteStreamController,n)},Kn(e,[{key:"view",get:function(){if(Xp(this)===!1)throw Jp("view");return this._view}}]),e}(),TT=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(na(this)===!1)throw Es("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");n6(this)},t.enqueue=function(n){if(na(this)===!1)throw Es("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(gd(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");o6(this,n)},t.error=function(n){if(na(this)===!1)throw Es("error");nu(this,n)},t[qy]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}ls(this);var o=this._cancelAlgorithm(r);return Uf(this),o},t[Gy]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,zT(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(Vo(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 u={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(u)}var c=ST(n,r);return $i(this),c},Kn(e,[{key:"byobRequest",get:function(){if(na(this)===!1)throw Es("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(JW.prototype);l6(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(na(this)===!1)throw Es("desiredSize");return MT(this)}}]),e}();function na(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function Xp(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function $i(e){var t=r6(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,$i(e))},function(n){nu(e,n)}).catch(no)}}function ET(e){r0(e),e._pendingPullIntos=[]}function t0(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=OT(t);t.readerType==="default"?Qy(e,n,r):GW(e,n,r)}function OT(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function yc(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function IT(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,u=!1;a>n&&(s=a-t.bytesFilled,u=!0);for(var c=e._queue;s>0;){var d=c[0],f=Math.min(s,d.byteLength),p=t.byteOffset+t.bytesFilled;jW(t.buffer,p,d.buffer,d.byteOffset,f),d.byteLength===f?c.shift():(d.byteOffset+=f,d.byteLength-=f),e._queueTotalSize-=f,jT(e,f,t),s-=f}return u}function jT(e,t,r){r0(e),r.bytesFilled+=t}function zT(e){e._queueTotalSize===0&&e._closeRequested===!0?(Uf(e),ru(e._controlledReadableByteStream)):$i(e)}function r0(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function NT(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];IT(e,t)===!0&&(n0(e),t0(e._controlledReadableByteStream,t))}}function ZW(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Bf(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),__(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Vo(u,!0,r))}if(e._queueTotalSize>0){if(IT(e,s)===!0){var c=OT(s);return zT(e),Promise.resolve(Vo(c,!1,r))}if(e._closeRequested===!0){var d=new TypeError("Insufficient bytes to fill elements in the given buffer");return nu(e,d),Promise.reject(d)}}e._pendingPullIntos.push(s);var f=__(n,r);return $i(e),f}function e6(e,t){t.buffer=Bf(t.buffer);var r=e._controlledReadableByteStream;if(Xy(r)===!0)for(;wT(r)>0;){var n=n0(e);t0(r,n)}}function t6(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(jT(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);yc(e,i,0,i.byteLength)}r.buffer=Bf(r.buffer),r.bytesFilled-=n,t0(e._controlledReadableByteStream,r),NT(e)}}function AT(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");e6(e,r)}else t6(e,t,r);$i(e)}function n0(e){var t=e._pendingPullIntos.shift();return r0(e),t}function r6(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(_T(t)===!0&&Wf(t)>0||Xy(t)===!0&&wT(t)>0)return!0;var r=MT(e);return r>0}function Uf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function n6(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 nu(e,n),n}}Uf(e),ru(t)}function o6(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Bf(n);if(_T(r)===!0)if(Wf(r)===0)yc(e,a,o,i);else{var s=new Uint8Array(a,o,i);Qy(r,s,!1)}else Xy(r)===!0?(yc(e,a,o,i),NT(e)):yc(e,a,o,i);$i(e)}function nu(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(ET(e),ls(e),Uf(e),bT(r,t))}function MT(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function i6(e,t){if(t=Number(t),zW(t)===!1)throw new RangeError("bytesWritten must be a finite");AT(e,t)}function a6(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,AT(e,t.byteLength)}function LT(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,ET(t),t._queue=t._queueTotalSize=void 0,ls(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=gv(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,$i(t)},function(u){nu(t,u)}).catch(no)}function s6(e,t,r){var n=Object.create(TT.prototype);function o(){return yT(t,"start",[n])}var i=vd(t,"pull",0,[n]),a=vd(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),_B(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");LT(e,n,o,i,a,r,s)}function l6(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function x_(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 ra(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function _d(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function qu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function u6(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function c6(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function d6(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function $T(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function f6(e,t){e._closedPromise=Promise.reject(t)}function h6(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Gu(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Vu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Jp(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Es(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var p6=Zo.ReadableStream,m6=qe.createDataProperty,v6=function(){function e(r){var n=r.highWaterMark;m6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),g6=qe.createDataProperty,y6=function(){function e(r){var n=r.highWaterMark;g6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();ZP("streams:transform-stream:verbose");var S6=qe.InvokeOrNoop,b6=qe.CreateAlgorithmFromUnderlyingMethod,w6=qe.PromiseCall,DT=qe.typeIsObject,C_=qe.ValidateAndNormalizeHighWaterMark;qe.IsNonNegativeNumber;var R_=qe.MakeSizeAlgorithmFromSizeFunction,_6=Zo.CreateReadableStream,FT=Zo.ReadableStreamDefaultControllerClose,x6=Zo.ReadableStreamDefaultControllerEnqueue,C6=Zo.ReadableStreamDefaultControllerError,R6=Zo.ReadableStreamDefaultControllerGetDesiredSize,k6=Zo.ReadableStreamDefaultControllerHasBackpressure,o0=Zo.ReadableStreamDefaultControllerCanCloseOrEnqueue,P6=Cn.CreateWritableStream,T6=Cn.WritableStreamDefaultControllerErrorIfNeeded,BT=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,u=t.writableType;if(u!==void 0)throw new RangeError("Invalid writable type specified");var c=R_(o);i===void 0&&(i=1),i=C_(i);var d=t.readableType;if(d!==void 0)throw new RangeError("Invalid readable type specified");var f=R_(a);s===void 0&&(s=0),s=C_(s);var p,y=new Promise(function(g){p=g});WT(this,y,i,c,s,f),O6(this,t);var S=S6(t,"start",[this._transformStreamController]);p(S)}return Kn(e,[{key:"readable",get:function(){if(k_(this)===!1)throw T_("readable");return this._readable}},{key:"writable",get:function(){if(k_(this)===!1)throw T_("writable");return this._writable}}]),e}();function E6(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(BT.prototype),u,c=new Promise(function(p){u=p});WT(s,c,n,o,i,a);var d=Object.create(UT.prototype);HT(s,d,t,r);var f=e();return u(f),s}function WT(e,t,r,n,o,i){function a(){return t}function s(p){return z6(e,p)}function u(p){return N6(e,p)}function c(){return A6(e)}e._writable=P6(a,s,c,u,r,n);function d(){return M6(e)}function f(p){return qf(e,p),Promise.resolve()}e._readable=_6(a,d,f,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Gf(e,!0),e._transformStreamController=void 0}function k_(e){return!(!DT(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Hf(e,t){C6(e._readable._readableStreamController,t),qf(e,t)}function qf(e,t){qT(e._transformStreamController),T6(e._writable._writableStreamController,t),e._backpressure===!0&&Gf(e,!1)}function Gf(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var UT=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Ku(this)===!1)throw Yu("enqueue");GT(this,n)},t.error=function(n){if(Ku(this)===!1)throw Yu("error");I6(this,n)},t.terminate=function(){if(Ku(this)===!1)throw Yu("terminate");j6(this)},Kn(e,[{key:"desiredSize",get:function(){if(Ku(this)===!1)throw Yu("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return R6(n)}}]),e}();function Ku(e){return!(!DT(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function HT(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function O6(e,t){var r=Object.create(UT.prototype),n=function(s){try{return GT(r,s),Promise.resolve()}catch(u){return Promise.reject(u)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return w6(o,t,[s,r])}}var i=b6(t,"flush",0,[r]);HT(e,r,n,i)}function qT(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function GT(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(o0(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{x6(n,t)}catch(i){throw qf(r,i),r._readable._storedError}var o=k6(n);o!==r._backpressure&&Gf(r,!0)}function I6(e,t){Hf(e._controlledTransformStream,t)}function P_(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Hf(e._controlledTransformStream,n),n})}function j6(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;o0(r)===!0&&FT(r);var n=new TypeError("TransformStream terminated");qf(t,n)}function z6(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 P_(r,t)})}return P_(r,t)}function N6(e,t){return Hf(e,t),Promise.resolve()}function A6(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return qT(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;o0(o)===!0&&FT(o)}).catch(function(o){throw Hf(e,o),t._storedError})}function M6(e){return Gf(e,!1),e._backpressureChangePromise}var L6={CreateTransformStream:E6,TransformStream:BT};function Yu(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function T_(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var $6=L6.TransformStream;const D6=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:v6,CountQueuingStrategy:y6,ReadableStream:p6,TransformStream:$6,WritableStream:IW},Symbol.toStringTag,{value:"Module"})),F6=Xa(D6);function B6(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 W6=class VT{constructor(t={}){this.h={},t instanceof VT&&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])}),U6(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function U6(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Zp(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function E_({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,u=!1;const c=new ReadableStream({start(p){s=p},cancel(){u=!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,y)=>{if(o.body&&(d==="GET"||d==="HEAD")&&y(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),f)if(f.aborted){y(Zp());return}else f.addEventListener("abort",()=>{i.abort(),s&&s.error(Zp()),y(Zp())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:G6(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:q6(i.responseURL,n)})},i.onerror=function(){return y(new TypeError("Network request failed"))},i.ontimeout=function(){y(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const S=a(i.response);s.enqueue(S)}},i.onload=function(){s.close()},i.send(o.body)})}}function H6(){return typeof Headers<"u"?new Headers:new W6}function q6(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function G6(e){const t=H6();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 em=null;function V6(){return em||(em=K6()),em}function K6(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return B6;const e="moz-chunked-arraybuffer";return Y6(e)?E_({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):E_({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 Y6(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function i0(e,t={}){let r=t.transport;return r||(r=i0.transportFactory()),r(e,t)}i0.transportFactory=V6;const Q6=Object.freeze(Object.defineProperty({__proto__:null,default:i0},Symbol.toStringTag,{value:"Module"})),X6=Xa(Q6);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?di: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]||"",u=i[3];if(!u)return s;if(a&&typeof btoa=="function"){var c=o(u),d=u.sources.map(function(f){return"/*# sourceURL="+u.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 u=n(s,i);return s[2]?"@media "+s[2]+"{"+u+"}":u}).join("")},a.i=function(s,u){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)},_=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,T=0,E=[],x=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(B){for(var $=[],D=0;DE?-1:E?E-1-B:-1},S=function(_){return _?Array.isArray(_)?_.length===1?Object(i.Range)(_[0],_[0]+1):Object(i.Range)(_[0],_[1]+1):Object(i.Range)(_,_+1):Object(i.Range)(0,0)},g=function(_,k){var T=new Uint8Array(_.length+k.length);return T.set(_,0),T.set(k,_.length),T},C=function(_,k){var T=k?g(k,_):_,E=T.length,x=0,O=0,I=Object(i.List)().withMutations(function(j){for(;OC.b?he(Z):Y()}}),I),c(j,M)}return d(x,E),k(x,[{key:"render",value:function(){var O=this.props,I=O.resultsCount,j=O.filterActive,M=O.disabled,B="match"+(I===1?"":"es"),$=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+" "+$,onClick:this.handleFilterToggle},Object(f.createElement)(g,null)),Object(f.createElement)("span",{className:"react-lazylog-searchbar-matches "+(I?"active":"inactive")+" "+(I?v.active:v.inactive)},I," ",B))}}]),x}(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}}),_)},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(G){if(Array.isArray(G)){for(var V=0,q=Array(G.length);VDe&&(vr=Gt-De,ir=ir.slice(-De),Gt=ir.count());var _e=Object(E.g)({follow:ye,scrollToLine:ge,previousCount:Tt,count:Gt,offset:vr});U.setState({lines:ir,offset:vr,count:Gt,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,oe=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(E.e)(be),ze={highlight:Re};oe&&Object.assign(ze,{scrollToIndex:Object(E.g)({scrollToLine:fe})}),U.setState(ze,function(){ee&&ee(Re),oe&&U.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(U,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var ee=U.state,oe=ee.resultLines,fe=ee.searchKeywords,ge=U.props,ye=ge.caseInsensitive,be=ge.stream,Re=ge.websocket,ze=be||Re||K!==fe?te(K,U.encodedLog,ye):oe;U.setState({resultLines:ze,isSearching:!0,searchKeywords:K},U.filterLinesWithMatches)}}),Object.defineProperty(U,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=U.state.searchKeywords;K&&K.length>E.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,oe=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]},$r=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]},YT=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",Il=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},i8=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return Il(o)},Kf=(e,t)=>e===0||t===0?"0%":YT(e/t*100),O_=e=>zt(e)+"/s",a8=({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(Vf,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:zt(a.size)}),m.jsx("td",{children:m.jsx(KT,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},s8=()=>{const e=Hl(),t=Ee(kt),r=Ee(nA),[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!==""&&CP()},[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)})},u=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(a8,{logs:r,onLogSelected:c=>{e(FN(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:u("Head"),onClick:()=>a("Head"),children:"Head"}),m.jsx("button",{className:u("Tail"),onClick:()=>a("Tail"),children:"Tail"}),m.jsx("button",{className:u("All"),onClick:()=>a("All"),children:"All"})]}),m.jsx(J6.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},l8=()=>{const e=Ee(Sk),[t,r]=N.useState(!0);function n(){r(!t)}const o=()=>m.jsx(m.Fragment,{children:e.map(s=>m.jsxs("div",{className:"py2 pr-8",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Data base - "+s.path}),m.jsxs("table",{className:"table-auto 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",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Count"})]})}),m.jsx("tbody",{children:s.tables.map(u=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:u.name}),m.jsx("td",{className:"px-4 py-2",children:u.size}),m.jsx("td",{className:"px-4 py-2",children:u.count})]}))})]})]}))}),i=()=>m.jsx("div",{className:"flex w-full flex-row",children:o()}),a=()=>m.jsx("div",{className:"flex w-full flex-col h-[80vh] pt-4 pb-4",children:o()});return m.jsxs("div",{className:"flex flex-col w-full py-4",children:[m.jsx(Un,{backgroundColor:is,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},u8=({onClose:e,onCreate:t,...r})=>{const[n,o]=se.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(Un,{backgroundColor:Xl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(Un,{backgroundColor:is,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},QT=({onSessionSelected:e,...t})=>{const r=Hl(),n=Ee(XN),[o,i]=N.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(zN(c)),e()},u=()=>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",{})]})}),m.jsx("tbody",{children:n.map((c,d)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>s(c.pin),children:[m.jsx("td",{className:"pl-2",children:c.active&&m.jsx(Vf,{})}),m.jsx("td",{className:"px-4 py-2",children:c.name}),m.jsx("td",{className:"px-4 py-2",children:c.pin}),m.jsx("td",{children:m.jsx(hy,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},d))})]}),o&&m.jsx(xP,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},c8=({title:e="",body:t="",positiveButton:r="",negativeButton:n="",onClose:o=()=>{},onNegativeClick:i=()=>{},onPositiveClick:a=()=>{}})=>{const s=()=>r!==""&&n!==""?m.jsxs(m.Fragment,{children:[u(!0,r),m.jsx("div",{className:"w-2"}),u(!1,n)]}):r!==""?m.jsx(m.Fragment,{children:u(!0,r)}):n!==""?m.jsx(m.Fragment,{children:u(!1,n)}):null,u=(c,d)=>m.jsx(Un,{backgroundColor:c?Xl:is,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(If,{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"})]})},d8=()=>{const e=Hl(),[t,r]=N.useState(!1),[n,o]=N.useState(!1);function i(a,s){return Math.floor(Math.random()*(s-a)+a)}return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),m.jsx(QT,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(Un,{backgroundColor:Xl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(u8,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(IN({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(Un,{backgroundColor:is,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(c8,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(HN()),e(c3()),e(l3()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var l0={},f8=nt;Object.defineProperty(l0,"__esModule",{value:!0});var XT=l0.default=void 0,h8=f8(ot()),p8=m;XT=l0.default=(0,h8.default)((0,p8.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 u0={},m8=nt;Object.defineProperty(u0,"__esModule",{value:!0});var JT=u0.default=void 0,v8=m8(ot()),g8=m;JT=u0.default=(0,v8.default)((0,g8.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 y8=({onSessionClicked:e,onNodeClicked:t})=>{const r=Ee(yk),n=Ee(ZN);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(XT,{}),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(JT,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},S8=({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(QT,{onSessionSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]}),b8=({onNodeSelected:e,...t})=>{const r=Hl(),n=Ee(eA),o=a=>{r(NN(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(Vf,{})}),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()})},w8=({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(b8,{onNodeSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,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 zr=function(){return zr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Bt(us,--Pr):0,Ga--,xt===10&&(Ga=1,Qf--),xt}function Dr(){return xt=Pr2||zl(xt)>3?"":" "}function M8(e,t){for(;--t&&Dr()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return ou(e,Sc()+(t<6&&Bn()==32&&Dr()==32))}function _v(e){for(;Dr();)switch(xt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&_v(xt);break;case 40:e===41&&_v(e);break;case 92:Dr();break}return Pr}function L8(e,t){for(;Dr()&&e+xt!==47+10;)if(e+xt===42+42&&Bn()===47)break;return"/*"+ou(t,Pr-1)+"*"+Yf(e===47?e:Dr())}function $8(e){for(;!zl(Bn());)Dr();return ou(e,Pr)}function I_(e){return oE(wc("",null,null,null,[""],e=nE(e),0,[0],e))}function wc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,_="",k=o,T=i,E=n,x=_;C;)switch(S=b,b=Dr()){case 40:if(S!=108&&Bt(x,f-1)==58){wv(x+=Fe(bc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=bc(b);break;case 9:case 10:case 13:case 32:x+=A8(S);break;case 92:x+=M8(Sc()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Qu(D8(L8(Dr(),Sc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=Nn(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:y>0&&Nn(x)-f&&Qu(y>32?z_(x+";",n,r,f-1):z_(Fe(x," ","")+";",n,r,f-2),u);break;case 59:x+=";";default:if(Qu(E=j_(x,t,r,c,d,o,s,_,k=[],T=[],f),i),b===123)if(d===0)wc(x,t,E,E,k,i,f,s,T);else switch(p===99&&Bt(x,3)===110?100:p){case 100:case 109:case 115:wc(e,E,E,n&&Qu(j_(e,E,E,0,0,o,s,_,o,k=[],f),T),o,T,f,s,n?k:T);break;default:wc(x,E,E,E,[""],T,0,s,T)}}c=d=y=0,g=v=1,_=x="",f=a;break;case 58:f=1+Nn(x),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&N8()==125)continue}switch(x+=Yf(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Nn(x)-1)*v,v=1;break;case 64:Bn()===45&&(x+=bc(Dr())),p=Bn(),d=f=Nn(_=x+=$8(Sc())),b++;break;case 45:S===45&&Nn(x)==2&&(g=0)}}return i}function j_(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=h0(p),S=0,g=0,C=0;S0?p[v]+" "+b:Fe(b,/&\f/g,p[v])))&&(u[C++]=_);return Xf(e,t,r,o===0?d0:s,u,c,d)}function D8(e,t,r){return Xf(e,t,r,ZT,Yf(z8()),jl(e,2,-2),0)}function z_(e,t,r,n){return Xf(e,t,r,f0,jl(e,0,n),jl(e,n+1,-1),n)}function wi(e,t){for(var r="",n=h0(e),o=0;o6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+xd+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wv(e,"stretch")?iE(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,Nn(e)-3-(~wv(e,"!important")&&10))){case 107:return Fe(e,":",":"+Ae)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Zt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Zt+e+e}return e}var V8=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case f0:t.return=iE(t.value,t.length);break;case eE:return wi([Os(t,{value:Fe(t.value,"@","@"+Ae)})],o);case d0:if(t.length)return j8(t.props,function(i){switch(I8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Os(t,{props:[Fe(i,/:(read-\w+)/,":"+xd+"$1")]})],o);case"::placeholder":return wi([Os(t,{props:[Fe(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Os(t,{props:[Fe(i,/:(plac\w+)/,":"+xd+"$1")]}),Os(t,{props:[Fe(i,/:(plac\w+)/,Zt+"input-$1")]})],o)}return""})}},_c=typeof document<"u",K8=_c?void 0:B8(function(){return c0(function(){var e={};return function(t){return e[t]}})}),Y8=[V8],aE=function(t){var r=t.key;if(_c&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var T=k.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var o=t.stylisPlugins||Y8,i={},a,s=[];_c&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(k){for(var T=k.getAttribute("data-emotion").split(" "),E=1;E=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 o9={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},i9=/[A-Z]|^ms/g,a9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uE=function(t){return t.charCodeAt(1)===45},$_=function(t){return t!=null&&typeof t!="boolean"},tm=c0(function(e){return uE(e)?e:e.replace(i9,"-$&").toLowerCase()}),D_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(a9,function(n,o,i){return An={name:o,styles:i,next:An},o})}return o9[t]!==1&&!uE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Nl(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 An={name:r.name,styles:r.styles,next:An},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)An={name:n.name,styles:n.styles,next:An},n=n.next;var o=r.styles+";";return o}return s9(e,t,r)}case"function":{if(e!==void 0){var i=An,a=r(e);return An=i,Nl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function s9(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?u9:c9},W_=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},d9=typeof document<"u",f9=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;lE(r,n,o);var i=J8(function(){return r9(r,n,o)});if(!d9&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},h9=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=W_(t,r,n),u=s||B_(o),c=!u("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,y=1;y"u")return!1;var t=un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function q9(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];!en(i)||!Hn(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 G9(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(u,c){return u[c]="",u},{});!en(o)||!Hn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var V9={name:"applyStyles",enabled:!0,phase:"write",fn:q9,effect:G9,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var _i=Math.max,kd=Math.min,Ka=Math.round;function Cv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SE(){return!/^((?!chrome|android).)*safari/i.test(Cv())}function Ya(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&en(e)&&(o=e.offsetWidth>0&&Ka(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ka(n.height)/e.offsetHeight||1);var a=zi(e)?un(e):window,s=a.visualViewport,u=!SE()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,d=(n.top+(u&&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 g0(e){var t=Ya(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 bE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mo(e){return un(e).getComputedStyle(e)}function K9(e){return["table","td","th"].indexOf(Hn(e))>=0}function ei(e){return((zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zf(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(v0(e)?e.host:null)||ei(e)}function ox(e){return!en(e)||mo(e).position==="fixed"?null:e.offsetParent}function Y9(e){var t=/firefox/i.test(Cv()),r=/Trident/i.test(Cv());if(r&&en(e)){var n=mo(e);if(n.position==="fixed")return null}var o=Zf(e);for(v0(o)&&(o=o.host);en(o)&&["html","body"].indexOf(Hn(o))<0;){var i=mo(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 au(e){for(var t=un(e),r=ox(e);r&&K9(r)&&mo(r).position==="static";)r=ox(r);return r&&(Hn(r)==="html"||Hn(r)==="body"&&mo(r).position==="static")?t:r||Y9(e)||t}function y0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nl(e,t,r){return _i(e,kd(t,r))}function Q9(e,t,r){var n=nl(e,t,r);return n>r?r:n}function wE(){return{top:0,right:0,bottom:0,left:0}}function _E(e){return Object.assign({},wE(),e)}function xE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var X9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,_E(typeof t!="number"?t:xE(t,iu))};function J9(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Wn(r.placement),u=y0(s),c=[Rr,on].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=X9(o.padding,r),p=g0(i),y=u==="y"?Cr:Rr,S=u==="y"?nn:on,g=r.rects.reference[d]+r.rects.reference[u]-a[u]-r.rects.popper[d],C=a[u]-r.rects.reference[u],v=au(i),b=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,_=g/2-C/2,k=f[y],T=b-p[d]-f[S],E=b/2-p[d]/2+_,x=nl(k,E,T),O=u;r.modifiersData[n]=(t={},t[O]=x,t.centerOffset=x-E,t)}}function Z9(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)||bE(t.elements.popper,o)&&(t.elements.arrow=o))}var eU={name:"arrow",enabled:!0,phase:"main",fn:J9,effect:Z9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qa(e){return e.split("-")[1]}var tU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rU(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ka(t*o)/o||0,y:Ka(r*o)/o||0}}function ix(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,S=a.y,g=S===void 0?0:S,C=typeof d=="function"?d({x:y,y:g}):{x:y,y:g};y=C.x,g=C.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),_=Rr,k=Cr,T=window;if(c){var E=au(r),x="clientHeight",O="clientWidth";if(E===un(r)&&(E=ei(r),mo(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",O="scrollWidth")),E=E,o===Cr||(o===Rr||o===on)&&i===Al){k=nn;var I=f&&E===T&&T.visualViewport?T.visualViewport.height:E[x];g-=I-n.height,g*=u?1:-1}if(o===Rr||(o===Cr||o===nn)&&i===Al){_=on;var j=f&&E===T&&T.visualViewport?T.visualViewport.width:E[O];y-=j-n.width,y*=u?1:-1}}var M=Object.assign({position:s},c&&tU),B=d===!0?rU({x:y,y:g}):{x:y,y:g};if(y=B.x,g=B.y,u){var $;return Object.assign({},M,($={},$[k]=b?"0":"",$[_]=v?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",$))}return Object.assign({},M,(t={},t[k]=b?g+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function nU(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,u=s===void 0?!0:s,c={placement:Wn(t.placement),variation:Qa(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,ix(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ix(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var oU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nU,data:{}},Xu={passive:!0};function iU(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,u=un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Xu)}),s&&u.addEventListener("resize",r.update,Xu),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Xu)}),s&&u.removeEventListener("resize",r.update,Xu)}}var aU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iU,data:{}},sU={left:"right",right:"left",bottom:"top",top:"bottom"};function xc(e){return e.replace(/left|right|bottom|top/g,function(t){return sU[t]})}var lU={start:"end",end:"start"};function ax(e){return e.replace(/start|end/g,function(t){return lU[t]})}function S0(e){var t=un(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function b0(e){return Ya(ei(e)).left+S0(e).scrollLeft}function uU(e,t){var r=un(e),n=ei(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=SE();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+b0(e),y:u}}function cU(e){var t,r=ei(e),n=S0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+b0(e),u=-n.scrollTop;return mo(o||r).direction==="rtl"&&(s+=_i(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function w0(e){var t=mo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function CE(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:en(e)&&w0(e)?e:CE(Zf(e))}function ol(e,t){var r;t===void 0&&(t=[]);var n=CE(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=un(n),a=o?[i].concat(i.visualViewport||[],w0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ol(Zf(a)))}function Rv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dU(e,t){var r=Ya(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 sx(e,t,r){return t===gE?Rv(uU(e,r)):zi(t)?dU(t,r):Rv(cU(ei(e)))}function fU(e){var t=ol(Zf(e)),r=["absolute","fixed"].indexOf(mo(e).position)>=0,n=r&&en(e)?au(e):e;return zi(n)?t.filter(function(o){return zi(o)&&bE(o,n)&&Hn(o)!=="body"}):[]}function hU(e,t,r,n){var o=t==="clippingParents"?fU(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var d=sx(e,c,n);return u.top=_i(d.top,u.top),u.right=kd(d.right,u.right),u.bottom=kd(d.bottom,u.bottom),u.left=_i(d.left,u.left),u},sx(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 RE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wn(n):null,i=n?Qa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Cr:u={x:a,y:t.y-r.height};break;case nn:u={x:a,y:t.y+t.height};break;case on:u={x:t.x+t.width,y:s};break;case Rr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?y0(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Va:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Al:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function Ml(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,u=s===void 0?z9:s,c=r.rootBoundary,d=c===void 0?gE:c,f=r.elementContext,p=f===void 0?Is:f,y=r.altBoundary,S=y===void 0?!1:y,g=r.padding,C=g===void 0?0:g,v=_E(typeof C!="number"?C:xE(C,iu)),b=p===Is?N9:Is,_=e.rects.popper,k=e.elements[S?b:p],T=hU(zi(k)?k:k.contextElement||ei(e.elements.popper),u,d,a),E=Ya(e.elements.reference),x=RE({reference:E,element:_,strategy:"absolute",placement:o}),O=Rv(Object.assign({},_,x)),I=p===Is?O:E,j={top:T.top-I.top+v.top,bottom:I.bottom-T.bottom+v.bottom,left:T.left-I.left+v.left,right:I.right-T.right+v.right},M=e.modifiersData.offset;if(p===Is&&M){var B=M[o];Object.keys(j).forEach(function($){var D=[on,nn].indexOf($)>=0?1:-1,Z=[Cr,nn].indexOf($)>=0?"y":"x";j[$]+=B[Z]*D})}return j}function pU(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?yE:u,d=Qa(n),f=d?s?nx:nx.filter(function(S){return Qa(S)===d}):iu,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var y=p.reduce(function(S,g){return S[g]=Ml(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Wn(g)],S},{});return Object.keys(y).sort(function(S,g){return y[S]-y[g]})}function mU(e){if(Wn(e)===m0)return[];var t=xc(e);return[ax(e),t,ax(t)]}function vU(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,u=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,g=r.allowedAutoPlacements,C=t.options.placement,v=Wn(C),b=v===C,_=u||(b||!S?[xc(C)]:mU(C)),k=[C].concat(_).reduce(function($e,Se){return $e.concat(Wn(Se)===m0?pU(t,{placement:Se,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:g}):Se)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,O=!0,I=k[0],j=0;j=0,Z=D?"width":"height",ae=Ml(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),he=D?$?on:Rr:$?nn:Cr;T[Z]>E[Z]&&(he=xc(he));var Y=xc(he),te=[];if(i&&te.push(ae[B]<=0),s&&te.push(ae[he]<=0,ae[Y]<=0),te.every(function($e){return $e})){I=M,O=!1;break}x.set(M,te)}if(O)for(var ce=S?3:1,we=function(Se){var G=k.find(function(V){var q=x.get(V);if(q)return q.slice(0,Se).every(function(J){return J})});if(G)return I=G,"break"},ke=ce;ke>0;ke--){var yt=we(ke);if(yt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var gU={name:"flip",enabled:!0,phase:"main",fn:vU,requiresIfExists:["offset"],data:{_skip:!1}};function lx(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 ux(e){return[Cr,on,nn,Rr].some(function(t){return e[t]>=0})}function yU(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ml(t,{elementContext:"reference"}),s=Ml(t,{altBoundary:!0}),u=lx(a,n),c=lx(s,o,i),d=ux(u),f=ux(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var SU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yU};function bU(e,t,r){var n=Wn(e),o=[Rr,Cr].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,[Rr,on].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function wU(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=yE.reduce(function(d,f){return d[f]=bU(f,t.rects,i),d},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var _U={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wU};function xU(e){var t=e.state,r=e.name;t.modifiersData[r]=RE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var CU={name:"popperOffsets",enabled:!0,phase:"read",fn:xU,data:{}};function RU(e){return e==="x"?"y":"x"}function kU(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,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,y=p===void 0?!0:p,S=r.tetherOffset,g=S===void 0?0:S,C=Ml(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),v=Wn(t.placement),b=Qa(t.placement),_=!b,k=y0(v),T=RU(k),E=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,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,B={x:0,y:0};if(E){if(i){var $,D=k==="y"?Cr:Rr,Z=k==="y"?nn:on,ae=k==="y"?"height":"width",he=E[k],Y=he+C[D],te=he-C[Z],ce=y?-O[ae]/2:0,we=b===Va?x[ae]:O[ae],ke=b===Va?-O[ae]:-x[ae],yt=t.elements.arrow,$e=y&&yt?g0(yt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wE(),G=Se[D],V=Se[Z],q=nl(0,x[ae],$e[ae]),J=_?x[ae]/2-ce-q-G-j.mainAxis:we-q-G-j.mainAxis,U=_?-x[ae]/2+ce+q+V+j.mainAxis:ke+q+V+j.mainAxis,pe=t.elements.arrow&&au(t.elements.arrow),ue=pe?k==="y"?pe.clientTop||0:pe.clientLeft||0:0,ie=($=M==null?void 0:M[k])!=null?$:0,le=he+J-ie-ue,K=he+U-ie,ee=nl(y?kd(Y,le):Y,he,y?_i(te,K):te);E[k]=ee,B[k]=ee-he}if(s){var oe,fe=k==="x"?Cr:Rr,ge=k==="x"?nn:on,ye=E[T],be=T==="y"?"height":"width",Re=ye+C[fe],ze=ye-C[ge],De=[Cr,Rr].indexOf(v)!==-1,Tt=(oe=M==null?void 0:M[T])!=null?oe:0,vr=De?Re:ye-x[be]-O[be]-Tt+j.altAxis,ir=De?ye+x[be]+O[be]-Tt-j.altAxis:ze,Gt=y&&De?Q9(vr,ye,ir):nl(y?vr:Re,ye,y?ir:ze);E[T]=Gt,B[T]=Gt-ye}t.modifiersData[n]=B}}var PU={name:"preventOverflow",enabled:!0,phase:"main",fn:kU,requiresIfExists:["offset"]};function TU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EU(e){return e===un(e)||!en(e)?S0(e):TU(e)}function OU(e){var t=e.getBoundingClientRect(),r=Ka(t.width)/e.offsetWidth||1,n=Ka(t.height)/e.offsetHeight||1;return r!==1||n!==1}function IU(e,t,r){r===void 0&&(r=!1);var n=en(t),o=en(t)&&OU(t),i=ei(t),a=Ya(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Hn(t)!=="body"||w0(i))&&(s=EU(t)),en(t)?(u=Ya(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=b0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function jU(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 u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function zU(e){var t=jU(e);return H9.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function NU(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function AU(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 cx={placement:"bottom",modifiers:[],strategy:"absolute"};function dx(){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},Le.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return kE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),WU=function(e,t){var r,n=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,u=e.prefix,c=e.suffix,d=e.open,f=e.defaultOpen,p=e.active,y=p===void 0?!1:p,S=e.disabled,g=S===void 0?!1:S,C=e.rootStyles,v=e.component,b=e.onOpenChange,_=e.onClick,k=e.onKeyUp,T=ji(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),E=se.useContext(Rd),x=se.useContext(Jf),O=x.collapsed,I=x.rtl,j=x.transitionDuration,M=p0(),B=M.renderExpandIcon,$=M.closeOnClick,D=M.menuItemStyles,Z=M.transitionDuration,ae=se.useState(!!f),he=ae[0],Y=ae[1],te=se.useState(!1),ce=te[0],we=te[1],ke=se.useState(!1),yt=ke[0],$e=ke[1],Se=se.useRef(null),G=se.useRef(null),V=se.useRef(),q=DU({level:E,buttonRef:Se,contentRef:G}).popperInstance,J=se.useCallback(function(){var ee,oe=G.current;if(oe){var fe=(ee=oe==null?void 0:oe.querySelector(".".concat(Le.subMenuContent," > ul")))===null||ee===void 0?void 0:ee.clientHeight;oe.style.overflow="hidden",oe.style.height="".concat(fe,"px"),V.current=setTimeout(function(){oe.style.overflow="auto",oe.style.height="auto"},Z)}},[Z]),U=function(){var ee,oe=G.current;if(oe){var fe=(ee=oe==null?void 0:oe.querySelector(".".concat(Le.subMenuContent," > ul")))===null||ee===void 0?void 0:ee.clientHeight;oe.style.overflow="hidden",oe.style.height="".concat(fe,"px"),oe.offsetHeight,oe.style.height="0px"}},pe=function(){E===0&&O||(typeof d>"u"?(clearTimeout(Number(V.current)),he?U():J(),b==null||b(!he),Y(!he)):b==null||b(!d))};se.useEffect(function(){!(E===0&&O)&&typeof d<"u"&&yt&&(clearTimeout(Number(V.current)),d?J():U())},[O,J,i,E,b,d]);var ue=function(ee){_==null||_(ee),pe()},ie=function(ee){k==null||k(ee),ee.key==="Enter"&&pe()},le=function(ee){if(D){var oe={level:E,disabled:g,active:y,isSubmenu:!0,open:d??he},fe=D.root,ge=D.button,ye=D.label,be=D.icon,Re=D.prefix,ze=D.suffix,De=D.subMenuContent,Tt=D.SubMenuExpandIcon;switch(ee){case"root":return typeof fe=="function"?fe(oe):fe;case"button":return typeof ge=="function"?ge(oe):ge;case"label":return typeof ye=="function"?ye(oe):ye;case"icon":return typeof be=="function"?be(oe):be;case"prefix":return typeof Re=="function"?Re(oe):Re;case"suffix":return typeof ze=="function"?ze(oe):ze;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(oe):Tt;case"subMenuContent":return typeof De=="function"?De(oe):De;default:return}}};se.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),O&&E===0&&we(!1)},[O,E,I,j,q]),se.useEffect(function(){var ee=function(ye){var be,Re,ze;!ce&&(!((be=Se.current)===null||be===void 0)&&be.contains(ye))?we(!0):($&&!(!((Re=ye.closest(".".concat(Le.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Le.subMenuRoot))||!(!((ze=G.current)===null||ze===void 0)&&ze.contains(ye))&&ce)&&we(!1)},oe=function(ye){ee(ye.target)},fe=function(ye){ye.key==="Enter"?ee(ye.target):ye.key==="Escape"&&we(!1)},ge=function(){document.removeEventListener("click",oe),document.removeEventListener("keyup",fe)};return ge(),O&&E===0&&(document.addEventListener("click",oe,!1),document.addEventListener("keyup",fe,!1)),function(){ge()}},[O,E,$,ce]),se.useEffect(function(){$e(!0)},[]);var K=(r={},r[Le.active]=y,r[Le.disabled]=g,r[Le.open]=d??he,r);return se.createElement(BU,{ref:t,className:Ot(Le.menuItemRoot,Le.subMenuRoot,K,o),menuItemStyles:le("root"),level:E,collapsed:O,rtl:I,disabled:g,active:y,buttonStyles:le("button"),rootStyles:C},se.createElement(PE,zr({"data-testid":"".concat(Le.button,"-test-id"),ref:Se,title:s,className:Ot(Le.button,K),onClick:ue,onKeyUp:ie,component:v,tabIndex:0},T),a&&se.createElement(pE,{rtl:I,className:Ot(Le.icon,K),rootStyles:le("icon")},a),u&&se.createElement(mE,{collapsed:O,transitionDuration:j,firstLevel:E===0,className:Ot(Le.prefix,K),rtl:I,rootStyles:le("prefix")},u),se.createElement(hE,{className:Ot(Le.label,K),rootStyles:le("label")},i),c&&se.createElement(vE,{collapsed:O,transitionDuration:j,firstLevel:E===0,className:Ot(Le.suffix,K),rootStyles:le("suffix")},c),se.createElement(O9,{rtl:I,className:Ot(Le.SubMenuExpandIcon,K),collapsed:O,level:E,rootStyles:le("SubMenuExpandIcon")},B?B({level:E,disabled:g,active:y,open:d??he}):O&&E===0?se.createElement(j9,null):se.createElement(I9,{rtl:I,open:d??he}))),se.createElement(E9,{ref:G,openWhenCollapsed:ce,open:d??he,firstLevel:E===0,collapsed:O,defaultOpen:d&&!yt||f,className:Ot(Le.subMenuContent,K),rootStyles:le("subMenuContent")},se.createElement(Rd.Provider,{value:E+1},n)))},UU=se.forwardRef(WU),fx,HU=At.li(hx||(hx=or([` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`],[` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Le.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return kE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),qU=function(e,t){var r,n=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,u=e.active,c=u===void 0?!1:u,d=e.disabled,f=d===void 0?!1:d,p=e.component,y=e.rootStyles,S=ji(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),g=se.useContext(Rd),C=se.useContext(Jf),v=C.collapsed,b=C.rtl,_=C.transitionDuration,k=p0().menuItemStyles,T=function(x){if(k){var O={level:g,disabled:f,active:c,isSubmenu:!1},I=k.root,j=k.button,M=k.label,B=k.icon,$=k.prefix,D=k.suffix;switch(x){case"root":return typeof I=="function"?I(O):I;case"button":return typeof j=="function"?j(O):j;case"label":return typeof M=="function"?M(O):M;case"icon":return typeof B=="function"?B(O):B;case"prefix":return typeof $=="function"?$(O):$;case"suffix":return typeof D=="function"?D(O):D;default:return}}},E=(r={},r[Le.active]=c,r[Le.disabled]=f,r);return se.createElement(HU,{ref:t,className:Ot(Le.menuItemRoot,E,i),menuItemStyles:T("root"),level:g,collapsed:v,rtl:b,disabled:f,active:c,buttonStyles:T("button"),rootStyles:y},se.createElement(PE,zr({className:Ot(Le.button,E),"data-testid":"".concat(Le.button,"-test-id"),component:p,tabIndex:0},S),o&&se.createElement(pE,{rtl:b,className:Ot(Le.icon,E),rootStyles:T("icon")},o),a&&se.createElement(mE,{collapsed:v,transitionDuration:_,firstLevel:g===0,className:Ot(Le.prefix,E),rtl:b,rootStyles:T("prefix")},a),se.createElement(hE,{className:Ot(Le.label,E),rootStyles:T("label")},n),s&&se.createElement(vE,{collapsed:v,transitionDuration:_,firstLevel:g===0,className:Ot(Le.suffix,E),rootStyles:T("suffix")},s)))},gr=se.forwardRef(qU),hx,_0={},GU=nt;Object.defineProperty(_0,"__esModule",{value:!0});var TE=_0.default=void 0,VU=GU(ot()),KU=m;TE=_0.default=(0,VU.default)((0,KU.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuOutlined");var x0={},YU=nt;Object.defineProperty(x0,"__esModule",{value:!0});var EE=x0.default=void 0,QU=YU(ot()),XU=m;EE=x0.default=(0,QU.default)((0,XU.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 C0={},JU=nt;Object.defineProperty(C0,"__esModule",{value:!0});var OE=C0.default=void 0,ZU=JU(ot()),e7=m;OE=C0.default=(0,ZU.default)((0,e7.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 R0={},t7=nt;Object.defineProperty(R0,"__esModule",{value:!0});var IE=R0.default=void 0,r7=t7(ot()),n7=m;IE=R0.default=(0,r7.default)((0,n7.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 k0={},o7=nt;Object.defineProperty(k0,"__esModule",{value:!0});var jE=k0.default=void 0,i7=o7(ot()),a7=m;jE=k0.default=(0,i7.default)((0,a7.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var P0={},s7=nt;Object.defineProperty(P0,"__esModule",{value:!0});var zE=P0.default=void 0,l7=s7(ot()),u7=m;zE=P0.default=(0,l7.default)((0,u7.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 T0={},c7=nt;Object.defineProperty(T0,"__esModule",{value:!0});var NE=T0.default=void 0,d7=c7(ot()),f7=m;NE=T0.default=(0,d7.default)((0,f7.jsx)("path",{d:"M21 15v-2h-3.07c-.05-.39-.12-.77-.22-1.14l2.58-1.49-1-1.73L16.92 10c-.28-.48-.62-.91-.99-1.29.04-.23.07-.46.07-.71 0-.8-.24-1.55-.65-2.18L17 4.17l-1.41-1.41-1.72 1.72c-1.68-.89-3.1-.33-3.73 0L8.41 2.76 7 4.17l1.65 1.65C8.24 6.45 8 7.2 8 8c0 .25.03.48.07.72-.37.38-.71.81-.99 1.28L4.71 8.63l-1 1.73 2.58 1.49c-.1.37-.17.75-.22 1.14H3v2h3.07c.05.39.12.77.22 1.14l-2.58 1.49 1 1.73L7.08 18c1.08 1.81 2.88 3 4.92 3s3.84-1.19 4.92-3l2.37 1.37 1-1.73-2.58-1.49c.1-.37.17-.75.22-1.14H21zm-8 2h-2v-6h2z"}),"PestControl");var E0={},h7=nt;Object.defineProperty(E0,"__esModule",{value:!0});var AE=E0.default=void 0,p7=h7(ot()),rm=m;AE=E0.default=(0,p7.default)([(0,rm.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),(0,rm.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),(0,rm.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");var O0={},m7=nt;Object.defineProperty(O0,"__esModule",{value:!0});var ME=O0.default=void 0,v7=m7(ot()),g7=m;ME=O0.default=(0,v7.default)((0,g7.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed");var I0={},y7=nt;Object.defineProperty(I0,"__esModule",{value:!0});var LE=I0.default=void 0,S7=y7(ot()),b7=m;LE=I0.default=(0,S7.default)((0,b7.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 1V4.5l5.5 5.5z"}),"Summarize");var j0={},w7=nt;Object.defineProperty(j0,"__esModule",{value:!0});var $E=j0.default=void 0,_7=w7(ot()),px=m;$E=j0.default=(0,_7.default)([(0,px.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,px.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 z0={},x7=nt;Object.defineProperty(z0,"__esModule",{value:!0});var DE=z0.default=void 0,C7=x7(ot()),R7=m;DE=z0.default=(0,C7.default)((0,R7.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var N0={},k7=nt;Object.defineProperty(N0,"__esModule",{value:!0});var FE=N0.default=void 0,P7=k7(ot()),T7=m;FE=N0.default=(0,P7.default)((0,T7.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 A0={},E7=nt;Object.defineProperty(A0,"__esModule",{value:!0});var kv=A0.default=void 0,O7=E7(ot()),I7=m;kv=A0.default=(0,O7.default)((0,I7.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 j7=()=>{const[e,t]=N.useState(!1),r=Ee(N3);return m.jsx(x9,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(k9,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(gr,{icon:m.jsx(TE,{}),onClick:()=>{t(!e)}}),m.jsx(gr,{component:m.jsx(yr,{to:"/"}),icon:m.jsx(EE,{}),children:"Process"}),m.jsxs(UU,{label:"Network",icon:m.jsx(OE,{}),children:[m.jsx(gr,{component:m.jsx(yr,{to:"/sentry-network"}),icon:m.jsx(kv,{}),children:"eth/6x P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/sentinel-network"}),icon:m.jsx(kv,{}),children:"Beacon chain P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/downloader"}),icon:m.jsx(FE,{}),children:"Downloader"})]}),m.jsx(gr,{component:m.jsx(yr,{to:"/logs"}),icon:m.jsx(IE,{}),children:"Logs"}),m.jsx(gr,{component:m.jsx(yr,{to:"/chain"}),icon:m.jsx(jE,{}),children:"Chain"}),m.jsx(gr,{component:m.jsx(yr,{to:"/data"}),icon:m.jsx(zE,{}),children:"Data"}),m.jsx(gr,{component:m.jsx(yr,{to:"/debug"}),icon:m.jsx(NE,{}),children:"Debug"}),m.jsx(gr,{component:m.jsx(yr,{to:"/testing"}),icon:m.jsx(AE,{}),children:"Testing"}),m.jsx(gr,{component:m.jsx(yr,{to:"/performance"}),icon:m.jsx(ME,{}),children:"Performance"}),m.jsx(gr,{component:m.jsx(yr,{to:"/documentation"}),icon:m.jsx(LE,{}),children:"Documentation"}),m.jsx(gr,{component:m.jsx(yr,{to:"/issues"}),icon:m.jsx(DE,{}),suffix:m.jsx(m.Fragment,{children:r==="0"?null:m.jsx("div",{className:"w-5 flex items-center justify-center rounded-full aspect-square bg-red-500 text-white text-xs font-semibold",children:r})}),children:"Issues"}),m.jsx(gr,{component:m.jsx(yr,{to:"/admin"}),icon:m.jsx($E,{}),children:"Admin"})]})})};function z7(e){return xn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const N7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],A7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ke(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return qn(s,z7,a)},M7=Pt("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${Ke(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ne({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})),mx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},L7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$7=e=>L7[e]||e,D7=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTypography"}),o=$7(n.color),i=Kk(ne({},n,{color:o})),{align:a="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=mx}=i,S=lt(i,N7),g=ne({},i,{align:a,color:o,className:s,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:y}),C=u||(f?"p":y[p]||mx[p])||"span",v=A7(g);return m.jsx(M7,ne({as:C,ref:r,ownerState:g,className:wt(v.root,s)},S))}),vx=D7;function F7({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 B7=N.createContext(void 0),W7=B7;function BE(){return N.useContext(W7)}function U7(e){return xn("PrivateSwitchBase",e)}Gn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const H7=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],q7=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${Ke(o)}`],input:["input"]};return qn(i,U7,t)},G7=Pt(wP)(({ownerState:e})=>ne({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),V7=Pt("input",{shouldForwardProp:Zk})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),K7=N.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:u,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:y,inputRef:S,name:g,onBlur:C,onChange:v,onFocus:b,readOnly:_,required:k=!1,tabIndex:T,type:E,value:x}=t,O=lt(t,H7),[I,j]=kk({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=BE(),B=te=>{b&&b(te),M&&M.onFocus&&M.onFocus(te)},$=te=>{C&&C(te),M&&M.onBlur&&M.onBlur(te)},D=te=>{if(te.nativeEvent.defaultPrevented)return;const ce=te.target.checked;j(ce),v&&v(te,ce)};let Z=u;M&&typeof Z>"u"&&(Z=M.disabled);const ae=E==="checkbox"||E==="radio",he=ne({},t,{checked:I,disabled:Z,disableFocusRipple:c,edge:d}),Y=q7(he);return m.jsxs(G7,ne({component:"span",className:wt(Y.root,a),centerRipple:!0,focusRipple:!c,disabled:Z,tabIndex:null,role:void 0,onFocus:B,onBlur:$,ownerState:he,ref:r},O,{children:[m.jsx(V7,ne({autoFocus:n,checked:o,defaultChecked:s,className:Y.input,disabled:Z,id:ae?p:void 0,name:g,onChange:D,readOnly:_,ref:S,required:k,ownerState:he,tabIndex:T,type:E},E==="checkbox"&&x===void 0?{}:{value:x},y)),I?i:f]}))}),Y7=K7,Q7=rL({createStyledComponent:Pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Vn({props:e,name:"MuiStack"})}),X7=Q7;function J7(e){return xn("MuiFormControlLabel",e)}const Z7=Gn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hs=Z7,eH=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],tH=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${Ke(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return qn(a,J7,t)},rH=Pt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hs.label}`]:t.label},t.root,t[`labelPlacement${Ke(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ne({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hs.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},{[`& .${Hs.label}`]:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),nH=Pt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),oH=N.forwardRef(function(t,r){var n,o;const i=Vn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:u,disabled:c,disableTypography:d,label:f,labelPlacement:p="end",required:y,slotProps:S={}}=i,g=lt(i,eH),C=BE(),v=(n=c??u.props.disabled)!=null?n:C==null?void 0:C.disabled,b=y??u.props.required,_={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof u.props[I]>"u"&&typeof i[I]<"u"&&(_[I]=i[I])});const k=F7({props:i,muiFormControl:C,states:["error"]}),T=ne({},i,{disabled:v,labelPlacement:p,required:b,error:k.error}),E=tH(T),x=(o=S.typography)!=null?o:s.typography;let O=f;return O!=null&&O.type!==vx&&!d&&(O=m.jsx(vx,ne({component:"span"},x,{className:wt(E.label,x==null?void 0:x.className),children:O}))),m.jsxs(rH,ne({className:wt(E.root,a),ownerState:T,ref:r},g,{children:[N.cloneElement(u,_),b?m.jsxs(X7,{display:"block",children:[O,m.jsxs(nH,{ownerState:T,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):O]}))}),gx=oH;function iH(e){return xn("MuiSwitch",e)}const aH=Gn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lr=aH,sH=["className","color","edge","size","sx"],lH=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${Ke(r)}`,`size${Ke(n)}`],switchBase:["switchBase",`color${Ke(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qn(s,iH,t);return ne({},t,u)},uH=Pt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({ownerState:e})=>ne({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}})),cH=Pt(Y7,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},r.color!=="default"&&t[`color${Ke(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}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>ne({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?ld(e.palette[t.color].main,.62):sd(e.palette[t.color].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),dH=Pt("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}`})),fH=Pt("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%"})),hH=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:u}=n,c=lt(n,sH),d=ne({},n,{color:i,edge:a,size:s}),f=lH(d),p=m.jsx(fH,{className:f.thumb,ownerState:d});return m.jsxs(uH,{className:wt(f.root,o),sx:u,ownerState:d,children:[m.jsx(cH,ne({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:d},c,{classes:ne({},f,{root:f.switchBase})})),m.jsx(dH,{className:f.track,ownerState:d})]})}),yx=hH,pH=({segments:e,onSegmentClicked:t})=>{const r=e.map($=>({status:$,visible:!0,active:$.downloadedBytes<$.totalBytes&&$.downloadedBytes>0})),[n,o]=N.useState(r),[i,a]=N.useState(!1),[s,u]=N.useState(!1),[c,d]=N.useState(0),f=N.useRef(null),[p,y]=N.useState(!1),[S,g]=N.useState(!1),[C,v]=N.useState({column:"Name",descending:!0});N.useEffect(()=>{f.current&&!s&&!i&&(f.current.scrollTop=c),i&&a(!1)},[c,s]),N.useEffect(()=>{},[r]);const b=$=>$.peers.length||0,_=$=>{let D=0;return $.peers.forEach(Z=>{D+=Z.downloadRate}),D},k=$=>$.webseeds.length||0,T=$=>{let D=0;return $.webseeds.forEach(Z=>{D+=Z.downloadRate}),D},E=($,D)=>$/D*100,x=($,D,Z=!0)=>{Z&&a(!0);let he=[...$].sort((Y,te)=>D.column==="Name"?O(Y.status.name,te.status.name,D.descending):D.column==="Progress"?I(E(Y.status.downloadedBytes,Y.status.totalBytes),E(te.status.downloadedBytes,te.status.totalBytes),D.descending):D.column==="Size"?I(Y.status.totalBytes,te.status.totalBytes,D.descending):D.column==="PeersCount"?I(b(Y.status),b(te.status),D.descending):D.column==="PeersRate"?I(_(Y.status),_(te.status),D.descending):D.column==="WebseedsCount"?I(k(Y.status),k(te.status),D.descending):D.column==="WebseedsRate"?I(T(Y.status),T(te.status),D.descending):I(Y.active?1:0,te.active?1:0,D.descending));v(D),o(he)},O=($,D,Z)=>Z?D.localeCompare($):$.localeCompare(D),I=($,D,Z)=>Z?D-$:$-D,j=$=>C.column!==$?m.jsx(Ql,{className:"ml-2"}):C.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),M=$=>{y($.target.checked);let D=n;D.forEach(Z=>{$.target.checked?E(Z.status.downloadedBytes,Z.status.totalBytes)===100&&(Z.visible=!1):E(Z.status.downloadedBytes,Z.status.totalBytes)===100&&(Z.visible=!0)}),o(D)},B=$=>{g($.target.checked);let D=n;D.forEach(Z=>{$.target.checked?E(Z.status.downloadedBytes,Z.status.totalBytes)===0&&(Z.visible=!1):E(Z.status.downloadedBytes,Z.status.totalBytes)===0&&(Z.visible=!0)}),o(D)};return m.jsxs("div",{className:"w-full h-full",style:{overflowY:"auto"},ref:f,children:[m.jsxs("div",{className:"flex flex-row justify-around",children:[m.jsx(gx,{control:m.jsx(yx,{checked:p,onChange:M}),label:"Hide downloaded files"}),m.jsx(gx,{control:m.jsx(yx,{checked:S,onChange:B}),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:()=>{x(n,{column:"Name",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Name",j("Name")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Progress",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Progress",j("Progress")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Size",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Size",j("Size")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"PeersCount",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Count",j("PeersCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"PeersRate",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Rate",j("PeersRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"WebseedsCount",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Count",j("WebseedsCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"WebseedsRate",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Rate",j("WebseedsRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Active",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Active",j("Active")]})})]})}),m.jsx("tbody",{children:n.map($=>m.jsx(m.Fragment,{children:$.visible&&m.jsxs("tr",{className:"border-b hover:bg-gray-100 cursor-pointer",onClick:()=>{f.current&&d(f.current.scrollTop),u(!0),t($.status)},children:[m.jsx("td",{className:"px-4 py-2",children:$.status.name}),m.jsx("td",{className:"px-4 py-2",children:Kf($.status.downloadedBytes,$.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt($.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:b($.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(_($.status))}),m.jsx("td",{className:"px-4 py-2",children:k($.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(T($.status))}),m.jsx("td",{className:"px-4 py-2",children:$.active.toString()})]})}))})]})]})},Sx=({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((y,S)=>d.column==="Url"?a(y.url,S.url,d.descending):s(y.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,u=c=>n.column!==c?m.jsx(Ql,{className:"ml-2"}):n.descending?m.jsx(Kl,{}):m.jsx(Yl,{});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",u("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",u("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:zt(c.downloadRate)})]}))})]})},mH=({segment:e})=>{const t=a=>{let s=0;return a.forEach(u=>{s+=u.downloadRate}),$r(s)},r=a=>a.peers.length||0,n=a=>{let s=0;return a.peers.forEach(u=>{s+=u.downloadRate}),s},o=a=>a.webseeds.length||0,i=a=>{let s=0;return a.webseeds.forEach(u=>{s+=u.downloadRate}),s};return m.jsx("div",{className:"w-full h-full bg-white",children:e?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:e.name}),m.jsx("td",{className:"px-4 py-2",children:Kf(e.downloadedBytes,e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:r(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(n(e))}),m.jsx("td",{className:"px-4 py-2",children:o(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(i(e))})]})})]}),m.jsxs("div",{className:"flex flex-row justify-around mt-20",children:[e.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:e.peers.length+" peers"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.peers)}),m.jsx(Sx,{peers:e.peers})]})}),e.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:e.webseeds.length+" webseeds"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.webseeds)}),m.jsx(Sx,{peers:e.webseeds})]})})]})]}):m.jsx("div",{})})};var M0={},vH=nt;Object.defineProperty(M0,"__esModule",{value:!0});var WE=M0.default=void 0,gH=vH(ot()),yH=m;WE=M0.default=(0,gH.default)((0,yH.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const SH=({onClose:e})=>{const t=Ee(Ef),[r,n]=N.useState(0),[o,i]=N.useState(0),[a,s]=N.useState(null),[u,c]=N.useState(t.segments),d=S=>{S.key==="Escape"&&(a?s(null):e())};N.useEffect(()=>(window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}),[a]),N.useEffect(()=>{let S=0,g=0;t.segments.forEach(C=>{S+=p(C),g+=f(C)}),n(S),i(g)},[t]),N.useEffect(()=>{c(a?[a]:t.segments)},[a]);const f=S=>{let g=0;return S.peers.forEach(C=>{g+=C.downloadRate}),g},p=S=>{let g=0;return S.webseeds.forEach(C=>{g+=C.downloadRate}),g},y=()=>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(WE,{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(If,{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:[y(),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-start items-center h-[70vh] overflow-scroll",children:[m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white h-[95%]",children:[m.jsx(pH,{segments:t.segments,onSegmentClicked:S=>s(S)}),a&&m.jsx("div",{className:"absolute z-10 w-full h-full",children:m.jsx(mH,{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:$r(r)})]}),m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"peers :"}),m.jsx("p",{children:$r(o)})]})]})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},bH=()=>{const e=Ee(Ef),[t,r]=N.useState(!1),n=()=>!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",o=()=>{let i=0;return e.totalTime.forEach(a=>{i+=a}),Il(i)};return m.jsxs("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:"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:(e==null?void 0:e.downloaded)&&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:n()}),m.jsx("td",{className:"px-4 py-2",children:Kf(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:i8(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:o()}),m.jsx("td",{className:"px-4 py-2",children:O_(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:O_(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:zt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.sys)})]})})]}),t&&m.jsx(SH,{onClose:()=>{r(!1)}})]})},wH=({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===On.Active||o===On.Static||o===On.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(On.Active),onClick:()=>r(On.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(On.Static),onClick:()=>r(On.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(On.Total),onClick:()=>r(On.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:$r(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:zt(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:$r(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:zt(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:zt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},nm=({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 y=f.sort((S,g)=>p.column==="Id"?s(S.id,g.id,p.descending):p.column==="Type"?s(S.type,g.type,p.descending):p.column==="Status"?s(S.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(S.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(S.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(S.network.inRate,g.network.inRate,p.descending):u(S.network.outRate,g.network.outRate,p.descending));i(p),n(y)},s=(f,p,y)=>y?p.localeCompare(f):f.localeCompare(p),u=(f,p,y)=>(console.log("! currentSortState "+o.column+" "+o.descending),y?p-f:f-p),c=f=>o.column!==f?m.jsx(Ql,{className:"ml-2"}):o.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),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:zt(f.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:zt(f.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.outRate)})]},p))})]})})},_H=({peerId:e,onClose:t,...r})=>{const o=m3()(je.getState(),e),i=(f,p)=>{let y=Object.keys(f),S=Object.keys(p);const g=new Set([...y,...S]),C=Array.from(g);let v=[];return C.forEach(b=>{let _=f[b]|0,k=p[b]|0;v.push({key:b,bytesIn:_,bytesOut:k})}),v},a=()=>{let f=i(o.network.capBytesIn,o.network.capBytesOut);return u(f)},s=()=>{let f=i(o.network.typeBytesIn,o.network.typeBytesOut);return u(f)},u=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:zt(p.bytesIn)}),m.jsx("td",{children:zt(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",zt(o.network.bytesIn)),d("Out",zt(o.network.bytesOut)),d("In speed",$r(o.network.inRate)),d("Out speed",$r(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(Un,{backgroundColor:is,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var On=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(On||{});const bx=({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=Ee(Pf),r=Ee(b3),n=Ee(v3),o=Ee(y3)):(t=Ee(Tf),r=Ee(w3),n=Ee(g3),o=Ee(S3));const[i,a]=N.useState(null),[s,u]=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(wH,{statistics:r,selectedStatistics:s,onRowClicked:d=>{u(d)}})]}),s==="active"&&m.jsx(nm,{peers:n,onPeerClicked:d=>{a(d)}}),s==="static"&&m.jsx(nm,{peers:o,onPeerClicked:d=>{a(d)}}),s==="total"&&m.jsx(nm,{peers:t,onPeerClicked:d=>{a(d)}}),s==="errors"&&c(),i&&m.jsx(_H,{peerId:i,onClose:()=>{a(null)}})]})},xH=()=>{const e=Ee(Ef),t=Ee(lP),r=Ee(uP),n=r.stages.flatMap(p=>p.subStage?[p,{...p,name:p.name,subStage:!1}]:[p]),[o,i]=N.useState(0);N.useEffect(()=>{e.torrentMetadataReadys(p)+"/"+r.stages.length,s=p=>{for(let y=0;yp.name==="Snapshots"?p.subStage?e.downloadFinished?"Finished":e.torrentMetadataReadyp.name==="Snapshots"?p.subStage?"Snapshots (Downloading)":"Snapshots (Indexing)":p.name,d=p=>p.name==="Snapshots"?p.subStage?Kf(e.downloaded,e.total):YT(t.progress):"0%",f=p=>{if(p.name==="Snapshots")if(p.subStage){let y=0;return e.totalTime.forEach(S=>{y+=S}),Il(y)}else{let y=0;return t.totalTime.forEach(S=>{y+=S}),Il(y)}else return"0s"};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:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"State"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"})]})}),m.jsx("tbody",{children:n.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:a(p)}),m.jsx("td",{className:"px-4 py-2",children:c(p)}),m.jsx("td",{className:"px-4 py-2",children:u(p)}),m.jsx("td",{className:"px-4 py-2",children:d(p)}),m.jsx("td",{className:"px-4 py-2",children:f(p)})]}))})]})})},CH=()=>{const e=Ee(Ef),t=Ee(lP),r=Ee(uP),n=()=>{let i=o();if((i==null?void 0:i.name)===void 0)return"0s";let a=0;return e.totalTime.forEach(s=>{a+=s}),t.totalTime.forEach(s=>{a+=s}),Il(a)},o=()=>{let i=0;return r.currentStage>0&&r.currentStage{const e=Ee(fP),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(_P,{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"})})},Pa=()=>je.getState().app.activeNodeId,kH=()=>{let e=Pa();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},PH=()=>{let e=Pa();for(let t of je.getState().syncStages.snapshotFilesList)if(t.nodeId===e)return t.files;return[]},TH=()=>{let e=Pa();for(let t of je.getState().issues.issues)if(t.nodeId===e)return t.issues;return[]},EH=()=>{const e=kH(),t=PH();if(e&&e.segments.length!=t.length)if(e.segments.length{je.dispatch(j3({nodeId:Pa(),issueId:i.id}))}),r.forEach(i=>{let a=IH(o,i);if(a!==void 0){let s=Date.now()-a.timestamp,u=new Date(s).toISOString().substr(11,8),c="No peers for segment: "+i+" for "+u;je.dispatch(B1({issue:{type:cv.SnapshotSegmentMissingPeers,message:c,id:i,timestamp:a.timestamp},nodeId:Pa()}))}else je.dispatch(B1({issue:{type:cv.SnapshotSegmentMissingPeers,message:"No peers for segment: "+i,id:i,timestamp:Date.now()-2e4},nodeId:Pa()}))})}else console.log("Error, more segments than files")},OH=(e,t)=>{let r=[];return e.forEach(n=>{let o=!1;for(let i of t.segments)if(i.name===n){o=!0;break}o||r.push(n)}),r},IH=(e,t)=>e.find(n=>n.id===t);function jH(){return m.jsx("div",{children:m.jsx(Lj,{children:m.jsxs(Xt,{path:"/",element:m.jsx(zH,{}),children:[m.jsx(Xt,{index:!0,element:m.jsx(tD,{})}),m.jsx(Xt,{path:"sentry-network",element:m.jsx(bx,{type:"sentry"})}),m.jsx(Xt,{path:"sentinel-network",element:m.jsx(bx,{type:"sentinel"})}),m.jsx(Xt,{path:"downloader",element:m.jsx(bH,{})}),m.jsx(Xt,{path:"logs",element:m.jsx(s8,{})}),m.jsx(Xt,{path:"chain",element:m.jsx(NH,{})}),m.jsx(Xt,{path:"data",element:m.jsx(l8,{})}),m.jsx(Xt,{path:"debug",element:m.jsx(AH,{})}),m.jsx(Xt,{path:"testing",element:m.jsx(MH,{})}),m.jsx(Xt,{path:"performance",element:m.jsx(CH,{})}),m.jsx(Xt,{path:"documentation",element:m.jsx(LH,{})}),m.jsx(Xt,{path:"issues",element:m.jsx(RH,{})}),m.jsx(Xt,{path:"admin",element:m.jsx(d8,{})}),m.jsx(Xt,{path:"*",element:m.jsx($H,{})})]})})})}function zH(){const e=Hl(),t=Ee(kt),r=Ee(Sk),n=Ee(Fg);Ee(cP);const[o,i]=N.useState(!1),[a,s]=N.useState(!1);return N.useEffect(()=>{},[]),N.useEffect(()=>{n!==""&&xD()},[n]),N.useEffect(()=>{t!==""&&n!==""&&(kD(),RD(),CD(),CP(),PD(),TD(),OD(),rw(),setInterval(()=>{rw()},5*$s.second),ID(),nw(),setInterval(()=>{nw()},20*$s.second),setInterval(()=>{EH()},20*$s.second),setInterval(()=>{e(h3({activeNodeId:t,countInterval:15}))},15*$s.second))},[t]),N.useEffect(()=>{t!==""&&n!==""&&(setTimeout(()=>{Fu()},500),setTimeout(()=>{Fu()},5e3),setTimeout(()=>{Fu()},1e4),setTimeout(()=>{Fu()},2e4))},[n,t]),N.useEffect(()=>{t!==""&&r.length>0&&r.forEach(u=>{u.tables.length===0&&ED(u.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(j7,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(Aj,{})}),m.jsx(y8,{onSessionClicked:()=>{i(!0)},onNodeClicked:()=>{s(!0)}}),m.jsx(S8,{open:o,onClose:()=>{i(!1)}}),m.jsx(w8,{open:a,onClose:()=>{s(!1)}})]})}function NH(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function AH(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function MH(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function LH(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function $H(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(yr,{to:"/",children:"Go to the home page"})})]})}function Cc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cc=function(r){return typeof r}:Cc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Cc(e)}function DH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wx(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 di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ja(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 wx={exports:{}},kd={},_x={exports:{}},Te={};/** +function vO(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 di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ja(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 wx={exports:{}},kd={},_x={exports:{}},Te={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function gO(e,t){for(var r=0;r>>1,ke=J[we];if(0>>1;weo(Se,ce))Go(V,Se)?(J[we]=V,J[G]=ce,we=G):(J[we]=Se,J[$e]=ce,we=$e);else if(Go(V,ce))J[we]=V,J[G]=ce,we=G;else break e}}return oe}function o(J,oe){var ce=J.sortIndex-oe.sortIndex;return ce!==0?ce:J.id-oe.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 u=[],c=[],d=1,f=null,p=3,y=!1,S=!1,g=!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 oe=r(c);oe!==null;){if(oe.callback===null)n(c);else if(oe.startTime<=J)n(c),oe.sortIndex=oe.expirationTime,t(u,oe);else break;oe=r(c)}}function k(J){if(g=!1,x(J),!S)if(r(u)!==null)S=!0,ie(E);else{var oe=r(c);oe!==null&&pe(k,oe.startTime-J)}}function E(J,oe){S=!1,g&&(g=!1,v(P),P=-1),y=!0;var ce=p;try{for(x(oe),f=r(u);f!==null&&(!(f.expirationTime>oe)||J&&!M());){var we=f.callback;if(typeof we=="function"){f.callback=null,p=f.priorityLevel;var ke=we(f.expirationTime<=oe);oe=e.unstable_now(),typeof ke=="function"?f.callback=ke:f===r(u)&&n(u),x(oe)}else n(u);f=r(u)}if(f!==null)var yt=!0;else{var $e=r(c);$e!==null&&pe(k,$e.startTime-oe),yt=!1}return yt}finally{f=null,p=ce,y=!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(u)===null&&J===r(c)&&(g?(v(P),P=-1):g=!0,pe(k,ce-we))):(J.sortIndex=ke,t(u,J),S||y||(S=!0,ie(E))),J},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(J){var oe=p;return function(){var ce=p;p=oe;try{return J.apply(this,arguments)}finally{p=ce}}}})(zx);jx.exports=zx;var FO=jx.exports;/** + */(function(e){function t(J,oe){var ce=J.length;J.push(oe);e:for(;0>>1,ke=J[we];if(0>>1;weo(Se,ce))Go(V,Se)?(J[we]=V,J[G]=ce,we=G):(J[we]=Se,J[$e]=ce,we=$e);else if(Go(V,ce))J[we]=V,J[G]=ce,we=G;else break e}}return oe}function o(J,oe){var ce=J.sortIndex-oe.sortIndex;return ce!==0?ce:J.id-oe.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 u=[],c=[],d=1,f=null,p=3,y=!1,S=!1,g=!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 oe=r(c);oe!==null;){if(oe.callback===null)n(c);else if(oe.startTime<=J)n(c),oe.sortIndex=oe.expirationTime,t(u,oe);else break;oe=r(c)}}function k(J){if(g=!1,x(J),!S)if(r(u)!==null)S=!0,ie(E);else{var oe=r(c);oe!==null&&pe(k,oe.startTime-J)}}function E(J,oe){S=!1,g&&(g=!1,v(P),P=-1),y=!0;var ce=p;try{for(x(oe),f=r(u);f!==null&&(!(f.expirationTime>oe)||J&&!M());){var we=f.callback;if(typeof we=="function"){f.callback=null,p=f.priorityLevel;var ke=we(f.expirationTime<=oe);oe=e.unstable_now(),typeof ke=="function"?f.callback=ke:f===r(u)&&n(u),x(oe)}else n(u);f=r(u)}if(f!==null)var yt=!0;else{var $e=r(c);$e!==null&&pe(k,$e.startTime-oe),yt=!1}return yt}finally{f=null,p=ce,y=!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(u)===null&&J===r(c)&&(g?(v(P),P=-1):g=!0,pe(k,ce-we))):(J.sortIndex=ke,t(u,J),S||y||(S=!0,ie(E))),J},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(J){var oe=p;return function(){var ce=p;p=oe;try{return J.apply(this,arguments)}finally{p=ce}}}})(zx);jx.exports=zx;var DO=jx.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function gO(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),om=Object.prototype.hasOwnProperty,BO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jS={},zS={};function WO(e){return om.call(zS,e)?!0:om.call(jS,e)?!1:BO.test(e)?zS[e]=!0:(jS[e]=!0,!1)}function UO(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 HO(e,t,r,n){if(t===null||typeof t>"u"||UO(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 hr(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 Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new hr(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){Ut[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var jv=/[\-:]([a-z])/g;function zv(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(jv,zv);Ut[t]=new hr(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(jv,zv);Ut[t]=new hr(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(jv,zv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nv(e,t,r,n){var o=Ut.hasOwnProperty(t)?Ut[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),om=Object.prototype.hasOwnProperty,FO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jS={},zS={};function BO(e){return om.call(zS,e)?!0:om.call(jS,e)?!1:FO.test(e)?zS[e]=!0:(jS[e]=!0,!1)}function WO(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 UO(e,t,r,n){if(t===null||typeof t>"u"||WO(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 hr(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 Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new hr(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){Ut[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var jv=/[\-:]([a-z])/g;function zv(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(jv,zv);Ut[t]=new hr(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(jv,zv);Ut[t]=new hr(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(jv,zv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nv(e,t,r,n){var o=Ut.hasOwnProperty(t)?Ut[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var u=` -`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Eh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zs(e):""}function qO(e){switch(e.tag){case 5:return zs(e.type);case 16:return zs("Lazy");case 13:return zs("Suspense");case 19:return zs("SuspenseList");case 0:case 2:case 15:return e=Oh(e.type,!1),e;case 11:return e=Oh(e.type.render,!1),e;case 1:return e=Oh(e.type,!0),e;default:return""}}function lm(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 aa:return"Fragment";case ia:return"Portal";case im:return"Profiler";case Av:return"StrictMode";case am:return"Suspense";case sm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lx:return(e.displayName||"Context")+".Consumer";case Mx:return(e._context.displayName||"Context")+".Provider";case Mv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lv:return t=e.displayName||null,t!==null?t:lm(e.type)||"Memo";case wo:t=e._payload,e=e._init;try{return lm(e(t))}catch{}}return null}function GO(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 lm(t);case 8:return t===Av?"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 Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VO(e){var t=Dx(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 wu(e){e._valueTracker||(e._valueTracker=VO(e))}function Fx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Dx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function kc(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 um(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function AS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Uo(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 Bx(e,t){t=t.checked,t!=null&&Nv(e,"checked",t,!1)}function cm(e,t){Bx(e,t);var r=Uo(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")?dm(e,t.type,r):t.hasOwnProperty("defaultValue")&&dm(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MS(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 dm(e,t,r){(t!=="number"||kc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ns=Array.isArray;function ya(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_u.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qs={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},KO=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(e){KO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qs[t]=qs[e]})});function qx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qs.hasOwnProperty(e)&&qs[e]?(""+t).trim():t+"px"}function Gx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=qx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var YO=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 pm(e,t){if(t){if(YO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function mm(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 vm=null;function $v(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gm=null,Sa=null,ba=null;function DS(e){if(e=Fl(e)){if(typeof gm!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=Id(t),gm(e.stateNode,e.type,t))}}function Vx(e){Sa?ba?ba.push(e):ba=[e]:Sa=e}function Kx(){if(Sa){var e=Sa,t=ba;if(ba=Sa=null,DS(e),t)for(e=0;e>>=0,e===0?32:31-(aI(e)/sI|0)|0}var xu=64,Cu=4194304;function As(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 Oc(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=As(s):(i&=a,i!==0&&(n=As(i)))}else a=r&~o,a!==0?n=As(a):i!==0&&(n=As(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 $l(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=r}function dI(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=Vs),KS=String.fromCharCode(32),YS=!1;function pC(e,t){switch(e){case"keyup":return DI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function BI(e,t){switch(e){case"compositionend":return mC(t);case"keypress":return t.which!==32?null:(YS=!0,KS);case"textInput":return e=t.data,e===KS&&YS?null:e;default:return null}}function WI(e,t){if(sa)return e==="compositionend"||!Gv&&pC(e,t)?(e=fC(),ec=Uv=Po=null,sa=!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=ZS(r)}}function SC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bC(){for(var e=window,t=kc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=kc(e.document)}return t}function Vv(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 XI(e){var t=bC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&SC(r.ownerDocument.documentElement,r)){if(n!==null&&Vv(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=eb(r,i);var a=eb(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,la=null,xm=null,Ys=null,Cm=!1;function tb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cm||la==null||la!==kc(n)||(n=la,"selectionStart"in n&&Vv(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}),Ys&&fl(Ys,n)||(Ys=n,n=zc(xm,"onSelect"),0da||(e.current=Om[da],Om[da]=null,da--)}function Ve(e,t){da++,Om[da]=e.current,e.current=t}var Ho={},nr=Qo(Ho),wr=Qo(!1),xi=Ho;function Ia(e,t){var r=e.type.contextTypes;if(!r)return Ho;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 _r(e){return e=e.childContextTypes,e!=null}function Ac(){Xe(wr),Xe(nr)}function lb(e,t,r){if(nr.current!==Ho)throw Error(ee(168));Ve(nr,t),Ve(wr,r)}function EC(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(ee(108,GO(e)||"Unknown",o));return st({},r,n)}function Mc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ho,xi=nr.current,Ve(nr,e),Ve(wr,wr.current),!0}function ub(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=EC(e,t,xi),n.__reactInternalMemoizedMergedChildContext=e,Xe(wr),Xe(nr),Ve(nr,e)):Xe(wr),Ve(wr,r)}var to=null,jd=!1,Hh=!1;function OC(e){to===null?to=[e]:to.push(e)}function u2(e){jd=!0,OC(e)}function Xo(){if(!Hh&&to!==null){Hh=!0;var e=0,t=Be;try{var r=to;for(Be=1;e>=a,o-=a,oo=1<<32-yn(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,_),rt&&si(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,_),rt&&si(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 rt&&si(v,P),E}for(_=n(v,_);!j.done;P++,j=x.next())j=y(_,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,$)}),rt&&si(v,P),E}function C(v,b,x,k){if(typeof x=="object"&&x!==null&&x.type===aa&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case bu:e:{for(var E=x.key,O=b;O!==null;){if(O.key===E){if(E=x.type,E===aa){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===wo&&vb(E)===O.type){r(v,O.sibling),b=o(O,x.props),b.ref=Cs(v,O,x),b.return=v,v=b;break e}r(v,O);break}else t(v,O);O=O.sibling}x.type===aa?(b=yi(x.props.children,v.mode,k,x.key),b.return=v,v=b):(k=lc(x.type,x.key,x.props,null,v.mode,k),k.ref=Cs(v,b,x),k.return=v,v=k)}return a(v);case ia: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=Jh(x,v.mode,k),b.return=v,v=b}return a(v);case wo:return O=x._init,C(v,b,O(x._payload),k)}if(Ns(x))return S(v,b,x,k);if(Ss(x))return g(v,b,x,k);Iu(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=Xh(x,v.mode,k),b.return=v,v=b),a(v)):r(v,b)}return C}var za=$C(!0),DC=$C(!1),Bl={},$n=Qo(Bl),vl=Qo(Bl),gl=Qo(Bl);function pi(e){if(e===Bl)throw Error(ee(174));return e}function rg(e,t){switch(Ve(gl,t),Ve(vl,e),Ve($n,Bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hm(t,e)}Xe($n),Ve($n,t)}function Na(){Xe($n),Xe(vl),Xe(gl)}function FC(e){pi(gl.current);var t=pi($n.current),r=hm(t,e.type);t!==r&&(Ve(vl,e),Ve($n,r))}function ng(e){vl.current===e&&(Xe($n),Xe(vl))}var it=Qo(0);function Wc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qh=[];function og(){for(var e=0;er?r:4,e(!0);var n=Gh.transition;Gh.transition={};try{e(!1),t()}finally{Be=r,Gh.transition=n}}function rR(){return rn().memoizedState}function h2(e,t,r){var n=Lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},nR(e))oR(t,r);else if(r=NC(e,t,r,n),r!==null){var o=dr();Sn(r,e,n,o),iR(r,t,n)}}function p2(e,t,r){var n=Lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(nR(e))oR(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,wn(s,a)){var u=t.interleaved;u===null?(o.next=o,eg(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=NC(e,t,o,n),r!==null&&(o=dr(),Sn(r,e,n,o),iR(r,t,n))}}function nR(e){var t=e.alternate;return e===at||t!==null&&t===at}function oR(e,t){Qs=Uc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function iR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Fv(e,r)}}var Hc={readContext:tn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},m2={readContext:tn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:yb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,oc(4194308,4,XC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return oc(4,2,e,t)},useMemo:function(e,t){var r=In();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=In();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=h2.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:gb,useDebugValue:ug,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=gb(!1),t=e[0];return e=f2.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,o=In();if(rt){if(r===void 0)throw Error(ee(407));r=r()}else{if(r=t(),Nt===null)throw Error(ee(349));Ri&30||UC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,yb(qC.bind(null,n,i,e),[e]),n.flags|=2048,bl(9,HC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=In(),t=Nt.identifierPrefix;if(rt){var r=io,n=oo;r=(n&~(1<<32-yn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yl++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Eh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zs(e):""}function HO(e){switch(e.tag){case 5:return zs(e.type);case 16:return zs("Lazy");case 13:return zs("Suspense");case 19:return zs("SuspenseList");case 0:case 2:case 15:return e=Oh(e.type,!1),e;case 11:return e=Oh(e.type.render,!1),e;case 1:return e=Oh(e.type,!0),e;default:return""}}function lm(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 aa:return"Fragment";case ia:return"Portal";case im:return"Profiler";case Av:return"StrictMode";case am:return"Suspense";case sm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lx:return(e.displayName||"Context")+".Consumer";case Mx:return(e._context.displayName||"Context")+".Provider";case Mv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lv:return t=e.displayName||null,t!==null?t:lm(e.type)||"Memo";case wo:t=e._payload,e=e._init;try{return lm(e(t))}catch{}}return null}function qO(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 lm(t);case 8:return t===Av?"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 Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GO(e){var t=Dx(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 wu(e){e._valueTracker||(e._valueTracker=GO(e))}function Fx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Dx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function kc(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 um(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function AS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Uo(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 Bx(e,t){t=t.checked,t!=null&&Nv(e,"checked",t,!1)}function cm(e,t){Bx(e,t);var r=Uo(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")?dm(e,t.type,r):t.hasOwnProperty("defaultValue")&&dm(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MS(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 dm(e,t,r){(t!=="number"||kc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ns=Array.isArray;function ya(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_u.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qs={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},VO=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(e){VO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qs[t]=qs[e]})});function qx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qs.hasOwnProperty(e)&&qs[e]?(""+t).trim():t+"px"}function Gx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=qx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var KO=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 pm(e,t){if(t){if(KO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function mm(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 vm=null;function $v(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gm=null,Sa=null,ba=null;function DS(e){if(e=Fl(e)){if(typeof gm!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=Id(t),gm(e.stateNode,e.type,t))}}function Vx(e){Sa?ba?ba.push(e):ba=[e]:Sa=e}function Kx(){if(Sa){var e=Sa,t=ba;if(ba=Sa=null,DS(e),t)for(e=0;e>>=0,e===0?32:31-(iI(e)/aI|0)|0}var xu=64,Cu=4194304;function As(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 Oc(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=As(s):(i&=a,i!==0&&(n=As(i)))}else a=r&~o,a!==0?n=As(a):i!==0&&(n=As(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 $l(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=r}function cI(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=Vs),KS=String.fromCharCode(32),YS=!1;function pC(e,t){switch(e){case"keyup":return $I.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function FI(e,t){switch(e){case"compositionend":return mC(t);case"keypress":return t.which!==32?null:(YS=!0,KS);case"textInput":return e=t.data,e===KS&&YS?null:e;default:return null}}function BI(e,t){if(sa)return e==="compositionend"||!Gv&&pC(e,t)?(e=fC(),ec=Uv=Po=null,sa=!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=ZS(r)}}function SC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bC(){for(var e=window,t=kc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=kc(e.document)}return t}function Vv(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 QI(e){var t=bC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&SC(r.ownerDocument.documentElement,r)){if(n!==null&&Vv(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=eb(r,i);var a=eb(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,la=null,xm=null,Ys=null,Cm=!1;function tb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cm||la==null||la!==kc(n)||(n=la,"selectionStart"in n&&Vv(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}),Ys&&fl(Ys,n)||(Ys=n,n=zc(xm,"onSelect"),0da||(e.current=Om[da],Om[da]=null,da--)}function Ve(e,t){da++,Om[da]=e.current,e.current=t}var Ho={},nr=Qo(Ho),wr=Qo(!1),xi=Ho;function Ia(e,t){var r=e.type.contextTypes;if(!r)return Ho;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 _r(e){return e=e.childContextTypes,e!=null}function Ac(){Xe(wr),Xe(nr)}function lb(e,t,r){if(nr.current!==Ho)throw Error(ee(168));Ve(nr,t),Ve(wr,r)}function EC(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(ee(108,qO(e)||"Unknown",o));return st({},r,n)}function Mc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ho,xi=nr.current,Ve(nr,e),Ve(wr,wr.current),!0}function ub(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=EC(e,t,xi),n.__reactInternalMemoizedMergedChildContext=e,Xe(wr),Xe(nr),Ve(nr,e)):Xe(wr),Ve(wr,r)}var to=null,jd=!1,Hh=!1;function OC(e){to===null?to=[e]:to.push(e)}function l2(e){jd=!0,OC(e)}function Xo(){if(!Hh&&to!==null){Hh=!0;var e=0,t=Be;try{var r=to;for(Be=1;e>=a,o-=a,oo=1<<32-yn(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,_),rt&&si(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,_),rt&&si(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 rt&&si(v,P),E}for(_=n(v,_);!j.done;P++,j=x.next())j=y(_,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,$)}),rt&&si(v,P),E}function C(v,b,x,k){if(typeof x=="object"&&x!==null&&x.type===aa&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case bu:e:{for(var E=x.key,O=b;O!==null;){if(O.key===E){if(E=x.type,E===aa){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===wo&&vb(E)===O.type){r(v,O.sibling),b=o(O,x.props),b.ref=Cs(v,O,x),b.return=v,v=b;break e}r(v,O);break}else t(v,O);O=O.sibling}x.type===aa?(b=yi(x.props.children,v.mode,k,x.key),b.return=v,v=b):(k=lc(x.type,x.key,x.props,null,v.mode,k),k.ref=Cs(v,b,x),k.return=v,v=k)}return a(v);case ia: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=Jh(x,v.mode,k),b.return=v,v=b}return a(v);case wo:return O=x._init,C(v,b,O(x._payload),k)}if(Ns(x))return S(v,b,x,k);if(Ss(x))return g(v,b,x,k);Iu(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=Xh(x,v.mode,k),b.return=v,v=b),a(v)):r(v,b)}return C}var za=$C(!0),DC=$C(!1),Bl={},$n=Qo(Bl),vl=Qo(Bl),gl=Qo(Bl);function pi(e){if(e===Bl)throw Error(ee(174));return e}function rg(e,t){switch(Ve(gl,t),Ve(vl,e),Ve($n,Bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hm(t,e)}Xe($n),Ve($n,t)}function Na(){Xe($n),Xe(vl),Xe(gl)}function FC(e){pi(gl.current);var t=pi($n.current),r=hm(t,e.type);t!==r&&(Ve(vl,e),Ve($n,r))}function ng(e){vl.current===e&&(Xe($n),Xe(vl))}var it=Qo(0);function Wc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qh=[];function og(){for(var e=0;er?r:4,e(!0);var n=Gh.transition;Gh.transition={};try{e(!1),t()}finally{Be=r,Gh.transition=n}}function rR(){return rn().memoizedState}function f2(e,t,r){var n=Lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},nR(e))oR(t,r);else if(r=NC(e,t,r,n),r!==null){var o=dr();Sn(r,e,n,o),iR(r,t,n)}}function h2(e,t,r){var n=Lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(nR(e))oR(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,wn(s,a)){var u=t.interleaved;u===null?(o.next=o,eg(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=NC(e,t,o,n),r!==null&&(o=dr(),Sn(r,e,n,o),iR(r,t,n))}}function nR(e){var t=e.alternate;return e===at||t!==null&&t===at}function oR(e,t){Qs=Uc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function iR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Fv(e,r)}}var Hc={readContext:tn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},p2={readContext:tn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:yb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,oc(4194308,4,XC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return oc(4,2,e,t)},useMemo:function(e,t){var r=In();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=In();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=f2.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:gb,useDebugValue:ug,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=gb(!1),t=e[0];return e=d2.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,o=In();if(rt){if(r===void 0)throw Error(ee(407));r=r()}else{if(r=t(),Nt===null)throw Error(ee(349));Ri&30||UC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,yb(qC.bind(null,n,i,e),[e]),n.flags|=2048,bl(9,HC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=In(),t=Nt.identifierPrefix;if(rt){var r=io,n=oo;r=(n&~(1<<32-yn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yl++,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[Mn]=t,e[ml]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=mm(r,n),r){case"dialog":Qe("cancel",e),Qe("close",e),o=n;break;case"iframe":case"object":case"embed":Qe("load",e),o=n;break;case"video":case"audio":for(o=0;oMa&&(t.flags|=128,n=!0,Rs(i,!1),t.lanes=4194304)}else{if(!n)if(e=Wc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return Yt(t),null}else 2*mt()-i.renderingStartTime>Ma&&r!==1073741824&&(t.flags|=128,n=!0,Rs(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=mt(),t.sibling=null,r=it.current,Ve(it,n?r&1|2:r&1),t):(Yt(t),null);case 22:case 23:return mg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?jr&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function x2(e,t){switch(Yv(t),t.tag){case 1:return _r(t.type)&&Ac(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(),Xe(wr),Xe(nr),og(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ng(t),null;case 13:if(Xe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(it),null;case 4:return Na(),null;case 10:return Zv(t.type._context),null;case 22:case 23:return mg(),null;case 24:return null;default:return null}}var zu=!1,tr=!1,C2=typeof WeakSet=="function"?WeakSet:Set,me=null;function ma(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dt(e,t,n)}else r.current=null}function Wm(e,t,r){try{r()}catch(n){dt(e,t,n)}}var Pb=!1;function R2(e,t){if(Rm=Ic,e=bC(),Vv(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,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(u=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++d===n&&(u=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(km={focusedElem:e,selectionRange:r},Ic=!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 g=S.memoizedProps,C=S.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:hn(t.type,g),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(ee(163))}}catch(k){dt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return S=Pb,Pb=!1,S}function Xs(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&&Wm(t,r,i)}o=o.next}while(o!==n)}}function Ad(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 Um(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 gR(e){var t=e.alternate;t!==null&&(e.alternate=null,gR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ml],delete t[Em],delete t[s2],delete t[l2])),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 yR(e){return e.tag===5||e.tag===3||e.tag===4}function Tb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yR(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 Hm(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=Nc));else if(n!==4&&(e=e.child,e!==null))for(Hm(e,t,r),e=e.sibling;e!==null;)Hm(e,t,r),e=e.sibling}function qm(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(qm(e,t,r),e=e.sibling;e!==null;)qm(e,t,r),e=e.sibling}var Dt=null,pn=!1;function bo(e,t,r){for(r=r.child;r!==null;)SR(e,t,r),r=r.sibling}function SR(e,t,r){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Pd,r)}catch{}switch(r.tag){case 5:tr||ma(r,t);case 6:var n=Dt,o=pn;Dt=null,bo(e,t,r),Dt=n,pn=o,Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dt.removeChild(r.stateNode));break;case 18:Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?Uh(e.parentNode,r):e.nodeType===1&&Uh(e,r),cl(e)):Uh(Dt,r.stateNode));break;case 4:n=Dt,o=pn,Dt=r.stateNode.containerInfo,pn=!0,bo(e,t,r),Dt=n,pn=o;break;case 0:case 11:case 14:case 15:if(!tr&&(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)&&Wm(r,t,a),o=o.next}while(o!==n)}bo(e,t,r);break;case 1:if(!tr&&(ma(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dt(r,t,s)}bo(e,t,r);break;case 21:bo(e,t,r);break;case 22:r.mode&1?(tr=(n=tr)||r.memoizedState!==null,bo(e,t,r),tr=n):bo(e,t,r);break;default:bo(e,t,r)}}function Eb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new C2),t.forEach(function(n){var o=N2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=mt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*P2(n/1960))-n,10e?16:e,To===null)var n=!1;else{if(e=To,To=null,Vc=0,Ie&6)throw Error(ee(331));var o=Ie;for(Ie|=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 u=0;umt()-hg?gi(e,0):fg|=r),xr(e,t)}function PR(e,t){t===0&&(e.mode&1?(t=Cu,Cu<<=1,!(Cu&130023424)&&(Cu=4194304)):t=1);var r=dr();e=fo(e,t),e!==null&&($l(e,t,r),xr(e,r))}function z2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),PR(e,r)}function N2(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(ee(314))}n!==null&&n.delete(t),PR(e,r)}var TR;TR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return br=!1,w2(e,t,r);br=!!(e.flags&131072)}else br=!1,rt&&t.flags&1048576&&IC(t,$c,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ic(e,t),e=t.pendingProps;var o=Ia(t,nr.current);_a(t,r),o=ag(null,t,n,e,o,r);var i=sg();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,_r(n)?(i=!0,Mc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tg(t),o.updater=zd,t.stateNode=o,o._reactInternals=t,Am(t,n,e,r),t=$m(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&Kv(t),ur(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ic(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=M2(n),e=hn(n,e),o){case 0:t=Lm(null,t,n,e,r);break e;case 1:t=Cb(null,t,n,e,r);break e;case 11:t=_b(null,t,n,e,r);break e;case 14:t=xb(null,t,n,hn(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Lm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Cb(e,t,n,o,r);case 3:e:{if(dR(t),e===null)throw Error(ee(387));n=t.pendingProps,i=t.memoizedState,o=i.element,AC(e,t),Bc(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=Aa(Error(ee(423)),t),t=Rb(e,t,n,r,o);break e}else if(n!==o){o=Aa(Error(ee(424)),t),t=Rb(e,t,n,r,o);break e}else for(Ar=No(t.stateNode.containerInfo.firstChild),Mr=t,rt=!0,mn=null,r=DC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ja(),n===o){t=ho(e,t,r);break e}ur(e,t,n,r)}t=t.child}return t;case 5:return FC(t),e===null&&jm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Pm(n,o)?a=null:i!==null&&Pm(n,i)&&(t.flags|=32),cR(e,t),ur(e,t,a,r),t.child;case 6:return e===null&&jm(t),null;case 13:return fR(e,t,r);case 4:return rg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=za(t,null,n,r):ur(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),_b(e,t,n,o,r);case 7:return ur(e,t,t.pendingProps,r),t.child;case 8:return ur(e,t,t.pendingProps.children,r),t.child;case 12:return ur(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,Ve(Dc,n._currentValue),n._currentValue=a,i!==null)if(wn(i.value,a)){if(i.children===o.children&&!wr.current){t=ho(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 u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=lo(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),zm(i.return,r,t),s.lanes|=r;break}u=u.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(ee(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),zm(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}ur(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,_a(t,r),o=tn(o),n=n(o),t.flags|=1,ur(e,t,n,r),t.child;case 14:return n=t.type,o=hn(n,t.pendingProps),o=hn(n.type,o),xb(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),ic(e,t),t.tag=1,_r(n)?(e=!0,Mc(t)):e=!1,_a(t,r),LC(t,n,o),Am(t,n,o,r),$m(null,t,n,!0,e,r);case 19:return hR(e,t,r);case 22:return uR(e,t,r)}throw Error(ee(156,t.tag))};function ER(e,t){return tC(e,t)}function A2(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 Jr(e,t,r,n){return new A2(e,t,r,n)}function gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M2(e){if(typeof e=="function")return gg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mv)return 11;if(e===Lv)return 14}return 2}function $o(e,t){var r=e.alternate;return r===null?(r=Jr(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 lc(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")gg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case aa:return yi(r.children,o,i,t);case Av:a=8,o|=8;break;case im:return e=Jr(12,r,t,o|2),e.elementType=im,e.lanes=i,e;case am:return e=Jr(13,r,t,o),e.elementType=am,e.lanes=i,e;case sm:return e=Jr(19,r,t,o),e.elementType=sm,e.lanes=i,e;case $x:return Ld(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mx:a=10;break e;case Lx:a=9;break e;case Mv:a=11;break e;case Lv:a=14;break e;case wo:a=16,n=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=Jr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yi(e,t,r,n){return e=Jr(7,e,n,t),e.lanes=r,e}function Ld(e,t,r,n){return e=Jr(22,e,n,t),e.elementType=$x,e.lanes=r,e.stateNode={isHidden:!1},e}function Xh(e,t,r){return e=Jr(6,e,null,t),e.lanes=r,e}function Jh(e,t,r){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L2(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=jh(0),this.expirationTimes=jh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yg(e,t,r,n,o,i,a,s,u){return e=new L2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},tg(i),e}function $2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zR)}catch(e){console.error(e)}}zR(),Ix.exports=Wr;var Wl=Ix.exports,Lb=Wl;nm.createRoot=Lb.createRoot,nm.hydrateRoot=Lb.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Yh(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Mm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var g2=typeof WeakMap=="function"?WeakMap:Map;function aR(e,t,r){r=lo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Gc||(Gc=!0,Gm=n),Mm(e,t)},r}function sR(e,t,r){r=lo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Mm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Mm(e,t),typeof n!="function"&&(Mo===null?Mo=new Set([this]):Mo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Sb(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new g2;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=I2.bind(null,e,t,r),t.then(e,e))}function bb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function wb(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=lo(-1,1),t.tag=2,Ao(r,t,1))),r.lanes|=1),e)}var y2=vo.ReactCurrentOwner,br=!1;function ur(e,t,r,n){t.child=e===null?DC(t,null,r,n):za(t,e.child,r,n)}function _b(e,t,r,n,o){r=r.render;var i=t.ref;return _a(t,o),n=ag(e,t,r,n,i,o),r=sg(),e!==null&&!br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(rt&&r&&Kv(t),t.flags|=1,ur(e,t,n,o),t.child)}function xb(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!gg(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,lR(e,t,i,n,o)):(e=lc(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:fl,r(a,n)&&e.ref===t.ref)return ho(e,t,o)}return t.flags|=1,e=$o(i,n),e.ref=t.ref,e.return=t,t.child=e}function lR(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(fl(i,n)&&e.ref===t.ref)if(br=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(br=!0);else return t.lanes=e.lanes,ho(e,t,o)}return Lm(e,t,r,n,o)}function uR(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(va,jr),jr|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(va,jr),jr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Ve(va,jr),jr|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ve(va,jr),jr|=n;return ur(e,t,o,r),t.child}function cR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Lm(e,t,r,n,o){var i=_r(r)?xi:nr.current;return i=Ia(t,i),_a(t,o),r=ag(e,t,r,n,i,o),n=sg(),e!==null&&!br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(rt&&n&&Kv(t),t.flags|=1,ur(e,t,r,o),t.child)}function Cb(e,t,r,n,o){if(_r(r)){var i=!0;Mc(t)}else i=!1;if(_a(t,o),t.stateNode===null)ic(e,t),LC(t,r,n),Am(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=tn(c):(c=_r(r)?xi:nr.current,c=Ia(t,c));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||u!==c)&&mb(t,a,n,c),_o=!1;var p=t.memoizedState;a.state=p,Bc(t,n,a,o),u=t.memoizedState,s!==n||p!==u||wr.current||_o?(typeof d=="function"&&(Nm(t,r,d,n),u=t.memoizedState),(s=_o||pb(t,r,s,n,p,u,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,AC(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:hn(t.type,s),a.props=c,f=t.pendingProps,p=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=tn(u):(u=_r(r)?xi:nr.current,u=Ia(t,u));var y=r.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==u)&&mb(t,a,n,u),_o=!1,p=t.memoizedState,a.state=p,Bc(t,n,a,o);var S=t.memoizedState;s!==f||p!==S||wr.current||_o?(typeof y=="function"&&(Nm(t,r,y,n),S=t.memoizedState),(c=_o||pb(t,r,c,n,p,S,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,S,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,S,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=S),a.props=n,a.state=S,a.context=u,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return $m(e,t,r,n,i,o)}function $m(e,t,r,n,o,i){cR(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&ub(t,r,!1),ho(e,t,i);n=t.stateNode,y2.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=za(t,e.child,null,i),t.child=za(t,null,s,i)):ur(e,t,s,i),t.memoizedState=n.state,o&&ub(t,r,!0),t.child}function dR(e){var t=e.stateNode;t.pendingContext?lb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lb(e,t.context,!1),rg(e,t.containerInfo)}function Rb(e,t,r,n,o){return ja(),Qv(o),t.flags|=256,ur(e,t,r,n),t.child}var Dm={dehydrated:null,treeContext:null,retryLane:0};function Fm(e){return{baseLanes:e,cachePool:null,transitions:null}}function fR(e,t,r){var n=t.pendingProps,o=it.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ve(it,o&1),e===null)return jm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ld(a,n,0,null),e=yi(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fm(r),t.memoizedState=Dm,e):cg(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return S2(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:n.children};return!(a&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=$o(o,u),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=$o(s,i):(i=yi(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?Fm(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Dm,n}return i=e.child,e=i.sibling,n=$o(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function cg(e,t){return t=Ld({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ju(e,t,r,n){return n!==null&&Qv(n),za(t,e.child,null,r),e=cg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function S2(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=Yh(Error(ee(422))),ju(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Ld({mode:"visible",children:n.children},o,0,null),i=yi(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&za(t,e.child,null,a),t.child.memoizedState=Fm(a),t.memoizedState=Dm,i);if(!(t.mode&1))return ju(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(ee(419)),n=Yh(i,n,void 0),ju(e,t,a,n)}if(s=(a&e.childLanes)!==0,br||s){if(n=Nt,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,fo(e,o),Sn(n,e,o,-1))}return vg(),n=Yh(Error(ee(421))),ju(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=j2.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ar=No(o.nextSibling),Mr=t,rt=!0,mn=null,e!==null&&(Yr[Qr++]=oo,Yr[Qr++]=io,Yr[Qr++]=Ci,oo=e.id,io=e.overflow,Ci=t),t=cg(t,n.children),t.flags|=4096,t)}function kb(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),zm(e.return,t,r)}function Qh(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function hR(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(ur(e,t,n.children,r),n=it.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kb(e,r,t);else if(e.tag===19)kb(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ve(it,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Wc(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Qh(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Wc(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Qh(t,!0,r,null,i);break;case"together":Qh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ic(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ho(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ki|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ee(153));if(t.child!==null){for(e=t.child,r=$o(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=$o(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function b2(e,t,r){switch(t.tag){case 3:dR(t),ja();break;case 5:FC(t);break;case 1:_r(t.type)&&Mc(t);break;case 4:rg(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Ve(Dc,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ve(it,it.current&1),t.flags|=128,null):r&t.child.childLanes?fR(e,t,r):(Ve(it,it.current&1),e=ho(e,t,r),e!==null?e.sibling:null);Ve(it,it.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return hR(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ve(it,it.current),n)break;return null;case 22:case 23:return t.lanes=0,uR(e,t,r)}return ho(e,t,r)}var pR,Bm,mR,vR;pR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Bm=function(){};mR=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,pi($n.current);var i=null;switch(r){case"input":o=um(e,o),n=um(e,n),i=[];break;case"select":o=st({},o,{value:void 0}),n=st({},n,{value:void 0}),i=[];break;case"textarea":o=fm(e,o),n=fm(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Nc)}pm(r,n);var a;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(il.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var u=n[c];if(s=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(i||(i=[]),i.push(c,r)),r=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(il.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Qe("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};vR=function(e,t,r,n){r!==n&&(t.flags|=4)};function Rs(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function w2(e,t,r){var n=t.pendingProps;switch(Yv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(t),null;case 1:return _r(t.type)&&Ac(),Yt(t),null;case 3:return n=t.stateNode,Na(),Xe(wr),Xe(nr),og(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ou(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mn!==null&&(Ym(mn),mn=null))),Bm(e,t),Yt(t),null;case 5:ng(t);var o=pi(gl.current);if(r=t.type,e!==null&&t.stateNode!=null)mR(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ee(166));return Yt(t),null}if(e=pi($n.current),Ou(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Mn]=t,n[ml]=i,e=(t.mode&1)!==0,r){case"dialog":Qe("cancel",n),Qe("close",n);break;case"iframe":case"object":case"embed":Qe("load",n);break;case"video":case"audio":for(o=0;o<\/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[Mn]=t,e[ml]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=mm(r,n),r){case"dialog":Qe("cancel",e),Qe("close",e),o=n;break;case"iframe":case"object":case"embed":Qe("load",e),o=n;break;case"video":case"audio":for(o=0;oMa&&(t.flags|=128,n=!0,Rs(i,!1),t.lanes=4194304)}else{if(!n)if(e=Wc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return Yt(t),null}else 2*mt()-i.renderingStartTime>Ma&&r!==1073741824&&(t.flags|=128,n=!0,Rs(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=mt(),t.sibling=null,r=it.current,Ve(it,n?r&1|2:r&1),t):(Yt(t),null);case 22:case 23:return mg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?jr&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function _2(e,t){switch(Yv(t),t.tag){case 1:return _r(t.type)&&Ac(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(),Xe(wr),Xe(nr),og(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ng(t),null;case 13:if(Xe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(it),null;case 4:return Na(),null;case 10:return Zv(t.type._context),null;case 22:case 23:return mg(),null;case 24:return null;default:return null}}var zu=!1,tr=!1,x2=typeof WeakSet=="function"?WeakSet:Set,me=null;function ma(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dt(e,t,n)}else r.current=null}function Wm(e,t,r){try{r()}catch(n){dt(e,t,n)}}var Pb=!1;function C2(e,t){if(Rm=Ic,e=bC(),Vv(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,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(u=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++d===n&&(u=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(km={focusedElem:e,selectionRange:r},Ic=!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 g=S.memoizedProps,C=S.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:hn(t.type,g),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(ee(163))}}catch(k){dt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return S=Pb,Pb=!1,S}function Xs(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&&Wm(t,r,i)}o=o.next}while(o!==n)}}function Ad(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 Um(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 gR(e){var t=e.alternate;t!==null&&(e.alternate=null,gR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ml],delete t[Em],delete t[a2],delete t[s2])),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 yR(e){return e.tag===5||e.tag===3||e.tag===4}function Tb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yR(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 Hm(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=Nc));else if(n!==4&&(e=e.child,e!==null))for(Hm(e,t,r),e=e.sibling;e!==null;)Hm(e,t,r),e=e.sibling}function qm(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(qm(e,t,r),e=e.sibling;e!==null;)qm(e,t,r),e=e.sibling}var Dt=null,pn=!1;function bo(e,t,r){for(r=r.child;r!==null;)SR(e,t,r),r=r.sibling}function SR(e,t,r){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Pd,r)}catch{}switch(r.tag){case 5:tr||ma(r,t);case 6:var n=Dt,o=pn;Dt=null,bo(e,t,r),Dt=n,pn=o,Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dt.removeChild(r.stateNode));break;case 18:Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?Uh(e.parentNode,r):e.nodeType===1&&Uh(e,r),cl(e)):Uh(Dt,r.stateNode));break;case 4:n=Dt,o=pn,Dt=r.stateNode.containerInfo,pn=!0,bo(e,t,r),Dt=n,pn=o;break;case 0:case 11:case 14:case 15:if(!tr&&(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)&&Wm(r,t,a),o=o.next}while(o!==n)}bo(e,t,r);break;case 1:if(!tr&&(ma(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dt(r,t,s)}bo(e,t,r);break;case 21:bo(e,t,r);break;case 22:r.mode&1?(tr=(n=tr)||r.memoizedState!==null,bo(e,t,r),tr=n):bo(e,t,r);break;default:bo(e,t,r)}}function Eb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new x2),t.forEach(function(n){var o=z2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=mt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*k2(n/1960))-n,10e?16:e,To===null)var n=!1;else{if(e=To,To=null,Vc=0,Ie&6)throw Error(ee(331));var o=Ie;for(Ie|=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 u=0;umt()-hg?gi(e,0):fg|=r),xr(e,t)}function PR(e,t){t===0&&(e.mode&1?(t=Cu,Cu<<=1,!(Cu&130023424)&&(Cu=4194304)):t=1);var r=dr();e=fo(e,t),e!==null&&($l(e,t,r),xr(e,r))}function j2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),PR(e,r)}function z2(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(ee(314))}n!==null&&n.delete(t),PR(e,r)}var TR;TR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return br=!1,b2(e,t,r);br=!!(e.flags&131072)}else br=!1,rt&&t.flags&1048576&&IC(t,$c,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ic(e,t),e=t.pendingProps;var o=Ia(t,nr.current);_a(t,r),o=ag(null,t,n,e,o,r);var i=sg();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,_r(n)?(i=!0,Mc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tg(t),o.updater=zd,t.stateNode=o,o._reactInternals=t,Am(t,n,e,r),t=$m(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&Kv(t),ur(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ic(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=A2(n),e=hn(n,e),o){case 0:t=Lm(null,t,n,e,r);break e;case 1:t=Cb(null,t,n,e,r);break e;case 11:t=_b(null,t,n,e,r);break e;case 14:t=xb(null,t,n,hn(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Lm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Cb(e,t,n,o,r);case 3:e:{if(dR(t),e===null)throw Error(ee(387));n=t.pendingProps,i=t.memoizedState,o=i.element,AC(e,t),Bc(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=Aa(Error(ee(423)),t),t=Rb(e,t,n,r,o);break e}else if(n!==o){o=Aa(Error(ee(424)),t),t=Rb(e,t,n,r,o);break e}else for(Ar=No(t.stateNode.containerInfo.firstChild),Mr=t,rt=!0,mn=null,r=DC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ja(),n===o){t=ho(e,t,r);break e}ur(e,t,n,r)}t=t.child}return t;case 5:return FC(t),e===null&&jm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Pm(n,o)?a=null:i!==null&&Pm(n,i)&&(t.flags|=32),cR(e,t),ur(e,t,a,r),t.child;case 6:return e===null&&jm(t),null;case 13:return fR(e,t,r);case 4:return rg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=za(t,null,n,r):ur(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),_b(e,t,n,o,r);case 7:return ur(e,t,t.pendingProps,r),t.child;case 8:return ur(e,t,t.pendingProps.children,r),t.child;case 12:return ur(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,Ve(Dc,n._currentValue),n._currentValue=a,i!==null)if(wn(i.value,a)){if(i.children===o.children&&!wr.current){t=ho(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 u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=lo(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),zm(i.return,r,t),s.lanes|=r;break}u=u.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(ee(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),zm(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}ur(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,_a(t,r),o=tn(o),n=n(o),t.flags|=1,ur(e,t,n,r),t.child;case 14:return n=t.type,o=hn(n,t.pendingProps),o=hn(n.type,o),xb(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),ic(e,t),t.tag=1,_r(n)?(e=!0,Mc(t)):e=!1,_a(t,r),LC(t,n,o),Am(t,n,o,r),$m(null,t,n,!0,e,r);case 19:return hR(e,t,r);case 22:return uR(e,t,r)}throw Error(ee(156,t.tag))};function ER(e,t){return tC(e,t)}function N2(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 Jr(e,t,r,n){return new N2(e,t,r,n)}function gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function A2(e){if(typeof e=="function")return gg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mv)return 11;if(e===Lv)return 14}return 2}function $o(e,t){var r=e.alternate;return r===null?(r=Jr(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 lc(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")gg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case aa:return yi(r.children,o,i,t);case Av:a=8,o|=8;break;case im:return e=Jr(12,r,t,o|2),e.elementType=im,e.lanes=i,e;case am:return e=Jr(13,r,t,o),e.elementType=am,e.lanes=i,e;case sm:return e=Jr(19,r,t,o),e.elementType=sm,e.lanes=i,e;case $x:return Ld(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mx:a=10;break e;case Lx:a=9;break e;case Mv:a=11;break e;case Lv:a=14;break e;case wo:a=16,n=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=Jr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yi(e,t,r,n){return e=Jr(7,e,n,t),e.lanes=r,e}function Ld(e,t,r,n){return e=Jr(22,e,n,t),e.elementType=$x,e.lanes=r,e.stateNode={isHidden:!1},e}function Xh(e,t,r){return e=Jr(6,e,null,t),e.lanes=r,e}function Jh(e,t,r){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function M2(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=jh(0),this.expirationTimes=jh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yg(e,t,r,n,o,i,a,s,u){return e=new M2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},tg(i),e}function L2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zR)}catch(e){console.error(e)}}zR(),Ix.exports=Wr;var Wl=Ix.exports,Lb=Wl;nm.createRoot=Lb.createRoot,nm.hydrateRoot=Lb.hydrateRoot;/** * @remix-run/router v1.15.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _g(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function H2(){return Math.random().toString(36).substr(2,8)}function Db(e,t){return{usr:e.state,key:e.key,idx:t}}function Qm(e,t,r,n){return r===void 0&&(r=null),_l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rs(t):t,{state:r,key:t&&t.key||n||H2()})}function Qc(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 rs(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 q2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Eo.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(_l({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Eo.Pop;let C=d(),v=C==null?null:C-c;c=C,u&&u({action:s,location:g.location,delta:v})}function p(C,v){s=Eo.Push;let b=Qm(g.location,C,v);r&&r(b,C),c=d()+1;let x=Db(b,c),k=g.createHref(b);try{a.pushState(x,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(k)}i&&u&&u({action:s,location:g.location,delta:1})}function y(C,v){s=Eo.Replace;let b=Qm(g.location,C,v);r&&r(b,C),c=d();let x=Db(b,c),k=g.createHref(b);a.replaceState(x,"",k),i&&u&&u({action:s,location:g.location,delta:0})}function S(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:Qc(C);return Rt(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return s},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener($b,f),u=C,()=>{o.removeEventListener($b,f),u=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:y,go(C){return a.go(C)}};return g}var Fb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fb||(Fb={}));function G2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?rs(t):t,o=xg(n.pathname||"/",r);if(o==null)return null;let i=NR(e);V2(i);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Rt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Do([n,u.relativePath]),d=r.concat(u);i.children&&i.children.length>0&&(Rt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),NR(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:ej(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 u of AR(i.path))o(i,a,u)}),t}function AR(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=AR(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function V2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:tj(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const K2=/^:[\w-]+$/,Y2=3,Q2=2,X2=1,J2=10,Z2=-2,Bb=e=>e==="*";function ej(e,t){let r=e.split("/"),n=r.length;return r.some(Bb)&&(n+=Z2),t&&(n+=Q2),r.filter(o=>!Bb(o)).reduce((o,i)=>o+(K2.test(i)?Y2:i===""?X2:J2),n)}function tj(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 rj(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{let{paramName:p,isOptional:y}=d;if(p==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const S=s[f];return y&&!S?c[p]=void 0:c[p]=aj(S||"",p),c},{}),pathname:i,pathnameBase:a,pattern:e}}function oj(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),_g(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,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function ij(e){try{return decodeURI(e)}catch(t){return _g(!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 aj(e,t){try{return decodeURIComponent(e)}catch(r){return _g(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function xg(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 sj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?rs(e):e;return{pathname:r?r.startsWith("/")?r:lj(r,t):t,search:dj(n),hash:fj(o)}}function lj(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 Zh(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 uj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function MR(e,t){let r=uj(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function LR(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=rs(e):(o=_l({},e),Rt(!o.pathname||!o.pathname.includes("?"),Zh("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),Zh("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),Zh("#","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 u=sj(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Do=e=>e.join("/").replace(/\/\/+/g,"/"),cj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $R=["post","put","patch","delete"];new Set($R);const pj=["get",...$R];new Set(pj);/** + */function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _g(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function U2(){return Math.random().toString(36).substr(2,8)}function Db(e,t){return{usr:e.state,key:e.key,idx:t}}function Qm(e,t,r,n){return r===void 0&&(r=null),_l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rs(t):t,{state:r,key:t&&t.key||n||U2()})}function Qc(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 rs(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 H2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Eo.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(_l({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Eo.Pop;let C=d(),v=C==null?null:C-c;c=C,u&&u({action:s,location:g.location,delta:v})}function p(C,v){s=Eo.Push;let b=Qm(g.location,C,v);r&&r(b,C),c=d()+1;let x=Db(b,c),k=g.createHref(b);try{a.pushState(x,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(k)}i&&u&&u({action:s,location:g.location,delta:1})}function y(C,v){s=Eo.Replace;let b=Qm(g.location,C,v);r&&r(b,C),c=d();let x=Db(b,c),k=g.createHref(b);a.replaceState(x,"",k),i&&u&&u({action:s,location:g.location,delta:0})}function S(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:Qc(C);return Rt(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return s},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener($b,f),u=C,()=>{o.removeEventListener($b,f),u=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:y,go(C){return a.go(C)}};return g}var Fb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fb||(Fb={}));function q2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?rs(t):t,o=xg(n.pathname||"/",r);if(o==null)return null;let i=NR(e);G2(i);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Rt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Do([n,u.relativePath]),d=r.concat(u);i.children&&i.children.length>0&&(Rt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),NR(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Z2(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 u of AR(i.path))o(i,a,u)}),t}function AR(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=AR(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function G2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ej(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const V2=/^:[\w-]+$/,K2=3,Y2=2,Q2=1,X2=10,J2=-2,Bb=e=>e==="*";function Z2(e,t){let r=e.split("/"),n=r.length;return r.some(Bb)&&(n+=J2),t&&(n+=Y2),r.filter(o=>!Bb(o)).reduce((o,i)=>o+(V2.test(i)?K2:i===""?Q2:X2),n)}function ej(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 tj(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{let{paramName:p,isOptional:y}=d;if(p==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const S=s[f];return y&&!S?c[p]=void 0:c[p]=ij(S||"",p),c},{}),pathname:i,pathnameBase:a,pattern:e}}function nj(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),_g(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,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function oj(e){try{return decodeURI(e)}catch(t){return _g(!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 ij(e,t){try{return decodeURIComponent(e)}catch(r){return _g(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function xg(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 aj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?rs(e):e;return{pathname:r?r.startsWith("/")?r:sj(r,t):t,search:cj(n),hash:dj(o)}}function sj(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 Zh(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 lj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function MR(e,t){let r=lj(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function LR(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=rs(e):(o=_l({},e),Rt(!o.pathname||!o.pathname.includes("?"),Zh("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),Zh("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),Zh("#","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 u=aj(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Do=e=>e.join("/").replace(/\/\/+/g,"/"),uj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $R=["post","put","patch","delete"];new Set($R);const hj=["get",...$R];new Set(hj);/** * React Router v6.22.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xl(){return xl=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=LR(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Do([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,a,i,e])}const Sj=N.createContext(null);function bj(e){let t=N.useContext(Jo).outlet;return t&&N.createElement(Sj.Provider,{value:e},t)}function BR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=N.useContext(Mi),{matches:o}=N.useContext(Jo),{pathname:i}=Ud(),a=JSON.stringify(MR(o,n.v7_relativeSplatPath));return N.useMemo(()=>LR(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function wj(e,t){return _j(e,t)}function _j(e,t,r,n){Ul()||Rt(!1);let{navigator:o}=N.useContext(Mi),{matches:i}=N.useContext(Jo),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Ud(),d;if(t){var f;let C=typeof t=="string"?rs(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Rt(!1),d=C}else d=c;let p=d.pathname||"/",y=u==="/"?p:p.slice(u.length)||"/",S=G2(e,{pathname:y}),g=Pj(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Do([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Do([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,r,n);return t&&g?N.createElement(Wd.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Eo.Pop}},g):g}function xj(){let e=Ij(),t=hj(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 Cj=N.createElement(xj,null);class Rj 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(Jo.Provider,{value:this.props.routeContext},N.createElement(DR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kj(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(Cg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Jo.Provider,{value:t},n)}function Pj(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]));d>=0||Rt(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!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 y,S=!1,g=null,C=null;r&&(y=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Cj,u&&(c<0&&p===0?(zj("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 y?x=g:S?x=C:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(kj,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(Rj,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var WR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(WR||{}),Xc=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}(Xc||{});function Tj(e){let t=N.useContext(Cg);return t||Rt(!1),t}function Ej(e){let t=N.useContext(mj);return t||Rt(!1),t}function Oj(e){let t=N.useContext(Jo);return t||Rt(!1),t}function UR(e){let t=Oj(),r=t.matches[t.matches.length-1];return r.route.id||Rt(!1),r.route.id}function Ij(){var e;let t=N.useContext(DR),r=Ej(Xc.UseRouteError),n=UR(Xc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function jj(){let{router:e}=Tj(WR.UseNavigateStable),t=UR(Xc.UseNavigateStable),r=N.useRef(!1);return FR(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}const Wb={};function zj(e,t,r){!t&&!Wb[e]&&(Wb[e]=!0)}function Nj(e){return bj(e.context)}function Xt(e){Rt(!1)}function Aj(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Eo.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&Rt(!1);let u=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:u,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},s)}),[u,s,i,a]);typeof n=="string"&&(n=rs(n));let{pathname:d="/",search:f="",hash:p="",state:y=null,key:S="default"}=n,g=N.useMemo(()=>{let C=xg(d,u);return C==null?null:{location:{pathname:C,search:f,hash:p,state:y,key:S},navigationType:o}},[u,d,f,p,y,S,o]);return g==null?null:N.createElement(Mi.Provider,{value:c},N.createElement(Wd.Provider,{children:r,value:g}))}function Mj(e){let{children:t,location:r}=e;return wj(Xm(t),r)}new Promise(()=>{});function Xm(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,Xm(n.props.children,i));return}n.type!==Xt&&Rt(!1),!n.props.index||!n.props.children||Rt(!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=Xm(n.props.children,i)),r.push(a)}),r}/** + */function xl(){return xl=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=LR(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Do([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,a,i,e])}const yj=N.createContext(null);function Sj(e){let t=N.useContext(Jo).outlet;return t&&N.createElement(yj.Provider,{value:e},t)}function BR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=N.useContext(Mi),{matches:o}=N.useContext(Jo),{pathname:i}=Ud(),a=JSON.stringify(MR(o,n.v7_relativeSplatPath));return N.useMemo(()=>LR(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function bj(e,t){return wj(e,t)}function wj(e,t,r,n){Ul()||Rt(!1);let{navigator:o}=N.useContext(Mi),{matches:i}=N.useContext(Jo),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Ud(),d;if(t){var f;let C=typeof t=="string"?rs(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Rt(!1),d=C}else d=c;let p=d.pathname||"/",y=u==="/"?p:p.slice(u.length)||"/",S=q2(e,{pathname:y}),g=kj(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Do([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Do([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,r,n);return t&&g?N.createElement(Wd.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Eo.Pop}},g):g}function _j(){let e=Oj(),t=fj(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 xj=N.createElement(_j,null);class Cj 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(Jo.Provider,{value:this.props.routeContext},N.createElement(DR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Rj(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(Cg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Jo.Provider,{value:t},n)}function kj(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]));d>=0||Rt(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!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 y,S=!1,g=null,C=null;r&&(y=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||xj,u&&(c<0&&p===0?(jj("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 y?x=g:S?x=C:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(Rj,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(Cj,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var WR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(WR||{}),Xc=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}(Xc||{});function Pj(e){let t=N.useContext(Cg);return t||Rt(!1),t}function Tj(e){let t=N.useContext(pj);return t||Rt(!1),t}function Ej(e){let t=N.useContext(Jo);return t||Rt(!1),t}function UR(e){let t=Ej(),r=t.matches[t.matches.length-1];return r.route.id||Rt(!1),r.route.id}function Oj(){var e;let t=N.useContext(DR),r=Tj(Xc.UseRouteError),n=UR(Xc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Ij(){let{router:e}=Pj(WR.UseNavigateStable),t=UR(Xc.UseNavigateStable),r=N.useRef(!1);return FR(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}const Wb={};function jj(e,t,r){!t&&!Wb[e]&&(Wb[e]=!0)}function zj(e){return Sj(e.context)}function Xt(e){Rt(!1)}function Nj(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Eo.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&Rt(!1);let u=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:u,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},s)}),[u,s,i,a]);typeof n=="string"&&(n=rs(n));let{pathname:d="/",search:f="",hash:p="",state:y=null,key:S="default"}=n,g=N.useMemo(()=>{let C=xg(d,u);return C==null?null:{location:{pathname:C,search:f,hash:p,state:y,key:S},navigationType:o}},[u,d,f,p,y,S,o]);return g==null?null:N.createElement(Mi.Provider,{value:c},N.createElement(Wd.Provider,{children:r,value:g}))}function Aj(e){let{children:t,location:r}=e;return bj(Xm(t),r)}new Promise(()=>{});function Xm(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,Xm(n.props.children,i));return}n.type!==Xt&&Rt(!1),!n.props.index||!n.props.children||Rt(!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=Xm(n.props.children,i)),r.push(a)}),r}/** * React Router DOM v6.22.0 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function $j(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dj(e,t){return e.button===0&&(!t||t==="_self")&&!$j(e)}const Fj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Bj="6";try{window.__reactRouterVersion=Bj}catch{}const Wj="startTransition",Ub=Ea[Wj];function Uj(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=U2({window:o,v5Compat:!0}));let a=i.current,[s,u]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=N.useCallback(f=>{c&&Ub?Ub(()=>u(f)):u(f)},[u,c]);return N.useLayoutEffect(()=>a.listen(d),[a,d]),N.createElement(Aj,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const Hj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yr=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=Lj(t,Fj),{basename:y}=N.useContext(Mi),S,g=!1;if(typeof c=="string"&&qj.test(c)&&(S=c,Hj))try{let x=new URL(window.location.href),k=c.startsWith("//")?new URL(x.protocol+c):new URL(c),E=xg(k.pathname,y);k.origin===x.origin&&E!=null?c=E+k.search+k.hash:g=!0}catch{}let C=vj(c,{relative:o}),v=Gj(c,{replace:a,state:s,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function b(x){n&&n(x),x.defaultPrevented||v(x)}return N.createElement("a",Jm({},p,{href:S||C,onClick:g||i?n:b,ref:r,target:u}))});var Hb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hb||(Hb={}));var qb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qb||(qb={}));function Gj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,u=gj(),c=Ud(),d=BR(e,{relative:a});return N.useCallback(f=>{if(Dj(f,r)){f.preventDefault();let p=n!==void 0?n:Qc(c)===Qc(d);u(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,u,d,n,o,r,e,i,a,s])}var HR={exports:{}},qR={};/** + */function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Lj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $j(e,t){return e.button===0&&(!t||t==="_self")&&!Lj(e)}const Dj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Fj="6";try{window.__reactRouterVersion=Fj}catch{}const Bj="startTransition",Ub=Ea[Bj];function Wj(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=W2({window:o,v5Compat:!0}));let a=i.current,[s,u]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=N.useCallback(f=>{c&&Ub?Ub(()=>u(f)):u(f)},[u,c]);return N.useLayoutEffect(()=>a.listen(d),[a,d]),N.createElement(Nj,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const Uj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yr=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=Mj(t,Dj),{basename:y}=N.useContext(Mi),S,g=!1;if(typeof c=="string"&&Hj.test(c)&&(S=c,Uj))try{let x=new URL(window.location.href),k=c.startsWith("//")?new URL(x.protocol+c):new URL(c),E=xg(k.pathname,y);k.origin===x.origin&&E!=null?c=E+k.search+k.hash:g=!0}catch{}let C=mj(c,{relative:o}),v=qj(c,{replace:a,state:s,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function b(x){n&&n(x),x.defaultPrevented||v(x)}return N.createElement("a",Jm({},p,{href:S||C,onClick:g||i?n:b,ref:r,target:u}))});var Hb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hb||(Hb={}));var qb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qb||(qb={}));function qj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,u=vj(),c=Ud(),d=BR(e,{relative:a});return N.useCallback(f=>{if($j(f,r)){f.preventDefault();let p=n!==void 0?n:Qc(c)===Qc(d);u(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,u,d,n,o,r,e,i,a,s])}var HR={exports:{}},qR={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -72,7 +72,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var La=N;function Vj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kj=typeof Object.is=="function"?Object.is:Vj,Yj=La.useState,Qj=La.useEffect,Xj=La.useLayoutEffect,Jj=La.useDebugValue;function Zj(e,t){var r=t(),n=Yj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Xj(function(){o.value=r,o.getSnapshot=t,ep(o)&&i({inst:o})},[e,r,t]),Qj(function(){return ep(o)&&i({inst:o}),e(function(){ep(o)&&i({inst:o})})},[e]),Jj(r),r}function ep(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Kj(e,r)}catch{return!0}}function ez(e,t){return t()}var tz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ez:Zj;qR.useSyncExternalStore=La.useSyncExternalStore!==void 0?La.useSyncExternalStore:tz;HR.exports=qR;var rz=HR.exports,GR={exports:{}},VR={};/** + */var La=N;function Gj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vj=typeof Object.is=="function"?Object.is:Gj,Kj=La.useState,Yj=La.useEffect,Qj=La.useLayoutEffect,Xj=La.useDebugValue;function Jj(e,t){var r=t(),n=Kj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Qj(function(){o.value=r,o.getSnapshot=t,ep(o)&&i({inst:o})},[e,r,t]),Yj(function(){return ep(o)&&i({inst:o}),e(function(){ep(o)&&i({inst:o})})},[e]),Xj(r),r}function ep(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Vj(e,r)}catch{return!0}}function Zj(e,t){return t()}var ez=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zj:Jj;qR.useSyncExternalStore=La.useSyncExternalStore!==void 0?La.useSyncExternalStore:ez;HR.exports=qR;var tz=HR.exports,GR={exports:{}},VR={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -80,14 +80,14 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Hd=N,nz=rz;function oz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iz=typeof Object.is=="function"?Object.is:oz,az=nz.useSyncExternalStore,sz=Hd.useRef,lz=Hd.useEffect,uz=Hd.useMemo,cz=Hd.useDebugValue;VR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=sz(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=uz(function(){function u(y){if(!c){if(c=!0,d=y,y=n(y),o!==void 0&&a.hasValue){var S=a.value;if(o(S,y))return f=S}return f=y}if(S=f,iz(d,y))return S;var g=n(y);return o!==void 0&&o(S,g)?S:(d=y,f=g)}var c=!1,d,f,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,n,o]);var s=az(e,i[0],i[1]);return lz(function(){a.hasValue=!0,a.value=s},[s]),cz(s),s};GR.exports=VR;var dz=GR.exports;function fz(e){e()}let KR=fz;const hz=e=>KR=e,pz=()=>KR,Gb=Symbol.for("react-redux-context"),Vb=typeof globalThis<"u"?globalThis:{};function mz(){var e;if(!N.createContext)return{};const t=(e=Vb[Gb])!=null?e:Vb[Gb]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const qo=mz();function Rg(e=qo){return function(){return N.useContext(e)}}const YR=Rg(),vz=()=>{throw new Error("uSES not initialized!")};let QR=vz;const gz=e=>{QR=e},yz=(e,t)=>e===t;function Sz(e=qo){const t=e===qo?YR:Rg(e);return function(n,o={}){const{equalityFn:i=yz,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:c,getServerState:d,stabilityCheck:f,noopCheck:p}=t();N.useRef(!0);const y=N.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),S=QR(c.addNestedSub,u.getState,d||u.getState,y,i);return N.useDebugValue(S),S}}const Ee=Sz();function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var XR={exports:{}},We={};/** @license React v16.13.1 + */var Hd=N,rz=tz;function nz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oz=typeof Object.is=="function"?Object.is:nz,iz=rz.useSyncExternalStore,az=Hd.useRef,sz=Hd.useEffect,lz=Hd.useMemo,uz=Hd.useDebugValue;VR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=az(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=lz(function(){function u(y){if(!c){if(c=!0,d=y,y=n(y),o!==void 0&&a.hasValue){var S=a.value;if(o(S,y))return f=S}return f=y}if(S=f,oz(d,y))return S;var g=n(y);return o!==void 0&&o(S,g)?S:(d=y,f=g)}var c=!1,d,f,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,n,o]);var s=iz(e,i[0],i[1]);return sz(function(){a.hasValue=!0,a.value=s},[s]),uz(s),s};GR.exports=VR;var cz=GR.exports;function dz(e){e()}let KR=dz;const fz=e=>KR=e,hz=()=>KR,Gb=Symbol.for("react-redux-context"),Vb=typeof globalThis<"u"?globalThis:{};function pz(){var e;if(!N.createContext)return{};const t=(e=Vb[Gb])!=null?e:Vb[Gb]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const qo=pz();function Rg(e=qo){return function(){return N.useContext(e)}}const YR=Rg(),mz=()=>{throw new Error("uSES not initialized!")};let QR=mz;const vz=e=>{QR=e},gz=(e,t)=>e===t;function yz(e=qo){const t=e===qo?YR:Rg(e);return function(n,o={}){const{equalityFn:i=gz,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:c,getServerState:d,stabilityCheck:f,noopCheck:p}=t();N.useRef(!0);const y=N.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),S=QR(c.addNestedSub,u.getState,d||u.getState,y,i);return N.useDebugValue(S),S}}const Ee=yz();function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var XR={exports:{}},We={};/** @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,kg=Mt?Symbol.for("react.element"):60103,Pg=Mt?Symbol.for("react.portal"):60106,qd=Mt?Symbol.for("react.fragment"):60107,Gd=Mt?Symbol.for("react.strict_mode"):60108,Vd=Mt?Symbol.for("react.profiler"):60114,Kd=Mt?Symbol.for("react.provider"):60109,Yd=Mt?Symbol.for("react.context"):60110,Tg=Mt?Symbol.for("react.async_mode"):60111,Qd=Mt?Symbol.for("react.concurrent_mode"):60111,Xd=Mt?Symbol.for("react.forward_ref"):60112,Jd=Mt?Symbol.for("react.suspense"):60113,bz=Mt?Symbol.for("react.suspense_list"):60120,Zd=Mt?Symbol.for("react.memo"):60115,ef=Mt?Symbol.for("react.lazy"):60116,wz=Mt?Symbol.for("react.block"):60121,_z=Mt?Symbol.for("react.fundamental"):60117,xz=Mt?Symbol.for("react.responder"):60118,Cz=Mt?Symbol.for("react.scope"):60119;function Hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kg:switch(e=e.type,e){case Tg:case Qd:case qd:case Vd:case Gd:case Jd:return e;default:switch(e=e&&e.$$typeof,e){case Yd:case Xd:case ef:case Zd:case Kd:return e;default:return t}}case Pg:return t}}}function JR(e){return Hr(e)===Qd}We.AsyncMode=Tg;We.ConcurrentMode=Qd;We.ContextConsumer=Yd;We.ContextProvider=Kd;We.Element=kg;We.ForwardRef=Xd;We.Fragment=qd;We.Lazy=ef;We.Memo=Zd;We.Portal=Pg;We.Profiler=Vd;We.StrictMode=Gd;We.Suspense=Jd;We.isAsyncMode=function(e){return JR(e)||Hr(e)===Tg};We.isConcurrentMode=JR;We.isContextConsumer=function(e){return Hr(e)===Yd};We.isContextProvider=function(e){return Hr(e)===Kd};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kg};We.isForwardRef=function(e){return Hr(e)===Xd};We.isFragment=function(e){return Hr(e)===qd};We.isLazy=function(e){return Hr(e)===ef};We.isMemo=function(e){return Hr(e)===Zd};We.isPortal=function(e){return Hr(e)===Pg};We.isProfiler=function(e){return Hr(e)===Vd};We.isStrictMode=function(e){return Hr(e)===Gd};We.isSuspense=function(e){return Hr(e)===Jd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qd||e===Qd||e===Vd||e===Gd||e===Jd||e===bz||typeof e=="object"&&e!==null&&(e.$$typeof===ef||e.$$typeof===Zd||e.$$typeof===Kd||e.$$typeof===Yd||e.$$typeof===Xd||e.$$typeof===_z||e.$$typeof===xz||e.$$typeof===Cz||e.$$typeof===wz)};We.typeOf=Hr;XR.exports=We;var Rz=XR.exports,ZR=Rz,kz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ek={};ek[ZR.ForwardRef]=kz;ek[ZR.Memo]=Pz;var He={};/** + */var Mt=typeof Symbol=="function"&&Symbol.for,kg=Mt?Symbol.for("react.element"):60103,Pg=Mt?Symbol.for("react.portal"):60106,qd=Mt?Symbol.for("react.fragment"):60107,Gd=Mt?Symbol.for("react.strict_mode"):60108,Vd=Mt?Symbol.for("react.profiler"):60114,Kd=Mt?Symbol.for("react.provider"):60109,Yd=Mt?Symbol.for("react.context"):60110,Tg=Mt?Symbol.for("react.async_mode"):60111,Qd=Mt?Symbol.for("react.concurrent_mode"):60111,Xd=Mt?Symbol.for("react.forward_ref"):60112,Jd=Mt?Symbol.for("react.suspense"):60113,Sz=Mt?Symbol.for("react.suspense_list"):60120,Zd=Mt?Symbol.for("react.memo"):60115,ef=Mt?Symbol.for("react.lazy"):60116,bz=Mt?Symbol.for("react.block"):60121,wz=Mt?Symbol.for("react.fundamental"):60117,_z=Mt?Symbol.for("react.responder"):60118,xz=Mt?Symbol.for("react.scope"):60119;function Hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kg:switch(e=e.type,e){case Tg:case Qd:case qd:case Vd:case Gd:case Jd:return e;default:switch(e=e&&e.$$typeof,e){case Yd:case Xd:case ef:case Zd:case Kd:return e;default:return t}}case Pg:return t}}}function JR(e){return Hr(e)===Qd}We.AsyncMode=Tg;We.ConcurrentMode=Qd;We.ContextConsumer=Yd;We.ContextProvider=Kd;We.Element=kg;We.ForwardRef=Xd;We.Fragment=qd;We.Lazy=ef;We.Memo=Zd;We.Portal=Pg;We.Profiler=Vd;We.StrictMode=Gd;We.Suspense=Jd;We.isAsyncMode=function(e){return JR(e)||Hr(e)===Tg};We.isConcurrentMode=JR;We.isContextConsumer=function(e){return Hr(e)===Yd};We.isContextProvider=function(e){return Hr(e)===Kd};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kg};We.isForwardRef=function(e){return Hr(e)===Xd};We.isFragment=function(e){return Hr(e)===qd};We.isLazy=function(e){return Hr(e)===ef};We.isMemo=function(e){return Hr(e)===Zd};We.isPortal=function(e){return Hr(e)===Pg};We.isProfiler=function(e){return Hr(e)===Vd};We.isStrictMode=function(e){return Hr(e)===Gd};We.isSuspense=function(e){return Hr(e)===Jd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qd||e===Qd||e===Vd||e===Gd||e===Jd||e===Sz||typeof e=="object"&&e!==null&&(e.$$typeof===ef||e.$$typeof===Zd||e.$$typeof===Kd||e.$$typeof===Yd||e.$$typeof===Xd||e.$$typeof===wz||e.$$typeof===_z||e.$$typeof===xz||e.$$typeof===bz)};We.typeOf=Hr;XR.exports=We;var Cz=XR.exports,ZR=Cz,Rz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ek={};ek[ZR.ForwardRef]=Rz;ek[ZR.Memo]=kz;var He={};/** * @license React * react-is.production.min.js * @@ -95,13 +95,13 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Eg=Symbol.for("react.element"),Og=Symbol.for("react.portal"),tf=Symbol.for("react.fragment"),rf=Symbol.for("react.strict_mode"),nf=Symbol.for("react.profiler"),of=Symbol.for("react.provider"),af=Symbol.for("react.context"),Tz=Symbol.for("react.server_context"),sf=Symbol.for("react.forward_ref"),lf=Symbol.for("react.suspense"),uf=Symbol.for("react.suspense_list"),cf=Symbol.for("react.memo"),df=Symbol.for("react.lazy"),Ez=Symbol.for("react.offscreen"),tk;tk=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eg:switch(e=e.type,e){case tf:case nf:case rf:case lf:case uf:return e;default:switch(e=e&&e.$$typeof,e){case Tz:case af:case sf:case df:case cf:case of:return e;default:return t}}case Og:return t}}}He.ContextConsumer=af;He.ContextProvider=of;He.Element=Eg;He.ForwardRef=sf;He.Fragment=tf;He.Lazy=df;He.Memo=cf;He.Portal=Og;He.Profiler=nf;He.StrictMode=rf;He.Suspense=lf;He.SuspenseList=uf;He.isAsyncMode=function(){return!1};He.isConcurrentMode=function(){return!1};He.isContextConsumer=function(e){return an(e)===af};He.isContextProvider=function(e){return an(e)===of};He.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eg};He.isForwardRef=function(e){return an(e)===sf};He.isFragment=function(e){return an(e)===tf};He.isLazy=function(e){return an(e)===df};He.isMemo=function(e){return an(e)===cf};He.isPortal=function(e){return an(e)===Og};He.isProfiler=function(e){return an(e)===nf};He.isStrictMode=function(e){return an(e)===rf};He.isSuspense=function(e){return an(e)===lf};He.isSuspenseList=function(e){return an(e)===uf};He.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tf||e===nf||e===rf||e===lf||e===uf||e===Ez||typeof e=="object"&&e!==null&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===of||e.$$typeof===af||e.$$typeof===sf||e.$$typeof===tk||e.getModuleId!==void 0)};He.typeOf=an;function Oz(){const e=pz();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 Kb={notify(){},get:()=>[]};function Iz(e,t){let r,n=Kb,o=0,i=!1;function a(g){d();const C=n.subscribe(g);let v=!1;return()=>{v||(v=!0,C(),f())}}function s(){n.notify()}function u(){S.onStateChange&&S.onStateChange()}function c(){return i}function d(){o++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Oz())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Kb)}function p(){i||(i=!0,d())}function y(){i&&(i=!1,f())}const S={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>n};return S}const jz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zz=jz?N.useLayoutEffect:N.useEffect;function Nz({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=Iz(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]);zz(()=>{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 u=t||qo;return N.createElement(u.Provider,{value:a},r)}function rk(e=qo){const t=e===qo?YR:Rg(e);return function(){const{store:n}=t();return n}}const Az=rk();function Mz(e=qo){const t=e===qo?Az:rk(e);return function(){return t().dispatch}}const Hl=Mz();gz(dz.useSyncExternalStoreWithSelector);hz(Wl.unstable_batchedUpdates);function gn(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:Ig(e)?2:jg(e)?3:0}function Ca(e,t){return ns(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lz(e,t){return ns(e)===2?e.get(t):e[t]}function nk(e,t,r){var n=ns(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ok(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ig(e){return Uz&&e instanceof Map}function jg(e){return Hz&&e instanceof Set}function ui(e){return e.o||e.t}function zg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ak(e);delete t[tt];for(var r=Ra(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=$z),Object.freeze(e),t&&Ti(e,function(r,n){return Ng(n,!0)},!0)),e}function $z(){gn(2)}function Ag(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dn(e){var t=rv[e];return t||gn(18,e),t}function Dz(e,t){rv[e]||(rv[e]=t)}function Zm(){return Cl}function tp(e,t){t&&(Dn("Patches"),e.u=[],e.s=[],e.v=t)}function Jc(e){ev(e),e.p.forEach(Fz),e.p=null}function ev(e){e===Cl&&(Cl=e.l)}function Yb(e){return Cl={p:[],l:Cl,h:e,m:!0,_:0}}function Fz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function rp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Dn("ES5").S(t,e,n),n?(r[tt].P&&(Jc(t),gn(4)),po(e)&&(e=Zc(t,e),t.l||ed(t,e)),t.u&&Dn("Patches").M(r[tt].t,e,t.u,t.s)):e=Zc(t,r,[]),Jc(t),t.u&&t.v(t.u,t.s),e!==ik?e:void 0}function Zc(e,t,r){if(Ag(t))return t;var n=t[tt];if(!n)return Ti(t,function(s,u){return Qb(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ed(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=zg(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),Ti(i,function(s,u){return Qb(e,n,o,s,u,r,a)}),ed(e,o,!1),r&&e.u&&Dn("Patches").N(n,r,e.u,e.s)}return n.o}function Qb(e,t,r,n,o,i,a){if(Go(o)){var s=Zc(e,o,i&&t&&t.i!==3&&!Ca(t.R,n)?i.concat(n):void 0);if(nk(r,n,s),!Go(s))return;e.m=!1}else a&&r.add(o);if(po(o)&&!Ag(o)){if(!e.h.D&&e._<1)return;Zc(e,o),t&&t.A.l||ed(e,o)}}function ed(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ng(t,r)}function np(e,t){var r=e[tt];return(r?ui(r):e)[t]}function Xb(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 Ro(e){e.P||(e.P=!0,e.l&&Ro(e.l))}function op(e){e.o||(e.o=zg(e.t))}function tv(e,t,r){var n=Ig(t)?Dn("MapSet").F(t,r):jg(t)?Dn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Zm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=Rl;a&&(u=[s],c=Ls);var d=Proxy.revocable(u,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,r):Dn("ES5").J(t,r);return(r?r.A:Zm()).p.push(n),n}function Bz(e){return Go(e)||gn(22,e),function t(r){if(!po(r))return r;var n,o=r[tt],i=ns(r);if(o){if(!o.P&&(o.i<4||!Dn("ES5").K(o)))return o.t;o.I=!0,n=Jb(r,i),o.I=!1}else n=Jb(r,i);return Ti(n,function(a,s){o&&Lz(o.t,a)===s||nk(n,a,t(s))}),i===3?new Set(n):n}(e)}function Jb(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zg(e)}function Wz(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var u=this[tt];return Rl.get(u,i)},set:function(u){var c=this[tt];Rl.set(c,i,u)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][tt];if(!s.P)switch(s.i){case 5:n(s)&&Ro(s);break;case 4:r(s)&&Ro(s)}}}function r(i){for(var a=i.t,s=i.k,u=Ra(s),c=u.length-1;c>=0;c--){var d=u[c];if(d!==tt){var f=a[d];if(f===void 0&&!Ca(a,d))return!0;var p=s[d],y=p&&p[tt];if(y?y.t!==f:!ok(p,f))return!0}}var S=!!a[tt];return u.length!==Ra(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 u=0;u1?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=Dn("Patches").$;return Go(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Br=new Gz,sk=Br.produce;Br.produceWithPatches.bind(Br);Br.setAutoFreeze.bind(Br);Br.setUseProxies.bind(Br);Br.applyPatches.bind(Br);Br.createDraft.bind(Br);Br.finishDraft.bind(Br);function $a(e){"@babel/helpers - typeof";return $a=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},$a(e)}function Vz(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lk(e){var t=Vz(e,"string");return $a(t)=="symbol"?t:String(t)}function D(e,t,r){return t=lk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(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 n1(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(er(1));return r(Lg)(e,t)}if(typeof e!="function")throw new Error(er(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function d(){if(u)throw new Error(er(3));return i}function f(g){if(typeof g!="function")throw new Error(er(4));if(u)throw new Error(er(5));var C=!0;return c(),s.push(g),function(){if(C){if(u)throw new Error(er(6));C=!1,c();var b=s.indexOf(g);s.splice(b,1),a=null}}}function p(g){if(!Kz(g))throw new Error(er(7));if(typeof g.type>"u")throw new Error(er(8));if(u)throw new Error(er(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var C=a=s,v=0;v"u")throw new Error(er(12));if(typeof r(void 0,{type:td.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(er(13))})}function uk(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(er(14));f[y]=C,d=d||C!==g}return d=d||i.length!==Object.keys(u).length,d?f:u}}function rd(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return nd}function o(s,u){n(s)===nd&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var Zz=function(t,r){return t===r};function eN(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.push({path:t.payload.path,tables:t.payload.tables})}},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:ON,updateNodesInfoInCurrentSession:IN,setActiveSessionPin:jN,setActiveNodeId:zN,addOrUpdateNodeVersion:NN,addOrUpdateNodeFlags:AN,addOrUpdateCmdLineArgs:MN,addOrUpdateNodeLogs:LN,addOrUpdateSyncStages:$N,setLogWithNameSelected:DN,addOrUpdateDBs:FN,addOrUpdateDBTable:BN,addOrUpdateReorg:WN,resetAppStateToMockState:UN}=pk.actions,mk=e=>e.app.sessions,Dg=e=>e.app.activeSessionPin,kt=e=>e.app.activeNodeId,vk=e=>e.app.nodeVersions,HN=e=>e.app.flags,qN=e=>e.app.cmdLineArgs,GN=e=>e.app.nodeLogs,VN=e=>e.app.syncStages,KN=e=>e.app.dbs,YN=e=>e.app.reorgs,gk=Ue([mk,Dg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Fg=Ue([gk],e=>{let t=[];return e!=null&&(t=e.nodes),t}),QN=Ue([mk,Dg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),XN=Ue([Fg,kt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),JN=Ue([Fg,kt,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}),ZN=Ue([Fg,kt,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}),eA=Ue([HN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),tA=Ue([qN,kt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),rA=Ue([GN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),nA=Ue([VN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),yk=Ue([KN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),oA=Ue([YN,kt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),iA=pk.reducer,Ps=({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",u="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===fv.Command?a=a+" "+c:i===fv.Reorgs?a=a+" "+d:a=a+" "+f,i===t?a+" "+s:a+" "+u};return m.jsx("button",{className:o(e),onClick:()=>{n(e)},"data-testid":r,children:e})},aA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),sA=({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.default)})]},e.flag)};var Bg={},Sk={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})(Sk);var nt=Sk.exports,lp={};function ko(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 bk(e){if(!ko(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=bk(e[r])}),t}function bn(e,t,r={clone:!0}){const n=r.clone?te({},e):e;return ko(e)&&ko(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ko(t[o])&&o in e&&ko(e[o])?n[o]=bn(e[o],t[o],r):r.clone?n[o]=ko(t[o])?bk(t[o]):t[o]:n[o]=t[o])}),n}var up={exports:{}},cp,c1;function lA(){if(c1)return cp;c1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cp=e,cp}var dp,d1;function uA(){if(d1)return dp;d1=1;var e=lA();function t(){}function r(){}return r.resetWarningCache=t,dp=function(){function n(a,s,u,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},dp}var f1;function wk(){return f1||(f1=1,up.exports=uA()()),up.exports}wk();function Fa(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 dA(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 fA(e,t){return()=>null}function hA(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 _k(e){return e&&e.ownerDocument||document}function pA(e){return _k(e).defaultView||window}function mA(e,t){return()=>null}function xk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const vA=typeof window<"u"?N.useLayoutEffect:N.useEffect,Ck=vA;let h1=0;function gA(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(h1+=1,r(`mui-${h1}`))},[t]),n}const p1=Ea["useId".toString()];function yA(e){if(p1!==void 0){const t=p1();return e??t}return gA(e)}function SA(e,t,r,n,o){return null}function Rk({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,u=N.useCallback(c=>{o||a(c)},[]);return[s,u]}function $s(e){const t=N.useRef(e);return Ck(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function ov(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{xk(r,t)})},e)}const m1={};function bA(e,t){const r=N.useRef(m1);return r.current===m1&&(r.current=e(t)),r}const wA=[];function _A(e){N.useEffect(e,wA)}class ff{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ff}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function xA(){const e=bA(ff.create).current;return _A(e.disposeEffect),e}let hf=!0,iv=!1;const CA=new ff,RA={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 kA(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&RA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function PA(e){e.metaKey||e.altKey||e.ctrlKey||(hf=!0)}function fp(){hf=!1}function TA(){this.visibilityState==="hidden"&&iv&&(hf=!0)}function EA(e){e.addEventListener("keydown",PA,!0),e.addEventListener("mousedown",fp,!0),e.addEventListener("pointerdown",fp,!0),e.addEventListener("touchstart",fp,!0),e.addEventListener("visibilitychange",TA,!0)}function OA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return hf||kA(t)}function kk(){const e=N.useCallback(o=>{o!=null&&EA(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(iv=!0,CA.start(100,()=>{iv=!1}),t.current=!1,!0):!1}function n(o){return OA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Pk(e,t){const r=te({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=te({},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]=te({},i),Object.keys(o).forEach(a=>{r[n][a]=Pk(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function qn(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 v1=e=>e,IA=()=>{let e=v1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=v1}}},jA=IA(),Tk=jA,zA={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 xn(e,t,r="Mui"){const n=zA[t];return n?`${r}-${n}`:`${Tk.generate(e)}-${t}`}function Gn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=xn(e,o,r)}),n}function NA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ek(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;t0?Ft(os,--kr):0,Ba--,_t===10&&(Ba=1,mf--),_t}function Lr(){return _t=kr2||Pl(_t)>3?"":" "}function QA(e,t){for(;--t&&Lr()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Gl(e,uc()+(t<6&&Fn()==32&&Lr()==32))}function sv(e){for(;Lr();)switch(_t){case e:return kr;case 34:case 39:e!==34&&e!==39&&sv(_t);break;case 40:e===41&&sv(e);break;case 92:Lr();break}return kr}function XA(e,t){for(;Lr()&&e+_t!==47+10;)if(e+_t===42+42&&Fn()===47)break;return"/*"+Gl(t,kr-1)+"*"+pf(e===47?e:Lr())}function JA(e){for(;!Pl(Fn());)Lr();return Gl(e,kr)}function ZA(e){return Mk(dc("",null,null,null,[""],e=Ak(e),0,[0],e))}function dc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,x="",k=o,E=i,O=n,_=x;C;)switch(S=b,b=Lr()){case 40:if(S!=108&&Ft(_,f-1)==58){av(_+=Me(cc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=cc(b);break;case 9:case 10:case 13:case 32:_+=YA(S);break;case 92:_+=QA(uc()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Mu(eM(XA(Lr(),uc()),t,r),u);break;default:_+="/"}break;case 123*g:s[c++]=jn(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:v==-1&&(_=Me(_,/\f/g,"")),y>0&&jn(_)-f&&Mu(y>32?y1(_+";",n,r,f-1):y1(Me(_," ","")+";",n,r,f-2),u);break;case 59:_+=";";default:if(Mu(O=g1(_,t,r,c,d,o,s,x,k=[],E=[],f),i),b===123)if(d===0)dc(_,t,O,O,k,i,f,s,E);else switch(p===99&&Ft(_,3)===110?100:p){case 100:case 108:case 109:case 115:dc(e,O,O,n&&Mu(g1(e,O,O,0,0,o,s,x,o,k=[],f),E),o,E,f,s,n?k:E);break;default:dc(_,O,O,O,[""],E,0,s,E)}}c=d=y=0,g=v=1,x=_="",f=a;break;case 58:f=1+jn(_),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&KA()==125)continue}switch(_+=pf(b),b*g){case 38:v=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(jn(_)-1)*v,v=1;break;case 64:Fn()===45&&(_+=cc(Lr())),p=Fn(),d=f=jn(x=_+=JA(uc())),b++;break;case 45:S===45&&jn(_)==2&&(g=0)}}return i}function g1(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=Hg(p),S=0,g=0,C=0;S0?p[v]+" "+b:Me(b,/&\f/g,p[v])))&&(u[C++]=x);return vf(e,t,r,o===0?Wg:s,u,c,d)}function eM(e,t,r){return vf(e,t,r,Ik,pf(VA()),kl(e,2,-2),0)}function y1(e,t,r,n){return vf(e,t,r,Ug,kl(e,0,n),kl(e,n+1,-1),n)}function ka(e,t){for(var r="",n=Hg(e),o=0;o6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+od+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~av(e,"stretch")?Lk(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ft(e,t+1)!==115)break;case 6444:switch(Ft(e,jn(e)-3-(~av(e,"!important")&&10))){case 107:return Me(e,":",":"+Ne)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Ft(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Jt+e+e}return e}var uM=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ug:t.return=Lk(t.value,t.length);break;case jk:return ka([Ts(t,{value:Me(t.value,"@","@"+Ne)})],o);case Wg:if(t.length)return GA(t.props,function(i){switch(qA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ka([Ts(t,{props:[Me(i,/:(read-\w+)/,":"+od+"$1")]})],o);case"::placeholder":return ka([Ts(t,{props:[Me(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),Ts(t,{props:[Me(i,/:(plac\w+)/,":"+od+"$1")]}),Ts(t,{props:[Me(i,/:(plac\w+)/,Jt+"input-$1")]})],o)}return""})}},cM=[uM],dM=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(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||cM,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var C=g.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 vM={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},gM=/[A-Z]|^ms/g,yM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dk=function(t){return t.charCodeAt(1)===45},b1=function(t){return t!=null&&typeof t!="boolean"},hp=Ok(function(e){return Dk(e)?e:e.replace(gM,"-$&").toLowerCase()}),w1=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(yM,function(n,o,i){return zn={name:o,styles:i,next:zn},o})}return vM[t]!==1&&!Dk(t)&&typeof r=="number"&&r!==0?r+"px":r};function Tl(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 zn={name:r.name,styles:r.styles,next:zn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)zn={name:n.name,styles:n.styles,next:zn},n=n.next;var o=r.styles+";";return o}return SM(e,t,r)}case"function":{if(e!==void 0){var i=zn,a=r(e);return zn=i,Tl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function SM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?RM:kM},C1=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},PM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return $k(r,n,o),_M(function(){return pM(r,n,o)}),null},TM=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=C1(t,r,n),u=s||x1(o),c=!u("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,y=1;y{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 Kb={notify(){},get:()=>[]};function Oz(e,t){let r,n=Kb,o=0,i=!1;function a(g){d();const C=n.subscribe(g);let v=!1;return()=>{v||(v=!0,C(),f())}}function s(){n.notify()}function u(){S.onStateChange&&S.onStateChange()}function c(){return i}function d(){o++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Ez())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Kb)}function p(){i||(i=!0,d())}function y(){i&&(i=!1,f())}const S={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>n};return S}const Iz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jz=Iz?N.useLayoutEffect:N.useEffect;function zz({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=Oz(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]);jz(()=>{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 u=t||qo;return N.createElement(u.Provider,{value:a},r)}function rk(e=qo){const t=e===qo?YR:Rg(e);return function(){const{store:n}=t();return n}}const Nz=rk();function Az(e=qo){const t=e===qo?Nz:rk(e);return function(){return t().dispatch}}const Hl=Az();vz(cz.useSyncExternalStoreWithSelector);fz(Wl.unstable_batchedUpdates);function gn(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:Ig(e)?2:jg(e)?3:0}function Ca(e,t){return ns(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Mz(e,t){return ns(e)===2?e.get(t):e[t]}function nk(e,t,r){var n=ns(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ok(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ig(e){return Wz&&e instanceof Map}function jg(e){return Uz&&e instanceof Set}function ui(e){return e.o||e.t}function zg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ak(e);delete t[tt];for(var r=Ra(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Lz),Object.freeze(e),t&&Ti(e,function(r,n){return Ng(n,!0)},!0)),e}function Lz(){gn(2)}function Ag(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dn(e){var t=rv[e];return t||gn(18,e),t}function $z(e,t){rv[e]||(rv[e]=t)}function Zm(){return Cl}function tp(e,t){t&&(Dn("Patches"),e.u=[],e.s=[],e.v=t)}function Jc(e){ev(e),e.p.forEach(Dz),e.p=null}function ev(e){e===Cl&&(Cl=e.l)}function Yb(e){return Cl={p:[],l:Cl,h:e,m:!0,_:0}}function Dz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function rp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Dn("ES5").S(t,e,n),n?(r[tt].P&&(Jc(t),gn(4)),po(e)&&(e=Zc(t,e),t.l||ed(t,e)),t.u&&Dn("Patches").M(r[tt].t,e,t.u,t.s)):e=Zc(t,r,[]),Jc(t),t.u&&t.v(t.u,t.s),e!==ik?e:void 0}function Zc(e,t,r){if(Ag(t))return t;var n=t[tt];if(!n)return Ti(t,function(s,u){return Qb(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ed(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=zg(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),Ti(i,function(s,u){return Qb(e,n,o,s,u,r,a)}),ed(e,o,!1),r&&e.u&&Dn("Patches").N(n,r,e.u,e.s)}return n.o}function Qb(e,t,r,n,o,i,a){if(Go(o)){var s=Zc(e,o,i&&t&&t.i!==3&&!Ca(t.R,n)?i.concat(n):void 0);if(nk(r,n,s),!Go(s))return;e.m=!1}else a&&r.add(o);if(po(o)&&!Ag(o)){if(!e.h.D&&e._<1)return;Zc(e,o),t&&t.A.l||ed(e,o)}}function ed(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ng(t,r)}function np(e,t){var r=e[tt];return(r?ui(r):e)[t]}function Xb(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 Ro(e){e.P||(e.P=!0,e.l&&Ro(e.l))}function op(e){e.o||(e.o=zg(e.t))}function tv(e,t,r){var n=Ig(t)?Dn("MapSet").F(t,r):jg(t)?Dn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Zm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=Rl;a&&(u=[s],c=Ls);var d=Proxy.revocable(u,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,r):Dn("ES5").J(t,r);return(r?r.A:Zm()).p.push(n),n}function Fz(e){return Go(e)||gn(22,e),function t(r){if(!po(r))return r;var n,o=r[tt],i=ns(r);if(o){if(!o.P&&(o.i<4||!Dn("ES5").K(o)))return o.t;o.I=!0,n=Jb(r,i),o.I=!1}else n=Jb(r,i);return Ti(n,function(a,s){o&&Mz(o.t,a)===s||nk(n,a,t(s))}),i===3?new Set(n):n}(e)}function Jb(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zg(e)}function Bz(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var u=this[tt];return Rl.get(u,i)},set:function(u){var c=this[tt];Rl.set(c,i,u)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][tt];if(!s.P)switch(s.i){case 5:n(s)&&Ro(s);break;case 4:r(s)&&Ro(s)}}}function r(i){for(var a=i.t,s=i.k,u=Ra(s),c=u.length-1;c>=0;c--){var d=u[c];if(d!==tt){var f=a[d];if(f===void 0&&!Ca(a,d))return!0;var p=s[d],y=p&&p[tt];if(y?y.t!==f:!ok(p,f))return!0}}var S=!!a[tt];return u.length!==Ra(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 u=0;u1?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=Dn("Patches").$;return Go(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Br=new qz,sk=Br.produce;Br.produceWithPatches.bind(Br);Br.setAutoFreeze.bind(Br);Br.setUseProxies.bind(Br);Br.applyPatches.bind(Br);Br.createDraft.bind(Br);Br.finishDraft.bind(Br);function $a(e){"@babel/helpers - typeof";return $a=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},$a(e)}function Gz(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lk(e){var t=Gz(e,"string");return $a(t)=="symbol"?t:String(t)}function D(e,t,r){return t=lk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(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 n1(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(er(1));return r(Lg)(e,t)}if(typeof e!="function")throw new Error(er(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function d(){if(u)throw new Error(er(3));return i}function f(g){if(typeof g!="function")throw new Error(er(4));if(u)throw new Error(er(5));var C=!0;return c(),s.push(g),function(){if(C){if(u)throw new Error(er(6));C=!1,c();var b=s.indexOf(g);s.splice(b,1),a=null}}}function p(g){if(!Vz(g))throw new Error(er(7));if(typeof g.type>"u")throw new Error(er(8));if(u)throw new Error(er(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var C=a=s,v=0;v"u")throw new Error(er(12));if(typeof r(void 0,{type:td.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(er(13))})}function uk(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(er(14));f[y]=C,d=d||C!==g}return d=d||i.length!==Object.keys(u).length,d?f:u}}function rd(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return nd}function o(s,u){n(s)===nd&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var Jz=function(t,r){return t===r};function Zz(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.push({path:t.payload.path,tables:t.payload.tables})}},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:EN,updateNodesInfoInCurrentSession:ON,setActiveSessionPin:IN,setActiveNodeId:jN,addOrUpdateNodeVersion:zN,addOrUpdateNodeFlags:NN,addOrUpdateCmdLineArgs:AN,addOrUpdateNodeLogs:MN,addOrUpdateSyncStages:LN,setLogWithNameSelected:$N,addOrUpdateDBs:DN,addOrUpdateDBTable:FN,addOrUpdateReorg:BN,resetAppStateToMockState:WN}=pk.actions,mk=e=>e.app.sessions,Dg=e=>e.app.activeSessionPin,kt=e=>e.app.activeNodeId,vk=e=>e.app.nodeVersions,UN=e=>e.app.flags,HN=e=>e.app.cmdLineArgs,qN=e=>e.app.nodeLogs,GN=e=>e.app.syncStages,VN=e=>e.app.dbs,KN=e=>e.app.reorgs,gk=Ue([mk,Dg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Fg=Ue([gk],e=>{let t=[];return e!=null&&(t=e.nodes),t}),YN=Ue([mk,Dg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),QN=Ue([Fg,kt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),XN=Ue([Fg,kt,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}),JN=Ue([Fg,kt,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}),ZN=Ue([UN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),eA=Ue([HN,kt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),tA=Ue([qN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),rA=Ue([GN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),yk=Ue([VN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),nA=Ue([KN,kt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),oA=pk.reducer,Ps=({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",u="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===fv.Command?a=a+" "+c:i===fv.Reorgs?a=a+" "+d:a=a+" "+f,i===t?a+" "+s:a+" "+u};return m.jsx("button",{className:o(e),onClick:()=>{n(e)},"data-testid":r,children:e})},iA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),aA=({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.default)})]},e.flag)};var Bg={},Sk={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})(Sk);var nt=Sk.exports,lp={};function ko(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 bk(e){if(!ko(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=bk(e[r])}),t}function bn(e,t,r={clone:!0}){const n=r.clone?te({},e):e;return ko(e)&&ko(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ko(t[o])&&o in e&&ko(e[o])?n[o]=bn(e[o],t[o],r):r.clone?n[o]=ko(t[o])?bk(t[o]):t[o]:n[o]=t[o])}),n}var up={exports:{}},cp,c1;function sA(){if(c1)return cp;c1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cp=e,cp}var dp,d1;function lA(){if(d1)return dp;d1=1;var e=sA();function t(){}function r(){}return r.resetWarningCache=t,dp=function(){function n(a,s,u,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},dp}var f1;function wk(){return f1||(f1=1,up.exports=lA()()),up.exports}wk();function Fa(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 cA(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 dA(e,t){return()=>null}function fA(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 _k(e){return e&&e.ownerDocument||document}function hA(e){return _k(e).defaultView||window}function pA(e,t){return()=>null}function xk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const mA=typeof window<"u"?N.useLayoutEffect:N.useEffect,Ck=mA;let h1=0;function vA(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(h1+=1,r(`mui-${h1}`))},[t]),n}const p1=Ea["useId".toString()];function gA(e){if(p1!==void 0){const t=p1();return e??t}return vA(e)}function yA(e,t,r,n,o){return null}function Rk({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,u=N.useCallback(c=>{o||a(c)},[]);return[s,u]}function $s(e){const t=N.useRef(e);return Ck(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function ov(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{xk(r,t)})},e)}const m1={};function SA(e,t){const r=N.useRef(m1);return r.current===m1&&(r.current=e(t)),r}const bA=[];function wA(e){N.useEffect(e,bA)}class ff{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ff}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function _A(){const e=SA(ff.create).current;return wA(e.disposeEffect),e}let hf=!0,iv=!1;const xA=new ff,CA={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 RA(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&CA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function kA(e){e.metaKey||e.altKey||e.ctrlKey||(hf=!0)}function fp(){hf=!1}function PA(){this.visibilityState==="hidden"&&iv&&(hf=!0)}function TA(e){e.addEventListener("keydown",kA,!0),e.addEventListener("mousedown",fp,!0),e.addEventListener("pointerdown",fp,!0),e.addEventListener("touchstart",fp,!0),e.addEventListener("visibilitychange",PA,!0)}function EA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return hf||RA(t)}function kk(){const e=N.useCallback(o=>{o!=null&&TA(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(iv=!0,xA.start(100,()=>{iv=!1}),t.current=!1,!0):!1}function n(o){return EA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Pk(e,t){const r=te({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=te({},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]=te({},i),Object.keys(o).forEach(a=>{r[n][a]=Pk(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function qn(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 v1=e=>e,OA=()=>{let e=v1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=v1}}},IA=OA(),Tk=IA,jA={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 xn(e,t,r="Mui"){const n=jA[t];return n?`${r}-${n}`:`${Tk.generate(e)}-${t}`}function Gn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=xn(e,o,r)}),n}function zA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ek(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;t0?Ft(os,--kr):0,Ba--,_t===10&&(Ba=1,mf--),_t}function Lr(){return _t=kr2||Pl(_t)>3?"":" "}function YA(e,t){for(;--t&&Lr()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Gl(e,uc()+(t<6&&Fn()==32&&Lr()==32))}function sv(e){for(;Lr();)switch(_t){case e:return kr;case 34:case 39:e!==34&&e!==39&&sv(_t);break;case 40:e===41&&sv(e);break;case 92:Lr();break}return kr}function QA(e,t){for(;Lr()&&e+_t!==47+10;)if(e+_t===42+42&&Fn()===47)break;return"/*"+Gl(t,kr-1)+"*"+pf(e===47?e:Lr())}function XA(e){for(;!Pl(Fn());)Lr();return Gl(e,kr)}function JA(e){return Mk(dc("",null,null,null,[""],e=Ak(e),0,[0],e))}function dc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,x="",k=o,E=i,O=n,_=x;C;)switch(S=b,b=Lr()){case 40:if(S!=108&&Ft(_,f-1)==58){av(_+=Me(cc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=cc(b);break;case 9:case 10:case 13:case 32:_+=KA(S);break;case 92:_+=YA(uc()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Mu(ZA(QA(Lr(),uc()),t,r),u);break;default:_+="/"}break;case 123*g:s[c++]=jn(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:v==-1&&(_=Me(_,/\f/g,"")),y>0&&jn(_)-f&&Mu(y>32?y1(_+";",n,r,f-1):y1(Me(_," ","")+";",n,r,f-2),u);break;case 59:_+=";";default:if(Mu(O=g1(_,t,r,c,d,o,s,x,k=[],E=[],f),i),b===123)if(d===0)dc(_,t,O,O,k,i,f,s,E);else switch(p===99&&Ft(_,3)===110?100:p){case 100:case 108:case 109:case 115:dc(e,O,O,n&&Mu(g1(e,O,O,0,0,o,s,x,o,k=[],f),E),o,E,f,s,n?k:E);break;default:dc(_,O,O,O,[""],E,0,s,E)}}c=d=y=0,g=v=1,x=_="",f=a;break;case 58:f=1+jn(_),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&VA()==125)continue}switch(_+=pf(b),b*g){case 38:v=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(jn(_)-1)*v,v=1;break;case 64:Fn()===45&&(_+=cc(Lr())),p=Fn(),d=f=jn(x=_+=XA(uc())),b++;break;case 45:S===45&&jn(_)==2&&(g=0)}}return i}function g1(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=Hg(p),S=0,g=0,C=0;S0?p[v]+" "+b:Me(b,/&\f/g,p[v])))&&(u[C++]=x);return vf(e,t,r,o===0?Wg:s,u,c,d)}function ZA(e,t,r){return vf(e,t,r,Ik,pf(GA()),kl(e,2,-2),0)}function y1(e,t,r,n){return vf(e,t,r,Ug,kl(e,0,n),kl(e,n+1,-1),n)}function ka(e,t){for(var r="",n=Hg(e),o=0;o6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+od+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~av(e,"stretch")?Lk(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ft(e,t+1)!==115)break;case 6444:switch(Ft(e,jn(e)-3-(~av(e,"!important")&&10))){case 107:return Me(e,":",":"+Ne)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Ft(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Jt+e+e}return e}var lM=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ug:t.return=Lk(t.value,t.length);break;case jk:return ka([Ts(t,{value:Me(t.value,"@","@"+Ne)})],o);case Wg:if(t.length)return qA(t.props,function(i){switch(HA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ka([Ts(t,{props:[Me(i,/:(read-\w+)/,":"+od+"$1")]})],o);case"::placeholder":return ka([Ts(t,{props:[Me(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),Ts(t,{props:[Me(i,/:(plac\w+)/,":"+od+"$1")]}),Ts(t,{props:[Me(i,/:(plac\w+)/,Jt+"input-$1")]})],o)}return""})}},uM=[lM],cM=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(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||uM,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var C=g.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 mM={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},vM=/[A-Z]|^ms/g,gM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dk=function(t){return t.charCodeAt(1)===45},b1=function(t){return t!=null&&typeof t!="boolean"},hp=Ok(function(e){return Dk(e)?e:e.replace(vM,"-$&").toLowerCase()}),w1=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(gM,function(n,o,i){return zn={name:o,styles:i,next:zn},o})}return mM[t]!==1&&!Dk(t)&&typeof r=="number"&&r!==0?r+"px":r};function Tl(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 zn={name:r.name,styles:r.styles,next:zn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)zn={name:n.name,styles:n.styles,next:zn},n=n.next;var o=r.styles+";";return o}return yM(e,t,r)}case"function":{if(e!==void 0){var i=zn,a=r(e);return zn=i,Tl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function yM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?CM:RM},C1=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},kM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return $k(r,n,o),wM(function(){return hM(r,n,o)}),null},PM=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=C1(t,r,n),u=s||x1(o),c=!u("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,y=1;y{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},jM=["values","unit","step"],zM=e=>{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)=>te({},r,{[n.key]:n.val}),{})};function NM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=lt(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 u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,y){const S=a.indexOf(y);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]]:y)-n/100}${r})`}function d(p){return a.indexOf(p)+1`@media (min-width:${Gg[e]}px)`};function _n(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||R1;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||R1;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Gg).indexOf(s)!==-1){const u=i.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function Uk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Hk(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function LM(e,...t){const r=Uk(e),n=[r,...t].reduce((o,i)=>bn(o,i),{});return Hk(Object.keys(r),n)}function $M(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||$M(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,u)=>(Array.isArray(e)?(a[s]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function gf(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 id(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=gf(e,r)||n,t&&(o=t(o,n,e)),o}function vt(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],u=a.theme,c=gf(u,n)||{};return _n(a,s,f=>{let p=id(c,o,f);return f===p&&typeof f=="string"&&(p=id(c,o,`${t}${f==="default"?"":Ke(f)}`,f)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function DM(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const FM={m:"margin",p:"padding"},BM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},k1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},WM=DM(e=>{if(e.length>2)if(k1[e])e=k1[e];else return[e];const[t,r]=e.split(""),n=FM[t],o=BM[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Vg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vg,...Kg];function Vl(e,t,r,n){var o;const i=(o=gf(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 Yg(e){return Vl(e,"spacing",8)}function Ei(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 UM(e,t){return r=>e.reduce((n,o)=>(n[o]=Ei(t,r),n),{})}function HM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=WM(r),i=UM(o,n),a=e[r];return _n(e,a,i)}function qk(e,t){const r=Yg(e.theme);return Object.keys(e).map(n=>HM(e,t,n,r)).reduce(el,{})}function ut(e){return qk(e,Vg)}ut.propTypes={};ut.filterProps=Vg;function ct(e){return qk(e,Kg)}ct.propTypes={};ct.filterProps=Kg;function qM(e=8){if(e.mui)return e;const t=Yg({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 yf(...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]?el(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Xr(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return vt({prop:e,themeKey:"borders",transform:t})}const GM=sn("border",Xr),VM=sn("borderTop",Xr),KM=sn("borderRight",Xr),YM=sn("borderBottom",Xr),QM=sn("borderLeft",Xr),XM=sn("borderColor"),JM=sn("borderTopColor"),ZM=sn("borderRightColor"),eL=sn("borderBottomColor"),tL=sn("borderLeftColor"),rL=sn("outline",Xr),nL=sn("outlineColor"),Sf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ei(t,n)});return _n(e,e.borderRadius,r)}return null};Sf.propTypes={};Sf.filterProps=["borderRadius"];yf(GM,VM,KM,YM,QM,XM,JM,ZM,eL,tL,Sf,rL,nL);const bf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({gap:Ei(t,n)});return _n(e,e.gap,r)}return null};bf.propTypes={};bf.filterProps=["gap"];const wf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({columnGap:Ei(t,n)});return _n(e,e.columnGap,r)}return null};wf.propTypes={};wf.filterProps=["columnGap"];const _f=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({rowGap:Ei(t,n)});return _n(e,e.rowGap,r)}return null};_f.propTypes={};_f.filterProps=["rowGap"];const oL=vt({prop:"gridColumn"}),iL=vt({prop:"gridRow"}),aL=vt({prop:"gridAutoFlow"}),sL=vt({prop:"gridAutoColumns"}),lL=vt({prop:"gridAutoRows"}),uL=vt({prop:"gridTemplateColumns"}),cL=vt({prop:"gridTemplateRows"}),dL=vt({prop:"gridTemplateAreas"}),fL=vt({prop:"gridArea"});yf(bf,wf,_f,oL,iL,aL,sL,lL,uL,cL,dL,fL);function Pa(e,t){return t==="grey"?t:e}const hL=vt({prop:"color",themeKey:"palette",transform:Pa}),pL=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pa}),mL=vt({prop:"backgroundColor",themeKey:"palette",transform:Pa});yf(hL,pL,mL);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const vL=vt({prop:"width",transform:Nr}),Qg=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])||Gg[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:Nr(r)}};return _n(e,e.maxWidth,t)}return null};Qg.filterProps=["maxWidth"];const gL=vt({prop:"minWidth",transform:Nr}),yL=vt({prop:"height",transform:Nr}),SL=vt({prop:"maxHeight",transform:Nr}),bL=vt({prop:"minHeight",transform:Nr});vt({prop:"size",cssProperty:"width",transform:Nr});vt({prop:"size",cssProperty:"height",transform:Nr});const wL=vt({prop:"boxSizing"});yf(vL,Qg,gL,yL,SL,bL,wL);const _L={border:{themeKey:"borders",transform:Xr},borderTop:{themeKey:"borders",transform:Xr},borderRight:{themeKey:"borders",transform:Xr},borderBottom:{themeKey:"borders",transform:Xr},borderLeft:{themeKey:"borders",transform:Xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sf},color:{themeKey:"palette",transform:Pa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pa},backgroundColor:{themeKey:"palette",transform:Pa},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:bf},rowGap:{style:_f},columnGap:{style:wf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:Qg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xf=_L;function xL(...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 CL(e,t){return typeof e=="function"?e(t):e}function RL(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=gf(o,c)||{};return f?f(a):_n(a,n,S=>{let g=id(p,d,S);return S===g&&typeof S=="string"&&(g=id(p,d,`${r}${S==="default"?"":Ke(S)}`,S)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:xf;function s(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const d=Uk(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(y=>{const S=CL(c[y],i);if(S!=null)if(typeof S=="object")if(a[y])p=el(p,e(y,S,i,a));else{const g=_n({theme:i},S,C=>({[y]:C}));xL(g,S)?p[y]=t({sx:S,theme:i}):p=el(p,g)}else p=el(p,e(y,S,i,a))}),Hk(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Gk=RL();Gk.filterProps=["sx"];const Xg=Gk;function kL(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 PL=["breakpoints","palette","spacing","shape"];function Cf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=lt(e,PL),s=NM(r),u=qM(o);let c=bn({breakpoints:s,direction:"ltr",components:{},palette:te({mode:"light"},n),spacing:u,shape:te({},MM,i)},a);return c.applyStyles=kL,c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=te({},xf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Xg({sx:f,theme:this})},c}function TL(e){return Object.keys(e).length===0}function EL(e=null){const t=N.useContext(Wk);return!t||TL(t)?e:t}const OL=Cf();function IL(e=OL){return EL(e)}const jL=["sx"],zL=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:xf;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Vk(e){const{sx:t}=e,r=lt(e,jL),{systemProps:n,otherProps:o}=zL(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return ko(s)?te({},n,s):n}:i=te({},n,t),te({},o,{sx:i})}const NL=["ownerState"],AL=["variants"],ML=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function LL(e){return Object.keys(e).length===0}function $L(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const DL=Cf(),FL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lu({defaultTheme:e,theme:t,themeId:r}){return LL(t)?e:t[r]||t}function BL(e){return e?(t,r)=>r[e]:null}function hc(e,t){let{ownerState:r}=t,n=lt(t,NL);const o=typeof e=="function"?e(te({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>hc(i,te({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=lt(o,AL);return i.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(te({ownerState:r},n)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(te({ownerState:r},n)):u.style))}),s}return o}function Kk(e={}){const{themeId:t,defaultTheme:r=DL,rootShouldForwardProp:n=fc,slotShouldForwardProp:o=fc}=e,i=a=>Xg(te({},a,{theme:Lu(te({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{IM(a,E=>E.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=BL(FL(c))}=s,y=lt(s,ML),S=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let C,v=fc;c==="Root"||c==="root"?v=n:c?v=o:$L(a)&&(v=void 0);const b=OM(a,te({shouldForwardProp:v,label:C},y)),x=E=>typeof E=="function"&&E.__emotion_real!==E||ko(E)?O=>hc(E,te({},O,{theme:Lu({theme:O.theme,defaultTheme:r,themeId:t})})):E,k=(E,...O)=>{let _=x(E);const P=O?O.map(x):[];u&&p&&P.push(M=>{const $=Lu(te({},M,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[u]||!$.components[u].styleOverrides)return null;const B=$.components[u].styleOverrides,W={};return Object.entries(B).forEach(([ae,ie])=>{W[ae]=hc(ie,te({},M,{theme:$}))}),p(M,W)}),u&&!S&&P.push(M=>{var $;const B=Lu(te({},M,{defaultTheme:r,themeId:t})),W=B==null||($=B.components)==null||($=$[u])==null?void 0:$.variants;return hc({variants:W},te({},M,{theme:B}))}),g||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 WL=Kk(),UL=WL;function HL(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Pk(t.components[r].defaultProps,n)}function Yk({props:e,name:t,defaultTheme:r,themeId:n}){let o=IL(r);return n&&(o=o[n]||o),HL({theme:o,name:t,props:e})}function Jg(e,t=0,r=1){return NA(e,t,r)}function qL(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 Oi(e){if(e.type)return e;if(e.charAt(0)==="#")return Oi(qL(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Fa(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(Fa(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function Rf(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 GL(e){e=Oi(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 u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Rf({type:s,values:u})}function P1(e){e=Oi(e);let t=e.type==="hsl"||e.type==="hsla"?Oi(GL(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 VL(e,t){const r=P1(e),n=P1(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Wa(e,t){return e=Oi(e),t=Jg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rf(e)}function ad(e,t){if(e=Oi(e),t=Jg(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 Rf(e)}function sd(e,t){if(e=Oi(e),t=Jg(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 Rf(e)}const KL=["component","direction","spacing","divider","children","className","useFlexGap"],YL=Cf(),QL=UL("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function XL(e){return Yk({props:e,name:"MuiStack",defaultTheme:YL})}function JL(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],e4=({ownerState:e,theme:t})=>{let r=te({display:"flex",flexDirection:"column"},_n({theme:t},pp({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Yg(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),i=pp({values:e.direction,base:o}),a=pp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,c,d)=>{if(!i[u]){const p=c>0?i[d[c-1]]:"column";i[u]=p}}),r=bn(r,_n({theme:t},a,(u,c)=>e.useFlexGap?{gap:Ei(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ZL(c?i[c]:e.direction)}`]:Ei(n,u)}}))}return r=LM(t.breakpoints,r),r};function t4(e={}){const{createStyledComponent:t=QL,useThemeProps:r=XL,componentName:n="MuiStack"}=e,o=()=>qn({root:["root"]},u=>xn(n,u),{}),i=t(e4);return N.forwardRef(function(u,c){const d=r(u),f=Vk(d),{component:p="div",direction:y="column",spacing:S=0,divider:g,children:C,className:v,useFlexGap:b=!1}=f,x=lt(f,KL),k={direction:y,spacing:S,useFlexGap:b},E=o();return m.jsx(i,te({as:p,ownerState:k,ref:c,className:wt(E.root,v)},x,{children:g?JL(C,g):C}))})}function r4(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const n4={black:"#000",white:"#fff"},El=n4,o4={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"},i4=o4,a4={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"},Yi=a4,s4={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"},Qi=s4,l4={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"},Es=l4,u4={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"},Xi=u4,c4={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"},Ji=c4,d4={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"},Zi=d4,f4=["mode","contrastThreshold","tonalOffset"],T1={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:El.white,default:El.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}},mp={text:{primary:El.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:El.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 E1(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=sd(e.main,o):t==="dark"&&(e.dark=ad(e.main,i)))}function h4(e="light"){return e==="dark"?{main:Xi[200],light:Xi[50],dark:Xi[400]}:{main:Xi[700],light:Xi[400],dark:Xi[800]}}function p4(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function m4(e="light"){return e==="dark"?{main:Qi[500],light:Qi[300],dark:Qi[700]}:{main:Qi[700],light:Qi[400],dark:Qi[800]}}function v4(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[500],dark:Ji[900]}}function g4(e="light"){return e==="dark"?{main:Zi[400],light:Zi[300],dark:Zi[700]}:{main:Zi[800],light:Zi[500],dark:Zi[900]}}function y4(e="light"){return e==="dark"?{main:Es[400],light:Es[300],dark:Es[700]}:{main:"#ed6c02",light:Es[500],dark:Es[900]}}function S4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=lt(e,f4),i=e.primary||h4(t),a=e.secondary||p4(t),s=e.error||m4(t),u=e.info||v4(t),c=e.success||g4(t),d=e.warning||y4(t);function f(g){return VL(g,mp.text.primary)>=r?mp.text.primary:T1.text.primary}const p=({color:g,name:C,mainShade:v=500,lightShade:b=300,darkShade:x=700})=>{if(g=te({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Fa(11,C?` (${C})`:"",v));if(typeof g.main!="string")throw new Error(Fa(12,C?` (${C})`:"",JSON.stringify(g.main)));return E1(g,"light",b,n),E1(g,"dark",x,n),g.contrastText||(g.contrastText=f(g.main)),g},y={dark:mp,light:T1};return bn(te({common:te({},El),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:u,name:"info"}),success:p({color:c,name:"success"}),grey:i4,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},y[t]),o)}const b4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function w4(e){return Math.round(e*1e5)/1e5}const O1={textTransform:"uppercase"},I1='"Roboto", "Helvetica", "Arial", sans-serif';function _4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=I1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=lt(r,b4),y=o/14,S=f||(v=>`${v/c*y}rem`),g=(v,b,x,k,E)=>te({fontFamily:n,fontWeight:v,fontSize:S(b),lineHeight:x},n===I1?{letterSpacing:`${w4(k/b)}em`}:{},E,d),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,O1),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,O1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bn(te({htmlFontSize:c,pxToRem:S,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},C),p,{clone:!1})}const x4=.2,C4=.14,R4=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${x4})`,`${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,${R4})`].join(",")}const k4=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],P4=k4,T4=["duration","easing","delay"],E4={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)"},O4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function j1(e){return`${Math.round(e)}ms`}function I4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function j4(e){const t=te({},E4,e.easing),r=te({},O4,e.duration);return te({getAutoHeightDuration:I4,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return lt(i,T4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:j1(a)} ${s} ${typeof u=="string"?u:j1(u)}`).join(",")}},e,{easing:t,duration:r})}const z4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N4=z4,A4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function M4(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=lt(e,A4);if(e.vars)throw new Error(Fa(18));const s=S4(n),u=Cf(e);let c=bn(u,{mixins:r4(u.breakpoints,r),palette:s,shadows:P4.slice(),typography:_4(s,i),transitions:j4(o),zIndex:te({},N4)});return c=bn(c,a),c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=te({},xf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Xg({sx:f,theme:this})},c}const L4=M4(),Qk=L4,Xk="$$material";function Vn({props:e,name:t}){return Yk({props:e,name:t,defaultTheme:Qk,themeId:Xk})}const Jk=e=>fc(e)&&e!=="classes",$4=Kk({themeId:Xk,defaultTheme:Qk,rootShouldForwardProp:Jk}),Pt=$4;function D4(e){return xn("MuiSvgIcon",e)}Gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const F4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B4=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ke(t)}`,`fontSize${Ke(r)}`]};return qn(o,D4,n)},W4=Pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ke(r.color)}`],t[`fontSize${Ke(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,d,f,p,y,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||(u=s.pxToRem)==null?void 0:u.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:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),Zk=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,y=lt(n,F4),S=N.isValidElement(o)&&o.type==="svg",g=te({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:S}),C={};d||(C.viewBox=p);const v=B4(g);return m.jsxs(W4,te({as:s,className:wt(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},C,y,S&&o.props,{ownerState:g,children:[S?o.props.children:o,f?m.jsx("title",{children:f}):null]}))});Zk.muiName="SvgIcon";const z1=Zk;function is(e,t){function r(n,o){return m.jsx(z1,te({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=z1.muiName,N.memo(N.forwardRef(r))}const U4={configure:e=>{Tk.configure(e)}},H4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:cA,createSvgIcon:is,debounce:dA,deprecatedPropType:fA,isMuiElement:hA,ownerDocument:_k,ownerWindow:pA,requirePropFactory:mA,setRef:xk,unstable_ClassNameGenerator:U4,unstable_useEnhancedEffect:Ck,unstable_useId:yA,unsupportedProp:SA,useControlled:Rk,useEventCallback:$s,useForkRef:ov,useIsFocusVisible:kk},Symbol.toStringTag,{value:"Module"})),q4=Ja(H4);var N1;function ot(){return N1||(N1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=q4}(lp)),lp}var G4=nt;Object.defineProperty(Bg,"__esModule",{value:!0});var Kl=Bg.default=void 0,V4=G4(ot()),K4=m;Kl=Bg.default=(0,V4.default)((0,K4.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var Zg={},Y4=nt;Object.defineProperty(Zg,"__esModule",{value:!0});var Yl=Zg.default=void 0,Q4=Y4(ot()),X4=m;Yl=Zg.default=(0,Q4.default)((0,X4.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var ey={},J4=nt;Object.defineProperty(ey,"__esModule",{value:!0});var Ql=ey.default=void 0,Z4=J4(ot()),e3=m;Ql=ey.default=(0,Z4.default)((0,e3.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const t3=({flags:e})=>{const[t,r]=se.useState(!1),[n,o]=se.useState([]),[i,a]=se.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(y=>y.value!==void 0&&y.value!==""&&y.value!==null).sort((y,S)=>y.flag.localeCompare(y.flag)),u=(f,p)=>{if(p==="default"){let y=[];return i?y=f.sort((S,g)=>S.default>g.default?1:-1):y=f.sort((S,g)=>S.defaulty.flag.localeCompare(S.flag)):f},c=()=>{const f=u(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?m.jsx(Kl,{}):m.jsx(Yl,{}):m.jsx(Ql,{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(sA,{flag:f}))})]})},r3=({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(t3,{flags:t})]})},n3=({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(u=>typeof i[u]=="object"?o(i[u],u):n(u,i[u]))]})};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,"")})})},o3=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(n3,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),i3=({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))})})}),a3=({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))})})]}),as="#1ea7fd",Xl="red";const Un=({primary:e=!1,size:t="medium",backgroundColor:r,label:n,...o})=>{const i=e?"storybook-button--primary":"storybook-button--secondary";return m.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,i].join(" "),style:{backgroundColor:r},...o,children:n})},A1={isConnectedToInternet:!0,isConnectedToNode:!0},eP=ql({name:"app",initialState:A1,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>A1}}),{setIsConnectedToInternet:UH,setIsConnectedToNode:M1,resetConectionState:s3}=eP.actions,l3=eP.reducer,na={second:1e3,minute:6e4,hour:36e5},L1={peers:[],bootnodes:[]},tP=ql({name:"network",initialState:L1,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 u=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=u,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,$u(e.peers[o].peers[i].network,n.network,"capBytesIn"),$u(e.peers[o].peers[i].network,n.network,"capBytesOut"),$u(e.peers[o].peers[i].network,n.network,"typeBytesIn"),$u(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:()=>L1}}),$u=(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:u3,addOrUpdatePeer:c3,addOrUpdateBootnodes:d3,updatePeersState:f3}=tP.actions,h3=e=>e.network.peers,ty=Ue([h3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),p3=()=>Ue([ty,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),kf=Ue([ty,kt],(e,t)=>rP(t,"Sentry",e)),Pf=Ue([ty,kt],(e,t)=>rP(t,"Sentinel",e)),rP=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},m3=Ue([kf],e=>nP(e)),v3=Ue([Pf],e=>nP(e)),nP=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},g3=Ue([kf],e=>oP(e)),y3=Ue([Pf],e=>oP(e)),oP=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},S3=Ue([kf],e=>iP(e)),b3=Ue([Pf],e=>iP(e)),iP=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},w3=tP.reducer,$1={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},aP=ql({name:"syncStages",initialState:$1,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:()=>$1}}),{setSnapshotFilesList:_3,resetSyncStagesState:HH,setSnapshotDownloadStatus:x3,setSnapshotIndexStatus:C3,setNodeSyncStages:R3,setTestSnpSyncMsgIdx:qH}=aP.actions,k3=e=>e.syncStages.snapshotDownloadStatus,Tf=Ue([k3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),P3=e=>e.syncStages.snapshotIndexStatus,sP=Ue([P3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),T3=e=>e.syncStages.syncStages,lP=Ue([T3,kt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),E3=e=>e.syncStages.snapshotFilesList,uP=Ue([E3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r});Ue([uP],e=>e.length===0);const O3=aP.reducer;var uv=(e=>(e.SnapshotSegmentMissingPeers="SnapshotSegmentMissingPeers",e))(uv||{});const D1={issues:[]},cP=ql({name:"issue",initialState:D1,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:()=>D1}}),{addOrUpdateIssue:F1,resetIssueState:GH,removeIssueWithId:I3}=cP.actions,j3=e=>e.issues.issues,dP=Ue([j3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),z3=Ue([dP],e=>e.length>10?"9+":e.length.toString()),N3=cP.reducer;var ry="persist:",ny="persist/FLUSH",Ef="persist/REHYDRATE",oy="persist/PAUSE",iy="persist/PERSIST",ay="persist/PURGE",sy="persist/REGISTER",A3=-1;function pc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pc=function(r){return typeof r}:pc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pc(e)}function B1(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 M3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V3(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 K3=5e3;function Y3(e,t){var r=e.version!==void 0?e.version:A3;e.debug;var n=e.stateReconciler===void 0?$3:e.stateReconciler,o=e.getStoredState||B3,i=e.timeout!==void 0?e.timeout:K3,a=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&a&&!u&&a.update(f),f};return function(d,f){var p=d||{},y=p._persist,S=G3(p,["_persist"]),g=S;if(f.type===iy){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),u=!1,a||(a=D3(e)),y)return Xn({},t(g,f),{_persist:y});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,_)}),Xn({},t(g,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===ay)return s=!0,f.result(U3(e)),Xn({},t(g,f),{_persist:y});if(f.type===ny)return f.result(a&&a.flush()),Xn({},t(g,f),{_persist:y});if(f.type===oy)u=!0;else if(f.type===Ef){if(s)return Xn({},g,{_persist:Xn({},y,{rehydrated:!0})});if(f.key===e.key){var b=t(g,f),x=f.payload,k=n!==!1&&x!==void 0?n(x,d,b,e):b,E=Xn({},k,{_persist:Xn({},y,{rehydrated:!0})});return c(E)}}}if(!y)return t(d,f);var O=t(g,f);return O===g?d:c(Xn({},O,{_persist:y}))}}function U1(e){return J3(e)||X3(e)||Q3()}function Q3(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function X3(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function J3(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:fP,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case sy:return cv({},t,{registry:[].concat(U1(t.registry),[r.key])});case Ef:var n=t.registry.indexOf(r.key),o=U1(t.registry);return o.splice(n,1),cv({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function t$(e,t,r){var n=r||!1,o=Lg(e$,fP,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:sy,key:c})},a=function(c,d,f){var p={type:Ef,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=cv({},o,{purge:function(){var c=[];return e.dispatch({type:ay,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:ny,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:oy})},persist:function(){e.dispatch({type:iy,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var ly={},uy={};uy.__esModule=!0;uy.default=o$;function mc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mc=function(r){return typeof r}:mc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mc(e)}function vp(){}var r$={getItem:vp,setItem:vp,removeItem:vp};function n$(e){if((typeof self>"u"?"undefined":mc(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 o$(e){var t="".concat(e,"Storage");return n$(t)?self[t]:r$}ly.__esModule=!0;ly.default=s$;var i$=a$(uy);function a$(e){return e&&e.__esModule?e:{default:e}}function s$(e){var t=(0,i$.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 hP=void 0,l$=u$(ly);function u$(e){return e&&e.__esModule?e:{default:e}}var c$=(0,l$.default)("local");hP=c$;const d$={key:"root",blacklist:["connection"],storage:hP},f$=uk({app:iA,network:w3,connection:l3,syncStages:O3,issues:N3}),h$=Y3(d$,f$),je=SN({reducer:h$,middleware:e=>e({serializableCheck:{ignoredActions:[ny,Ef,oy,iy,ay,sy]}})}),p$=t$(je),m$="sessions",v$="nodes",g$="versions",y$="flags",S$="cmdline",b$="logs",w$="sync-stages",pP="dbs",_$="tables",x$="reorgs",C$="peers",R$="peers",k$=()=>je.getState().app.activeSessionPin,cy=()=>{const e=k$();return`${window.location.origin}/api/${m$}/${e}`},ln=()=>{const e=cy(),t=je.getState().app.activeNodeId;return`${e}/${v$}/${t}`},P$=()=>`${ln()}/${g$}`,mP=()=>`${ln()}/${y$}`,vP=()=>`${ln()}/${S$}`,gP=()=>`${ln()}/${b$}`,yP=()=>`${ln()}/${w$}`,T$=()=>`${ln()}/${pP}`,E$=e=>`${ln()}/${pP}/${e}/${_$}`,SP=()=>`${ln()}/${x$}`,O$=()=>`${ln()}/${C$}`,I$=()=>`${ln()}/${R$}`,j$=()=>`${ln()}/snapshot-sync`,z$=()=>`${ln()}/snapshot-files-list`,N$=()=>{{const e=Gr(cy(),"GET");return qr(e)}},A$=()=>{{const e=Gr(P$(),"GET");return qr(e)}},M$=()=>{{const e=Gr(mP(),"GET");return qr(e)}},L$=()=>{{const e=Gr(vP(),"GET");return qr(e)}},$$=()=>{{const e=Gr(gP(),"GET");return qr(e)}},D$=()=>{{const e=Gr(yP(),"GET");return qr(e)}},F$=()=>{{const e=Gr(T$(),"GET");return qr(e)}},B$=e=>{{const t=Gr(E$(e),"GET");return qr(t)}},W$=()=>{{const e=Gr(SP(),"GET");return qr(e)}},U$=()=>{{const e=Gr(O$(),"GET");return qr(e)}},H$=()=>{{const e=Gr(I$(),"GET");return qr(e)}},q$=()=>{{const e=Gr(j$(),"GET");return qr(e)}},G$=()=>{{const e=Gr(z$(),"GET");return qr(e)}},qr=e=>fetch(e).then(t=>(je.dispatch(M1(!0)),t.json())).catch(t=>{je.dispatch(M1(!1))});function Gr(e,t,r){return new Request(e,{method:t,body:r})}var dy={},V$=nt;Object.defineProperty(dy,"__esModule",{value:!0});var fy=dy.default=void 0,K$=V$(ot()),Y$=m;fy=dy.default=(0,K$.default)((0,Y$.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 hy={},Q$=nt;Object.defineProperty(hy,"__esModule",{value:!0});var Of=hy.default=void 0,X$=Q$(ot()),J$=m;Of=hy.default=(0,X$.default)((0,J$.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");const Z$=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},q1=Z$;function e5(e){return xn("MuiPaper",e)}Gn("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 t5=["className","component","elevation","square","variant"],r5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qn(i,e5,o)},n5=Pt("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 te({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"&&te({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wa("#fff",q1(t.elevation))}, ${Wa("#fff",q1(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),o5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=lt(n,t5),d=te({},n,{component:i,elevation:a,square:s,variant:u}),f=r5(d);return m.jsx(n5,te({as:i,ownerState:d,className:wt(f.root,o),ref:r},c))}),i5=o5;function a5(e){return xn("MuiAlert",e)}const s5=Gn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),G1=s5;function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ld(e,t)}function l5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ld(e,t)}const V1=se.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 py(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 u5(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 u in t){if(n[u])for(a=0;a{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),m.jsx("span",{className:p,style:y,children:m.jsx("span",{className:S})})}const v5=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kr=v5,g5=["center","classes","className"];let If=e=>e,K1,Y1,Q1,X1;const dv=550,y5=80,S5=qg(K1||(K1=If` + */function EM(e,t){return lv(e,t)}const OM=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},IM=["values","unit","step"],jM=e=>{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)=>te({},r,{[n.key]:n.val}),{})};function zM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=lt(e,IM),i=jM(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,y){const S=a.indexOf(y);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]]:y)-n/100}${r})`}function d(p){return a.indexOf(p)+1`@media (min-width:${Gg[e]}px)`};function _n(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||R1;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||R1;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Gg).indexOf(s)!==-1){const u=i.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function Uk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Hk(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=Uk(e),n=[r,...t].reduce((o,i)=>bn(o,i),{});return Hk(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,u)=>(Array.isArray(e)?(a[s]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function gf(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 id(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=gf(e,r)||n,t&&(o=t(o,n,e)),o}function vt(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],u=a.theme,c=gf(u,n)||{};return _n(a,s,f=>{let p=id(c,o,f);return f===p&&typeof f=="string"&&(p=id(c,o,`${t}${f==="default"?"":Ke(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"]},k1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},BM=$M(e=>{if(e.length>2)if(k1[e])e=k1[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]}),Vg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vg,...Kg];function Vl(e,t,r,n){var o;const i=(o=gf(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 Yg(e){return Vl(e,"spacing",8)}function Ei(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]=Ei(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 _n(e,a,i)}function qk(e,t){const r=Yg(e.theme);return Object.keys(e).map(n=>UM(e,t,n,r)).reduce(el,{})}function ut(e){return qk(e,Vg)}ut.propTypes={};ut.filterProps=Vg;function ct(e){return qk(e,Kg)}ct.propTypes={};ct.filterProps=Kg;function HM(e=8){if(e.mui)return e;const t=Yg({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 yf(...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]?el(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Xr(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return vt({prop:e,themeKey:"borders",transform:t})}const qM=sn("border",Xr),GM=sn("borderTop",Xr),VM=sn("borderRight",Xr),KM=sn("borderBottom",Xr),YM=sn("borderLeft",Xr),QM=sn("borderColor"),XM=sn("borderTopColor"),JM=sn("borderRightColor"),ZM=sn("borderBottomColor"),eL=sn("borderLeftColor"),tL=sn("outline",Xr),rL=sn("outlineColor"),Sf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ei(t,n)});return _n(e,e.borderRadius,r)}return null};Sf.propTypes={};Sf.filterProps=["borderRadius"];yf(qM,GM,VM,KM,YM,QM,XM,JM,ZM,eL,Sf,tL,rL);const bf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({gap:Ei(t,n)});return _n(e,e.gap,r)}return null};bf.propTypes={};bf.filterProps=["gap"];const wf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({columnGap:Ei(t,n)});return _n(e,e.columnGap,r)}return null};wf.propTypes={};wf.filterProps=["columnGap"];const _f=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({rowGap:Ei(t,n)});return _n(e,e.rowGap,r)}return null};_f.propTypes={};_f.filterProps=["rowGap"];const nL=vt({prop:"gridColumn"}),oL=vt({prop:"gridRow"}),iL=vt({prop:"gridAutoFlow"}),aL=vt({prop:"gridAutoColumns"}),sL=vt({prop:"gridAutoRows"}),lL=vt({prop:"gridTemplateColumns"}),uL=vt({prop:"gridTemplateRows"}),cL=vt({prop:"gridTemplateAreas"}),dL=vt({prop:"gridArea"});yf(bf,wf,_f,nL,oL,iL,aL,sL,lL,uL,cL,dL);function Pa(e,t){return t==="grey"?t:e}const fL=vt({prop:"color",themeKey:"palette",transform:Pa}),hL=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pa}),pL=vt({prop:"backgroundColor",themeKey:"palette",transform:Pa});yf(fL,hL,pL);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const mL=vt({prop:"width",transform:Nr}),Qg=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])||Gg[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:Nr(r)}};return _n(e,e.maxWidth,t)}return null};Qg.filterProps=["maxWidth"];const vL=vt({prop:"minWidth",transform:Nr}),gL=vt({prop:"height",transform:Nr}),yL=vt({prop:"maxHeight",transform:Nr}),SL=vt({prop:"minHeight",transform:Nr});vt({prop:"size",cssProperty:"width",transform:Nr});vt({prop:"size",cssProperty:"height",transform:Nr});const bL=vt({prop:"boxSizing"});yf(mL,Qg,vL,gL,yL,SL,bL);const wL={border:{themeKey:"borders",transform:Xr},borderTop:{themeKey:"borders",transform:Xr},borderRight:{themeKey:"borders",transform:Xr},borderBottom:{themeKey:"borders",transform:Xr},borderLeft:{themeKey:"borders",transform:Xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sf},color:{themeKey:"palette",transform:Pa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pa},backgroundColor:{themeKey:"palette",transform:Pa},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:bf},rowGap:{style:_f},columnGap:{style:wf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:Qg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xf=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 CL(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=gf(o,c)||{};return f?f(a):_n(a,n,S=>{let g=id(p,d,S);return S===g&&typeof S=="string"&&(g=id(p,d,`${r}${S==="default"?"":Ke(S)}`,S)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:xf;function s(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const d=Uk(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(y=>{const S=xL(c[y],i);if(S!=null)if(typeof S=="object")if(a[y])p=el(p,e(y,S,i,a));else{const g=_n({theme:i},S,C=>({[y]:C}));_L(g,S)?p[y]=t({sx:S,theme:i}):p=el(p,g)}else p=el(p,e(y,S,i,a))}),Hk(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Gk=CL();Gk.filterProps=["sx"];const Xg=Gk;function RL(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 kL=["breakpoints","palette","spacing","shape"];function Cf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=lt(e,kL),s=zM(r),u=HM(o);let c=bn({breakpoints:s,direction:"ltr",components:{},palette:te({mode:"light"},n),spacing:u,shape:te({},AM,i)},a);return c.applyStyles=RL,c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=te({},xf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Xg({sx:f,theme:this})},c}function PL(e){return Object.keys(e).length===0}function TL(e=null){const t=N.useContext(Wk);return!t||PL(t)?e:t}const EL=Cf();function OL(e=EL){return TL(e)}const IL=["sx"],jL=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:xf;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Vk(e){const{sx:t}=e,r=lt(e,IL),{systemProps:n,otherProps:o}=jL(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return ko(s)?te({},n,s):n}:i=te({},n,t),te({},o,{sx:i})}const zL=["ownerState"],NL=["variants"],AL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ML(e){return Object.keys(e).length===0}function LL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $L=Cf(),DL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lu({defaultTheme:e,theme:t,themeId:r}){return ML(t)?e:t[r]||t}function FL(e){return e?(t,r)=>r[e]:null}function hc(e,t){let{ownerState:r}=t,n=lt(t,zL);const o=typeof e=="function"?e(te({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>hc(i,te({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=lt(o,NL);return i.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(te({ownerState:r},n)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(te({ownerState:r},n)):u.style))}),s}return o}function Kk(e={}){const{themeId:t,defaultTheme:r=$L,rootShouldForwardProp:n=fc,slotShouldForwardProp:o=fc}=e,i=a=>Xg(te({},a,{theme:Lu(te({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{OM(a,E=>E.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=FL(DL(c))}=s,y=lt(s,AL),S=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let C,v=fc;c==="Root"||c==="root"?v=n:c?v=o:LL(a)&&(v=void 0);const b=EM(a,te({shouldForwardProp:v,label:C},y)),x=E=>typeof E=="function"&&E.__emotion_real!==E||ko(E)?O=>hc(E,te({},O,{theme:Lu({theme:O.theme,defaultTheme:r,themeId:t})})):E,k=(E,...O)=>{let _=x(E);const P=O?O.map(x):[];u&&p&&P.push(M=>{const $=Lu(te({},M,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[u]||!$.components[u].styleOverrides)return null;const B=$.components[u].styleOverrides,W={};return Object.entries(B).forEach(([ae,ie])=>{W[ae]=hc(ie,te({},M,{theme:$}))}),p(M,W)}),u&&!S&&P.push(M=>{var $;const B=Lu(te({},M,{defaultTheme:r,themeId:t})),W=B==null||($=B.components)==null||($=$[u])==null?void 0:$.variants;return hc({variants:W},te({},M,{theme:B}))}),g||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 BL=Kk(),WL=BL;function UL(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Pk(t.components[r].defaultProps,n)}function Yk({props:e,name:t,defaultTheme:r,themeId:n}){let o=OL(r);return n&&(o=o[n]||o),UL({theme:o,name:t,props:e})}function Jg(e,t=0,r=1){return zA(e,t,r)}function HL(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 Oi(e){if(e.type)return e;if(e.charAt(0)==="#")return Oi(HL(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Fa(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(Fa(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function Rf(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 qL(e){e=Oi(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 u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Rf({type:s,values:u})}function P1(e){e=Oi(e);let t=e.type==="hsl"||e.type==="hsla"?Oi(qL(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 GL(e,t){const r=P1(e),n=P1(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Wa(e,t){return e=Oi(e),t=Jg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rf(e)}function ad(e,t){if(e=Oi(e),t=Jg(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 Rf(e)}function sd(e,t){if(e=Oi(e),t=Jg(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 Rf(e)}const VL=["component","direction","spacing","divider","children","className","useFlexGap"],KL=Cf(),YL=WL("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function QL(e){return Yk({props:e,name:"MuiStack",defaultTheme:KL})}function XL(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],ZL=({ownerState:e,theme:t})=>{let r=te({display:"flex",flexDirection:"column"},_n({theme:t},pp({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Yg(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),i=pp({values:e.direction,base:o}),a=pp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,c,d)=>{if(!i[u]){const p=c>0?i[d[c-1]]:"column";i[u]=p}}),r=bn(r,_n({theme:t},a,(u,c)=>e.useFlexGap?{gap:Ei(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${JL(c?i[c]:e.direction)}`]:Ei(n,u)}}))}return r=MM(t.breakpoints,r),r};function e4(e={}){const{createStyledComponent:t=YL,useThemeProps:r=QL,componentName:n="MuiStack"}=e,o=()=>qn({root:["root"]},u=>xn(n,u),{}),i=t(ZL);return N.forwardRef(function(u,c){const d=r(u),f=Vk(d),{component:p="div",direction:y="column",spacing:S=0,divider:g,children:C,className:v,useFlexGap:b=!1}=f,x=lt(f,VL),k={direction:y,spacing:S,useFlexGap:b},E=o();return m.jsx(i,te({as:p,ownerState:k,ref:c,className:wt(E.root,v)},x,{children:g?XL(C,g):C}))})}function t4(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const r4={black:"#000",white:"#fff"},El=r4,n4={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"},o4=n4,i4={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"},Yi=i4,a4={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"},Qi=a4,s4={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"},Es=s4,l4={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"},Xi=l4,u4={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"},Ji=u4,c4={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"},Zi=c4,d4=["mode","contrastThreshold","tonalOffset"],T1={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:El.white,default:El.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}},mp={text:{primary:El.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:El.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 E1(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=sd(e.main,o):t==="dark"&&(e.dark=ad(e.main,i)))}function f4(e="light"){return e==="dark"?{main:Xi[200],light:Xi[50],dark:Xi[400]}:{main:Xi[700],light:Xi[400],dark:Xi[800]}}function h4(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function p4(e="light"){return e==="dark"?{main:Qi[500],light:Qi[300],dark:Qi[700]}:{main:Qi[700],light:Qi[400],dark:Qi[800]}}function m4(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[500],dark:Ji[900]}}function v4(e="light"){return e==="dark"?{main:Zi[400],light:Zi[300],dark:Zi[700]}:{main:Zi[800],light:Zi[500],dark:Zi[900]}}function g4(e="light"){return e==="dark"?{main:Es[400],light:Es[300],dark:Es[700]}:{main:"#ed6c02",light:Es[500],dark:Es[900]}}function y4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=lt(e,d4),i=e.primary||f4(t),a=e.secondary||h4(t),s=e.error||p4(t),u=e.info||m4(t),c=e.success||v4(t),d=e.warning||g4(t);function f(g){return GL(g,mp.text.primary)>=r?mp.text.primary:T1.text.primary}const p=({color:g,name:C,mainShade:v=500,lightShade:b=300,darkShade:x=700})=>{if(g=te({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Fa(11,C?` (${C})`:"",v));if(typeof g.main!="string")throw new Error(Fa(12,C?` (${C})`:"",JSON.stringify(g.main)));return E1(g,"light",b,n),E1(g,"dark",x,n),g.contrastText||(g.contrastText=f(g.main)),g},y={dark:mp,light:T1};return bn(te({common:te({},El),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:u,name:"info"}),success:p({color:c,name:"success"}),grey:o4,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},y[t]),o)}const S4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function b4(e){return Math.round(e*1e5)/1e5}const O1={textTransform:"uppercase"},I1='"Roboto", "Helvetica", "Arial", sans-serif';function w4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=I1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=lt(r,S4),y=o/14,S=f||(v=>`${v/c*y}rem`),g=(v,b,x,k,E)=>te({fontFamily:n,fontWeight:v,fontSize:S(b),lineHeight:x},n===I1?{letterSpacing:`${b4(k/b)}em`}:{},E,d),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,O1),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,O1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bn(te({htmlFontSize:c,pxToRem:S,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},C),p,{clone:!1})}const _4=.2,x4=.14,C4=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${x4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${C4})`].join(",")}const R4=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],k4=R4,P4=["duration","easing","delay"],T4={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)"},E4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function j1(e){return`${Math.round(e)}ms`}function O4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function I4(e){const t=te({},T4,e.easing),r=te({},E4,e.duration);return te({getAutoHeightDuration:O4,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return lt(i,P4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:j1(a)} ${s} ${typeof u=="string"?u:j1(u)}`).join(",")}},e,{easing:t,duration:r})}const j4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},z4=j4,N4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function A4(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=lt(e,N4);if(e.vars)throw new Error(Fa(18));const s=y4(n),u=Cf(e);let c=bn(u,{mixins:t4(u.breakpoints,r),palette:s,shadows:k4.slice(),typography:w4(s,i),transitions:I4(o),zIndex:te({},z4)});return c=bn(c,a),c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=te({},xf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Xg({sx:f,theme:this})},c}const M4=A4(),Qk=M4,Xk="$$material";function Vn({props:e,name:t}){return Yk({props:e,name:t,defaultTheme:Qk,themeId:Xk})}const Jk=e=>fc(e)&&e!=="classes",L4=Kk({themeId:Xk,defaultTheme:Qk,rootShouldForwardProp:Jk}),Pt=L4;function $4(e){return xn("MuiSvgIcon",e)}Gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const D4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],F4=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ke(t)}`,`fontSize${Ke(r)}`]};return qn(o,$4,n)},B4=Pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ke(r.color)}`],t[`fontSize${Ke(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,d,f,p,y,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||(u=s.pxToRem)==null?void 0:u.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:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),Zk=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,y=lt(n,D4),S=N.isValidElement(o)&&o.type==="svg",g=te({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:S}),C={};d||(C.viewBox=p);const v=F4(g);return m.jsxs(B4,te({as:s,className:wt(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},C,y,S&&o.props,{ownerState:g,children:[S?o.props.children:o,f?m.jsx("title",{children:f}):null]}))});Zk.muiName="SvgIcon";const z1=Zk;function is(e,t){function r(n,o){return m.jsx(z1,te({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=z1.muiName,N.memo(N.forwardRef(r))}const W4={configure:e=>{Tk.configure(e)}},U4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:uA,createSvgIcon:is,debounce:cA,deprecatedPropType:dA,isMuiElement:fA,ownerDocument:_k,ownerWindow:hA,requirePropFactory:pA,setRef:xk,unstable_ClassNameGenerator:W4,unstable_useEnhancedEffect:Ck,unstable_useId:gA,unsupportedProp:yA,useControlled:Rk,useEventCallback:$s,useForkRef:ov,useIsFocusVisible:kk},Symbol.toStringTag,{value:"Module"})),H4=Ja(U4);var N1;function ot(){return N1||(N1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=H4}(lp)),lp}var q4=nt;Object.defineProperty(Bg,"__esModule",{value:!0});var Kl=Bg.default=void 0,G4=q4(ot()),V4=m;Kl=Bg.default=(0,G4.default)((0,V4.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var Zg={},K4=nt;Object.defineProperty(Zg,"__esModule",{value:!0});var Yl=Zg.default=void 0,Y4=K4(ot()),Q4=m;Yl=Zg.default=(0,Y4.default)((0,Q4.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var ey={},X4=nt;Object.defineProperty(ey,"__esModule",{value:!0});var Ql=ey.default=void 0,J4=X4(ot()),Z4=m;Ql=ey.default=(0,J4.default)((0,Z4.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const e3=({flags:e})=>{const[t,r]=se.useState(!1),[n,o]=se.useState([]),[i,a]=se.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(y=>y.value!==void 0&&y.value!==""&&y.value!==null).sort((y,S)=>y.flag.localeCompare(y.flag)),u=(f,p)=>{if(p==="default"){let y=[];return i?y=f.sort((S,g)=>S.default>g.default?1:-1):y=f.sort((S,g)=>S.defaulty.flag.localeCompare(S.flag)):f},c=()=>{const f=u(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?m.jsx(Kl,{}):m.jsx(Yl,{}):m.jsx(Ql,{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(aA,{flag:f}))})]})},t3=({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(e3,{flags:t})]})},r3=({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(u=>typeof i[u]=="object"?o(i[u],u):n(u,i[u]))]})};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,"")})})},n3=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(r3,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),o3=({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))})})}),i3=({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))})})]}),as="#1ea7fd",Xl="red";const Un=({primary:e=!1,size:t="medium",backgroundColor:r,label:n,...o})=>{const i=e?"storybook-button--primary":"storybook-button--secondary";return m.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,i].join(" "),style:{backgroundColor:r},...o,children:n})},A1={isConnectedToInternet:!0,isConnectedToNode:!0},eP=ql({name:"app",initialState:A1,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>A1}}),{setIsConnectedToInternet:HH,setIsConnectedToNode:M1,resetConectionState:a3}=eP.actions,s3=eP.reducer,na={second:1e3,minute:6e4,hour:36e5},L1={peers:[],bootnodes:[]},tP=ql({name:"network",initialState:L1,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 u=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=u,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,$u(e.peers[o].peers[i].network,n.network,"capBytesIn"),$u(e.peers[o].peers[i].network,n.network,"capBytesOut"),$u(e.peers[o].peers[i].network,n.network,"typeBytesIn"),$u(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:()=>L1}}),$u=(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:l3,addOrUpdatePeer:u3,addOrUpdateBootnodes:c3,updatePeersState:d3}=tP.actions,f3=e=>e.network.peers,ty=Ue([f3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),h3=()=>Ue([ty,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),kf=Ue([ty,kt],(e,t)=>rP(t,"Sentry",e)),Pf=Ue([ty,kt],(e,t)=>rP(t,"Sentinel",e)),rP=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},p3=Ue([kf],e=>nP(e)),m3=Ue([Pf],e=>nP(e)),nP=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},v3=Ue([kf],e=>oP(e)),g3=Ue([Pf],e=>oP(e)),oP=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},y3=Ue([kf],e=>iP(e)),S3=Ue([Pf],e=>iP(e)),iP=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},b3=tP.reducer,$1={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},aP=ql({name:"syncStages",initialState:$1,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:()=>$1}}),{setSnapshotFilesList:w3,resetSyncStagesState:qH,setSnapshotDownloadStatus:_3,setSnapshotIndexStatus:x3,setNodeSyncStages:C3,setTestSnpSyncMsgIdx:GH}=aP.actions,R3=e=>e.syncStages.snapshotDownloadStatus,Tf=Ue([R3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),k3=e=>e.syncStages.snapshotIndexStatus,sP=Ue([k3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),P3=e=>e.syncStages.syncStages,lP=Ue([P3,kt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),T3=e=>e.syncStages.snapshotFilesList,E3=Ue([T3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r}),O3=Ue([E3],e=>e.length===0),I3=aP.reducer;var uv=(e=>(e.SnapshotSegmentMissingPeers="SnapshotSegmentMissingPeers",e))(uv||{});const D1={issues:[]},uP=ql({name:"issue",initialState:D1,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:()=>D1}}),{addOrUpdateIssue:F1,resetIssueState:VH,removeIssueWithId:j3}=uP.actions,z3=e=>e.issues.issues,cP=Ue([z3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),N3=Ue([cP],e=>e.length>10?"9+":e.length.toString()),A3=uP.reducer;var ry="persist:",ny="persist/FLUSH",Ef="persist/REHYDRATE",oy="persist/PAUSE",iy="persist/PERSIST",ay="persist/PURGE",sy="persist/REGISTER",M3=-1;function pc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pc=function(r){return typeof r}:pc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pc(e)}function B1(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 L3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K3(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 Y3=5e3;function Q3(e,t){var r=e.version!==void 0?e.version:M3;e.debug;var n=e.stateReconciler===void 0?D3:e.stateReconciler,o=e.getStoredState||W3,i=e.timeout!==void 0?e.timeout:Y3,a=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&a&&!u&&a.update(f),f};return function(d,f){var p=d||{},y=p._persist,S=V3(p,["_persist"]),g=S;if(f.type===iy){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),u=!1,a||(a=F3(e)),y)return Xn({},t(g,f),{_persist:y});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,_)}),Xn({},t(g,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===ay)return s=!0,f.result(H3(e)),Xn({},t(g,f),{_persist:y});if(f.type===ny)return f.result(a&&a.flush()),Xn({},t(g,f),{_persist:y});if(f.type===oy)u=!0;else if(f.type===Ef){if(s)return Xn({},g,{_persist:Xn({},y,{rehydrated:!0})});if(f.key===e.key){var b=t(g,f),x=f.payload,k=n!==!1&&x!==void 0?n(x,d,b,e):b,E=Xn({},k,{_persist:Xn({},y,{rehydrated:!0})});return c(E)}}}if(!y)return t(d,f);var O=t(g,f);return O===g?d:c(Xn({},O,{_persist:y}))}}function U1(e){return Z3(e)||J3(e)||X3()}function X3(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function J3(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Z3(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:dP,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case sy:return cv({},t,{registry:[].concat(U1(t.registry),[r.key])});case Ef:var n=t.registry.indexOf(r.key),o=U1(t.registry);return o.splice(n,1),cv({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function r$(e,t,r){var n=r||!1,o=Lg(t$,dP,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:sy,key:c})},a=function(c,d,f){var p={type:Ef,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=cv({},o,{purge:function(){var c=[];return e.dispatch({type:ay,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:ny,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:oy})},persist:function(){e.dispatch({type:iy,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var ly={},uy={};uy.__esModule=!0;uy.default=i$;function mc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mc=function(r){return typeof r}:mc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mc(e)}function vp(){}var n$={getItem:vp,setItem:vp,removeItem:vp};function o$(e){if((typeof self>"u"?"undefined":mc(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 i$(e){var t="".concat(e,"Storage");return o$(t)?self[t]:n$}ly.__esModule=!0;ly.default=l$;var a$=s$(uy);function s$(e){return e&&e.__esModule?e:{default:e}}function l$(e){var t=(0,a$.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 fP=void 0,u$=c$(ly);function c$(e){return e&&e.__esModule?e:{default:e}}var d$=(0,u$.default)("local");fP=d$;const f$={key:"root",blacklist:["connection"],storage:fP},h$=uk({app:oA,network:b3,connection:s3,syncStages:I3,issues:A3}),p$=Q3(f$,h$),je=yN({reducer:p$,middleware:e=>e({serializableCheck:{ignoredActions:[ny,Ef,oy,iy,ay,sy]}})}),m$=r$(je),v$="sessions",g$="nodes",y$="versions",S$="flags",b$="cmdline",w$="logs",_$="sync-stages",hP="dbs",x$="tables",C$="reorgs",R$="peers",k$="peers",P$=()=>je.getState().app.activeSessionPin,cy=()=>{const e=P$();return`${window.location.origin}/api/${v$}/${e}`},ln=()=>{const e=cy(),t=je.getState().app.activeNodeId;return`${e}/${g$}/${t}`},T$=()=>`${ln()}/${y$}`,pP=()=>`${ln()}/${S$}`,mP=()=>`${ln()}/${b$}`,vP=()=>`${ln()}/${w$}`,gP=()=>`${ln()}/${_$}`,E$=()=>`${ln()}/${hP}`,O$=e=>`${ln()}/${hP}/${e}/${x$}`,yP=()=>`${ln()}/${C$}`,I$=()=>`${ln()}/${R$}`,j$=()=>`${ln()}/${k$}`,z$=()=>`${ln()}/snapshot-sync`,N$=()=>`${ln()}/snapshot-files-list`,A$=()=>{{const e=Gr(cy(),"GET");return qr(e)}},M$=()=>{{const e=Gr(T$(),"GET");return qr(e)}},L$=()=>{{const e=Gr(pP(),"GET");return qr(e)}},$$=()=>{{const e=Gr(mP(),"GET");return qr(e)}},D$=()=>{{const e=Gr(vP(),"GET");return qr(e)}},F$=()=>{{const e=Gr(gP(),"GET");return qr(e)}},B$=()=>{{const e=Gr(E$(),"GET");return qr(e)}},W$=e=>{{const t=Gr(O$(e),"GET");return qr(t)}},U$=()=>{{const e=Gr(yP(),"GET");return qr(e)}},H$=()=>{{const e=Gr(I$(),"GET");return qr(e)}},q$=()=>{{const e=Gr(j$(),"GET");return qr(e)}},G$=()=>{{const e=Gr(z$(),"GET");return qr(e)}},V$=()=>{{const e=Gr(N$(),"GET");return qr(e)}},qr=e=>fetch(e).then(t=>(je.dispatch(M1(!0)),t.json())).catch(t=>{je.dispatch(M1(!1))});function Gr(e,t,r){return new Request(e,{method:t,body:r})}var dy={},K$=nt;Object.defineProperty(dy,"__esModule",{value:!0});var fy=dy.default=void 0,Y$=K$(ot()),Q$=m;fy=dy.default=(0,Y$.default)((0,Q$.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 hy={},X$=nt;Object.defineProperty(hy,"__esModule",{value:!0});var Of=hy.default=void 0,J$=X$(ot()),Z$=m;Of=hy.default=(0,J$.default)((0,Z$.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");const e5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},q1=e5;function t5(e){return xn("MuiPaper",e)}Gn("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 r5=["className","component","elevation","square","variant"],n5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qn(i,t5,o)},o5=Pt("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 te({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"&&te({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wa("#fff",q1(t.elevation))}, ${Wa("#fff",q1(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),i5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=lt(n,r5),d=te({},n,{component:i,elevation:a,square:s,variant:u}),f=n5(d);return m.jsx(o5,te({as:i,ownerState:d,className:wt(f.root,o),ref:r},c))}),a5=i5;function s5(e){return xn("MuiAlert",e)}const l5=Gn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),G1=l5;function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ld(e,t)}function u5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ld(e,t)}const V1=se.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 py(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 c5(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 u in t){if(n[u])for(a=0;a{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),m.jsx("span",{className:p,style:y,children:m.jsx("span",{className:S})})}const g5=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kr=g5,y5=["center","classes","className"];let If=e=>e,K1,Y1,Q1,X1;const dv=550,S5=80,b5=qg(K1||(K1=If` 0% { transform: scale(0); opacity: 0.1; @@ -111,7 +111,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),b5=qg(Y1||(Y1=If` +`)),w5=qg(Y1||(Y1=If` 0% { opacity: 1; } @@ -119,7 +119,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),w5=qg(Q1||(Q1=If` +`)),_5=qg(Q1||(Q1=If` 0% { transform: scale(1); } @@ -131,7 +131,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),_5=Pt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),x5=Pt(m5,{name:"MuiTouchRipple",slot:"Ripple"})(X1||(X1=If` +`)),x5=Pt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),C5=Pt(v5,{name:"MuiTouchRipple",slot:"Ripple"})(X1||(X1=If` opacity: 0; position: absolute; @@ -174,7 +174,7 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Kr.rippleVisible,S5,dv,({theme:e})=>e.transitions.easing.easeInOut,Kr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Kr.child,Kr.childLeaving,b5,dv,({theme:e})=>e.transitions.easing.easeInOut,Kr.childPulsate,w5,({theme:e})=>e.transitions.easing.easeInOut),C5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=lt(n,g5),[u,c]=N.useState([]),d=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=N.useRef(!1),y=xA(),S=N.useRef(null),g=N.useRef(null),C=N.useCallback(k=>{const{pulsate:E,rippleX:O,rippleY:_,rippleSize:P,cb:I}=k;c(j=>[...j,m.jsx(x5,{classes:{ripple:wt(i.ripple,Kr.ripple),rippleVisible:wt(i.rippleVisible,Kr.rippleVisible),ripplePulsate:wt(i.ripplePulsate,Kr.ripplePulsate),child:wt(i.child,Kr.child),childLeaving:wt(i.childLeaving,Kr.childLeaving),childPulsate:wt(i.childPulsate,Kr.childPulsate)},timeout:dv,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:g.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:ae,clientY:ie}=k.touches&&k.touches.length>0?k.touches[0]:k;$=Math.round(ae-M.left),B=Math.round(ie-M.top)}if(P)W=Math.sqrt((2*M.width**2+M.height**2)/3),W%2===0&&(W+=1);else{const ae=Math.max(Math.abs((j?j.clientWidth:0)-$),$)*2+2,ie=Math.max(Math.abs((j?j.clientHeight:0)-B),B)*2+2;W=Math.sqrt(ae**2+ie**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{C({pulsate:_,rippleX:$,rippleY:B,rippleSize:W,cb:O})},y.start(y5,()=>{S.current&&(S.current(),S.current=null)})):C({pulsate:_,rippleX:$,rippleY:B,rippleSize:W,cb:O})},[o,C,y]),b=N.useCallback(()=>{v({},{pulsate:!0})},[v]),x=N.useCallback((k,E)=>{if(y.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,y.start(0,()=>{x(k,E)});return}S.current=null,c(O=>O.length>0?O.slice(1):O),f.current=E},[y]);return N.useImperativeHandle(r,()=>({pulsate:b,start:v,stop:x}),[b,v,x]),m.jsx(_5,te({className:wt(Kr.root,i.root,a),ref:g},s,{children:m.jsx(p5,{component:null,exit:!0,children:u})}))}),R5=C5;function k5(e){return xn("MuiButtonBase",e)}const P5=Gn("MuiButtonBase",["root","disabled","focusVisible"]),T5=P5,E5=["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"],O5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=qn({root:["root",t&&"disabled",r&&"focusVisible"]},k5,o);return r&&n&&(a.root+=` ${n}`),a},I5=Pt("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"},[`&.${T5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),j5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:S,onClick:g,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:ae}=n,ie=lt(n,E5),pe=N.useRef(null),J=N.useRef(null),oe=ov(J,W),{isFocusVisibleRef:ce,onFocus:we,onBlur:ke,ref:yt}=kk(),[$e,Se]=N.useState(!1);c&&$e&&Se(!1),N.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),pe.current.focus()}}),[]);const[G,V]=N.useState(!1);N.useEffect(()=>{V(!0)},[]);const q=G&&!d&&!c;N.useEffect(()=>{$e&&p&&!d&&G&&J.current.pulsate()},[d,p,$e,G]);function X(_e,ti,ri=f){return $s(Yn=>(ti&&ti(Yn),!ri&&J.current&&J.current[_e](Yn),!0))}const U=X("start",O),he=X("stop",C),ue=X("stop",v),ne=X("stop",P),le=X("stop",_e=>{$e&&_e.preventDefault(),_&&_(_e)}),K=X("start",M),Z=X("stop",I),re=X("stop",j),fe=X("stop",_e=>{ke(_e),ce.current===!1&&Se(!1),S&&S(_e)},!1),ge=$s(_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 u&&u!=="button"&&!(_e.tagName==="A"&&_e.href)},be=N.useRef(!1),Re=$s(_e=>{p&&!be.current&&$e&&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(),g&&g(_e))}),ze=$s(_e=>{p&&_e.key===" "&&J.current&&$e&&!_e.defaultPrevented&&(be.current=!1,J.current.stop(_e,()=>{J.current.pulsate(_e)})),E&&E(_e),g&&_e.target===_e.currentTarget&&ye()&&_e.key===" "&&!_e.defaultPrevented&&g(_e)});let De=u;De==="button"&&(ie.href||ie.to)&&(De=y);const Tt={};De==="button"?(Tt.type=ae===void 0?"button":ae,Tt.disabled=c):(!ie.href&&!ie.to&&(Tt.role="button"),c&&(Tt["aria-disabled"]=c));const vr=ov(r,yt,pe),ir=te({},n,{centerRipple:i,component:u,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:$e}),Gt=O5(ir);return m.jsxs(I5,te({as:De,className:wt(Gt.root,s),ownerState:ir,onBlur:fe,onClick:g,onContextMenu:he,onFocus:ge,onKeyDown:Re,onKeyUp:ze,onMouseDown:U,onMouseLeave:le,onMouseUp:ne,onDragLeave:ue,onTouchEnd:Z,onTouchMove:re,onTouchStart:K,ref:vr,tabIndex:c?-1:$,type:ae},Tt,ie,{children:[a,q?m.jsx(R5,te({ref:oe,center:i},B)):null]}))}),bP=j5;function z5(e){return xn("MuiIconButton",e)}const N5=Gn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),A5=N5,M5=["edge","children","className","color","disabled","disableFocusRipple","size"],L5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`]};return qn(a,z5,t)},$5=Pt(bP,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ke(r.color)}`],r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({theme:e,ownerState:t})=>te({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})`:Wa(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 te({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&te({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":te({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(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)},{[`&.${A5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),D5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=lt(n,M5),p=te({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:d}),y=L5(p);return m.jsx($5,te({className:wt(y.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},f,{children:i}))}),F5=D5,B5=is(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"),W5=is(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),U5=is(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"),H5=is(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"),q5=is(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"),G5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],V5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${Ke(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return qn(i,a5,o)},K5=Pt(i5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ke(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?ad:sd,n=e.palette.mode==="light"?sd:ad,o=t.color||t.severity;return te({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${G1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${G1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&te({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),Y5=Pt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Q5=Pt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),J1=Pt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Z1={success:m.jsx(B5,{fontSize:"inherit"}),warning:m.jsx(W5,{fontSize:"inherit"}),error:m.jsx(U5,{fontSize:"inherit"}),info:m.jsx(H5,{fontSize:"inherit"})},X5=N.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Vn({props:t,name:"MuiAlert"}),{action:d,children:f,className:p,closeText:y="Close",color:S,components:g={},componentsProps:C={},icon:v,iconMapping:b=Z1,onClose:x,role:k="alert",severity:E="success",slotProps:O={},slots:_={},variant:P="standard"}=c,I=lt(c,G5),j=te({},c,{color:S,severity:E,variant:P}),M=V5(j),$=(n=(o=_.closeButton)!=null?o:g.CloseButton)!=null?n:F5,B=(i=(a=_.closeIcon)!=null?a:g.CloseIcon)!=null?i:q5,W=(s=O.closeButton)!=null?s:C.closeButton,ae=(u=O.closeIcon)!=null?u:C.closeIcon;return m.jsxs(K5,te({role:k,elevation:0,ownerState:j,className:wt(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(Y5,{ownerState:j,className:M.icon,children:v||b[E]||Z1[E]}):null,m.jsx(Q5,{ownerState:j,className:M.message,children:f}),d!=null?m.jsx(J1,{ownerState:j,className:M.action,children:d}):null,d==null&&x?m.jsx(J1,{ownerState:j,className:M.action,children:m.jsx($,te({size:"small","aria-label":y,title:y,color:"inherit",onClick:x},W,{children:m.jsx(B,te({fontSize:"small"},ae))}))}):null]}))}),wP=X5,_P=()=>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(wP,{severity:"success",children:"Copied!"})})}),J5=({value:e,onClose:t})=>{const[r,n]=se.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(Of,{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(fy,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(_P,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var fv=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(fv||{});const Z5=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=N.useState("Command"),[s,u]=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 y=()=>{let v="";switch(i){case"Command":v=vP();break;case"Flags":v=mP();break;case"Node Info":v=cy();break;case"Stages":v=yP();break;case"Reorgs":v=SP();break}return v},S=()=>{const v=y();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(b=>{console.log(b)})},g=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(Ps,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(Un,{backgroundColor:as,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(aA,{cmdLine:e}),i==="Flags"&&m.jsx(r3,{flags:t}),i==="Node Info"&&m.jsx(o3,{nodeDetails:r,onShowNodeValueDetails:(v,b)=>{d({key:v,value:b})}}),i==="Stages"&&m.jsx(i3,{syncStages:n}),i==="Reorgs"&&m.jsx(a3,{reorg:o})]})]}),c&&m.jsx(J5,{value:c,onClose:()=>d(null)})]})},eD=()=>{const e=Ee(kt),t=Ee(eA),r=Ee(tA),n=Ee(XN),o=Ee(nA),i=Ee(oA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(Z5,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},tD=e=>({id:e.id,name:e.name,protocols:rD(e.protocols),enodes:oD(e.enodes)}),rD=e=>({eth:nD(e.eth)}),nD=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),oD=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},iD=["boolean","string","number"],aD=e=>{let t=[];for(let r in e)t.push(sD(r,e[r]));return t},sD=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:lD(t.value)}),lD=e=>{let t=typeof e;return iD.includes(t)||uD(e)||cD(e)?e:""};function uD(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function cD(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const dD=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),fD=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},hD=(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:pD(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),pD=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:mD(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Du(e.network.capBytesIn),capBytesOut:Du(e.network.capBytesOut),typeBytesIn:Du(e.network.typeBytesIn),typeBytesOut:Du(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),mD=(e,t)=>t.includes(e),Du=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},vD=(e,t,r)=>{let n=[];for(let d in e.segmentsDownloading){let f=gD(d,r);d.includes("beaconblocks")&&(f=100),n.push(yD(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.downloadedBytesu?s.push(u):s.length>0?s[s.length-1]=u:s.push(u),{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}},gD=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},yD=(e,t,r)=>({name:r,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseeds:ew(e.webseeds),peers:ew(e.peers),indexed:t}),ew=e=>{let t=[];return e.forEach(r=>{t.push({url:r.url,downloadRate:r.downloadRate})}),t},SD=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let u=bD(e.segments[s]);r.push(u),n+=u.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}},bD=e=>({name:e.segmentName,progress:e.percent}),rr=()=>je.getState().app.activeNodeId,wD=()=>{let e=rr();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},_D=()=>{N$().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(tD(r))}),je.dispatch(IN(t))})},xD=()=>{A$().then(e=>{let t=dD(e);je.dispatch(NN({nodeId:rr(),version:t}))})},CD=()=>{M$().then(e=>{let t=aD(e);je.dispatch(AN({nodeId:rr(),flags:t}))})},RD=()=>{L$().then(e=>{je.dispatch(MN({nodeId:rr(),args:e}))})},kD=()=>{D$().then(e=>{je.dispatch($N({nodeId:rr(),syncStages:fD(e)}))})},xP=()=>{$$().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${gP()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),je.dispatch(LN({nodeId:rr(),logFiles:t}))})},PD=()=>{F$().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),je.dispatch(FN({nodeId:rr(),dbs:t}))})},TD=e=>{B$(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),je.dispatch(BN({nodeId:rr(),path:e,tables:r}))})},ED=()=>{W$().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:rr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};je.dispatch(WN(r))})},tw=()=>{const e=rr(),t=je.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=je.getState().network.bootnodes[t].bootnodes),U$().then(n=>{n.forEach(o=>{let i=hD(o,r);je.dispatch(c3({peer:i,nodeId:rr()}))})})},OD=()=>{H$().then(e=>{je.dispatch(d3({nodeId:rr(),bootnodes:e}))})},rw=()=>{q$().then(e=>{if(e){let t=wD(),r=0;t&&t.segments.forEach(s=>{s.name.includes("beaconblocks")||r++});let n=SD(e.snapshotIndexing,r),o=vD(e.snapshotDownload,t,n),i=e.syncStages.currentStage;i===0&&(i=1);let a=[];if(e.syncStages.stagesList!=null&&e.syncStages.stagesList.forEach(s=>{let u=!1;s==="Snapshots"&&(u=!0),a.push({name:s,subStage:u})}),a.length!=0){let s={stages:a,currentStage:i};je.dispatch(R3({nodeId:rr(),stages:s}))}je.dispatch(C3({nodeId:rr(),indexStatus:n})),je.dispatch(x3({nodeId:rr(),downloadStatus:o}))}})},ID=()=>{G$().then(e=>{je.dispatch(_3({nodeId:rr(),files:e.files}))})};var CP={exports:{}},gp={exports:{}},nw;function jD(){return nw||(nw=1,function(e,t){(function(r,n){e.exports=n()})(di,function(){var r=Array.prototype.slice;function n(l,h){h&&(l.prototype=Object.create(h.prototype)),l.prototype.constructor=l}function o(l){return u(l)?l:ne(l)}n(i,o);function i(l){return c(l)?l:le(l)}n(a,o);function a(l){return d(l)?l:K(l)}n(s,o);function s(l){return u(l)&&!f(l)?l:Z(l)}function u(l){return!!(l&&l[y])}function c(l){return!!(l&&l[S])}function d(l){return!!(l&&l[g])}function f(l){return c(l)||d(l)}function p(l){return!!(l&&l[C])}o.isIterable=u,o.isKeyed=c,o.isIndexed=d,o.isAssociative=f,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var y="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,x=1<>>0;if(""+w!==h||w===4294967295)return NaN;h=w}return h<0?$(l)+h:h}function W(){return!0}function ae(l,h,w){return(l===0||w!==void 0&&l<=-w)&&(h===void 0||w!==void 0&&h>=w)}function ie(l,h){return J(l,h,0)}function pe(l,h){return J(l,h,h)}function J(l,h,w){return l===void 0?w:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var oe=0,ce=1,we=2,ke=typeof Symbol=="function"&&Symbol.iterator,yt="@@iterator",$e=ke||yt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=oe,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[$e]=function(){return this};function G(l,h,w,R){var T=l===0?h:l===1?w:[h,w];return R?R.value=T:R={value:T,done:!1},R}function V(){return{value:void 0,done:!0}}function q(l){return!!he(l)}function X(l){return l&&typeof l.next=="function"}function U(l){var h=he(l);return h&&h.call(l)}function he(l){var h=l&&(ke&&l[ke]||l[yt]);if(typeof h=="function")return h}function ue(l){return l&&typeof l.length=="number"}n(ne,o);function ne(l){return l==null?De():u(l)?l.toSeq():ir(l)}ne.of=function(){return ne(arguments)},ne.prototype.toSeq=function(){return this},ne.prototype.toString=function(){return this.__toString("Seq {","}")},ne.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},ne.prototype.__iterate=function(l,h){return _e(this,l,h,!0)},ne.prototype.__iterator=function(l,h){return ti(this,l,h,!0)},n(le,ne);function le(l){return l==null?De().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():Tt(l)}le.prototype.toKeyedSeq=function(){return this},n(K,ne);function K(l){return l==null?De():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():vr(l)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(l,h){return _e(this,l,h,!1)},K.prototype.__iterator=function(l,h){return ti(this,l,h,!1)},n(Z,ne);function Z(l){return(l==null?De():u(l)?c(l)?l.entrySeq():l:vr(l)).toSetSeq()}Z.of=function(){return Z(arguments)},Z.prototype.toSetSeq=function(){return this},ne.isSeq=Re,ne.Keyed=le,ne.Set=Z,ne.Indexed=K;var re="@@__IMMUTABLE_SEQ__@@";ne.prototype[re]=!0,n(fe,K);function fe(l){this._array=l,this.size=l.length}fe.prototype.get=function(l,h){return this.has(l)?this._array[B(this,l)]:h},fe.prototype.__iterate=function(l,h){for(var w=this._array,R=w.length-1,T=0;T<=R;T++)if(l(w[h?R-T:T],T,this)===!1)return T+1;return T},fe.prototype.__iterator=function(l,h){var w=this._array,R=w.length-1,T=0;return new Se(function(){return T>R?V():G(l,T,w[h?R-T++:T++])})},n(ge,le);function ge(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ge.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ge.prototype.has=function(l){return this._object.hasOwnProperty(l)},ge.prototype.__iterate=function(l,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(l(w[A],A,this)===!1)return z+1}return z},ge.prototype.__iterator=function(l,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?V():G(l,A,w[A])})},ge.prototype[C]=!0,n(ye,K);function ye(l){this._iterable=l,this.size=l.length||l.size}ye.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);var w=this._iterable,R=U(w),T=0;if(X(R))for(var z;!(z=R.next()).done&&l(z.value,T++,this)!==!1;);return T},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var w=this._iterable,R=U(w);if(!X(R))return new Se(V);var T=0;return new Se(function(){var z=R.next();return z.done?z:G(l,T++,z.value)})},n(be,K);function be(l){this._iterator=l,this._iteratorCache=[]}be.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,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 G(l,T,R[T++])})};function Re(l){return!!(l&&l[re])}var ze;function De(){return ze||(ze=new fe([]))}function Tt(l){var h=Array.isArray(l)?new fe(l).fromEntrySeq():X(l)?new be(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ge(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function vr(l){var h=Gt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function ir(l){var h=Gt(l)||typeof l=="object"&&new ge(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Gt(l){return ue(l)?new fe(l):X(l)?new be(l):q(l)?new ye(l):void 0}function _e(l,h,w,R){var T=l._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,l)===!1)return A+1}return A}return l.__iterateUncached(h,w)}function ti(l,h,w,R){var T=l._cache;if(T){var z=T.length-1,A=0;return new Se(function(){var L=T[w?z-A:A];return A++>z?V():G(h,R?L[0]:A-1,L[1])})}return l.__iteratorUncached(h,w)}function ri(l,h){return h?Yn(h,l,"",{"":l}):su(l)}function Yn(l,h,w,R){return Array.isArray(h)?l.call(R,w,K(h).map(function(T,z){return Yn(l,T,z,h)})):M0(h)?l.call(R,w,le(h).map(function(T,z){return Yn(l,T,z,h)})):h}function su(l){return Array.isArray(l)?K(l).map(su).toList():M0(l)?le(l).map(su).toMap():l}function M0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function St(l,h){if(l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1;if(typeof l.valueOf=="function"&&typeof h.valueOf=="function"){if(l=l.valueOf(),h=h.valueOf(),l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1}return!!(typeof l.equals=="function"&&typeof h.equals=="function"&&l.equals(h))}function Zf(l,h){if(l===h)return!0;if(!u(h)||l.size!==void 0&&h.size!==void 0&&l.size!==h.size||l.__hash!==void 0&&h.__hash!==void 0&&l.__hash!==h.__hash||c(l)!==c(h)||d(l)!==d(h)||p(l)!==p(h))return!1;if(l.size===0&&h.size===0)return!0;var w=!f(l);if(p(l)){var R=l.entries();return h.every(function(F,H){var Q=R.next().value;return Q&&St(Q[1],F)&&(w||St(Q[0],H))})&&R.next().done}var T=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{T=!0;var z=l;l=h,h=z}var A=!0,L=h.__iterate(function(F,H){if(w?!l.has(F):T?!St(F,l.get(H,E)):!St(l.get(H,E),F))return A=!1,!1});return A&&l.size===L}n(Vt,K);function Vt(l,h){if(!(this instanceof Vt))return new Vt(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(eh)return eh;eh=this}}Vt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Vt.prototype.get=function(l,h){return this.has(l)?this._value:h},Vt.prototype.includes=function(l){return St(this._value,l)},Vt.prototype.slice=function(l,h){var w=this.size;return ae(l,h,w)?this:new Vt(this._value,pe(h,w)-ie(l,w))},Vt.prototype.reverse=function(){return this},Vt.prototype.indexOf=function(l){return St(this._value,l)?0:-1},Vt.prototype.lastIndexOf=function(l){return St(this._value,l)?this.size:-1},Vt.prototype.__iterate=function(l,h){for(var w=0;w=0&&h=0&&ww?V():G(l,z++,A)})},Lt.prototype.equals=function(l){return l instanceof Lt?this._start===l._start&&this._end===l._end&&this._step===l._step:Zf(this,l)};var th;n(go,o);function go(){throw TypeError("Abstract")}n(ds,go);function ds(){}n(Di,go);function Di(){}n(uu,go);function uu(){}go.Keyed=ds,go.Indexed=Di,go.Set=uu;var fs=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 rh(l){return l>>>1&1073741824|l&3221225471}function Tr(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var h=typeof l;if(h==="number"){if(l!==l||l===1/0)return 0;var w=l|0;for(w!==l&&(w^=l*4294967295);l>4294967295;)l/=4294967295,w^=l;return rh(w)}if(h==="string")return l.length>GE?UE(l):nh(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return HE(l);if(typeof l.toString=="function")return nh(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function UE(l){var h=lh[l];return h===void 0&&(h=nh(l),sh===VE&&(sh=0,lh={}),sh++,lh[l]=h),h}function nh(l){for(var h=0,w=0;w0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var oh=typeof WeakMap=="function",ih;oh&&(ih=new WeakMap);var ah=0,ni="__immutablehash__";typeof Symbol=="function"&&(ni=Symbol(ni));var GE=16,VE=255,sh=0,lh={};function Er(l){lu(l!==1/0,"Cannot perform this action with an infinite size.")}n(Oe,ds);function Oe(l){return l==null?cn():uh(l)&&!p(l)?l:cn().withMutations(function(h){var w=i(l);Er(w.size),w.forEach(function(R,T){return h.set(T,R)})})}Oe.of=function(){var l=r.call(arguments,0);return cn().withMutations(function(h){for(var w=0;w=l.length)throw new Error("Missing value for key: "+l[w]);h.set(l[w],l[w+1])}})},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Oe.prototype.set=function(l,h){return W0(this,l,h)},Oe.prototype.setIn=function(l,h){return this.updateIn(l,E,function(){return h})},Oe.prototype.remove=function(l){return W0(this,l,E)},Oe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return E})},Oe.prototype.update=function(l,h,w){return arguments.length===1?l(this):this.updateIn([l],h,w)},Oe.prototype.updateIn=function(l,h,w){w||(w=h,h=void 0);var R=V0(this,pS(l),h,w);return R===E?void 0:R},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):cn()},Oe.prototype.merge=function(){return cu(this,void 0,arguments)},Oe.prototype.mergeWith=function(l){var h=r.call(arguments,1);return cu(this,l,h)},Oe.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.merge=="function"?w.merge.apply(w,h):h[h.length-1]})},Oe.prototype.mergeDeep=function(){return cu(this,H0,arguments)},Oe.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return cu(this,q0(l),h)},Oe.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.mergeDeep=="function"?w.mergeDeep.apply(w,h):h[h.length-1]})},Oe.prototype.sort=function(l){return ht(Gi(this,l))},Oe.prototype.sortBy=function(l,h){return ht(Gi(this,h,l))},Oe.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(l,h){return new ch(this,l,h)},Oe.prototype.__iterate=function(l,h){var w=this,R=0;return this._root&&this._root.iterate(function(T){return R++,l(T[1],T[0],w)},h),R},Oe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?fh(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function uh(l){return!!(l&&l[D0])}Oe.isMap=uh;var D0="@@__IMMUTABLE_MAP__@@",Pe=Oe.prototype;Pe[D0]=!0,Pe[v]=Pe.remove,Pe.removeIn=Pe.deleteIn;function hs(l,h){this.ownerID=l,this.entries=h}hs.prototype.get=function(l,h,w,R){for(var T=this.entries,z=0,A=T.length;z=ZE)return KE(l,F,R,T);var ve=l&&l===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 hs(l,xe)}};function Fi(l,h,w){this.ownerID=l,this.bitmap=h,this.nodes=w}Fi.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var T=1<<((l===0?h:h>>>l)&k),z=this.bitmap;return z&T?this.nodes[K0(z&T-1)].get(l+b,h,w,R):R},Fi.prototype.update=function(l,h,w,R,T,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,F=1<=eO)return QE(l,ve,H,L,Ce);if(Q&&!Ce&&ve.length===2&&U0(ve[de^1]))return ve[de^1];if(Q&&Ce&&ve.length===1&&U0(Ce))return Ce;var Ze=l&&l===this.ownerID,dn=Q?Ce?H:H^F:H|F,Tn=Q?Ce?Y0(ve,de,Ce,Ze):JE(ve,de,Ze):XE(ve,de,Ce,Ze);return Ze?(this.bitmap=dn,this.nodes=Tn,this):new Fi(l,dn,Tn)};function ps(l,h,w){this.ownerID=l,this.count=h,this.nodes=w}ps.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var T=(l===0?h:h>>>l)&k,z=this.nodes[T];return z?z.get(l+b,h,w,R):R},ps.prototype.update=function(l,h,w,R,T,z,A){w===void 0&&(w=Tr(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=hh(Q,l,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(l,h,w+b,R,T)]:(L=new Qn(h,R,T),z>>=1)A[L]=w&1?h[z++]:void 0;return A[R]=T,new ps(l,z+1,A)}function cu(l,h,w){for(var R=[],T=0;T>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function Y0(l,h,w,R){var T=R?l:M(l);return T[h]=w,T}function XE(l,h,w,R){var T=l.length+1;if(R&&h+1===T)return l[h]=w,l;for(var z=new Array(T),A=0,L=0;L0&&R=0&&l>>h&k;if(R>=this.array.length)return new yo([],l);var T=R===0,z;if(h>0){var A=this.array[R];if(z=A&&A.removeBefore(l,h-b,w),z===A&&T)return this}if(T&&!z)return this;var L=Wi(this,l);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(l,h-b,w),T===z&&R===this.array.length-1)return this}var A=Wi(this,l);return A.array.splice(R+1),T&&(A.array[R]=T),A};var ms={};function J0(l,h){var w=l._origin,R=l._capacity,T=gs(R),z=l._tail;return A(l._root,l._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 ms;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,Ze=(R-de>>Q)+1;return Ze>x&&(Ze=x),function(){do{if(ve){var dn=ve();if(dn!==ms)return dn;ve=null}if(Ce===Ze)return ms;var Tn=h?--Ze:Ce++;ve=A(xe&&xe[Tn],Q-b,de+(Tn<=l.size||h<0)return l.withMutations(function(A){h<0?So(A,h).set(0,w):So(A,0,h+1).set(h,w)});h+=l._origin;var R=l._tail,T=l._root,z=P(_);return h>=gs(l._capacity)?R=vh(R,l.__ownerID,0,h,w,z):T=vh(T,l.__ownerID,l._level,h,w,z),z.value?l.__ownerID?(l._root=T,l._tail=R,l.__hash=void 0,l.__altered=!0,l):vs(l._origin,l._capacity,l._level,T,R):l}function vh(l,h,w,R,T,z){var A=R>>>w&k,L=l&&A0){var H=l&&l.array[A],Q=vh(H,h,w-b,R,T,z);return Q===H?l:(F=Wi(l,h),F.array[A]=Q,F)}return L&&l.array[A]===T?l:(I(z),F=Wi(l,h),T===void 0&&A===F.array.length-1?F.array.pop():F.array[A]=T,F)}function Wi(l,h){return h&&l&&h===l.ownerID?l:new yo(l?l.array.slice():[],h)}function eS(l,h){if(h>=gs(l._capacity))return l._tail;if(h<1<0;)w=w.array[h>>>R&k],R-=b;return w}}function So(l,h,w){h!==void 0&&(h=h|0),w!==void 0&&(w=w|0);var R=l.__ownerID||new j,T=l._origin,z=l._capacity,A=T+h,L=w===void 0?z:w<0?z+w:T+w;if(A===T&&L===z)return l;if(A>=L)return l.clear();for(var F=l._level,H=l._root,Q=0;A+Q<0;)H=new yo(H&&H.array.length?[void 0,H]:[],R),F+=b,Q+=1<=1<de?new yo([],R):xe;if(xe&&ve>de&&Ab;dn-=b){var Tn=de>>>dn&k;Ze=Ze.array[Tn]=Wi(Ze.array[Tn],R)}Ze.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(yu!==ve>>>F&k)break;yu&&(Q+=(1<T&&(H=H.removeBefore(R,F,A-Q)),H&&veT&&(T=L.size),u(A)||(L=L.map(function(F){return ri(F)})),R.push(L)}return T>l.size&&(l=l.setSize(T)),G0(l,h,R)}function gs(l){return l>>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(),l.__ownerID&&(L.__ownerID=F.__ownerID=l.__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 l;L=R,F=T.set(z,[h,w])}else L=R.set(h,T.size),F=T.set(T.size,[h,w]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=F,l.__hash=void 0,l):gh(L,F)}n(Vr,le);function Vr(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Vr.prototype.get=function(l,h){return this._iter.get(l,h)},Vr.prototype.has=function(l){return this._iter.has(l)},Vr.prototype.valueSeq=function(){return this._iter.valueSeq()},Vr.prototype.reverse=function(){var l=this,h=yh(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Vr.prototype.map=function(l,h){var w=this,R=iS(this,l,h);return this._useKeys||(R.valueSeq=function(){return w._iter.toSeq().map(l,h)}),R},Vr.prototype.__iterate=function(l,h){var w=this,R;return this._iter.__iterate(this._useKeys?function(T,z){return l(T,z,w)}:(R=h?dS(this):0,function(T){return l(T,h?--R:R++,w)}),h)},Vr.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var w=this._iter.__iterator(ce,h),R=h?dS(this):0;return new Se(function(){var T=w.next();return T.done?T:G(l,h?--R:R++,T.value,T)})},Vr.prototype[C]=!0,n(Ui,K);function Ui(l){this._iter=l,this.size=l.size}Ui.prototype.includes=function(l){return this._iter.includes(l)},Ui.prototype.__iterate=function(l,h){var w=this,R=0;return this._iter.__iterate(function(T){return l(T,R++,w)},h)},Ui.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h),R=0;return new Se(function(){var T=w.next();return T.done?T:G(l,R++,T.value,T)})},n(Hi,Z);function Hi(l){this._iter=l,this.size=l.size}Hi.prototype.has=function(l){return this._iter.includes(l)},Hi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){return l(R,R,w)},h)},Hi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){var R=w.next();return R.done?R:G(l,R.value,R.value,R)})},n(qi,le);function qi(l){this._iter=l,this.size=l.size}qi.prototype.entrySeq=function(){return this._iter.toSeq()},qi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){if(R){cS(R);var T=u(R);return l(T?R.get(1):R[1],T?R.get(0):R[0],w)}},h)},qi.prototype.__iterator=function(l,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){cS(T);var z=u(T);return G(l,z?T.get(0):T[0],z?T.get(1):T[1],R)}}})},Ui.prototype.cacheResult=Vr.prototype.cacheResult=Hi.prototype.cacheResult=qi.prototype.cacheResult=wh;function oS(l){var h=Rn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var w=l.reverse.apply(this);return w.flip=function(){return l.reverse()},w},h.has=function(w){return l.includes(w)},h.includes=function(w){return l.has(w)},h.cacheResult=wh,h.__iterateUncached=function(w,R){var T=this;return l.__iterate(function(z,A){return w(A,z,T)!==!1},R)},h.__iteratorUncached=function(w,R){if(w===we){var T=l.__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 l.__iterator(w===ce?oe:ce,R)},h}function iS(l,h,w){var R=Rn(l);return R.size=l.size,R.has=function(T){return l.has(T)},R.get=function(T,z){var A=l.get(T,E);return A===E?z:h.call(w,A,T,l)},R.__iterateUncached=function(T,z){var A=this;return l.__iterate(function(L,F,H){return T(h.call(w,L,F,H),F,A)!==!1},z)},R.__iteratorUncached=function(T,z){var A=l.__iterator(we,z);return new Se(function(){var L=A.next();if(L.done)return L;var F=L.value,H=F[0];return G(T,H,h.call(w,F[1],H,l),L)})},R}function yh(l,h){var w=Rn(l);return w._iter=l,w.size=l.size,w.reverse=function(){return l},l.flip&&(w.flip=function(){var R=oS(l);return R.reverse=function(){return l.flip()},R}),w.get=function(R,T){return l.get(h?R:-1-R,T)},w.has=function(R){return l.has(h?R:-1-R)},w.includes=function(R){return l.includes(R)},w.cacheResult=wh,w.__iterate=function(R,T){var z=this;return l.__iterate(function(A,L){return R(A,L,z)},!T)},w.__iterator=function(R,T){return l.__iterator(R,!T)},w}function aS(l,h,w,R){var T=Rn(l);return R&&(T.has=function(z){var A=l.get(z,E);return A!==E&&!!h.call(w,A,z,l)},T.get=function(z,A){var L=l.get(z,E);return L!==E&&h.call(w,L,z,l)?L:A}),T.__iterateUncached=function(z,A){var L=this,F=0;return l.__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=l.__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,l))return G(z,R?de:F++,ve,H)}})},T}function nO(l,h,w){var R=Oe().asMutable();return l.__iterate(function(T,z){R.update(h.call(w,T,z,l),0,function(A){return A+1})}),R.asImmutable()}function oO(l,h,w){var R=c(l),T=(p(l)?ht():Oe()).asMutable();l.__iterate(function(A,L){T.update(h.call(w,A,L,l),function(F){return F=F||[],F.push(R?[L,A]:A),F})});var z=fS(l);return T.map(function(A){return Ge(l,z(A))})}function Sh(l,h,w,R){var T=l.size;if(h!==void 0&&(h=h|0),w!==void 0&&(w===1/0?w=T:w=w|0),ae(h,w,T))return l;var z=ie(h,T),A=pe(w,T);if(z!==z||A!==A)return Sh(l.toSeq().cacheResult(),h,w,R);var L=A-z,F;L===L&&(F=L<0?0:L);var H=Rn(l);return H.size=F===0?F:l.size&&F||void 0,!R&&Re(l)&&F>=0&&(H.get=function(Q,de){return Q=B(this,Q),Q>=0&&QF)return V();var Ze=ve.next();return R||Q===ce?Ze:Q===oe?G(Q,Ce-1,void 0,Ze):G(Q,Ce-1,Ze.value[1],Ze)})},H}function iO(l,h,w){var R=Rn(l);return R.__iterateUncached=function(T,z){var A=this;if(z)return this.cacheResult().__iterate(T,z);var L=0;return l.__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=l.__iterator(we,z),F=!0;return new Se(function(){if(!F)return V();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:G(T,de,ve,H):(F=!1,V())})},R}function sS(l,h,w,R){var T=Rn(l);return T.__iterateUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterate(z,A);var F=!0,H=0;return l.__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=l.__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===oe?G(z,Q++,void 0,de):G(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:G(z,ve,xe,de)})},T}function aO(l,h){var w=c(l),R=[l].concat(h).map(function(A){return u(A)?w&&(A=i(A)):A=w?Tt(A):vr(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(R.length===0)return l;if(R.length===1){var T=R[0];if(T===l||w&&c(T)||d(l)&&d(T))return T}var z=new fe(R);return w?z=z.toKeyedSeq():d(l)||(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 lS(l,h,w){var R=Rn(l);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 bh(l,h,w){var R=Rn(l);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?V():G(T,L++,h.apply(null,H.map(function(Q){return Q.value})))})},R}function Ge(l,h){return Re(l)?h:l.constructor(h)}function cS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function dS(l){return Er(l.size),$(l)}function fS(l){return c(l)?i:d(l)?a:s}function Rn(l){return Object.create((c(l)?le:d(l)?K:Z).prototype)}function wh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ne.prototype.cacheResult.call(this)}function hS(l,h){return l>h?1:l=0;w--)h={value:arguments[w],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):ys(l,h)},bt.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Er(l.size);var h=this.size,w=this._head;return l.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):ys(h,w)},bt.prototype.pop=function(){return this.slice(1)},bt.prototype.unshift=function(){return this.push.apply(this,arguments)},bt.prototype.unshiftAll=function(l){return this.pushAll(l)},bt.prototype.shift=function(){return this.pop.apply(this,arguments)},bt.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):kh()},bt.prototype.slice=function(l,h){if(ae(l,h,this.size))return this;var w=ie(l,this.size),R=pe(h,this.size);if(R!==this.size)return Di.prototype.slice.call(this,l,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):ys(T,z)},bt.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?ys(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},bt.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var w=0,R=this._head;R&&l(R.value,w++,this)!==!1;)R=R.next;return w},bt.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var w=0,R=this._head;return new Se(function(){if(R){var T=R.value;return R=R.next,G(l,w++,T)}return V()})};function _S(l){return!!(l&&l[xS])}bt.isStack=_S;var xS="@@__IMMUTABLE_STACK__@@",Vi=bt.prototype;Vi[xS]=!0,Vi.withMutations=Pe.withMutations,Vi.asMutable=Pe.asMutable,Vi.asImmutable=Pe.asImmutable,Vi.wasAltered=Pe.wasAltered;function ys(l,h,w,R){var T=Object.create(Vi);return T.size=l,T._head=h,T.__ownerID=w,T.__hash=R,T.__altered=!1,T}var CS;function kh(){return CS||(CS=ys(0))}function Pn(l,h){var w=function(R){l.prototype[R]=h[R]};return Object.keys(h).forEach(w),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(w),l}o.Iterator=Se,Pn(o,{toArray:function(){Er(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,w){l[w]=h}),l},toIndexedSeq:function(){return new Ui(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new Vr(this,!0)},toMap:function(){return Oe(this.toKeyedSeq())},toObject:function(){Er(this.size);var l={};return this.__iterate(function(h,w){l[w]=h}),l},toOrderedMap:function(){return ht(this.toKeyedSeq())},toOrderedSet:function(){return kn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Hi(this)},toSeq:function(){return d(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return bt(c(this)?this.valueSeq():this)},toList:function(){return Ye(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,h){return this.size===0?l+h:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+h},concat:function(){var l=r.call(arguments,0);return Ge(this,aO(this,l))},includes:function(l){return this.some(function(h){return St(h,l)})},entries:function(){return this.__iterator(we)},every:function(l,h){Er(this.size);var w=!0;return this.__iterate(function(R,T,z){if(!l.call(h,R,T,z))return w=!1,!1}),w},filter:function(l,h){return Ge(this,aS(this,l,h,!0))},find:function(l,h,w){var R=this.findEntry(l,h);return R?R[1]:w},forEach:function(l,h){return Er(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Er(this.size),l=l!==void 0?""+l:",";var h="",w=!0;return this.__iterate(function(R){w?w=!1:h+=l,h+=R!=null?R.toString():""}),h},keys:function(){return this.__iterator(oe)},map:function(l,h){return Ge(this,iS(this,l,h))},reduce:function(l,h,w){Er(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=l.call(w,R,z,A,L)}),R},reduceRight:function(l,h,w){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return Ge(this,yh(this,!0))},slice:function(l,h){return Ge(this,Sh(this,l,h,!0))},some:function(l,h){return!this.every(gu(l),h)},sort:function(l){return Ge(this,Gi(this,l))},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(l,h){return $(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return nO(this,l,h)},equals:function(l){return Zf(this,l)},entrySeq:function(){var l=this;if(l._cache)return new fe(l._cache);var h=l.toSeq().map(fO).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(gu(l),h)},findEntry:function(l,h,w){var R=w;return this.__iterate(function(T,z,A){if(l.call(h,T,z,A))return R=[z,T],!1}),R},findKey:function(l,h){var w=this.findEntry(l,h);return w&&w[0]},findLast:function(l,h,w){return this.toKeyedSeq().reverse().find(l,h,w)},findLastEntry:function(l,h,w){return this.toKeyedSeq().reverse().findEntry(l,h,w)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(W)},flatMap:function(l,h){return Ge(this,sO(this,l,h))},flatten:function(l){return Ge(this,lS(this,l,!0))},fromEntrySeq:function(){return new qi(this)},get:function(l,h){return this.find(function(w,R){return St(R,l)},void 0,h)},getIn:function(l,h){for(var w=this,R=pS(l),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(l,h){return oO(this,l,h)},has:function(l){return this.get(l,E)!==E},hasIn:function(l){return this.getIn(l,E)!==E},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(h){return l.includes(h)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(h){return St(h,l)})},keySeq:function(){return this.toSeq().map(dO).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return hu(this,l)},maxBy:function(l,h){return hu(this,h,l)},min:function(l){return hu(this,l?RS(l):PS)},minBy:function(l,h){return hu(this,h?RS(h):PS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return Ge(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return Ge(this,sS(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(gu(l),h)},sortBy:function(l,h){return Ge(this,Gi(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return Ge(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return Ge(this,iO(this,l,h))},takeUntil:function(l,h){return this.takeWhile(gu(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=pO(this))}});var sr=o.prototype;sr[y]=!0,sr[$e]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=kS,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Pn(i,{flip:function(){return Ge(this,oS(this))},mapEntries:function(l,h){var w=this,R=0;return Ge(this,this.toSeq().map(function(T,z){return l.call(h,[z,T],R++,w)}).fromEntrySeq())},mapKeys:function(l,h){var w=this;return Ge(this,this.toSeq().flip().map(function(R,T){return l.call(h,R,T,w)}).flip())}});var vu=i.prototype;vu[S]=!0,vu[$e]=sr.entries,vu.__toJS=sr.toObject,vu.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+kS(l)},Pn(a,{toKeyedSeq:function(){return new Vr(this,!1)},filter:function(l,h){return Ge(this,aS(this,l,h,!1))},findIndex:function(l,h){var w=this.findEntry(l,h);return w?w[0]:-1},indexOf:function(l){var h=this.keyOf(l);return h===void 0?-1:h},lastIndexOf:function(l){var h=this.lastKeyOf(l);return h===void 0?-1:h},reverse:function(){return Ge(this,yh(this,!1))},slice:function(l,h){return Ge(this,Sh(this,l,h,!1))},splice:function(l,h){var w=arguments.length;if(h=Math.max(h|0,0),w===0||w===2&&!h)return this;l=ie(l,l<0?this.count():this.size);var R=this.slice(0,l);return Ge(this,w===1?R:R.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var w=this.findLastEntry(l,h);return w?w[0]:-1},first:function(){return this.get(0)},flatten:function(l){return Ge(this,lS(this,l,!1))},get:function(l,h){return l=B(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(w,R){return R===l},void 0,h)},has:function(l){return l=B(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function pO(l){if(l.size===1/0)return 0;var h=p(l),w=c(l),R=h?1:0,T=l.__iterate(w?h?function(z,A){R=31*R+TS(Tr(z),Tr(A))|0}:function(z,A){R=R+TS(Tr(z),Tr(A))|0}:h?function(z){R=31*R+Tr(z)|0}:function(z){R=R+Tr(z)|0});return mO(T,R)}function mO(l,h){return h=fs(h,3432918353),h=fs(h<<15|h>>>-15,461845907),h=fs(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=fs(h^h>>>16,2246822507),h=fs(h^h>>>13,3266489909),h=rh(h^h>>>16),h}function TS(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var vO={Iterable:o,Seq:ne,Collection:go,Map:Oe,OrderedMap:ht,List:Ye,Stack:bt,Set:Je,OrderedSet:kn,Record:Or,Range:Lt,Repeat:Vt,is:St,fromJS:ri};return vO})}(gp)),gp.exports}function zD(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 ND=Object.freeze(Object.defineProperty({__proto__:null,default:zD},Symbol.toStringTag,{value:"Module"})),AD=Ja(ND);var yp,ow;function RP(){if(ow)return yp;ow=1;var e=typeof di=="object"&&di&&di.Object===Object&&di;return yp=e,yp}var Sp,iw;function MD(){if(iw)return Sp;iw=1;var e=RP(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Sp=r,Sp}var bp,aw;function jf(){if(aw)return bp;aw=1;var e=MD(),t=e.Symbol;return bp=t,bp}var wp,sw;function LD(){if(sw)return wp;sw=1;var e=jf(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),u=a[o];try{a[o]=void 0;var c=!0}catch{}var d=n.call(a);return c&&(s?a[o]=u:delete a[o]),d}return wp=i,wp}var _p,lw;function $D(){if(lw)return _p;lw=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _p=r,_p}var xp,uw;function zf(){if(uw)return xp;uw=1;var e=jf(),t=LD(),r=$D(),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 xp=a,xp}var Cp,cw;function Jl(){if(cw)return Cp;cw=1;function e(t){return t!=null&&typeof t=="object"}return Cp=e,Cp}var Rp,dw;function DD(){if(dw)return Rp;dw=1;var e=zf(),t=Jl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return Rp=n,Rp}var kp,fw;function FD(){if(fw)return kp;fw=1;function e(t){return function(r){return t(r)}}return kp=e,kp}var Ds={exports:{}};Ds.exports;var hw;function BD(){return hw||(hw=1,function(e,t){var r=RP(),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 u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Ds,Ds.exports)),Ds.exports}var Pp,pw;function WD(){if(pw)return Pp;pw=1;var e=DD(),t=FD(),r=BD(),n=r&&r.isRegExp,o=n?t(n):e;return Pp=o,Pp}var Tp,mw;function UD(){if(mw)return Tp;mw=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 Dp=r,Dp}var Fp,Pw;function eF(){if(Pw)return Fp;Pw=1;var e=ZD();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Fp=t,Fp}var Bp,Tw;function tF(){if(Tw)return Bp;Tw=1;var e=WD(),t=VD(),r=KD(),n=eF();function o(i,a,s){var u=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,y=f.length;pe.transitions.easing.easeInOut,Kr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Kr.child,Kr.childLeaving,w5,dv,({theme:e})=>e.transitions.easing.easeInOut,Kr.childPulsate,_5,({theme:e})=>e.transitions.easing.easeInOut),R5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=lt(n,y5),[u,c]=N.useState([]),d=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=N.useRef(!1),y=_A(),S=N.useRef(null),g=N.useRef(null),C=N.useCallback(k=>{const{pulsate:E,rippleX:O,rippleY:_,rippleSize:P,cb:I}=k;c(j=>[...j,m.jsx(C5,{classes:{ripple:wt(i.ripple,Kr.ripple),rippleVisible:wt(i.rippleVisible,Kr.rippleVisible),ripplePulsate:wt(i.ripplePulsate,Kr.ripplePulsate),child:wt(i.child,Kr.child),childLeaving:wt(i.childLeaving,Kr.childLeaving),childPulsate:wt(i.childPulsate,Kr.childPulsate)},timeout:dv,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:g.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:ae,clientY:ie}=k.touches&&k.touches.length>0?k.touches[0]:k;$=Math.round(ae-M.left),B=Math.round(ie-M.top)}if(P)W=Math.sqrt((2*M.width**2+M.height**2)/3),W%2===0&&(W+=1);else{const ae=Math.max(Math.abs((j?j.clientWidth:0)-$),$)*2+2,ie=Math.max(Math.abs((j?j.clientHeight:0)-B),B)*2+2;W=Math.sqrt(ae**2+ie**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{C({pulsate:_,rippleX:$,rippleY:B,rippleSize:W,cb:O})},y.start(S5,()=>{S.current&&(S.current(),S.current=null)})):C({pulsate:_,rippleX:$,rippleY:B,rippleSize:W,cb:O})},[o,C,y]),b=N.useCallback(()=>{v({},{pulsate:!0})},[v]),x=N.useCallback((k,E)=>{if(y.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,y.start(0,()=>{x(k,E)});return}S.current=null,c(O=>O.length>0?O.slice(1):O),f.current=E},[y]);return N.useImperativeHandle(r,()=>({pulsate:b,start:v,stop:x}),[b,v,x]),m.jsx(x5,te({className:wt(Kr.root,i.root,a),ref:g},s,{children:m.jsx(m5,{component:null,exit:!0,children:u})}))}),k5=R5;function P5(e){return xn("MuiButtonBase",e)}const T5=Gn("MuiButtonBase",["root","disabled","focusVisible"]),E5=T5,O5=["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"],I5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=qn({root:["root",t&&"disabled",r&&"focusVisible"]},P5,o);return r&&n&&(a.root+=` ${n}`),a},j5=Pt("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"},[`&.${E5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:S,onClick:g,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:ae}=n,ie=lt(n,O5),pe=N.useRef(null),J=N.useRef(null),oe=ov(J,W),{isFocusVisibleRef:ce,onFocus:we,onBlur:ke,ref:yt}=kk(),[$e,Se]=N.useState(!1);c&&$e&&Se(!1),N.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),pe.current.focus()}}),[]);const[G,V]=N.useState(!1);N.useEffect(()=>{V(!0)},[]);const q=G&&!d&&!c;N.useEffect(()=>{$e&&p&&!d&&G&&J.current.pulsate()},[d,p,$e,G]);function X(_e,ti,ri=f){return $s(Yn=>(ti&&ti(Yn),!ri&&J.current&&J.current[_e](Yn),!0))}const U=X("start",O),he=X("stop",C),ue=X("stop",v),ne=X("stop",P),le=X("stop",_e=>{$e&&_e.preventDefault(),_&&_(_e)}),K=X("start",M),Z=X("stop",I),re=X("stop",j),fe=X("stop",_e=>{ke(_e),ce.current===!1&&Se(!1),S&&S(_e)},!1),ge=$s(_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 u&&u!=="button"&&!(_e.tagName==="A"&&_e.href)},be=N.useRef(!1),Re=$s(_e=>{p&&!be.current&&$e&&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(),g&&g(_e))}),ze=$s(_e=>{p&&_e.key===" "&&J.current&&$e&&!_e.defaultPrevented&&(be.current=!1,J.current.stop(_e,()=>{J.current.pulsate(_e)})),E&&E(_e),g&&_e.target===_e.currentTarget&&ye()&&_e.key===" "&&!_e.defaultPrevented&&g(_e)});let De=u;De==="button"&&(ie.href||ie.to)&&(De=y);const Tt={};De==="button"?(Tt.type=ae===void 0?"button":ae,Tt.disabled=c):(!ie.href&&!ie.to&&(Tt.role="button"),c&&(Tt["aria-disabled"]=c));const vr=ov(r,yt,pe),ir=te({},n,{centerRipple:i,component:u,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:$e}),Gt=I5(ir);return m.jsxs(j5,te({as:De,className:wt(Gt.root,s),ownerState:ir,onBlur:fe,onClick:g,onContextMenu:he,onFocus:ge,onKeyDown:Re,onKeyUp:ze,onMouseDown:U,onMouseLeave:le,onMouseUp:ne,onDragLeave:ue,onTouchEnd:Z,onTouchMove:re,onTouchStart:K,ref:vr,tabIndex:c?-1:$,type:ae},Tt,ie,{children:[a,q?m.jsx(k5,te({ref:oe,center:i},B)):null]}))}),SP=z5;function N5(e){return xn("MuiIconButton",e)}const A5=Gn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),M5=A5,L5=["edge","children","className","color","disabled","disableFocusRipple","size"],$5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`]};return qn(a,N5,t)},D5=Pt(SP,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ke(r.color)}`],r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({theme:e,ownerState:t})=>te({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})`:Wa(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 te({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&te({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":te({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(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)},{[`&.${M5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),F5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=lt(n,L5),p=te({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:d}),y=$5(p);return m.jsx(D5,te({className:wt(y.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},f,{children:i}))}),B5=F5,W5=is(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"),U5=is(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),H5=is(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"),q5=is(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"),G5=is(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"),V5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],K5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${Ke(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return qn(i,s5,o)},Y5=Pt(a5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ke(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?ad:sd,n=e.palette.mode==="light"?sd:ad,o=t.color||t.severity;return te({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${G1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${G1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&te({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),Q5=Pt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),X5=Pt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),J1=Pt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Z1={success:m.jsx(W5,{fontSize:"inherit"}),warning:m.jsx(U5,{fontSize:"inherit"}),error:m.jsx(H5,{fontSize:"inherit"}),info:m.jsx(q5,{fontSize:"inherit"})},J5=N.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Vn({props:t,name:"MuiAlert"}),{action:d,children:f,className:p,closeText:y="Close",color:S,components:g={},componentsProps:C={},icon:v,iconMapping:b=Z1,onClose:x,role:k="alert",severity:E="success",slotProps:O={},slots:_={},variant:P="standard"}=c,I=lt(c,V5),j=te({},c,{color:S,severity:E,variant:P}),M=K5(j),$=(n=(o=_.closeButton)!=null?o:g.CloseButton)!=null?n:B5,B=(i=(a=_.closeIcon)!=null?a:g.CloseIcon)!=null?i:G5,W=(s=O.closeButton)!=null?s:C.closeButton,ae=(u=O.closeIcon)!=null?u:C.closeIcon;return m.jsxs(Y5,te({role:k,elevation:0,ownerState:j,className:wt(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(Q5,{ownerState:j,className:M.icon,children:v||b[E]||Z1[E]}):null,m.jsx(X5,{ownerState:j,className:M.message,children:f}),d!=null?m.jsx(J1,{ownerState:j,className:M.action,children:d}):null,d==null&&x?m.jsx(J1,{ownerState:j,className:M.action,children:m.jsx($,te({size:"small","aria-label":y,title:y,color:"inherit",onClick:x},W,{children:m.jsx(B,te({fontSize:"small"},ae))}))}):null]}))}),bP=J5,wP=()=>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(bP,{severity:"success",children:"Copied!"})})}),Z5=({value:e,onClose:t})=>{const[r,n]=se.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(Of,{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(fy,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(wP,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var fv=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(fv||{});const eD=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=N.useState("Command"),[s,u]=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 y=()=>{let v="";switch(i){case"Command":v=mP();break;case"Flags":v=pP();break;case"Node Info":v=cy();break;case"Stages":v=gP();break;case"Reorgs":v=yP();break}return v},S=()=>{const v=y();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(b=>{console.log(b)})},g=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(Ps,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(Un,{backgroundColor:as,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(iA,{cmdLine:e}),i==="Flags"&&m.jsx(t3,{flags:t}),i==="Node Info"&&m.jsx(n3,{nodeDetails:r,onShowNodeValueDetails:(v,b)=>{d({key:v,value:b})}}),i==="Stages"&&m.jsx(o3,{syncStages:n}),i==="Reorgs"&&m.jsx(i3,{reorg:o})]})]}),c&&m.jsx(Z5,{value:c,onClose:()=>d(null)})]})},tD=()=>{const e=Ee(kt),t=Ee(ZN),r=Ee(eA),n=Ee(QN),o=Ee(rA),i=Ee(nA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(eD,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},rD=e=>({id:e.id,name:e.name,protocols:nD(e.protocols),enodes:iD(e.enodes)}),nD=e=>({eth:oD(e.eth)}),oD=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),iD=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},aD=["boolean","string","number"],sD=e=>{let t=[];for(let r in e)t.push(lD(r,e[r]));return t},lD=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:uD(t.value)}),uD=e=>{let t=typeof e;return aD.includes(t)||cD(e)||dD(e)?e:""};function cD(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function dD(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const fD=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),hD=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},pD=(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:mD(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),mD=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:vD(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Du(e.network.capBytesIn),capBytesOut:Du(e.network.capBytesOut),typeBytesIn:Du(e.network.typeBytesIn),typeBytesOut:Du(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),vD=(e,t)=>t.includes(e),Du=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},gD=(e,t,r)=>{let n=[];for(let d in e.segmentsDownloading){let f=yD(d,r);d.includes("beaconblocks")&&(f=100),n.push(SD(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.downloadedBytesu?s.push(u):s.length>0?s[s.length-1]=u:s.push(u),{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}},yD=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},SD=(e,t,r)=>({name:r,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseeds:ew(e.webseeds),peers:ew(e.peers),indexed:t}),ew=e=>{let t=[];return e.forEach(r=>{t.push({url:r.url,downloadRate:r.downloadRate})}),t},bD=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let u=wD(e.segments[s]);r.push(u),n+=u.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}},wD=e=>({name:e.segmentName,progress:e.percent}),rr=()=>je.getState().app.activeNodeId,_D=()=>{let e=rr();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},xD=()=>{A$().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(rD(r))}),je.dispatch(ON(t))})},CD=()=>{M$().then(e=>{let t=fD(e);je.dispatch(zN({nodeId:rr(),version:t}))})},RD=()=>{L$().then(e=>{let t=sD(e);je.dispatch(NN({nodeId:rr(),flags:t}))})},kD=()=>{$$().then(e=>{je.dispatch(AN({nodeId:rr(),args:e}))})},PD=()=>{F$().then(e=>{je.dispatch(LN({nodeId:rr(),syncStages:hD(e)}))})},_P=()=>{D$().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${vP()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),je.dispatch(MN({nodeId:rr(),logFiles:t}))})},TD=()=>{B$().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),je.dispatch(DN({nodeId:rr(),dbs:t}))})},ED=e=>{W$(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),je.dispatch(FN({nodeId:rr(),path:e,tables:r}))})},OD=()=>{U$().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:rr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};je.dispatch(BN(r))})},tw=()=>{const e=rr(),t=je.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=je.getState().network.bootnodes[t].bootnodes),H$().then(n=>{n.forEach(o=>{let i=pD(o,r);je.dispatch(u3({peer:i,nodeId:rr()}))})})},ID=()=>{q$().then(e=>{je.dispatch(c3({nodeId:rr(),bootnodes:e}))})},rw=()=>{G$().then(e=>{if(e){let t=_D(),r=0;t&&t.segments.forEach(s=>{s.name.includes("beaconblocks")||r++});let n=bD(e.snapshotIndexing,r),o=gD(e.snapshotDownload,t,n),i=e.syncStages.currentStage;i===0&&(i=1);let a=[];if(e.syncStages.stagesList!=null&&e.syncStages.stagesList.forEach(s=>{let u=!1;s==="Snapshots"&&(u=!0),a.push({name:s,subStage:u})}),a.length!=0){let s={stages:a,currentStage:i};je.dispatch(C3({nodeId:rr(),stages:s}))}je.dispatch(x3({nodeId:rr(),indexStatus:n})),je.dispatch(_3({nodeId:rr(),downloadStatus:o}))}})},jD=()=>{V$().then(e=>{je.dispatch(w3({nodeId:rr(),files:e.files}))})};var xP={exports:{}},gp={exports:{}},nw;function zD(){return nw||(nw=1,function(e,t){(function(r,n){e.exports=n()})(di,function(){var r=Array.prototype.slice;function n(l,h){h&&(l.prototype=Object.create(h.prototype)),l.prototype.constructor=l}function o(l){return u(l)?l:ne(l)}n(i,o);function i(l){return c(l)?l:le(l)}n(a,o);function a(l){return d(l)?l:K(l)}n(s,o);function s(l){return u(l)&&!f(l)?l:Z(l)}function u(l){return!!(l&&l[y])}function c(l){return!!(l&&l[S])}function d(l){return!!(l&&l[g])}function f(l){return c(l)||d(l)}function p(l){return!!(l&&l[C])}o.isIterable=u,o.isKeyed=c,o.isIndexed=d,o.isAssociative=f,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var y="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,x=1<>>0;if(""+w!==h||w===4294967295)return NaN;h=w}return h<0?$(l)+h:h}function W(){return!0}function ae(l,h,w){return(l===0||w!==void 0&&l<=-w)&&(h===void 0||w!==void 0&&h>=w)}function ie(l,h){return J(l,h,0)}function pe(l,h){return J(l,h,h)}function J(l,h,w){return l===void 0?w:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var oe=0,ce=1,we=2,ke=typeof Symbol=="function"&&Symbol.iterator,yt="@@iterator",$e=ke||yt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=oe,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[$e]=function(){return this};function G(l,h,w,R){var T=l===0?h:l===1?w:[h,w];return R?R.value=T:R={value:T,done:!1},R}function V(){return{value:void 0,done:!0}}function q(l){return!!he(l)}function X(l){return l&&typeof l.next=="function"}function U(l){var h=he(l);return h&&h.call(l)}function he(l){var h=l&&(ke&&l[ke]||l[yt]);if(typeof h=="function")return h}function ue(l){return l&&typeof l.length=="number"}n(ne,o);function ne(l){return l==null?De():u(l)?l.toSeq():ir(l)}ne.of=function(){return ne(arguments)},ne.prototype.toSeq=function(){return this},ne.prototype.toString=function(){return this.__toString("Seq {","}")},ne.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},ne.prototype.__iterate=function(l,h){return _e(this,l,h,!0)},ne.prototype.__iterator=function(l,h){return ti(this,l,h,!0)},n(le,ne);function le(l){return l==null?De().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():Tt(l)}le.prototype.toKeyedSeq=function(){return this},n(K,ne);function K(l){return l==null?De():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():vr(l)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(l,h){return _e(this,l,h,!1)},K.prototype.__iterator=function(l,h){return ti(this,l,h,!1)},n(Z,ne);function Z(l){return(l==null?De():u(l)?c(l)?l.entrySeq():l:vr(l)).toSetSeq()}Z.of=function(){return Z(arguments)},Z.prototype.toSetSeq=function(){return this},ne.isSeq=Re,ne.Keyed=le,ne.Set=Z,ne.Indexed=K;var re="@@__IMMUTABLE_SEQ__@@";ne.prototype[re]=!0,n(fe,K);function fe(l){this._array=l,this.size=l.length}fe.prototype.get=function(l,h){return this.has(l)?this._array[B(this,l)]:h},fe.prototype.__iterate=function(l,h){for(var w=this._array,R=w.length-1,T=0;T<=R;T++)if(l(w[h?R-T:T],T,this)===!1)return T+1;return T},fe.prototype.__iterator=function(l,h){var w=this._array,R=w.length-1,T=0;return new Se(function(){return T>R?V():G(l,T,w[h?R-T++:T++])})},n(ge,le);function ge(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ge.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ge.prototype.has=function(l){return this._object.hasOwnProperty(l)},ge.prototype.__iterate=function(l,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(l(w[A],A,this)===!1)return z+1}return z},ge.prototype.__iterator=function(l,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?V():G(l,A,w[A])})},ge.prototype[C]=!0,n(ye,K);function ye(l){this._iterable=l,this.size=l.length||l.size}ye.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);var w=this._iterable,R=U(w),T=0;if(X(R))for(var z;!(z=R.next()).done&&l(z.value,T++,this)!==!1;);return T},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var w=this._iterable,R=U(w);if(!X(R))return new Se(V);var T=0;return new Se(function(){var z=R.next();return z.done?z:G(l,T++,z.value)})},n(be,K);function be(l){this._iterator=l,this._iteratorCache=[]}be.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,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 G(l,T,R[T++])})};function Re(l){return!!(l&&l[re])}var ze;function De(){return ze||(ze=new fe([]))}function Tt(l){var h=Array.isArray(l)?new fe(l).fromEntrySeq():X(l)?new be(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ge(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function vr(l){var h=Gt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function ir(l){var h=Gt(l)||typeof l=="object"&&new ge(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Gt(l){return ue(l)?new fe(l):X(l)?new be(l):q(l)?new ye(l):void 0}function _e(l,h,w,R){var T=l._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,l)===!1)return A+1}return A}return l.__iterateUncached(h,w)}function ti(l,h,w,R){var T=l._cache;if(T){var z=T.length-1,A=0;return new Se(function(){var L=T[w?z-A:A];return A++>z?V():G(h,R?L[0]:A-1,L[1])})}return l.__iteratorUncached(h,w)}function ri(l,h){return h?Yn(h,l,"",{"":l}):su(l)}function Yn(l,h,w,R){return Array.isArray(h)?l.call(R,w,K(h).map(function(T,z){return Yn(l,T,z,h)})):M0(h)?l.call(R,w,le(h).map(function(T,z){return Yn(l,T,z,h)})):h}function su(l){return Array.isArray(l)?K(l).map(su).toList():M0(l)?le(l).map(su).toMap():l}function M0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function St(l,h){if(l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1;if(typeof l.valueOf=="function"&&typeof h.valueOf=="function"){if(l=l.valueOf(),h=h.valueOf(),l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1}return!!(typeof l.equals=="function"&&typeof h.equals=="function"&&l.equals(h))}function Zf(l,h){if(l===h)return!0;if(!u(h)||l.size!==void 0&&h.size!==void 0&&l.size!==h.size||l.__hash!==void 0&&h.__hash!==void 0&&l.__hash!==h.__hash||c(l)!==c(h)||d(l)!==d(h)||p(l)!==p(h))return!1;if(l.size===0&&h.size===0)return!0;var w=!f(l);if(p(l)){var R=l.entries();return h.every(function(F,H){var Q=R.next().value;return Q&&St(Q[1],F)&&(w||St(Q[0],H))})&&R.next().done}var T=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{T=!0;var z=l;l=h,h=z}var A=!0,L=h.__iterate(function(F,H){if(w?!l.has(F):T?!St(F,l.get(H,E)):!St(l.get(H,E),F))return A=!1,!1});return A&&l.size===L}n(Vt,K);function Vt(l,h){if(!(this instanceof Vt))return new Vt(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(eh)return eh;eh=this}}Vt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Vt.prototype.get=function(l,h){return this.has(l)?this._value:h},Vt.prototype.includes=function(l){return St(this._value,l)},Vt.prototype.slice=function(l,h){var w=this.size;return ae(l,h,w)?this:new Vt(this._value,pe(h,w)-ie(l,w))},Vt.prototype.reverse=function(){return this},Vt.prototype.indexOf=function(l){return St(this._value,l)?0:-1},Vt.prototype.lastIndexOf=function(l){return St(this._value,l)?this.size:-1},Vt.prototype.__iterate=function(l,h){for(var w=0;w=0&&h=0&&ww?V():G(l,z++,A)})},Lt.prototype.equals=function(l){return l instanceof Lt?this._start===l._start&&this._end===l._end&&this._step===l._step:Zf(this,l)};var th;n(go,o);function go(){throw TypeError("Abstract")}n(ds,go);function ds(){}n(Di,go);function Di(){}n(uu,go);function uu(){}go.Keyed=ds,go.Indexed=Di,go.Set=uu;var fs=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 rh(l){return l>>>1&1073741824|l&3221225471}function Tr(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var h=typeof l;if(h==="number"){if(l!==l||l===1/0)return 0;var w=l|0;for(w!==l&&(w^=l*4294967295);l>4294967295;)l/=4294967295,w^=l;return rh(w)}if(h==="string")return l.length>qE?WE(l):nh(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return UE(l);if(typeof l.toString=="function")return nh(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function WE(l){var h=lh[l];return h===void 0&&(h=nh(l),sh===GE&&(sh=0,lh={}),sh++,lh[l]=h),h}function nh(l){for(var h=0,w=0;w0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var oh=typeof WeakMap=="function",ih;oh&&(ih=new WeakMap);var ah=0,ni="__immutablehash__";typeof Symbol=="function"&&(ni=Symbol(ni));var qE=16,GE=255,sh=0,lh={};function Er(l){lu(l!==1/0,"Cannot perform this action with an infinite size.")}n(Oe,ds);function Oe(l){return l==null?cn():uh(l)&&!p(l)?l:cn().withMutations(function(h){var w=i(l);Er(w.size),w.forEach(function(R,T){return h.set(T,R)})})}Oe.of=function(){var l=r.call(arguments,0);return cn().withMutations(function(h){for(var w=0;w=l.length)throw new Error("Missing value for key: "+l[w]);h.set(l[w],l[w+1])}})},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Oe.prototype.set=function(l,h){return W0(this,l,h)},Oe.prototype.setIn=function(l,h){return this.updateIn(l,E,function(){return h})},Oe.prototype.remove=function(l){return W0(this,l,E)},Oe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return E})},Oe.prototype.update=function(l,h,w){return arguments.length===1?l(this):this.updateIn([l],h,w)},Oe.prototype.updateIn=function(l,h,w){w||(w=h,h=void 0);var R=V0(this,pS(l),h,w);return R===E?void 0:R},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):cn()},Oe.prototype.merge=function(){return cu(this,void 0,arguments)},Oe.prototype.mergeWith=function(l){var h=r.call(arguments,1);return cu(this,l,h)},Oe.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.merge=="function"?w.merge.apply(w,h):h[h.length-1]})},Oe.prototype.mergeDeep=function(){return cu(this,H0,arguments)},Oe.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return cu(this,q0(l),h)},Oe.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.mergeDeep=="function"?w.mergeDeep.apply(w,h):h[h.length-1]})},Oe.prototype.sort=function(l){return ht(Gi(this,l))},Oe.prototype.sortBy=function(l,h){return ht(Gi(this,h,l))},Oe.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(l,h){return new ch(this,l,h)},Oe.prototype.__iterate=function(l,h){var w=this,R=0;return this._root&&this._root.iterate(function(T){return R++,l(T[1],T[0],w)},h),R},Oe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?fh(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function uh(l){return!!(l&&l[D0])}Oe.isMap=uh;var D0="@@__IMMUTABLE_MAP__@@",Pe=Oe.prototype;Pe[D0]=!0,Pe[v]=Pe.remove,Pe.removeIn=Pe.deleteIn;function hs(l,h){this.ownerID=l,this.entries=h}hs.prototype.get=function(l,h,w,R){for(var T=this.entries,z=0,A=T.length;z=JE)return VE(l,F,R,T);var ve=l&&l===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 hs(l,xe)}};function Fi(l,h,w){this.ownerID=l,this.bitmap=h,this.nodes=w}Fi.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var T=1<<((l===0?h:h>>>l)&k),z=this.bitmap;return z&T?this.nodes[K0(z&T-1)].get(l+b,h,w,R):R},Fi.prototype.update=function(l,h,w,R,T,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,F=1<=ZE)return YE(l,ve,H,L,Ce);if(Q&&!Ce&&ve.length===2&&U0(ve[de^1]))return ve[de^1];if(Q&&Ce&&ve.length===1&&U0(Ce))return Ce;var Ze=l&&l===this.ownerID,dn=Q?Ce?H:H^F:H|F,Tn=Q?Ce?Y0(ve,de,Ce,Ze):XE(ve,de,Ze):QE(ve,de,Ce,Ze);return Ze?(this.bitmap=dn,this.nodes=Tn,this):new Fi(l,dn,Tn)};function ps(l,h,w){this.ownerID=l,this.count=h,this.nodes=w}ps.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var T=(l===0?h:h>>>l)&k,z=this.nodes[T];return z?z.get(l+b,h,w,R):R},ps.prototype.update=function(l,h,w,R,T,z,A){w===void 0&&(w=Tr(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=hh(Q,l,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(l,h,w+b,R,T)]:(L=new Qn(h,R,T),z>>=1)A[L]=w&1?h[z++]:void 0;return A[R]=T,new ps(l,z+1,A)}function cu(l,h,w){for(var R=[],T=0;T>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function Y0(l,h,w,R){var T=R?l:M(l);return T[h]=w,T}function QE(l,h,w,R){var T=l.length+1;if(R&&h+1===T)return l[h]=w,l;for(var z=new Array(T),A=0,L=0;L0&&R=0&&l>>h&k;if(R>=this.array.length)return new yo([],l);var T=R===0,z;if(h>0){var A=this.array[R];if(z=A&&A.removeBefore(l,h-b,w),z===A&&T)return this}if(T&&!z)return this;var L=Wi(this,l);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(l,h-b,w),T===z&&R===this.array.length-1)return this}var A=Wi(this,l);return A.array.splice(R+1),T&&(A.array[R]=T),A};var ms={};function J0(l,h){var w=l._origin,R=l._capacity,T=gs(R),z=l._tail;return A(l._root,l._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 ms;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,Ze=(R-de>>Q)+1;return Ze>x&&(Ze=x),function(){do{if(ve){var dn=ve();if(dn!==ms)return dn;ve=null}if(Ce===Ze)return ms;var Tn=h?--Ze:Ce++;ve=A(xe&&xe[Tn],Q-b,de+(Tn<=l.size||h<0)return l.withMutations(function(A){h<0?So(A,h).set(0,w):So(A,0,h+1).set(h,w)});h+=l._origin;var R=l._tail,T=l._root,z=P(_);return h>=gs(l._capacity)?R=vh(R,l.__ownerID,0,h,w,z):T=vh(T,l.__ownerID,l._level,h,w,z),z.value?l.__ownerID?(l._root=T,l._tail=R,l.__hash=void 0,l.__altered=!0,l):vs(l._origin,l._capacity,l._level,T,R):l}function vh(l,h,w,R,T,z){var A=R>>>w&k,L=l&&A0){var H=l&&l.array[A],Q=vh(H,h,w-b,R,T,z);return Q===H?l:(F=Wi(l,h),F.array[A]=Q,F)}return L&&l.array[A]===T?l:(I(z),F=Wi(l,h),T===void 0&&A===F.array.length-1?F.array.pop():F.array[A]=T,F)}function Wi(l,h){return h&&l&&h===l.ownerID?l:new yo(l?l.array.slice():[],h)}function eS(l,h){if(h>=gs(l._capacity))return l._tail;if(h<1<0;)w=w.array[h>>>R&k],R-=b;return w}}function So(l,h,w){h!==void 0&&(h=h|0),w!==void 0&&(w=w|0);var R=l.__ownerID||new j,T=l._origin,z=l._capacity,A=T+h,L=w===void 0?z:w<0?z+w:T+w;if(A===T&&L===z)return l;if(A>=L)return l.clear();for(var F=l._level,H=l._root,Q=0;A+Q<0;)H=new yo(H&&H.array.length?[void 0,H]:[],R),F+=b,Q+=1<=1<de?new yo([],R):xe;if(xe&&ve>de&&Ab;dn-=b){var Tn=de>>>dn&k;Ze=Ze.array[Tn]=Wi(Ze.array[Tn],R)}Ze.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(yu!==ve>>>F&k)break;yu&&(Q+=(1<T&&(H=H.removeBefore(R,F,A-Q)),H&&veT&&(T=L.size),u(A)||(L=L.map(function(F){return ri(F)})),R.push(L)}return T>l.size&&(l=l.setSize(T)),G0(l,h,R)}function gs(l){return l>>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(),l.__ownerID&&(L.__ownerID=F.__ownerID=l.__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 l;L=R,F=T.set(z,[h,w])}else L=R.set(h,T.size),F=T.set(T.size,[h,w]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=F,l.__hash=void 0,l):gh(L,F)}n(Vr,le);function Vr(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Vr.prototype.get=function(l,h){return this._iter.get(l,h)},Vr.prototype.has=function(l){return this._iter.has(l)},Vr.prototype.valueSeq=function(){return this._iter.valueSeq()},Vr.prototype.reverse=function(){var l=this,h=yh(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Vr.prototype.map=function(l,h){var w=this,R=iS(this,l,h);return this._useKeys||(R.valueSeq=function(){return w._iter.toSeq().map(l,h)}),R},Vr.prototype.__iterate=function(l,h){var w=this,R;return this._iter.__iterate(this._useKeys?function(T,z){return l(T,z,w)}:(R=h?dS(this):0,function(T){return l(T,h?--R:R++,w)}),h)},Vr.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var w=this._iter.__iterator(ce,h),R=h?dS(this):0;return new Se(function(){var T=w.next();return T.done?T:G(l,h?--R:R++,T.value,T)})},Vr.prototype[C]=!0,n(Ui,K);function Ui(l){this._iter=l,this.size=l.size}Ui.prototype.includes=function(l){return this._iter.includes(l)},Ui.prototype.__iterate=function(l,h){var w=this,R=0;return this._iter.__iterate(function(T){return l(T,R++,w)},h)},Ui.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h),R=0;return new Se(function(){var T=w.next();return T.done?T:G(l,R++,T.value,T)})},n(Hi,Z);function Hi(l){this._iter=l,this.size=l.size}Hi.prototype.has=function(l){return this._iter.includes(l)},Hi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){return l(R,R,w)},h)},Hi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){var R=w.next();return R.done?R:G(l,R.value,R.value,R)})},n(qi,le);function qi(l){this._iter=l,this.size=l.size}qi.prototype.entrySeq=function(){return this._iter.toSeq()},qi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){if(R){cS(R);var T=u(R);return l(T?R.get(1):R[1],T?R.get(0):R[0],w)}},h)},qi.prototype.__iterator=function(l,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){cS(T);var z=u(T);return G(l,z?T.get(0):T[0],z?T.get(1):T[1],R)}}})},Ui.prototype.cacheResult=Vr.prototype.cacheResult=Hi.prototype.cacheResult=qi.prototype.cacheResult=wh;function oS(l){var h=Rn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var w=l.reverse.apply(this);return w.flip=function(){return l.reverse()},w},h.has=function(w){return l.includes(w)},h.includes=function(w){return l.has(w)},h.cacheResult=wh,h.__iterateUncached=function(w,R){var T=this;return l.__iterate(function(z,A){return w(A,z,T)!==!1},R)},h.__iteratorUncached=function(w,R){if(w===we){var T=l.__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 l.__iterator(w===ce?oe:ce,R)},h}function iS(l,h,w){var R=Rn(l);return R.size=l.size,R.has=function(T){return l.has(T)},R.get=function(T,z){var A=l.get(T,E);return A===E?z:h.call(w,A,T,l)},R.__iterateUncached=function(T,z){var A=this;return l.__iterate(function(L,F,H){return T(h.call(w,L,F,H),F,A)!==!1},z)},R.__iteratorUncached=function(T,z){var A=l.__iterator(we,z);return new Se(function(){var L=A.next();if(L.done)return L;var F=L.value,H=F[0];return G(T,H,h.call(w,F[1],H,l),L)})},R}function yh(l,h){var w=Rn(l);return w._iter=l,w.size=l.size,w.reverse=function(){return l},l.flip&&(w.flip=function(){var R=oS(l);return R.reverse=function(){return l.flip()},R}),w.get=function(R,T){return l.get(h?R:-1-R,T)},w.has=function(R){return l.has(h?R:-1-R)},w.includes=function(R){return l.includes(R)},w.cacheResult=wh,w.__iterate=function(R,T){var z=this;return l.__iterate(function(A,L){return R(A,L,z)},!T)},w.__iterator=function(R,T){return l.__iterator(R,!T)},w}function aS(l,h,w,R){var T=Rn(l);return R&&(T.has=function(z){var A=l.get(z,E);return A!==E&&!!h.call(w,A,z,l)},T.get=function(z,A){var L=l.get(z,E);return L!==E&&h.call(w,L,z,l)?L:A}),T.__iterateUncached=function(z,A){var L=this,F=0;return l.__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=l.__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,l))return G(z,R?de:F++,ve,H)}})},T}function rO(l,h,w){var R=Oe().asMutable();return l.__iterate(function(T,z){R.update(h.call(w,T,z,l),0,function(A){return A+1})}),R.asImmutable()}function nO(l,h,w){var R=c(l),T=(p(l)?ht():Oe()).asMutable();l.__iterate(function(A,L){T.update(h.call(w,A,L,l),function(F){return F=F||[],F.push(R?[L,A]:A),F})});var z=fS(l);return T.map(function(A){return Ge(l,z(A))})}function Sh(l,h,w,R){var T=l.size;if(h!==void 0&&(h=h|0),w!==void 0&&(w===1/0?w=T:w=w|0),ae(h,w,T))return l;var z=ie(h,T),A=pe(w,T);if(z!==z||A!==A)return Sh(l.toSeq().cacheResult(),h,w,R);var L=A-z,F;L===L&&(F=L<0?0:L);var H=Rn(l);return H.size=F===0?F:l.size&&F||void 0,!R&&Re(l)&&F>=0&&(H.get=function(Q,de){return Q=B(this,Q),Q>=0&&QF)return V();var Ze=ve.next();return R||Q===ce?Ze:Q===oe?G(Q,Ce-1,void 0,Ze):G(Q,Ce-1,Ze.value[1],Ze)})},H}function oO(l,h,w){var R=Rn(l);return R.__iterateUncached=function(T,z){var A=this;if(z)return this.cacheResult().__iterate(T,z);var L=0;return l.__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=l.__iterator(we,z),F=!0;return new Se(function(){if(!F)return V();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:G(T,de,ve,H):(F=!1,V())})},R}function sS(l,h,w,R){var T=Rn(l);return T.__iterateUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterate(z,A);var F=!0,H=0;return l.__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=l.__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===oe?G(z,Q++,void 0,de):G(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:G(z,ve,xe,de)})},T}function iO(l,h){var w=c(l),R=[l].concat(h).map(function(A){return u(A)?w&&(A=i(A)):A=w?Tt(A):vr(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(R.length===0)return l;if(R.length===1){var T=R[0];if(T===l||w&&c(T)||d(l)&&d(T))return T}var z=new fe(R);return w?z=z.toKeyedSeq():d(l)||(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 lS(l,h,w){var R=Rn(l);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 bh(l,h,w){var R=Rn(l);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?V():G(T,L++,h.apply(null,H.map(function(Q){return Q.value})))})},R}function Ge(l,h){return Re(l)?h:l.constructor(h)}function cS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function dS(l){return Er(l.size),$(l)}function fS(l){return c(l)?i:d(l)?a:s}function Rn(l){return Object.create((c(l)?le:d(l)?K:Z).prototype)}function wh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ne.prototype.cacheResult.call(this)}function hS(l,h){return l>h?1:l=0;w--)h={value:arguments[w],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):ys(l,h)},bt.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Er(l.size);var h=this.size,w=this._head;return l.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):ys(h,w)},bt.prototype.pop=function(){return this.slice(1)},bt.prototype.unshift=function(){return this.push.apply(this,arguments)},bt.prototype.unshiftAll=function(l){return this.pushAll(l)},bt.prototype.shift=function(){return this.pop.apply(this,arguments)},bt.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):kh()},bt.prototype.slice=function(l,h){if(ae(l,h,this.size))return this;var w=ie(l,this.size),R=pe(h,this.size);if(R!==this.size)return Di.prototype.slice.call(this,l,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):ys(T,z)},bt.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?ys(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},bt.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var w=0,R=this._head;R&&l(R.value,w++,this)!==!1;)R=R.next;return w},bt.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var w=0,R=this._head;return new Se(function(){if(R){var T=R.value;return R=R.next,G(l,w++,T)}return V()})};function _S(l){return!!(l&&l[xS])}bt.isStack=_S;var xS="@@__IMMUTABLE_STACK__@@",Vi=bt.prototype;Vi[xS]=!0,Vi.withMutations=Pe.withMutations,Vi.asMutable=Pe.asMutable,Vi.asImmutable=Pe.asImmutable,Vi.wasAltered=Pe.wasAltered;function ys(l,h,w,R){var T=Object.create(Vi);return T.size=l,T._head=h,T.__ownerID=w,T.__hash=R,T.__altered=!1,T}var CS;function kh(){return CS||(CS=ys(0))}function Pn(l,h){var w=function(R){l.prototype[R]=h[R]};return Object.keys(h).forEach(w),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(w),l}o.Iterator=Se,Pn(o,{toArray:function(){Er(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,w){l[w]=h}),l},toIndexedSeq:function(){return new Ui(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new Vr(this,!0)},toMap:function(){return Oe(this.toKeyedSeq())},toObject:function(){Er(this.size);var l={};return this.__iterate(function(h,w){l[w]=h}),l},toOrderedMap:function(){return ht(this.toKeyedSeq())},toOrderedSet:function(){return kn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Hi(this)},toSeq:function(){return d(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return bt(c(this)?this.valueSeq():this)},toList:function(){return Ye(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,h){return this.size===0?l+h:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+h},concat:function(){var l=r.call(arguments,0);return Ge(this,iO(this,l))},includes:function(l){return this.some(function(h){return St(h,l)})},entries:function(){return this.__iterator(we)},every:function(l,h){Er(this.size);var w=!0;return this.__iterate(function(R,T,z){if(!l.call(h,R,T,z))return w=!1,!1}),w},filter:function(l,h){return Ge(this,aS(this,l,h,!0))},find:function(l,h,w){var R=this.findEntry(l,h);return R?R[1]:w},forEach:function(l,h){return Er(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Er(this.size),l=l!==void 0?""+l:",";var h="",w=!0;return this.__iterate(function(R){w?w=!1:h+=l,h+=R!=null?R.toString():""}),h},keys:function(){return this.__iterator(oe)},map:function(l,h){return Ge(this,iS(this,l,h))},reduce:function(l,h,w){Er(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=l.call(w,R,z,A,L)}),R},reduceRight:function(l,h,w){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return Ge(this,yh(this,!0))},slice:function(l,h){return Ge(this,Sh(this,l,h,!0))},some:function(l,h){return!this.every(gu(l),h)},sort:function(l){return Ge(this,Gi(this,l))},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(l,h){return $(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return rO(this,l,h)},equals:function(l){return Zf(this,l)},entrySeq:function(){var l=this;if(l._cache)return new fe(l._cache);var h=l.toSeq().map(dO).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(gu(l),h)},findEntry:function(l,h,w){var R=w;return this.__iterate(function(T,z,A){if(l.call(h,T,z,A))return R=[z,T],!1}),R},findKey:function(l,h){var w=this.findEntry(l,h);return w&&w[0]},findLast:function(l,h,w){return this.toKeyedSeq().reverse().find(l,h,w)},findLastEntry:function(l,h,w){return this.toKeyedSeq().reverse().findEntry(l,h,w)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(W)},flatMap:function(l,h){return Ge(this,aO(this,l,h))},flatten:function(l){return Ge(this,lS(this,l,!0))},fromEntrySeq:function(){return new qi(this)},get:function(l,h){return this.find(function(w,R){return St(R,l)},void 0,h)},getIn:function(l,h){for(var w=this,R=pS(l),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(l,h){return nO(this,l,h)},has:function(l){return this.get(l,E)!==E},hasIn:function(l){return this.getIn(l,E)!==E},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(h){return l.includes(h)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(h){return St(h,l)})},keySeq:function(){return this.toSeq().map(cO).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return hu(this,l)},maxBy:function(l,h){return hu(this,h,l)},min:function(l){return hu(this,l?RS(l):PS)},minBy:function(l,h){return hu(this,h?RS(h):PS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return Ge(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return Ge(this,sS(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(gu(l),h)},sortBy:function(l,h){return Ge(this,Gi(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return Ge(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return Ge(this,oO(this,l,h))},takeUntil:function(l,h){return this.takeWhile(gu(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hO(this))}});var sr=o.prototype;sr[y]=!0,sr[$e]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=kS,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Pn(i,{flip:function(){return Ge(this,oS(this))},mapEntries:function(l,h){var w=this,R=0;return Ge(this,this.toSeq().map(function(T,z){return l.call(h,[z,T],R++,w)}).fromEntrySeq())},mapKeys:function(l,h){var w=this;return Ge(this,this.toSeq().flip().map(function(R,T){return l.call(h,R,T,w)}).flip())}});var vu=i.prototype;vu[S]=!0,vu[$e]=sr.entries,vu.__toJS=sr.toObject,vu.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+kS(l)},Pn(a,{toKeyedSeq:function(){return new Vr(this,!1)},filter:function(l,h){return Ge(this,aS(this,l,h,!1))},findIndex:function(l,h){var w=this.findEntry(l,h);return w?w[0]:-1},indexOf:function(l){var h=this.keyOf(l);return h===void 0?-1:h},lastIndexOf:function(l){var h=this.lastKeyOf(l);return h===void 0?-1:h},reverse:function(){return Ge(this,yh(this,!1))},slice:function(l,h){return Ge(this,Sh(this,l,h,!1))},splice:function(l,h){var w=arguments.length;if(h=Math.max(h|0,0),w===0||w===2&&!h)return this;l=ie(l,l<0?this.count():this.size);var R=this.slice(0,l);return Ge(this,w===1?R:R.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var w=this.findLastEntry(l,h);return w?w[0]:-1},first:function(){return this.get(0)},flatten:function(l){return Ge(this,lS(this,l,!1))},get:function(l,h){return l=B(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(w,R){return R===l},void 0,h)},has:function(l){return l=B(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function hO(l){if(l.size===1/0)return 0;var h=p(l),w=c(l),R=h?1:0,T=l.__iterate(w?h?function(z,A){R=31*R+TS(Tr(z),Tr(A))|0}:function(z,A){R=R+TS(Tr(z),Tr(A))|0}:h?function(z){R=31*R+Tr(z)|0}:function(z){R=R+Tr(z)|0});return pO(T,R)}function pO(l,h){return h=fs(h,3432918353),h=fs(h<<15|h>>>-15,461845907),h=fs(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=fs(h^h>>>16,2246822507),h=fs(h^h>>>13,3266489909),h=rh(h^h>>>16),h}function TS(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var mO={Iterable:o,Seq:ne,Collection:go,Map:Oe,OrderedMap:ht,List:Ye,Stack:bt,Set:Je,OrderedSet:kn,Record:Or,Range:Lt,Repeat:Vt,is:St,fromJS:ri};return mO})}(gp)),gp.exports}function ND(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 AD=Object.freeze(Object.defineProperty({__proto__:null,default:ND},Symbol.toStringTag,{value:"Module"})),MD=Ja(AD);var yp,ow;function CP(){if(ow)return yp;ow=1;var e=typeof di=="object"&&di&&di.Object===Object&&di;return yp=e,yp}var Sp,iw;function LD(){if(iw)return Sp;iw=1;var e=CP(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Sp=r,Sp}var bp,aw;function jf(){if(aw)return bp;aw=1;var e=LD(),t=e.Symbol;return bp=t,bp}var wp,sw;function $D(){if(sw)return wp;sw=1;var e=jf(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),u=a[o];try{a[o]=void 0;var c=!0}catch{}var d=n.call(a);return c&&(s?a[o]=u:delete a[o]),d}return wp=i,wp}var _p,lw;function DD(){if(lw)return _p;lw=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _p=r,_p}var xp,uw;function zf(){if(uw)return xp;uw=1;var e=jf(),t=$D(),r=DD(),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 xp=a,xp}var Cp,cw;function Jl(){if(cw)return Cp;cw=1;function e(t){return t!=null&&typeof t=="object"}return Cp=e,Cp}var Rp,dw;function FD(){if(dw)return Rp;dw=1;var e=zf(),t=Jl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return Rp=n,Rp}var kp,fw;function BD(){if(fw)return kp;fw=1;function e(t){return function(r){return t(r)}}return kp=e,kp}var Ds={exports:{}};Ds.exports;var hw;function WD(){return hw||(hw=1,function(e,t){var r=CP(),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 u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Ds,Ds.exports)),Ds.exports}var Pp,pw;function UD(){if(pw)return Pp;pw=1;var e=FD(),t=BD(),r=WD(),n=r&&r.isRegExp,o=n?t(n):e;return Pp=o,Pp}var Tp,mw;function HD(){if(mw)return Tp;mw=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 Dp=r,Dp}var Fp,Pw;function tF(){if(Pw)return Fp;Pw=1;var e=eF();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Fp=t,Fp}var Bp,Tw;function rF(){if(Tw)return Bp;Tw=1;var e=UD(),t=KD(),r=YD(),n=tF();function o(i,a,s){var u=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,y=f.length;p=0&&u===s&&c())}function Fs(e,t){if(e==null)return{};var r=lt(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 rF=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ft(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 gt(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 u=this.getSizeAndPositionOfCell(s),c=u.offset,d=c-i+u.size,f;switch(o){case"start":f=c;break;case"end":f=d;break;case"center":f=c-(i-u.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),u=this.getSizeAndPositionOfCell(s);o=u.offset+u.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}(),nF=15e5,oF=16777100,iF=function(){return typeof window<"u"},aF=function(){return!!window.chrome},sF=function(){return iF()&&aF()?oF:nF},Iw=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?sF():r,o=Fs(t,["maxScrollSize"]);ft(this,e),D(this,"_cellSizeAndPositionManager",void 0),D(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new rF(o),this._maxScrollSize=n}return gt(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 u=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:u})}},{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 Ua(){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(u){var c=o[u];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(u){var c=t[u],d=o[u];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});t=o,a&&s&&n(o)}}var Fu=-1,Jn=1;function OP(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Jn?{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 jw(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,f=e.size,p=e.sizeJustIncreasedFromZero,y=e.updateScrollIndexCallback,S=r.getCellCount(),g=d>=0&&d0&&(fr.getTotalSize()-f&&y(S-1)}function IP(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,f=e.rowSizeAndPositionManager,p=e.rowStartIndex,y=e.rowStopIndex,S=e.styleCache,g=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],x=n.areOffsetsAdjusted()||f.areOffsetsAdjusted(),k=!u&&!x,E=p;E<=y;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+g,width:P.size},S[j]=M);var $={columnIndex:_,isScrolling:u,isVisible:I,key:j,parent:d,rowIndex:E,style:M},B=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r($)),B=t[j]):B=r($),!(B==null||B===!1)&&b.push(B)}return b}const lF=!!(typeof window<"u"&&window.document&&window.document.createElement);var Bu;function hv(e){if((!Bu&&Bu!==0||e)&&lF){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),Bu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Bu}var cr;typeof window<"u"?cr=window:typeof self<"u"?cr=self:cr={};var uF=cr.requestAnimationFrame||cr.webkitRequestAnimationFrame||cr.mozRequestAnimationFrame||cr.oRequestAnimationFrame||cr.msRequestAnimationFrame||function(e){return cr.setTimeout(e,1e3/60)},cF=cr.cancelAnimationFrame||cr.webkitCancelAnimationFrame||cr.mozCancelAnimationFrame||cr.oCancelAnimationFrame||cr.msCancelAnimationFrame||function(e){cr.clearTimeout(e)},zw=uF,dF=cF,Ha=function(t){return dF(t.id)},gy=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=zw(a)},i={id:zw(o)};return i},Nw,Aw;function Mw(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 oi(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 gt(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,u=n.rowIndex,c=u===void 0?this.props.scrollToRow:u,d=oi({},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 u=this.props,c=u.autoHeight,d=u.autoWidth,f=u.height,p=u.width,y=this.state.instanceProps,S=y.scrollbarSize,g=y.rowSizeAndPositionManager.getTotalSize(),C=y.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+S),i),b=Math.min(Math.max(0,g-f+S),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==b){var x=v!==this.state.scrollLeft?v>this.state.scrollLeft?Jn:Fu:this.state.scrollDirectionHorizontal,k=b!==this.state.scrollTop?b>this.state.scrollTop?Jn:Fu:this.state.scrollDirectionVertical,E={isScrolling:!0,scrollDirectionHorizontal:x,scrollDirectionVertical:k,scrollPositionChangeReason:Wp.OBSERVED};c||(E.scrollTop=b),d||(E.scrollLeft=v),E.needToResetStyleCache=!1,this.setState(E)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:C,totalRowsHeight:g})}}},{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,u=this.props,c=u.scrollToColumn,d=u.scrollToRow,f=this.state.instanceProps;f.columnSizeAndPositionManager.resetCell(i),f.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===Jn?i<=c:i>=c),this._recomputeScrollTopFlag=d>=0&&(this.state.scrollDirectionVertical===Jn?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(oi({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(oi({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,u=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 g=oi({},S,{needToResetStyleCache:!1});return g.instanceProps.scrollbarSize=o(),g.instanceProps.scrollbarSizeMeasured=!0,g}),typeof a=="number"&&a>=0||typeof u=="number"&&u>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:u});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 y=i>0&&d>0;s>=0&&y&&this._updateScrollLeftForScrollToColumn(),c>=0&&y&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:u||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,u=a.autoWidth,c=a.columnCount,d=a.height,f=a.rowCount,p=a.scrollToAlignment,y=a.scrollToColumn,S=a.scrollToRow,g=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===Wp.REQUESTED&&(!u&&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&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):jw({cellSizeAndPositionManager:k.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:y,size:g,sizeJustIncreasedFromZero:O,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):jw({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&&Ha(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,u=n.containerProps,c=n.containerRole,d=n.containerStyle,f=n.height,p=n.id,y=n.noContentRenderer,S=n.role,g=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",te({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:vn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:S,style:oi({},O,{},g),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:oi({width:o?"auto":_,height:P,maxWidth:_,maxHeight:P,overflow:"hidden",pointerEvents:E?"none":"",position:"relative"},d)},M),$&&y())}},{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,u=n.deferredMeasurementCache,c=n.height,d=n.overscanColumnCount,f=n.overscanIndicesGetter,p=n.overscanRowCount,y=n.rowCount,S=n.width,g=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:y,overscanCellsCount:p,scrollDirection:v,startIndex:typeof _.start=="number"?_.start:0,stopIndex:typeof _.stop=="number"?_.stop:-1}),$=j.overscanStartIndex,B=j.overscanStopIndex,W=M.overscanStartIndex,ae=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var ie=W;ie<=ae;ie++)if(!u.has(ie,0)){$=0,B=s-1;break}}if(!u.hasFixedWidth()){for(var pe=$;pe<=B;pe++)if(!u.has(0,pe)){W=0,ae=y-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:$,columnStopIndex:B,deferredMeasurementCache:u,horizontalOffsetAdjustment:P,isScrolling:E,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:W,rowStopIndex:ae,scrollLeft:k,scrollTop:x,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:O,visibleRowIndices:_}),this._columnStartIndex=$,this._columnStopIndex=B,this._rowStartIndex=W,this._rowStopIndex=ae}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ha(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=gy(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,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:u,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 u="".concat(a,"-").concat(s);this._styleCache[u]=n[u],i&&(this._cellCache[u]=o[u])}}},{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,u;return Ow({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)}}),Ow({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(){u=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,oi({},i,{},s,{},u)}},{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:Wp.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Jn:Fu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Jn:Fu,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,u=n.scrollToColumn,c=n.width,d=o.scrollLeft,f=o.instanceProps;if(i>0){var p=i-1,y=u<0?p:Math.min(p,u),S=f.rowSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:d,targetIndex:y})}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,u=n.scrollToRow,c=n.width,d=o.scrollTop,f=o.instanceProps;if(a>0){var p=a-1,y=u<0?p:Math.min(p,u),S=f.columnSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:d,targetIndex:y})}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(Nw,"propTypes",null),Aw);D(ao,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:IP,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:hv,noContentRenderer:hF,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:OP,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:fF,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zl(ao);var pF=1;function yy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===pF?{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 Lw,$w;function Dw(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 mF(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",u,!0),f&&(P.__resizeTriggers__.__animationListener__=function(ae){ae.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",u,!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 Fw,Bw;function Ww(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 vF(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ft(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,u=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=s||bF,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:gF),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:yF)}return gt(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=u.getScrollPositionForCell({align:d,cellIndex:f,height:c,scrollLeft:S,scrollTop:g,width:p});(C.scrollLeft!==S||C.scrollTop!==g)&&n._setScrollPosition(C)}}),D(Y(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var u=n.props,c=u.cellLayoutManager,d=u.height,f=u.isScrollingChange,p=u.width,y=n._scrollbarSize,S=c.getTotalSize(),g=S.height,C=S.width,v=Math.max(0,Math.min(C-p+y,s.target.scrollLeft)),b=Math.max(0,Math.min(g-d+y,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==b){var x=s.cancelable?ea.OBSERVED:ea.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:g})}}),n._scrollbarSize=hv(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return gt(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=hv(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var u=o.getTotalSize(),c=u.height,d=u.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,u=i.scrollToCell,c=i.width,d=this.state,f=d.scrollLeft,p=d.scrollPositionChangeReason,y=d.scrollTop;p===ea.REQUESTED&&(f>=0&&f!==o.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),y>=0&&y!==o.scrollTop&&y!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=y)),(a!==n.height||s!==n.scrollToAlignment||u!==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,u=n.height,c=n.horizontalOverscanSize,d=n.id,f=n.noContentRenderer,p=n.style,y=n.verticalOverscanSize,S=n.width,g=this.state,C=g.isScrolling,v=g.scrollLeft,b=g.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-y),P=Math.min(E,v+S+c),I=Math.min(k,b+u+y),j=u>0&&S>0?a.cellRenderers({height:I-_,isScrolling:C,width:P-O,x:O,y:_}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:S,willChange:"transform"},$=k>u?this._scrollbarSize:0,B=E>S?this._scrollbarSize:0;return M.overflowX=E+$<=S?"hidden":"auto",M.overflowY=k+B<=u?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:vn("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:wF({},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})},_F)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,u=n.totalWidth;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:s,scrollLeft:f,scrollTop:p,scrollWidth:u})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:ea.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:ea.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:ea.REQUESTED}:null}}]),t}(N.PureComponent);D(Nf,"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});Nf.propTypes={};Zl(Nf);var xF=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;ft(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gt(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}(),CF=100,RF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CF;ft(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gt(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(u){return u.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(u){return s[u]})}},{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),u=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<=u;p++)for(var y=c;y<=d;y++){var S="".concat(p,".").concat(y);this._sections[S]||(this._sections[S]=new xF({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:y*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 kF(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new RF(n),a=0,s=0,u=0;u=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var S=y.startIndex-1;if(!t({index:S}))y.startIndex=S;else break}return a}function NF(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 Vw,Kw,LP=(Kw=Vw=function(e){mr(t,e);function t(){var r,n;ft(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,u=vn("ReactVirtualized__List",o);return N.createElement(ao,te({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:u,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),D(Vw,"propTypes",null),Kw);D(LP,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:yy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function AF(e){if(Array.isArray(e))return e}function MF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function LF(){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 $F(e,t){return AF(e)||MF(e,t)||MP(e,t)||LF()}function DF(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 FF(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 BF(e,t,r,n,o){return typeof r=="function"?FF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):DF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function WF(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 UF(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 HF(e,t,r,n,o){return typeof r=="function"?UF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):WF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function qF(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 VF(e,t,r,n,o){return typeof r=="function"?GF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):qF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function KF(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 YF(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 QF(e,t,r,n,o){return typeof r=="function"?YF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):KF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function XF(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 JF(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 ZF(e,t,r,n,o){return typeof r=="function"?JF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):XF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const ud={ge:BF,gt:HF,lt:VF,le:QF,eq:ZF};var ga=0,ci=1,vc=2;function _y(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 eu=_y.prototype;function Up(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 $P(e,t){var r=qa(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 Yw(e,t){var r=e.intervals([]);r.push(t),$P(e,r)}function Qw(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?ga:(r.splice(n,1),$P(e,r),ci)}eu.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};eu.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Yw(this,e):this.left.insert(e):this.left=qa([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Yw(this,e):this.right.insert(e):this.right=qa([e]);else{var r=ud.ge(this.leftPoints,e,xy),n=ud.ge(this.rightPoints,e,Cy);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};eu.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Qw(this,e);var n=this.left.remove(e);return n===vc?(this.left=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return ga;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Qw(this,e);var n=this.right.remove(e);return n===vc?(this.right=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?vc:ga;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}Up(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Up(this,this.left):Up(this,this.right);return ci}for(var s=ud.ge(this.leftPoints,e,xy);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function BP(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return FP(this.rightPoints,e,t)}else return BP(this.leftPoints,t)};eu.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?FP(this.rightPoints,e,r):BP(this.leftPoints,r)};function eB(e,t){return e-t}function xy(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Cy(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function qa(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(u({index:W,isScrolling:k,key:p(W),parent:n,style:(pe={height:s.getHeight(W)},D(pe,b==="ltr"?"left":"right",ae),D(pe,"position","absolute"),D(pe,"top",ie),D(pe,"width",s.getWidth(W)),pe)}))}),P0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),D(this,"_cellMeasurerCache",void 0),D(this,"_columnIndexOffset",void 0),D(this,"_rowIndexOffset",void 0),D(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),D(this,"rowHeight",function(u){var c=u.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 gt(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 t_(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 Qt(e){for(var t=1;t0?new qp({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new qp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new qp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return gt(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,u=this.props,c=u.fixedColumnCount,d=u.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,u=Fs(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(u),this._renderTopRightGrid(Qt({},u,{onScroll:o,scrollLeft:d}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qt({},u,{onScroll:o,scrollTop:f})),this._renderBottomRightGrid(Qt({},u,{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(Af,"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});Af.propTypes={};Zl(Af);var WP=function(e){mr(t,e);function t(r,n){var o;return ft(this,t),o=pr(this,Ht(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 gt(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,u=o.scrollLeft,c=o.scrollTop,d=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:u,scrollTop:c,scrollWidth:d})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,u=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:u,scrollWidth:c})}}]),t}(N.PureComponent);WP.propTypes={};function sB(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(u){a[u]=o[u]!==void 0?o[u]:"ASC"});function s(u){var c=u.defaultSortDirection,d=u.event,f=u.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 y=Object.keys(a);y.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 UP(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function HP(e){var t=e.cellData;return t==null?"":String(t)}function ky(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}ky.propTypes=null;var so={ASC:"ASC",DESC:"DESC"};function Py(e){var t=e.sortDirection,r=vn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===so.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===so.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===so.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"}))}Py.propTypes={};function Ty(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(Py,{key:"SortIndicator",sortDirection:o})),a}Ty.propTypes=null;function Ey(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(i||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(y){return i({event:y,index:n,rowData:d})}),a&&(p.onDoubleClick=function(y){return a({event:y,index:n,rowData:d})}),s&&(p.onMouseOut=function(y){return s({event:y,index:n,rowData:d})}),u&&(p.onMouseOver=function(y){return u({event:y,index:n,rowData:d})}),c&&(p.onContextMenu=function(y){return c({event:y,index:n,rowData:d})})),N.createElement("div",te({},p,{className:t,key:o,role:"row",style:f}),r)}Ey.propTypes=null;var Oy=function(e){mr(t,e);function t(){return ft(this,t),pr(this,Ht(t).apply(this,arguments))}return t}(N.Component);D(Oy,"defaultProps",{cellDataGetter:UP,cellRenderer:HP,defaultSortDirection:so.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ty,style:{}});Oy.propTypes={};function n_(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 ta(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=Wl.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,u=o.gridClassName,c=o.gridStyle,d=o.headerHeight,f=o.headerRowRenderer,p=o.height,y=o.id,S=o.noRowsRenderer,g=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 g=="function"?g({index:-1}):g,_=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]=ta({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:vn("ReactVirtualized__Table",a),id:y,role:"grid",style:b},!s&&f({className:vn("ReactVirtualized__Table__headerRow",O),columns:this._getHeaderColumns(),style:ta({height:d,overflow:"hidden",paddingRight:k,width:x},_)}),N.createElement(ao,te({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:vn("ReactVirtualized__Table__Grid",u),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:ta({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,u=n.rowData,c=n.rowIndex,d=this.props.onColumnClick,f=o.props,p=f.cellDataGetter,y=f.cellRenderer,S=f.className,g=f.columnData,C=f.dataKey,v=f.id,b=p({columnData:g,dataKey:C,rowData:u}),x=y({cellData:b,columnData:g,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:u,rowIndex:c}),k=function(P){d&&d({columnData:g,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:vn("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,u=a.headerStyle,c=a.onHeaderClick,d=a.sort,f=a.sortBy,p=a.sortDirection,y=o.props,S=y.columnData,g=y.dataKey,C=y.defaultSortDirection,v=y.disableSort,b=y.headerRenderer,x=y.id,k=y.label,E=!v&&d,O=vn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),_=this._getFlexStyleForColumn(o,ta({},u,{},o.props.headerStyle)),P=b({columnData:S,dataKey:g,disableSort:v,label:k,sortBy:f,sortDirection:p}),I,j,M,$,B;if(E||c){var W=f!==g,ae=W?C:p===so.DESC?so.ASC:so.DESC,ie=function(oe){E&&d({defaultSortDirection:C,event:oe,sortBy:g,sortDirection:ae}),c&&c({columnData:S,dataKey:g,event:oe})},pe=function(oe){(oe.key==="Enter"||oe.key===" ")&&ie(oe)};B=o.props["aria-label"]||k||g,$="none",M=0,I=ie,j=pe}return f===g&&($=p===so.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,u=n.parent,c=n.style,d=this.props,f=d.children,p=d.onRowClick,y=d.onRowDoubleClick,S=d.onRowRightClick,g=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:u,rowData:P,rowIndex:i,scrollbarWidth:E})}),j=vn("ReactVirtualized__Table__row",O),M=ta({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:E},_);return x({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:y,onRowRightClick:S,onRowMouseOver:g,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=ta({},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(u,c){return n._createHeader({column:u,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,u=this.props.onRowsRendered;u({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(Iy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:yy,overscanRowCount:10,rowRenderer:Ey,headerRowRenderer:ky,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});Iy.propTypes={};var Wo=[],tl=null,Si=null;function qP(){Si&&(Si=null,document.body&&tl!=null&&(document.body.style.pointerEvents=tl),tl=null)}function lB(){qP(),Wo.forEach(function(e){return e.__resetIsScrolling()})}function uB(){Si&&Ha(Si);var e=0;Wo.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Si=gy(lB,e)}function GP(e){e.currentTarget===window&&tl==null&&document.body&&(tl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),uB(),Wo.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function o_(e,t){Wo.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",GP),Wo.push(e)}function i_(e,t){Wo=Wo.filter(function(r){return r!==e}),Wo.length||(t.removeEventListener("scroll",GP),Si&&(Ha(Si),qP()))}var jy=function(t){return t===window},Bs=function(t){return t.getBoundingClientRect()};function a_(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 Bs(e);else return{height:t.serverHeight,width:t.serverWidth}}function cB(e,t){if(jy(t)&&document.documentElement){var r=document.documentElement,n=Bs(e),o=Bs(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=VP(t),a=Bs(e),s=Bs(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function VP(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 s_,l_;function u_(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 dB(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,u=this._child||Wl.findDOMNode(this);if(u instanceof Element&&n){var c=cB(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var d=a_(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=jP(),this.updatePosition(n),n&&(o_(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),i_(this,a),o_(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(i_(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,u=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:u,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),D(s_,"propTypes",null),l_);D(YP,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:fB,scrollElement:KP(),serverHeight:0,serverWidth:0});const hB=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:Sy,AutoSizer:zP,CellMeasurer:NP,CellMeasurerCache:SF,Collection:by,Column:Oy,ColumnSizer:AP,Grid:ao,InfiniteLoader:wy,List:LP,Masonry:Ry,MultiGrid:Af,ScrollSync:WP,SortDirection:so,SortIndicator:Py,Table:Iy,WindowScroller:YP,accessibilityOverscanIndicesGetter:yy,createMasonryCellPositioner:aB,createTableMultiSort:sB,defaultCellRangeRenderer:IP,defaultOverscanIndicesGetter:OP,defaultTableCellDataGetter:UP,defaultTableCellRenderer:HP,defaultTableHeaderRenderer:Ty,defaultTableHeaderRowRenderer:ky,defaultTableRowRenderer:Ey},Symbol.toStringTag,{value:"Module"})),pB=Ja(hB);function ro(e,t,r){return t<=e&&e<=r}function Mf(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function mB(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,u=a&1023;o.push(65536+(s<<10)+u),n+=1}else o.push(65533)}n+=1}return o}function vB(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var cd=-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():cd},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 Ga=-1;function Gp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var dd="utf-8";function fd(e,t){if(!(this instanceof fd))return new fd(e,t);if(e=e!==void 0?String(e).toLowerCase():dd,e!==dd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Mf(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})}fd.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=Mf(r),this._streaming||(this._decoder=new gB({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!==Ga);)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===Ga)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),vB(i)}};function hd(e,t){if(!(this instanceof hd))return new hd(e,t);if(e=e!==void 0?String(e).toLowerCase():dd,e!==dd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Mf(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}hd.prototype={encode:function(t,r){t=t?String(t):"",r=Mf(r),this._streaming||(this._encoder=new yB(this._options)),this._streaming=!!r.stream;for(var n=[],o=new zy(mB(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Ga);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Ga;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function gB(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===cd&&o!==0)return o=0,Gp(t);if(u===cd)return Ga;if(o===0){if(ro(u,0,127))return u;if(ro(u,194,223))o=1,r=u-192;else if(ro(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(ro(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Gp(t);return r=r<<6*o,null}if(!ro(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Gp(t);if(i=128,a=191,n+=1,r+=u-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function yB(e){e.fatal,this.handler=function(t,r){if(r===cd)return Ga;if(ro(r,0,127))return r;var n,o;ro(r,128,2047)?(n=1,o=192):ro(r,2048,65535)?(n=2,o=224):ro(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 SB=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:fd,TextEncoder:hd},Symbol.toStringTag,{value:"Module"})),bB=Ja(SB);var c_={},d_;function wB(){return d_||(d_=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 u(_){this.map={},_ instanceof u?_.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)}u.prototype.append=function(_,P){_=i(_),P=a(P);var I=this.map[_];this.map[_]=I?I+","+P:P},u.prototype.delete=function(_){delete this.map[i(_)]},u.prototype.get=function(_){return _=i(_),this.has(_)?this.map[_]:null},u.prototype.has=function(_){return this.map.hasOwnProperty(i(_))},u.prototype.set=function(_,P){this.map[i(_)]=a(P)},u.prototype.forEach=function(_,P){for(var I in this.map)this.map.hasOwnProperty(I)&&_.call(P,this.map[I],I,this)},u.prototype.keys=function(){var _=[];return this.forEach(function(P,I){_.push(I)}),s(_)},u.prototype.values=function(){var _=[];return this.forEach(function(P){_.push(P)}),s(_)},u.prototype.entries=function(){var _=[];return this.forEach(function(P,I){_.push([I,P])}),s(_)},t.iterable&&(u.prototype[Symbol.iterator]=u.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 y(_){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 u(_.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 u(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 u,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}g.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 u(P.headers),this.url=P.url||"",this._initBody(_)}g.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(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=u,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:di)),c_}function f_(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");Xy(this)}},Kn(e,[{key:"closed",get:function(){return vi(this)===!1?Promise.reject(Hu("closed")):this._closedPromise}}]),e}(),KW=function(){function e(r){if(!eo(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(oa(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Oo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");_T(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(wd("cancel")):xT(this,n):Promise.reject(qu("cancel"))},t.read=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(wd("read from")):ArrayBuffer.isView(n)?vd(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")):YW(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(qu("read"))},t.releaseLock=function(){if(!Us(this))throw qu("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");Xy(this)}},Kn(e,[{key:"closed",get:function(){return Us(this)?this._closedPromise:Promise.reject(qu("closed"))}}]),e}();function Us(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function vi(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function _T(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?u6(e):t._state==="closed"?d6(e):(c6(e,t._storedError),e._closedPromise.catch(function(){}))}function xT(e,t){var r=e._ownerReadableStream;return bi(r,t)}function Xy(e){e._ownerReadableStream._state==="readable"?LT(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):f6(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 YW(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):ZW(n._readableStreamController,t,r)}function Jy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Vo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[qy](t)}var CT=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Uu(this)===!1)throw Gu("close");if(bd(this)===!1)throw new TypeError("The stream is not in a state that permits close");yd(this)},t.enqueue=function(n){if(Uu(this)===!1)throw Gu("enqueue");if(bd(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return Sd(this,n)},t.error=function(n){if(Uu(this)===!1)throw Gu("error");Ko(this,n)},t[Hy]=function(r){us(this);var n=this._cancelAlgorithm(r);return gd(this),n},t[qy]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=MW(this);return this._closeRequested===!0&&this._queue.length===0?(gd(this),ru(n)):Ol(this),Promise.resolve(Vo(o,!1,r))}var i=yT(n,r);return Ol(this),i},Kn(e,[{key:"desiredSize",get:function(){if(Uu(this)===!1)throw Gu("desiredSize");return Zy(this)}}]),e}();function Uu(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Ol(e){var t=RT(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,Ol(e)},function(n){Ko(e,n)}).catch(no)}}function RT(e){var t=e._controlledReadableStream;if(bd(e)===!1||e._started===!1)return!1;if(Oo(t)===!0&&Bf(t)>0)return!0;var r=Zy(e);return r>0}function gd(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function yd(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(gd(e),ru(t))}function Sd(e,t){var r=e._controlledReadableStream;if(Oo(r)===!0&&Bf(r)>0)Yy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Ko(e,o),o}try{LW(e,t,n)}catch(o){throw Ko(e,o),o}}Ol(e)}function Ko(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(us(e),gd(e),ST(r,t))}function Zy(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function QW(e){return RT(e)!==!0}function bd(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function kT(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,us(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,Ol(t)},function(u){Ko(t,u)}).catch(no)}function XW(e,t,r,n){var o=Object.create(CT.prototype);function i(){return gT(t,"start",[o])}var a=md(t,"pull",0,[o]),s=md(t,"cancel",1,[]);kT(e,o,i,a,s,r,n)}var JW=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(Qp(this)===!1)throw Xp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(vd(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");i6(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(Qp(this)===!1)throw Xp("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(vd(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");a6(this._associatedReadableByteStreamController,n)},Kn(e,[{key:"view",get:function(){if(Qp(this)===!1)throw Xp("view");return this._view}}]),e}(),PT=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(oa(this)===!1)throw Os("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");n6(this)},t.enqueue=function(n){if(oa(this)===!1)throw Os("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(vd(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");o6(this,n)},t.error=function(n){if(oa(this)===!1)throw Os("error");nu(this,n)},t[Hy]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}us(this);var o=this._cancelAlgorithm(r);return Wf(this),o},t[qy]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,jT(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(Vo(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 u={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(u)}var c=yT(n,r);return $i(this),c},Kn(e,[{key:"byobRequest",get:function(){if(oa(this)===!1)throw Os("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(JW.prototype);l6(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(oa(this)===!1)throw Os("desiredSize");return AT(this)}}]),e}();function oa(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function Qp(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function $i(e){var t=r6(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,$i(e))},function(n){nu(e,n)}).catch(no)}}function TT(e){t0(e),e._pendingPullIntos=[]}function e0(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=ET(t);t.readerType==="default"?Yy(e,n,r):GW(e,n,r)}function ET(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function gc(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function OT(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,u=!1;a>n&&(s=a-t.bytesFilled,u=!0);for(var c=e._queue;s>0;){var d=c[0],f=Math.min(s,d.byteLength),p=t.byteOffset+t.bytesFilled;jW(t.buffer,p,d.buffer,d.byteOffset,f),d.byteLength===f?c.shift():(d.byteOffset+=f,d.byteLength-=f),e._queueTotalSize-=f,IT(e,f,t),s-=f}return u}function IT(e,t,r){t0(e),r.bytesFilled+=t}function jT(e){e._queueTotalSize===0&&e._closeRequested===!0?(Wf(e),ru(e._controlledReadableByteStream)):$i(e)}function t0(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function zT(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];OT(e,t)===!0&&(r0(e),e0(e._controlledReadableByteStream,t))}}function ZW(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Ff(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),w_(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Vo(u,!0,r))}if(e._queueTotalSize>0){if(OT(e,s)===!0){var c=ET(s);return jT(e),Promise.resolve(Vo(c,!1,r))}if(e._closeRequested===!0){var d=new TypeError("Insufficient bytes to fill elements in the given buffer");return nu(e,d),Promise.reject(d)}}e._pendingPullIntos.push(s);var f=w_(n,r);return $i(e),f}function e6(e,t){t.buffer=Ff(t.buffer);var r=e._controlledReadableByteStream;if(Qy(r)===!0)for(;bT(r)>0;){var n=r0(e);e0(r,n)}}function t6(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(IT(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);gc(e,i,0,i.byteLength)}r.buffer=Ff(r.buffer),r.bytesFilled-=n,e0(e._controlledReadableByteStream,r),zT(e)}}function NT(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");e6(e,r)}else t6(e,t,r);$i(e)}function r0(e){var t=e._pendingPullIntos.shift();return t0(e),t}function r6(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(wT(t)===!0&&Bf(t)>0||Qy(t)===!0&&bT(t)>0)return!0;var r=AT(e);return r>0}function Wf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function n6(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 nu(e,n),n}}Wf(e),ru(t)}function o6(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Ff(n);if(wT(r)===!0)if(Bf(r)===0)gc(e,a,o,i);else{var s=new Uint8Array(a,o,i);Yy(r,s,!1)}else Qy(r)===!0?(gc(e,a,o,i),zT(e)):gc(e,a,o,i);$i(e)}function nu(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(TT(e),us(e),Wf(e),ST(r,t))}function AT(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function i6(e,t){if(t=Number(t),zW(t)===!1)throw new RangeError("bytesWritten must be a finite");NT(e,t)}function a6(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,NT(e,t.byteLength)}function MT(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,TT(t),t._queue=t._queueTotalSize=void 0,us(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=vv(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,$i(t)},function(u){nu(t,u)}).catch(no)}function s6(e,t,r){var n=Object.create(PT.prototype);function o(){return gT(t,"start",[n])}var i=md(t,"pull",0,[n]),a=md(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),_B(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");MT(e,n,o,i,a,r,s)}function l6(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function __(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 ra(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function wd(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Hu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function u6(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function c6(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function d6(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function LT(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function f6(e,t){e._closedPromise=Promise.reject(t)}function h6(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function qu(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Gu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Xp(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Os(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var p6=Zo.ReadableStream,m6=qe.createDataProperty,v6=function(){function e(r){var n=r.highWaterMark;m6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),g6=qe.createDataProperty,y6=function(){function e(r){var n=r.highWaterMark;g6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();JP("streams:transform-stream:verbose");var S6=qe.InvokeOrNoop,b6=qe.CreateAlgorithmFromUnderlyingMethod,w6=qe.PromiseCall,$T=qe.typeIsObject,x_=qe.ValidateAndNormalizeHighWaterMark;qe.IsNonNegativeNumber;var C_=qe.MakeSizeAlgorithmFromSizeFunction,_6=Zo.CreateReadableStream,DT=Zo.ReadableStreamDefaultControllerClose,x6=Zo.ReadableStreamDefaultControllerEnqueue,C6=Zo.ReadableStreamDefaultControllerError,R6=Zo.ReadableStreamDefaultControllerGetDesiredSize,k6=Zo.ReadableStreamDefaultControllerHasBackpressure,n0=Zo.ReadableStreamDefaultControllerCanCloseOrEnqueue,P6=Cn.CreateWritableStream,T6=Cn.WritableStreamDefaultControllerErrorIfNeeded,FT=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,u=t.writableType;if(u!==void 0)throw new RangeError("Invalid writable type specified");var c=C_(o);i===void 0&&(i=1),i=x_(i);var d=t.readableType;if(d!==void 0)throw new RangeError("Invalid readable type specified");var f=C_(a);s===void 0&&(s=0),s=x_(s);var p,y=new Promise(function(g){p=g});BT(this,y,i,c,s,f),O6(this,t);var S=S6(t,"start",[this._transformStreamController]);p(S)}return Kn(e,[{key:"readable",get:function(){if(R_(this)===!1)throw P_("readable");return this._readable}},{key:"writable",get:function(){if(R_(this)===!1)throw P_("writable");return this._writable}}]),e}();function E6(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(FT.prototype),u,c=new Promise(function(p){u=p});BT(s,c,n,o,i,a);var d=Object.create(WT.prototype);UT(s,d,t,r);var f=e();return u(f),s}function BT(e,t,r,n,o,i){function a(){return t}function s(p){return z6(e,p)}function u(p){return N6(e,p)}function c(){return A6(e)}e._writable=P6(a,s,c,u,r,n);function d(){return M6(e)}function f(p){return Hf(e,p),Promise.resolve()}e._readable=_6(a,d,f,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,qf(e,!0),e._transformStreamController=void 0}function R_(e){return!(!$T(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Uf(e,t){C6(e._readable._readableStreamController,t),Hf(e,t)}function Hf(e,t){HT(e._transformStreamController),T6(e._writable._writableStreamController,t),e._backpressure===!0&&qf(e,!1)}function qf(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var WT=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Vu(this)===!1)throw Ku("enqueue");qT(this,n)},t.error=function(n){if(Vu(this)===!1)throw Ku("error");I6(this,n)},t.terminate=function(){if(Vu(this)===!1)throw Ku("terminate");j6(this)},Kn(e,[{key:"desiredSize",get:function(){if(Vu(this)===!1)throw Ku("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return R6(n)}}]),e}();function Vu(e){return!(!$T(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function UT(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function O6(e,t){var r=Object.create(WT.prototype),n=function(s){try{return qT(r,s),Promise.resolve()}catch(u){return Promise.reject(u)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return w6(o,t,[s,r])}}var i=b6(t,"flush",0,[r]);UT(e,r,n,i)}function HT(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function qT(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(n0(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{x6(n,t)}catch(i){throw Hf(r,i),r._readable._storedError}var o=k6(n);o!==r._backpressure&&qf(r,!0)}function I6(e,t){Uf(e._controlledTransformStream,t)}function k_(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Uf(e._controlledTransformStream,n),n})}function j6(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;n0(r)===!0&&DT(r);var n=new TypeError("TransformStream terminated");Hf(t,n)}function z6(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 k_(r,t)})}return k_(r,t)}function N6(e,t){return Uf(e,t),Promise.resolve()}function A6(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return HT(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;n0(o)===!0&&DT(o)}).catch(function(o){throw Uf(e,o),t._storedError})}function M6(e){return qf(e,!1),e._backpressureChangePromise}var L6={CreateTransformStream:E6,TransformStream:FT};function Ku(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function P_(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var $6=L6.TransformStream;const D6=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:v6,CountQueuingStrategy:y6,ReadableStream:p6,TransformStream:$6,WritableStream:IW},Symbol.toStringTag,{value:"Module"})),F6=Ja(D6);function B6(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 W6=class GT{constructor(t={}){this.h={},t instanceof GT&&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])}),U6(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function U6(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Jp(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function T_({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,u=!1;const c=new ReadableStream({start(p){s=p},cancel(){u=!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,y)=>{if(o.body&&(d==="GET"||d==="HEAD")&&y(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),f)if(f.aborted){y(Jp());return}else f.addEventListener("abort",()=>{i.abort(),s&&s.error(Jp()),y(Jp())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:G6(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:q6(i.responseURL,n)})},i.onerror=function(){return y(new TypeError("Network request failed"))},i.ontimeout=function(){y(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const S=a(i.response);s.enqueue(S)}},i.onload=function(){s.close()},i.send(o.body)})}}function H6(){return typeof Headers<"u"?new Headers:new W6}function q6(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function G6(e){const t=H6();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 Zp=null;function V6(){return Zp||(Zp=K6()),Zp}function K6(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return B6;const e="moz-chunked-arraybuffer";return Y6(e)?T_({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):T_({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 Y6(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function o0(e,t={}){let r=t.transport;return r||(r=o0.transportFactory()),r(e,t)}o0.transportFactory=V6;const Q6=Object.freeze(Object.defineProperty({__proto__:null,default:o0},Symbol.toStringTag,{value:"Module"})),X6=Ja(Q6);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?di: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]||"",u=i[3];if(!u)return s;if(a&&typeof btoa=="function"){var c=o(u),d=u.sources.map(function(f){return"/*# sourceURL="+u.sourceRoot+f+" */"});return[s].concat(d).concat([c]).join(` +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=RP,t.componentWillReceiveProps=kP),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=PP;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,d,f){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,d,p)}}return e}function TP(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0&&u===s&&c())}function Fs(e,t){if(e==null)return{};var r=lt(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 nF=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ft(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 gt(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 u=this.getSizeAndPositionOfCell(s),c=u.offset,d=c-i+u.size,f;switch(o){case"start":f=c;break;case"end":f=d;break;case"center":f=c-(i-u.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),u=this.getSizeAndPositionOfCell(s);o=u.offset+u.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}(),oF=15e5,iF=16777100,aF=function(){return typeof window<"u"},sF=function(){return!!window.chrome},lF=function(){return aF()&&sF()?iF:oF},Iw=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?lF():r,o=Fs(t,["maxScrollSize"]);ft(this,e),D(this,"_cellSizeAndPositionManager",void 0),D(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new nF(o),this._maxScrollSize=n}return gt(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 u=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:u})}},{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 Ua(){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(u){var c=o[u];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(u){var c=t[u],d=o[u];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});t=o,a&&s&&n(o)}}var Fu=-1,Jn=1;function EP(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Jn?{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 jw(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,f=e.size,p=e.sizeJustIncreasedFromZero,y=e.updateScrollIndexCallback,S=r.getCellCount(),g=d>=0&&d0&&(fr.getTotalSize()-f&&y(S-1)}function OP(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,f=e.rowSizeAndPositionManager,p=e.rowStartIndex,y=e.rowStopIndex,S=e.styleCache,g=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],x=n.areOffsetsAdjusted()||f.areOffsetsAdjusted(),k=!u&&!x,E=p;E<=y;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+g,width:P.size},S[j]=M);var $={columnIndex:_,isScrolling:u,isVisible:I,key:j,parent:d,rowIndex:E,style:M},B=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r($)),B=t[j]):B=r($),!(B==null||B===!1)&&b.push(B)}return b}const uF=!!(typeof window<"u"&&window.document&&window.document.createElement);var Bu;function hv(e){if((!Bu&&Bu!==0||e)&&uF){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),Bu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Bu}var cr;typeof window<"u"?cr=window:typeof self<"u"?cr=self:cr={};var cF=cr.requestAnimationFrame||cr.webkitRequestAnimationFrame||cr.mozRequestAnimationFrame||cr.oRequestAnimationFrame||cr.msRequestAnimationFrame||function(e){return cr.setTimeout(e,1e3/60)},dF=cr.cancelAnimationFrame||cr.webkitCancelAnimationFrame||cr.mozCancelAnimationFrame||cr.oCancelAnimationFrame||cr.msCancelAnimationFrame||function(e){cr.clearTimeout(e)},zw=cF,fF=dF,Ha=function(t){return fF(t.id)},gy=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=zw(a)},i={id:zw(o)};return i},Nw,Aw;function Mw(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 oi(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 gt(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,u=n.rowIndex,c=u===void 0?this.props.scrollToRow:u,d=oi({},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 u=this.props,c=u.autoHeight,d=u.autoWidth,f=u.height,p=u.width,y=this.state.instanceProps,S=y.scrollbarSize,g=y.rowSizeAndPositionManager.getTotalSize(),C=y.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+S),i),b=Math.min(Math.max(0,g-f+S),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==b){var x=v!==this.state.scrollLeft?v>this.state.scrollLeft?Jn:Fu:this.state.scrollDirectionHorizontal,k=b!==this.state.scrollTop?b>this.state.scrollTop?Jn:Fu:this.state.scrollDirectionVertical,E={isScrolling:!0,scrollDirectionHorizontal:x,scrollDirectionVertical:k,scrollPositionChangeReason:Wp.OBSERVED};c||(E.scrollTop=b),d||(E.scrollLeft=v),E.needToResetStyleCache=!1,this.setState(E)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:C,totalRowsHeight:g})}}},{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,u=this.props,c=u.scrollToColumn,d=u.scrollToRow,f=this.state.instanceProps;f.columnSizeAndPositionManager.resetCell(i),f.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===Jn?i<=c:i>=c),this._recomputeScrollTopFlag=d>=0&&(this.state.scrollDirectionVertical===Jn?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(oi({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(oi({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,u=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 g=oi({},S,{needToResetStyleCache:!1});return g.instanceProps.scrollbarSize=o(),g.instanceProps.scrollbarSizeMeasured=!0,g}),typeof a=="number"&&a>=0||typeof u=="number"&&u>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:u});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 y=i>0&&d>0;s>=0&&y&&this._updateScrollLeftForScrollToColumn(),c>=0&&y&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:u||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,u=a.autoWidth,c=a.columnCount,d=a.height,f=a.rowCount,p=a.scrollToAlignment,y=a.scrollToColumn,S=a.scrollToRow,g=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===Wp.REQUESTED&&(!u&&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&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):jw({cellSizeAndPositionManager:k.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:y,size:g,sizeJustIncreasedFromZero:O,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):jw({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&&Ha(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,u=n.containerProps,c=n.containerRole,d=n.containerStyle,f=n.height,p=n.id,y=n.noContentRenderer,S=n.role,g=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",te({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:vn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:S,style:oi({},O,{},g),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:oi({width:o?"auto":_,height:P,maxWidth:_,maxHeight:P,overflow:"hidden",pointerEvents:E?"none":"",position:"relative"},d)},M),$&&y())}},{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,u=n.deferredMeasurementCache,c=n.height,d=n.overscanColumnCount,f=n.overscanIndicesGetter,p=n.overscanRowCount,y=n.rowCount,S=n.width,g=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:y,overscanCellsCount:p,scrollDirection:v,startIndex:typeof _.start=="number"?_.start:0,stopIndex:typeof _.stop=="number"?_.stop:-1}),$=j.overscanStartIndex,B=j.overscanStopIndex,W=M.overscanStartIndex,ae=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var ie=W;ie<=ae;ie++)if(!u.has(ie,0)){$=0,B=s-1;break}}if(!u.hasFixedWidth()){for(var pe=$;pe<=B;pe++)if(!u.has(0,pe)){W=0,ae=y-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:$,columnStopIndex:B,deferredMeasurementCache:u,horizontalOffsetAdjustment:P,isScrolling:E,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:W,rowStopIndex:ae,scrollLeft:k,scrollTop:x,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:O,visibleRowIndices:_}),this._columnStartIndex=$,this._columnStopIndex=B,this._rowStartIndex=W,this._rowStopIndex=ae}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ha(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=gy(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,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:u,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 u="".concat(a,"-").concat(s);this._styleCache[u]=n[u],i&&(this._cellCache[u]=o[u])}}},{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,u;return Ow({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)}}),Ow({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(){u=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,oi({},i,{},s,{},u)}},{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:Wp.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Jn:Fu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Jn:Fu,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,u=n.scrollToColumn,c=n.width,d=o.scrollLeft,f=o.instanceProps;if(i>0){var p=i-1,y=u<0?p:Math.min(p,u),S=f.rowSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:d,targetIndex:y})}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,u=n.scrollToRow,c=n.width,d=o.scrollTop,f=o.instanceProps;if(a>0){var p=a-1,y=u<0?p:Math.min(p,u),S=f.columnSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:d,targetIndex:y})}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(Nw,"propTypes",null),Aw);D(ao,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:OP,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:hv,noContentRenderer:pF,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:EP,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:hF,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zl(ao);var mF=1;function yy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===mF?{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 Lw,$w;function Dw(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 vF(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",u,!0),f&&(P.__resizeTriggers__.__animationListener__=function(ae){ae.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",u,!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 Fw,Bw;function Ww(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 gF(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ft(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,u=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=s||wF,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:yF),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:SF)}return gt(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=u.getScrollPositionForCell({align:d,cellIndex:f,height:c,scrollLeft:S,scrollTop:g,width:p});(C.scrollLeft!==S||C.scrollTop!==g)&&n._setScrollPosition(C)}}),D(Y(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var u=n.props,c=u.cellLayoutManager,d=u.height,f=u.isScrollingChange,p=u.width,y=n._scrollbarSize,S=c.getTotalSize(),g=S.height,C=S.width,v=Math.max(0,Math.min(C-p+y,s.target.scrollLeft)),b=Math.max(0,Math.min(g-d+y,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==b){var x=s.cancelable?ea.OBSERVED:ea.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:g})}}),n._scrollbarSize=hv(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return gt(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=hv(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var u=o.getTotalSize(),c=u.height,d=u.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,u=i.scrollToCell,c=i.width,d=this.state,f=d.scrollLeft,p=d.scrollPositionChangeReason,y=d.scrollTop;p===ea.REQUESTED&&(f>=0&&f!==o.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),y>=0&&y!==o.scrollTop&&y!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=y)),(a!==n.height||s!==n.scrollToAlignment||u!==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,u=n.height,c=n.horizontalOverscanSize,d=n.id,f=n.noContentRenderer,p=n.style,y=n.verticalOverscanSize,S=n.width,g=this.state,C=g.isScrolling,v=g.scrollLeft,b=g.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-y),P=Math.min(E,v+S+c),I=Math.min(k,b+u+y),j=u>0&&S>0?a.cellRenderers({height:I-_,isScrolling:C,width:P-O,x:O,y:_}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:S,willChange:"transform"},$=k>u?this._scrollbarSize:0,B=E>S?this._scrollbarSize:0;return M.overflowX=E+$<=S?"hidden":"auto",M.overflowY=k+B<=u?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:vn("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:_F({},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})},xF)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,u=n.totalWidth;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:s,scrollLeft:f,scrollTop:p,scrollWidth:u})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:ea.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:ea.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:ea.REQUESTED}:null}}]),t}(N.PureComponent);D(Nf,"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});Nf.propTypes={};Zl(Nf);var CF=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;ft(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gt(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}(),RF=100,kF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RF;ft(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gt(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(u){return u.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(u){return s[u]})}},{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),u=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<=u;p++)for(var y=c;y<=d;y++){var S="".concat(p,".").concat(y);this._sections[S]||(this._sections[S]=new CF({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:y*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 PF(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new kF(n),a=0,s=0,u=0;u=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var S=y.startIndex-1;if(!t({index:S}))y.startIndex=S;else break}return a}function AF(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 Vw,Kw,MP=(Kw=Vw=function(e){mr(t,e);function t(){var r,n;ft(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,u=vn("ReactVirtualized__List",o);return N.createElement(ao,te({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:u,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),D(Vw,"propTypes",null),Kw);D(MP,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:yy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function MF(e){if(Array.isArray(e))return e}function LF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function $F(){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 DF(e,t){return MF(e)||LF(e,t)||AP(e,t)||$F()}function FF(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 BF(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 WF(e,t,r,n,o){return typeof r=="function"?BF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):FF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function UF(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 HF(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 qF(e,t,r,n,o){return typeof r=="function"?HF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):UF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function GF(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 KF(e,t,r,n,o){return typeof r=="function"?VF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):GF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function YF(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 QF(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 XF(e,t,r,n,o){return typeof r=="function"?QF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):YF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function JF(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 ZF(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 eB(e,t,r,n,o){return typeof r=="function"?ZF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):JF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const ud={ge:WF,gt:qF,lt:KF,le:XF,eq:eB};var ga=0,ci=1,vc=2;function _y(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 eu=_y.prototype;function Up(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 LP(e,t){var r=qa(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 Yw(e,t){var r=e.intervals([]);r.push(t),LP(e,r)}function Qw(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?ga:(r.splice(n,1),LP(e,r),ci)}eu.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};eu.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Yw(this,e):this.left.insert(e):this.left=qa([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Yw(this,e):this.right.insert(e):this.right=qa([e]);else{var r=ud.ge(this.leftPoints,e,xy),n=ud.ge(this.rightPoints,e,Cy);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};eu.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Qw(this,e);var n=this.left.remove(e);return n===vc?(this.left=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return ga;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Qw(this,e);var n=this.right.remove(e);return n===vc?(this.right=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?vc:ga;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}Up(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Up(this,this.left):Up(this,this.right);return ci}for(var s=ud.ge(this.leftPoints,e,xy);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function FP(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return DP(this.rightPoints,e,t)}else return FP(this.leftPoints,t)};eu.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?DP(this.rightPoints,e,r):FP(this.leftPoints,r)};function tB(e,t){return e-t}function xy(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Cy(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function qa(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(u({index:W,isScrolling:k,key:p(W),parent:n,style:(pe={height:s.getHeight(W)},D(pe,b==="ltr"?"left":"right",ae),D(pe,"position","absolute"),D(pe,"top",ie),D(pe,"width",s.getWidth(W)),pe)}))}),P0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),D(this,"_cellMeasurerCache",void 0),D(this,"_columnIndexOffset",void 0),D(this,"_rowIndexOffset",void 0),D(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),D(this,"rowHeight",function(u){var c=u.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 gt(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 t_(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 Qt(e){for(var t=1;t0?new qp({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new qp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new qp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return gt(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,u=this.props,c=u.fixedColumnCount,d=u.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,u=Fs(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(u),this._renderTopRightGrid(Qt({},u,{onScroll:o,scrollLeft:d}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qt({},u,{onScroll:o,scrollTop:f})),this._renderBottomRightGrid(Qt({},u,{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(Af,"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});Af.propTypes={};Zl(Af);var BP=function(e){mr(t,e);function t(r,n){var o;return ft(this,t),o=pr(this,Ht(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 gt(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,u=o.scrollLeft,c=o.scrollTop,d=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:u,scrollTop:c,scrollWidth:d})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,u=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:u,scrollWidth:c})}}]),t}(N.PureComponent);BP.propTypes={};function lB(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(u){a[u]=o[u]!==void 0?o[u]:"ASC"});function s(u){var c=u.defaultSortDirection,d=u.event,f=u.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 y=Object.keys(a);y.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 WP(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function UP(e){var t=e.cellData;return t==null?"":String(t)}function ky(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}ky.propTypes=null;var so={ASC:"ASC",DESC:"DESC"};function Py(e){var t=e.sortDirection,r=vn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===so.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===so.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===so.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"}))}Py.propTypes={};function Ty(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(Py,{key:"SortIndicator",sortDirection:o})),a}Ty.propTypes=null;function Ey(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(i||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(y){return i({event:y,index:n,rowData:d})}),a&&(p.onDoubleClick=function(y){return a({event:y,index:n,rowData:d})}),s&&(p.onMouseOut=function(y){return s({event:y,index:n,rowData:d})}),u&&(p.onMouseOver=function(y){return u({event:y,index:n,rowData:d})}),c&&(p.onContextMenu=function(y){return c({event:y,index:n,rowData:d})})),N.createElement("div",te({},p,{className:t,key:o,role:"row",style:f}),r)}Ey.propTypes=null;var Oy=function(e){mr(t,e);function t(){return ft(this,t),pr(this,Ht(t).apply(this,arguments))}return t}(N.Component);D(Oy,"defaultProps",{cellDataGetter:WP,cellRenderer:UP,defaultSortDirection:so.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ty,style:{}});Oy.propTypes={};function n_(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 ta(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=Wl.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,u=o.gridClassName,c=o.gridStyle,d=o.headerHeight,f=o.headerRowRenderer,p=o.height,y=o.id,S=o.noRowsRenderer,g=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 g=="function"?g({index:-1}):g,_=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]=ta({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:vn("ReactVirtualized__Table",a),id:y,role:"grid",style:b},!s&&f({className:vn("ReactVirtualized__Table__headerRow",O),columns:this._getHeaderColumns(),style:ta({height:d,overflow:"hidden",paddingRight:k,width:x},_)}),N.createElement(ao,te({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:vn("ReactVirtualized__Table__Grid",u),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:ta({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,u=n.rowData,c=n.rowIndex,d=this.props.onColumnClick,f=o.props,p=f.cellDataGetter,y=f.cellRenderer,S=f.className,g=f.columnData,C=f.dataKey,v=f.id,b=p({columnData:g,dataKey:C,rowData:u}),x=y({cellData:b,columnData:g,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:u,rowIndex:c}),k=function(P){d&&d({columnData:g,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:vn("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,u=a.headerStyle,c=a.onHeaderClick,d=a.sort,f=a.sortBy,p=a.sortDirection,y=o.props,S=y.columnData,g=y.dataKey,C=y.defaultSortDirection,v=y.disableSort,b=y.headerRenderer,x=y.id,k=y.label,E=!v&&d,O=vn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),_=this._getFlexStyleForColumn(o,ta({},u,{},o.props.headerStyle)),P=b({columnData:S,dataKey:g,disableSort:v,label:k,sortBy:f,sortDirection:p}),I,j,M,$,B;if(E||c){var W=f!==g,ae=W?C:p===so.DESC?so.ASC:so.DESC,ie=function(oe){E&&d({defaultSortDirection:C,event:oe,sortBy:g,sortDirection:ae}),c&&c({columnData:S,dataKey:g,event:oe})},pe=function(oe){(oe.key==="Enter"||oe.key===" ")&&ie(oe)};B=o.props["aria-label"]||k||g,$="none",M=0,I=ie,j=pe}return f===g&&($=p===so.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,u=n.parent,c=n.style,d=this.props,f=d.children,p=d.onRowClick,y=d.onRowDoubleClick,S=d.onRowRightClick,g=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:u,rowData:P,rowIndex:i,scrollbarWidth:E})}),j=vn("ReactVirtualized__Table__row",O),M=ta({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:E},_);return x({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:y,onRowRightClick:S,onRowMouseOver:g,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=ta({},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(u,c){return n._createHeader({column:u,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,u=this.props.onRowsRendered;u({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(Iy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:yy,overscanRowCount:10,rowRenderer:Ey,headerRowRenderer:ky,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});Iy.propTypes={};var Wo=[],tl=null,Si=null;function HP(){Si&&(Si=null,document.body&&tl!=null&&(document.body.style.pointerEvents=tl),tl=null)}function uB(){HP(),Wo.forEach(function(e){return e.__resetIsScrolling()})}function cB(){Si&&Ha(Si);var e=0;Wo.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Si=gy(uB,e)}function qP(e){e.currentTarget===window&&tl==null&&document.body&&(tl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),cB(),Wo.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function o_(e,t){Wo.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",qP),Wo.push(e)}function i_(e,t){Wo=Wo.filter(function(r){return r!==e}),Wo.length||(t.removeEventListener("scroll",qP),Si&&(Ha(Si),HP()))}var jy=function(t){return t===window},Bs=function(t){return t.getBoundingClientRect()};function a_(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 Bs(e);else return{height:t.serverHeight,width:t.serverWidth}}function dB(e,t){if(jy(t)&&document.documentElement){var r=document.documentElement,n=Bs(e),o=Bs(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=GP(t),a=Bs(e),s=Bs(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function GP(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 s_,l_;function u_(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 fB(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,u=this._child||Wl.findDOMNode(this);if(u instanceof Element&&n){var c=dB(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var d=a_(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=IP(),this.updatePosition(n),n&&(o_(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),i_(this,a),o_(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(i_(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,u=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:u,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),D(s_,"propTypes",null),l_);D(KP,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:hB,scrollElement:VP(),serverHeight:0,serverWidth:0});const pB=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:Sy,AutoSizer:jP,CellMeasurer:zP,CellMeasurerCache:bF,Collection:by,Column:Oy,ColumnSizer:NP,Grid:ao,InfiniteLoader:wy,List:MP,Masonry:Ry,MultiGrid:Af,ScrollSync:BP,SortDirection:so,SortIndicator:Py,Table:Iy,WindowScroller:KP,accessibilityOverscanIndicesGetter:yy,createMasonryCellPositioner:sB,createTableMultiSort:lB,defaultCellRangeRenderer:OP,defaultOverscanIndicesGetter:EP,defaultTableCellDataGetter:WP,defaultTableCellRenderer:UP,defaultTableHeaderRenderer:Ty,defaultTableHeaderRowRenderer:ky,defaultTableRowRenderer:Ey},Symbol.toStringTag,{value:"Module"})),mB=Ja(pB);function ro(e,t,r){return t<=e&&e<=r}function Mf(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function vB(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,u=a&1023;o.push(65536+(s<<10)+u),n+=1}else o.push(65533)}n+=1}return o}function gB(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var cd=-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():cd},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 Ga=-1;function Gp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var dd="utf-8";function fd(e,t){if(!(this instanceof fd))return new fd(e,t);if(e=e!==void 0?String(e).toLowerCase():dd,e!==dd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Mf(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})}fd.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=Mf(r),this._streaming||(this._decoder=new yB({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!==Ga);)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===Ga)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),gB(i)}};function hd(e,t){if(!(this instanceof hd))return new hd(e,t);if(e=e!==void 0?String(e).toLowerCase():dd,e!==dd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Mf(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}hd.prototype={encode:function(t,r){t=t?String(t):"",r=Mf(r),this._streaming||(this._encoder=new SB(this._options)),this._streaming=!!r.stream;for(var n=[],o=new zy(vB(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Ga);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Ga;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function yB(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===cd&&o!==0)return o=0,Gp(t);if(u===cd)return Ga;if(o===0){if(ro(u,0,127))return u;if(ro(u,194,223))o=1,r=u-192;else if(ro(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(ro(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Gp(t);return r=r<<6*o,null}if(!ro(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Gp(t);if(i=128,a=191,n+=1,r+=u-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function SB(e){e.fatal,this.handler=function(t,r){if(r===cd)return Ga;if(ro(r,0,127))return r;var n,o;ro(r,128,2047)?(n=1,o=192):ro(r,2048,65535)?(n=2,o=224):ro(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 bB=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:fd,TextEncoder:hd},Symbol.toStringTag,{value:"Module"})),wB=Ja(bB);var c_={},d_;function _B(){return d_||(d_=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 u(_){this.map={},_ instanceof u?_.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)}u.prototype.append=function(_,P){_=i(_),P=a(P);var I=this.map[_];this.map[_]=I?I+","+P:P},u.prototype.delete=function(_){delete this.map[i(_)]},u.prototype.get=function(_){return _=i(_),this.has(_)?this.map[_]:null},u.prototype.has=function(_){return this.map.hasOwnProperty(i(_))},u.prototype.set=function(_,P){this.map[i(_)]=a(P)},u.prototype.forEach=function(_,P){for(var I in this.map)this.map.hasOwnProperty(I)&&_.call(P,this.map[I],I,this)},u.prototype.keys=function(){var _=[];return this.forEach(function(P,I){_.push(I)}),s(_)},u.prototype.values=function(){var _=[];return this.forEach(function(P){_.push(P)}),s(_)},u.prototype.entries=function(){var _=[];return this.forEach(function(P,I){_.push([I,P])}),s(_)},t.iterable&&(u.prototype[Symbol.iterator]=u.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 y(_){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 u(_.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 u(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 u,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}g.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 u(P.headers),this.url=P.url||"",this._initBody(_)}g.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(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=u,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:di)),c_}function f_(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");Xy(this)}},Kn(e,[{key:"closed",get:function(){return vi(this)===!1?Promise.reject(Hu("closed")):this._closedPromise}}]),e}(),YW=function(){function e(r){if(!eo(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(oa(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Oo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");wT(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(wd("cancel")):_T(this,n):Promise.reject(qu("cancel"))},t.read=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(wd("read from")):ArrayBuffer.isView(n)?vd(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")):QW(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(qu("read"))},t.releaseLock=function(){if(!Us(this))throw qu("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");Xy(this)}},Kn(e,[{key:"closed",get:function(){return Us(this)?this._closedPromise:Promise.reject(qu("closed"))}}]),e}();function Us(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function vi(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function wT(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?c6(e):t._state==="closed"?f6(e):(d6(e,t._storedError),e._closedPromise.catch(function(){}))}function _T(e,t){var r=e._ownerReadableStream;return bi(r,t)}function Xy(e){e._ownerReadableStream._state==="readable"?MT(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):h6(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 QW(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):e6(n._readableStreamController,t,r)}function Jy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Vo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[qy](t)}var xT=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Uu(this)===!1)throw Gu("close");if(bd(this)===!1)throw new TypeError("The stream is not in a state that permits close");yd(this)},t.enqueue=function(n){if(Uu(this)===!1)throw Gu("enqueue");if(bd(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return Sd(this,n)},t.error=function(n){if(Uu(this)===!1)throw Gu("error");Ko(this,n)},t[Hy]=function(r){us(this);var n=this._cancelAlgorithm(r);return gd(this),n},t[qy]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=LW(this);return this._closeRequested===!0&&this._queue.length===0?(gd(this),ru(n)):Ol(this),Promise.resolve(Vo(o,!1,r))}var i=gT(n,r);return Ol(this),i},Kn(e,[{key:"desiredSize",get:function(){if(Uu(this)===!1)throw Gu("desiredSize");return Zy(this)}}]),e}();function Uu(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Ol(e){var t=CT(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,Ol(e)},function(n){Ko(e,n)}).catch(no)}}function CT(e){var t=e._controlledReadableStream;if(bd(e)===!1||e._started===!1)return!1;if(Oo(t)===!0&&Bf(t)>0)return!0;var r=Zy(e);return r>0}function gd(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function yd(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(gd(e),ru(t))}function Sd(e,t){var r=e._controlledReadableStream;if(Oo(r)===!0&&Bf(r)>0)Yy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Ko(e,o),o}try{$W(e,t,n)}catch(o){throw Ko(e,o),o}}Ol(e)}function Ko(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(us(e),gd(e),yT(r,t))}function Zy(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function XW(e){return CT(e)!==!0}function bd(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function RT(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,us(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,Ol(t)},function(u){Ko(t,u)}).catch(no)}function JW(e,t,r,n){var o=Object.create(xT.prototype);function i(){return vT(t,"start",[o])}var a=md(t,"pull",0,[o]),s=md(t,"cancel",1,[]);RT(e,o,i,a,s,r,n)}var ZW=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(Qp(this)===!1)throw Xp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(vd(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");a6(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(Qp(this)===!1)throw Xp("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(vd(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");s6(this._associatedReadableByteStreamController,n)},Kn(e,[{key:"view",get:function(){if(Qp(this)===!1)throw Xp("view");return this._view}}]),e}(),kT=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(oa(this)===!1)throw Os("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");o6(this)},t.enqueue=function(n){if(oa(this)===!1)throw Os("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(vd(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");i6(this,n)},t.error=function(n){if(oa(this)===!1)throw Os("error");nu(this,n)},t[Hy]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}us(this);var o=this._cancelAlgorithm(r);return Wf(this),o},t[qy]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,IT(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(Vo(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 u={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(u)}var c=gT(n,r);return $i(this),c},Kn(e,[{key:"byobRequest",get:function(){if(oa(this)===!1)throw Os("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(ZW.prototype);u6(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(oa(this)===!1)throw Os("desiredSize");return NT(this)}}]),e}();function oa(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function Qp(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function $i(e){var t=n6(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,$i(e))},function(n){nu(e,n)}).catch(no)}}function PT(e){t0(e),e._pendingPullIntos=[]}function e0(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=TT(t);t.readerType==="default"?Yy(e,n,r):VW(e,n,r)}function TT(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function gc(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function ET(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,u=!1;a>n&&(s=a-t.bytesFilled,u=!0);for(var c=e._queue;s>0;){var d=c[0],f=Math.min(s,d.byteLength),p=t.byteOffset+t.bytesFilled;zW(t.buffer,p,d.buffer,d.byteOffset,f),d.byteLength===f?c.shift():(d.byteOffset+=f,d.byteLength-=f),e._queueTotalSize-=f,OT(e,f,t),s-=f}return u}function OT(e,t,r){t0(e),r.bytesFilled+=t}function IT(e){e._queueTotalSize===0&&e._closeRequested===!0?(Wf(e),ru(e._controlledReadableByteStream)):$i(e)}function t0(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function jT(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];ET(e,t)===!0&&(r0(e),e0(e._controlledReadableByteStream,t))}}function e6(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Ff(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),w_(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Vo(u,!0,r))}if(e._queueTotalSize>0){if(ET(e,s)===!0){var c=TT(s);return IT(e),Promise.resolve(Vo(c,!1,r))}if(e._closeRequested===!0){var d=new TypeError("Insufficient bytes to fill elements in the given buffer");return nu(e,d),Promise.reject(d)}}e._pendingPullIntos.push(s);var f=w_(n,r);return $i(e),f}function t6(e,t){t.buffer=Ff(t.buffer);var r=e._controlledReadableByteStream;if(Qy(r)===!0)for(;ST(r)>0;){var n=r0(e);e0(r,n)}}function r6(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(OT(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);gc(e,i,0,i.byteLength)}r.buffer=Ff(r.buffer),r.bytesFilled-=n,e0(e._controlledReadableByteStream,r),jT(e)}}function zT(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");t6(e,r)}else r6(e,t,r);$i(e)}function r0(e){var t=e._pendingPullIntos.shift();return t0(e),t}function n6(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(bT(t)===!0&&Bf(t)>0||Qy(t)===!0&&ST(t)>0)return!0;var r=NT(e);return r>0}function Wf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function o6(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 nu(e,n),n}}Wf(e),ru(t)}function i6(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Ff(n);if(bT(r)===!0)if(Bf(r)===0)gc(e,a,o,i);else{var s=new Uint8Array(a,o,i);Yy(r,s,!1)}else Qy(r)===!0?(gc(e,a,o,i),jT(e)):gc(e,a,o,i);$i(e)}function nu(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(PT(e),us(e),Wf(e),yT(r,t))}function NT(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function a6(e,t){if(t=Number(t),NW(t)===!1)throw new RangeError("bytesWritten must be a finite");zT(e,t)}function s6(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,zT(e,t.byteLength)}function AT(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,PT(t),t._queue=t._queueTotalSize=void 0,us(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=vv(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,$i(t)},function(u){nu(t,u)}).catch(no)}function l6(e,t,r){var n=Object.create(kT.prototype);function o(){return vT(t,"start",[n])}var i=md(t,"pull",0,[n]),a=md(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),xB(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");AT(e,n,o,i,a,r,s)}function u6(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function __(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 ra(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function wd(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Hu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function c6(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function d6(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function f6(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function MT(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function h6(e,t){e._closedPromise=Promise.reject(t)}function p6(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function qu(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Gu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Xp(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Os(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var m6=Zo.ReadableStream,v6=qe.createDataProperty,g6=function(){function e(r){var n=r.highWaterMark;v6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),y6=qe.createDataProperty,S6=function(){function e(r){var n=r.highWaterMark;y6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();XP("streams:transform-stream:verbose");var b6=qe.InvokeOrNoop,w6=qe.CreateAlgorithmFromUnderlyingMethod,_6=qe.PromiseCall,LT=qe.typeIsObject,x_=qe.ValidateAndNormalizeHighWaterMark;qe.IsNonNegativeNumber;var C_=qe.MakeSizeAlgorithmFromSizeFunction,x6=Zo.CreateReadableStream,$T=Zo.ReadableStreamDefaultControllerClose,C6=Zo.ReadableStreamDefaultControllerEnqueue,R6=Zo.ReadableStreamDefaultControllerError,k6=Zo.ReadableStreamDefaultControllerGetDesiredSize,P6=Zo.ReadableStreamDefaultControllerHasBackpressure,n0=Zo.ReadableStreamDefaultControllerCanCloseOrEnqueue,T6=Cn.CreateWritableStream,E6=Cn.WritableStreamDefaultControllerErrorIfNeeded,DT=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,u=t.writableType;if(u!==void 0)throw new RangeError("Invalid writable type specified");var c=C_(o);i===void 0&&(i=1),i=x_(i);var d=t.readableType;if(d!==void 0)throw new RangeError("Invalid readable type specified");var f=C_(a);s===void 0&&(s=0),s=x_(s);var p,y=new Promise(function(g){p=g});FT(this,y,i,c,s,f),I6(this,t);var S=b6(t,"start",[this._transformStreamController]);p(S)}return Kn(e,[{key:"readable",get:function(){if(R_(this)===!1)throw P_("readable");return this._readable}},{key:"writable",get:function(){if(R_(this)===!1)throw P_("writable");return this._writable}}]),e}();function O6(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(DT.prototype),u,c=new Promise(function(p){u=p});FT(s,c,n,o,i,a);var d=Object.create(BT.prototype);WT(s,d,t,r);var f=e();return u(f),s}function FT(e,t,r,n,o,i){function a(){return t}function s(p){return N6(e,p)}function u(p){return A6(e,p)}function c(){return M6(e)}e._writable=T6(a,s,c,u,r,n);function d(){return L6(e)}function f(p){return Hf(e,p),Promise.resolve()}e._readable=x6(a,d,f,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,qf(e,!0),e._transformStreamController=void 0}function R_(e){return!(!LT(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Uf(e,t){R6(e._readable._readableStreamController,t),Hf(e,t)}function Hf(e,t){UT(e._transformStreamController),E6(e._writable._writableStreamController,t),e._backpressure===!0&&qf(e,!1)}function qf(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var BT=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Vu(this)===!1)throw Ku("enqueue");HT(this,n)},t.error=function(n){if(Vu(this)===!1)throw Ku("error");j6(this,n)},t.terminate=function(){if(Vu(this)===!1)throw Ku("terminate");z6(this)},Kn(e,[{key:"desiredSize",get:function(){if(Vu(this)===!1)throw Ku("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return k6(n)}}]),e}();function Vu(e){return!(!LT(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function WT(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function I6(e,t){var r=Object.create(BT.prototype),n=function(s){try{return HT(r,s),Promise.resolve()}catch(u){return Promise.reject(u)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return _6(o,t,[s,r])}}var i=w6(t,"flush",0,[r]);WT(e,r,n,i)}function UT(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function HT(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(n0(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{C6(n,t)}catch(i){throw Hf(r,i),r._readable._storedError}var o=P6(n);o!==r._backpressure&&qf(r,!0)}function j6(e,t){Uf(e._controlledTransformStream,t)}function k_(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Uf(e._controlledTransformStream,n),n})}function z6(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;n0(r)===!0&&$T(r);var n=new TypeError("TransformStream terminated");Hf(t,n)}function N6(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 k_(r,t)})}return k_(r,t)}function A6(e,t){return Uf(e,t),Promise.resolve()}function M6(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return UT(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;n0(o)===!0&&$T(o)}).catch(function(o){throw Uf(e,o),t._storedError})}function L6(e){return qf(e,!1),e._backpressureChangePromise}var $6={CreateTransformStream:O6,TransformStream:DT};function Ku(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function P_(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var D6=$6.TransformStream;const F6=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:g6,CountQueuingStrategy:S6,ReadableStream:m6,TransformStream:D6,WritableStream:jW},Symbol.toStringTag,{value:"Module"})),B6=Ja(F6);function W6(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 U6=class qT{constructor(t={}){this.h={},t instanceof qT&&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])}),H6(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function H6(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Jp(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function T_({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,u=!1;const c=new ReadableStream({start(p){s=p},cancel(){u=!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,y)=>{if(o.body&&(d==="GET"||d==="HEAD")&&y(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),f)if(f.aborted){y(Jp());return}else f.addEventListener("abort",()=>{i.abort(),s&&s.error(Jp()),y(Jp())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:V6(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:G6(i.responseURL,n)})},i.onerror=function(){return y(new TypeError("Network request failed"))},i.ontimeout=function(){y(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const S=a(i.response);s.enqueue(S)}},i.onload=function(){s.close()},i.send(o.body)})}}function q6(){return typeof Headers<"u"?new Headers:new U6}function G6(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function V6(e){const t=q6();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 Zp=null;function K6(){return Zp||(Zp=Y6()),Zp}function Y6(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return W6;const e="moz-chunked-arraybuffer";return Q6(e)?T_({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):T_({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 Q6(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function o0(e,t={}){let r=t.transport;return r||(r=o0.transportFactory()),r(e,t)}o0.transportFactory=K6;const X6=Object.freeze(Object.defineProperty({__proto__:null,default:o0},Symbol.toStringTag,{value:"Module"})),J6=Ja(X6);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?di: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]||"",u=i[3];if(!u)return s;if(a&&typeof btoa=="function"){var c=o(u),d=u.sources.map(function(f){return"/*# sourceURL="+u.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 u=n(s,i);return s[2]?"@media "+s[2]+"{"+u+"}":u}).join("")},a.i=function(s,u){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)},g=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?g(k,x):x,O=E.length,_=0,P=0,I=Object(i.List)().withMutations(function(j){for(;PO?-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)},g=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?g(k,x):x,O=E.length,_=0,P=0,I=Object(i.List)().withMutations(function(j){for(;PDe&&(vr=Gt-De,ir=ir.slice(-De),Gt=ir.count());var _e=Object(O.g)({follow:ye,scrollToLine:ge,previousCount:Tt,count:Gt,offset:vr});U.setState({lines:ir,offset:vr,count:Gt,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 Z=U.props.onHighlight,re=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),ze={highlight:Re};re&&Object.assign(ze,{scrollToIndex:Object(O.g)({scrollToLine:fe})}),U.setState(ze,function(){Z&&Z(Re),re&&U.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(U,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var Z=U.state,re=Z.resultLines,fe=Z.searchKeywords,ge=U.props,ye=ge.caseInsensitive,be=ge.stream,Re=ge.websocket,ze=be||Re||K!==fe?oe(K,U.encodedLog,ye):re;U.setState({resultLines:ze,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,Z=K.resultLines,re=K.lines,fe=K.isFilteringLinesWithMatches;if(0De&&(vr=Gt-De,ir=ir.slice(-De),Gt=ir.count());var _e=Object(O.g)({follow:ye,scrollToLine:ge,previousCount:Tt,count:Gt,offset:vr});U.setState({lines:ir,offset:vr,count:Gt,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 Z=U.props.onHighlight,re=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),ze={highlight:Re};re&&Object.assign(ze,{scrollToIndex:Object(O.g)({scrollToLine:fe})}),U.setState(ze,function(){Z&&Z(Re),re&&U.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(U,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var Z=U.state,re=Z.resultLines,fe=Z.searchKeywords,ge=U.props,ye=ge.caseInsensitive,be=ge.stream,Re=ge.websocket,ze=be||Re||K!==fe?oe(K,U.encodedLog,ye):re;U.setState({resultLines:ze,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,Z=K.resultLines,re=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]},$r=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]},KT=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",Il=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},i8=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return Il(o)},Vf=(e,t)=>e===0||t===0?"0%":KT(e/t*100),E_=e=>zt(e)+"/s",a8=({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(Gf,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:zt(a.size)}),m.jsx("td",{children:m.jsx(VT,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},s8=()=>{const e=Hl(),t=Ee(kt),r=Ee(rA),[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!==""&&xP()},[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)})},u=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(a8,{logs:r,onLogSelected:c=>{e(DN(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:u("Head"),onClick:()=>a("Head"),children:"Head"}),m.jsx("button",{className:u("Tail"),onClick:()=>a("Tail"),children:"Tail"}),m.jsx("button",{className:u("All"),onClick:()=>a("All"),children:"All"})]}),m.jsx(J6.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},l8=()=>{const e=Ee(yk),[t,r]=N.useState(!0);function n(){r(!t)}const o=()=>m.jsx(m.Fragment,{children:e.map(s=>m.jsxs("div",{className:"py2 pr-8",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Data base - "+s.path}),m.jsxs("table",{className:"table-auto 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",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Count"})]})}),m.jsx("tbody",{children:s.tables.map(u=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:u.name}),m.jsx("td",{className:"px-4 py-2",children:u.size}),m.jsx("td",{className:"px-4 py-2",children:u.count})]}))})]})]}))}),i=()=>m.jsx("div",{className:"flex w-full flex-row",children:o()}),a=()=>m.jsx("div",{className:"flex w-full flex-col h-[80vh] pt-4 pb-4",children:o()});return m.jsxs("div",{className:"flex flex-col w-full py-4",children:[m.jsx(Un,{backgroundColor:as,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},u8=({onClose:e,onCreate:t,...r})=>{const[n,o]=se.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(Un,{backgroundColor:Xl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(Un,{backgroundColor:as,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},YT=({onSessionSelected:e,...t})=>{const r=Hl(),n=Ee(QN),[o,i]=N.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(jN(c)),e()},u=()=>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",{})]})}),m.jsx("tbody",{children:n.map((c,d)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>s(c.pin),children:[m.jsx("td",{className:"pl-2",children:c.active&&m.jsx(Gf,{})}),m.jsx("td",{className:"px-4 py-2",children:c.name}),m.jsx("td",{className:"px-4 py-2",children:c.pin}),m.jsx("td",{children:m.jsx(fy,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},d))})]}),o&&m.jsx(_P,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},c8=({title:e="",body:t="",positiveButton:r="",negativeButton:n="",onClose:o=()=>{},onNegativeClick:i=()=>{},onPositiveClick:a=()=>{}})=>{const s=()=>r!==""&&n!==""?m.jsxs(m.Fragment,{children:[u(!0,r),m.jsx("div",{className:"w-2"}),u(!1,n)]}):r!==""?m.jsx(m.Fragment,{children:u(!0,r)}):n!==""?m.jsx(m.Fragment,{children:u(!1,n)}):null,u=(c,d)=>m.jsx(Un,{backgroundColor:c?Xl:as,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(Of,{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"})]})},d8=()=>{const e=Hl(),[t,r]=N.useState(!1),[n,o]=N.useState(!1);function i(a,s){return Math.floor(Math.random()*(s-a)+a)}return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),m.jsx(YT,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(Un,{backgroundColor:Xl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(u8,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(ON({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(Un,{backgroundColor:as,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(c8,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(UN()),e(u3()),e(s3()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var s0={},f8=nt;Object.defineProperty(s0,"__esModule",{value:!0});var QT=s0.default=void 0,h8=f8(ot()),p8=m;QT=s0.default=(0,h8.default)((0,p8.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 l0={},m8=nt;Object.defineProperty(l0,"__esModule",{value:!0});var XT=l0.default=void 0,v8=m8(ot()),g8=m;XT=l0.default=(0,v8.default)((0,g8.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 y8=({onSessionClicked:e,onNodeClicked:t})=>{const r=Ee(gk),n=Ee(JN);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(QT,{}),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(XT,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},S8=({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(YT,{onSessionSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]}),b8=({onNodeSelected:e,...t})=>{const r=Hl(),n=Ee(ZN),o=a=>{r(zN(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(Gf,{})}),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()})},w8=({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(b8,{onNodeSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** +`,""]),n.locals={lazyLog:"_3NRgTLvWbyfWD-1xileYWR",searchMatch:"_Z1mYiD5z7OQvtbdHBEZT"}},function(r,n,o){function i(S,g){if(!(S instanceof g))throw new TypeError("Cannot call a class as a function")}function a(S,g){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:S}function s(S,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);S.prototype=Object.create(g&&g.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(S,g):S.__proto__=g)}Object.defineProperty(n,"__esModule",{value:!0}),o.d(n,"default",function(){return y});var u,c,d=o(0);o.n(d);var f=o(3);o.n(f);var p=function(){function S(g,C){for(var v,b=0;b{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]},$r=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]},VT=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",Il=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},a8=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return Il(o)},Vf=(e,t)=>e===0||t===0?"0%":VT(e/t*100),E_=e=>zt(e)+"/s",s8=({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(Gf,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:zt(a.size)}),m.jsx("td",{children:m.jsx(GT,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},l8=()=>{const e=Hl(),t=Ee(kt),r=Ee(tA),[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!==""&&_P()},[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)})},u=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(s8,{logs:r,onLogSelected:c=>{e($N(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:u("Head"),onClick:()=>a("Head"),children:"Head"}),m.jsx("button",{className:u("Tail"),onClick:()=>a("Tail"),children:"Tail"}),m.jsx("button",{className:u("All"),onClick:()=>a("All"),children:"All"})]}),m.jsx(Z6.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},u8=()=>{const e=Ee(yk),[t,r]=N.useState(!0);function n(){r(!t)}const o=()=>m.jsx(m.Fragment,{children:e.map(s=>m.jsxs("div",{className:"py2 pr-8",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Data base - "+s.path}),m.jsxs("table",{className:"table-auto 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",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Count"})]})}),m.jsx("tbody",{children:s.tables.map(u=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:u.name}),m.jsx("td",{className:"px-4 py-2",children:u.size}),m.jsx("td",{className:"px-4 py-2",children:u.count})]}))})]})]}))}),i=()=>m.jsx("div",{className:"flex w-full flex-row",children:o()}),a=()=>m.jsx("div",{className:"flex w-full flex-col h-[80vh] pt-4 pb-4",children:o()});return m.jsxs("div",{className:"flex flex-col w-full py-4",children:[m.jsx(Un,{backgroundColor:as,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},c8=({onClose:e,onCreate:t,...r})=>{const[n,o]=se.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(Un,{backgroundColor:Xl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(Un,{backgroundColor:as,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},KT=({onSessionSelected:e,...t})=>{const r=Hl(),n=Ee(YN),[o,i]=N.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(IN(c)),e()},u=()=>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",{})]})}),m.jsx("tbody",{children:n.map((c,d)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>s(c.pin),children:[m.jsx("td",{className:"pl-2",children:c.active&&m.jsx(Gf,{})}),m.jsx("td",{className:"px-4 py-2",children:c.name}),m.jsx("td",{className:"px-4 py-2",children:c.pin}),m.jsx("td",{children:m.jsx(fy,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},d))})]}),o&&m.jsx(wP,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},d8=({title:e="",body:t="",positiveButton:r="",negativeButton:n="",onClose:o=()=>{},onNegativeClick:i=()=>{},onPositiveClick:a=()=>{}})=>{const s=()=>r!==""&&n!==""?m.jsxs(m.Fragment,{children:[u(!0,r),m.jsx("div",{className:"w-2"}),u(!1,n)]}):r!==""?m.jsx(m.Fragment,{children:u(!0,r)}):n!==""?m.jsx(m.Fragment,{children:u(!1,n)}):null,u=(c,d)=>m.jsx(Un,{backgroundColor:c?Xl:as,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(Of,{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"})]})},f8=()=>{const e=Hl(),[t,r]=N.useState(!1),[n,o]=N.useState(!1);function i(a,s){return Math.floor(Math.random()*(s-a)+a)}return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),m.jsx(KT,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(Un,{backgroundColor:Xl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(c8,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(EN({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(Un,{backgroundColor:as,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(d8,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(WN()),e(l3()),e(a3()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var s0={},h8=nt;Object.defineProperty(s0,"__esModule",{value:!0});var YT=s0.default=void 0,p8=h8(ot()),m8=m;YT=s0.default=(0,p8.default)((0,m8.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 l0={},v8=nt;Object.defineProperty(l0,"__esModule",{value:!0});var QT=l0.default=void 0,g8=v8(ot()),y8=m;QT=l0.default=(0,g8.default)((0,y8.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 S8=({onSessionClicked:e,onNodeClicked:t})=>{const r=Ee(gk),n=Ee(XN);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(YT,{}),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(QT,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},b8=({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(KT,{onSessionSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]}),w8=({onNodeSelected:e,...t})=>{const r=Hl(),n=Ee(JN),o=a=>{r(jN(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(Gf,{})}),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()})},_8=({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(w8,{onNodeSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -349,11 +349,11 @@ 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 zr=function(){return zr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Bt(cs,--Pr):0,Va--,xt===10&&(Va=1,Yf--),xt}function Dr(){return xt=Pr2||zl(xt)>3?"":" "}function M8(e,t){for(;--t&&Dr()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return ou(e,yc()+(t<6&&Bn()==32&&Dr()==32))}function wv(e){for(;Dr();)switch(xt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&wv(xt);break;case 40:e===41&&wv(e);break;case 92:Dr();break}return Pr}function L8(e,t){for(;Dr()&&e+xt!==47+10;)if(e+xt===42+42&&Bn()===47)break;return"/*"+ou(t,Pr-1)+"*"+Kf(e===47?e:Dr())}function $8(e){for(;!zl(Bn());)Dr();return ou(e,Pr)}function O_(e){return nE(bc("",null,null,null,[""],e=rE(e),0,[0],e))}function bc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,x="",k=o,E=i,O=n,_=x;C;)switch(S=b,b=Dr()){case 40:if(S!=108&&Bt(_,f-1)==58){bv(_+=Fe(Sc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Sc(b);break;case 9:case 10:case 13:case 32:_+=A8(S);break;case 92:_+=M8(yc()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Yu(D8(L8(Dr(),yc()),t,r),u);break;default:_+="/"}break;case 123*g:s[c++]=Nn(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:y>0&&Nn(_)-f&&Yu(y>32?j_(_+";",n,r,f-1):j_(Fe(_," ","")+";",n,r,f-2),u);break;case 59:_+=";";default:if(Yu(O=I_(_,t,r,c,d,o,s,x,k=[],E=[],f),i),b===123)if(d===0)bc(_,t,O,O,k,i,f,s,E);else switch(p===99&&Bt(_,3)===110?100:p){case 100:case 109:case 115:bc(e,O,O,n&&Yu(I_(e,O,O,0,0,o,s,x,o,k=[],f),E),o,E,f,s,n?k:E);break;default:bc(_,O,O,O,[""],E,0,s,E)}}c=d=y=0,g=v=1,x=_="",f=a;break;case 58:f=1+Nn(_),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&N8()==125)continue}switch(_+=Kf(b),b*g){case 38:v=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(Nn(_)-1)*v,v=1;break;case 64:Bn()===45&&(_+=Sc(Dr())),p=Bn(),d=f=Nn(x=_+=$8(yc())),b++;break;case 45:S===45&&Nn(_)==2&&(g=0)}}return i}function I_(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=f0(p),S=0,g=0,C=0;S0?p[v]+" "+b:Fe(b,/&\f/g,p[v])))&&(u[C++]=x);return Qf(e,t,r,o===0?c0:s,u,c,d)}function D8(e,t,r){return Qf(e,t,r,JT,Kf(z8()),jl(e,2,-2),0)}function j_(e,t,r,n){return Qf(e,t,r,d0,jl(e,0,n),jl(e,n+1,-1),n)}function wi(e,t){for(var r="",n=f0(e),o=0;o6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+_d+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bv(e,"stretch")?oE(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,Nn(e)-3-(~bv(e,"!important")&&10))){case 107:return Fe(e,":",":"+Ae)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Zt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Zt+e+e}return e}var V8=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case d0:t.return=oE(t.value,t.length);break;case ZT:return wi([Is(t,{value:Fe(t.value,"@","@"+Ae)})],o);case c0:if(t.length)return j8(t.props,function(i){switch(I8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Is(t,{props:[Fe(i,/:(read-\w+)/,":"+_d+"$1")]})],o);case"::placeholder":return wi([Is(t,{props:[Fe(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Is(t,{props:[Fe(i,/:(plac\w+)/,":"+_d+"$1")]}),Is(t,{props:[Fe(i,/:(plac\w+)/,Zt+"input-$1")]})],o)}return""})}},wc=typeof document<"u",K8=wc?void 0:B8(function(){return u0(function(){var e={};return function(t){return e[t]}})}),Y8=[V8],iE=function(t){var r=t.key;if(wc&&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||Y8,i={},a,s=[];wc&&(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 o9={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},i9=/[A-Z]|^ms/g,a9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lE=function(t){return t.charCodeAt(1)===45},L_=function(t){return t!=null&&typeof t!="boolean"},em=u0(function(e){return lE(e)?e:e.replace(i9,"-$&").toLowerCase()}),$_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(a9,function(n,o,i){return An={name:o,styles:i,next:An},o})}return o9[t]!==1&&!lE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Nl(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 An={name:r.name,styles:r.styles,next:An},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)An={name:n.name,styles:n.styles,next:An},n=n.next;var o=r.styles+";";return o}return s9(e,t,r)}case"function":{if(e!==void 0){var i=An,a=r(e);return An=i,Nl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function s9(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?u9:c9},B_=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},d9=typeof document<"u",f9=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;sE(r,n,o);var i=J8(function(){return r9(r,n,o)});if(!d9&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},h9=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=B_(t,r,n),u=s||F_(o),c=!u("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,y=1;y0?Bt(cs,--Pr):0,Va--,xt===10&&(Va=1,Yf--),xt}function Dr(){return xt=Pr2||zl(xt)>3?"":" "}function L8(e,t){for(;--t&&Dr()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return ou(e,yc()+(t<6&&Bn()==32&&Dr()==32))}function wv(e){for(;Dr();)switch(xt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&wv(xt);break;case 40:e===41&&wv(e);break;case 92:Dr();break}return Pr}function $8(e,t){for(;Dr()&&e+xt!==47+10;)if(e+xt===42+42&&Bn()===47)break;return"/*"+ou(t,Pr-1)+"*"+Kf(e===47?e:Dr())}function D8(e){for(;!zl(Bn());)Dr();return ou(e,Pr)}function O_(e){return rE(bc("",null,null,null,[""],e=tE(e),0,[0],e))}function bc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,x="",k=o,E=i,O=n,_=x;C;)switch(S=b,b=Dr()){case 40:if(S!=108&&Bt(_,f-1)==58){bv(_+=Fe(Sc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Sc(b);break;case 9:case 10:case 13:case 32:_+=M8(S);break;case 92:_+=L8(yc()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Yu(F8($8(Dr(),yc()),t,r),u);break;default:_+="/"}break;case 123*g:s[c++]=Nn(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:y>0&&Nn(_)-f&&Yu(y>32?j_(_+";",n,r,f-1):j_(Fe(_," ","")+";",n,r,f-2),u);break;case 59:_+=";";default:if(Yu(O=I_(_,t,r,c,d,o,s,x,k=[],E=[],f),i),b===123)if(d===0)bc(_,t,O,O,k,i,f,s,E);else switch(p===99&&Bt(_,3)===110?100:p){case 100:case 109:case 115:bc(e,O,O,n&&Yu(I_(e,O,O,0,0,o,s,x,o,k=[],f),E),o,E,f,s,n?k:E);break;default:bc(_,O,O,O,[""],E,0,s,E)}}c=d=y=0,g=v=1,x=_="",f=a;break;case 58:f=1+Nn(_),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&A8()==125)continue}switch(_+=Kf(b),b*g){case 38:v=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(Nn(_)-1)*v,v=1;break;case 64:Bn()===45&&(_+=Sc(Dr())),p=Bn(),d=f=Nn(x=_+=D8(yc())),b++;break;case 45:S===45&&Nn(_)==2&&(g=0)}}return i}function I_(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=f0(p),S=0,g=0,C=0;S0?p[v]+" "+b:Fe(b,/&\f/g,p[v])))&&(u[C++]=x);return Qf(e,t,r,o===0?c0:s,u,c,d)}function F8(e,t,r){return Qf(e,t,r,XT,Kf(N8()),jl(e,2,-2),0)}function j_(e,t,r,n){return Qf(e,t,r,d0,jl(e,0,n),jl(e,n+1,-1),n)}function wi(e,t){for(var r="",n=f0(e),o=0;o6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+_d+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bv(e,"stretch")?nE(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,Nn(e)-3-(~bv(e,"!important")&&10))){case 107:return Fe(e,":",":"+Ae)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Zt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Zt+e+e}return e}var K8=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case d0:t.return=nE(t.value,t.length);break;case JT:return wi([Is(t,{value:Fe(t.value,"@","@"+Ae)})],o);case c0:if(t.length)return z8(t.props,function(i){switch(j8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Is(t,{props:[Fe(i,/:(read-\w+)/,":"+_d+"$1")]})],o);case"::placeholder":return wi([Is(t,{props:[Fe(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Is(t,{props:[Fe(i,/:(plac\w+)/,":"+_d+"$1")]}),Is(t,{props:[Fe(i,/:(plac\w+)/,Zt+"input-$1")]})],o)}return""})}},wc=typeof document<"u",Y8=wc?void 0:W8(function(){return u0(function(){var e={};return function(t){return e[t]}})}),Q8=[K8],oE=function(t){var r=t.key;if(wc&&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||Q8,i={},a,s=[];wc&&(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 i9={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},a9=/[A-Z]|^ms/g,s9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sE=function(t){return t.charCodeAt(1)===45},L_=function(t){return t!=null&&typeof t!="boolean"},em=u0(function(e){return sE(e)?e:e.replace(a9,"-$&").toLowerCase()}),$_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(s9,function(n,o,i){return An={name:o,styles:i,next:An},o})}return i9[t]!==1&&!sE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Nl(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 An={name:r.name,styles:r.styles,next:An},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)An={name:n.name,styles:n.styles,next:An},n=n.next;var o=r.styles+";";return o}return l9(e,t,r)}case"function":{if(e!==void 0){var i=An,a=r(e);return An=i,Nl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function l9(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?c9:d9},B_=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},f9=typeof document<"u",h9=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;aE(r,n,o);var i=Z8(function(){return n9(r,n,o)});if(!f9&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},p9=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=B_(t,r,n),u=s||F_(o),c=!u("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,y=1;y"u")return!1;var t=un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function q9(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];!en(i)||!Hn(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 G9(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(u,c){return u[c]="",u},{});!en(o)||!Hn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var V9={name:"applyStyles",enabled:!0,phase:"write",fn:q9,effect:G9,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var _i=Math.max,Rd=Math.min,Ya=Math.round;function xv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yE(){return!/^((?!chrome|android).)*safari/i.test(xv())}function Qa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&en(e)&&(o=e.offsetWidth>0&&Ya(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ya(n.height)/e.offsetHeight||1);var a=zi(e)?un(e):window,s=a.visualViewport,u=!yE()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,d=(n.top+(u&&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 v0(e){var t=Qa(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 SE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&m0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mo(e){return un(e).getComputedStyle(e)}function K9(e){return["table","td","th"].indexOf(Hn(e))>=0}function ei(e){return((zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jf(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(m0(e)?e.host:null)||ei(e)}function nx(e){return!en(e)||mo(e).position==="fixed"?null:e.offsetParent}function Y9(e){var t=/firefox/i.test(xv()),r=/Trident/i.test(xv());if(r&&en(e)){var n=mo(e);if(n.position==="fixed")return null}var o=Jf(e);for(m0(o)&&(o=o.host);en(o)&&["html","body"].indexOf(Hn(o))<0;){var i=mo(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 au(e){for(var t=un(e),r=nx(e);r&&K9(r)&&mo(r).position==="static";)r=nx(r);return r&&(Hn(r)==="html"||Hn(r)==="body"&&mo(r).position==="static")?t:r||Y9(e)||t}function g0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nl(e,t,r){return _i(e,Rd(t,r))}function Q9(e,t,r){var n=nl(e,t,r);return n>r?r:n}function bE(){return{top:0,right:0,bottom:0,left:0}}function wE(e){return Object.assign({},bE(),e)}function _E(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var X9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,wE(typeof t!="number"?t:_E(t,iu))};function J9(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Wn(r.placement),u=g0(s),c=[Rr,on].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=X9(o.padding,r),p=v0(i),y=u==="y"?Cr:Rr,S=u==="y"?nn:on,g=r.rects.reference[d]+r.rects.reference[u]-a[u]-r.rects.popper[d],C=a[u]-r.rects.reference[u],v=au(i),b=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,x=g/2-C/2,k=f[y],E=b-p[d]-f[S],O=b/2-p[d]/2+x,_=nl(k,O,E),P=u;r.modifiersData[n]=(t={},t[P]=_,t.centerOffset=_-O,t)}}function Z9(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)||SE(t.elements.popper,o)&&(t.elements.arrow=o))}var eU={name:"arrow",enabled:!0,phase:"main",fn:J9,effect:Z9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var tU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rU(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ya(t*o)/o||0,y:Ya(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,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,S=a.y,g=S===void 0?0:S,C=typeof d=="function"?d({x:y,y:g}):{x:y,y:g};y=C.x,g=C.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=Rr,k=Cr,E=window;if(c){var O=au(r),_="clientHeight",P="clientWidth";if(O===un(r)&&(O=ei(r),mo(O).position!=="static"&&s==="absolute"&&(_="scrollHeight",P="scrollWidth")),O=O,o===Cr||(o===Rr||o===on)&&i===Al){k=nn;var I=f&&O===E&&E.visualViewport?E.visualViewport.height:O[_];g-=I-n.height,g*=u?1:-1}if(o===Rr||(o===Cr||o===nn)&&i===Al){x=on;var j=f&&O===E&&E.visualViewport?E.visualViewport.width:O[P];y-=j-n.width,y*=u?1:-1}}var M=Object.assign({position:s},c&&tU),$=d===!0?rU({x:y,y:g}):{x:y,y:g};if(y=$.x,g=$.y,u){var B;return Object.assign({},M,(B={},B[k]=b?"0":"",B[x]=v?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",B))}return Object.assign({},M,(t={},t[k]=b?g+"px":"",t[x]=v?y+"px":"",t.transform="",t))}function nU(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,u=s===void 0?!0:s,c={placement:Wn(t.placement),variation:Xa(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:u})))),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:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var oU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nU,data:{}},Qu={passive:!0};function iU(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,u=un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Qu)}),s&&u.addEventListener("resize",r.update,Qu),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Qu)}),s&&u.removeEventListener("resize",r.update,Qu)}}var aU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iU,data:{}},sU={left:"right",right:"left",bottom:"top",top:"bottom"};function _c(e){return e.replace(/left|right|bottom|top/g,function(t){return sU[t]})}var lU={start:"end",end:"start"};function ix(e){return e.replace(/start|end/g,function(t){return lU[t]})}function y0(e){var t=un(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function S0(e){return Qa(ei(e)).left+y0(e).scrollLeft}function uU(e,t){var r=un(e),n=ei(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=yE();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+S0(e),y:u}}function cU(e){var t,r=ei(e),n=y0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+S0(e),u=-n.scrollTop;return mo(o||r).direction==="rtl"&&(s+=_i(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function b0(e){var t=mo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xE(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:en(e)&&b0(e)?e:xE(Jf(e))}function ol(e,t){var r;t===void 0&&(t=[]);var n=xE(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=un(n),a=o?[i].concat(i.visualViewport||[],b0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ol(Jf(a)))}function Cv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dU(e,t){var r=Qa(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 ax(e,t,r){return t===vE?Cv(uU(e,r)):zi(t)?dU(t,r):Cv(cU(ei(e)))}function fU(e){var t=ol(Jf(e)),r=["absolute","fixed"].indexOf(mo(e).position)>=0,n=r&&en(e)?au(e):e;return zi(n)?t.filter(function(o){return zi(o)&&SE(o,n)&&Hn(o)!=="body"}):[]}function hU(e,t,r,n){var o=t==="clippingParents"?fU(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var d=ax(e,c,n);return u.top=_i(d.top,u.top),u.right=Rd(d.right,u.right),u.bottom=Rd(d.bottom,u.bottom),u.left=_i(d.left,u.left),u},ax(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 CE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wn(n):null,i=n?Xa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Cr:u={x:a,y:t.y-r.height};break;case nn:u={x:a,y:t.y+t.height};break;case on:u={x:t.x+t.width,y:s};break;case Rr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?g0(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Ka:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Al:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function Ml(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,u=s===void 0?z9:s,c=r.rootBoundary,d=c===void 0?vE:c,f=r.elementContext,p=f===void 0?js:f,y=r.altBoundary,S=y===void 0?!1:y,g=r.padding,C=g===void 0?0:g,v=wE(typeof C!="number"?C:_E(C,iu)),b=p===js?N9:js,x=e.rects.popper,k=e.elements[S?b:p],E=hU(zi(k)?k:k.contextElement||ei(e.elements.popper),u,d,a),O=Qa(e.elements.reference),_=CE({reference:O,element:x,strategy:"absolute",placement:o}),P=Cv(Object.assign({},x,_)),I=p===js?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===js&&M){var $=M[o];Object.keys(j).forEach(function(B){var W=[on,nn].indexOf(B)>=0?1:-1,ae=[Cr,nn].indexOf(B)>=0?"y":"x";j[B]+=$[ae]*W})}return j}function pU(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?gE:u,d=Xa(n),f=d?s?rx:rx.filter(function(S){return Xa(S)===d}):iu,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var y=p.reduce(function(S,g){return S[g]=Ml(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Wn(g)],S},{});return Object.keys(y).sort(function(S,g){return y[S]-y[g]})}function mU(e){if(Wn(e)===p0)return[];var t=_c(e);return[ix(e),t,ix(t)]}function vU(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,u=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,g=r.allowedAutoPlacements,C=t.options.placement,v=Wn(C),b=v===C,x=u||(b||!S?[_c(C)]:mU(C)),k=[C].concat(x).reduce(function($e,Se){return $e.concat(Wn(Se)===p0?pU(t,{placement:Se,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:g}):Se)},[]),E=t.rects.reference,O=t.rects.popper,_=new Map,P=!0,I=k[0],j=0;j=0,ae=W?"width":"height",ie=Ml(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),pe=W?B?on:Rr:B?nn:Cr;E[ae]>O[ae]&&(pe=_c(pe));var J=_c(pe),oe=[];if(i&&oe.push(ie[$]<=0),s&&oe.push(ie[pe]<=0,ie[J]<=0),oe.every(function($e){return $e})){I=M,P=!1;break}_.set(M,oe)}if(P)for(var ce=S?3:1,we=function(Se){var G=k.find(function(V){var q=_.get(V);if(q)return q.slice(0,Se).every(function(X){return X})});if(G)return I=G,"break"},ke=ce;ke>0;ke--){var yt=we(ke);if(yt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var gU={name:"flip",enabled:!0,phase:"main",fn:vU,requiresIfExists:["offset"],data:{_skip:!1}};function sx(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 lx(e){return[Cr,on,nn,Rr].some(function(t){return e[t]>=0})}function yU(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ml(t,{elementContext:"reference"}),s=Ml(t,{altBoundary:!0}),u=sx(a,n),c=sx(s,o,i),d=lx(u),f=lx(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var SU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yU};function bU(e,t,r){var n=Wn(e),o=[Rr,Cr].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,[Rr,on].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function wU(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=gE.reduce(function(d,f){return d[f]=bU(f,t.rects,i),d},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var _U={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wU};function xU(e){var t=e.state,r=e.name;t.modifiersData[r]=CE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var CU={name:"popperOffsets",enabled:!0,phase:"read",fn:xU,data:{}};function RU(e){return e==="x"?"y":"x"}function kU(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,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,y=p===void 0?!0:p,S=r.tetherOffset,g=S===void 0?0:S,C=Ml(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),v=Wn(t.placement),b=Xa(t.placement),x=!b,k=g0(v),E=RU(k),O=t.modifiersData.popperOffsets,_=t.rects.reference,P=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,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"?Cr:Rr,ae=k==="y"?nn:on,ie=k==="y"?"height":"width",pe=O[k],J=pe+C[W],oe=pe-C[ae],ce=y?-P[ie]/2:0,we=b===Ka?_[ie]:P[ie],ke=b===Ka?-P[ie]:-_[ie],yt=t.elements.arrow,$e=y&&yt?v0(yt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bE(),G=Se[W],V=Se[ae],q=nl(0,_[ie],$e[ie]),X=x?_[ie]/2-ce-q-G-j.mainAxis:we-q-G-j.mainAxis,U=x?-_[ie]/2+ce+q+V+j.mainAxis:ke+q+V+j.mainAxis,he=t.elements.arrow&&au(t.elements.arrow),ue=he?k==="y"?he.clientTop||0:he.clientLeft||0:0,ne=(B=M==null?void 0:M[k])!=null?B:0,le=pe+X-ne-ue,K=pe+U-ne,Z=nl(y?Rd(J,le):J,pe,y?_i(oe,K):oe);O[k]=Z,$[k]=Z-pe}if(s){var re,fe=k==="x"?Cr:Rr,ge=k==="x"?nn:on,ye=O[E],be=E==="y"?"height":"width",Re=ye+C[fe],ze=ye-C[ge],De=[Cr,Rr].indexOf(v)!==-1,Tt=(re=M==null?void 0:M[E])!=null?re:0,vr=De?Re:ye-_[be]-P[be]-Tt+j.altAxis,ir=De?ye+_[be]+P[be]-Tt-j.altAxis:ze,Gt=y&&De?Q9(vr,ye,ir):nl(y?vr:Re,ye,y?ir:ze);O[E]=Gt,$[E]=Gt-ye}t.modifiersData[n]=$}}var PU={name:"preventOverflow",enabled:!0,phase:"main",fn:kU,requiresIfExists:["offset"]};function TU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EU(e){return e===un(e)||!en(e)?y0(e):TU(e)}function OU(e){var t=e.getBoundingClientRect(),r=Ya(t.width)/e.offsetWidth||1,n=Ya(t.height)/e.offsetHeight||1;return r!==1||n!==1}function IU(e,t,r){r===void 0&&(r=!1);var n=en(t),o=en(t)&&OU(t),i=ei(t),a=Qa(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Hn(t)!=="body"||b0(i))&&(s=EU(t)),en(t)?(u=Qa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=S0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function jU(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 u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function zU(e){var t=jU(e);return H9.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function NU(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function AU(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 ux={placement:"bottom",modifiers:[],strategy:"absolute"};function cx(){for(var e=arguments.length,t=new Array(e),r=0;r"u")return!1;var t=un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function G9(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];!en(i)||!Hn(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 V9(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(u,c){return u[c]="",u},{});!en(o)||!Hn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var K9={name:"applyStyles",enabled:!0,phase:"write",fn:G9,effect:V9,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var _i=Math.max,Rd=Math.min,Ya=Math.round;function xv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gE(){return!/^((?!chrome|android).)*safari/i.test(xv())}function Qa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&en(e)&&(o=e.offsetWidth>0&&Ya(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ya(n.height)/e.offsetHeight||1);var a=zi(e)?un(e):window,s=a.visualViewport,u=!gE()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,d=(n.top+(u&&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 v0(e){var t=Qa(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 yE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&m0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mo(e){return un(e).getComputedStyle(e)}function Y9(e){return["table","td","th"].indexOf(Hn(e))>=0}function ei(e){return((zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jf(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(m0(e)?e.host:null)||ei(e)}function nx(e){return!en(e)||mo(e).position==="fixed"?null:e.offsetParent}function Q9(e){var t=/firefox/i.test(xv()),r=/Trident/i.test(xv());if(r&&en(e)){var n=mo(e);if(n.position==="fixed")return null}var o=Jf(e);for(m0(o)&&(o=o.host);en(o)&&["html","body"].indexOf(Hn(o))<0;){var i=mo(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 au(e){for(var t=un(e),r=nx(e);r&&Y9(r)&&mo(r).position==="static";)r=nx(r);return r&&(Hn(r)==="html"||Hn(r)==="body"&&mo(r).position==="static")?t:r||Q9(e)||t}function g0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nl(e,t,r){return _i(e,Rd(t,r))}function X9(e,t,r){var n=nl(e,t,r);return n>r?r:n}function SE(){return{top:0,right:0,bottom:0,left:0}}function bE(e){return Object.assign({},SE(),e)}function wE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var J9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,bE(typeof t!="number"?t:wE(t,iu))};function Z9(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Wn(r.placement),u=g0(s),c=[Rr,on].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=J9(o.padding,r),p=v0(i),y=u==="y"?Cr:Rr,S=u==="y"?nn:on,g=r.rects.reference[d]+r.rects.reference[u]-a[u]-r.rects.popper[d],C=a[u]-r.rects.reference[u],v=au(i),b=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,x=g/2-C/2,k=f[y],E=b-p[d]-f[S],O=b/2-p[d]/2+x,_=nl(k,O,E),P=u;r.modifiersData[n]=(t={},t[P]=_,t.centerOffset=_-O,t)}}function eU(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)||yE(t.elements.popper,o)&&(t.elements.arrow=o))}var tU={name:"arrow",enabled:!0,phase:"main",fn:Z9,effect:eU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var rU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nU(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ya(t*o)/o||0,y:Ya(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,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,S=a.y,g=S===void 0?0:S,C=typeof d=="function"?d({x:y,y:g}):{x:y,y:g};y=C.x,g=C.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=Rr,k=Cr,E=window;if(c){var O=au(r),_="clientHeight",P="clientWidth";if(O===un(r)&&(O=ei(r),mo(O).position!=="static"&&s==="absolute"&&(_="scrollHeight",P="scrollWidth")),O=O,o===Cr||(o===Rr||o===on)&&i===Al){k=nn;var I=f&&O===E&&E.visualViewport?E.visualViewport.height:O[_];g-=I-n.height,g*=u?1:-1}if(o===Rr||(o===Cr||o===nn)&&i===Al){x=on;var j=f&&O===E&&E.visualViewport?E.visualViewport.width:O[P];y-=j-n.width,y*=u?1:-1}}var M=Object.assign({position:s},c&&rU),$=d===!0?nU({x:y,y:g}):{x:y,y:g};if(y=$.x,g=$.y,u){var B;return Object.assign({},M,(B={},B[k]=b?"0":"",B[x]=v?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",B))}return Object.assign({},M,(t={},t[k]=b?g+"px":"",t[x]=v?y+"px":"",t.transform="",t))}function oU(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,u=s===void 0?!0:s,c={placement:Wn(t.placement),variation:Xa(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:u})))),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:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var iU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oU,data:{}},Qu={passive:!0};function aU(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,u=un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Qu)}),s&&u.addEventListener("resize",r.update,Qu),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Qu)}),s&&u.removeEventListener("resize",r.update,Qu)}}var sU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aU,data:{}},lU={left:"right",right:"left",bottom:"top",top:"bottom"};function _c(e){return e.replace(/left|right|bottom|top/g,function(t){return lU[t]})}var uU={start:"end",end:"start"};function ix(e){return e.replace(/start|end/g,function(t){return uU[t]})}function y0(e){var t=un(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function S0(e){return Qa(ei(e)).left+y0(e).scrollLeft}function cU(e,t){var r=un(e),n=ei(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=gE();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+S0(e),y:u}}function dU(e){var t,r=ei(e),n=y0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+S0(e),u=-n.scrollTop;return mo(o||r).direction==="rtl"&&(s+=_i(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function b0(e){var t=mo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function _E(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:en(e)&&b0(e)?e:_E(Jf(e))}function ol(e,t){var r;t===void 0&&(t=[]);var n=_E(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=un(n),a=o?[i].concat(i.visualViewport||[],b0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ol(Jf(a)))}function Cv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fU(e,t){var r=Qa(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 ax(e,t,r){return t===mE?Cv(cU(e,r)):zi(t)?fU(t,r):Cv(dU(ei(e)))}function hU(e){var t=ol(Jf(e)),r=["absolute","fixed"].indexOf(mo(e).position)>=0,n=r&&en(e)?au(e):e;return zi(n)?t.filter(function(o){return zi(o)&&yE(o,n)&&Hn(o)!=="body"}):[]}function pU(e,t,r,n){var o=t==="clippingParents"?hU(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var d=ax(e,c,n);return u.top=_i(d.top,u.top),u.right=Rd(d.right,u.right),u.bottom=Rd(d.bottom,u.bottom),u.left=_i(d.left,u.left),u},ax(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 xE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wn(n):null,i=n?Xa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Cr:u={x:a,y:t.y-r.height};break;case nn:u={x:a,y:t.y+t.height};break;case on:u={x:t.x+t.width,y:s};break;case Rr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?g0(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Ka:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Al:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function Ml(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,u=s===void 0?N9:s,c=r.rootBoundary,d=c===void 0?mE:c,f=r.elementContext,p=f===void 0?js:f,y=r.altBoundary,S=y===void 0?!1:y,g=r.padding,C=g===void 0?0:g,v=bE(typeof C!="number"?C:wE(C,iu)),b=p===js?A9:js,x=e.rects.popper,k=e.elements[S?b:p],E=pU(zi(k)?k:k.contextElement||ei(e.elements.popper),u,d,a),O=Qa(e.elements.reference),_=xE({reference:O,element:x,strategy:"absolute",placement:o}),P=Cv(Object.assign({},x,_)),I=p===js?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===js&&M){var $=M[o];Object.keys(j).forEach(function(B){var W=[on,nn].indexOf(B)>=0?1:-1,ae=[Cr,nn].indexOf(B)>=0?"y":"x";j[B]+=$[ae]*W})}return j}function mU(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?vE:u,d=Xa(n),f=d?s?rx:rx.filter(function(S){return Xa(S)===d}):iu,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var y=p.reduce(function(S,g){return S[g]=Ml(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Wn(g)],S},{});return Object.keys(y).sort(function(S,g){return y[S]-y[g]})}function vU(e){if(Wn(e)===p0)return[];var t=_c(e);return[ix(e),t,ix(t)]}function gU(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,u=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,g=r.allowedAutoPlacements,C=t.options.placement,v=Wn(C),b=v===C,x=u||(b||!S?[_c(C)]:vU(C)),k=[C].concat(x).reduce(function($e,Se){return $e.concat(Wn(Se)===p0?mU(t,{placement:Se,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:g}):Se)},[]),E=t.rects.reference,O=t.rects.popper,_=new Map,P=!0,I=k[0],j=0;j=0,ae=W?"width":"height",ie=Ml(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),pe=W?B?on:Rr:B?nn:Cr;E[ae]>O[ae]&&(pe=_c(pe));var J=_c(pe),oe=[];if(i&&oe.push(ie[$]<=0),s&&oe.push(ie[pe]<=0,ie[J]<=0),oe.every(function($e){return $e})){I=M,P=!1;break}_.set(M,oe)}if(P)for(var ce=S?3:1,we=function(Se){var G=k.find(function(V){var q=_.get(V);if(q)return q.slice(0,Se).every(function(X){return X})});if(G)return I=G,"break"},ke=ce;ke>0;ke--){var yt=we(ke);if(yt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var yU={name:"flip",enabled:!0,phase:"main",fn:gU,requiresIfExists:["offset"],data:{_skip:!1}};function sx(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 lx(e){return[Cr,on,nn,Rr].some(function(t){return e[t]>=0})}function SU(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ml(t,{elementContext:"reference"}),s=Ml(t,{altBoundary:!0}),u=sx(a,n),c=sx(s,o,i),d=lx(u),f=lx(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var bU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SU};function wU(e,t,r){var n=Wn(e),o=[Rr,Cr].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,[Rr,on].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function _U(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=vE.reduce(function(d,f){return d[f]=wU(f,t.rects,i),d},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var xU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_U};function CU(e){var t=e.state,r=e.name;t.modifiersData[r]=xE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var RU={name:"popperOffsets",enabled:!0,phase:"read",fn:CU,data:{}};function kU(e){return e==="x"?"y":"x"}function PU(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,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,y=p===void 0?!0:p,S=r.tetherOffset,g=S===void 0?0:S,C=Ml(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),v=Wn(t.placement),b=Xa(t.placement),x=!b,k=g0(v),E=kU(k),O=t.modifiersData.popperOffsets,_=t.rects.reference,P=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,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"?Cr:Rr,ae=k==="y"?nn:on,ie=k==="y"?"height":"width",pe=O[k],J=pe+C[W],oe=pe-C[ae],ce=y?-P[ie]/2:0,we=b===Ka?_[ie]:P[ie],ke=b===Ka?-P[ie]:-_[ie],yt=t.elements.arrow,$e=y&&yt?v0(yt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:SE(),G=Se[W],V=Se[ae],q=nl(0,_[ie],$e[ie]),X=x?_[ie]/2-ce-q-G-j.mainAxis:we-q-G-j.mainAxis,U=x?-_[ie]/2+ce+q+V+j.mainAxis:ke+q+V+j.mainAxis,he=t.elements.arrow&&au(t.elements.arrow),ue=he?k==="y"?he.clientTop||0:he.clientLeft||0:0,ne=(B=M==null?void 0:M[k])!=null?B:0,le=pe+X-ne-ue,K=pe+U-ne,Z=nl(y?Rd(J,le):J,pe,y?_i(oe,K):oe);O[k]=Z,$[k]=Z-pe}if(s){var re,fe=k==="x"?Cr:Rr,ge=k==="x"?nn:on,ye=O[E],be=E==="y"?"height":"width",Re=ye+C[fe],ze=ye-C[ge],De=[Cr,Rr].indexOf(v)!==-1,Tt=(re=M==null?void 0:M[E])!=null?re:0,vr=De?Re:ye-_[be]-P[be]-Tt+j.altAxis,ir=De?ye+_[be]+P[be]-Tt-j.altAxis:ze,Gt=y&&De?X9(vr,ye,ir):nl(y?vr:Re,ye,y?ir:ze);O[E]=Gt,$[E]=Gt-ye}t.modifiersData[n]=$}}var TU={name:"preventOverflow",enabled:!0,phase:"main",fn:PU,requiresIfExists:["offset"]};function EU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function OU(e){return e===un(e)||!en(e)?y0(e):EU(e)}function IU(e){var t=e.getBoundingClientRect(),r=Ya(t.width)/e.offsetWidth||1,n=Ya(t.height)/e.offsetHeight||1;return r!==1||n!==1}function jU(e,t,r){r===void 0&&(r=!1);var n=en(t),o=en(t)&&IU(t),i=ei(t),a=Qa(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Hn(t)!=="body"||b0(i))&&(s=OU(t)),en(t)?(u=Qa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=S0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function zU(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 u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function NU(e){var t=zU(e);return q9.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function AU(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function MU(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 ux={placement:"bottom",modifiers:[],strategy:"absolute"};function cx(){for(var e=arguments.length,t=new Array(e),r=0;r ul")))===null||Z===void 0?void 0:Z.clientHeight;re.style.overflow="hidden",re.style.height="".concat(fe,"px"),V.current=setTimeout(function(){re.style.overflow="auto",re.style.height="auto"},ae)}},[ae]),U=function(){var Z,re=G.current;if(re){var fe=(Z=re==null?void 0:re.querySelector(".".concat(Le.subMenuContent," > ul")))===null||Z===void 0?void 0:Z.clientHeight;re.style.overflow="hidden",re.style.height="".concat(fe,"px"),re.offsetHeight,re.style.height="0px"}},he=function(){O===0&&P||(typeof d>"u"?(clearTimeout(Number(V.current)),pe?U():X(),b==null||b(!pe),J(!pe)):b==null||b(!d))};se.useEffect(function(){!(O===0&&P)&&typeof d<"u"&&yt&&(clearTimeout(Number(V.current)),d?X():U())},[P,X,i,O,b,d]);var ue=function(Z){x==null||x(Z),he()},ne=function(Z){k==null||k(Z),Z.key==="Enter"&&he()},le=function(Z){if(W){var re={level:O,disabled:g,active:y,isSubmenu:!0,open:d??pe},fe=W.root,ge=W.button,ye=W.label,be=W.icon,Re=W.prefix,ze=W.suffix,De=W.subMenuContent,Tt=W.SubMenuExpandIcon;switch(Z){case"root":return typeof fe=="function"?fe(re):fe;case"button":return typeof ge=="function"?ge(re):ge;case"label":return typeof ye=="function"?ye(re):ye;case"icon":return typeof be=="function"?be(re):be;case"prefix":return typeof Re=="function"?Re(re):Re;case"suffix":return typeof ze=="function"?ze(re):ze;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(re):Tt;case"subMenuContent":return typeof De=="function"?De(re):De;default:return}}};se.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),P&&O===0&&we(!1)},[P,O,I,j,q]),se.useEffect(function(){var Z=function(ye){var be,Re,ze;!ce&&(!((be=Se.current)===null||be===void 0)&&be.contains(ye))?we(!0):(B&&!(!((Re=ye.closest(".".concat(Le.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Le.subMenuRoot))||!(!((ze=G.current)===null||ze===void 0)&&ze.contains(ye))&&ce)&&we(!1)},re=function(ye){Z(ye.target)},fe=function(ye){ye.key==="Enter"?Z(ye.target):ye.key==="Escape"&&we(!1)},ge=function(){document.removeEventListener("click",re),document.removeEventListener("keyup",fe)};return ge(),P&&O===0&&(document.addEventListener("click",re,!1),document.addEventListener("keyup",fe,!1)),function(){ge()}},[P,O,B,ce]),se.useEffect(function(){$e(!0)},[]);var K=(r={},r[Le.active]=y,r[Le.disabled]=g,r[Le.open]=d??pe,r);return se.createElement(BU,{ref:t,className:Ot(Le.menuItemRoot,Le.subMenuRoot,K,o),menuItemStyles:le("root"),level:O,collapsed:P,rtl:I,disabled:g,active:y,buttonStyles:le("button"),rootStyles:C},se.createElement(kE,zr({"data-testid":"".concat(Le.button,"-test-id"),ref:Se,title:s,className:Ot(Le.button,K),onClick:ue,onKeyUp:ne,component:v,tabIndex:0},E),a&&se.createElement(hE,{rtl:I,className:Ot(Le.icon,K),rootStyles:le("icon")},a),u&&se.createElement(pE,{collapsed:P,transitionDuration:j,firstLevel:O===0,className:Ot(Le.prefix,K),rtl:I,rootStyles:le("prefix")},u),se.createElement(fE,{className:Ot(Le.label,K),rootStyles:le("label")},i),c&&se.createElement(mE,{collapsed:P,transitionDuration:j,firstLevel:O===0,className:Ot(Le.suffix,K),rootStyles:le("suffix")},c),se.createElement(O9,{rtl:I,className:Ot(Le.SubMenuExpandIcon,K),collapsed:P,level:O,rootStyles:le("SubMenuExpandIcon")},$?$({level:O,disabled:g,active:y,open:d??pe}):P&&O===0?se.createElement(j9,null):se.createElement(I9,{rtl:I,open:d??pe}))),se.createElement(E9,{ref:G,openWhenCollapsed:ce,open:d??pe,firstLevel:O===0,collapsed:P,defaultOpen:d&&!yt||f,className:Ot(Le.subMenuContent,K),rootStyles:le("subMenuContent")},se.createElement(Cd.Provider,{value:O+1},n)))},UU=se.forwardRef(WU),dx,HU=At.li(fx||(fx=or([` +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Le.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return CE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),UU=function(e,t){var r,n=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,u=e.prefix,c=e.suffix,d=e.open,f=e.defaultOpen,p=e.active,y=p===void 0?!1:p,S=e.disabled,g=S===void 0?!1:S,C=e.rootStyles,v=e.component,b=e.onOpenChange,x=e.onClick,k=e.onKeyUp,E=ji(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),O=se.useContext(Cd),_=se.useContext(Xf),P=_.collapsed,I=_.rtl,j=_.transitionDuration,M=h0(),$=M.renderExpandIcon,B=M.closeOnClick,W=M.menuItemStyles,ae=M.transitionDuration,ie=se.useState(!!f),pe=ie[0],J=ie[1],oe=se.useState(!1),ce=oe[0],we=oe[1],ke=se.useState(!1),yt=ke[0],$e=ke[1],Se=se.useRef(null),G=se.useRef(null),V=se.useRef(),q=FU({level:O,buttonRef:Se,contentRef:G}).popperInstance,X=se.useCallback(function(){var Z,re=G.current;if(re){var fe=(Z=re==null?void 0:re.querySelector(".".concat(Le.subMenuContent," > ul")))===null||Z===void 0?void 0:Z.clientHeight;re.style.overflow="hidden",re.style.height="".concat(fe,"px"),V.current=setTimeout(function(){re.style.overflow="auto",re.style.height="auto"},ae)}},[ae]),U=function(){var Z,re=G.current;if(re){var fe=(Z=re==null?void 0:re.querySelector(".".concat(Le.subMenuContent," > ul")))===null||Z===void 0?void 0:Z.clientHeight;re.style.overflow="hidden",re.style.height="".concat(fe,"px"),re.offsetHeight,re.style.height="0px"}},he=function(){O===0&&P||(typeof d>"u"?(clearTimeout(Number(V.current)),pe?U():X(),b==null||b(!pe),J(!pe)):b==null||b(!d))};se.useEffect(function(){!(O===0&&P)&&typeof d<"u"&&yt&&(clearTimeout(Number(V.current)),d?X():U())},[P,X,i,O,b,d]);var ue=function(Z){x==null||x(Z),he()},ne=function(Z){k==null||k(Z),Z.key==="Enter"&&he()},le=function(Z){if(W){var re={level:O,disabled:g,active:y,isSubmenu:!0,open:d??pe},fe=W.root,ge=W.button,ye=W.label,be=W.icon,Re=W.prefix,ze=W.suffix,De=W.subMenuContent,Tt=W.SubMenuExpandIcon;switch(Z){case"root":return typeof fe=="function"?fe(re):fe;case"button":return typeof ge=="function"?ge(re):ge;case"label":return typeof ye=="function"?ye(re):ye;case"icon":return typeof be=="function"?be(re):be;case"prefix":return typeof Re=="function"?Re(re):Re;case"suffix":return typeof ze=="function"?ze(re):ze;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(re):Tt;case"subMenuContent":return typeof De=="function"?De(re):De;default:return}}};se.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),P&&O===0&&we(!1)},[P,O,I,j,q]),se.useEffect(function(){var Z=function(ye){var be,Re,ze;!ce&&(!((be=Se.current)===null||be===void 0)&&be.contains(ye))?we(!0):(B&&!(!((Re=ye.closest(".".concat(Le.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Le.subMenuRoot))||!(!((ze=G.current)===null||ze===void 0)&&ze.contains(ye))&&ce)&&we(!1)},re=function(ye){Z(ye.target)},fe=function(ye){ye.key==="Enter"?Z(ye.target):ye.key==="Escape"&&we(!1)},ge=function(){document.removeEventListener("click",re),document.removeEventListener("keyup",fe)};return ge(),P&&O===0&&(document.addEventListener("click",re,!1),document.addEventListener("keyup",fe,!1)),function(){ge()}},[P,O,B,ce]),se.useEffect(function(){$e(!0)},[]);var K=(r={},r[Le.active]=y,r[Le.disabled]=g,r[Le.open]=d??pe,r);return se.createElement(WU,{ref:t,className:Ot(Le.menuItemRoot,Le.subMenuRoot,K,o),menuItemStyles:le("root"),level:O,collapsed:P,rtl:I,disabled:g,active:y,buttonStyles:le("button"),rootStyles:C},se.createElement(RE,zr({"data-testid":"".concat(Le.button,"-test-id"),ref:Se,title:s,className:Ot(Le.button,K),onClick:ue,onKeyUp:ne,component:v,tabIndex:0},E),a&&se.createElement(fE,{rtl:I,className:Ot(Le.icon,K),rootStyles:le("icon")},a),u&&se.createElement(hE,{collapsed:P,transitionDuration:j,firstLevel:O===0,className:Ot(Le.prefix,K),rtl:I,rootStyles:le("prefix")},u),se.createElement(dE,{className:Ot(Le.label,K),rootStyles:le("label")},i),c&&se.createElement(pE,{collapsed:P,transitionDuration:j,firstLevel:O===0,className:Ot(Le.suffix,K),rootStyles:le("suffix")},c),se.createElement(I9,{rtl:I,className:Ot(Le.SubMenuExpandIcon,K),collapsed:P,level:O,rootStyles:le("SubMenuExpandIcon")},$?$({level:O,disabled:g,active:y,open:d??pe}):P&&O===0?se.createElement(z9,null):se.createElement(j9,{rtl:I,open:d??pe}))),se.createElement(O9,{ref:G,openWhenCollapsed:ce,open:d??pe,firstLevel:O===0,collapsed:P,defaultOpen:d&&!yt||f,className:Ot(Le.subMenuContent,K),rootStyles:le("subMenuContent")},se.createElement(Cd.Provider,{value:O+1},n)))},HU=se.forwardRef(UU),dx,qU=At.li(fx||(fx=or([` width: 100%; position: relative; @@ -772,4 +772,4 @@ PERFORMANCE OF THIS SOFTWARE. `,`; } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Le.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return RE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),qU=function(e,t){var r,n=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,u=e.active,c=u===void 0?!1:u,d=e.disabled,f=d===void 0?!1:d,p=e.component,y=e.rootStyles,S=ji(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),g=se.useContext(Cd),C=se.useContext(Xf),v=C.collapsed,b=C.rtl,x=C.transitionDuration,k=h0().menuItemStyles,E=function(_){if(k){var P={level:g,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[Le.active]=c,r[Le.disabled]=f,r);return se.createElement(HU,{ref:t,className:Ot(Le.menuItemRoot,O,i),menuItemStyles:E("root"),level:g,collapsed:v,rtl:b,disabled:f,active:c,buttonStyles:E("button"),rootStyles:y},se.createElement(kE,zr({className:Ot(Le.button,O),"data-testid":"".concat(Le.button,"-test-id"),component:p,tabIndex:0},S),o&&se.createElement(hE,{rtl:b,className:Ot(Le.icon,O),rootStyles:E("icon")},o),a&&se.createElement(pE,{collapsed:v,transitionDuration:x,firstLevel:g===0,className:Ot(Le.prefix,O),rtl:b,rootStyles:E("prefix")},a),se.createElement(fE,{className:Ot(Le.label,O),rootStyles:E("label")},n),s&&se.createElement(mE,{collapsed:v,transitionDuration:x,firstLevel:g===0,className:Ot(Le.suffix,O),rootStyles:E("suffix")},s)))},gr=se.forwardRef(qU),fx,w0={},GU=nt;Object.defineProperty(w0,"__esModule",{value:!0});var PE=w0.default=void 0,VU=GU(ot()),KU=m;PE=w0.default=(0,VU.default)((0,KU.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuOutlined");var _0={},YU=nt;Object.defineProperty(_0,"__esModule",{value:!0});var TE=_0.default=void 0,QU=YU(ot()),XU=m;TE=_0.default=(0,QU.default)((0,XU.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 x0={},JU=nt;Object.defineProperty(x0,"__esModule",{value:!0});var EE=x0.default=void 0,ZU=JU(ot()),e7=m;EE=x0.default=(0,ZU.default)((0,e7.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 C0={},t7=nt;Object.defineProperty(C0,"__esModule",{value:!0});var OE=C0.default=void 0,r7=t7(ot()),n7=m;OE=C0.default=(0,r7.default)((0,n7.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 R0={},o7=nt;Object.defineProperty(R0,"__esModule",{value:!0});var IE=R0.default=void 0,i7=o7(ot()),a7=m;IE=R0.default=(0,i7.default)((0,a7.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var k0={},s7=nt;Object.defineProperty(k0,"__esModule",{value:!0});var jE=k0.default=void 0,l7=s7(ot()),u7=m;jE=k0.default=(0,l7.default)((0,u7.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 P0={},c7=nt;Object.defineProperty(P0,"__esModule",{value:!0});var zE=P0.default=void 0,d7=c7(ot()),f7=m;zE=P0.default=(0,d7.default)((0,f7.jsx)("path",{d:"M21 15v-2h-3.07c-.05-.39-.12-.77-.22-1.14l2.58-1.49-1-1.73L16.92 10c-.28-.48-.62-.91-.99-1.29.04-.23.07-.46.07-.71 0-.8-.24-1.55-.65-2.18L17 4.17l-1.41-1.41-1.72 1.72c-1.68-.89-3.1-.33-3.73 0L8.41 2.76 7 4.17l1.65 1.65C8.24 6.45 8 7.2 8 8c0 .25.03.48.07.72-.37.38-.71.81-.99 1.28L4.71 8.63l-1 1.73 2.58 1.49c-.1.37-.17.75-.22 1.14H3v2h3.07c.05.39.12.77.22 1.14l-2.58 1.49 1 1.73L7.08 18c1.08 1.81 2.88 3 4.92 3s3.84-1.19 4.92-3l2.37 1.37 1-1.73-2.58-1.49c.1-.37.17-.75.22-1.14H21zm-8 2h-2v-6h2z"}),"PestControl");var T0={},h7=nt;Object.defineProperty(T0,"__esModule",{value:!0});var NE=T0.default=void 0,p7=h7(ot()),tm=m;NE=T0.default=(0,p7.default)([(0,tm.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),(0,tm.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),(0,tm.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");var E0={},m7=nt;Object.defineProperty(E0,"__esModule",{value:!0});var AE=E0.default=void 0,v7=m7(ot()),g7=m;AE=E0.default=(0,v7.default)((0,g7.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed");var O0={},y7=nt;Object.defineProperty(O0,"__esModule",{value:!0});var ME=O0.default=void 0,S7=y7(ot()),b7=m;ME=O0.default=(0,S7.default)((0,b7.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 1V4.5l5.5 5.5z"}),"Summarize");var I0={},w7=nt;Object.defineProperty(I0,"__esModule",{value:!0});var LE=I0.default=void 0,_7=w7(ot()),hx=m;LE=I0.default=(0,_7.default)([(0,hx.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,hx.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 j0={},x7=nt;Object.defineProperty(j0,"__esModule",{value:!0});var $E=j0.default=void 0,C7=x7(ot()),R7=m;$E=j0.default=(0,C7.default)((0,R7.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var z0={},k7=nt;Object.defineProperty(z0,"__esModule",{value:!0});var DE=z0.default=void 0,P7=k7(ot()),T7=m;DE=z0.default=(0,P7.default)((0,T7.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 N0={},E7=nt;Object.defineProperty(N0,"__esModule",{value:!0});var Rv=N0.default=void 0,O7=E7(ot()),I7=m;Rv=N0.default=(0,O7.default)((0,I7.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 j7=()=>{const[e,t]=N.useState(!1),r=Ee(z3);return m.jsx(x9,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(k9,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(gr,{icon:m.jsx(PE,{}),onClick:()=>{t(!e)}}),m.jsx(gr,{component:m.jsx(yr,{to:"/"}),icon:m.jsx(TE,{}),children:"Process"}),m.jsxs(UU,{label:"Network",icon:m.jsx(EE,{}),children:[m.jsx(gr,{component:m.jsx(yr,{to:"/sentry-network"}),icon:m.jsx(Rv,{}),children:"eth/6x P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/sentinel-network"}),icon:m.jsx(Rv,{}),children:"Beacon chain P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/downloader"}),icon:m.jsx(DE,{}),children:"Downloader"})]}),m.jsx(gr,{component:m.jsx(yr,{to:"/logs"}),icon:m.jsx(OE,{}),children:"Logs"}),m.jsx(gr,{component:m.jsx(yr,{to:"/chain"}),icon:m.jsx(IE,{}),children:"Chain"}),m.jsx(gr,{component:m.jsx(yr,{to:"/data"}),icon:m.jsx(jE,{}),children:"Data"}),m.jsx(gr,{component:m.jsx(yr,{to:"/debug"}),icon:m.jsx(zE,{}),children:"Debug"}),m.jsx(gr,{component:m.jsx(yr,{to:"/testing"}),icon:m.jsx(NE,{}),children:"Testing"}),m.jsx(gr,{component:m.jsx(yr,{to:"/performance"}),icon:m.jsx(AE,{}),children:"Performance"}),m.jsx(gr,{component:m.jsx(yr,{to:"/documentation"}),icon:m.jsx(ME,{}),children:"Documentation"}),m.jsx(gr,{component:m.jsx(yr,{to:"/issues"}),icon:m.jsx($E,{}),suffix:m.jsx(m.Fragment,{children:r==="0"?null:m.jsx("div",{className:"w-5 flex items-center justify-center rounded-full aspect-square bg-red-500 text-white text-xs font-semibold",children:r})}),children:"Issues"}),m.jsx(gr,{component:m.jsx(yr,{to:"/admin"}),icon:m.jsx(LE,{}),children:"Admin"})]})})};function z7(e){return xn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const N7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],A7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ke(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return qn(s,z7,a)},M7=Pt("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${Ke(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>te({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})),px={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},L7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$7=e=>L7[e]||e,D7=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTypography"}),o=$7(n.color),i=Vk(te({},n,{color:o})),{align:a="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=px}=i,S=lt(i,N7),g=te({},i,{align:a,color:o,className:s,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:y}),C=u||(f?"p":y[p]||px[p])||"span",v=A7(g);return m.jsx(M7,te({as:C,ref:r,ownerState:g,className:wt(v.root,s)},S))}),mx=D7;function F7({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 B7=N.createContext(void 0),W7=B7;function FE(){return N.useContext(W7)}function U7(e){return xn("PrivateSwitchBase",e)}Gn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const H7=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],q7=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${Ke(o)}`],input:["input"]};return qn(i,U7,t)},G7=Pt(bP)(({ownerState:e})=>te({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),V7=Pt("input",{shouldForwardProp:Jk})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),K7=N.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:u,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:y,inputRef:S,name:g,onBlur:C,onChange:v,onFocus:b,readOnly:x,required:k=!1,tabIndex:E,type:O,value:_}=t,P=lt(t,H7),[I,j]=Rk({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=FE(),$=oe=>{b&&b(oe),M&&M.onFocus&&M.onFocus(oe)},B=oe=>{C&&C(oe),M&&M.onBlur&&M.onBlur(oe)},W=oe=>{if(oe.nativeEvent.defaultPrevented)return;const ce=oe.target.checked;j(ce),v&&v(oe,ce)};let ae=u;M&&typeof ae>"u"&&(ae=M.disabled);const ie=O==="checkbox"||O==="radio",pe=te({},t,{checked:I,disabled:ae,disableFocusRipple:c,edge:d}),J=q7(pe);return m.jsxs(G7,te({component:"span",className:wt(J.root,a),centerRipple:!0,focusRipple:!c,disabled:ae,tabIndex:null,role:void 0,onFocus:$,onBlur:B,ownerState:pe,ref:r},P,{children:[m.jsx(V7,te({autoFocus:n,checked:o,defaultChecked:s,className:J.input,disabled:ae,id:ie?p:void 0,name:g,onChange:W,readOnly:x,ref:S,required:k,ownerState:pe,tabIndex:E,type:O},O==="checkbox"&&_===void 0?{}:{value:_},y)),I?i:f]}))}),Y7=K7,Q7=t4({createStyledComponent:Pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Vn({props:e,name:"MuiStack"})}),X7=Q7;function J7(e){return xn("MuiFormControlLabel",e)}const Z7=Gn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hs=Z7,eH=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],tH=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${Ke(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return qn(a,J7,t)},rH=Pt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hs.label}`]:t.label},t.root,t[`labelPlacement${Ke(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>te({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hs.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},{[`& .${Hs.label}`]:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),nH=Pt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),oH=N.forwardRef(function(t,r){var n,o;const i=Vn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:u,disabled:c,disableTypography:d,label:f,labelPlacement:p="end",required:y,slotProps:S={}}=i,g=lt(i,eH),C=FE(),v=(n=c??u.props.disabled)!=null?n:C==null?void 0:C.disabled,b=y??u.props.required,x={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof u.props[I]>"u"&&typeof i[I]<"u"&&(x[I]=i[I])});const k=F7({props:i,muiFormControl:C,states:["error"]}),E=te({},i,{disabled:v,labelPlacement:p,required:b,error:k.error}),O=tH(E),_=(o=S.typography)!=null?o:s.typography;let P=f;return P!=null&&P.type!==mx&&!d&&(P=m.jsx(mx,te({component:"span"},_,{className:wt(O.label,_==null?void 0:_.className),children:P}))),m.jsxs(rH,te({className:wt(O.root,a),ownerState:E,ref:r},g,{children:[N.cloneElement(u,x),b?m.jsxs(X7,{display:"block",children:[P,m.jsxs(nH,{ownerState:E,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):P]}))}),vx=oH;function iH(e){return xn("MuiSwitch",e)}const aH=Gn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lr=aH,sH=["className","color","edge","size","sx"],lH=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${Ke(r)}`,`size${Ke(n)}`],switchBase:["switchBase",`color${Ke(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qn(s,iH,t);return te({},t,u)},uH=Pt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({ownerState:e})=>te({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}})),cH=Pt(Y7,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},r.color!=="default"&&t[`color${Ke(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}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>te({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?sd(e.palette[t.color].main,.62):ad(e.palette[t.color].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),dH=Pt("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}`})),fH=Pt("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%"})),hH=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:u}=n,c=lt(n,sH),d=te({},n,{color:i,edge:a,size:s}),f=lH(d),p=m.jsx(fH,{className:f.thumb,ownerState:d});return m.jsxs(uH,{className:wt(f.root,o),sx:u,ownerState:d,children:[m.jsx(cH,te({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:d},c,{classes:te({},f,{root:f.switchBase})})),m.jsx(dH,{className:f.track,ownerState:d})]})}),gx=hH,pH=({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),[u,c]=N.useState(!1),[d,f]=N.useState({column:"Name",descending:!0}),p=_=>_.peers.length||0,y=_=>{let P=0;return _.peers.forEach(I=>{P+=I.downloadRate}),P},S=_=>_.webseeds.length||0,g=_=>{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(y(M.status),y($.status),P.descending):P.column==="WebseedsCount"?x(S(M.status),S($.status),P.descending):P.column==="WebseedsRate"?x(g(M.status),g($.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(Ql,{className:"ml-2"}):d.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),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(vx,{control:m.jsx(gx,{checked:a,onChange:E}),label:"Hide downloaded files"}),m.jsx(vx,{control:m.jsx(gx,{checked:u,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.jsx(m.Fragment,{children:_.visible&&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:Vf(_.status.downloadedBytes,_.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt(_.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:p(_.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(y(_.status))}),m.jsx("td",{className:"px-4 py-2",children:S(_.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(g(_.status))}),m.jsx("td",{className:"px-4 py-2",children:_.active.toString()})]})}))})]})]})},yx=({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((y,S)=>d.column==="Url"?a(y.url,S.url,d.descending):s(y.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,u=c=>n.column!==c?m.jsx(Ql,{className:"ml-2"}):n.descending?m.jsx(Kl,{}):m.jsx(Yl,{});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",u("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",u("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:zt(c.downloadRate)})]}))})]})},mH=({segment:e})=>{const t=a=>{let s=0;return a.forEach(u=>{s+=u.downloadRate}),$r(s)},r=a=>a.peers.length||0,n=a=>{let s=0;return a.peers.forEach(u=>{s+=u.downloadRate}),s},o=a=>a.webseeds.length||0,i=a=>{let s=0;return a.webseeds.forEach(u=>{s+=u.downloadRate}),s};return m.jsx("div",{className:"w-full h-full",children:e?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:e.name}),m.jsx("td",{className:"px-4 py-2",children:Vf(e.downloadedBytes,e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:r(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(n(e))}),m.jsx("td",{className:"px-4 py-2",children:o(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(i(e))})]})})]}),m.jsxs("div",{className:"flex flex-row justify-around mt-20",children:[e.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:e.peers.length+" peers"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.peers)}),m.jsx(yx,{peers:e.peers})]})}),e.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:e.webseeds.length+" webseeds"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.webseeds)}),m.jsx(yx,{peers:e.webseeds})]})})]})]}):m.jsx("div",{})})};var A0={},vH=nt;Object.defineProperty(A0,"__esModule",{value:!0});var BE=A0.default=void 0,gH=vH(ot()),yH=m;BE=A0.default=(0,gH.default)((0,yH.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const SH=({onClose:e})=>{const t=Ee(Tf),[r,n]=N.useState(0),[o,i]=N.useState(0),[a,s]=N.useState(null),[u,c]=N.useState(t.segments),d=S=>{S.key==="Escape"&&(a?s(null):e())};N.useEffect(()=>(window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}),[a]),N.useEffect(()=>{let S=0,g=0;t.segments.forEach(C=>{S+=p(C),g+=f(C)}),n(S),i(g)},[t]),N.useEffect(()=>{c(a?[a]:t.segments)},[a]);const f=S=>{let g=0;return S.peers.forEach(C=>{g+=C.downloadRate}),g},p=S=>{let g=0;return S.webseeds.forEach(C=>{g+=C.downloadRate}),g},y=()=>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(BE,{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(Of,{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:[y(),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(pH,{segments:t.segments,segmentSelected:a!=null,onSegmentClicked:S=>s(S)}),a&&m.jsx("div",{className:"absolute z-10 w-[95%] h-[80%] bg-white",children:m.jsx(mH,{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:$r(r)})]}),m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"peers :"}),m.jsx("p",{children:$r(o)})]})]})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},bH=()=>{const e=Ee(Tf),[t,r]=N.useState(!1),n=()=>!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",o=()=>{let i=0;return e.totalTime.forEach(a=>{i+=a}),Il(i)};return m.jsxs("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:"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:(e==null?void 0:e.downloaded)&&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:n()}),m.jsx("td",{className:"px-4 py-2",children:Vf(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:i8(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:o()}),m.jsx("td",{className:"px-4 py-2",children:E_(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:E_(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:zt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.sys)})]})})]}),t&&m.jsx(SH,{onClose:()=>{r(!1)}})]})},wH=({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===On.Active||o===On.Static||o===On.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(On.Active),onClick:()=>r(On.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(On.Static),onClick:()=>r(On.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(On.Total),onClick:()=>r(On.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:$r(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:zt(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:$r(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:zt(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:zt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},rm=({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 y=f.sort((S,g)=>p.column==="Id"?s(S.id,g.id,p.descending):p.column==="Type"?s(S.type,g.type,p.descending):p.column==="Status"?s(S.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(S.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(S.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(S.network.inRate,g.network.inRate,p.descending):u(S.network.outRate,g.network.outRate,p.descending));i(p),n(y)},s=(f,p,y)=>y?p.localeCompare(f):f.localeCompare(p),u=(f,p,y)=>(console.log("! currentSortState "+o.column+" "+o.descending),y?p-f:f-p),c=f=>o.column!==f?m.jsx(Ql,{className:"ml-2"}):o.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),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:zt(f.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:zt(f.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.outRate)})]},p))})]})})},_H=({peerId:e,onClose:t,...r})=>{const o=p3()(je.getState(),e),i=(f,p)=>{let y=Object.keys(f),S=Object.keys(p);const g=new Set([...y,...S]),C=Array.from(g);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 u(f)},s=()=>{let f=i(o.network.typeBytesIn,o.network.typeBytesOut);return u(f)},u=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:zt(p.bytesIn)}),m.jsx("td",{children:zt(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",zt(o.network.bytesIn)),d("Out",zt(o.network.bytesOut)),d("In speed",$r(o.network.inRate)),d("Out speed",$r(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(Un,{backgroundColor:as,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var On=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(On||{});const Sx=({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=Ee(kf),r=Ee(S3),n=Ee(m3),o=Ee(g3)):(t=Ee(Pf),r=Ee(b3),n=Ee(v3),o=Ee(y3));const[i,a]=N.useState(null),[s,u]=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(wH,{statistics:r,selectedStatistics:s,onRowClicked:d=>{u(d)}})]}),s==="active"&&m.jsx(rm,{peers:n,onPeerClicked:d=>{a(d)}}),s==="static"&&m.jsx(rm,{peers:o,onPeerClicked:d=>{a(d)}}),s==="total"&&m.jsx(rm,{peers:t,onPeerClicked:d=>{a(d)}}),s==="errors"&&c(),i&&m.jsx(_H,{peerId:i,onClose:()=>{a(null)}})]})},xH=()=>{const e=Ee(Tf),t=Ee(sP),r=Ee(lP),n=r.stages.flatMap(p=>p.subStage?[p,{...p,name:p.name,subStage:!1}]:[p]),[o,i]=N.useState(0);N.useEffect(()=>{e.torrentMetadataReadys(p)+"/"+r.stages.length,s=p=>{for(let y=0;yp.name==="Snapshots"?p.subStage?e.downloadFinished?"Finished":e.torrentMetadataReadyp.name==="Snapshots"?p.subStage?"Snapshots (Downloading)":"Snapshots (Indexing)":p.name,d=p=>p.name==="Snapshots"?p.subStage?Vf(e.downloaded,e.total):KT(t.progress):"0%",f=p=>{if(p.name==="Snapshots")if(p.subStage){let y=0;return e.totalTime.forEach(S=>{y+=S}),Il(y)}else{let y=0;return t.totalTime.forEach(S=>{y+=S}),Il(y)}else return"0s"};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:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"State"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"})]})}),m.jsx("tbody",{children:n.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:a(p)}),m.jsx("td",{className:"px-4 py-2",children:c(p)}),m.jsx("td",{className:"px-4 py-2",children:u(p)}),m.jsx("td",{className:"px-4 py-2",children:d(p)}),m.jsx("td",{className:"px-4 py-2",children:f(p)})]}))})]})})},CH=()=>{const e=Ee(Tf),t=Ee(sP),r=Ee(lP),n=()=>{let i=o();if((i==null?void 0:i.name)===void 0)return"0s";let a=0;return e.totalTime.forEach(s=>{a+=s}),t.totalTime.forEach(s=>{a+=s}),Il(a)},o=()=>{let i=0;return r.currentStage>0&&r.currentStage{const e=Ee(dP),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(wP,{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"})})},Ta=()=>je.getState().app.activeNodeId,kH=()=>{let e=Ta();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},PH=()=>{let e=Ta();for(let t of je.getState().syncStages.snapshotFilesList)if(t.nodeId===e)return t.files;return[]},TH=()=>{let e=Ta();for(let t of je.getState().issues.issues)if(t.nodeId===e)return t.issues;return[]},EH=()=>{const e=kH(),t=PH();if(e&&e.segments.length!=t.length)if(e.segments.length{je.dispatch(I3({nodeId:Ta(),issueId:i.id}))}),r.forEach(i=>{let a=IH(o,i);if(a!==void 0){let s=Date.now()-a.timestamp,u=new Date(s).toISOString().substr(11,8),c="No peers for segment: "+i+" for "+u;je.dispatch(F1({issue:{type:uv.SnapshotSegmentMissingPeers,message:c,id:i,timestamp:a.timestamp},nodeId:Ta()}))}else je.dispatch(F1({issue:{type:uv.SnapshotSegmentMissingPeers,message:"No peers for segment: "+i,id:i,timestamp:Date.now()-2e4},nodeId:Ta()}))})}else console.log("Error, more segments than files")},OH=(e,t)=>{let r=[];return e.forEach(n=>{let o=!1;for(let i of t.segments)if(i.name===n){o=!0;break}o||r.push(n)}),r},IH=(e,t)=>e.find(n=>n.id===t);function jH(){return m.jsx("div",{children:m.jsx(Mj,{children:m.jsxs(Xt,{path:"/",element:m.jsx(zH,{}),children:[m.jsx(Xt,{index:!0,element:m.jsx(eD,{})}),m.jsx(Xt,{path:"sentry-network",element:m.jsx(Sx,{type:"sentry"})}),m.jsx(Xt,{path:"sentinel-network",element:m.jsx(Sx,{type:"sentinel"})}),m.jsx(Xt,{path:"downloader",element:m.jsx(bH,{})}),m.jsx(Xt,{path:"logs",element:m.jsx(s8,{})}),m.jsx(Xt,{path:"chain",element:m.jsx(NH,{})}),m.jsx(Xt,{path:"data",element:m.jsx(l8,{})}),m.jsx(Xt,{path:"debug",element:m.jsx(AH,{})}),m.jsx(Xt,{path:"testing",element:m.jsx(MH,{})}),m.jsx(Xt,{path:"performance",element:m.jsx(CH,{})}),m.jsx(Xt,{path:"documentation",element:m.jsx(LH,{})}),m.jsx(Xt,{path:"issues",element:m.jsx(RH,{})}),m.jsx(Xt,{path:"admin",element:m.jsx(d8,{})}),m.jsx(Xt,{path:"*",element:m.jsx($H,{})})]})})})}function zH(){const e=Hl(),t=Ee(kt),r=Ee(yk),n=Ee(Dg),o=Ee(uP),[i,a]=N.useState(!1),[s,u]=N.useState(!1);return N.useEffect(()=>{},[]),N.useEffect(()=>{n!==""&&_D()},[n]),N.useEffect(()=>{t!==""&&n!==""&&(RD(),CD(),xD(),xP(),kD(),PD(),ED(),tw(),setInterval(()=>{tw()},5*na.second),OD(),rw(),setInterval(()=>{rw()},20*na.second),setInterval(()=>{EH()},20*na.second),setInterval(()=>{e(f3({activeNodeId:t,countInterval:15}))},15*na.second))},[t]),N.useEffect(()=>{if(t!==""&&n!==""){const c=setInterval(()=>{o.length===0?ID():clearInterval(c)},5*na.second)}},[o,n,t]),N.useEffect(()=>{t!==""&&r.length>0&&r.forEach(c=>{c.tables.length===0&&TD(c.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(j7,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(Nj,{})}),m.jsx(y8,{onSessionClicked:()=>{a(!0)},onNodeClicked:()=>{u(!0)}}),m.jsx(S8,{open:i,onClose:()=>{a(!1)}}),m.jsx(w8,{open:s,onClose:()=>{u(!1)}})]})}function NH(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function AH(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function MH(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function LH(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function $H(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(yr,{to:"/",children:"Go to the home page"})})]})}function xc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xc=function(r){return typeof r}:xc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xc(e)}function DH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bx(e,t){for(var r=0;r{const[e,t]=N.useState(!1),r=Ee(N3);return m.jsx(C9,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(P9,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(gr,{icon:m.jsx(kE,{}),onClick:()=>{t(!e)}}),m.jsx(gr,{component:m.jsx(yr,{to:"/"}),icon:m.jsx(PE,{}),children:"Process"}),m.jsxs(HU,{label:"Network",icon:m.jsx(TE,{}),children:[m.jsx(gr,{component:m.jsx(yr,{to:"/sentry-network"}),icon:m.jsx(Rv,{}),children:"eth/6x P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/sentinel-network"}),icon:m.jsx(Rv,{}),children:"Beacon chain P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/downloader"}),icon:m.jsx($E,{}),children:"Downloader"})]}),m.jsx(gr,{component:m.jsx(yr,{to:"/logs"}),icon:m.jsx(EE,{}),children:"Logs"}),m.jsx(gr,{component:m.jsx(yr,{to:"/chain"}),icon:m.jsx(OE,{}),children:"Chain"}),m.jsx(gr,{component:m.jsx(yr,{to:"/data"}),icon:m.jsx(IE,{}),children:"Data"}),m.jsx(gr,{component:m.jsx(yr,{to:"/debug"}),icon:m.jsx(jE,{}),children:"Debug"}),m.jsx(gr,{component:m.jsx(yr,{to:"/testing"}),icon:m.jsx(zE,{}),children:"Testing"}),m.jsx(gr,{component:m.jsx(yr,{to:"/performance"}),icon:m.jsx(NE,{}),children:"Performance"}),m.jsx(gr,{component:m.jsx(yr,{to:"/documentation"}),icon:m.jsx(AE,{}),children:"Documentation"}),m.jsx(gr,{component:m.jsx(yr,{to:"/issues"}),icon:m.jsx(LE,{}),suffix:m.jsx(m.Fragment,{children:r==="0"?null:m.jsx("div",{className:"w-5 flex items-center justify-center rounded-full aspect-square bg-red-500 text-white text-xs font-semibold",children:r})}),children:"Issues"}),m.jsx(gr,{component:m.jsx(yr,{to:"/admin"}),icon:m.jsx(ME,{}),children:"Admin"})]})})};function N7(e){return xn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const A7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],M7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ke(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return qn(s,N7,a)},L7=Pt("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${Ke(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>te({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})),px={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},D7=e=>$7[e]||e,F7=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTypography"}),o=D7(n.color),i=Vk(te({},n,{color:o})),{align:a="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=px}=i,S=lt(i,A7),g=te({},i,{align:a,color:o,className:s,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:y}),C=u||(f?"p":y[p]||px[p])||"span",v=M7(g);return m.jsx(L7,te({as:C,ref:r,ownerState:g,className:wt(v.root,s)},S))}),mx=F7;function B7({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 W7=N.createContext(void 0),U7=W7;function DE(){return N.useContext(U7)}function H7(e){return xn("PrivateSwitchBase",e)}Gn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const q7=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],G7=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${Ke(o)}`],input:["input"]};return qn(i,H7,t)},V7=Pt(SP)(({ownerState:e})=>te({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),K7=Pt("input",{shouldForwardProp:Jk})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Y7=N.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:u,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:y,inputRef:S,name:g,onBlur:C,onChange:v,onFocus:b,readOnly:x,required:k=!1,tabIndex:E,type:O,value:_}=t,P=lt(t,q7),[I,j]=Rk({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=DE(),$=oe=>{b&&b(oe),M&&M.onFocus&&M.onFocus(oe)},B=oe=>{C&&C(oe),M&&M.onBlur&&M.onBlur(oe)},W=oe=>{if(oe.nativeEvent.defaultPrevented)return;const ce=oe.target.checked;j(ce),v&&v(oe,ce)};let ae=u;M&&typeof ae>"u"&&(ae=M.disabled);const ie=O==="checkbox"||O==="radio",pe=te({},t,{checked:I,disabled:ae,disableFocusRipple:c,edge:d}),J=G7(pe);return m.jsxs(V7,te({component:"span",className:wt(J.root,a),centerRipple:!0,focusRipple:!c,disabled:ae,tabIndex:null,role:void 0,onFocus:$,onBlur:B,ownerState:pe,ref:r},P,{children:[m.jsx(K7,te({autoFocus:n,checked:o,defaultChecked:s,className:J.input,disabled:ae,id:ie?p:void 0,name:g,onChange:W,readOnly:x,ref:S,required:k,ownerState:pe,tabIndex:E,type:O},O==="checkbox"&&_===void 0?{}:{value:_},y)),I?i:f]}))}),Q7=Y7,X7=e4({createStyledComponent:Pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Vn({props:e,name:"MuiStack"})}),J7=X7;function Z7(e){return xn("MuiFormControlLabel",e)}const eH=Gn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hs=eH,tH=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],rH=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${Ke(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return qn(a,Z7,t)},nH=Pt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hs.label}`]:t.label},t.root,t[`labelPlacement${Ke(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>te({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hs.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},{[`& .${Hs.label}`]:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),oH=Pt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),iH=N.forwardRef(function(t,r){var n,o;const i=Vn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:u,disabled:c,disableTypography:d,label:f,labelPlacement:p="end",required:y,slotProps:S={}}=i,g=lt(i,tH),C=DE(),v=(n=c??u.props.disabled)!=null?n:C==null?void 0:C.disabled,b=y??u.props.required,x={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof u.props[I]>"u"&&typeof i[I]<"u"&&(x[I]=i[I])});const k=B7({props:i,muiFormControl:C,states:["error"]}),E=te({},i,{disabled:v,labelPlacement:p,required:b,error:k.error}),O=rH(E),_=(o=S.typography)!=null?o:s.typography;let P=f;return P!=null&&P.type!==mx&&!d&&(P=m.jsx(mx,te({component:"span"},_,{className:wt(O.label,_==null?void 0:_.className),children:P}))),m.jsxs(nH,te({className:wt(O.root,a),ownerState:E,ref:r},g,{children:[N.cloneElement(u,x),b?m.jsxs(J7,{display:"block",children:[P,m.jsxs(oH,{ownerState:E,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):P]}))}),vx=iH;function aH(e){return xn("MuiSwitch",e)}const sH=Gn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lr=sH,lH=["className","color","edge","size","sx"],uH=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${Ke(r)}`,`size${Ke(n)}`],switchBase:["switchBase",`color${Ke(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qn(s,aH,t);return te({},t,u)},cH=Pt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({ownerState:e})=>te({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}})),dH=Pt(Q7,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},r.color!=="default"&&t[`color${Ke(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}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>te({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?sd(e.palette[t.color].main,.62):ad(e.palette[t.color].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),fH=Pt("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}`})),hH=Pt("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%"})),pH=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:u}=n,c=lt(n,lH),d=te({},n,{color:i,edge:a,size:s}),f=uH(d),p=m.jsx(hH,{className:f.thumb,ownerState:d});return m.jsxs(cH,{className:wt(f.root,o),sx:u,ownerState:d,children:[m.jsx(dH,te({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:d},c,{classes:te({},f,{root:f.switchBase})})),m.jsx(fH,{className:f.track,ownerState:d})]})}),gx=pH,mH=({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),[u,c]=N.useState(!1),[d,f]=N.useState({column:"Name",descending:!0}),p=_=>_.peers.length||0,y=_=>{let P=0;return _.peers.forEach(I=>{P+=I.downloadRate}),P},S=_=>_.webseeds.length||0,g=_=>{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(y(M.status),y($.status),P.descending):P.column==="WebseedsCount"?x(S(M.status),S($.status),P.descending):P.column==="WebseedsRate"?x(g(M.status),g($.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(Ql,{className:"ml-2"}):d.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),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(vx,{control:m.jsx(gx,{checked:a,onChange:E}),label:"Hide downloaded files"}),m.jsx(vx,{control:m.jsx(gx,{checked:u,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.jsx(m.Fragment,{children:_.visible&&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:Vf(_.status.downloadedBytes,_.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt(_.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:p(_.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(y(_.status))}),m.jsx("td",{className:"px-4 py-2",children:S(_.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(g(_.status))}),m.jsx("td",{className:"px-4 py-2",children:_.active.toString()})]})}))})]})]})},yx=({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((y,S)=>d.column==="Url"?a(y.url,S.url,d.descending):s(y.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,u=c=>n.column!==c?m.jsx(Ql,{className:"ml-2"}):n.descending?m.jsx(Kl,{}):m.jsx(Yl,{});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",u("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",u("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:zt(c.downloadRate)})]}))})]})},vH=({segment:e})=>{const t=a=>{let s=0;return a.forEach(u=>{s+=u.downloadRate}),$r(s)},r=a=>a.peers.length||0,n=a=>{let s=0;return a.peers.forEach(u=>{s+=u.downloadRate}),s},o=a=>a.webseeds.length||0,i=a=>{let s=0;return a.webseeds.forEach(u=>{s+=u.downloadRate}),s};return m.jsx("div",{className:"w-full h-full",children:e?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:e.name}),m.jsx("td",{className:"px-4 py-2",children:Vf(e.downloadedBytes,e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:r(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(n(e))}),m.jsx("td",{className:"px-4 py-2",children:o(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(i(e))})]})})]}),m.jsxs("div",{className:"flex flex-row justify-around mt-20",children:[e.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:e.peers.length+" peers"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.peers)}),m.jsx(yx,{peers:e.peers})]})}),e.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:e.webseeds.length+" webseeds"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.webseeds)}),m.jsx(yx,{peers:e.webseeds})]})})]})]}):m.jsx("div",{})})};var A0={},gH=nt;Object.defineProperty(A0,"__esModule",{value:!0});var FE=A0.default=void 0,yH=gH(ot()),SH=m;FE=A0.default=(0,yH.default)((0,SH.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const bH=({onClose:e})=>{const t=Ee(Tf),[r,n]=N.useState(0),[o,i]=N.useState(0),[a,s]=N.useState(null),[u,c]=N.useState(t.segments),d=S=>{S.key==="Escape"&&(a?s(null):e())};N.useEffect(()=>(window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}),[a]),N.useEffect(()=>{let S=0,g=0;t.segments.forEach(C=>{S+=p(C),g+=f(C)}),n(S),i(g)},[t]),N.useEffect(()=>{c(a?[a]:t.segments)},[a]);const f=S=>{let g=0;return S.peers.forEach(C=>{g+=C.downloadRate}),g},p=S=>{let g=0;return S.webseeds.forEach(C=>{g+=C.downloadRate}),g},y=()=>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(FE,{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(Of,{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:[y(),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(mH,{segments:t.segments,segmentSelected:a!=null,onSegmentClicked:S=>s(S)}),a&&m.jsx("div",{className:"absolute z-10 w-[95%] h-[80%] bg-white",children:m.jsx(vH,{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:$r(r)})]}),m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"peers :"}),m.jsx("p",{children:$r(o)})]})]})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},wH=()=>{const e=Ee(Tf),[t,r]=N.useState(!1),n=()=>!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",o=()=>{let i=0;return e.totalTime.forEach(a=>{i+=a}),Il(i)};return m.jsxs("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:"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:(e==null?void 0:e.downloaded)&&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:n()}),m.jsx("td",{className:"px-4 py-2",children:Vf(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:a8(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:o()}),m.jsx("td",{className:"px-4 py-2",children:E_(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:E_(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:zt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.sys)})]})})]}),t&&m.jsx(bH,{onClose:()=>{r(!1)}})]})},_H=({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===On.Active||o===On.Static||o===On.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(On.Active),onClick:()=>r(On.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(On.Static),onClick:()=>r(On.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(On.Total),onClick:()=>r(On.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:$r(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:zt(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:$r(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:zt(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:zt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},rm=({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 y=f.sort((S,g)=>p.column==="Id"?s(S.id,g.id,p.descending):p.column==="Type"?s(S.type,g.type,p.descending):p.column==="Status"?s(S.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(S.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(S.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(S.network.inRate,g.network.inRate,p.descending):u(S.network.outRate,g.network.outRate,p.descending));i(p),n(y)},s=(f,p,y)=>y?p.localeCompare(f):f.localeCompare(p),u=(f,p,y)=>(console.log("! currentSortState "+o.column+" "+o.descending),y?p-f:f-p),c=f=>o.column!==f?m.jsx(Ql,{className:"ml-2"}):o.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),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:zt(f.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:zt(f.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.outRate)})]},p))})]})})},xH=({peerId:e,onClose:t,...r})=>{const o=h3()(je.getState(),e),i=(f,p)=>{let y=Object.keys(f),S=Object.keys(p);const g=new Set([...y,...S]),C=Array.from(g);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 u(f)},s=()=>{let f=i(o.network.typeBytesIn,o.network.typeBytesOut);return u(f)},u=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:zt(p.bytesIn)}),m.jsx("td",{children:zt(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",zt(o.network.bytesIn)),d("Out",zt(o.network.bytesOut)),d("In speed",$r(o.network.inRate)),d("Out speed",$r(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(Un,{backgroundColor:as,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var On=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(On||{});const Sx=({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=Ee(kf),r=Ee(y3),n=Ee(p3),o=Ee(v3)):(t=Ee(Pf),r=Ee(S3),n=Ee(m3),o=Ee(g3));const[i,a]=N.useState(null),[s,u]=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(_H,{statistics:r,selectedStatistics:s,onRowClicked:d=>{u(d)}})]}),s==="active"&&m.jsx(rm,{peers:n,onPeerClicked:d=>{a(d)}}),s==="static"&&m.jsx(rm,{peers:o,onPeerClicked:d=>{a(d)}}),s==="total"&&m.jsx(rm,{peers:t,onPeerClicked:d=>{a(d)}}),s==="errors"&&c(),i&&m.jsx(xH,{peerId:i,onClose:()=>{a(null)}})]})},CH=()=>{const e=Ee(Tf),t=Ee(sP),r=Ee(lP),n=r.stages.flatMap(p=>p.subStage?[p,{...p,name:p.name,subStage:!1}]:[p]),[o,i]=N.useState(0);N.useEffect(()=>{e.torrentMetadataReadys(p)+"/"+r.stages.length,s=p=>{for(let y=0;yp.name==="Snapshots"?p.subStage?e.downloadFinished?"Finished":e.torrentMetadataReadyp.name==="Snapshots"?p.subStage?"Snapshots (Downloading)":"Snapshots (Indexing)":p.name,d=p=>p.name==="Snapshots"?p.subStage?Vf(e.downloaded,e.total):VT(t.progress):"0%",f=p=>{if(p.name==="Snapshots")if(p.subStage){let y=0;return e.totalTime.forEach(S=>{y+=S}),Il(y)}else{let y=0;return t.totalTime.forEach(S=>{y+=S}),Il(y)}else return"0s"};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:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"State"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"})]})}),m.jsx("tbody",{children:n.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:a(p)}),m.jsx("td",{className:"px-4 py-2",children:c(p)}),m.jsx("td",{className:"px-4 py-2",children:u(p)}),m.jsx("td",{className:"px-4 py-2",children:d(p)}),m.jsx("td",{className:"px-4 py-2",children:f(p)})]}))})]})})},RH=()=>{const e=Ee(Tf),t=Ee(sP),r=Ee(lP),n=()=>{let i=o();if((i==null?void 0:i.name)===void 0)return"0s";let a=0;return e.totalTime.forEach(s=>{a+=s}),t.totalTime.forEach(s=>{a+=s}),Il(a)},o=()=>{let i=0;return r.currentStage>0&&r.currentStage{const e=Ee(cP),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(bP,{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"})})},Ta=()=>je.getState().app.activeNodeId,PH=()=>{let e=Ta();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},TH=()=>{let e=Ta();for(let t of je.getState().syncStages.snapshotFilesList)if(t.nodeId===e)return t.files;return[]},EH=()=>{let e=Ta();for(let t of je.getState().issues.issues)if(t.nodeId===e)return t.issues;return[]},OH=()=>{const e=PH(),t=TH();if(e&&e.segments.length!=t.length)if(e.segments.length{je.dispatch(j3({nodeId:Ta(),issueId:i.id}))}),r.forEach(i=>{let a=jH(o,i);if(a!==void 0){let s=Date.now()-a.timestamp,u=new Date(s).toISOString().substr(11,8),c="No peers for segment: "+i+" for "+u;je.dispatch(F1({issue:{type:uv.SnapshotSegmentMissingPeers,message:c,id:i,timestamp:a.timestamp},nodeId:Ta()}))}else je.dispatch(F1({issue:{type:uv.SnapshotSegmentMissingPeers,message:"No peers for segment: "+i,id:i,timestamp:Date.now()-2e4},nodeId:Ta()}))})}else console.log("Error, more segments than files")},IH=(e,t)=>{let r=[];return e.forEach(n=>{let o=!1;for(let i of t.segments)if(i.name===n){o=!0;break}o||r.push(n)}),r},jH=(e,t)=>e.find(n=>n.id===t);function zH(){return m.jsx("div",{children:m.jsx(Aj,{children:m.jsxs(Xt,{path:"/",element:m.jsx(NH,{}),children:[m.jsx(Xt,{index:!0,element:m.jsx(tD,{})}),m.jsx(Xt,{path:"sentry-network",element:m.jsx(Sx,{type:"sentry"})}),m.jsx(Xt,{path:"sentinel-network",element:m.jsx(Sx,{type:"sentinel"})}),m.jsx(Xt,{path:"downloader",element:m.jsx(wH,{})}),m.jsx(Xt,{path:"logs",element:m.jsx(l8,{})}),m.jsx(Xt,{path:"chain",element:m.jsx(AH,{})}),m.jsx(Xt,{path:"data",element:m.jsx(u8,{})}),m.jsx(Xt,{path:"debug",element:m.jsx(MH,{})}),m.jsx(Xt,{path:"testing",element:m.jsx(LH,{})}),m.jsx(Xt,{path:"performance",element:m.jsx(RH,{})}),m.jsx(Xt,{path:"documentation",element:m.jsx($H,{})}),m.jsx(Xt,{path:"issues",element:m.jsx(kH,{})}),m.jsx(Xt,{path:"admin",element:m.jsx(f8,{})}),m.jsx(Xt,{path:"*",element:m.jsx(DH,{})})]})})})}function NH(){const e=Hl(),t=Ee(kt),r=Ee(yk),n=Ee(Dg),o=Ee(O3),[i,a]=N.useState(!1),[s,u]=N.useState(!1);N.useEffect(()=>{},[]),N.useEffect(()=>{n!==""&&xD()},[n]),N.useEffect(()=>{t!==""&&n!==""&&(kD(),RD(),CD(),_P(),PD(),TD(),OD(),tw(),setInterval(()=>{tw()},5*na.second),ID(),rw(),setInterval(()=>{rw()},20*na.second),setInterval(()=>{OH()},20*na.second),setInterval(()=>{e(d3({activeNodeId:t,countInterval:15}))},15*na.second))},[t]);let c=null;return N.useEffect(()=>(o?c=setInterval(()=>{jD()},5*na.second):clearInterval(c),()=>clearInterval(c)),[o]),N.useEffect(()=>{t!==""&&r.length>0&&r.forEach(d=>{d.tables.length===0&&ED(d.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(z7,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(zj,{})}),m.jsx(S8,{onSessionClicked:()=>{a(!0)},onNodeClicked:()=>{u(!0)}}),m.jsx(b8,{open:i,onClose:()=>{a(!1)}}),m.jsx(_8,{open:s,onClose:()=>{u(!1)}})]})}function AH(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function MH(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function LH(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function $H(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function DH(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(yr,{to:"/",children:"Go to the home page"})})]})}function xc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xc=function(r){return typeof r}:xc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xc(e)}function FH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bx(e,t){for(var r=0;r