From cccfb7cd2c7efef29126e5586ad288c1b7f4765e Mon Sep 17 00:00:00 2001 From: Dmytro Vovk Date: Sat, 21 Sep 2024 12:38:02 +0100 Subject: [PATCH] dd --- build/assets/{index-4e0b5e98.js => index-a49ffd6a.js} | 2 +- build/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename build/assets/{index-4e0b5e98.js => index-a49ffd6a.js} (96%) diff --git a/build/assets/index-4e0b5e98.js b/build/assets/index-a49ffd6a.js similarity index 96% rename from build/assets/index-4e0b5e98.js rename to build/assets/index-a49ffd6a.js index 53d91de..2a8bfb0 100644 --- a/build/assets/index-4e0b5e98.js +++ b/build/assets/index-a49ffd6a.js @@ -101,7 +101,7 @@ Error generating stack: `+i.message+` * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function Bk(e,t){return Pg(e,t)}const Wk=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},OD=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:kD,StyledEngineProvider:TD,ThemeContext:Ch,css:Rh,default:Bk,internal_processStyles:Wk,keyframes:Os},Symbol.toStringTag,{value:"Module"}));function jD(e){return Object.keys(e).length===0}function ID(e=null){const t=N.useContext(Ch);return!t||jD(t)?e:t}const ND=Eu();function zD(e=ND){return ID(e)}function Uk({props:e,name:t,defaultTheme:r,themeId:n}){let o=zD(r);return n&&(o=o[n]||o),F$({theme:o,name:t,props:e})}const AD=["sx"],MD=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tu;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function k0(e){const{sx:t}=e,r=Qe(e,AD),{systemProps:n,otherProps:o}=MD(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return bo(s)?X({},n,s):n}:i=X({},n,t),X({},o,{sx:i})}const $D=Object.freeze(Object.defineProperty({__proto__:null,default:bh,extendSxProp:k0,unstable_createStyleFunctionSx:xk,unstable_defaultSxConfig:Tu},Symbol.toStringTag,{value:"Module"}));function LD(e,t){return X({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var kt={};const DD=xr(u$),FD=xr(D$);var Hk=Ue;Object.defineProperty(kt,"__esModule",{value:!0});var ro=kt.alpha=Yk;kt.blend=QD;kt.colorChannel=void 0;var tf=kt.darken=j0;kt.decomposeColor=yn;kt.emphasize=Kk;var BD=kt.getContrastRatio=VD;kt.getLuminance=nf;kt.hexToRgb=qk;kt.hslToRgb=Gk;var rf=kt.lighten=I0;kt.private_safeAlpha=GD;kt.private_safeColorChannel=void 0;kt.private_safeDarken=YD;kt.private_safeEmphasize=XD;kt.private_safeLighten=KD;kt.recomposeColor=js;kt.rgbToHex=qD;var I_=Hk(DD),WD=Hk(FD);function O0(e,t=0,r=1){return(0,WD.default)(e,t,r)}function qk(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 UD(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function yn(e){if(e.type)return e;if(e.charAt(0)==="#")return yn(qk(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,I_.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,I_.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Vk=e=>{const t=yn(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};kt.colorChannel=Vk;const HD=(e,t)=>{try{return Vk(e)}catch{return e}};kt.private_safeColorChannel=HD;function js(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 qD(e){if(e.indexOf("#")===0)return e;const{values:t}=yn(e);return`#${t.map((r,n)=>UD(n===3?Math.round(255*r):r)).join("")}`}function Gk(e){e=yn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,d=(c+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),js({type:s,values:l})}function nf(e){e=yn(e);let t=e.type==="hsl"||e.type==="hsla"?yn(Gk(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 VD(e,t){const r=nf(e),n=nf(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Yk(e,t){return e=yn(e),t=O0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,js(e)}function GD(e,t,r){try{return Yk(e,t)}catch{return e}}function j0(e,t){if(e=yn(e),t=O0(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 js(e)}function YD(e,t,r){try{return j0(e,t)}catch{return e}}function I0(e,t){if(e=yn(e),t=O0(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 js(e)}function KD(e,t,r){try{return I0(e,t)}catch{return e}}function Kk(e,t=.15){return nf(e)>.5?j0(e,t):I0(e,t)}function XD(e,t,r){try{return Kk(e,t)}catch{return e}}function QD(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=yn(e),a=yn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return js({type:"rgb",values:s})}const JD={black:"#000",white:"#fff"},cu=JD,ZD={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"},e5=ZD,t5={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"},wa=t5,r5={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"},_a=r5,n5={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"},sl=n5,o5={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"},xa=o5,i5={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"},Ca=i5,a5={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"},Ra=a5,s5=["mode","contrastThreshold","tonalOffset"],N_={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:cu.white,default:cu.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}},xm={text:{primary:cu.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:cu.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 z_(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=rf(e.main,o):t==="dark"&&(e.dark=tf(e.main,i)))}function l5(e="light"){return e==="dark"?{main:xa[200],light:xa[50],dark:xa[400]}:{main:xa[700],light:xa[400],dark:xa[800]}}function u5(e="light"){return e==="dark"?{main:wa[200],light:wa[50],dark:wa[400]}:{main:wa[500],light:wa[300],dark:wa[700]}}function c5(e="light"){return e==="dark"?{main:_a[500],light:_a[300],dark:_a[700]}:{main:_a[700],light:_a[400],dark:_a[800]}}function d5(e="light"){return e==="dark"?{main:Ca[400],light:Ca[300],dark:Ca[700]}:{main:Ca[700],light:Ca[500],dark:Ca[900]}}function f5(e="light"){return e==="dark"?{main:Ra[400],light:Ra[300],dark:Ra[700]}:{main:Ra[800],light:Ra[500],dark:Ra[900]}}function h5(e="light"){return e==="dark"?{main:sl[400],light:sl[300],dark:sl[700]}:{main:"#ed6c02",light:sl[500],dark:sl[900]}}function p5(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Qe(e,s5),i=e.primary||l5(t),a=e.secondary||u5(t),s=e.error||c5(t),l=e.info||d5(t),c=e.success||f5(t),d=e.warning||h5(t);function f(y){return BD(y,xm.text.primary)>=r?xm.text.primary:N_.text.primary}const p=({color:y,name:x,mainShade:S=500,lightShade:b=300,darkShade:w=700})=>{if(y=X({},y),!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(au(11,x?` (${x})`:"",S));if(typeof y.main!="string")throw new Error(au(12,x?` (${x})`:"",JSON.stringify(y.main)));return z_(y,"light",b,n),z_(y,"dark",w,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:xm,light:N_};return pn(X({common:X({},cu),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:e5,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),o)}const m5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function v5(e){return Math.round(e*1e5)/1e5}const A_={textTransform:"uppercase"},M_='"Roboto", "Helvetica", "Arial", sans-serif';function g5(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=M_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=Qe(r,m5),v=o/14,g=f||(S=>`${S/c*v}rem`),y=(S,b,w,R,E)=>X({fontFamily:n,fontWeight:S,fontSize:g(b),lineHeight:w},n===M_?{letterSpacing:`${v5(R/b)}em`}:{},E,d),x={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,A_),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,A_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pn(X({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const y5=.2,S5=.14,b5=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${y5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${S5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${b5})`].join(",")}const w5=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],_5=w5,x5=["duration","easing","delay"],C5={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)"},R5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $_(e){return`${Math.round(e)}ms`}function P5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function T5(e){const t=X({},C5,e.easing),r=X({},R5,e.duration);return X({getAutoHeightDuration:P5,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=i;return Qe(i,x5),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:$_(a)} ${s} ${typeof l=="string"?l:$_(l)}`).join(",")}},e,{easing:t,duration:r})}const E5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},k5=E5,O5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function j5(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Qe(e,O5);if(e.vars)throw new Error(au(18));const s=p5(n),l=Eu(e);let c=pn(l,{mixins:LD(l.breakpoints,r),palette:s,shadows:_5.slice(),typography:g5(s,i),transitions:T5(o),zIndex:X({},k5)});return c=pn(c,a),c=t.reduce((d,f)=>pn(d,f),c),c.unstable_sxConfig=X({},Tu,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return bh({sx:f,theme:this})},c}const I5=j5(),Xk=I5,Qk="$$material";function Fn({props:e,name:t}){return Uk({props:e,name:t,defaultTheme:Xk,themeId:Qk})}var Ou={};const N5=xr(S4);var Cm={exports:{}},L_;function z5(){return L_||(L_=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(n.indexOf(i)>=0)continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Cm)),Cm.exports}const A5=xr(OD),M5=xr(a$),$5=xr(h$),L5=xr(f$),D5=xr(zL),F5=xr($D);var Is=Ue;Object.defineProperty(Ou,"__esModule",{value:!0});var B5=Ou.default=eF;Ou.shouldForwardProp=ed;Ou.systemDefaultTheme=void 0;var an=Is(N5),Eg=Is(z5()),D_=Y5(A5),W5=M5;Is($5);Is(L5);var U5=Is(D5),H5=Is(F5);const q5=["ownerState"],V5=["variants"],G5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Jk=function(n){return n?r:t})(e)}function Y5(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Jk(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function K5(e){return Object.keys(e).length===0}function X5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ed(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Q5=Ou.systemDefaultTheme=(0,U5.default)(),J5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bc({defaultTheme:e,theme:t,themeId:r}){return K5(t)?e:t[r]||t}function Z5(e){return e?(t,r)=>r[e]:null}function td(e,t){let{ownerState:r}=t,n=(0,Eg.default)(t,q5);const o=typeof e=="function"?e((0,an.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>td(i,(0,an.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,Eg.default)(o,V5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,an.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,an.default)({ownerState:r},n,r)):l.style))}),s}return o}function eF(e={}){const{themeId:t,defaultTheme:r=Q5,rootShouldForwardProp:n=ed,slotShouldForwardProp:o=ed}=e,i=a=>(0,H5.default)((0,an.default)({},a,{theme:bc((0,an.default)({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,D_.internal_processStyles)(a,E=>E.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Z5(J5(c))}=s,v=(0,Eg.default)(s,G5),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,y=f||!1;let x,S=ed;c==="Root"||c==="root"?S=n:c?S=o:X5(a)&&(S=void 0);const b=(0,D_.default)(a,(0,an.default)({shouldForwardProp:S,label:x},v)),w=E=>typeof E=="function"&&E.__emotion_real!==E||(0,W5.isPlainObject)(E)?k=>td(E,(0,an.default)({},k,{theme:bc({theme:k.theme,defaultTheme:r,themeId:t})})):E,R=(E,...k)=>{let _=w(E);const T=k?k.map(w):[];l&&p&&T.push(A=>{const $=bc((0,an.default)({},A,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[l]||!$.components[l].styleOverrides)return null;const F=$.components[l].styleOverrides,B={};return Object.entries(F).forEach(([ae,oe])=>{B[ae]=td(oe,(0,an.default)({},A,{theme:$}))}),p(A,B)}),l&&!g&&T.push(A=>{var $;const F=bc((0,an.default)({},A,{defaultTheme:r,themeId:t})),B=F==null||($=F.components)==null||($=$[l])==null?void 0:$.variants;return td({variants:B},(0,an.default)({},A,{theme:F}))}),y||T.push(i);const j=T.length-k.length;if(Array.isArray(E)&&j>0){const A=new Array(j).fill("");_=[...E,...A],_.raw=[...E.raw,...A]}const I=b(_,...T);return a.muiName&&(I.muiName=a.muiName),I};return b.withConfig&&(R.withConfig=b.withConfig),R}}function tF(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rF=e=>tF(e)&&e!=="classes",N0=rF,nF=B5({themeId:Qk,defaultTheme:Xk,rootShouldForwardProp:N0}),nt=nF;function oF(e){return rn("MuiSvgIcon",e)}xn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aF=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(r)}`]};return _n(o,oF,n)},sF=nt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Re(r.color)}`],t[`fontSize${Re(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,d,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Zk=N.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Qe(n,iF),g=N.isValidElement(o)&&o.type==="svg",y=X({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g}),x={};d||(x.viewBox=p);const S=aF(y);return h.jsxs(sF,X({as:s,className:st(S.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},x,v,g&&o.props,{ownerState:y,children:[g?o.props.children:o,f?h.jsx("title",{children:f}):null]}))});Zk.muiName="SvgIcon";const F_=Zk;function la(e,t){function r(n,o){return h.jsx(F_,X({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=F_.muiName,N.memo(N.forwardRef(r))}const lF={configure:e=>{gk.configure(e)}},uF=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Re,createChainedFunction:p$,createSvgIcon:la,debounce:m$,deprecatedPropType:v$,isMuiElement:g$,ownerDocument:fk,ownerWindow:y$,requirePropFactory:S$,setRef:hk,unstable_ClassNameGenerator:lF,unstable_useEnhancedEffect:pk,unstable_useId:_$,unsupportedProp:x$,useControlled:mk,useEventCallback:yl,useForkRef:Jd,useIsFocusVisible:vk},Symbol.toStringTag,{value:"Module"})),cF=xr(uF);var B_;function Xe(){return B_||(B_=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=cF}(vm)),vm}var dF=Ue;Object.defineProperty(y0,"__esModule",{value:!0});var Ns=y0.default=void 0,fF=dF(Xe()),hF=h;Ns=y0.default=(0,fF.default)((0,hF.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var z0={},pF=Ue;Object.defineProperty(z0,"__esModule",{value:!0});var zs=z0.default=void 0,mF=pF(Xe()),vF=h;zs=z0.default=(0,mF.default)((0,vF.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var A0={},gF=Ue;Object.defineProperty(A0,"__esModule",{value:!0});var As=A0.default=void 0,yF=gF(Xe()),SF=h;As=A0.default=(0,yF.default)((0,SF.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const bF=({flags:e})=>{const[t,r]=te.useState(!1),[n,o]=te.useState([]),[i,a]=te.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(v=>v.value!==void 0&&v.value!==""&&v.value!==null).sort((v,g)=>v.flag.localeCompare(v.flag)),l=(f,p)=>{if(p==="default"){let v=[];return i?v=f.sort((g,y)=>g.default>y.default?1:-1):v=f.sort((g,y)=>g.defaultv.flag.localeCompare(g.flag)):f},c=()=>{const f=l(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?h.jsx(Ns,{}):h.jsx(zs,{}):h.jsx(As,{className:"ml-2"});return h.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b",children:[h.jsx("th",{className:"px-4 py-2",children:"Flag"}),h.jsx("th",{className:"px-4 py-2",children:"Value"}),h.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:c,children:h.jsxs("div",{className:"flex flex-row",children:["Default",d()]})})]})}),h.jsx("tbody",{children:n.map(f=>h.jsx(i$,{flag:f},f.flag))})]})},wF=({flags:e})=>{const[t,r]=N.useState([]);return N.useEffect(()=>{e!==void 0&&r(e)},[e]),h.jsxs("div",{className:"flex flex-col",children:[h.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])}}),h.jsx(bF,{flags:t})]})},_F=({nodeInfo:e,onRowClicked:t})=>{const n=(i,a)=>h.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",onClick:()=>{t(i,String(a))},children:[h.jsxs("td",{className:"px-4 py-2 font-bold",children:[i,":"]}),h.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 h.jsxs("tr",{className:"border-b border-gray-200",children:[a.length>0?h.jsx("td",{className:"px-4 py-2 font-bold",children:a+":"}):null,s.map(l=>typeof i[l]=="object"?o(i[l],l):n(l,i[l]))]})};return h.jsx("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:h.jsx("tbody",{children:o(e,"")})})},xF=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:h.jsx("div",{className:"flex flex-col",children:h.jsx(_F,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),CF=({syncStages:e})=>e===void 0?null:h.jsx("div",{className:"flex flex-col",children:h.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:h.jsx("tbody",{children:e.map(t=>h.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:[h.jsx("td",{className:"px-4 py-2",children:t.key}),h.jsx("td",{className:"px-4 py-2",children:t.value})]},t.key))})})}),RF=({reorg:e})=>e===void 0?null:h.jsxs("div",{className:"flex flex-col",children:[h.jsx("span",{className:"font-bold",children:"Blocks scanned:"}),h.jsx("span",{children:e.totalBlocks}),h.jsx("span",{className:"font-bold",children:"Time took:"}),h.jsx("span",{children:e.timeTook}),h.jsx("span",{className:"font-bold",children:"Wrong blocks:"}),e.wrongBlocks.length===0?h.jsx("span",{children:"None"}):h.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:h.jsx("tbody",{children:e.wrongBlocks.map(t=>h.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:h.jsx("td",{className:"px-4 py-2",children:t})},t))})})]}),Ms="#1ea7fd",ju="red";const uo=({primary:e=!1,size:t="medium",backgroundColor:r,disabled:n=!1,label:o,...i})=>{const a=e?"storybook-button--primary":"storybook-button--secondary",s=n?"gray":r;return h.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,a].join(" "),style:{backgroundColor:s},disabled:n,...i,children:o})};var Wi=(e=>(e.Unknown="Unknown",e.Local="Local",e.Remote="Remote",e))(Wi||{});const W_={isConnectedToInternet:!0,isConnectedToNode:!0,nodeConnectionType:"Unknown",backendAddress:"http://localhost:8080"},eO=sa({name:"app",initialState:W_,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},setNodeConnectionType:(e,t)=>{e.nodeConnectionType=t.payload},setBackendAddress:(e,t)=>{e.backendAddress=t.payload,console.log("Backend address set to: "+t.payload)},resetConectionState:()=>W_}}),{setIsConnectedToInternet:zee,setIsConnectedToNode:U_,setNodeConnectionType:Rm,setBackendAddress:PF,resetConectionState:TF}=eO.actions,tO=e=>e.connection.nodeConnectionType,EF=eO.reducer,Oa={second:1e3,minute:6e4,hour:36e5},H_={peers:[],bootnodes:[]},rO=sa({name:"network",initialState:H_,reducers:{updatePeersState:(e,t)=>{const r=e.peers.findIndex(n=>n.nodeId===t.payload.activeNodeId);r!==-1&&e.peers[r].peers.forEach(n=>{if(n.lastUpdateTime0&&(a=o/t.payload.countInterval);let s=0;i>0&&(s=i/t.payload.countInterval);let l=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=l,n.network.sCountedBytesOut=c}})},addOrUpdatePeer:(e,t)=>{const r=t.payload.nodeId;let n=t.payload.peer;n.lastUpdateTime=Date.now();let o=e.peers.findIndex(i=>i.nodeId===r);if(o!==-1){let i=e.peers[o].peers.findIndex(a=>a.id===n.id);i!==-1?(n.network.inRate=e.peers[o].peers[i].network.inRate,n.network.outRate=e.peers[o].peers[i].network.outRate,n.network.sCountedBytesIn=e.peers[o].peers[i].network.sCountedBytesIn,n.network.sCountedBytesOut=e.peers[o].peers[i].network.sCountedBytesOut,n.network.bytesIn+=e.peers[o].peers[i].network.bytesIn,n.network.bytesOut+=e.peers[o].peers[i].network.bytesOut,wc(e.peers[o].peers[i].network,n.network,"capBytesIn"),wc(e.peers[o].peers[i].network,n.network,"capBytesOut"),wc(e.peers[o].peers[i].network,n.network,"typeBytesIn"),wc(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:()=>H_}}),wc=(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:kF,addOrUpdatePeer:OF,addOrUpdateBootnodes:jF,updatePeersState:IF}=rO.actions,NF=e=>e.network.peers,M0=je([NF,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),zF=()=>je([M0,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),Ph=je([M0,tt],(e,t)=>nO(t,"Sentry",e)),Th=je([M0,tt],(e,t)=>nO(t,"Sentinel",e)),nO=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type.toLowerCase()===t.toLowerCase()&&n.push(o)}),n},AF=je([Ph],e=>oO(e)),MF=je([Th],e=>oO(e)),oO=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},$F=je([Ph],e=>iO(e)),LF=je([Th],e=>iO(e)),iO=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},DF=je([Ph],e=>aO(e)),FF=je([Th],e=>aO(e)),aO=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},BF=rO.reducer;var rd=(e=>(e[e.Queued=0]="Queued",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e))(rd||{});const q_={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},sO=sa({name:"syncStages",initialState:q_,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:()=>q_}}),{setSnapshotFilesList:WF,resetSyncStagesState:Aee,setSnapshotDownloadStatus:UF,setSnapshotIndexStatus:HF,setNodeSyncStages:qF,setTestSnpSyncMsgIdx:Mee}=sO.actions,VF=e=>e.syncStages.snapshotDownloadStatus,lO=je([VF,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),GF=e=>e.syncStages.snapshotIndexStatus;je([GF,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r});const YF=e=>e.syncStages.syncStages,KF=je([YF,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),XF=e=>e.syncStages.snapshotFilesList,QF=je([XF,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r}),JF=je([QF],e=>(e==null?void 0:e.length)===0),ZF=sO.reducer,V_={issues:[]},eB=sa({name:"issue",initialState:V_,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:()=>V_}}),tB=e=>e.issues.issues,$0=je([tB,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),rB=je([$0],e=>e.length>10?"9+":e.length.toString()),nB=je([$0],e=>{let t=[];return e.forEach(r=>{r.type==="NetworkSpeedIssue"&&t.push(r)}),t}),oB=eB.reducer;var L0="persist:",D0="persist/FLUSH",Eh="persist/REHYDRATE",F0="persist/PAUSE",B0="persist/PERSIST",W0="persist/PURGE",U0="persist/REGISTER",iB=-1;function nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nd=function(r){return typeof r}:nd=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nd(e)}function G_(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 aB(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gB(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 yB=5e3;function SB(e,t){var r=e.version!==void 0?e.version:iB;e.debug;var n=e.stateReconciler===void 0?lB:e.stateReconciler,o=e.getStoredState||dB,i=e.timeout!==void 0?e.timeout:yB,a=null,s=!1,l=!0,c=function(f){return f._persist.rehydrated&&a&&!l&&a.update(f),f};return function(d,f){var p=d||{},v=p._persist,g=vB(p,["_persist"]),y=g;if(f.type===B0){var x=!1,S=function(T,j){x||(f.rehydrate(e.key,T,j),x=!0)};if(i&&setTimeout(function(){!x&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),l=!1,a||(a=uB(e)),v)return mo({},t(y,f),{_persist:v});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 T=e.migrate||function(j,I){return Promise.resolve(j)};T(_,r).then(function(j){S(j)},function(j){S(void 0,j)})},function(_){S(void 0,_)}),mo({},t(y,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===W0)return s=!0,f.result(hB(e)),mo({},t(y,f),{_persist:v});if(f.type===D0)return f.result(a&&a.flush()),mo({},t(y,f),{_persist:v});if(f.type===F0)l=!0;else if(f.type===Eh){if(s)return mo({},y,{_persist:mo({},v,{rehydrated:!0})});if(f.key===e.key){var b=t(y,f),w=f.payload,R=n!==!1&&w!==void 0?n(w,d,b,e):b,E=mo({},R,{_persist:mo({},v,{rehydrated:!0})});return c(E)}}}if(!v)return t(d,f);var k=t(y,f);return k===y?d:c(mo({},k,{_persist:v}))}}function K_(e){return _B(e)||wB(e)||bB()}function bB(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function wB(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function _B(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:uO,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case U0:return kg({},t,{registry:[].concat(K_(t.registry),[r.key])});case Eh:var n=t.registry.indexOf(r.key),o=K_(t.registry);return o.splice(n,1),kg({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function RB(e,t,r){var n=r||!1,o=f0(CB,uO,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:U0,key:c})},a=function(c,d,f){var p={type:Eh,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=kg({},o,{purge:function(){var c=[];return e.dispatch({type:W0,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:D0,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:F0})},persist:function(){e.dispatch({type:B0,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var H0={},q0={};q0.__esModule=!0;q0.default=EB;function od(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?od=function(r){return typeof r}:od=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},od(e)}function Pm(){}var PB={getItem:Pm,setItem:Pm,removeItem:Pm};function TB(e){if((typeof self>"u"?"undefined":od(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 EB(e){var t="".concat(e,"Storage");return TB(t)?self[t]:PB}H0.__esModule=!0;H0.default=jB;var kB=OB(q0);function OB(e){return e&&e.__esModule?e:{default:e}}function jB(e){var t=(0,kB.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 cO=void 0,IB=NB(H0);function NB(e){return e&&e.__esModule?e:{default:e}}var zB=(0,IB.default)("local");cO=zB;const Q_={nodeHeaders:[]},dO=sa({name:"headers",initialState:Q_,reducers:{addOrUpdateHeaders:(e,t)=>{let r=e.nodeHeaders.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeHeaders[r].headers=t.payload.headers:e.nodeHeaders.push({nodeId:t.payload.nodeId,headers:t.payload.headers})},resetHeadersState:()=>Q_}}),{addOrUpdateHeaders:AB,resetHeadersState:$ee}=dO.actions,MB=e=>e.headers.nodeHeaders;je([MB,tt],(e,t)=>e.find(r=>r.nodeId===t));const $B=dO.reducer,J_={networkSpeed:[],ramInfo:[],cpuInfo:[],diskInfo:[],processesInfo:[]},fO=sa({name:"systemInfo",initialState:J_,reducers:{addOrUpdateNetworkSpeed:(e,t)=>{let r=e.networkSpeed.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.networkSpeed[r].networkSpeed=t.payload.networkSpeed:e.networkSpeed.push({nodeId:t.payload.nodeId,networkSpeed:t.payload.networkSpeed})},addOrUpdateRAMInfo:(e,t)=>{let r=e.ramInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.ramInfo[r]=t.payload:e.ramInfo.push({nodeId:t.payload.nodeId,info:t.payload.info})},addOrUpdateCPUInfo:(e,t)=>{let r=e.cpuInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cpuInfo[r].info=t.payload.info:e.cpuInfo.push({nodeId:t.payload.nodeId,info:t.payload.info,usage:{total:0,cores:[]}})},addOrUpdateCPUUsage:(e,t)=>{let r=e.cpuInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cpuInfo[r].usage=t.payload.usage:e.cpuInfo.push({nodeId:t.payload.nodeId,info:[],usage:t.payload.usage})},addOrUpdateDiskInfo:(e,t)=>{let r=e.diskInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.diskInfo[r].info=t.payload.info:e.diskInfo.push({nodeId:t.payload.nodeId,info:t.payload.info})},addOrUpdateProcessesInfo:(e,t)=>{let r=e.processesInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.processesInfo[r].processes=t.payload.info:e.processesInfo.push({nodeId:t.payload.nodeId,processes:t.payload.info})},addOrUpdateRAMUsage:(e,t)=>{let r=e.ramInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.ramInfo[r].info.usedPercent=t.payload.usage:e.ramInfo.push({nodeId:t.payload.nodeId,info:{total:0,available:0,used:0,usedPercent:t.payload.usage}})},resetSystemInfoState:()=>J_}}),{addOrUpdateNetworkSpeed:Lee,addOrUpdateCPUInfo:LB,addOrUpdateDiskInfo:DB,addOrUpdateProcessesInfo:FB,addOrUpdateRAMInfo:BB,addOrUpdateCPUUsage:WB,addOrUpdateRAMUsage:Dee,resetSystemInfoState:Fee}=fO.actions,UB=e=>e.sysInfo.networkSpeed;je([UB,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.networkSpeed)}),r});const HB=e=>e.sysInfo.ramInfo,qB=je([HB,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.info)}),r}),hO=e=>e.sysInfo.cpuInfo,pO=je([hO,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.info)}),r}),VB=je([hO,tt],(e,t)=>{let r={total:0,cores:[]};return e.forEach(n=>{n.nodeId===t&&(r=n.usage)}),r}),GB=e=>e.sysInfo.diskInfo,YB=je([GB,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.info)}),r}),KB=e=>e.sysInfo.processesInfo,XB=je([KB,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.processes)}),r}),QB=fO.reducer,JB={key:"root",blacklist:["connection"],storage:cO},ZB=QE({app:n$,network:BF,connection:EF,syncStages:ZF,issues:oB,headers:$B,sysInfo:QB}),eW=SB(JB,ZB),Ee=S3({reducer:eW,middleware:e=>e({serializableCheck:{ignoredActions:[D0,Eh,F0,B0,W0,U0]}})}),tW=RB(Ee),id=()=>Ee.getState().connection.nodeConnectionType===Wi.Local,rW="sessions",nW="nodes",oW="version",iW="flags",aW="cmdline",sW="logs",lW="sync-stages",mO="dbs",uW="tables",cW="reorgs",dW="peers",fW="bootnodes",hW="snapshot-sync",pW="snapshot-files-list",mW="headers",vW="nodeinfo",gW="hardware-info",yW="cpu-usage",SW="processes-info",bW="pprof/goroutine",wW="pprof/threadcreate",_W="pprof/heap",xW="pprof/allocs",CW="pprof/block",RW="pprof/mutex",PW=()=>Ee.getState().app.activeSessionPin,V0=(e=!1)=>{const t=PW();let n=`${Ee.getState().connection.backendAddress}/api`;return e&&(n+="/v2"),`${n}/${rW}/${t}`},St=(e=!1)=>{if(id())return`${Ee.getState().connection.backendAddress}/debug/diag`;{const t=V0(e),r=Ee.getState().app.activeNodeId;return`${t}/${nW}/${r}`}},TW=()=>`${St(!0)}/${oW}`,vO=()=>`${St(!0)}/${iW}`,gO=()=>`${St(!0)}/${aW}`,yO=(e=!1)=>`${St(e)}/${sW}`,SO=()=>`${St()}/${lW}`,EW=()=>`${St(!0)}/${mO}`,kW=e=>`${St()}/${mO}/${e}/${uW}`,bO=()=>`${St()}/${cW}`,OW=()=>`${St(!0)}/${dW}`,jW=()=>`${St(!0)}/${fW}`,IW=()=>`${St(!0)}/${hW}`,NW=()=>`${St(!0)}/${pW}`,zW=()=>`${St(!0)}/${mW}`,AW=()=>`${St(!0)}/${vW}`,MW=()=>`${window.location.origin}/diagaddr`,$W=()=>`${St(!0)}/${gW}`,LW=()=>`${St(!0)}/${yW}`,DW=()=>`${St(!0)}/${SW}`,FW=()=>`${St(!0)}/${bW}`,BW=()=>`${St(!0)}/${wW}`,Z_=()=>`${St(!0)}/${_W}`,WW=()=>`${St(!0)}/${xW}`,UW=()=>`${St(!0)}/${CW}`,HW=()=>`${St(!0)}/${RW}`,qW=()=>{{const e=Ut(MW(),"GET");return Wt(e)}},VW=()=>{{const e=Ut(V0(),"GET");return Wt(e)}},GW=()=>{{const e=Ut(AW(),"GET");return Wt(e)}},YW=()=>{{const e=Ut(TW(),"GET");return Wt(e)}},KW=()=>{{const e=Ut(vO(),"GET");return Wt(e)}},XW=()=>{{const e=Ut(gO(),"GET");return Wt(e)}},QW=()=>{{const e=Ut(yO(!0),"GET");return Wt(e)}},JW=()=>{{const e=Ut(SO(),"GET");return Wt(e)}},ZW=()=>{{const e=Ut(EW(),"GET");return Wt(e)}},e6=e=>{{const t=Ut(kW(e),"GET");return Wt(t)}},t6=()=>{{const e=Ut(bO(),"GET");return Wt(e)}},r6=()=>{{const e=Ut(OW(),"GET");return Wt(e)}},n6=()=>{{const e=Ut(jW(),"GET");return Wt(e)}},o6=()=>{{const e=Ut(IW(),"GET");return Wt(e)}},i6=()=>{{const e=Ut(NW(),"GET");return Wt(e)}},a6=()=>{{const e=Ut(zW(),"GET");return Wt(e)}},s6=()=>{{const e=Ut($W(),"GET");return Wt(e)}},l6=()=>{{const e=Ut(LW(),"GET");return Wt(e)}},u6=()=>{{const e=Ut(DW(),"GET");return Wt(e)}},Wt=e=>fetch(e).then(t=>(Ee.dispatch(U_(!0)),t.json())).catch(t=>{throw Ee.dispatch(U_(!1)),t});function Ut(e,t,r){return new Request(e,{method:t,headers:{"Content-Type":"application/json"}})}var G0={},c6=Ue;Object.defineProperty(G0,"__esModule",{value:!0});var of=G0.default=void 0,d6=c6(Xe()),f6=h;of=G0.default=(0,d6.default)((0,f6.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 Y0={},h6=Ue;Object.defineProperty(Y0,"__esModule",{value:!0});var kh=Y0.default=void 0,p6=h6(Xe()),m6=h;kh=Y0.default=(0,p6.default)((0,m6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function wO(e){return Fn}function v6(e){return typeof e=="string"}function g6(e,t,r){return e===void 0||v6(e)?t:X({},t,{ownerState:X({},t.ownerState,r)})}function y6(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function S6(e,t,r){return typeof e=="function"?e(t,r):e}function ex(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function b6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=st(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),g=X({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=X({},r,o,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=y6(X({},o,n)),s=ex(n),l=ex(o),c=t(a),d=st(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),f=X({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=X({},c,r,l,s);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const w6=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_6=["component","slots","slotProps"],x6=["component"];function tx(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=Qe(t,w6),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=i,p=Qe(i,_6),v=d[e]||n,g=S6(f[e],o),y=b6(X({className:r},l,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:x},internalRef:S}=y,b=Qe(y.props,x6),w=Jd(S,g==null?void 0:g.ref,t.ref),R=a?a(b):{},E=X({},o,R),k=e==="root"?x||c:x,_=g6(v,X({},e==="root"&&!c&&!d[e]&&s,e!=="root"&&!d[e]&&s,b,k&&{as:k},{ref:w}),E);return Object.keys(R).forEach(T=>{delete _[T]}),[v,_]}const C6=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},rx=C6,R6=["ownerState"],P6=["variants"],T6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function E6(e){return Object.keys(e).length===0}function k6(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const O6=Eu(),j6=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _c({defaultTheme:e,theme:t,themeId:r}){return E6(t)?e:t[r]||t}function I6(e){return e?(t,r)=>r[e]:null}function ad(e,t){let{ownerState:r}=t,n=Qe(t,R6);const o=typeof e=="function"?e(X({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>ad(i,X({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=Qe(o,P6);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(X({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(X({ownerState:r},n,r)):l.style))}),s}return o}function N6(e={}){const{themeId:t,defaultTheme:r=O6,rootShouldForwardProp:n=Tm,slotShouldForwardProp:o=Tm}=e,i=a=>bh(X({},a,{theme:_c(X({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Wk(a,E=>E.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=I6(j6(c))}=s,v=Qe(s,T6),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,y=f||!1;let x,S=Tm;c==="Root"||c==="root"?S=n:c?S=o:k6(a)&&(S=void 0);const b=Bk(a,X({shouldForwardProp:S,label:x},v)),w=E=>typeof E=="function"&&E.__emotion_real!==E||bo(E)?k=>ad(E,X({},k,{theme:_c({theme:k.theme,defaultTheme:r,themeId:t})})):E,R=(E,...k)=>{let _=w(E);const T=k?k.map(w):[];l&&p&&T.push(A=>{const $=_c(X({},A,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[l]||!$.components[l].styleOverrides)return null;const F=$.components[l].styleOverrides,B={};return Object.entries(F).forEach(([ae,oe])=>{B[ae]=ad(oe,X({},A,{theme:$}))}),p(A,B)}),l&&!g&&T.push(A=>{var $;const F=_c(X({},A,{defaultTheme:r,themeId:t})),B=F==null||($=F.components)==null||($=$[l])==null?void 0:$.variants;return ad({variants:B},X({},A,{theme:F}))}),y||T.push(i);const j=T.length-k.length;if(Array.isArray(E)&&j>0){const A=new Array(j).fill("");_=[...E,...A],_.raw=[...E.raw,...A]}const I=b(_,...T);return a.muiName&&(I.muiName=a.muiName),I};return b.withConfig&&(R.withConfig=b.withConfig),R}}const z6=N6(),A6=z6,M6=["component","direction","spacing","divider","children","className","useFlexGap"],$6=Eu(),L6=A6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function D6(e){return Uk({props:e,name:"MuiStack",defaultTheme:$6})}function F6(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],W6=({ownerState:e,theme:t})=>{let r=X({display:"flex",flexDirection:"column"},Dn({theme:t},wm({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=x0(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=wm({values:e.direction,base:o}),a=wm({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,d)=>{if(!i[l]){const p=c>0?i[d[c-1]]:"column";i[l]=p}}),r=pn(r,Dn({theme:t},a,(l,c)=>e.useFlexGap?{gap:Zi(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${B6(c?i[c]:e.direction)}`]:Zi(n,l)}}))}return r=q$(t.breakpoints,r),r};function U6(e={}){const{createStyledComponent:t=L6,useThemeProps:r=D6,componentName:n="MuiStack"}=e,o=()=>_n({root:["root"]},l=>rn(n,l),{}),i=t(W6);return N.forwardRef(function(l,c){const d=r(l),f=k0(d),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:x,className:S,useFlexGap:b=!1}=f,w=Qe(f,M6),R={direction:v,spacing:g,useFlexGap:b},E=o();return h.jsx(i,X({as:p,ownerState:R,ref:c,className:st(E.root,S)},w,{children:y?F6(x,y):x}))})}function H6(e){return rn("MuiPaper",e)}xn("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 q6=["className","component","elevation","square","variant"],V6=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return _n(i,H6,o)},G6=nt("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 X({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"&&X({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ro("#fff",rx(t.elevation))}, ${ro("#fff",rx(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Y6=N.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,c=Qe(n,q6),d=X({},n,{component:i,elevation:a,square:s,variant:l}),f=V6(d);return h.jsx(G6,X({as:i,ownerState:d,className:st(f.root,o),ref:r},c))}),K6=Y6;function X6(e){return rn("MuiAlert",e)}const Q6=xn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),nx=Q6;function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},af(e,t)}function J6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,af(e,t)}const ox=te.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 K0(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 Z6(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),h.jsx("span",{className:p,style:v,children:h.jsx("span",{className:g})})}const a8=xn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sn=a8,s8=["center","classes","className"];let Oh=e=>e,ix,ax,sx,lx;const Og=550,l8=80,u8=Os(ix||(ix=Oh` + */function Bk(e,t){return Pg(e,t)}const Wk=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},OD=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:kD,StyledEngineProvider:TD,ThemeContext:Ch,css:Rh,default:Bk,internal_processStyles:Wk,keyframes:Os},Symbol.toStringTag,{value:"Module"}));function jD(e){return Object.keys(e).length===0}function ID(e=null){const t=N.useContext(Ch);return!t||jD(t)?e:t}const ND=Eu();function zD(e=ND){return ID(e)}function Uk({props:e,name:t,defaultTheme:r,themeId:n}){let o=zD(r);return n&&(o=o[n]||o),F$({theme:o,name:t,props:e})}const AD=["sx"],MD=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tu;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function k0(e){const{sx:t}=e,r=Qe(e,AD),{systemProps:n,otherProps:o}=MD(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return bo(s)?X({},n,s):n}:i=X({},n,t),X({},o,{sx:i})}const $D=Object.freeze(Object.defineProperty({__proto__:null,default:bh,extendSxProp:k0,unstable_createStyleFunctionSx:xk,unstable_defaultSxConfig:Tu},Symbol.toStringTag,{value:"Module"}));function LD(e,t){return X({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var kt={};const DD=xr(u$),FD=xr(D$);var Hk=Ue;Object.defineProperty(kt,"__esModule",{value:!0});var ro=kt.alpha=Yk;kt.blend=QD;kt.colorChannel=void 0;var tf=kt.darken=j0;kt.decomposeColor=yn;kt.emphasize=Kk;var BD=kt.getContrastRatio=VD;kt.getLuminance=nf;kt.hexToRgb=qk;kt.hslToRgb=Gk;var rf=kt.lighten=I0;kt.private_safeAlpha=GD;kt.private_safeColorChannel=void 0;kt.private_safeDarken=YD;kt.private_safeEmphasize=XD;kt.private_safeLighten=KD;kt.recomposeColor=js;kt.rgbToHex=qD;var I_=Hk(DD),WD=Hk(FD);function O0(e,t=0,r=1){return(0,WD.default)(e,t,r)}function qk(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 UD(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function yn(e){if(e.type)return e;if(e.charAt(0)==="#")return yn(qk(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,I_.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,I_.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Vk=e=>{const t=yn(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};kt.colorChannel=Vk;const HD=(e,t)=>{try{return Vk(e)}catch{return e}};kt.private_safeColorChannel=HD;function js(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 qD(e){if(e.indexOf("#")===0)return e;const{values:t}=yn(e);return`#${t.map((r,n)=>UD(n===3?Math.round(255*r):r)).join("")}`}function Gk(e){e=yn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,d=(c+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),js({type:s,values:l})}function nf(e){e=yn(e);let t=e.type==="hsl"||e.type==="hsla"?yn(Gk(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 VD(e,t){const r=nf(e),n=nf(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Yk(e,t){return e=yn(e),t=O0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,js(e)}function GD(e,t,r){try{return Yk(e,t)}catch{return e}}function j0(e,t){if(e=yn(e),t=O0(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 js(e)}function YD(e,t,r){try{return j0(e,t)}catch{return e}}function I0(e,t){if(e=yn(e),t=O0(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 js(e)}function KD(e,t,r){try{return I0(e,t)}catch{return e}}function Kk(e,t=.15){return nf(e)>.5?j0(e,t):I0(e,t)}function XD(e,t,r){try{return Kk(e,t)}catch{return e}}function QD(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=yn(e),a=yn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return js({type:"rgb",values:s})}const JD={black:"#000",white:"#fff"},cu=JD,ZD={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"},e5=ZD,t5={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"},wa=t5,r5={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"},_a=r5,n5={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"},sl=n5,o5={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"},xa=o5,i5={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"},Ca=i5,a5={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"},Ra=a5,s5=["mode","contrastThreshold","tonalOffset"],N_={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:cu.white,default:cu.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}},xm={text:{primary:cu.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:cu.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 z_(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=rf(e.main,o):t==="dark"&&(e.dark=tf(e.main,i)))}function l5(e="light"){return e==="dark"?{main:xa[200],light:xa[50],dark:xa[400]}:{main:xa[700],light:xa[400],dark:xa[800]}}function u5(e="light"){return e==="dark"?{main:wa[200],light:wa[50],dark:wa[400]}:{main:wa[500],light:wa[300],dark:wa[700]}}function c5(e="light"){return e==="dark"?{main:_a[500],light:_a[300],dark:_a[700]}:{main:_a[700],light:_a[400],dark:_a[800]}}function d5(e="light"){return e==="dark"?{main:Ca[400],light:Ca[300],dark:Ca[700]}:{main:Ca[700],light:Ca[500],dark:Ca[900]}}function f5(e="light"){return e==="dark"?{main:Ra[400],light:Ra[300],dark:Ra[700]}:{main:Ra[800],light:Ra[500],dark:Ra[900]}}function h5(e="light"){return e==="dark"?{main:sl[400],light:sl[300],dark:sl[700]}:{main:"#ed6c02",light:sl[500],dark:sl[900]}}function p5(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Qe(e,s5),i=e.primary||l5(t),a=e.secondary||u5(t),s=e.error||c5(t),l=e.info||d5(t),c=e.success||f5(t),d=e.warning||h5(t);function f(y){return BD(y,xm.text.primary)>=r?xm.text.primary:N_.text.primary}const p=({color:y,name:x,mainShade:S=500,lightShade:b=300,darkShade:w=700})=>{if(y=X({},y),!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(au(11,x?` (${x})`:"",S));if(typeof y.main!="string")throw new Error(au(12,x?` (${x})`:"",JSON.stringify(y.main)));return z_(y,"light",b,n),z_(y,"dark",w,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:xm,light:N_};return pn(X({common:X({},cu),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:e5,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),o)}const m5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function v5(e){return Math.round(e*1e5)/1e5}const A_={textTransform:"uppercase"},M_='"Roboto", "Helvetica", "Arial", sans-serif';function g5(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=M_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=Qe(r,m5),v=o/14,g=f||(S=>`${S/c*v}rem`),y=(S,b,w,R,E)=>X({fontFamily:n,fontWeight:S,fontSize:g(b),lineHeight:w},n===M_?{letterSpacing:`${v5(R/b)}em`}:{},E,d),x={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,A_),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,A_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pn(X({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const y5=.2,S5=.14,b5=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${y5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${S5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${b5})`].join(",")}const w5=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],_5=w5,x5=["duration","easing","delay"],C5={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)"},R5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $_(e){return`${Math.round(e)}ms`}function P5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function T5(e){const t=X({},C5,e.easing),r=X({},R5,e.duration);return X({getAutoHeightDuration:P5,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=i;return Qe(i,x5),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:$_(a)} ${s} ${typeof l=="string"?l:$_(l)}`).join(",")}},e,{easing:t,duration:r})}const E5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},k5=E5,O5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function j5(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Qe(e,O5);if(e.vars)throw new Error(au(18));const s=p5(n),l=Eu(e);let c=pn(l,{mixins:LD(l.breakpoints,r),palette:s,shadows:_5.slice(),typography:g5(s,i),transitions:T5(o),zIndex:X({},k5)});return c=pn(c,a),c=t.reduce((d,f)=>pn(d,f),c),c.unstable_sxConfig=X({},Tu,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return bh({sx:f,theme:this})},c}const I5=j5(),Xk=I5,Qk="$$material";function Fn({props:e,name:t}){return Uk({props:e,name:t,defaultTheme:Xk,themeId:Qk})}var Ou={};const N5=xr(S4);var Cm={exports:{}},L_;function z5(){return L_||(L_=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(n.indexOf(i)>=0)continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Cm)),Cm.exports}const A5=xr(OD),M5=xr(a$),$5=xr(h$),L5=xr(f$),D5=xr(zL),F5=xr($D);var Is=Ue;Object.defineProperty(Ou,"__esModule",{value:!0});var B5=Ou.default=eF;Ou.shouldForwardProp=ed;Ou.systemDefaultTheme=void 0;var an=Is(N5),Eg=Is(z5()),D_=Y5(A5),W5=M5;Is($5);Is(L5);var U5=Is(D5),H5=Is(F5);const q5=["ownerState"],V5=["variants"],G5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Jk=function(n){return n?r:t})(e)}function Y5(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Jk(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function K5(e){return Object.keys(e).length===0}function X5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ed(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Q5=Ou.systemDefaultTheme=(0,U5.default)(),J5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bc({defaultTheme:e,theme:t,themeId:r}){return K5(t)?e:t[r]||t}function Z5(e){return e?(t,r)=>r[e]:null}function td(e,t){let{ownerState:r}=t,n=(0,Eg.default)(t,q5);const o=typeof e=="function"?e((0,an.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>td(i,(0,an.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,Eg.default)(o,V5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,an.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,an.default)({ownerState:r},n,r)):l.style))}),s}return o}function eF(e={}){const{themeId:t,defaultTheme:r=Q5,rootShouldForwardProp:n=ed,slotShouldForwardProp:o=ed}=e,i=a=>(0,H5.default)((0,an.default)({},a,{theme:bc((0,an.default)({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,D_.internal_processStyles)(a,E=>E.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Z5(J5(c))}=s,v=(0,Eg.default)(s,G5),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,y=f||!1;let x,S=ed;c==="Root"||c==="root"?S=n:c?S=o:X5(a)&&(S=void 0);const b=(0,D_.default)(a,(0,an.default)({shouldForwardProp:S,label:x},v)),w=E=>typeof E=="function"&&E.__emotion_real!==E||(0,W5.isPlainObject)(E)?k=>td(E,(0,an.default)({},k,{theme:bc({theme:k.theme,defaultTheme:r,themeId:t})})):E,R=(E,...k)=>{let _=w(E);const T=k?k.map(w):[];l&&p&&T.push(A=>{const $=bc((0,an.default)({},A,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[l]||!$.components[l].styleOverrides)return null;const F=$.components[l].styleOverrides,B={};return Object.entries(F).forEach(([ae,oe])=>{B[ae]=td(oe,(0,an.default)({},A,{theme:$}))}),p(A,B)}),l&&!g&&T.push(A=>{var $;const F=bc((0,an.default)({},A,{defaultTheme:r,themeId:t})),B=F==null||($=F.components)==null||($=$[l])==null?void 0:$.variants;return td({variants:B},(0,an.default)({},A,{theme:F}))}),y||T.push(i);const j=T.length-k.length;if(Array.isArray(E)&&j>0){const A=new Array(j).fill("");_=[...E,...A],_.raw=[...E.raw,...A]}const I=b(_,...T);return a.muiName&&(I.muiName=a.muiName),I};return b.withConfig&&(R.withConfig=b.withConfig),R}}function tF(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rF=e=>tF(e)&&e!=="classes",N0=rF,nF=B5({themeId:Qk,defaultTheme:Xk,rootShouldForwardProp:N0}),nt=nF;function oF(e){return rn("MuiSvgIcon",e)}xn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aF=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(r)}`]};return _n(o,oF,n)},sF=nt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Re(r.color)}`],t[`fontSize${Re(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,d,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Zk=N.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Qe(n,iF),g=N.isValidElement(o)&&o.type==="svg",y=X({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g}),x={};d||(x.viewBox=p);const S=aF(y);return h.jsxs(sF,X({as:s,className:st(S.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},x,v,g&&o.props,{ownerState:y,children:[g?o.props.children:o,f?h.jsx("title",{children:f}):null]}))});Zk.muiName="SvgIcon";const F_=Zk;function la(e,t){function r(n,o){return h.jsx(F_,X({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=F_.muiName,N.memo(N.forwardRef(r))}const lF={configure:e=>{gk.configure(e)}},uF=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Re,createChainedFunction:p$,createSvgIcon:la,debounce:m$,deprecatedPropType:v$,isMuiElement:g$,ownerDocument:fk,ownerWindow:y$,requirePropFactory:S$,setRef:hk,unstable_ClassNameGenerator:lF,unstable_useEnhancedEffect:pk,unstable_useId:_$,unsupportedProp:x$,useControlled:mk,useEventCallback:yl,useForkRef:Jd,useIsFocusVisible:vk},Symbol.toStringTag,{value:"Module"})),cF=xr(uF);var B_;function Xe(){return B_||(B_=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=cF}(vm)),vm}var dF=Ue;Object.defineProperty(y0,"__esModule",{value:!0});var Ns=y0.default=void 0,fF=dF(Xe()),hF=h;Ns=y0.default=(0,fF.default)((0,hF.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var z0={},pF=Ue;Object.defineProperty(z0,"__esModule",{value:!0});var zs=z0.default=void 0,mF=pF(Xe()),vF=h;zs=z0.default=(0,mF.default)((0,vF.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var A0={},gF=Ue;Object.defineProperty(A0,"__esModule",{value:!0});var As=A0.default=void 0,yF=gF(Xe()),SF=h;As=A0.default=(0,yF.default)((0,SF.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const bF=({flags:e})=>{const[t,r]=te.useState(!1),[n,o]=te.useState([]),[i,a]=te.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(v=>v.value!==void 0&&v.value!==""&&v.value!==null).sort((v,g)=>v.flag.localeCompare(v.flag)),l=(f,p)=>{if(p==="default"){let v=[];return i?v=f.sort((g,y)=>g.default>y.default?1:-1):v=f.sort((g,y)=>g.defaultv.flag.localeCompare(g.flag)):f},c=()=>{const f=l(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?h.jsx(Ns,{}):h.jsx(zs,{}):h.jsx(As,{className:"ml-2"});return h.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b",children:[h.jsx("th",{className:"px-4 py-2",children:"Flag"}),h.jsx("th",{className:"px-4 py-2",children:"Value"}),h.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:c,children:h.jsxs("div",{className:"flex flex-row",children:["Default",d()]})})]})}),h.jsx("tbody",{children:n.map(f=>h.jsx(i$,{flag:f},f.flag))})]})},wF=({flags:e})=>{const[t,r]=N.useState([]);return N.useEffect(()=>{e!==void 0&&r(e)},[e]),h.jsxs("div",{className:"flex flex-col",children:[h.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])}}),h.jsx(bF,{flags:t})]})},_F=({nodeInfo:e,onRowClicked:t})=>{const n=(i,a)=>h.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",onClick:()=>{t(i,String(a))},children:[h.jsxs("td",{className:"px-4 py-2 font-bold",children:[i,":"]}),h.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 h.jsxs("tr",{className:"border-b border-gray-200",children:[a.length>0?h.jsx("td",{className:"px-4 py-2 font-bold",children:a+":"}):null,s.map(l=>typeof i[l]=="object"?o(i[l],l):n(l,i[l]))]})};return h.jsx("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:h.jsx("tbody",{children:o(e,"")})})},xF=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:h.jsx("div",{className:"flex flex-col",children:h.jsx(_F,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),CF=({syncStages:e})=>e===void 0?null:h.jsx("div",{className:"flex flex-col",children:h.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:h.jsx("tbody",{children:e.map(t=>h.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:[h.jsx("td",{className:"px-4 py-2",children:t.key}),h.jsx("td",{className:"px-4 py-2",children:t.value})]},t.key))})})}),RF=({reorg:e})=>e===void 0?null:h.jsxs("div",{className:"flex flex-col",children:[h.jsx("span",{className:"font-bold",children:"Blocks scanned:"}),h.jsx("span",{children:e.totalBlocks}),h.jsx("span",{className:"font-bold",children:"Time took:"}),h.jsx("span",{children:e.timeTook}),h.jsx("span",{className:"font-bold",children:"Wrong blocks:"}),e.wrongBlocks.length===0?h.jsx("span",{children:"None"}):h.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:h.jsx("tbody",{children:e.wrongBlocks.map(t=>h.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:h.jsx("td",{className:"px-4 py-2",children:t})},t))})})]}),Ms="#1ea7fd",ju="red";const uo=({primary:e=!1,size:t="medium",backgroundColor:r,disabled:n=!1,label:o,...i})=>{const a=e?"storybook-button--primary":"storybook-button--secondary",s=n?"gray":r;return h.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,a].join(" "),style:{backgroundColor:s},disabled:n,...i,children:o})};var Wi=(e=>(e.Unknown="Unknown",e.Local="Local",e.Remote="Remote",e))(Wi||{});const W_={isConnectedToInternet:!0,isConnectedToNode:!0,nodeConnectionType:"Unknown",backendAddress:window.location.origin},eO=sa({name:"app",initialState:W_,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},setNodeConnectionType:(e,t)=>{e.nodeConnectionType=t.payload},setBackendAddress:(e,t)=>{e.backendAddress=t.payload,console.log("Backend address set to: "+t.payload)},resetConectionState:()=>W_}}),{setIsConnectedToInternet:zee,setIsConnectedToNode:U_,setNodeConnectionType:Rm,setBackendAddress:PF,resetConectionState:TF}=eO.actions,tO=e=>e.connection.nodeConnectionType,EF=eO.reducer,Oa={second:1e3,minute:6e4,hour:36e5},H_={peers:[],bootnodes:[]},rO=sa({name:"network",initialState:H_,reducers:{updatePeersState:(e,t)=>{const r=e.peers.findIndex(n=>n.nodeId===t.payload.activeNodeId);r!==-1&&e.peers[r].peers.forEach(n=>{if(n.lastUpdateTime0&&(a=o/t.payload.countInterval);let s=0;i>0&&(s=i/t.payload.countInterval);let l=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=l,n.network.sCountedBytesOut=c}})},addOrUpdatePeer:(e,t)=>{const r=t.payload.nodeId;let n=t.payload.peer;n.lastUpdateTime=Date.now();let o=e.peers.findIndex(i=>i.nodeId===r);if(o!==-1){let i=e.peers[o].peers.findIndex(a=>a.id===n.id);i!==-1?(n.network.inRate=e.peers[o].peers[i].network.inRate,n.network.outRate=e.peers[o].peers[i].network.outRate,n.network.sCountedBytesIn=e.peers[o].peers[i].network.sCountedBytesIn,n.network.sCountedBytesOut=e.peers[o].peers[i].network.sCountedBytesOut,n.network.bytesIn+=e.peers[o].peers[i].network.bytesIn,n.network.bytesOut+=e.peers[o].peers[i].network.bytesOut,wc(e.peers[o].peers[i].network,n.network,"capBytesIn"),wc(e.peers[o].peers[i].network,n.network,"capBytesOut"),wc(e.peers[o].peers[i].network,n.network,"typeBytesIn"),wc(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:()=>H_}}),wc=(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:kF,addOrUpdatePeer:OF,addOrUpdateBootnodes:jF,updatePeersState:IF}=rO.actions,NF=e=>e.network.peers,M0=je([NF,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),zF=()=>je([M0,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),Ph=je([M0,tt],(e,t)=>nO(t,"Sentry",e)),Th=je([M0,tt],(e,t)=>nO(t,"Sentinel",e)),nO=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type.toLowerCase()===t.toLowerCase()&&n.push(o)}),n},AF=je([Ph],e=>oO(e)),MF=je([Th],e=>oO(e)),oO=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},$F=je([Ph],e=>iO(e)),LF=je([Th],e=>iO(e)),iO=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},DF=je([Ph],e=>aO(e)),FF=je([Th],e=>aO(e)),aO=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},BF=rO.reducer;var rd=(e=>(e[e.Queued=0]="Queued",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e))(rd||{});const q_={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},sO=sa({name:"syncStages",initialState:q_,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:()=>q_}}),{setSnapshotFilesList:WF,resetSyncStagesState:Aee,setSnapshotDownloadStatus:UF,setSnapshotIndexStatus:HF,setNodeSyncStages:qF,setTestSnpSyncMsgIdx:Mee}=sO.actions,VF=e=>e.syncStages.snapshotDownloadStatus,lO=je([VF,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),GF=e=>e.syncStages.snapshotIndexStatus;je([GF,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r});const YF=e=>e.syncStages.syncStages,KF=je([YF,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),XF=e=>e.syncStages.snapshotFilesList,QF=je([XF,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r}),JF=je([QF],e=>(e==null?void 0:e.length)===0),ZF=sO.reducer,V_={issues:[]},eB=sa({name:"issue",initialState:V_,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:()=>V_}}),tB=e=>e.issues.issues,$0=je([tB,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),rB=je([$0],e=>e.length>10?"9+":e.length.toString()),nB=je([$0],e=>{let t=[];return e.forEach(r=>{r.type==="NetworkSpeedIssue"&&t.push(r)}),t}),oB=eB.reducer;var L0="persist:",D0="persist/FLUSH",Eh="persist/REHYDRATE",F0="persist/PAUSE",B0="persist/PERSIST",W0="persist/PURGE",U0="persist/REGISTER",iB=-1;function nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nd=function(r){return typeof r}:nd=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nd(e)}function G_(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 aB(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gB(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 yB=5e3;function SB(e,t){var r=e.version!==void 0?e.version:iB;e.debug;var n=e.stateReconciler===void 0?lB:e.stateReconciler,o=e.getStoredState||dB,i=e.timeout!==void 0?e.timeout:yB,a=null,s=!1,l=!0,c=function(f){return f._persist.rehydrated&&a&&!l&&a.update(f),f};return function(d,f){var p=d||{},v=p._persist,g=vB(p,["_persist"]),y=g;if(f.type===B0){var x=!1,S=function(T,j){x||(f.rehydrate(e.key,T,j),x=!0)};if(i&&setTimeout(function(){!x&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),l=!1,a||(a=uB(e)),v)return mo({},t(y,f),{_persist:v});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 T=e.migrate||function(j,I){return Promise.resolve(j)};T(_,r).then(function(j){S(j)},function(j){S(void 0,j)})},function(_){S(void 0,_)}),mo({},t(y,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===W0)return s=!0,f.result(hB(e)),mo({},t(y,f),{_persist:v});if(f.type===D0)return f.result(a&&a.flush()),mo({},t(y,f),{_persist:v});if(f.type===F0)l=!0;else if(f.type===Eh){if(s)return mo({},y,{_persist:mo({},v,{rehydrated:!0})});if(f.key===e.key){var b=t(y,f),w=f.payload,R=n!==!1&&w!==void 0?n(w,d,b,e):b,E=mo({},R,{_persist:mo({},v,{rehydrated:!0})});return c(E)}}}if(!v)return t(d,f);var k=t(y,f);return k===y?d:c(mo({},k,{_persist:v}))}}function K_(e){return _B(e)||wB(e)||bB()}function bB(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function wB(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function _B(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:uO,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case U0:return kg({},t,{registry:[].concat(K_(t.registry),[r.key])});case Eh:var n=t.registry.indexOf(r.key),o=K_(t.registry);return o.splice(n,1),kg({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function RB(e,t,r){var n=r||!1,o=f0(CB,uO,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:U0,key:c})},a=function(c,d,f){var p={type:Eh,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=kg({},o,{purge:function(){var c=[];return e.dispatch({type:W0,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:D0,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:F0})},persist:function(){e.dispatch({type:B0,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var H0={},q0={};q0.__esModule=!0;q0.default=EB;function od(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?od=function(r){return typeof r}:od=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},od(e)}function Pm(){}var PB={getItem:Pm,setItem:Pm,removeItem:Pm};function TB(e){if((typeof self>"u"?"undefined":od(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 EB(e){var t="".concat(e,"Storage");return TB(t)?self[t]:PB}H0.__esModule=!0;H0.default=jB;var kB=OB(q0);function OB(e){return e&&e.__esModule?e:{default:e}}function jB(e){var t=(0,kB.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 cO=void 0,IB=NB(H0);function NB(e){return e&&e.__esModule?e:{default:e}}var zB=(0,IB.default)("local");cO=zB;const Q_={nodeHeaders:[]},dO=sa({name:"headers",initialState:Q_,reducers:{addOrUpdateHeaders:(e,t)=>{let r=e.nodeHeaders.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeHeaders[r].headers=t.payload.headers:e.nodeHeaders.push({nodeId:t.payload.nodeId,headers:t.payload.headers})},resetHeadersState:()=>Q_}}),{addOrUpdateHeaders:AB,resetHeadersState:$ee}=dO.actions,MB=e=>e.headers.nodeHeaders;je([MB,tt],(e,t)=>e.find(r=>r.nodeId===t));const $B=dO.reducer,J_={networkSpeed:[],ramInfo:[],cpuInfo:[],diskInfo:[],processesInfo:[]},fO=sa({name:"systemInfo",initialState:J_,reducers:{addOrUpdateNetworkSpeed:(e,t)=>{let r=e.networkSpeed.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.networkSpeed[r].networkSpeed=t.payload.networkSpeed:e.networkSpeed.push({nodeId:t.payload.nodeId,networkSpeed:t.payload.networkSpeed})},addOrUpdateRAMInfo:(e,t)=>{let r=e.ramInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.ramInfo[r]=t.payload:e.ramInfo.push({nodeId:t.payload.nodeId,info:t.payload.info})},addOrUpdateCPUInfo:(e,t)=>{let r=e.cpuInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cpuInfo[r].info=t.payload.info:e.cpuInfo.push({nodeId:t.payload.nodeId,info:t.payload.info,usage:{total:0,cores:[]}})},addOrUpdateCPUUsage:(e,t)=>{let r=e.cpuInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cpuInfo[r].usage=t.payload.usage:e.cpuInfo.push({nodeId:t.payload.nodeId,info:[],usage:t.payload.usage})},addOrUpdateDiskInfo:(e,t)=>{let r=e.diskInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.diskInfo[r].info=t.payload.info:e.diskInfo.push({nodeId:t.payload.nodeId,info:t.payload.info})},addOrUpdateProcessesInfo:(e,t)=>{let r=e.processesInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.processesInfo[r].processes=t.payload.info:e.processesInfo.push({nodeId:t.payload.nodeId,processes:t.payload.info})},addOrUpdateRAMUsage:(e,t)=>{let r=e.ramInfo.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.ramInfo[r].info.usedPercent=t.payload.usage:e.ramInfo.push({nodeId:t.payload.nodeId,info:{total:0,available:0,used:0,usedPercent:t.payload.usage}})},resetSystemInfoState:()=>J_}}),{addOrUpdateNetworkSpeed:Lee,addOrUpdateCPUInfo:LB,addOrUpdateDiskInfo:DB,addOrUpdateProcessesInfo:FB,addOrUpdateRAMInfo:BB,addOrUpdateCPUUsage:WB,addOrUpdateRAMUsage:Dee,resetSystemInfoState:Fee}=fO.actions,UB=e=>e.sysInfo.networkSpeed;je([UB,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.networkSpeed)}),r});const HB=e=>e.sysInfo.ramInfo,qB=je([HB,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.info)}),r}),hO=e=>e.sysInfo.cpuInfo,pO=je([hO,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.info)}),r}),VB=je([hO,tt],(e,t)=>{let r={total:0,cores:[]};return e.forEach(n=>{n.nodeId===t&&(r=n.usage)}),r}),GB=e=>e.sysInfo.diskInfo,YB=je([GB,tt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.info)}),r}),KB=e=>e.sysInfo.processesInfo,XB=je([KB,tt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.processes)}),r}),QB=fO.reducer,JB={key:"root",blacklist:["connection"],storage:cO},ZB=QE({app:n$,network:BF,connection:EF,syncStages:ZF,issues:oB,headers:$B,sysInfo:QB}),eW=SB(JB,ZB),Ee=S3({reducer:eW,middleware:e=>e({serializableCheck:{ignoredActions:[D0,Eh,F0,B0,W0,U0]}})}),tW=RB(Ee),id=()=>Ee.getState().connection.nodeConnectionType===Wi.Local,rW="sessions",nW="nodes",oW="version",iW="flags",aW="cmdline",sW="logs",lW="sync-stages",mO="dbs",uW="tables",cW="reorgs",dW="peers",fW="bootnodes",hW="snapshot-sync",pW="snapshot-files-list",mW="headers",vW="nodeinfo",gW="hardware-info",yW="cpu-usage",SW="processes-info",bW="pprof/goroutine",wW="pprof/threadcreate",_W="pprof/heap",xW="pprof/allocs",CW="pprof/block",RW="pprof/mutex",PW=()=>Ee.getState().app.activeSessionPin,V0=(e=!1)=>{const t=PW();let n=`${Ee.getState().connection.backendAddress}/api`;return e&&(n+="/v2"),`${n}/${rW}/${t}`},St=(e=!1)=>{if(id())return`${Ee.getState().connection.backendAddress}/debug/diag`;{const t=V0(e),r=Ee.getState().app.activeNodeId;return`${t}/${nW}/${r}`}},TW=()=>`${St(!0)}/${oW}`,vO=()=>`${St(!0)}/${iW}`,gO=()=>`${St(!0)}/${aW}`,yO=(e=!1)=>`${St(e)}/${sW}`,SO=()=>`${St()}/${lW}`,EW=()=>`${St(!0)}/${mO}`,kW=e=>`${St()}/${mO}/${e}/${uW}`,bO=()=>`${St()}/${cW}`,OW=()=>`${St(!0)}/${dW}`,jW=()=>`${St(!0)}/${fW}`,IW=()=>`${St(!0)}/${hW}`,NW=()=>`${St(!0)}/${pW}`,zW=()=>`${St(!0)}/${mW}`,AW=()=>`${St(!0)}/${vW}`,MW=()=>`${window.location.origin}/diagaddr`,$W=()=>`${St(!0)}/${gW}`,LW=()=>`${St(!0)}/${yW}`,DW=()=>`${St(!0)}/${SW}`,FW=()=>`${St(!0)}/${bW}`,BW=()=>`${St(!0)}/${wW}`,Z_=()=>`${St(!0)}/${_W}`,WW=()=>`${St(!0)}/${xW}`,UW=()=>`${St(!0)}/${CW}`,HW=()=>`${St(!0)}/${RW}`,qW=()=>{{const e=Ut(MW(),"GET");return Wt(e)}},VW=()=>{{const e=Ut(V0(),"GET");return Wt(e)}},GW=()=>{{const e=Ut(AW(),"GET");return Wt(e)}},YW=()=>{{const e=Ut(TW(),"GET");return Wt(e)}},KW=()=>{{const e=Ut(vO(),"GET");return Wt(e)}},XW=()=>{{const e=Ut(gO(),"GET");return Wt(e)}},QW=()=>{{const e=Ut(yO(!0),"GET");return Wt(e)}},JW=()=>{{const e=Ut(SO(),"GET");return Wt(e)}},ZW=()=>{{const e=Ut(EW(),"GET");return Wt(e)}},e6=e=>{{const t=Ut(kW(e),"GET");return Wt(t)}},t6=()=>{{const e=Ut(bO(),"GET");return Wt(e)}},r6=()=>{{const e=Ut(OW(),"GET");return Wt(e)}},n6=()=>{{const e=Ut(jW(),"GET");return Wt(e)}},o6=()=>{{const e=Ut(IW(),"GET");return Wt(e)}},i6=()=>{{const e=Ut(NW(),"GET");return Wt(e)}},a6=()=>{{const e=Ut(zW(),"GET");return Wt(e)}},s6=()=>{{const e=Ut($W(),"GET");return Wt(e)}},l6=()=>{{const e=Ut(LW(),"GET");return Wt(e)}},u6=()=>{{const e=Ut(DW(),"GET");return Wt(e)}},Wt=e=>fetch(e).then(t=>(Ee.dispatch(U_(!0)),t.json())).catch(t=>{throw Ee.dispatch(U_(!1)),t});function Ut(e,t,r){return new Request(e,{method:t,headers:{"Content-Type":"application/json"}})}var G0={},c6=Ue;Object.defineProperty(G0,"__esModule",{value:!0});var of=G0.default=void 0,d6=c6(Xe()),f6=h;of=G0.default=(0,d6.default)((0,f6.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 Y0={},h6=Ue;Object.defineProperty(Y0,"__esModule",{value:!0});var kh=Y0.default=void 0,p6=h6(Xe()),m6=h;kh=Y0.default=(0,p6.default)((0,m6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function wO(e){return Fn}function v6(e){return typeof e=="string"}function g6(e,t,r){return e===void 0||v6(e)?t:X({},t,{ownerState:X({},t.ownerState,r)})}function y6(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function S6(e,t,r){return typeof e=="function"?e(t,r):e}function ex(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function b6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=st(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),g=X({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=X({},r,o,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=y6(X({},o,n)),s=ex(n),l=ex(o),c=t(a),d=st(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),f=X({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=X({},c,r,l,s);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const w6=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_6=["component","slots","slotProps"],x6=["component"];function tx(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=Qe(t,w6),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=i,p=Qe(i,_6),v=d[e]||n,g=S6(f[e],o),y=b6(X({className:r},l,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:x},internalRef:S}=y,b=Qe(y.props,x6),w=Jd(S,g==null?void 0:g.ref,t.ref),R=a?a(b):{},E=X({},o,R),k=e==="root"?x||c:x,_=g6(v,X({},e==="root"&&!c&&!d[e]&&s,e!=="root"&&!d[e]&&s,b,k&&{as:k},{ref:w}),E);return Object.keys(R).forEach(T=>{delete _[T]}),[v,_]}const C6=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},rx=C6,R6=["ownerState"],P6=["variants"],T6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function E6(e){return Object.keys(e).length===0}function k6(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const O6=Eu(),j6=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _c({defaultTheme:e,theme:t,themeId:r}){return E6(t)?e:t[r]||t}function I6(e){return e?(t,r)=>r[e]:null}function ad(e,t){let{ownerState:r}=t,n=Qe(t,R6);const o=typeof e=="function"?e(X({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>ad(i,X({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=Qe(o,P6);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(X({ownerState:r},n,r)):Object.keys(l.props).forEach(d=>{(r==null?void 0:r[d])!==l.props[d]&&n[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(X({ownerState:r},n,r)):l.style))}),s}return o}function N6(e={}){const{themeId:t,defaultTheme:r=O6,rootShouldForwardProp:n=Tm,slotShouldForwardProp:o=Tm}=e,i=a=>bh(X({},a,{theme:_c(X({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Wk(a,E=>E.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=I6(j6(c))}=s,v=Qe(s,T6),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,y=f||!1;let x,S=Tm;c==="Root"||c==="root"?S=n:c?S=o:k6(a)&&(S=void 0);const b=Bk(a,X({shouldForwardProp:S,label:x},v)),w=E=>typeof E=="function"&&E.__emotion_real!==E||bo(E)?k=>ad(E,X({},k,{theme:_c({theme:k.theme,defaultTheme:r,themeId:t})})):E,R=(E,...k)=>{let _=w(E);const T=k?k.map(w):[];l&&p&&T.push(A=>{const $=_c(X({},A,{defaultTheme:r,themeId:t}));if(!$.components||!$.components[l]||!$.components[l].styleOverrides)return null;const F=$.components[l].styleOverrides,B={};return Object.entries(F).forEach(([ae,oe])=>{B[ae]=ad(oe,X({},A,{theme:$}))}),p(A,B)}),l&&!g&&T.push(A=>{var $;const F=_c(X({},A,{defaultTheme:r,themeId:t})),B=F==null||($=F.components)==null||($=$[l])==null?void 0:$.variants;return ad({variants:B},X({},A,{theme:F}))}),y||T.push(i);const j=T.length-k.length;if(Array.isArray(E)&&j>0){const A=new Array(j).fill("");_=[...E,...A],_.raw=[...E.raw,...A]}const I=b(_,...T);return a.muiName&&(I.muiName=a.muiName),I};return b.withConfig&&(R.withConfig=b.withConfig),R}}const z6=N6(),A6=z6,M6=["component","direction","spacing","divider","children","className","useFlexGap"],$6=Eu(),L6=A6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function D6(e){return Uk({props:e,name:"MuiStack",defaultTheme:$6})}function F6(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],W6=({ownerState:e,theme:t})=>{let r=X({display:"flex",flexDirection:"column"},Dn({theme:t},wm({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=x0(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=wm({values:e.direction,base:o}),a=wm({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,d)=>{if(!i[l]){const p=c>0?i[d[c-1]]:"column";i[l]=p}}),r=pn(r,Dn({theme:t},a,(l,c)=>e.useFlexGap?{gap:Zi(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${B6(c?i[c]:e.direction)}`]:Zi(n,l)}}))}return r=q$(t.breakpoints,r),r};function U6(e={}){const{createStyledComponent:t=L6,useThemeProps:r=D6,componentName:n="MuiStack"}=e,o=()=>_n({root:["root"]},l=>rn(n,l),{}),i=t(W6);return N.forwardRef(function(l,c){const d=r(l),f=k0(d),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:x,className:S,useFlexGap:b=!1}=f,w=Qe(f,M6),R={direction:v,spacing:g,useFlexGap:b},E=o();return h.jsx(i,X({as:p,ownerState:R,ref:c,className:st(E.root,S)},w,{children:y?F6(x,y):x}))})}function H6(e){return rn("MuiPaper",e)}xn("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 q6=["className","component","elevation","square","variant"],V6=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return _n(i,H6,o)},G6=nt("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 X({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"&&X({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ro("#fff",rx(t.elevation))}, ${ro("#fff",rx(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Y6=N.forwardRef(function(t,r){const n=Fn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,c=Qe(n,q6),d=X({},n,{component:i,elevation:a,square:s,variant:l}),f=V6(d);return h.jsx(G6,X({as:i,ownerState:d,className:st(f.root,o),ref:r},c))}),K6=Y6;function X6(e){return rn("MuiAlert",e)}const Q6=xn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),nx=Q6;function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},af(e,t)}function J6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,af(e,t)}const ox=te.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 K0(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 Z6(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),h.jsx("span",{className:p,style:v,children:h.jsx("span",{className:g})})}const a8=xn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sn=a8,s8=["center","classes","className"];let Oh=e=>e,ix,ax,sx,lx;const Og=550,l8=80,u8=Os(ix||(ix=Oh` 0% { transform: scale(0); opacity: 0.1; diff --git a/build/index.html b/build/index.html index 6b108ab..e41bfa6 100644 --- a/build/index.html +++ b/build/index.html @@ -5,7 +5,7 @@ ErigonWatch - +