From 2c04814a193ad3b5a5ebadb8a27ffe57fd3bc5a5 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Wed, 7 Feb 2024 19:09:53 +0000 Subject: [PATCH] updated UI (#55) --- api/main_handler.go | 1 + web/dist/assets/index-052eb671.css | 1 - web/dist/assets/index-2a2af674.js | 775 +++++++++++++++++++++++++++++ web/dist/assets/index-50fb3c9c.css | 1 + web/dist/assets/index-b5393b8c.js | 775 ----------------------------- web/dist/index.html | 4 +- 6 files changed, 779 insertions(+), 778 deletions(-) delete mode 100644 web/dist/assets/index-052eb671.css create mode 100644 web/dist/assets/index-2a2af674.js create mode 100644 web/dist/assets/index-50fb3c9c.css delete mode 100644 web/dist/assets/index-b5393b8c.js diff --git a/api/main_handler.go b/api/main_handler.go index 8a74024..0cc30a3 100644 --- a/api/main_handler.go +++ b/api/main_handler.go @@ -46,6 +46,7 @@ func NewHandler(services APIServices) http.Handler { r.HandleFunc("/performance", index) r.HandleFunc("/documentation", index) r.HandleFunc("/admin", index) + r.HandleFunc("/downloader", index) r.Group(func(r chi.Router) { session := sessions.Middleware{CacheService: services.StoreSession} diff --git a/web/dist/assets/index-052eb671.css b/web/dist/assets/index-052eb671.css deleted file mode 100644 index 62eb88c..0000000 --- a/web/dist/assets/index-052eb671.css +++ /dev/null @@ -1 +0,0 @@ -.storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1;color:#fff;background-color:#1ea7fd;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.storybook-button--primary{color:#fff;background-color:#1ea7fd}.storybook-button--secondary{color:#333;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-1{top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.bottom-0{bottom:0}.bottom-\[10vh\]{bottom:10vh}.bottom-\[50px\]{bottom:50px}.left-0{left:0}.right-0{right:0}.right-\[5vw\]{right:5vw}.top-0{top:0}.top-\[50px\]{top:50px}.top-\[80vh\]{top:80vh}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-\[70vh\]{height:70vh}.h-\[80vh\]{height:80vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[45vh\]{max-height:45vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[83vh\]{max-height:83vh}.max-h-\[90vh\]{max-height:90vh}.min-h-\[40px\]{min-height:40px}.w-2{width:.5rem}.w-5{width:1.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[20vw\]{min-width:20vw}.min-w-\[30vw\]{min-width:30vw}.max-w-3xl{max-width:48rem}.max-w-\[100vw\]{max-width:100vw}.max-w-\[1400px\]{max-width:1400px}.flex-\[1\]{flex:1}.flex-\[2\]{flex:2}.flex-auto{flex:1 1 auto}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.text-ellipsis{text-overflow:ellipsis}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/\[\.4\]{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-25{opacity:.25}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{height:100%;overflow:hidden;background-color:azure;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.hover\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-500:hover{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (prefers-color-scheme: dark){.dark\:border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:bg-gray-700:focus{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}} diff --git a/web/dist/assets/index-2a2af674.js b/web/dist/assets/index-2a2af674.js new file mode 100644 index 0000000..16d9df4 --- /dev/null +++ b/web/dist/assets/index-2a2af674.js @@ -0,0 +1,775 @@ +function yO(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xa(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _x={exports:{}},Pd={},xx={exports:{}},Te={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ll=Symbol.for("react.element"),bO=Symbol.for("react.portal"),wO=Symbol.for("react.fragment"),_O=Symbol.for("react.strict_mode"),xO=Symbol.for("react.profiler"),CO=Symbol.for("react.provider"),RO=Symbol.for("react.context"),kO=Symbol.for("react.forward_ref"),PO=Symbol.for("react.suspense"),TO=Symbol.for("react.memo"),EO=Symbol.for("react.lazy"),OS=Symbol.iterator;function OO(e){return e===null||typeof e!="object"?null:(e=OS&&e[OS]||e["@@iterator"],typeof e=="function"?e:null)}var Cx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rx=Object.assign,kx={};function Ja(e,t,r){this.props=e,this.context=t,this.refs=kx,this.updater=r||Cx}Ja.prototype.isReactComponent={};Ja.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ja.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Px(){}Px.prototype=Ja.prototype;function Ev(e,t,r){this.props=e,this.context=t,this.refs=kx,this.updater=r||Cx}var Ov=Ev.prototype=new Px;Ov.constructor=Ev;Rx(Ov,Ja.prototype);Ov.isPureReactComponent=!0;var IS=Array.isArray,Tx=Object.prototype.hasOwnProperty,Iv={current:null},Ex={key:!0,ref:!0,__self:!0,__source:!0};function Ox(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Tx.call(t,n)&&!Ex.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ke=Y[we];if(0>>1;weo(Se,ce))Go(V,Se)?(Y[we]=V,Y[G]=ce,we=G):(Y[we]=Se,Y[$e]=ce,we=$e);else if(Go(V,ce))Y[we]=V,Y[G]=ce,we=G;else break e}}return te}function o(Y,te){var ce=Y.sortIndex-te.sortIndex;return ce!==0?ce:Y.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],c=[],d=1,f=null,p=3,y=!1,S=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Y){for(var te=r(c);te!==null;){if(te.callback===null)n(c);else if(te.startTime<=Y)n(c),te.sortIndex=te.expirationTime,t(u,te);else break;te=r(c)}}function k(Y){if(g=!1,_(Y),!S)if(r(u)!==null)S=!0,ae(T);else{var te=r(c);te!==null&&he(k,te.startTime-Y)}}function T(Y,te){S=!1,g&&(g=!1,v(O),O=-1),y=!0;var ce=p;try{for(_(te),f=r(u);f!==null&&(!(f.expirationTime>te)||Y&&!M());){var we=f.callback;if(typeof we=="function"){f.callback=null,p=f.priorityLevel;var ke=we(f.expirationTime<=te);te=e.unstable_now(),typeof ke=="function"?f.callback=ke:f===r(u)&&n(u),_(te)}else n(u);f=r(u)}if(f!==null)var yt=!0;else{var $e=r(c);$e!==null&&he(k,$e.startTime-te),yt=!1}return yt}finally{f=null,p=ce,y=!1}}var E=!1,x=null,O=-1,I=5,j=-1;function M(){return!(e.unstable_now()-jY||125we?(Y.sortIndex=ce,t(c,Y),r(u)===null&&Y===r(c)&&(g?(v(O),O=-1):g=!0,he(k,ce-we))):(Y.sortIndex=ke,t(u,Y),S||y||(S=!0,ae(T))),Y},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(Y){var te=p;return function(){var ce=p;p=te;try{return Y.apply(this,arguments)}finally{p=ce}}}})(Nx);zx.exports=Nx;var BO=zx.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ax=N,Fr=BO;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),im=Object.prototype.hasOwnProperty,WO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,zS={},NS={};function UO(e){return im.call(NS,e)?!0:im.call(zS,e)?!1:WO.test(e)?NS[e]=!0:(zS[e]=!0,!1)}function HO(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qO(e,t,r,n){if(t===null||typeof t>"u"||HO(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new hr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ut[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var zv=/[\-:]([a-z])/g;function Nv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zv,Nv);Ut[t]=new hr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zv,Nv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zv,Nv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Av(e,t,r,n){var o=Ut.hasOwnProperty(t)?Ut[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var u=` +`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Oh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?js(e):""}function GO(e){switch(e.tag){case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return e=Ih(e.type,!1),e;case 11:return e=Ih(e.type.render,!1),e;case 1:return e=Ih(e.type,!0),e;default:return""}}function um(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ia:return"Fragment";case oa:return"Portal";case am:return"Profiler";case Mv:return"StrictMode";case sm:return"Suspense";case lm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $x:return(e.displayName||"Context")+".Consumer";case Lx:return(e._context.displayName||"Context")+".Provider";case Lv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $v:return t=e.displayName||null,t!==null?t:um(e.type)||"Memo";case wo:t=e._payload,e=e._init;try{return um(e(t))}catch{}}return null}function VO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return um(t);case 8:return t===Mv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KO(e){var t=Fx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wu(e){e._valueTracker||(e._valueTracker=KO(e))}function Bx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Pc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function cm(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function MS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Uo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wx(e,t){t=t.checked,t!=null&&Av(e,"checked",t,!1)}function dm(e,t){Wx(e,t);var r=Uo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fm(e,t.type,r):t.hasOwnProperty("defaultValue")&&fm(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function LS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function fm(e,t,r){(t!=="number"||Pc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var zs=Array.isArray;function ga(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_u.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},YO=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(e){YO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qs[t]=qs[e]})});function Gx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qs.hasOwnProperty(e)&&qs[e]?(""+t).trim():t+"px"}function Vx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Gx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var QO=st({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mm(e,t){if(t){if(QO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function vm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gm=null;function Dv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ym=null,ya=null,Sa=null;function FS(e){if(e=Fl(e)){if(typeof ym!="function")throw Error(re(280));var t=e.stateNode;t&&(t=jd(t),ym(e.stateNode,e.type,t))}}function Kx(e){ya?Sa?Sa.push(e):Sa=[e]:ya=e}function Yx(){if(ya){var e=ya,t=Sa;if(Sa=ya=null,FS(e),t)for(e=0;e>>=0,e===0?32:31-(sI(e)/lI|0)|0}var xu=64,Cu=4194304;function Ns(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ic(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Ns(s):(i&=a,i!==0&&(n=Ns(i)))}else a=r&~o,a!==0?n=Ns(a):i!==0&&(n=Ns(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function $l(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=r}function fI(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Vs),YS=String.fromCharCode(32),QS=!1;function mC(e,t){switch(e){case"keyup":return FI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function WI(e,t){switch(e){case"compositionend":return vC(t);case"keypress":return t.which!==32?null:(QS=!0,YS);case"textInput":return e=t.data,e===YS&&QS?null:e;default:return null}}function UI(e,t){if(aa)return e==="compositionend"||!Vv&&mC(e,t)?(e=hC(),tc=Hv=Po=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=eb(r)}}function bC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wC(){for(var e=window,t=Pc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Pc(e.document)}return t}function Kv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JI(e){var t=wC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bC(r.ownerDocument.documentElement,r)){if(n!==null&&Kv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=tb(r,i);var a=tb(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,sa=null,Cm=null,Ys=null,Rm=!1;function rb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Rm||sa==null||sa!==Pc(n)||(n=sa,"selectionStart"in n&&Kv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ys&&fl(Ys,n)||(Ys=n,n=Nc(Cm,"onSelect"),0ca||(e.current=Im[ca],Im[ca]=null,ca--)}function Ve(e,t){ca++,Im[ca]=e.current,e.current=t}var Ho={},nr=Qo(Ho),wr=Qo(!1),xi=Ho;function Oa(e,t){var r=e.type.contextTypes;if(!r)return Ho;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _r(e){return e=e.childContextTypes,e!=null}function Mc(){Xe(wr),Xe(nr)}function ub(e,t,r){if(nr.current!==Ho)throw Error(re(168));Ve(nr,t),Ve(wr,r)}function OC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(re(108,VO(e)||"Unknown",o));return st({},r,n)}function Lc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ho,xi=nr.current,Ve(nr,e),Ve(wr,wr.current),!0}function cb(e,t,r){var n=e.stateNode;if(!n)throw Error(re(169));r?(e=OC(e,t,xi),n.__reactInternalMemoizedMergedChildContext=e,Xe(wr),Xe(nr),Ve(nr,e)):Xe(wr),Ve(wr,r)}var to=null,zd=!1,qh=!1;function IC(e){to===null?to=[e]:to.push(e)}function c2(e){zd=!0,IC(e)}function Xo(){if(!qh&&to!==null){qh=!0;var e=0,t=Be;try{var r=to;for(Be=1;e>=a,o-=a,oo=1<<32-yn(t)+o|r<O?(I=x,x=null):I=x.sibling;var j=p(v,x,_[O],k);if(j===null){x===null&&(x=I);break}e&&x&&j.alternate===null&&t(v,x),b=i(j,b,O),E===null?T=j:E.sibling=j,E=j,x=I}if(O===_.length)return r(v,x),rt&&si(v,O),T;if(x===null){for(;O<_.length;O++)x=f(v,_[O],k),x!==null&&(b=i(x,b,O),E===null?T=x:E.sibling=x,E=x);return rt&&si(v,O),T}for(x=n(v,x);O<_.length;O++)I=y(x,v,O,_[O],k),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?O:I.key),b=i(I,b,O),E===null?T=I:E.sibling=I,E=I);return e&&x.forEach(function(M){return t(v,M)}),rt&&si(v,O),T}function g(v,b,_,k){var T=ys(_);if(typeof T!="function")throw Error(re(150));if(_=T.call(_),_==null)throw Error(re(151));for(var E=T=null,x=b,O=b=0,I=null,j=_.next();x!==null&&!j.done;O++,j=_.next()){x.index>O?(I=x,x=null):I=x.sibling;var M=p(v,x,j.value,k);if(M===null){x===null&&(x=I);break}e&&x&&M.alternate===null&&t(v,x),b=i(M,b,O),E===null?T=M:E.sibling=M,E=M,x=I}if(j.done)return r(v,x),rt&&si(v,O),T;if(x===null){for(;!j.done;O++,j=_.next())j=f(v,j.value,k),j!==null&&(b=i(j,b,O),E===null?T=j:E.sibling=j,E=j);return rt&&si(v,O),T}for(x=n(v,x);!j.done;O++,j=_.next())j=y(x,v,O,j.value,k),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?O:j.key),b=i(j,b,O),E===null?T=j:E.sibling=j,E=j);return e&&x.forEach(function(B){return t(v,B)}),rt&&si(v,O),T}function C(v,b,_,k){if(typeof _=="object"&&_!==null&&_.type===ia&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case bu:e:{for(var T=_.key,E=b;E!==null;){if(E.key===T){if(T=_.type,T===ia){if(E.tag===7){r(v,E.sibling),b=o(E,_.props.children),b.return=v,v=b;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===wo&&gb(T)===E.type){r(v,E.sibling),b=o(E,_.props),b.ref=xs(v,E,_),b.return=v,v=b;break e}r(v,E);break}else t(v,E);E=E.sibling}_.type===ia?(b=yi(_.props.children,v.mode,k,_.key),b.return=v,v=b):(k=uc(_.type,_.key,_.props,null,v.mode,k),k.ref=xs(v,b,_),k.return=v,v=k)}return a(v);case oa:e:{for(E=_.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){r(v,b.sibling),b=o(b,_.children||[]),b.return=v,v=b;break e}else{r(v,b);break}else t(v,b);b=b.sibling}b=Zh(_,v.mode,k),b.return=v,v=b}return a(v);case wo:return E=_._init,C(v,b,E(_._payload),k)}if(zs(_))return S(v,b,_,k);if(ys(_))return g(v,b,_,k);Iu(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(r(v,b.sibling),b=o(b,_),b.return=v,v=b):(r(v,b),b=Jh(_,v.mode,k),b.return=v,v=b),a(v)):r(v,b)}return C}var ja=DC(!0),FC=DC(!1),Bl={},$n=Qo(Bl),vl=Qo(Bl),gl=Qo(Bl);function pi(e){if(e===Bl)throw Error(re(174));return e}function ng(e,t){switch(Ve(gl,t),Ve(vl,e),Ve($n,Bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pm(t,e)}Xe($n),Ve($n,t)}function za(){Xe($n),Xe(vl),Xe(gl)}function BC(e){pi(gl.current);var t=pi($n.current),r=pm(t,e.type);t!==r&&(Ve(vl,e),Ve($n,r))}function og(e){vl.current===e&&(Xe($n),Xe(vl))}var it=Qo(0);function Uc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gh=[];function ig(){for(var e=0;er?r:4,e(!0);var n=Vh.transition;Vh.transition={};try{e(!1),t()}finally{Be=r,Vh.transition=n}}function nR(){return rn().memoizedState}function p2(e,t,r){var n=Lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},oR(e))iR(t,r);else if(r=AC(e,t,r,n),r!==null){var o=dr();Sn(r,e,n,o),aR(r,t,n)}}function m2(e,t,r){var n=Lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(oR(e))iR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,wn(s,a)){var u=t.interleaved;u===null?(o.next=o,tg(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=AC(e,t,o,n),r!==null&&(o=dr(),Sn(r,e,n,o),aR(r,t,n))}}function oR(e){var t=e.alternate;return e===at||t!==null&&t===at}function iR(e,t){Qs=Hc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function aR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Bv(e,r)}}var qc={readContext:tn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},v2={readContext:tn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:Sb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ic(4194308,4,JC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var r=In();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=In();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=p2.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:yb,useDebugValue:cg,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=yb(!1),t=e[0];return e=h2.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,o=In();if(rt){if(r===void 0)throw Error(re(407));r=r()}else{if(r=t(),Nt===null)throw Error(re(349));Ri&30||HC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Sb(GC.bind(null,n,i,e),[e]),n.flags|=2048,bl(9,qC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=In(),t=Nt.identifierPrefix;if(rt){var r=io,n=oo;r=(n&~(1<<32-yn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Mn]=t,e[ml]=n,mR(e,t,!1,!1),t.stateNode=e;e:{switch(a=vm(r,n),r){case"dialog":Qe("cancel",e),Qe("close",e),o=n;break;case"iframe":case"object":case"embed":Qe("load",e),o=n;break;case"video":case"audio":for(o=0;oAa&&(t.flags|=128,n=!0,Cs(i,!1),t.lanes=4194304)}else{if(!n)if(e=Uc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return Yt(t),null}else 2*mt()-i.renderingStartTime>Aa&&r!==1073741824&&(t.flags|=128,n=!0,Cs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=mt(),t.sibling=null,r=it.current,Ve(it,n?r&1|2:r&1),t):(Yt(t),null);case 22:case 23:return vg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?jr&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function C2(e,t){switch(Qv(t),t.tag){case 1:return _r(t.type)&&Mc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),Xe(wr),Xe(nr),ig(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return og(t),null;case 13:if(Xe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));Ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(it),null;case 4:return za(),null;case 10:return eg(t.type._context),null;case 22:case 23:return vg(),null;case 24:return null;default:return null}}var zu=!1,tr=!1,R2=typeof WeakSet=="function"?WeakSet:Set,me=null;function pa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dt(e,t,n)}else r.current=null}function Um(e,t,r){try{r()}catch(n){dt(e,t,n)}}var Tb=!1;function k2(e,t){if(km=jc,e=wC(),Kv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(u=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++d===n&&(u=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Pm={focusedElem:e,selectionRange:r},jc=!1,me=t;me!==null;)if(t=me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,me=e;else for(;me!==null;){t=me;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var g=S.memoizedProps,C=S.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:hn(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(k){dt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return S=Tb,Tb=!1,S}function Xs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Um(t,r,i)}o=o.next}while(o!==n)}}function Md(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Hm(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function yR(e){var t=e.alternate;t!==null&&(e.alternate=null,yR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ml],delete t[Om],delete t[l2],delete t[u2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function SR(e){return e.tag===5||e.tag===3||e.tag===4}function Eb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||SR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ac));else if(n!==4&&(e=e.child,e!==null))for(qm(e,t,r),e=e.sibling;e!==null;)qm(e,t,r),e=e.sibling}function Gm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Gm(e,t,r),e=e.sibling;e!==null;)Gm(e,t,r),e=e.sibling}var Dt=null,pn=!1;function bo(e,t,r){for(r=r.child;r!==null;)bR(e,t,r),r=r.sibling}function bR(e,t,r){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Td,r)}catch{}switch(r.tag){case 5:tr||pa(r,t);case 6:var n=Dt,o=pn;Dt=null,bo(e,t,r),Dt=n,pn=o,Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dt.removeChild(r.stateNode));break;case 18:Dt!==null&&(pn?(e=Dt,r=r.stateNode,e.nodeType===8?Hh(e.parentNode,r):e.nodeType===1&&Hh(e,r),cl(e)):Hh(Dt,r.stateNode));break;case 4:n=Dt,o=pn,Dt=r.stateNode.containerInfo,pn=!0,bo(e,t,r),Dt=n,pn=o;break;case 0:case 11:case 14:case 15:if(!tr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Um(r,t,a),o=o.next}while(o!==n)}bo(e,t,r);break;case 1:if(!tr&&(pa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dt(r,t,s)}bo(e,t,r);break;case 21:bo(e,t,r);break;case 22:r.mode&1?(tr=(n=tr)||r.memoizedState!==null,bo(e,t,r),tr=n):bo(e,t,r);break;default:bo(e,t,r)}}function Ob(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new R2),t.forEach(function(n){var o=A2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=mt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T2(n/1960))-n,10e?16:e,To===null)var n=!1;else{if(e=To,To=null,Kc=0,Ie&6)throw Error(re(331));var o=Ie;for(Ie|=4,me=e.current;me!==null;){var i=me,a=i.child;if(me.flags&16){var s=i.deletions;if(s!==null){for(var u=0;umt()-pg?gi(e,0):hg|=r),xr(e,t)}function TR(e,t){t===0&&(e.mode&1?(t=Cu,Cu<<=1,!(Cu&130023424)&&(Cu=4194304)):t=1);var r=dr();e=fo(e,t),e!==null&&($l(e,t,r),xr(e,r))}function N2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function A2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(t),TR(e,r)}var ER;ER=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return br=!1,_2(e,t,r);br=!!(e.flags&131072)}else br=!1,rt&&t.flags&1048576&&jC(t,Dc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ac(e,t),e=t.pendingProps;var o=Oa(t,nr.current);wa(t,r),o=sg(null,t,n,e,o,r);var i=lg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_r(n)?(i=!0,Lc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rg(t),o.updater=Nd,t.stateNode=o,o._reactInternals=t,Mm(t,n,e,r),t=Dm(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&Yv(t),ur(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ac(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=L2(n),e=hn(n,e),o){case 0:t=$m(null,t,n,e,r);break e;case 1:t=Rb(null,t,n,e,r);break e;case 11:t=xb(null,t,n,e,r);break e;case 14:t=Cb(null,t,n,hn(n.type,e),r);break e}throw Error(re(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),$m(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Rb(e,t,n,o,r);case 3:e:{if(fR(t),e===null)throw Error(re(387));n=t.pendingProps,i=t.memoizedState,o=i.element,MC(e,t),Wc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Na(Error(re(423)),t),t=kb(e,t,n,r,o);break e}else if(n!==o){o=Na(Error(re(424)),t),t=kb(e,t,n,r,o);break e}else for(Ar=No(t.stateNode.containerInfo.firstChild),Mr=t,rt=!0,mn=null,r=FC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ia(),n===o){t=ho(e,t,r);break e}ur(e,t,n,r)}t=t.child}return t;case 5:return BC(t),e===null&&zm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Tm(n,o)?a=null:i!==null&&Tm(n,i)&&(t.flags|=32),dR(e,t),ur(e,t,a,r),t.child;case 6:return e===null&&zm(t),null;case 13:return hR(e,t,r);case 4:return ng(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ja(t,null,n,r):ur(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),xb(e,t,n,o,r);case 7:return ur(e,t,t.pendingProps,r),t.child;case 8:return ur(e,t,t.pendingProps.children,r),t.child;case 12:return ur(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ve(Fc,n._currentValue),n._currentValue=a,i!==null)if(wn(i.value,a)){if(i.children===o.children&&!wr.current){t=ho(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=lo(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),Nm(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(re(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Nm(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ur(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,wa(t,r),o=tn(o),n=n(o),t.flags|=1,ur(e,t,n,r),t.child;case 14:return n=t.type,o=hn(n,t.pendingProps),o=hn(n.type,o),Cb(e,t,n,o,r);case 15:return uR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),ac(e,t),t.tag=1,_r(n)?(e=!0,Lc(t)):e=!1,wa(t,r),$C(t,n,o),Mm(t,n,o,r),Dm(null,t,n,!0,e,r);case 19:return pR(e,t,r);case 22:return cR(e,t,r)}throw Error(re(156,t.tag))};function OR(e,t){return rC(e,t)}function M2(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jr(e,t,r,n){return new M2(e,t,r,n)}function yg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L2(e){if(typeof e=="function")return yg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lv)return 11;if(e===$v)return 14}return 2}function $o(e,t){var r=e.alternate;return r===null?(r=Jr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function uc(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")yg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ia:return yi(r.children,o,i,t);case Mv:a=8,o|=8;break;case am:return e=Jr(12,r,t,o|2),e.elementType=am,e.lanes=i,e;case sm:return e=Jr(13,r,t,o),e.elementType=sm,e.lanes=i,e;case lm:return e=Jr(19,r,t,o),e.elementType=lm,e.lanes=i,e;case Dx:return $d(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lx:a=10;break e;case $x:a=9;break e;case Lv:a=11;break e;case $v:a=14;break e;case wo:a=16,n=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Jr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yi(e,t,r,n){return e=Jr(7,e,n,t),e.lanes=r,e}function $d(e,t,r,n){return e=Jr(22,e,n,t),e.elementType=Dx,e.lanes=r,e.stateNode={isHidden:!1},e}function Jh(e,t,r){return e=Jr(6,e,null,t),e.lanes=r,e}function Zh(e,t,r){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $2(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sg(e,t,r,n,o,i,a,s,u){return e=new $2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},rg(i),e}function D2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),jx.exports=Wr;var Wl=jx.exports,$b=Wl;om.createRoot=$b.createRoot,om.hydrateRoot=$b.hydrateRoot;/** + * @remix-run/router v1.15.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q2(){return Math.random().toString(36).substr(2,8)}function Fb(e,t){return{usr:e.state,key:e.key,idx:t}}function Xm(e,t,r,n){return r===void 0&&(r=null),_l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ts(t):t,{state:r,key:t&&t.key||n||q2()})}function Xc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ts(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function G2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Eo.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(_l({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Eo.Pop;let C=d(),v=C==null?null:C-c;c=C,u&&u({action:s,location:g.location,delta:v})}function p(C,v){s=Eo.Push;let b=Xm(g.location,C,v);r&&r(b,C),c=d()+1;let _=Fb(b,c),k=g.createHref(b);try{a.pushState(_,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&u&&u({action:s,location:g.location,delta:1})}function y(C,v){s=Eo.Replace;let b=Xm(g.location,C,v);r&&r(b,C),c=d();let _=Fb(b,c),k=g.createHref(b);a.replaceState(_,"",k),i&&u&&u({action:s,location:g.location,delta:0})}function S(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:Xc(C);return Rt(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return s},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Db,f),u=C,()=>{o.removeEventListener(Db,f),u=null}},createHref(C){return t(o,C)},createURL:S,encodeLocation(C){let v=S(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:y,go(C){return a.go(C)}};return g}var Bb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bb||(Bb={}));function V2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ts(t):t,o=Cg(n.pathname||"/",r);if(o==null)return null;let i=AR(e);K2(i);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Rt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Do([n,u.relativePath]),d=r.concat(u);i.children&&i.children.length>0&&(Rt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),AR(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:tj(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let u of MR(i.path))o(i,a,u)}),t}function MR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=MR(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function K2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rj(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Y2=/^:[\w-]+$/,Q2=3,X2=2,J2=1,Z2=10,ej=-2,Wb=e=>e==="*";function tj(e,t){let r=e.split("/"),n=r.length;return r.some(Wb)&&(n+=ej),t&&(n+=X2),r.filter(o=>!Wb(o)).reduce((o,i)=>o+(Y2.test(i)?Q2:i===""?J2:Z2),n)}function rj(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function nj(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{let{paramName:p,isOptional:y}=d;if(p==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const S=s[f];return y&&!S?c[p]=void 0:c[p]=sj(S||"",p),c},{}),pathname:i,pathnameBase:a,pattern:e}}function ij(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),xg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function aj(e){try{return decodeURI(e)}catch(t){return xg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sj(e,t){try{return decodeURIComponent(e)}catch(r){return xg(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Cg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function lj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ts(e):e;return{pathname:r?r.startsWith("/")?r:uj(r,t):t,search:fj(n),hash:hj(o)}}function uj(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ep(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function cj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function LR(e,t){let r=cj(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function $R(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=ts(e):(o=_l({},e),Rt(!o.pathname||!o.pathname.includes("?"),ep("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),ep("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),ep("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=r;else{let f=t.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=lj(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Do=e=>e.join("/").replace(/\/\/+/g,"/"),dj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DR=["post","put","patch","delete"];new Set(DR);const mj=["get",...DR];new Set(mj);/** + * React Router v6.22.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),N.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=$R(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Do([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,a,i,e])}const bj=N.createContext(null);function wj(e){let t=N.useContext(Jo).outlet;return t&&N.createElement(bj.Provider,{value:e},t)}function WR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=N.useContext(Mi),{matches:o}=N.useContext(Jo),{pathname:i}=Hd(),a=JSON.stringify(LR(o,n.v7_relativeSplatPath));return N.useMemo(()=>$R(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function _j(e,t){return xj(e,t)}function xj(e,t,r,n){Ul()||Rt(!1);let{navigator:o}=N.useContext(Mi),{matches:i}=N.useContext(Jo),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Hd(),d;if(t){var f;let C=typeof t=="string"?ts(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Rt(!1),d=C}else d=c;let p=d.pathname||"/",y=u==="/"?p:p.slice(u.length)||"/",S=V2(e,{pathname:y}),g=Tj(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Do([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Do([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,r,n);return t&&g?N.createElement(Ud.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Eo.Pop}},g):g}function Cj(){let e=jj(),t=pj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),r?N.createElement("pre",{style:o},r):null,i)}const Rj=N.createElement(Cj,null);class kj extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?N.createElement(Jo.Provider,{value:this.props.routeContext},N.createElement(FR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Pj(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(Rg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Jo.Provider,{value:t},n)}function Tj(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let a=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id]));d>=0||Rt(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let y,S=!1,g=null,C=null;r&&(y=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Rj,u&&(c<0&&p===0?(Nj("route-fallback",!1),S=!0,C=null):c===p&&(S=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,p+1)),b=()=>{let _;return y?_=g:S?_=C:f.route.Component?_=N.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=d,N.createElement(Pj,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:_})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(kj,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var UR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(UR||{}),Jc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Jc||{});function Ej(e){let t=N.useContext(Rg);return t||Rt(!1),t}function Oj(e){let t=N.useContext(vj);return t||Rt(!1),t}function Ij(e){let t=N.useContext(Jo);return t||Rt(!1),t}function HR(e){let t=Ij(),r=t.matches[t.matches.length-1];return r.route.id||Rt(!1),r.route.id}function jj(){var e;let t=N.useContext(FR),r=Oj(Jc.UseRouteError),n=HR(Jc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function zj(){let{router:e}=Ej(UR.UseNavigateStable),t=HR(Jc.UseNavigateStable),r=N.useRef(!1);return BR(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}const Ub={};function Nj(e,t,r){!t&&!Ub[e]&&(Ub[e]=!0)}function Aj(e){return wj(e.context)}function Xt(e){Rt(!1)}function Mj(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Eo.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&Rt(!1);let u=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:u,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},s)}),[u,s,i,a]);typeof n=="string"&&(n=ts(n));let{pathname:d="/",search:f="",hash:p="",state:y=null,key:S="default"}=n,g=N.useMemo(()=>{let C=Cg(d,u);return C==null?null:{location:{pathname:C,search:f,hash:p,state:y,key:S},navigationType:o}},[u,d,f,p,y,S,o]);return g==null?null:N.createElement(Mi.Provider,{value:c},N.createElement(Ud.Provider,{children:r,value:g}))}function Lj(e){let{children:t,location:r}=e;return _j(Jm(t),r)}new Promise(()=>{});function Jm(e,t){t===void 0&&(t=[]);let r=[];return N.Children.forEach(e,(n,o)=>{if(!N.isValidElement(n))return;let i=[...t,o];if(n.type===N.Fragment){r.push.apply(r,Jm(n.props.children,i));return}n.type!==Xt&&Rt(!1),!n.props.index||!n.props.children||Rt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Jm(n.props.children,i)),r.push(a)}),r}/** + * React Router DOM v6.22.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Dj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fj(e,t){return e.button===0&&(!t||t==="_self")&&!Dj(e)}const Bj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Wj="6";try{window.__reactRouterVersion=Wj}catch{}const Uj="startTransition",Hb=Ta[Uj];function Hj(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=H2({window:o,v5Compat:!0}));let a=i.current,[s,u]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},d=N.useCallback(f=>{c&&Hb?Hb(()=>u(f)):u(f)},[u,c]);return N.useLayoutEffect(()=>a.listen(d),[a,d]),N.createElement(Mj,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const qj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yr=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,p=$j(t,Bj),{basename:y}=N.useContext(Mi),S,g=!1;if(typeof c=="string"&&Gj.test(c)&&(S=c,qj))try{let _=new URL(window.location.href),k=c.startsWith("//")?new URL(_.protocol+c):new URL(c),T=Cg(k.pathname,y);k.origin===_.origin&&T!=null?c=T+k.search+k.hash:g=!0}catch{}let C=gj(c,{relative:o}),v=Vj(c,{replace:a,state:s,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function b(_){n&&n(_),_.defaultPrevented||v(_)}return N.createElement("a",Zm({},p,{href:S||C,onClick:g||i?n:b,ref:r,target:u}))});var qb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qb||(qb={}));var Gb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gb||(Gb={}));function Vj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,u=yj(),c=Hd(),d=WR(e,{relative:a});return N.useCallback(f=>{if(Fj(f,r)){f.preventDefault();let p=n!==void 0?n:Xc(c)===Xc(d);u(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,u,d,n,o,r,e,i,a,s])}var qR={exports:{}},GR={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ma=N;function Kj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yj=typeof Object.is=="function"?Object.is:Kj,Qj=Ma.useState,Xj=Ma.useEffect,Jj=Ma.useLayoutEffect,Zj=Ma.useDebugValue;function ez(e,t){var r=t(),n=Qj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Jj(function(){o.value=r,o.getSnapshot=t,tp(o)&&i({inst:o})},[e,r,t]),Xj(function(){return tp(o)&&i({inst:o}),e(function(){tp(o)&&i({inst:o})})},[e]),Zj(r),r}function tp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Yj(e,r)}catch{return!0}}function tz(e,t){return t()}var rz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tz:ez;GR.useSyncExternalStore=Ma.useSyncExternalStore!==void 0?Ma.useSyncExternalStore:rz;qR.exports=GR;var nz=qR.exports,VR={exports:{}},KR={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qd=N,oz=nz;function iz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var az=typeof Object.is=="function"?Object.is:iz,sz=oz.useSyncExternalStore,lz=qd.useRef,uz=qd.useEffect,cz=qd.useMemo,dz=qd.useDebugValue;KR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=lz(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=cz(function(){function u(y){if(!c){if(c=!0,d=y,y=n(y),o!==void 0&&a.hasValue){var S=a.value;if(o(S,y))return f=S}return f=y}if(S=f,az(d,y))return S;var g=n(y);return o!==void 0&&o(S,g)?S:(d=y,f=g)}var c=!1,d,f,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,n,o]);var s=sz(e,i[0],i[1]);return uz(function(){a.hasValue=!0,a.value=s},[s]),dz(s),s};VR.exports=KR;var fz=VR.exports;function hz(e){e()}let YR=hz;const pz=e=>YR=e,mz=()=>YR,Vb=Symbol.for("react-redux-context"),Kb=typeof globalThis<"u"?globalThis:{};function vz(){var e;if(!N.createContext)return{};const t=(e=Kb[Vb])!=null?e:Kb[Vb]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const qo=vz();function kg(e=qo){return function(){return N.useContext(e)}}const QR=kg(),gz=()=>{throw new Error("uSES not initialized!")};let XR=gz;const yz=e=>{XR=e},Sz=(e,t)=>e===t;function bz(e=qo){const t=e===qo?QR:kg(e);return function(n,o={}){const{equalityFn:i=Sz,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:c,getServerState:d,stabilityCheck:f,noopCheck:p}=t();N.useRef(!0);const y=N.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),S=XR(c.addNestedSub,u.getState,d||u.getState,y,i);return N.useDebugValue(S),S}}const Ee=bz();function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var JR={exports:{}},We={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mt=typeof Symbol=="function"&&Symbol.for,Pg=Mt?Symbol.for("react.element"):60103,Tg=Mt?Symbol.for("react.portal"):60106,Gd=Mt?Symbol.for("react.fragment"):60107,Vd=Mt?Symbol.for("react.strict_mode"):60108,Kd=Mt?Symbol.for("react.profiler"):60114,Yd=Mt?Symbol.for("react.provider"):60109,Qd=Mt?Symbol.for("react.context"):60110,Eg=Mt?Symbol.for("react.async_mode"):60111,Xd=Mt?Symbol.for("react.concurrent_mode"):60111,Jd=Mt?Symbol.for("react.forward_ref"):60112,Zd=Mt?Symbol.for("react.suspense"):60113,wz=Mt?Symbol.for("react.suspense_list"):60120,ef=Mt?Symbol.for("react.memo"):60115,tf=Mt?Symbol.for("react.lazy"):60116,_z=Mt?Symbol.for("react.block"):60121,xz=Mt?Symbol.for("react.fundamental"):60117,Cz=Mt?Symbol.for("react.responder"):60118,Rz=Mt?Symbol.for("react.scope"):60119;function Hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pg:switch(e=e.type,e){case Eg:case Xd:case Gd:case Kd:case Vd:case Zd:return e;default:switch(e=e&&e.$$typeof,e){case Qd:case Jd:case tf:case ef:case Yd:return e;default:return t}}case Tg:return t}}}function ZR(e){return Hr(e)===Xd}We.AsyncMode=Eg;We.ConcurrentMode=Xd;We.ContextConsumer=Qd;We.ContextProvider=Yd;We.Element=Pg;We.ForwardRef=Jd;We.Fragment=Gd;We.Lazy=tf;We.Memo=ef;We.Portal=Tg;We.Profiler=Kd;We.StrictMode=Vd;We.Suspense=Zd;We.isAsyncMode=function(e){return ZR(e)||Hr(e)===Eg};We.isConcurrentMode=ZR;We.isContextConsumer=function(e){return Hr(e)===Qd};We.isContextProvider=function(e){return Hr(e)===Yd};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pg};We.isForwardRef=function(e){return Hr(e)===Jd};We.isFragment=function(e){return Hr(e)===Gd};We.isLazy=function(e){return Hr(e)===tf};We.isMemo=function(e){return Hr(e)===ef};We.isPortal=function(e){return Hr(e)===Tg};We.isProfiler=function(e){return Hr(e)===Kd};We.isStrictMode=function(e){return Hr(e)===Vd};We.isSuspense=function(e){return Hr(e)===Zd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gd||e===Xd||e===Kd||e===Vd||e===Zd||e===wz||typeof e=="object"&&e!==null&&(e.$$typeof===tf||e.$$typeof===ef||e.$$typeof===Yd||e.$$typeof===Qd||e.$$typeof===Jd||e.$$typeof===xz||e.$$typeof===Cz||e.$$typeof===Rz||e.$$typeof===_z)};We.typeOf=Hr;JR.exports=We;var kz=JR.exports,ek=kz,Pz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tk={};tk[ek.ForwardRef]=Pz;tk[ek.Memo]=Tz;var He={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Og=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),rf=Symbol.for("react.fragment"),nf=Symbol.for("react.strict_mode"),of=Symbol.for("react.profiler"),af=Symbol.for("react.provider"),sf=Symbol.for("react.context"),Ez=Symbol.for("react.server_context"),lf=Symbol.for("react.forward_ref"),uf=Symbol.for("react.suspense"),cf=Symbol.for("react.suspense_list"),df=Symbol.for("react.memo"),ff=Symbol.for("react.lazy"),Oz=Symbol.for("react.offscreen"),rk;rk=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Og:switch(e=e.type,e){case rf:case of:case nf:case uf:case cf:return e;default:switch(e=e&&e.$$typeof,e){case Ez:case sf:case lf:case ff:case df:case af:return e;default:return t}}case Ig:return t}}}He.ContextConsumer=sf;He.ContextProvider=af;He.Element=Og;He.ForwardRef=lf;He.Fragment=rf;He.Lazy=ff;He.Memo=df;He.Portal=Ig;He.Profiler=of;He.StrictMode=nf;He.Suspense=uf;He.SuspenseList=cf;He.isAsyncMode=function(){return!1};He.isConcurrentMode=function(){return!1};He.isContextConsumer=function(e){return an(e)===sf};He.isContextProvider=function(e){return an(e)===af};He.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Og};He.isForwardRef=function(e){return an(e)===lf};He.isFragment=function(e){return an(e)===rf};He.isLazy=function(e){return an(e)===ff};He.isMemo=function(e){return an(e)===df};He.isPortal=function(e){return an(e)===Ig};He.isProfiler=function(e){return an(e)===of};He.isStrictMode=function(e){return an(e)===nf};He.isSuspense=function(e){return an(e)===uf};He.isSuspenseList=function(e){return an(e)===cf};He.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===rf||e===of||e===nf||e===uf||e===cf||e===Oz||typeof e=="object"&&e!==null&&(e.$$typeof===ff||e.$$typeof===df||e.$$typeof===af||e.$$typeof===sf||e.$$typeof===lf||e.$$typeof===rk||e.getModuleId!==void 0)};He.typeOf=an;function Iz(){const e=mz();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const Yb={notify(){},get:()=>[]};function jz(e,t){let r,n=Yb,o=0,i=!1;function a(g){d();const C=n.subscribe(g);let v=!1;return()=>{v||(v=!0,C(),f())}}function s(){n.notify()}function u(){S.onStateChange&&S.onStateChange()}function c(){return i}function d(){o++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Iz())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Yb)}function p(){i||(i=!0,d())}function y(){i&&(i=!1,f())}const S={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>n};return S}const zz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nz=zz?N.useLayoutEffect:N.useEffect;function Az({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=jz(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=N.useMemo(()=>e.getState(),[e]);Nz(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const u=t||qo;return N.createElement(u.Provider,{value:a},r)}function nk(e=qo){const t=e===qo?QR:kg(e);return function(){const{store:n}=t();return n}}const Mz=nk();function Lz(e=qo){const t=e===qo?Mz:nk(e);return function(){return t().dispatch}}const Hl=Lz();yz(fz.useSyncExternalStoreWithSelector);pz(Wl.unstable_batchedUpdates);function gn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:jg(e)?2:zg(e)?3:0}function xa(e,t){return rs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $z(e,t){return rs(e)===2?e.get(t):e[t]}function ok(e,t,r){var n=rs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ik(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function jg(e){return Hz&&e instanceof Map}function zg(e){return qz&&e instanceof Set}function ui(e){return e.o||e.t}function Ng(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sk(e);delete t[tt];for(var r=Ca(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Dz),Object.freeze(e),t&&Ti(e,function(r,n){return Ag(n,!0)},!0)),e}function Dz(){gn(2)}function Mg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dn(e){var t=nv[e];return t||gn(18,e),t}function Fz(e,t){nv[e]||(nv[e]=t)}function ev(){return Cl}function rp(e,t){t&&(Dn("Patches"),e.u=[],e.s=[],e.v=t)}function Zc(e){tv(e),e.p.forEach(Bz),e.p=null}function tv(e){e===Cl&&(Cl=e.l)}function Qb(e){return Cl={p:[],l:Cl,h:e,m:!0,_:0}}function Bz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function np(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Dn("ES5").S(t,e,n),n?(r[tt].P&&(Zc(t),gn(4)),po(e)&&(e=ed(t,e),t.l||td(t,e)),t.u&&Dn("Patches").M(r[tt].t,e,t.u,t.s)):e=ed(t,r,[]),Zc(t),t.u&&t.v(t.u,t.s),e!==ak?e:void 0}function ed(e,t,r){if(Mg(t))return t;var n=t[tt];if(!n)return Ti(t,function(s,u){return Xb(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return td(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ng(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),Ti(i,function(s,u){return Xb(e,n,o,s,u,r,a)}),td(e,o,!1),r&&e.u&&Dn("Patches").N(n,r,e.u,e.s)}return n.o}function Xb(e,t,r,n,o,i,a){if(Go(o)){var s=ed(e,o,i&&t&&t.i!==3&&!xa(t.R,n)?i.concat(n):void 0);if(ok(r,n,s),!Go(s))return;e.m=!1}else a&&r.add(o);if(po(o)&&!Mg(o)){if(!e.h.D&&e._<1)return;ed(e,o),t&&t.A.l||td(e,o)}}function td(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ag(t,r)}function op(e,t){var r=e[tt];return(r?ui(r):e)[t]}function Jb(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ro(e){e.P||(e.P=!0,e.l&&Ro(e.l))}function ip(e){e.o||(e.o=Ng(e.t))}function rv(e,t,r){var n=jg(t)?Dn("MapSet").F(t,r):zg(t)?Dn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:ev(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=Rl;a&&(u=[s],c=Ms);var d=Proxy.revocable(u,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,r):Dn("ES5").J(t,r);return(r?r.A:ev()).p.push(n),n}function Wz(e){return Go(e)||gn(22,e),function t(r){if(!po(r))return r;var n,o=r[tt],i=rs(r);if(o){if(!o.P&&(o.i<4||!Dn("ES5").K(o)))return o.t;o.I=!0,n=Zb(r,i),o.I=!1}else n=Zb(r,i);return Ti(n,function(a,s){o&&$z(o.t,a)===s||ok(n,a,t(s))}),i===3?new Set(n):n}(e)}function Zb(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ng(e)}function Uz(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var u=this[tt];return Rl.get(u,i)},set:function(u){var c=this[tt];Rl.set(c,i,u)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][tt];if(!s.P)switch(s.i){case 5:n(s)&&Ro(s);break;case 4:r(s)&&Ro(s)}}}function r(i){for(var a=i.t,s=i.k,u=Ca(s),c=u.length-1;c>=0;c--){var d=u[c];if(d!==tt){var f=a[d];if(f===void 0&&!xa(a,d))return!0;var p=s[d],y=p&&p[tt];if(y?y.t!==f:!ik(p,f))return!0}}var S=!!a[tt];return u.length!==Ca(a).length+(S?0:1)}function n(i){var a=i.k;if(a.length!==i.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),_=1;_1?d-1:0),p=1;p=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Dn("Patches").$;return Go(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Br=new Vz,lk=Br.produce;Br.produceWithPatches.bind(Br);Br.setAutoFreeze.bind(Br);Br.setUseProxies.bind(Br);Br.applyPatches.bind(Br);Br.createDraft.bind(Br);Br.finishDraft.bind(Br);function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function Kz(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uk(e){var t=Kz(e,"string");return La(t)=="symbol"?t:String(t)}function F(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function o1(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(er(1));return r($g)(e,t)}if(typeof e!="function")throw new Error(er(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function d(){if(u)throw new Error(er(3));return i}function f(g){if(typeof g!="function")throw new Error(er(4));if(u)throw new Error(er(5));var C=!0;return c(),s.push(g),function(){if(C){if(u)throw new Error(er(6));C=!1,c();var b=s.indexOf(g);s.splice(b,1),a=null}}}function p(g){if(!Yz(g))throw new Error(er(7));if(typeof g.type>"u")throw new Error(er(8));if(u)throw new Error(er(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var C=a=s,v=0;v"u")throw new Error(er(12));if(typeof r(void 0,{type:rd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(er(13))})}function ck(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(er(14));f[y]=C,d=d||C!==g}return d=d||i.length!==Object.keys(u).length,d?f:u}}function nd(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return od}function o(s,u){n(s)===od&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var eN=function(t,r){return t===r};function tN(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,i=0;i1?t-1:0),n=1;n0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]{let r=e.sessions.findIndex(n=>n.pin===t.payload.pin);r!==-1?e.sessions[r]=t.payload:e.sessions.push(t.payload),e.activeSessionPin=t.payload.pin},updateNodesInfoInCurrentSession:(e,t)=>{let r=e.sessions.findIndex(n=>n.pin===e.activeSessionPin);r!==-1&&(e.sessions[r].nodes=t.payload,t.payload.length>0&&(e.activeNodeId=t.payload[0].id))},setActiveSessionPin:(e,t)=>{e.activeSessionPin=t.payload,e.activeNodeId=""},setActiveNodeId:(e,t)=>{e.activeNodeId=t.payload},addOrUpdateNodeVersion:(e,t)=>{let r=e.nodeVersions.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeVersions[r]=t.payload:e.nodeVersions.push(t.payload)},addOrUpdateNodeFlags:(e,t)=>{let r=e.flags.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.flags[r]=t.payload:e.flags.push(t.payload)},addOrUpdateCmdLineArgs:(e,t)=>{let r=e.cmdLineArgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cmdLineArgs[r]=t.payload:e.cmdLineArgs.push(t.payload)},addOrUpdateNodeLogs:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);r!==-1?e.nodeLogs[r]=t.payload:e.nodeLogs.push(t.payload)},addOrUpdateSyncStages:(e,t)=>{let r=e.syncStages.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.syncStages[r]=t.payload:e.syncStages.push(t.payload)},setLogWithNameSelected:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);if(r!==-1){e.nodeLogs[r].logFiles.forEach(o=>{o.selected=!1});let n=e.nodeLogs[r].logFiles.findIndex(o=>o.name===t.payload);n!==-1&&(e.nodeLogs[r].logFiles[n].selected=!0)}},addOrUpdateDBs:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.dbs[r]=t.payload:e.dbs.push(t.payload)},addOrUpdateDBTable:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.dbs[r].dbs.findIndex(o=>o.path===t.payload.path);n!==-1?e.dbs[r].dbs[n].tables=t.payload.tables:e.dbs[r].dbs.push({path:t.payload.path,tables:t.payload.tables})}},addOrUpdateReorg:(e,t)=>{let r=e.reorgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.reorgs[r]=t.payload:e.reorgs.push(t.payload)},resetAppStateToMockState:e=>{e.sessions=[],e.activeSession=null,e.activeSessionPin="",e.activeNodeId="",e.nodeVersions=[],e.flags=[],e.cmdLineArgs=[],e.nodeLogs=[],e.syncStages=[],e.dbs=[],e.reorgs=[]}}}),{addOrUpdateSession:IN,updateNodesInfoInCurrentSession:jN,setActiveSessionPin:zN,setActiveNodeId:NN,addOrUpdateNodeVersion:AN,addOrUpdateNodeFlags:MN,addOrUpdateCmdLineArgs:LN,addOrUpdateNodeLogs:$N,addOrUpdateSyncStages:DN,setLogWithNameSelected:FN,addOrUpdateDBs:BN,addOrUpdateDBTable:WN,addOrUpdateReorg:UN,resetAppStateToMockState:HN}=mk.actions,vk=e=>e.app.sessions,Fg=e=>e.app.activeSessionPin,kt=e=>e.app.activeNodeId,gk=e=>e.app.nodeVersions,qN=e=>e.app.flags,GN=e=>e.app.cmdLineArgs,VN=e=>e.app.nodeLogs,KN=e=>e.app.syncStages,YN=e=>e.app.dbs,QN=e=>e.app.reorgs,yk=Ue([vk,Fg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Bg=Ue([yk],e=>{let t=[];return e!=null&&(t=e.nodes),t}),XN=Ue([vk,Fg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),JN=Ue([Bg,kt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),ZN=Ue([Bg,kt,gk],(e,t,r)=>{let n=null;return e.forEach(o=>{if(o.id===t){let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n={active:!0,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""}}}),n}),eA=Ue([Bg,kt,gk],(e,t,r)=>{let n=[];return e.forEach(o=>{let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n.push({active:o.id===t,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""})}),n}),tA=Ue([qN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),rA=Ue([GN,kt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),nA=Ue([VN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),oA=Ue([KN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),Sk=Ue([YN,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),iA=Ue([QN,kt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),aA=mk.reducer,ks=({tab:e,selectedTab:t,testId:r,onButtonClicked:n})=>{const o=i=>{let a="px-4 py-2 text-sm font-medium border-blue-600 hover:bg-blue-700 hover:text-white";const s="bg-blue-600 text-white",u="bg-white text-blue-600 outline-top",c="border-l border-r border-t border-b rounded-tl-md rounded-bl-md",d="border-r border-t border-b rounded-tr-md rounded-br-md",f="border-r border-t border-b";return i===hv.Command?a=a+" "+c:i===hv.Reorgs?a=a+" "+d:a=a+" "+f,i===t?a+" "+s:a+" "+u};return m.jsx("button",{className:o(e),onClick:()=>{n(e)},"data-testid":r,children:e})},sA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),lA=({flag:e})=>{function t(o){return o&&typeof o=="object"&&o.constructor===Array}const r=o=>t(o)?n(o):m.jsx("td",{className:"px-4 py-2",children:String(o)}),n=o=>m.jsx(m.Fragment,{children:o.map(i=>m.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:m.jsx("td",{className:"px-4 py-2",children:i+""})},i))});return m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onMouseOver:o=>{const i=o.target,a=e.usage;a&&i.setAttribute("title",a)},children:[m.jsx("td",{className:"px-4 py-2",children:e.flag}),r(e.value),m.jsx("td",{className:"px-4 py-2",children:String(e.default)})]},e.flag)};var Wg={},bk={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bk);var nt=bk.exports,up={};function ko(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wk(e){if(!ko(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=wk(e[r])}),t}function bn(e,t,r={clone:!0}){const n=r.clone?ne({},e):e;return ko(e)&&ko(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ko(t[o])&&o in e&&ko(e[o])?n[o]=bn(e[o],t[o],r):r.clone?n[o]=ko(t[o])?wk(t[o]):t[o]:n[o]=t[o])}),n}var cp={exports:{}},dp,d1;function uA(){if(d1)return dp;d1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dp=e,dp}var fp,f1;function cA(){if(f1)return fp;f1=1;var e=uA();function t(){}function r(){}return r.resetWarningCache=t,fp=function(){function n(a,s,u,c,d,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},fp}var h1;function _k(){return h1||(h1=1,cp.exports=cA()()),cp.exports}_k();function Da(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function fA(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function hA(e,t){return()=>null}function pA(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function xk(e){return e&&e.ownerDocument||document}function mA(e){return xk(e).defaultView||window}function vA(e,t){return()=>null}function Ck(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const gA=typeof window<"u"?N.useLayoutEffect:N.useEffect,Rk=gA;let p1=0;function yA(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(p1+=1,r(`mui-${p1}`))},[t]),n}const m1=Ta["useId".toString()];function SA(e){if(m1!==void 0){const t=m1();return e??t}return yA(e)}function bA(e,t,r,n,o){return null}function kk({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,a]=N.useState(t),s=o?e:i,u=N.useCallback(c=>{o||a(c)},[]);return[s,u]}function Ls(e){const t=N.useRef(e);return Rk(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function iv(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ck(r,t)})},e)}const v1={};function wA(e,t){const r=N.useRef(v1);return r.current===v1&&(r.current=e(t)),r}const _A=[];function xA(e){N.useEffect(e,_A)}class hf{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new hf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function CA(){const e=wA(hf.create).current;return xA(e.disposeEffect),e}let pf=!0,av=!1;const RA=new hf,kA={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function PA(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&kA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function TA(e){e.metaKey||e.altKey||e.ctrlKey||(pf=!0)}function hp(){pf=!1}function EA(){this.visibilityState==="hidden"&&av&&(pf=!0)}function OA(e){e.addEventListener("keydown",TA,!0),e.addEventListener("mousedown",hp,!0),e.addEventListener("pointerdown",hp,!0),e.addEventListener("touchstart",hp,!0),e.addEventListener("visibilitychange",EA,!0)}function IA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return pf||PA(t)}function Pk(){const e=N.useCallback(o=>{o!=null&&OA(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(av=!0,RA.start(100,()=>{av=!1}),t.current=!1,!0):!1}function n(o){return IA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Tk(e,t){const r=ne({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ne({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=ne({},i),Object.keys(o).forEach(a=>{r[n][a]=Tk(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function qn(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}const g1=e=>e,jA=()=>{let e=g1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=g1}}},zA=jA(),Ek=zA,NA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function xn(e,t,r="Mui"){const n=NA[t];return n?`${r}-${n}`:`${Ek.generate(e)}-${t}`}function Gn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=xn(e,o,r)}),n}function AA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ok(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t0?Ft(ns,--kr):0,Fa--,_t===10&&(Fa=1,vf--),_t}function Lr(){return _t=kr2||Pl(_t)>3?"":" "}function XA(e,t){for(;--t&&Lr()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Gl(e,cc()+(t<6&&Fn()==32&&Lr()==32))}function lv(e){for(;Lr();)switch(_t){case e:return kr;case 34:case 39:e!==34&&e!==39&&lv(_t);break;case 40:e===41&&lv(e);break;case 92:Lr();break}return kr}function JA(e,t){for(;Lr()&&e+_t!==47+10;)if(e+_t===42+42&&Fn()===47)break;return"/*"+Gl(t,kr-1)+"*"+mf(e===47?e:Lr())}function ZA(e){for(;!Pl(Fn());)Lr();return Gl(e,kr)}function eM(e){return Lk(fc("",null,null,null,[""],e=Mk(e),0,[0],e))}function fc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,_="",k=o,T=i,E=n,x=_;C;)switch(S=b,b=Lr()){case 40:if(S!=108&&Ft(x,f-1)==58){sv(x+=Me(dc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=dc(b);break;case 9:case 10:case 13:case 32:x+=QA(S);break;case 92:x+=XA(cc()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Mu(tM(JA(Lr(),cc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=jn(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:v==-1&&(x=Me(x,/\f/g,"")),y>0&&jn(x)-f&&Mu(y>32?S1(x+";",n,r,f-1):S1(Me(x," ","")+";",n,r,f-2),u);break;case 59:x+=";";default:if(Mu(E=y1(x,t,r,c,d,o,s,_,k=[],T=[],f),i),b===123)if(d===0)fc(x,t,E,E,k,i,f,s,T);else switch(p===99&&Ft(x,3)===110?100:p){case 100:case 108:case 109:case 115:fc(e,E,E,n&&Mu(y1(e,E,E,0,0,o,s,_,o,k=[],f),T),o,T,f,s,n?k:T);break;default:fc(x,E,E,E,[""],T,0,s,T)}}c=d=y=0,g=v=1,_=x="",f=a;break;case 58:f=1+jn(x),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&YA()==125)continue}switch(x+=mf(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(jn(x)-1)*v,v=1;break;case 64:Fn()===45&&(x+=dc(Lr())),p=Fn(),d=f=jn(_=x+=ZA(cc())),b++;break;case 45:S===45&&jn(x)==2&&(g=0)}}return i}function y1(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=qg(p),S=0,g=0,C=0;S0?p[v]+" "+b:Me(b,/&\f/g,p[v])))&&(u[C++]=_);return gf(e,t,r,o===0?Ug:s,u,c,d)}function tM(e,t,r){return gf(e,t,r,jk,mf(KA()),kl(e,2,-2),0)}function S1(e,t,r,n){return gf(e,t,r,Hg,kl(e,0,n),kl(e,n+1,-1),n)}function Ra(e,t){for(var r="",n=qg(e),o=0;o6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+id+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sv(e,"stretch")?$k(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ft(e,t+1)!==115)break;case 6444:switch(Ft(e,jn(e)-3-(~sv(e,"!important")&&10))){case 107:return Me(e,":",":"+Ne)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Ft(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Jt+e+e}return e}var cM=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Hg:t.return=$k(t.value,t.length);break;case zk:return Ra([Ps(t,{value:Me(t.value,"@","@"+Ne)})],o);case Ug:if(t.length)return VA(t.props,function(i){switch(GA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ra([Ps(t,{props:[Me(i,/:(read-\w+)/,":"+id+"$1")]})],o);case"::placeholder":return Ra([Ps(t,{props:[Me(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),Ps(t,{props:[Me(i,/:(plac\w+)/,":"+id+"$1")]}),Ps(t,{props:[Me(i,/:(plac\w+)/,Jt+"input-$1")]})],o)}return""})}},dM=[cM],fM=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||dM,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yM=/[A-Z]|^ms/g,SM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fk=function(t){return t.charCodeAt(1)===45},w1=function(t){return t!=null&&typeof t!="boolean"},pp=Ik(function(e){return Fk(e)?e:e.replace(yM,"-$&").toLowerCase()}),_1=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(SM,function(n,o,i){return zn={name:o,styles:i,next:zn},o})}return gM[t]!==1&&!Fk(t)&&typeof r=="number"&&r!==0?r+"px":r};function Tl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return zn={name:r.name,styles:r.styles,next:zn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)zn={name:n.name,styles:n.styles,next:zn},n=n.next;var o=r.styles+";";return o}return bM(e,t,r)}case"function":{if(e!==void 0){var i=zn,a=r(e);return zn=i,Tl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function bM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?kM:PM},R1=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},TM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dk(r,n,o),xM(function(){return mM(r,n,o)}),null},EM=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=R1(t,r,n),u=s||C1(o),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,y=1;y{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zM=["values","unit","step"],NM=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>ne({},r,{[n.key]:n.val}),{})};function AM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=lt(e,zM),i=NM(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,y){const S=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(S!==-1&&typeof t[a[S]]=="number"?t[a[S]]:y)-n/100}${r})`}function d(p){return a.indexOf(p)+1`@media (min-width:${Vg[e]}px)`};function _n(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||k1;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||k1;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Vg).indexOf(s)!==-1){const u=i.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function Hk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function qk(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function $M(e,...t){const r=Hk(e),n=[r,...t].reduce((o,i)=>bn(o,i),{});return qk(Object.keys(r),n)}function DM(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i{e[o]!=null&&(r[o]=!0)}),r}function mp({values:e,breakpoints:t,base:r}){const n=r||DM(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,u)=>(Array.isArray(e)?(a[s]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function yf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function ad(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=yf(e,r)||n,t&&(o=t(o,n,e)),o}function vt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,c=yf(u,n)||{};return _n(a,s,f=>{let p=ad(c,o,f);return f===p&&typeof f=="string"&&(p=ad(c,o,`${t}${f==="default"?"":Ke(f)}`,f)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function FM(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const BM={m:"margin",p:"padding"},WM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},P1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},UM=FM(e=>{if(e.length>2)if(P1[e])e=P1[e];else return[e];const[t,r]=e.split(""),n=BM[t],o=WM[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Kg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Yg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Kg,...Yg];function Vl(e,t,r,n){var o;const i=(o=yf(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Qg(e){return Vl(e,"spacing",8)}function Ei(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function HM(e,t){return r=>e.reduce((n,o)=>(n[o]=Ei(t,r),n),{})}function qM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=UM(r),i=HM(o,n),a=e[r];return _n(e,a,i)}function Gk(e,t){const r=Qg(e.theme);return Object.keys(e).map(n=>qM(e,t,n,r)).reduce(el,{})}function ut(e){return Gk(e,Kg)}ut.propTypes={};ut.filterProps=Kg;function ct(e){return Gk(e,Yg)}ct.propTypes={};ct.filterProps=Yg;function GM(e=8){if(e.mui)return e;const t=Qg({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Sf(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?el(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Xr(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return vt({prop:e,themeKey:"borders",transform:t})}const VM=sn("border",Xr),KM=sn("borderTop",Xr),YM=sn("borderRight",Xr),QM=sn("borderBottom",Xr),XM=sn("borderLeft",Xr),JM=sn("borderColor"),ZM=sn("borderTopColor"),e4=sn("borderRightColor"),t4=sn("borderBottomColor"),r4=sn("borderLeftColor"),n4=sn("outline",Xr),o4=sn("outlineColor"),bf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ei(t,n)});return _n(e,e.borderRadius,r)}return null};bf.propTypes={};bf.filterProps=["borderRadius"];Sf(VM,KM,YM,QM,XM,JM,ZM,e4,t4,r4,bf,n4,o4);const wf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({gap:Ei(t,n)});return _n(e,e.gap,r)}return null};wf.propTypes={};wf.filterProps=["gap"];const _f=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({columnGap:Ei(t,n)});return _n(e,e.columnGap,r)}return null};_f.propTypes={};_f.filterProps=["columnGap"];const xf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({rowGap:Ei(t,n)});return _n(e,e.rowGap,r)}return null};xf.propTypes={};xf.filterProps=["rowGap"];const i4=vt({prop:"gridColumn"}),a4=vt({prop:"gridRow"}),s4=vt({prop:"gridAutoFlow"}),l4=vt({prop:"gridAutoColumns"}),u4=vt({prop:"gridAutoRows"}),c4=vt({prop:"gridTemplateColumns"}),d4=vt({prop:"gridTemplateRows"}),f4=vt({prop:"gridTemplateAreas"}),h4=vt({prop:"gridArea"});Sf(wf,_f,xf,i4,a4,s4,l4,u4,c4,d4,f4,h4);function ka(e,t){return t==="grey"?t:e}const p4=vt({prop:"color",themeKey:"palette",transform:ka}),m4=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ka}),v4=vt({prop:"backgroundColor",themeKey:"palette",transform:ka});Sf(p4,m4,v4);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const g4=vt({prop:"width",transform:Nr}),Xg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Vg[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Nr(r)}};return _n(e,e.maxWidth,t)}return null};Xg.filterProps=["maxWidth"];const y4=vt({prop:"minWidth",transform:Nr}),S4=vt({prop:"height",transform:Nr}),b4=vt({prop:"maxHeight",transform:Nr}),w4=vt({prop:"minHeight",transform:Nr});vt({prop:"size",cssProperty:"width",transform:Nr});vt({prop:"size",cssProperty:"height",transform:Nr});const _4=vt({prop:"boxSizing"});Sf(g4,Xg,y4,S4,b4,w4,_4);const x4={border:{themeKey:"borders",transform:Xr},borderTop:{themeKey:"borders",transform:Xr},borderRight:{themeKey:"borders",transform:Xr},borderBottom:{themeKey:"borders",transform:Xr},borderLeft:{themeKey:"borders",transform:Xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bf},color:{themeKey:"palette",transform:ka},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ka},backgroundColor:{themeKey:"palette",transform:ka},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wf},rowGap:{style:xf},columnGap:{style:_f},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:Xg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cf=x4;function C4(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function R4(e,t){return typeof e=="function"?e(t):e}function k4(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=yf(o,c)||{};return f?f(a):_n(a,n,S=>{let g=ad(p,d,S);return S===g&&typeof S=="string"&&(g=ad(p,d,`${r}${S==="default"?"":Ke(S)}`,S)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:Cf;function s(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const d=Hk(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(y=>{const S=R4(c[y],i);if(S!=null)if(typeof S=="object")if(a[y])p=el(p,e(y,S,i,a));else{const g=_n({theme:i},S,C=>({[y]:C}));C4(g,S)?p[y]=t({sx:S,theme:i}):p=el(p,g)}else p=el(p,e(y,S,i,a))}),qk(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Vk=k4();Vk.filterProps=["sx"];const Jg=Vk;function P4(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const T4=["breakpoints","palette","spacing","shape"];function Rf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=lt(e,T4),s=AM(r),u=GM(o);let c=bn({breakpoints:s,direction:"ltr",components:{},palette:ne({mode:"light"},n),spacing:u,shape:ne({},LM,i)},a);return c.applyStyles=P4,c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=ne({},Cf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Jg({sx:f,theme:this})},c}function E4(e){return Object.keys(e).length===0}function O4(e=null){const t=N.useContext(Uk);return!t||E4(t)?e:t}const I4=Rf();function j4(e=I4){return O4(e)}const z4=["sx"],N4=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Cf;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Kk(e){const{sx:t}=e,r=lt(e,z4),{systemProps:n,otherProps:o}=N4(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return ko(s)?ne({},n,s):n}:i=ne({},n,t),ne({},o,{sx:i})}const A4=["ownerState"],M4=["variants"],L4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $4(e){return Object.keys(e).length===0}function D4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const F4=Rf(),B4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lu({defaultTheme:e,theme:t,themeId:r}){return $4(t)?e:t[r]||t}function W4(e){return e?(t,r)=>r[e]:null}function pc(e,t){let{ownerState:r}=t,n=lt(t,A4);const o=typeof e=="function"?e(ne({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>pc(i,ne({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=lt(o,M4);return i.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(ne({ownerState:r},n)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(ne({ownerState:r},n)):u.style))}),s}return o}function Yk(e={}){const{themeId:t,defaultTheme:r=F4,rootShouldForwardProp:n=hc,slotShouldForwardProp:o=hc}=e,i=a=>Jg(ne({},a,{theme:Lu(ne({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{jM(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=W4(B4(c))}=s,y=lt(s,L4),S=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let C,v=hc;c==="Root"||c==="root"?v=n:c?v=o:D4(a)&&(v=void 0);const b=IM(a,ne({shouldForwardProp:v,label:C},y)),_=T=>typeof T=="function"&&T.__emotion_real!==T||ko(T)?E=>pc(T,ne({},E,{theme:Lu({theme:E.theme,defaultTheme:r,themeId:t})})):T,k=(T,...E)=>{let x=_(T);const O=E?E.map(_):[];u&&p&&O.push(M=>{const B=Lu(ne({},M,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[u]||!B.components[u].styleOverrides)return null;const $=B.components[u].styleOverrides,D={};return Object.entries($).forEach(([Z,ae])=>{D[Z]=pc(ae,ne({},M,{theme:B}))}),p(M,D)}),u&&!S&&O.push(M=>{var B;const $=Lu(ne({},M,{defaultTheme:r,themeId:t})),D=$==null||(B=$.components)==null||(B=B[u])==null?void 0:B.variants;return pc({variants:D},ne({},M,{theme:$}))}),g||O.push(i);const I=O.length-E.length;if(Array.isArray(T)&&I>0){const M=new Array(I).fill("");x=[...T,...M],x.raw=[...T.raw,...M]}const j=b(x,...O);return a.muiName&&(j.muiName=a.muiName),j};return b.withConfig&&(k.withConfig=b.withConfig),k}}const U4=Yk(),H4=U4;function q4(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Tk(t.components[r].defaultProps,n)}function Qk({props:e,name:t,defaultTheme:r,themeId:n}){let o=j4(r);return n&&(o=o[n]||o),q4({theme:o,name:t,props:e})}function Zg(e,t=0,r=1){return AA(e,t,r)}function G4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Oi(e){if(e.type)return e;if(e.charAt(0)==="#")return Oi(G4(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Da(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Da(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function kf(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function V4(e){e=Oi(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,d=(c+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),kf({type:s,values:u})}function T1(e){e=Oi(e);let t=e.type==="hsl"||e.type==="hsla"?Oi(V4(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function K4(e,t){const r=T1(e),n=T1(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ba(e,t){return e=Oi(e),t=Zg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kf(e)}function sd(e,t){if(e=Oi(e),t=Zg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return kf(e)}function ld(e,t){if(e=Oi(e),t=Zg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return kf(e)}const Y4=["component","direction","spacing","divider","children","className","useFlexGap"],Q4=Rf(),X4=H4("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function J4(e){return Qk({props:e,name:"MuiStack",defaultTheme:Q4})}function Z4(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],tL=({ownerState:e,theme:t})=>{let r=ne({display:"flex",flexDirection:"column"},_n({theme:t},mp({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Qg(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),i=mp({values:e.direction,base:o}),a=mp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,c,d)=>{if(!i[u]){const p=c>0?i[d[c-1]]:"column";i[u]=p}}),r=bn(r,_n({theme:t},a,(u,c)=>e.useFlexGap?{gap:Ei(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${eL(c?i[c]:e.direction)}`]:Ei(n,u)}}))}return r=$M(t.breakpoints,r),r};function rL(e={}){const{createStyledComponent:t=X4,useThemeProps:r=J4,componentName:n="MuiStack"}=e,o=()=>qn({root:["root"]},u=>xn(n,u),{}),i=t(tL);return N.forwardRef(function(u,c){const d=r(u),f=Kk(d),{component:p="div",direction:y="column",spacing:S=0,divider:g,children:C,className:v,useFlexGap:b=!1}=f,_=lt(f,Y4),k={direction:y,spacing:S,useFlexGap:b},T=o();return m.jsx(i,ne({as:p,ownerState:k,ref:c,className:wt(T.root,v)},_,{children:g?Z4(C,g):C}))})}function nL(e,t){return ne({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const oL={black:"#000",white:"#fff"},El=oL,iL={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},aL=iL,sL={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Yi=sL,lL={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qi=lL,uL={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ts=uL,cL={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Xi=cL,dL={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ji=dL,fL={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Zi=fL,hL=["mode","contrastThreshold","tonalOffset"],E1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:El.white,default:El.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vp={text:{primary:El.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:El.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function O1(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ld(e.main,o):t==="dark"&&(e.dark=sd(e.main,i)))}function pL(e="light"){return e==="dark"?{main:Xi[200],light:Xi[50],dark:Xi[400]}:{main:Xi[700],light:Xi[400],dark:Xi[800]}}function mL(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function vL(e="light"){return e==="dark"?{main:Qi[500],light:Qi[300],dark:Qi[700]}:{main:Qi[700],light:Qi[400],dark:Qi[800]}}function gL(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[500],dark:Ji[900]}}function yL(e="light"){return e==="dark"?{main:Zi[400],light:Zi[300],dark:Zi[700]}:{main:Zi[800],light:Zi[500],dark:Zi[900]}}function SL(e="light"){return e==="dark"?{main:Ts[400],light:Ts[300],dark:Ts[700]}:{main:"#ed6c02",light:Ts[500],dark:Ts[900]}}function bL(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=lt(e,hL),i=e.primary||pL(t),a=e.secondary||mL(t),s=e.error||vL(t),u=e.info||gL(t),c=e.success||yL(t),d=e.warning||SL(t);function f(g){return K4(g,vp.text.primary)>=r?vp.text.primary:E1.text.primary}const p=({color:g,name:C,mainShade:v=500,lightShade:b=300,darkShade:_=700})=>{if(g=ne({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Da(11,C?` (${C})`:"",v));if(typeof g.main!="string")throw new Error(Da(12,C?` (${C})`:"",JSON.stringify(g.main)));return O1(g,"light",b,n),O1(g,"dark",_,n),g.contrastText||(g.contrastText=f(g.main)),g},y={dark:vp,light:E1};return bn(ne({common:ne({},El),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:aL,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},y[t]),o)}const wL=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _L(e){return Math.round(e*1e5)/1e5}const I1={textTransform:"uppercase"},j1='"Roboto", "Helvetica", "Arial", sans-serif';function xL(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=j1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=lt(r,wL),y=o/14,S=f||(v=>`${v/c*y}rem`),g=(v,b,_,k,T)=>ne({fontFamily:n,fontWeight:v,fontSize:S(b),lineHeight:_},n===j1?{letterSpacing:`${_L(k/b)}em`}:{},T,d),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,I1),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,I1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bn(ne({htmlFontSize:c,pxToRem:S,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},C),p,{clone:!1})}const CL=.2,RL=.14,kL=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CL})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RL})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kL})`].join(",")}const PL=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],TL=PL,EL=["duration","easing","delay"],OL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},IL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z1(e){return`${Math.round(e)}ms`}function jL(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zL(e){const t=ne({},OL,e.easing),r=ne({},IL,e.duration);return ne({getAutoHeightDuration:jL,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return lt(i,EL),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:z1(a)} ${s} ${typeof u=="string"?u:z1(u)}`).join(",")}},e,{easing:t,duration:r})}const NL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},AL=NL,ML=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function LL(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=lt(e,ML);if(e.vars)throw new Error(Da(18));const s=bL(n),u=Rf(e);let c=bn(u,{mixins:nL(u.breakpoints,r),palette:s,shadows:TL.slice(),typography:xL(s,i),transitions:zL(o),zIndex:ne({},AL)});return c=bn(c,a),c=t.reduce((d,f)=>bn(d,f),c),c.unstable_sxConfig=ne({},Cf,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Jg({sx:f,theme:this})},c}const $L=LL(),Xk=$L,Jk="$$material";function Vn({props:e,name:t}){return Qk({props:e,name:t,defaultTheme:Xk,themeId:Jk})}const Zk=e=>hc(e)&&e!=="classes",DL=Yk({themeId:Jk,defaultTheme:Xk,rootShouldForwardProp:Zk}),Pt=DL;function FL(e){return xn("MuiSvgIcon",e)}Gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const BL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],WL=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ke(t)}`,`fontSize${Ke(r)}`]};return qn(o,FL,n)},UL=Pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ke(r.color)}`],t[`fontSize${Ke(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,d,f,p,y,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),eP=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,y=lt(n,BL),S=N.isValidElement(o)&&o.type==="svg",g=ne({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:S}),C={};d||(C.viewBox=p);const v=WL(g);return m.jsxs(UL,ne({as:s,className:wt(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},C,y,S&&o.props,{ownerState:g,children:[S?o.props.children:o,f?m.jsx("title",{children:f}):null]}))});eP.muiName="SvgIcon";const N1=eP;function os(e,t){function r(n,o){return m.jsx(N1,ne({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=N1.muiName,N.memo(N.forwardRef(r))}const HL={configure:e=>{Ek.configure(e)}},qL=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ke,createChainedFunction:dA,createSvgIcon:os,debounce:fA,deprecatedPropType:hA,isMuiElement:pA,ownerDocument:xk,ownerWindow:mA,requirePropFactory:vA,setRef:Ck,unstable_ClassNameGenerator:HL,unstable_useEnhancedEffect:Rk,unstable_useId:SA,unsupportedProp:bA,useControlled:kk,useEventCallback:Ls,useForkRef:iv,useIsFocusVisible:Pk},Symbol.toStringTag,{value:"Module"})),GL=Xa(qL);var A1;function ot(){return A1||(A1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=GL}(up)),up}var VL=nt;Object.defineProperty(Wg,"__esModule",{value:!0});var Kl=Wg.default=void 0,KL=VL(ot()),YL=m;Kl=Wg.default=(0,KL.default)((0,YL.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var ey={},QL=nt;Object.defineProperty(ey,"__esModule",{value:!0});var Yl=ey.default=void 0,XL=QL(ot()),JL=m;Yl=ey.default=(0,XL.default)((0,JL.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var ty={},ZL=nt;Object.defineProperty(ty,"__esModule",{value:!0});var Ql=ty.default=void 0,e3=ZL(ot()),t3=m;Ql=ty.default=(0,e3.default)((0,t3.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const r3=({flags:e})=>{const[t,r]=se.useState(!1),[n,o]=se.useState([]),[i,a]=se.useState(!0);N.useEffect(()=>{const f=s(e);o(f)},[e]);const s=f=>f===void 0?[]:f.filter(y=>y.value!==void 0&&y.value!==""&&y.value!==null).sort((y,S)=>y.flag.localeCompare(y.flag)),u=(f,p)=>{if(p==="default"){let y=[];return i?y=f.sort((S,g)=>S.default>g.default?1:-1):y=f.sort((S,g)=>S.defaulty.flag.localeCompare(S.flag)):f},c=()=>{const f=u(n,"default");o(f),a(!i),r(!0)},d=()=>t?i?m.jsx(Kl,{}):m.jsx(Yl,{}):m.jsx(Ql,{className:"ml-2"});return m.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Flag"}),m.jsx("th",{className:"px-4 py-2",children:"Value"}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:c,children:m.jsxs("div",{className:"flex flex-row",children:["Default",d()]})})]})}),m.jsx("tbody",{children:n.map(f=>m.jsx(lA,{flag:f}))})]})},n3=({flags:e})=>{const[t,r]=N.useState([]);return N.useEffect(()=>{e!==void 0&&r(e)},[e]),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("input",{type:"text",className:"border-2 border-gray-300 rounded-lg p-2 mb-2",placeholder:"Search",onChange:n=>{const o=e==null?void 0:e.filter(a=>a.flag.toLowerCase().includes(n.target.value.toLowerCase())),i=e==null?void 0:e.filter(a=>a.usage.toLowerCase().includes(n.target.value.toLowerCase()));r([...o,...i])}}),m.jsx(r3,{flags:t})]})},o3=({nodeInfo:e,onRowClicked:t})=>{const n=(i,a)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",onClick:()=>{t(i,String(a))},children:[m.jsxs("td",{className:"px-4 py-2 font-bold",children:[i,":"]}),m.jsx("td",{className:"px-4 py-2",children:String(a).length>50?`${String(a).substring(0,50)}...`:a})]}),o=(i,a)=>{if(!i)return n(a,"null");let s=Object.keys(i);return m.jsxs("tr",{className:"border-b border-gray-200",children:[a.length>0?m.jsx("td",{className:"px-4 py-2 font-bold",children:a+":"}):null,s.map(u=>typeof i[u]=="object"?o(i[u],u):n(u,i[u]))]})};return m.jsx("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:m.jsx("tbody",{children:o(e,"")})})},i3=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(o3,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),a3=({syncStages:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:m.jsx("tbody",{children:e.map(t=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:[m.jsx("td",{className:"px-4 py-2",children:t.key}),m.jsx("td",{className:"px-4 py-2",children:t.value})]},t.key))})})}),s3=({reorg:e})=>e===void 0?null:m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"font-bold",children:"Blocks scanned:"}),m.jsx("span",{children:e.totalBlocks}),m.jsx("span",{className:"font-bold",children:"Time took:"}),m.jsx("span",{children:e.timeTook}),m.jsx("span",{className:"font-bold",children:"Wrong blocks:"}),e.wrongBlocks.length===0?m.jsx("span",{children:"None"}):m.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:m.jsx("tbody",{children:e.wrongBlocks.map(t=>m.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:m.jsx("td",{className:"px-4 py-2",children:t})},t))})})]}),is="#1ea7fd",Xl="red";const Un=({primary:e=!1,size:t="medium",backgroundColor:r,label:n,...o})=>{const i=e?"storybook-button--primary":"storybook-button--secondary";return m.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,i].join(" "),style:{backgroundColor:r},...o,children:n})},M1={isConnectedToInternet:!0,isConnectedToNode:!0},tP=ql({name:"app",initialState:M1,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>M1}}),{setIsConnectedToInternet:UH,setIsConnectedToNode:L1,resetConectionState:l3}=tP.actions,u3=tP.reducer,$s={second:1e3,minute:6e4,hour:36e5},$1={peers:[],bootnodes:[]},rP=ql({name:"network",initialState:$1,reducers:{updatePeersState:(e,t)=>{const r=e.peers.findIndex(n=>n.nodeId===t.payload.activeNodeId);r!==-1&&e.peers[r].peers.forEach(n=>{if(n.lastUpdateTime0&&(a=o/t.payload.countInterval);let s=0;i>0&&(s=i/t.payload.countInterval);let u=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=u,n.network.sCountedBytesOut=c}})},addOrUpdatePeer:(e,t)=>{const r=t.payload.nodeId;let n=t.payload.peer;n.lastUpdateTime=Date.now();let o=e.peers.findIndex(i=>i.nodeId===r);if(o!==-1){let i=e.peers[o].peers.findIndex(a=>a.id===n.id);i!==-1?(n.network.inRate=e.peers[o].peers[i].network.inRate,n.network.outRate=e.peers[o].peers[i].network.outRate,n.network.sCountedBytesIn=e.peers[o].peers[i].network.sCountedBytesIn,n.network.sCountedBytesOut=e.peers[o].peers[i].network.sCountedBytesOut,n.network.bytesIn+=e.peers[o].peers[i].network.bytesIn,n.network.bytesOut+=e.peers[o].peers[i].network.bytesOut,$u(e.peers[o].peers[i].network,n.network,"capBytesIn"),$u(e.peers[o].peers[i].network,n.network,"capBytesOut"),$u(e.peers[o].peers[i].network,n.network,"typeBytesIn"),$u(e.peers[o].peers[i].network,n.network,"typeBytesOut"),e.peers[o].peers[i]=n):e.peers[o].peers.push(n)}else e.peers.push({nodeId:r,peers:[n]})},addOrUpdateBootnodes:(e,t)=>{let r=e.bootnodes.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.bootnodes[r]=t.payload:e.bootnodes.push(t.payload)},resetNetworkStateToMockState:()=>$1}}),$u=(e,t,r)=>{let n=e[r],o=Object.keys(n);o.length>0&&o.forEach(i=>{let a=0;if(typeof n[i]=="number"){let s=e[r][i]||0;a=t[r][i]||0,t[r][i]=a+s}})},{resetNetworkStateToMockState:c3,addOrUpdatePeer:d3,addOrUpdateBootnodes:f3,updatePeersState:h3}=rP.actions,p3=e=>e.network.peers,ry=Ue([p3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),m3=()=>Ue([ry,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),Pf=Ue([ry,kt],(e,t)=>nP(t,"Sentry",e)),Tf=Ue([ry,kt],(e,t)=>nP(t,"Sentinel",e)),nP=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},v3=Ue([Pf],e=>oP(e)),g3=Ue([Tf],e=>oP(e)),oP=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},y3=Ue([Pf],e=>iP(e)),S3=Ue([Tf],e=>iP(e)),iP=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},b3=Ue([Pf],e=>aP(e)),w3=Ue([Tf],e=>aP(e)),aP=e=>{let t={activePeers:0,totalPeers:e.length,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0,totalInRate:0,totalOutRate:0};return e.forEach(r=>{t.totalInBytes+=r.network.bytesIn,t.totalOutBytes+=r.network.bytesOut,t.totalInRate+=r.network.inRate,t.totalOutRate+=r.network.outRate,r.active&&t.activePeers++,r.network.static&&t.staticPeers++}),t},_3=rP.reducer,D1={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},sP=ql({name:"syncStages",initialState:D1,reducers:{setSnapshotFilesList:(e,t)=>{let r=e.snapshotFilesList.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.snapshotFilesList[r].files=t.payload.files:e.snapshotFilesList.push(t.payload)},setSnapshotDownloadStatus:(e,t)=>{let r=e.snapshotDownloadStatus.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.snapshotDownloadStatus[r].downloadStatus=t.payload.downloadStatus:e.snapshotDownloadStatus.push(t.payload)},setSnapshotIndexStatus:(e,t)=>{let r=e.snapshotIndexStatus.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.snapshotIndexStatus[r].indexStatus=t.payload.indexStatus:e.snapshotIndexStatus.push(t.payload)},setNodeSyncStages:(e,t)=>{let r=e.syncStages.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.syncStages[r]=t.payload:e.syncStages.push(t.payload)},setTestSnpSyncMsgIdx:(e,t)=>{e.testSnpSyncMsgIdx=t.payload},resetSyncStagesState:()=>D1}}),{setSnapshotFilesList:x3,resetSyncStagesState:HH,setSnapshotDownloadStatus:C3,setSnapshotIndexStatus:R3,setNodeSyncStages:k3,setTestSnpSyncMsgIdx:qH}=sP.actions,P3=e=>e.syncStages.snapshotDownloadStatus,Ef=Ue([P3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),T3=e=>e.syncStages.snapshotIndexStatus,lP=Ue([T3,kt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),E3=e=>e.syncStages.syncStages,uP=Ue([E3,kt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),O3=e=>e.syncStages.snapshotFilesList,cP=Ue([O3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r});Ue([cP],e=>e.length===0);const I3=sP.reducer;var cv=(e=>(e.SnapshotSegmentMissingPeers="SnapshotSegmentMissingPeers",e))(cv||{});const F1={issues:[]},dP=ql({name:"issue",initialState:F1,reducers:{addOrUpdateIssue:(e,t)=>{let r=e.issues.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.issues[r].issues.findIndex(o=>o.id===t.payload.issue.id);n!==-1?e.issues[r].issues[n]=t.payload.issue:e.issues[r].issues.push(t.payload.issue)}else e.issues.push({nodeId:t.payload.nodeId,issues:[t.payload.issue]})},removeIssueWithId:(e,t)=>{let r=e.issues.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.issues[r].issues.findIndex(o=>o.id===t.payload.issueId);n!==-1&&e.issues[r].issues.splice(n,1)}},resetIssueState:()=>F1}}),{addOrUpdateIssue:B1,resetIssueState:GH,removeIssueWithId:j3}=dP.actions,z3=e=>e.issues.issues,fP=Ue([z3,kt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),N3=Ue([fP],e=>e.length>10?"9+":e.length.toString()),A3=dP.reducer;var ny="persist:",oy="persist/FLUSH",Of="persist/REHYDRATE",iy="persist/PAUSE",ay="persist/PERSIST",sy="persist/PURGE",ly="persist/REGISTER",M3=-1;function mc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mc=function(r){return typeof r}:mc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mc(e)}function W1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function L3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K3(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var Y3=5e3;function Q3(e,t){var r=e.version!==void 0?e.version:M3;e.debug;var n=e.stateReconciler===void 0?D3:e.stateReconciler,o=e.getStoredState||W3,i=e.timeout!==void 0?e.timeout:Y3,a=null,s=!1,u=!0,c=function(f){return f._persist.rehydrated&&a&&!u&&a.update(f),f};return function(d,f){var p=d||{},y=p._persist,S=V3(p,["_persist"]),g=S;if(f.type===ay){var C=!1,v=function(O,I){C||(f.rehydrate(e.key,O,I),C=!0)};if(i&&setTimeout(function(){!C&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,a||(a=F3(e)),y)return Xn({},t(g,f),{_persist:y});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),o(e).then(function(x){var O=e.migrate||function(I,j){return Promise.resolve(I)};O(x,r).then(function(I){v(I)},function(I){v(void 0,I)})},function(x){v(void 0,x)}),Xn({},t(g,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===sy)return s=!0,f.result(H3(e)),Xn({},t(g,f),{_persist:y});if(f.type===oy)return f.result(a&&a.flush()),Xn({},t(g,f),{_persist:y});if(f.type===iy)u=!0;else if(f.type===Of){if(s)return Xn({},g,{_persist:Xn({},y,{rehydrated:!0})});if(f.key===e.key){var b=t(g,f),_=f.payload,k=n!==!1&&_!==void 0?n(_,d,b,e):b,T=Xn({},k,{_persist:Xn({},y,{rehydrated:!0})});return c(T)}}}if(!y)return t(d,f);var E=t(g,f);return E===g?d:c(Xn({},E,{_persist:y}))}}function H1(e){return Z3(e)||J3(e)||X3()}function X3(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function J3(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Z3(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:hP,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case ly:return dv({},t,{registry:[].concat(H1(t.registry),[r.key])});case Of:var n=t.registry.indexOf(r.key),o=H1(t.registry);return o.splice(n,1),dv({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function r$(e,t,r){var n=r||!1,o=$g(t$,hP,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:ly,key:c})},a=function(c,d,f){var p={type:Of,payload:d,err:f,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=dv({},o,{purge:function(){var c=[];return e.dispatch({type:sy,result:function(f){c.push(f)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:oy,result:function(f){c.push(f)}}),Promise.all(c)},pause:function(){e.dispatch({type:iy})},persist:function(){e.dispatch({type:ay,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var uy={},cy={};cy.__esModule=!0;cy.default=i$;function vc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vc=function(r){return typeof r}:vc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vc(e)}function gp(){}var n$={getItem:gp,setItem:gp,removeItem:gp};function o$(e){if((typeof self>"u"?"undefined":vc(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return!1}return!0}function i$(e){var t="".concat(e,"Storage");return o$(t)?self[t]:n$}uy.__esModule=!0;uy.default=l$;var a$=s$(cy);function s$(e){return e&&e.__esModule?e:{default:e}}function l$(e){var t=(0,a$.default)(e);return{getItem:function(n){return new Promise(function(o,i){o(t.getItem(n))})},setItem:function(n,o){return new Promise(function(i,a){i(t.setItem(n,o))})},removeItem:function(n){return new Promise(function(o,i){o(t.removeItem(n))})}}}var pP=void 0,u$=c$(uy);function c$(e){return e&&e.__esModule?e:{default:e}}var d$=(0,u$.default)("local");pP=d$;const f$={key:"root",blacklist:["connection"],storage:pP},h$=ck({app:aA,network:_3,connection:u3,syncStages:I3,issues:A3}),p$=Q3(f$,h$),je=bN({reducer:p$,middleware:e=>e({serializableCheck:{ignoredActions:[oy,Of,iy,ay,sy,ly]}})}),m$=r$(je),v$="sessions",g$="nodes",y$="versions",S$="flags",b$="cmdline",w$="logs",_$="sync-stages",mP="dbs",x$="tables",C$="reorgs",R$="peers",k$="peers",P$=()=>je.getState().app.activeSessionPin,dy=()=>{const e=P$();return`${window.location.origin}/api/${v$}/${e}`},ln=()=>{const e=dy(),t=je.getState().app.activeNodeId;return`${e}/${g$}/${t}`},T$=()=>`${ln()}/${y$}`,vP=()=>`${ln()}/${S$}`,gP=()=>`${ln()}/${b$}`,yP=()=>`${ln()}/${w$}`,SP=()=>`${ln()}/${_$}`,E$=()=>`${ln()}/${mP}`,O$=e=>`${ln()}/${mP}/${e}/${x$}`,bP=()=>`${ln()}/${C$}`,I$=()=>`${ln()}/${R$}`,j$=()=>`${ln()}/${k$}`,z$=()=>`${ln()}/snapshot-sync`,N$=()=>`${ln()}/snapshot-files-list`,A$=()=>{{const e=Gr(dy(),"GET");return qr(e)}},M$=()=>{{const e=Gr(T$(),"GET");return qr(e)}},L$=()=>{{const e=Gr(vP(),"GET");return qr(e)}},$$=()=>{{const e=Gr(gP(),"GET");return qr(e)}},D$=()=>{{const e=Gr(yP(),"GET");return qr(e)}},F$=()=>{{const e=Gr(SP(),"GET");return qr(e)}},B$=()=>{{const e=Gr(E$(),"GET");return qr(e)}},W$=e=>{{const t=Gr(O$(e),"GET");return qr(t)}},U$=()=>{{const e=Gr(bP(),"GET");return qr(e)}},H$=()=>{{const e=Gr(I$(),"GET");return qr(e)}},q$=()=>{{const e=Gr(j$(),"GET");return qr(e)}},G$=()=>{{const e=Gr(z$(),"GET");return qr(e)}},V$=()=>{{const e=Gr(N$(),"GET");return qr(e)}},qr=e=>fetch(e).then(t=>(je.dispatch(L1(!0)),t.json())).catch(t=>{je.dispatch(L1(!1))});function Gr(e,t,r){return new Request(e,{method:t,body:r})}var fy={},K$=nt;Object.defineProperty(fy,"__esModule",{value:!0});var hy=fy.default=void 0,Y$=K$(ot()),Q$=m;hy=fy.default=(0,Y$.default)((0,Q$.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var py={},X$=nt;Object.defineProperty(py,"__esModule",{value:!0});var If=py.default=void 0,J$=X$(ot()),Z$=m;If=py.default=(0,J$.default)((0,Z$.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const e5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},G1=e5;function t5(e){return xn("MuiPaper",e)}Gn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const r5=["className","component","elevation","square","variant"],n5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qn(i,t5,o)},o5=Pt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return ne({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&ne({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ba("#fff",G1(t.elevation))}, ${Ba("#fff",G1(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),i5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=lt(n,r5),d=ne({},n,{component:i,elevation:a,square:s,variant:u}),f=n5(d);return m.jsx(o5,ne({as:i,ownerState:d,className:wt(f.root,o),ref:r},c))}),a5=i5;function s5(e){return xn("MuiAlert",e)}const l5=Gn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),V1=l5;function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ud(e,t)}function u5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ud(e,t)}const K1=se.createContext(null);function Q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function my(e,t){var r=function(i){return t&&N.isValidElement(i)?t(i):i},n=Object.create(null);return e&&N.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function c5(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(n[u])for(a=0;a{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),m.jsx("span",{className:p,style:y,children:m.jsx("span",{className:S})})}const g5=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kr=g5,y5=["center","classes","className"];let jf=e=>e,Y1,Q1,X1,J1;const fv=550,S5=80,b5=Gg(Y1||(Y1=jf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),w5=Gg(Q1||(Q1=jf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),_5=Gg(X1||(X1=jf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),x5=Pt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),C5=Pt(v5,{name:"MuiTouchRipple",slot:"Ripple"})(J1||(J1=jf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Kr.rippleVisible,b5,fv,({theme:e})=>e.transitions.easing.easeInOut,Kr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Kr.child,Kr.childLeaving,w5,fv,({theme:e})=>e.transitions.easing.easeInOut,Kr.childPulsate,_5,({theme:e})=>e.transitions.easing.easeInOut),R5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=lt(n,y5),[u,c]=N.useState([]),d=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=N.useRef(!1),y=CA(),S=N.useRef(null),g=N.useRef(null),C=N.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:x,rippleSize:O,cb:I}=k;c(j=>[...j,m.jsx(C5,{classes:{ripple:wt(i.ripple,Kr.ripple),rippleVisible:wt(i.rippleVisible,Kr.rippleVisible),ripplePulsate:wt(i.ripplePulsate,Kr.ripplePulsate),child:wt(i.child,Kr.child),childLeaving:wt(i.childLeaving,Kr.childLeaving),childPulsate:wt(i.childPulsate,Kr.childPulsate)},timeout:fv,pulsate:T,rippleX:E,rippleY:x,rippleSize:O},d.current)]),d.current+=1,f.current=I},[i]),v=N.useCallback((k={},T={},E=()=>{})=>{const{pulsate:x=!1,center:O=o||T.pulsate,fakeElement:I=!1}=T;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const j=I?null:g.current,M=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,$,D;if(O||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)B=Math.round(M.width/2),$=Math.round(M.height/2);else{const{clientX:Z,clientY:ae}=k.touches&&k.touches.length>0?k.touches[0]:k;B=Math.round(Z-M.left),$=Math.round(ae-M.top)}if(O)D=Math.sqrt((2*M.width**2+M.height**2)/3),D%2===0&&(D+=1);else{const Z=Math.max(Math.abs((j?j.clientWidth:0)-B),B)*2+2,ae=Math.max(Math.abs((j?j.clientHeight:0)-$),$)*2+2;D=Math.sqrt(Z**2+ae**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{C({pulsate:x,rippleX:B,rippleY:$,rippleSize:D,cb:E})},y.start(S5,()=>{S.current&&(S.current(),S.current=null)})):C({pulsate:x,rippleX:B,rippleY:$,rippleSize:D,cb:E})},[o,C,y]),b=N.useCallback(()=>{v({},{pulsate:!0})},[v]),_=N.useCallback((k,T)=>{if(y.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,y.start(0,()=>{_(k,T)});return}S.current=null,c(E=>E.length>0?E.slice(1):E),f.current=T},[y]);return N.useImperativeHandle(r,()=>({pulsate:b,start:v,stop:_}),[b,v,_]),m.jsx(x5,ne({className:wt(Kr.root,i.root,a),ref:g},s,{children:m.jsx(m5,{component:null,exit:!0,children:u})}))}),k5=R5;function P5(e){return xn("MuiButtonBase",e)}const T5=Gn("MuiButtonBase",["root","disabled","focusVisible"]),E5=T5,O5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],I5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=qn({root:["root",t&&"disabled",r&&"focusVisible"]},P5,o);return r&&n&&(a.root+=` ${n}`),a},j5=Pt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${E5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:S,onClick:g,onContextMenu:C,onDragLeave:v,onFocus:b,onFocusVisible:_,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:x,onMouseUp:O,onTouchEnd:I,onTouchMove:j,onTouchStart:M,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:D,type:Z}=n,ae=lt(n,O5),he=N.useRef(null),Y=N.useRef(null),te=iv(Y,D),{isFocusVisibleRef:ce,onFocus:we,onBlur:ke,ref:yt}=Pk(),[$e,Se]=N.useState(!1);c&&$e&&Se(!1),N.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),he.current.focus()}}),[]);const[G,V]=N.useState(!1);N.useEffect(()=>{V(!0)},[]);const q=G&&!d&&!c;N.useEffect(()=>{$e&&p&&!d&&G&&Y.current.pulsate()},[d,p,$e,G]);function J(_e,ti,ri=f){return Ls(Yn=>(ti&&ti(Yn),!ri&&Y.current&&Y.current[_e](Yn),!0))}const U=J("start",E),pe=J("stop",C),ue=J("stop",v),ie=J("stop",O),le=J("stop",_e=>{$e&&_e.preventDefault(),x&&x(_e)}),K=J("start",M),ee=J("stop",I),oe=J("stop",j),fe=J("stop",_e=>{ke(_e),ce.current===!1&&Se(!1),S&&S(_e)},!1),ge=Ls(_e=>{he.current||(he.current=_e.currentTarget),we(_e),ce.current===!0&&(Se(!0),_&&_(_e)),b&&b(_e)}),ye=()=>{const _e=he.current;return u&&u!=="button"&&!(_e.tagName==="A"&&_e.href)},be=N.useRef(!1),Re=Ls(_e=>{p&&!be.current&&$e&&Y.current&&_e.key===" "&&(be.current=!0,Y.current.stop(_e,()=>{Y.current.start(_e)})),_e.target===_e.currentTarget&&ye()&&_e.key===" "&&_e.preventDefault(),k&&k(_e),_e.target===_e.currentTarget&&ye()&&_e.key==="Enter"&&!c&&(_e.preventDefault(),g&&g(_e))}),ze=Ls(_e=>{p&&_e.key===" "&&Y.current&&$e&&!_e.defaultPrevented&&(be.current=!1,Y.current.stop(_e,()=>{Y.current.pulsate(_e)})),T&&T(_e),g&&_e.target===_e.currentTarget&&ye()&&_e.key===" "&&!_e.defaultPrevented&&g(_e)});let De=u;De==="button"&&(ae.href||ae.to)&&(De=y);const Tt={};De==="button"?(Tt.type=Z===void 0?"button":Z,Tt.disabled=c):(!ae.href&&!ae.to&&(Tt.role="button"),c&&(Tt["aria-disabled"]=c));const vr=iv(r,yt,he),ir=ne({},n,{centerRipple:i,component:u,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:B,focusVisible:$e}),Gt=I5(ir);return m.jsxs(j5,ne({as:De,className:wt(Gt.root,s),ownerState:ir,onBlur:fe,onClick:g,onContextMenu:pe,onFocus:ge,onKeyDown:Re,onKeyUp:ze,onMouseDown:U,onMouseLeave:le,onMouseUp:ie,onDragLeave:ue,onTouchEnd:ee,onTouchMove:oe,onTouchStart:K,ref:vr,tabIndex:c?-1:B,type:Z},Tt,ae,{children:[a,q?m.jsx(k5,ne({ref:te,center:i},$)):null]}))}),wP=z5;function N5(e){return xn("MuiIconButton",e)}const A5=Gn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),M5=A5,L5=["edge","children","className","color","disabled","disableFocusRipple","size"],$5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`]};return qn(a,N5,t)},D5=Pt(wP,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ke(r.color)}`],r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({theme:e,ownerState:t})=>ne({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return ne({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ne({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":ne({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${M5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),F5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=lt(n,L5),p=ne({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:d}),y=$5(p);return m.jsx(D5,ne({className:wt(y.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},f,{children:i}))}),B5=F5,W5=os(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),U5=os(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),H5=os(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),q5=os(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),G5=os(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),V5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],K5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${Ke(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return qn(i,s5,o)},Y5=Pt(a5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ke(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?sd:ld,n=e.palette.mode==="light"?ld:sd,o=t.color||t.severity;return ne({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${V1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${V1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&ne({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),Q5=Pt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),X5=Pt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Z1=Pt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ew={success:m.jsx(W5,{fontSize:"inherit"}),warning:m.jsx(U5,{fontSize:"inherit"}),error:m.jsx(H5,{fontSize:"inherit"}),info:m.jsx(q5,{fontSize:"inherit"})},J5=N.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Vn({props:t,name:"MuiAlert"}),{action:d,children:f,className:p,closeText:y="Close",color:S,components:g={},componentsProps:C={},icon:v,iconMapping:b=ew,onClose:_,role:k="alert",severity:T="success",slotProps:E={},slots:x={},variant:O="standard"}=c,I=lt(c,V5),j=ne({},c,{color:S,severity:T,variant:O}),M=K5(j),B=(n=(o=x.closeButton)!=null?o:g.CloseButton)!=null?n:B5,$=(i=(a=x.closeIcon)!=null?a:g.CloseIcon)!=null?i:G5,D=(s=E.closeButton)!=null?s:C.closeButton,Z=(u=E.closeIcon)!=null?u:C.closeIcon;return m.jsxs(Y5,ne({role:k,elevation:0,ownerState:j,className:wt(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(Q5,{ownerState:j,className:M.icon,children:v||b[T]||ew[T]}):null,m.jsx(X5,{ownerState:j,className:M.message,children:f}),d!=null?m.jsx(Z1,{ownerState:j,className:M.action,children:d}):null,d==null&&_?m.jsx(Z1,{ownerState:j,className:M.action,children:m.jsx(B,ne({size:"small","aria-label":y,title:y,color:"inherit",onClick:_},D,{children:m.jsx($,ne({fontSize:"small"},Z))}))}):null]}))}),_P=J5,xP=()=>m.jsx("div",{className:"justify-center items-center flex top-[80vh] bottom-0 left-0 right-0 z-50 absolute",children:m.jsx("div",{className:"absolute bottom-[50px] flex items-center w-fit h-fit",role:"alert",children:m.jsx(_P,{severity:"success",children:"Copied!"})})}),Z5=({value:e,onClose:t})=>{const[r,n]=se.useState(!1),o=()=>{n(!0),setTimeout(()=>{n(!1)},1500),navigator.clipboard.writeText(e.value)};return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:[m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center p-4 min-w-[20vw]",children:[m.jsxs("div",{className:"flex flex-row w-full",children:[m.jsx("div",{className:"flex-[1]"}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:e.key})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(If,{onClick:()=>t(),className:"cursor-pointer"})})]}),m.jsx("div",{className:"inline-block relative p-6 flex-auto justify-center items-center w-full break-all max-h-[80vh] overflow-scroll",children:m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:e.value})}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(hy,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(xP,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var hv=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(hv||{});const eD=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=N.useState("Command"),[s,u]=N.useState(!1),[c,d]=N.useState(null),f=N.useRef(null);async function p(v){return"clipboard"in navigator?await navigator.clipboard.writeText(v):document.execCommand("copy",!0,v)}const y=()=>{let v="";switch(i){case"Command":v=gP();break;case"Flags":v=vP();break;case"Node Info":v=dy();break;case"Stages":v=SP();break;case"Reorgs":v=bP();break}return v},S=()=>{const v=y();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(b=>{console.log(b)})},g=v=>{a(v),C()},C=()=>{f.current&&f.current.scroll({top:0,behavior:"smooth"})};return m.jsxs("div",{className:"flex flex-row",children:[m.jsxs("div",{className:"flex flex-col max-h-[90vh] items-center justify-center w-full",children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx(ks,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(ks,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(Un,{backgroundColor:is,label:s?"Copied":"Copy curl",onClick:()=>S(),primary:!0})]}),m.jsx("div",{className:"h-10"}),m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-w-[1400px] min-w-[30vw] overflow-auto","data-testid":"test_details_section_content",ref:f,children:[i==="Command"&&m.jsx(sA,{cmdLine:e}),i==="Flags"&&m.jsx(n3,{flags:t}),i==="Node Info"&&m.jsx(i3,{nodeDetails:r,onShowNodeValueDetails:(v,b)=>{d({key:v,value:b})}}),i==="Stages"&&m.jsx(a3,{syncStages:n}),i==="Reorgs"&&m.jsx(s3,{reorg:o})]})]}),c&&m.jsx(Z5,{value:c,onClose:()=>d(null)})]})},tD=()=>{const e=Ee(kt),t=Ee(tA),r=Ee(rA),n=Ee(JN),o=Ee(oA),i=Ee(iA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(eD,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},rD=e=>({id:e.id,name:e.name,protocols:nD(e.protocols),enodes:iD(e.enodes)}),nD=e=>({eth:oD(e.eth)}),oD=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),iD=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},aD=["boolean","string","number"],sD=e=>{let t=[];for(let r in e)t.push(lD(r,e[r]));return t},lD=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:uD(t.value)}),uD=e=>{let t=typeof e;return aD.includes(t)||cD(e)||dD(e)?e:""};function cD(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function dD(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const fD=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),hD=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},pD=(e,t)=>({enr:(e==null?void 0:e.enr)||"",enode:(e==null?void 0:e.enode)||"",id:e.id,name:e.name,caps:e.caps,network:mD(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),mD=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:vD(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Du(e.network.capBytesIn),capBytesOut:Du(e.network.capBytesOut),typeBytesIn:Du(e.network.typeBytesIn),typeBytesOut:Du(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),vD=(e,t)=>t.includes(e),Du=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},gD=(e,t,r)=>{let n=[];for(let d in e.segmentsDownloading){let f=yD(d,r);d.includes("beaconblocks")&&(f=100),n.push(SD(e.segmentsDownloading[d],f,d))}let o=(t==null?void 0:t.downloadFinished)||!1;if(!o){let d=!1;for(let f of n)if(f.downloadedBytesu?s.push(u):s.length>0?s[s.length-1]=u:s.push(u),{downloaded:e.downloaded,total:e.total,totalTime:s,downloadRate:e.downloadRate,uploadRate:e.uploadRate,peers:e.peers,files:e.files,connections:e.connections,alloc:e.alloc,sys:e.sys,downloadFinished:o,segments:n,indexingFinished:i,indexed:a,torrentMetadataReady:e.torrentMetadataReady}},yD=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},SD=(e,t,r)=>({name:r,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseeds:tw(e.webseeds),peers:tw(e.peers),indexed:t}),tw=e=>{let t=[];return e.forEach(r=>{t.push({url:r.url,downloadRate:r.downloadRate})}),t},bD=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let u=wD(e.segments[s]);r.push(u),n+=u.progress}r.length>0&&(n=n/t);let o=[0],i=e.timeElapsed;return(o[o.length-1]||0)>i?o.push(i):o.length>0?o[o.length-1]=i:o.push(i),{totalTime:o,progress:n,segments:r,alloc:0,sys:0}},wD=e=>({name:e.segmentName,progress:e.percent}),rr=()=>je.getState().app.activeNodeId,_D=()=>{let e=rr();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},xD=()=>{A$().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(rD(r))}),je.dispatch(jN(t))})},CD=()=>{M$().then(e=>{let t=fD(e);je.dispatch(AN({nodeId:rr(),version:t}))})},RD=()=>{L$().then(e=>{let t=sD(e);je.dispatch(MN({nodeId:rr(),flags:t}))})},kD=()=>{$$().then(e=>{je.dispatch(LN({nodeId:rr(),args:e}))})},PD=()=>{F$().then(e=>{je.dispatch(DN({nodeId:rr(),syncStages:hD(e)}))})},CP=()=>{D$().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${yP()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),je.dispatch($N({nodeId:rr(),logFiles:t}))})},TD=()=>{B$().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),je.dispatch(BN({nodeId:rr(),dbs:t}))})},ED=e=>{W$(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),je.dispatch(WN({nodeId:rr(),path:e,tables:r}))})},OD=()=>{U$().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:rr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};je.dispatch(UN(r))})},rw=()=>{const e=rr(),t=je.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=je.getState().network.bootnodes[t].bootnodes),H$().then(n=>{n.forEach(o=>{let i=pD(o,r);je.dispatch(d3({peer:i,nodeId:rr()}))})})},ID=()=>{q$().then(e=>{je.dispatch(f3({nodeId:rr(),bootnodes:e}))})},nw=()=>{G$().then(e=>{if(e){let t=_D(),r=0;t&&t.segments.forEach(s=>{s.name.includes("beaconblocks")||r++});let n=bD(e.snapshotIndexing,r),o=gD(e.snapshotDownload,t,n),i=e.syncStages.currentStage;i===0&&(i=1);let a=[];if(e.syncStages.stagesList!=null&&e.syncStages.stagesList.forEach(s=>{let u=!1;s==="Snapshots"&&(u=!0),a.push({name:s,subStage:u})}),a.length!=0){let s={stages:a,currentStage:i};je.dispatch(k3({nodeId:rr(),stages:s}))}je.dispatch(R3({nodeId:rr(),indexStatus:n})),je.dispatch(C3({nodeId:rr(),downloadStatus:o}))}})},Fu=()=>{V$().then(e=>{je.dispatch(x3({nodeId:rr(),files:e.files}))})};var RP={exports:{}},yp={exports:{}},ow;function jD(){return ow||(ow=1,function(e,t){(function(r,n){e.exports=n()})(di,function(){var r=Array.prototype.slice;function n(l,h){h&&(l.prototype=Object.create(h.prototype)),l.prototype.constructor=l}function o(l){return u(l)?l:ie(l)}n(i,o);function i(l){return c(l)?l:le(l)}n(a,o);function a(l){return d(l)?l:K(l)}n(s,o);function s(l){return u(l)&&!f(l)?l:ee(l)}function u(l){return!!(l&&l[y])}function c(l){return!!(l&&l[S])}function d(l){return!!(l&&l[g])}function f(l){return c(l)||d(l)}function p(l){return!!(l&&l[C])}o.isIterable=u,o.isKeyed=c,o.isIndexed=d,o.isAssociative=f,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var y="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,_=1<>>0;if(""+w!==h||w===4294967295)return NaN;h=w}return h<0?B(l)+h:h}function D(){return!0}function Z(l,h,w){return(l===0||w!==void 0&&l<=-w)&&(h===void 0||w!==void 0&&h>=w)}function ae(l,h){return Y(l,h,0)}function he(l,h){return Y(l,h,h)}function Y(l,h,w){return l===void 0?w:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var te=0,ce=1,we=2,ke=typeof Symbol=="function"&&Symbol.iterator,yt="@@iterator",$e=ke||yt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=te,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[$e]=function(){return this};function G(l,h,w,R){var P=l===0?h:l===1?w:[h,w];return R?R.value=P:R={value:P,done:!1},R}function V(){return{value:void 0,done:!0}}function q(l){return!!pe(l)}function J(l){return l&&typeof l.next=="function"}function U(l){var h=pe(l);return h&&h.call(l)}function pe(l){var h=l&&(ke&&l[ke]||l[yt]);if(typeof h=="function")return h}function ue(l){return l&&typeof l.length=="number"}n(ie,o);function ie(l){return l==null?De():u(l)?l.toSeq():ir(l)}ie.of=function(){return ie(arguments)},ie.prototype.toSeq=function(){return this},ie.prototype.toString=function(){return this.__toString("Seq {","}")},ie.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},ie.prototype.__iterate=function(l,h){return _e(this,l,h,!0)},ie.prototype.__iterator=function(l,h){return ti(this,l,h,!0)},n(le,ie);function le(l){return l==null?De().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():Tt(l)}le.prototype.toKeyedSeq=function(){return this},n(K,ie);function K(l){return l==null?De():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():vr(l)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(l,h){return _e(this,l,h,!1)},K.prototype.__iterator=function(l,h){return ti(this,l,h,!1)},n(ee,ie);function ee(l){return(l==null?De():u(l)?c(l)?l.entrySeq():l:vr(l)).toSetSeq()}ee.of=function(){return ee(arguments)},ee.prototype.toSetSeq=function(){return this},ie.isSeq=Re,ie.Keyed=le,ie.Set=ee,ie.Indexed=K;var oe="@@__IMMUTABLE_SEQ__@@";ie.prototype[oe]=!0,n(fe,K);function fe(l){this._array=l,this.size=l.length}fe.prototype.get=function(l,h){return this.has(l)?this._array[$(this,l)]:h},fe.prototype.__iterate=function(l,h){for(var w=this._array,R=w.length-1,P=0;P<=R;P++)if(l(w[h?R-P:P],P,this)===!1)return P+1;return P},fe.prototype.__iterator=function(l,h){var w=this._array,R=w.length-1,P=0;return new Se(function(){return P>R?V():G(l,P,w[h?R-P++:P++])})},n(ge,le);function ge(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ge.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ge.prototype.has=function(l){return this._object.hasOwnProperty(l)},ge.prototype.__iterate=function(l,h){for(var w=this._object,R=this._keys,P=R.length-1,z=0;z<=P;z++){var A=R[h?P-z:z];if(l(w[A],A,this)===!1)return z+1}return z},ge.prototype.__iterator=function(l,h){var w=this._object,R=this._keys,P=R.length-1,z=0;return new Se(function(){var A=R[h?P-z:z];return z++>P?V():G(l,A,w[A])})},ge.prototype[C]=!0,n(ye,K);function ye(l){this._iterable=l,this.size=l.length||l.size}ye.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);var w=this._iterable,R=U(w),P=0;if(J(R))for(var z;!(z=R.next()).done&&l(z.value,P++,this)!==!1;);return P},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var w=this._iterable,R=U(w);if(!J(R))return new Se(V);var P=0;return new Se(function(){var z=R.next();return z.done?z:G(l,P++,z.value)})},n(be,K);function be(l){this._iterator=l,this._iteratorCache=[]}be.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);for(var w=this._iterator,R=this._iteratorCache,P=0;P=R.length){var z=w.next();if(z.done)return z;R[P]=z.value}return G(l,P,R[P++])})};function Re(l){return!!(l&&l[oe])}var ze;function De(){return ze||(ze=new fe([]))}function Tt(l){var h=Array.isArray(l)?new fe(l).fromEntrySeq():J(l)?new be(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ge(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function vr(l){var h=Gt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function ir(l){var h=Gt(l)||typeof l=="object"&&new ge(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Gt(l){return ue(l)?new fe(l):J(l)?new be(l):q(l)?new ye(l):void 0}function _e(l,h,w,R){var P=l._cache;if(P){for(var z=P.length-1,A=0;A<=z;A++){var L=P[w?z-A:A];if(h(L[1],R?L[0]:A,l)===!1)return A+1}return A}return l.__iterateUncached(h,w)}function ti(l,h,w,R){var P=l._cache;if(P){var z=P.length-1,A=0;return new Se(function(){var L=P[w?z-A:A];return A++>z?V():G(h,R?L[0]:A-1,L[1])})}return l.__iteratorUncached(h,w)}function ri(l,h){return h?Yn(h,l,"",{"":l}):su(l)}function Yn(l,h,w,R){return Array.isArray(h)?l.call(R,w,K(h).map(function(P,z){return Yn(l,P,z,h)})):L0(h)?l.call(R,w,le(h).map(function(P,z){return Yn(l,P,z,h)})):h}function su(l){return Array.isArray(l)?K(l).map(su).toList():L0(l)?le(l).map(su).toMap():l}function L0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function St(l,h){if(l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1;if(typeof l.valueOf=="function"&&typeof h.valueOf=="function"){if(l=l.valueOf(),h=h.valueOf(),l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1}return!!(typeof l.equals=="function"&&typeof h.equals=="function"&&l.equals(h))}function eh(l,h){if(l===h)return!0;if(!u(h)||l.size!==void 0&&h.size!==void 0&&l.size!==h.size||l.__hash!==void 0&&h.__hash!==void 0&&l.__hash!==h.__hash||c(l)!==c(h)||d(l)!==d(h)||p(l)!==p(h))return!1;if(l.size===0&&h.size===0)return!0;var w=!f(l);if(p(l)){var R=l.entries();return h.every(function(W,H){var X=R.next().value;return X&&St(X[1],W)&&(w||St(X[0],H))})&&R.next().done}var P=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{P=!0;var z=l;l=h,h=z}var A=!0,L=h.__iterate(function(W,H){if(w?!l.has(W):P?!St(W,l.get(H,T)):!St(l.get(H,T),W))return A=!1,!1});return A&&l.size===L}n(Vt,K);function Vt(l,h){if(!(this instanceof Vt))return new Vt(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(th)return th;th=this}}Vt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Vt.prototype.get=function(l,h){return this.has(l)?this._value:h},Vt.prototype.includes=function(l){return St(this._value,l)},Vt.prototype.slice=function(l,h){var w=this.size;return Z(l,h,w)?this:new Vt(this._value,he(h,w)-ae(l,w))},Vt.prototype.reverse=function(){return this},Vt.prototype.indexOf=function(l){return St(this._value,l)?0:-1},Vt.prototype.lastIndexOf=function(l){return St(this._value,l)?this.size:-1},Vt.prototype.__iterate=function(l,h){for(var w=0;w=0&&h=0&&ww?V():G(l,z++,A)})},Lt.prototype.equals=function(l){return l instanceof Lt?this._start===l._start&&this._end===l._end&&this._step===l._step:eh(this,l)};var rh;n(go,o);function go(){throw TypeError("Abstract")}n(cs,go);function cs(){}n(Di,go);function Di(){}n(uu,go);function uu(){}go.Keyed=cs,go.Indexed=Di,go.Set=uu;var ds=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(h,w){h=h|0,w=w|0;var R=h&65535,P=w&65535;return R*P+((h>>>16)*P+R*(w>>>16)<<16>>>0)|0};function nh(l){return l>>>1&1073741824|l&3221225471}function Tr(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var h=typeof l;if(h==="number"){if(l!==l||l===1/0)return 0;var w=l|0;for(w!==l&&(w^=l*4294967295);l>4294967295;)l/=4294967295,w^=l;return nh(w)}if(h==="string")return l.length>VE?HE(l):oh(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return qE(l);if(typeof l.toString=="function")return oh(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function HE(l){var h=uh[l];return h===void 0&&(h=oh(l),lh===KE&&(lh=0,uh={}),lh++,uh[l]=h),h}function oh(l){for(var h=0,w=0;w0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var ih=typeof WeakMap=="function",ah;ih&&(ah=new WeakMap);var sh=0,ni="__immutablehash__";typeof Symbol=="function"&&(ni=Symbol(ni));var VE=16,KE=255,lh=0,uh={};function Er(l){lu(l!==1/0,"Cannot perform this action with an infinite size.")}n(Oe,cs);function Oe(l){return l==null?cn():ch(l)&&!p(l)?l:cn().withMutations(function(h){var w=i(l);Er(w.size),w.forEach(function(R,P){return h.set(P,R)})})}Oe.of=function(){var l=r.call(arguments,0);return cn().withMutations(function(h){for(var w=0;w=l.length)throw new Error("Missing value for key: "+l[w]);h.set(l[w],l[w+1])}})},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Oe.prototype.set=function(l,h){return U0(this,l,h)},Oe.prototype.setIn=function(l,h){return this.updateIn(l,T,function(){return h})},Oe.prototype.remove=function(l){return U0(this,l,T)},Oe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return T})},Oe.prototype.update=function(l,h,w){return arguments.length===1?l(this):this.updateIn([l],h,w)},Oe.prototype.updateIn=function(l,h,w){w||(w=h,h=void 0);var R=K0(this,mS(l),h,w);return R===T?void 0:R},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):cn()},Oe.prototype.merge=function(){return cu(this,void 0,arguments)},Oe.prototype.mergeWith=function(l){var h=r.call(arguments,1);return cu(this,l,h)},Oe.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.merge=="function"?w.merge.apply(w,h):h[h.length-1]})},Oe.prototype.mergeDeep=function(){return cu(this,q0,arguments)},Oe.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return cu(this,G0(l),h)},Oe.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.mergeDeep=="function"?w.mergeDeep.apply(w,h):h[h.length-1]})},Oe.prototype.sort=function(l){return ht(Gi(this,l))},Oe.prototype.sortBy=function(l,h){return ht(Gi(this,h,l))},Oe.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(l,h){return new dh(this,l,h)},Oe.prototype.__iterate=function(l,h){var w=this,R=0;return this._root&&this._root.iterate(function(P){return R++,l(P[1],P[0],w)},h),R},Oe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?hh(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function ch(l){return!!(l&&l[F0])}Oe.isMap=ch;var F0="@@__IMMUTABLE_MAP__@@",Pe=Oe.prototype;Pe[F0]=!0,Pe[v]=Pe.remove,Pe.removeIn=Pe.deleteIn;function fs(l,h){this.ownerID=l,this.entries=h}fs.prototype.get=function(l,h,w,R){for(var P=this.entries,z=0,A=P.length;z=eO)return YE(l,W,R,P);var ve=l&&l===this.ownerID,xe=ve?W:M(W);return de?L?H===X-1?xe.pop():xe[H]=xe.pop():xe[H]=[R,P]:xe.push([R,P]),ve?(this.entries=xe,this):new fs(l,xe)}};function Fi(l,h,w){this.ownerID=l,this.bitmap=h,this.nodes=w}Fi.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var P=1<<((l===0?h:h>>>l)&k),z=this.bitmap;return z&P?this.nodes[Y0(z&P-1)].get(l+b,h,w,R):R},Fi.prototype.update=function(l,h,w,R,P,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,W=1<=tO)return XE(l,ve,H,L,Ce);if(X&&!Ce&&ve.length===2&&H0(ve[de^1]))return ve[de^1];if(X&&Ce&&ve.length===1&&H0(Ce))return Ce;var Ze=l&&l===this.ownerID,dn=X?Ce?H:H^W:H|W,Tn=X?Ce?Q0(ve,de,Ce,Ze):ZE(ve,de,Ze):JE(ve,de,Ce,Ze);return Ze?(this.bitmap=dn,this.nodes=Tn,this):new Fi(l,dn,Tn)};function hs(l,h,w){this.ownerID=l,this.count=h,this.nodes=w}hs.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var P=(l===0?h:h>>>l)&k,z=this.nodes[P];return z?z.get(l+b,h,w,R):R},hs.prototype.update=function(l,h,w,R,P,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,W=P===T,H=this.nodes,X=H[L];if(W&&!X)return this;var de=ph(X,l,h+b,w,R,P,z,A);if(de===X)return this;var ve=this.count;if(!X)ve++;else if(!de&&(ve--,ve>>w)&k,A=(w===0?R:R>>>w)&k,L,W=z===A?[mh(l,h,w+b,R,P)]:(L=new Qn(h,R,P),z>>=1)A[L]=w&1?h[z++]:void 0;return A[R]=P,new hs(l,z+1,A)}function cu(l,h,w){for(var R=[],P=0;P>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function Q0(l,h,w,R){var P=R?l:M(l);return P[h]=w,P}function JE(l,h,w,R){var P=l.length+1;if(R&&h+1===P)return l[h]=w,l;for(var z=new Array(P),A=0,L=0;L0&&R<_?ms(0,R,b,null,new yo(w.toArray())):h.withMutations(function(P){P.setSize(R),w.forEach(function(z,A){return P.set(A,z)})}))}Ye.of=function(){return this(arguments)},Ye.prototype.toString=function(){return this.__toString("List [","]")},Ye.prototype.get=function(l,h){if(l=$(this,l),l>=0&&l>>h&k;if(R>=this.array.length)return new yo([],l);var P=R===0,z;if(h>0){var A=this.array[R];if(z=A&&A.removeBefore(l,h-b,w),z===A&&P)return this}if(P&&!z)return this;var L=Wi(this,l);if(!P)for(var W=0;W>>h&k;if(R>=this.array.length)return this;var P;if(h>0){var z=this.array[R];if(P=z&&z.removeAfter(l,h-b,w),P===z&&R===this.array.length-1)return this}var A=Wi(this,l);return A.array.splice(R+1),P&&(A.array[R]=P),A};var ps={};function Z0(l,h){var w=l._origin,R=l._capacity,P=vs(R),z=l._tail;return A(l._root,l._level,0);function A(H,X,de){return X===0?L(H,de):W(H,X,de)}function L(H,X){var de=X===P?z&&z.array:H&&H.array,ve=X>w?0:w-X,xe=R-X;return xe>_&&(xe=_),function(){if(ve===xe)return ps;var Ce=h?--xe:ve++;return de&&de[Ce]}}function W(H,X,de){var ve,xe=H&&H.array,Ce=de>w?0:w-de>>X,Ze=(R-de>>X)+1;return Ze>_&&(Ze=_),function(){do{if(ve){var dn=ve();if(dn!==ps)return dn;ve=null}if(Ce===Ze)return ps;var Tn=h?--Ze:Ce++;ve=A(xe&&xe[Tn],X-b,de+(Tn<=l.size||h<0)return l.withMutations(function(A){h<0?So(A,h).set(0,w):So(A,0,h+1).set(h,w)});h+=l._origin;var R=l._tail,P=l._root,z=O(x);return h>=vs(l._capacity)?R=gh(R,l.__ownerID,0,h,w,z):P=gh(P,l.__ownerID,l._level,h,w,z),z.value?l.__ownerID?(l._root=P,l._tail=R,l.__hash=void 0,l.__altered=!0,l):ms(l._origin,l._capacity,l._level,P,R):l}function gh(l,h,w,R,P,z){var A=R>>>w&k,L=l&&A0){var H=l&&l.array[A],X=gh(H,h,w-b,R,P,z);return X===H?l:(W=Wi(l,h),W.array[A]=X,W)}return L&&l.array[A]===P?l:(I(z),W=Wi(l,h),P===void 0&&A===W.array.length-1?W.array.pop():W.array[A]=P,W)}function Wi(l,h){return h&&l&&h===l.ownerID?l:new yo(l?l.array.slice():[],h)}function tS(l,h){if(h>=vs(l._capacity))return l._tail;if(h<1<0;)w=w.array[h>>>R&k],R-=b;return w}}function So(l,h,w){h!==void 0&&(h=h|0),w!==void 0&&(w=w|0);var R=l.__ownerID||new j,P=l._origin,z=l._capacity,A=P+h,L=w===void 0?z:w<0?z+w:P+w;if(A===P&&L===z)return l;if(A>=L)return l.clear();for(var W=l._level,H=l._root,X=0;A+X<0;)H=new yo(H&&H.array.length?[void 0,H]:[],R),W+=b,X+=1<=1<de?new yo([],R):xe;if(xe&&ve>de&&Ab;dn-=b){var Tn=de>>>dn&k;Ze=Ze.array[Tn]=Wi(Ze.array[Tn],R)}Ze.array[de>>>b&k]=xe}if(L=ve)A-=ve,L-=ve,W=b,H=null,Ce=Ce&&Ce.removeBefore(R,0,A);else if(A>P||ve>>W&k;if(yu!==ve>>>W&k)break;yu&&(X+=(1<P&&(H=H.removeBefore(R,W,A-X)),H&&veP&&(P=L.size),u(A)||(L=L.map(function(W){return ri(W)})),R.push(L)}return P>l.size&&(l=l.setSize(P)),V0(l,h,R)}function vs(l){return l<_?0:l-1>>>b<=_&&P.size>=R.size*2?(W=P.filter(function(H,X){return H!==void 0&&z!==X}),L=W.toKeyedSeq().map(function(H){return H[0]}).flip().toMap(),l.__ownerID&&(L.__ownerID=W.__ownerID=l.__ownerID)):(L=R.remove(h),W=z===P.size-1?P.pop():P.set(z,void 0))}else if(A){if(w===P.get(z)[1])return l;L=R,W=P.set(z,[h,w])}else L=R.set(h,P.size),W=P.set(P.size,[h,w]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=W,l.__hash=void 0,l):yh(L,W)}n(Vr,le);function Vr(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Vr.prototype.get=function(l,h){return this._iter.get(l,h)},Vr.prototype.has=function(l){return this._iter.has(l)},Vr.prototype.valueSeq=function(){return this._iter.valueSeq()},Vr.prototype.reverse=function(){var l=this,h=Sh(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Vr.prototype.map=function(l,h){var w=this,R=aS(this,l,h);return this._useKeys||(R.valueSeq=function(){return w._iter.toSeq().map(l,h)}),R},Vr.prototype.__iterate=function(l,h){var w=this,R;return this._iter.__iterate(this._useKeys?function(P,z){return l(P,z,w)}:(R=h?fS(this):0,function(P){return l(P,h?--R:R++,w)}),h)},Vr.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var w=this._iter.__iterator(ce,h),R=h?fS(this):0;return new Se(function(){var P=w.next();return P.done?P:G(l,h?--R:R++,P.value,P)})},Vr.prototype[C]=!0,n(Ui,K);function Ui(l){this._iter=l,this.size=l.size}Ui.prototype.includes=function(l){return this._iter.includes(l)},Ui.prototype.__iterate=function(l,h){var w=this,R=0;return this._iter.__iterate(function(P){return l(P,R++,w)},h)},Ui.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h),R=0;return new Se(function(){var P=w.next();return P.done?P:G(l,R++,P.value,P)})},n(Hi,ee);function Hi(l){this._iter=l,this.size=l.size}Hi.prototype.has=function(l){return this._iter.includes(l)},Hi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){return l(R,R,w)},h)},Hi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){var R=w.next();return R.done?R:G(l,R.value,R.value,R)})},n(qi,le);function qi(l){this._iter=l,this.size=l.size}qi.prototype.entrySeq=function(){return this._iter.toSeq()},qi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){if(R){dS(R);var P=u(R);return l(P?R.get(1):R[1],P?R.get(0):R[0],w)}},h)},qi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){for(;;){var R=w.next();if(R.done)return R;var P=R.value;if(P){dS(P);var z=u(P);return G(l,z?P.get(0):P[0],z?P.get(1):P[1],R)}}})},Ui.prototype.cacheResult=Vr.prototype.cacheResult=Hi.prototype.cacheResult=qi.prototype.cacheResult=_h;function iS(l){var h=Rn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var w=l.reverse.apply(this);return w.flip=function(){return l.reverse()},w},h.has=function(w){return l.includes(w)},h.includes=function(w){return l.has(w)},h.cacheResult=_h,h.__iterateUncached=function(w,R){var P=this;return l.__iterate(function(z,A){return w(A,z,P)!==!1},R)},h.__iteratorUncached=function(w,R){if(w===we){var P=l.__iterator(w,R);return new Se(function(){var z=P.next();if(!z.done){var A=z.value[0];z.value[0]=z.value[1],z.value[1]=A}return z})}return l.__iterator(w===ce?te:ce,R)},h}function aS(l,h,w){var R=Rn(l);return R.size=l.size,R.has=function(P){return l.has(P)},R.get=function(P,z){var A=l.get(P,T);return A===T?z:h.call(w,A,P,l)},R.__iterateUncached=function(P,z){var A=this;return l.__iterate(function(L,W,H){return P(h.call(w,L,W,H),W,A)!==!1},z)},R.__iteratorUncached=function(P,z){var A=l.__iterator(we,z);return new Se(function(){var L=A.next();if(L.done)return L;var W=L.value,H=W[0];return G(P,H,h.call(w,W[1],H,l),L)})},R}function Sh(l,h){var w=Rn(l);return w._iter=l,w.size=l.size,w.reverse=function(){return l},l.flip&&(w.flip=function(){var R=iS(l);return R.reverse=function(){return l.flip()},R}),w.get=function(R,P){return l.get(h?R:-1-R,P)},w.has=function(R){return l.has(h?R:-1-R)},w.includes=function(R){return l.includes(R)},w.cacheResult=_h,w.__iterate=function(R,P){var z=this;return l.__iterate(function(A,L){return R(A,L,z)},!P)},w.__iterator=function(R,P){return l.__iterator(R,!P)},w}function sS(l,h,w,R){var P=Rn(l);return R&&(P.has=function(z){var A=l.get(z,T);return A!==T&&!!h.call(w,A,z,l)},P.get=function(z,A){var L=l.get(z,T);return L!==T&&h.call(w,L,z,l)?L:A}),P.__iterateUncached=function(z,A){var L=this,W=0;return l.__iterate(function(H,X,de){if(h.call(w,H,X,de))return W++,z(H,R?X:W-1,L)},A),W},P.__iteratorUncached=function(z,A){var L=l.__iterator(we,A),W=0;return new Se(function(){for(;;){var H=L.next();if(H.done)return H;var X=H.value,de=X[0],ve=X[1];if(h.call(w,ve,de,l))return G(z,R?de:W++,ve,H)}})},P}function oO(l,h,w){var R=Oe().asMutable();return l.__iterate(function(P,z){R.update(h.call(w,P,z,l),0,function(A){return A+1})}),R.asImmutable()}function iO(l,h,w){var R=c(l),P=(p(l)?ht():Oe()).asMutable();l.__iterate(function(A,L){P.update(h.call(w,A,L,l),function(W){return W=W||[],W.push(R?[L,A]:A),W})});var z=hS(l);return P.map(function(A){return Ge(l,z(A))})}function bh(l,h,w,R){var P=l.size;if(h!==void 0&&(h=h|0),w!==void 0&&(w===1/0?w=P:w=w|0),Z(h,w,P))return l;var z=ae(h,P),A=he(w,P);if(z!==z||A!==A)return bh(l.toSeq().cacheResult(),h,w,R);var L=A-z,W;L===L&&(W=L<0?0:L);var H=Rn(l);return H.size=W===0?W:l.size&&W||void 0,!R&&Re(l)&&W>=0&&(H.get=function(X,de){return X=$(this,X),X>=0&&XW)return V();var Ze=ve.next();return R||X===ce?Ze:X===te?G(X,Ce-1,void 0,Ze):G(X,Ce-1,Ze.value[1],Ze)})},H}function aO(l,h,w){var R=Rn(l);return R.__iterateUncached=function(P,z){var A=this;if(z)return this.cacheResult().__iterate(P,z);var L=0;return l.__iterate(function(W,H,X){return h.call(w,W,H,X)&&++L&&P(W,H,A)}),L},R.__iteratorUncached=function(P,z){var A=this;if(z)return this.cacheResult().__iterator(P,z);var L=l.__iterator(we,z),W=!0;return new Se(function(){if(!W)return V();var H=L.next();if(H.done)return H;var X=H.value,de=X[0],ve=X[1];return h.call(w,ve,de,A)?P===we?H:G(P,de,ve,H):(W=!1,V())})},R}function lS(l,h,w,R){var P=Rn(l);return P.__iterateUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterate(z,A);var W=!0,H=0;return l.__iterate(function(X,de,ve){if(!(W&&(W=h.call(w,X,de,ve))))return H++,z(X,R?de:H-1,L)}),H},P.__iteratorUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterator(z,A);var W=l.__iterator(we,A),H=!0,X=0;return new Se(function(){var de,ve,xe;do{if(de=W.next(),de.done)return R||z===ce?de:z===te?G(z,X++,void 0,de):G(z,X++,de.value[1],de);var Ce=de.value;ve=Ce[0],xe=Ce[1],H&&(H=h.call(w,xe,ve,L))}while(H);return z===we?de:G(z,ve,xe,de)})},P}function sO(l,h){var w=c(l),R=[l].concat(h).map(function(A){return u(A)?w&&(A=i(A)):A=w?Tt(A):vr(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(R.length===0)return l;if(R.length===1){var P=R[0];if(P===l||w&&c(P)||d(l)&&d(P))return P}var z=new fe(R);return w?z=z.toKeyedSeq():d(l)||(z=z.toSetSeq()),z=z.flatten(!0),z.size=R.reduce(function(A,L){if(A!==void 0){var W=L.size;if(W!==void 0)return A+W}},0),z}function uS(l,h,w){var R=Rn(l);return R.__iterateUncached=function(P,z){var A=0,L=!1;function W(H,X){var de=this;H.__iterate(function(ve,xe){return(!h||X0}function wh(l,h,w){var R=Rn(l);return R.size=new fe(w).map(function(P){return P.size}).min(),R.__iterate=function(P,z){for(var A=this.__iterator(ce,z),L,W=0;!(L=A.next()).done&&P(L.value,W++,this)!==!1;);return W},R.__iteratorUncached=function(P,z){var A=w.map(function(H){return H=o(H),U(z?H.reverse():H)}),L=0,W=!1;return new Se(function(){var H;return W||(H=A.map(function(X){return X.next()}),W=H.some(function(X){return X.done})),W?V():G(P,L++,h.apply(null,H.map(function(X){return X.value})))})},R}function Ge(l,h){return Re(l)?h:l.constructor(h)}function dS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function fS(l){return Er(l.size),B(l)}function hS(l){return c(l)?i:d(l)?a:s}function Rn(l){return Object.create((c(l)?le:d(l)?K:ee).prototype)}function _h(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ie.prototype.cacheResult.call(this)}function pS(l,h){return l>h?1:l=0;w--)h={value:arguments[w],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):gs(l,h)},bt.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Er(l.size);var h=this.size,w=this._head;return l.reverse().forEach(function(R){h++,w={value:R,next:w}}),this.__ownerID?(this.size=h,this._head=w,this.__hash=void 0,this.__altered=!0,this):gs(h,w)},bt.prototype.pop=function(){return this.slice(1)},bt.prototype.unshift=function(){return this.push.apply(this,arguments)},bt.prototype.unshiftAll=function(l){return this.pushAll(l)},bt.prototype.shift=function(){return this.pop.apply(this,arguments)},bt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ph()},bt.prototype.slice=function(l,h){if(Z(l,h,this.size))return this;var w=ae(l,this.size),R=he(h,this.size);if(R!==this.size)return Di.prototype.slice.call(this,l,h);for(var P=this.size-w,z=this._head;w--;)z=z.next;return this.__ownerID?(this.size=P,this._head=z,this.__hash=void 0,this.__altered=!0,this):gs(P,z)},bt.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?gs(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},bt.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var w=0,R=this._head;R&&l(R.value,w++,this)!==!1;)R=R.next;return w},bt.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var w=0,R=this._head;return new Se(function(){if(R){var P=R.value;return R=R.next,G(l,w++,P)}return V()})};function xS(l){return!!(l&&l[CS])}bt.isStack=xS;var CS="@@__IMMUTABLE_STACK__@@",Vi=bt.prototype;Vi[CS]=!0,Vi.withMutations=Pe.withMutations,Vi.asMutable=Pe.asMutable,Vi.asImmutable=Pe.asImmutable,Vi.wasAltered=Pe.wasAltered;function gs(l,h,w,R){var P=Object.create(Vi);return P.size=l,P._head=h,P.__ownerID=w,P.__hash=R,P.__altered=!1,P}var RS;function Ph(){return RS||(RS=gs(0))}function Pn(l,h){var w=function(R){l.prototype[R]=h[R]};return Object.keys(h).forEach(w),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(w),l}o.Iterator=Se,Pn(o,{toArray:function(){Er(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,w){l[w]=h}),l},toIndexedSeq:function(){return new Ui(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new Vr(this,!0)},toMap:function(){return Oe(this.toKeyedSeq())},toObject:function(){Er(this.size);var l={};return this.__iterate(function(h,w){l[w]=h}),l},toOrderedMap:function(){return ht(this.toKeyedSeq())},toOrderedSet:function(){return kn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Hi(this)},toSeq:function(){return d(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return bt(c(this)?this.valueSeq():this)},toList:function(){return Ye(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,h){return this.size===0?l+h:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+h},concat:function(){var l=r.call(arguments,0);return Ge(this,sO(this,l))},includes:function(l){return this.some(function(h){return St(h,l)})},entries:function(){return this.__iterator(we)},every:function(l,h){Er(this.size);var w=!0;return this.__iterate(function(R,P,z){if(!l.call(h,R,P,z))return w=!1,!1}),w},filter:function(l,h){return Ge(this,sS(this,l,h,!0))},find:function(l,h,w){var R=this.findEntry(l,h);return R?R[1]:w},forEach:function(l,h){return Er(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Er(this.size),l=l!==void 0?""+l:",";var h="",w=!0;return this.__iterate(function(R){w?w=!1:h+=l,h+=R!=null?R.toString():""}),h},keys:function(){return this.__iterator(te)},map:function(l,h){return Ge(this,aS(this,l,h))},reduce:function(l,h,w){Er(this.size);var R,P;return arguments.length<2?P=!0:R=h,this.__iterate(function(z,A,L){P?(P=!1,R=z):R=l.call(w,R,z,A,L)}),R},reduceRight:function(l,h,w){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return Ge(this,Sh(this,!0))},slice:function(l,h){return Ge(this,bh(this,l,h,!0))},some:function(l,h){return!this.every(gu(l),h)},sort:function(l){return Ge(this,Gi(this,l))},values:function(){return this.__iterator(ce)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(l,h){return B(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return oO(this,l,h)},equals:function(l){return eh(this,l)},entrySeq:function(){var l=this;if(l._cache)return new fe(l._cache);var h=l.toSeq().map(hO).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(gu(l),h)},findEntry:function(l,h,w){var R=w;return this.__iterate(function(P,z,A){if(l.call(h,P,z,A))return R=[z,P],!1}),R},findKey:function(l,h){var w=this.findEntry(l,h);return w&&w[0]},findLast:function(l,h,w){return this.toKeyedSeq().reverse().find(l,h,w)},findLastEntry:function(l,h,w){return this.toKeyedSeq().reverse().findEntry(l,h,w)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(D)},flatMap:function(l,h){return Ge(this,lO(this,l,h))},flatten:function(l){return Ge(this,uS(this,l,!0))},fromEntrySeq:function(){return new qi(this)},get:function(l,h){return this.find(function(w,R){return St(R,l)},void 0,h)},getIn:function(l,h){for(var w=this,R=mS(l),P;!(P=R.next()).done;){var z=P.value;if(w=w&&w.get?w.get(z,T):T,w===T)return h}return w},groupBy:function(l,h){return iO(this,l,h)},has:function(l){return this.get(l,T)!==T},hasIn:function(l){return this.getIn(l,T)!==T},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(h){return l.includes(h)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(h){return St(h,l)})},keySeq:function(){return this.toSeq().map(fO).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return hu(this,l)},maxBy:function(l,h){return hu(this,h,l)},min:function(l){return hu(this,l?kS(l):TS)},minBy:function(l,h){return hu(this,h?kS(h):TS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return Ge(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return Ge(this,lS(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(gu(l),h)},sortBy:function(l,h){return Ge(this,Gi(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return Ge(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return Ge(this,aO(this,l,h))},takeUntil:function(l,h){return this.takeWhile(gu(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=mO(this))}});var sr=o.prototype;sr[y]=!0,sr[$e]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=PS,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Pn(i,{flip:function(){return Ge(this,iS(this))},mapEntries:function(l,h){var w=this,R=0;return Ge(this,this.toSeq().map(function(P,z){return l.call(h,[z,P],R++,w)}).fromEntrySeq())},mapKeys:function(l,h){var w=this;return Ge(this,this.toSeq().flip().map(function(R,P){return l.call(h,R,P,w)}).flip())}});var vu=i.prototype;vu[S]=!0,vu[$e]=sr.entries,vu.__toJS=sr.toObject,vu.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+PS(l)},Pn(a,{toKeyedSeq:function(){return new Vr(this,!1)},filter:function(l,h){return Ge(this,sS(this,l,h,!1))},findIndex:function(l,h){var w=this.findEntry(l,h);return w?w[0]:-1},indexOf:function(l){var h=this.keyOf(l);return h===void 0?-1:h},lastIndexOf:function(l){var h=this.lastKeyOf(l);return h===void 0?-1:h},reverse:function(){return Ge(this,Sh(this,!1))},slice:function(l,h){return Ge(this,bh(this,l,h,!1))},splice:function(l,h){var w=arguments.length;if(h=Math.max(h|0,0),w===0||w===2&&!h)return this;l=ae(l,l<0?this.count():this.size);var R=this.slice(0,l);return Ge(this,w===1?R:R.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var w=this.findLastEntry(l,h);return w?w[0]:-1},first:function(){return this.get(0)},flatten:function(l){return Ge(this,uS(this,l,!1))},get:function(l,h){return l=$(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(w,R){return R===l},void 0,h)},has:function(l){return l=$(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function mO(l){if(l.size===1/0)return 0;var h=p(l),w=c(l),R=h?1:0,P=l.__iterate(w?h?function(z,A){R=31*R+ES(Tr(z),Tr(A))|0}:function(z,A){R=R+ES(Tr(z),Tr(A))|0}:h?function(z){R=31*R+Tr(z)|0}:function(z){R=R+Tr(z)|0});return vO(P,R)}function vO(l,h){return h=ds(h,3432918353),h=ds(h<<15|h>>>-15,461845907),h=ds(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=ds(h^h>>>16,2246822507),h=ds(h^h>>>13,3266489909),h=nh(h^h>>>16),h}function ES(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var gO={Iterable:o,Seq:ie,Collection:go,Map:Oe,OrderedMap:ht,List:Ye,Stack:bt,Set:Je,OrderedSet:kn,Record:Or,Range:Lt,Repeat:Vt,is:St,fromJS:ri};return gO})}(yp)),yp.exports}function zD(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}const ND=Object.freeze(Object.defineProperty({__proto__:null,default:zD},Symbol.toStringTag,{value:"Module"})),AD=Xa(ND);var Sp,iw;function kP(){if(iw)return Sp;iw=1;var e=typeof di=="object"&&di&&di.Object===Object&&di;return Sp=e,Sp}var bp,aw;function MD(){if(aw)return bp;aw=1;var e=kP(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return bp=r,bp}var wp,sw;function zf(){if(sw)return wp;sw=1;var e=MD(),t=e.Symbol;return wp=t,wp}var _p,lw;function LD(){if(lw)return _p;lw=1;var e=zf(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),u=a[o];try{a[o]=void 0;var c=!0}catch{}var d=n.call(a);return c&&(s?a[o]=u:delete a[o]),d}return _p=i,_p}var xp,uw;function $D(){if(uw)return xp;uw=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return xp=r,xp}var Cp,cw;function Nf(){if(cw)return Cp;cw=1;var e=zf(),t=LD(),r=$D(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:n:i&&i in Object(s)?t(s):r(s)}return Cp=a,Cp}var Rp,dw;function Jl(){if(dw)return Rp;dw=1;function e(t){return t!=null&&typeof t=="object"}return Rp=e,Rp}var kp,fw;function DD(){if(fw)return kp;fw=1;var e=Nf(),t=Jl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return kp=n,kp}var Pp,hw;function FD(){if(hw)return Pp;hw=1;function e(t){return function(r){return t(r)}}return Pp=e,Pp}var Ds={exports:{}};Ds.exports;var pw;function BD(){return pw||(pw=1,function(e,t){var r=kP(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Ds,Ds.exports)),Ds.exports}var Tp,mw;function WD(){if(mw)return Tp;mw=1;var e=DD(),t=FD(),r=BD(),n=r&&r.isRegExp,o=n?t(n):e;return Tp=o,Tp}var Ep,vw;function UD(){if(vw)return Ep;vw=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n0&&i(d)?o>1?r(d,o-1,i,a,s):e(s,d):a||(s[s.length]=d)}return s}return Fp=r,Fp}var Bp,Tw;function eF(){if(Tw)return Bp;Tw=1;var e=ZD();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Bp=t,Bp}var Wp,Ew;function tF(){if(Ew)return Wp;Ew=1;var e=WD(),t=VD(),r=KD(),n=eF();function o(i,a,s){var u=0,c=0;if(i==="")return i;if(!i||!r(i))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var d=a;e(d)||(d=new RegExp("("+t(d)+")","gi"));for(var f=i.split(d),p=1,y=f.length;p=0&&u===s&&c())}function Fs(e,t){if(e==null)return{};var r=lt(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var rF=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ft(this,e),F(this,"_cellSizeAndPositionData",{}),F(this,"_lastMeasuredIndex",-1),F(this,"_lastBatchedIndex",-1),F(this,"_cellCount",void 0),F(this,"_cellSizeGetter",void 0),F(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return gt(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(r){var n=r.cellCount,o=r.estimatedCellSize,i=r.cellSizeGetter;this._cellCount=n,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(r){if(r<0||r>=this._cellCount)throw Error("Requested index ".concat(r," is outside of range 0..").concat(this._cellCount));if(r>this._lastMeasuredIndex)for(var n=this.getSizeAndPositionOfLastMeasuredCell(),o=n.offset+n.size,i=this._lastMeasuredIndex+1;i<=r;i++){var a=this._cellSizeGetter({index:i});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(a));a===null?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=r):(this._cellSizeAndPositionData[i]={offset:o,size:a},o+=a,this._lastMeasuredIndex=r)}return this._cellSizeAndPositionData[r]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var r=this.getSizeAndPositionOfLastMeasuredCell(),n=r.offset+r.size,o=this._cellCount-this._lastMeasuredIndex-1,i=o*this._estimatedCellSize;return n+i}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;if(i<=0)return 0;var u=this.getSizeAndPositionOfCell(s),c=u.offset,d=c-i+u.size,f;switch(o){case"start":f=c;break;case"end":f=d;break;case"center":f=c-(i-u.size)/2;break;default:f=Math.max(d,Math.min(c,a));break}var p=this.getTotalSize();return Math.max(0,Math.min(p-i,f))}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset,i=this.getTotalSize();if(i===0)return{};var a=o+n,s=this._findNearestCell(o),u=this.getSizeAndPositionOfCell(s);o=u.offset+u.size;for(var c=s;oo&&(r=i-1)}return n>0?n-1:0}},{key:"_exponentialSearch",value:function(r,n){for(var o=1;r=r?this._binarySearch(o,0,r):this._exponentialSearch(o,r)}}]),e}(),nF=15e5,oF=16777100,iF=function(){return typeof window<"u"},aF=function(){return!!window.chrome},sF=function(){return iF()&&aF()?oF:nF},jw=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?sF():r,o=Fs(t,["maxScrollSize"]);ft(this,e),F(this,"_cellSizeAndPositionManager",void 0),F(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new rF(o),this._maxScrollSize=n}return gt(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(r){this._cellSizeAndPositionManager.configure(r)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(a-i))}},{key:"getSizeAndPositionOfCell",value:function(r){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(r)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;a=this._safeOffsetToOffset({containerSize:i,offset:a});var u=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:u})}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset;return o=this._safeOffsetToOffset({containerSize:n,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:n,offset:o})}},{key:"resetCell",value:function(r){this._cellSizeAndPositionManager.resetCell(r)}},{key:"_getOffsetPercentage",value:function(r){var n=r.containerSize,o=r.offset,i=r.totalSize;return i<=n?0:o/(i-n)}},{key:"_offsetToSafeOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:i});return Math.round(s*(a-n))}},{key:"_safeOffsetToOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(i-n))}}]),e}();function Wa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),a=!e||i.every(function(u){var c=o[u];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(u){var c=t[u],d=o[u];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});t=o,a&&s&&n(o)}}var Bu=-1,Jn=1;function IP(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Jn?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}}function zw(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,f=e.size,p=e.sizeJustIncreasedFromZero,y=e.updateScrollIndexCallback,S=r.getCellCount(),g=d>=0&&d0&&(fr.getTotalSize()-f&&y(S-1)}function jP(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,f=e.rowSizeAndPositionManager,p=e.rowStartIndex,y=e.rowStopIndex,S=e.styleCache,g=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],_=n.areOffsetsAdjusted()||f.areOffsetsAdjusted(),k=!u&&!_,T=p;T<=y;T++)for(var E=f.getSizeAndPositionOfCell(T),x=o;x<=i;x++){var O=n.getSizeAndPositionOfCell(x),I=x>=C.start&&x<=C.stop&&T>=v.start&&T<=v.stop,j="".concat(T,"-").concat(x),M=void 0;k&&S[j]?M=S[j]:a&&!a.has(T,x)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:E.size,left:O.offset+s,position:"absolute",top:E.offset+g,width:O.size},S[j]=M);var B={columnIndex:x,isScrolling:u,isVisible:I,key:j,parent:d,rowIndex:T,style:M},$=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r(B)),$=t[j]):$=r(B),!($==null||$===!1)&&b.push($)}return b}const lF=!!(typeof window<"u"&&window.document&&window.document.createElement);var Wu;function pv(e){if((!Wu&&Wu!==0||e)&&lF){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Wu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Wu}var cr;typeof window<"u"?cr=window:typeof self<"u"?cr=self:cr={};var uF=cr.requestAnimationFrame||cr.webkitRequestAnimationFrame||cr.mozRequestAnimationFrame||cr.oRequestAnimationFrame||cr.msRequestAnimationFrame||function(e){return cr.setTimeout(e,1e3/60)},cF=cr.cancelAnimationFrame||cr.webkitCancelAnimationFrame||cr.mozCancelAnimationFrame||cr.oCancelAnimationFrame||cr.msCancelAnimationFrame||function(e){cr.clearTimeout(e)},Nw=uF,dF=cF,Ua=function(t){return dF(t.id)},yy=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=Nw(a)},i={id:Nw(o)};return i},Aw,Mw;function Lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(r,n.state)),r.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(r,n.state)),n}return gt(t,[{key:"getOffsetForCell",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.alignment,i=o===void 0?this.props.scrollToAlignment:o,a=n.columnIndex,s=a===void 0?this.props.scrollToColumn:a,u=n.rowIndex,c=u===void 0?this.props.scrollToRow:u,d=oi({},this.props,{scrollToAlignment:i,scrollToColumn:s,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(d),scrollTop:this._getCalculatedScrollTop(d)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(n){var o=n.scrollLeft,i=o===void 0?0:o,a=n.scrollTop,s=a===void 0?0:a;if(!(s<0)){this._debounceScrollEnded();var u=this.props,c=u.autoHeight,d=u.autoWidth,f=u.height,p=u.width,y=this.state.instanceProps,S=y.scrollbarSize,g=y.rowSizeAndPositionManager.getTotalSize(),C=y.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+S),i),b=Math.min(Math.max(0,g-f+S),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==b){var _=v!==this.state.scrollLeft?v>this.state.scrollLeft?Jn:Bu:this.state.scrollDirectionHorizontal,k=b!==this.state.scrollTop?b>this.state.scrollTop?Jn:Bu:this.state.scrollDirectionVertical,T={isScrolling:!0,scrollDirectionHorizontal:_,scrollDirectionVertical:k,scrollPositionChangeReason:Up.OBSERVED};c||(T.scrollTop=b),d||(T.scrollLeft=v),T.needToResetStyleCache=!1,this.setState(T)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:C,totalRowsHeight:g})}}},{key:"invalidateCellSizeAfterRender",value:function(n){var o=n.columnIndex,i=n.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){var n=this.props,o=n.columnCount,i=n.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(o-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(i-1)}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,u=this.props,c=u.scrollToColumn,d=u.scrollToRow,f=this.state.instanceProps;f.columnSizeAndPositionManager.resetCell(i),f.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===Jn?i<=c:i>=c),this._recomputeScrollTopFlag=d>=0&&(this.state.scrollDirectionVertical===Jn?s<=d:s>=d),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(n){var o=n.columnIndex,i=n.rowIndex,a=this.props.columnCount,s=this.props;a>1&&o!==void 0&&this._updateScrollLeftForScrollToColumn(oi({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(oi({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,u=n.scrollTop,c=n.scrollToRow,d=n.width,f=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),f.scrollbarSizeMeasured||this.setState(function(S){var g=oi({},S,{needToResetStyleCache:!1});return g.instanceProps.scrollbarSize=o(),g.instanceProps.scrollbarSizeMeasured=!0,g}),typeof a=="number"&&a>=0||typeof u=="number"&&u>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:u});p&&(p.needToResetStyleCache=!1,this.setState(p))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var y=i>0&&d>0;s>=0&&y&&this._updateScrollLeftForScrollToColumn(),c>=0&&y&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:u||0,totalColumnsWidth:f.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:f.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(n,o){var i=this,a=this.props,s=a.autoHeight,u=a.autoWidth,c=a.columnCount,d=a.height,f=a.rowCount,p=a.scrollToAlignment,y=a.scrollToColumn,S=a.scrollToRow,g=a.width,C=this.state,v=C.scrollLeft,b=C.scrollPositionChangeReason,_=C.scrollTop,k=C.instanceProps;this._handleInvalidatedGridSize();var T=c>0&&n.columnCount===0||f>0&&n.rowCount===0;b===Up.REQUESTED&&(!u&&v>=0&&(v!==this._scrollingContainer.scrollLeft||T)&&(this._scrollingContainer.scrollLeft=v),!s&&_>=0&&(_!==this._scrollingContainer.scrollTop||T)&&(this._scrollingContainer.scrollTop=_));var E=(n.width===0||n.height===0)&&d>0&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):zw({cellSizeAndPositionManager:k.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:y,size:g,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):zw({cellSizeAndPositionManager:k.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:_,scrollToAlignment:p,scrollToIndex:S,size:d,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||_!==o.scrollTop){var x=k.rowSizeAndPositionManager.getTotalSize(),O=k.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:_,totalColumnsWidth:O,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Ua(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,u=n.containerProps,c=n.containerRole,d=n.containerStyle,f=n.height,p=n.id,y=n.noContentRenderer,S=n.role,g=n.style,C=n.tabIndex,v=n.width,b=this.state,_=b.instanceProps,k=b.needToResetStyleCache,T=this._isScrolling(),E={boxSizing:"border-box",direction:"ltr",height:i?"auto":f,position:"relative",width:a?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};k&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=_.columnSizeAndPositionManager.getTotalSize(),O=_.rowSizeAndPositionManager.getTotalSize(),I=O>f?_.scrollbarSize:0,j=x>v?_.scrollbarSize:0;(j!==this._horizontalScrollBarSize||I!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=j,this._verticalScrollBarSize=I,this._scrollbarPresenceChanged=!0),E.overflowX=x+I<=v?"hidden":"auto",E.overflowY=O+j<=f?"hidden":"auto";var M=this._childrenToDisplay,B=M.length===0&&f>0&&v>0;return N.createElement("div",ne({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:vn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:S,style:oi({},E,{},g),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:oi({width:o?"auto":x,height:O,maxWidth:x,maxHeight:O,overflow:"hidden",pointerEvents:T?"none":"",position:"relative"},d)},M),B&&y())}},{key:"_calculateChildrenToRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=n.cellRenderer,a=n.cellRangeRenderer,s=n.columnCount,u=n.deferredMeasurementCache,c=n.height,d=n.overscanColumnCount,f=n.overscanIndicesGetter,p=n.overscanRowCount,y=n.rowCount,S=n.width,g=n.isScrollingOptOut,C=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,b=o.instanceProps,_=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,k=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,T=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&S>0){var E=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:S,offset:k}),x=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:_}),O=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:S,offset:k}),I=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:_});this._renderedColumnStartIndex=E.start,this._renderedColumnStopIndex=E.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var j=f({direction:"horizontal",cellCount:s,overscanCellsCount:d,scrollDirection:C,startIndex:typeof E.start=="number"?E.start:0,stopIndex:typeof E.stop=="number"?E.stop:-1}),M=f({direction:"vertical",cellCount:y,overscanCellsCount:p,scrollDirection:v,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),B=j.overscanStartIndex,$=j.overscanStopIndex,D=M.overscanStartIndex,Z=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var ae=D;ae<=Z;ae++)if(!u.has(ae,0)){B=0,$=s-1;break}}if(!u.hasFixedWidth()){for(var he=B;he<=$;he++)if(!u.has(0,he)){D=0,Z=y-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:B,columnStopIndex:$,deferredMeasurementCache:u,horizontalOffsetAdjustment:O,isScrolling:T,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:D,rowStopIndex:Z,scrollLeft:k,scrollTop:_,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:E,visibleRowIndices:x}),this._columnStartIndex=B,this._columnStopIndex=$,this._rowStartIndex=D,this._rowStopIndex=Z}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ua(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=yy(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalColumnsWidth,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:u,scrollLeft:f,scrollTop:p,scrollWidth:s})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_isScrolling",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(n,"isScrolling")?!!n.isScrolling:!!o.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var n=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,n({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(n,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(n,o)}},{key:"_resetStyleCache",value:function(){var n=this._styleCache,o=this._cellCache,i=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var u="".concat(a,"-").concat(s);this._styleCache[u]=n[u],i&&(this._cellCache[u]=o[u])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i={};n.columnCount===0&&o.scrollLeft!==0||n.rowCount===0&&o.scrollTop!==0?(i.scrollLeft=0,i.scrollTop=0):(n.scrollLeft!==o.scrollLeft&&n.scrollToColumn<0||n.scrollTop!==o.scrollTop&&n.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}));var a=o.instanceProps;i.needToResetStyleCache=!1,(n.columnWidth!==a.prevColumnWidth||n.rowHeight!==a.prevRowHeight)&&(i.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:n.columnCount,estimatedCellSize:t._getEstimatedColumnSize(n),cellSizeGetter:t._wrapSizeGetter(n.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:n.rowCount,estimatedCellSize:t._getEstimatedRowSize(n),cellSizeGetter:t._wrapSizeGetter(n.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),n.autoHeight&&n.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(i,{isScrolling:!1});var s,u;return Iw({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.columnCount,nextCellSize:typeof n.columnWidth=="number"?n.columnWidth:null,nextScrollToIndex:n.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollLeftForScrollToColumnStateUpdate(n,o)}}),Iw({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.rowCount,nextCellSize:typeof n.rowHeight=="number"?n.rowHeight:null,nextScrollToIndex:n.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){u=t._getScrollTopForScrollToRowStateUpdate(n,o)}}),a.prevColumnCount=n.columnCount,a.prevColumnWidth=n.columnWidth,a.prevIsScrolling=n.isScrolling===!0,a.prevRowCount=n.rowCount,a.prevRowHeight=n.rowHeight,a.prevScrollToColumn=n.scrollToColumn,a.prevScrollToRow=n.scrollToRow,a.scrollbarSize=n.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,i.instanceProps=a,oi({},i,{},s,{},u)}},{key:"_getEstimatedColumnSize",value:function(n){return typeof n.columnWidth=="number"?n.columnWidth:n.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(n){return typeof n.rowHeight=="number"?n.rowHeight:n.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(n){var o=n.prevState,i=n.scrollLeft,a=n.scrollTop,s={scrollPositionChangeReason:Up.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Jn:Bu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Jn:Bu,s.scrollTop=a),typeof i=="number"&&i>=0&&i!==o.scrollLeft||typeof a=="number"&&a>=0&&a!==o.scrollTop?s:{}}},{key:"_wrapSizeGetter",value:function(n){return typeof n=="function"?n:function(){return n}}},{key:"_getCalculatedScrollLeft",value:function(n,o){var i=n.columnCount,a=n.height,s=n.scrollToAlignment,u=n.scrollToColumn,c=n.width,d=o.scrollLeft,f=o.instanceProps;if(i>0){var p=i-1,y=u<0?p:Math.min(p,u),S=f.rowSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>a?f.scrollbarSize:0;return f.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:d,targetIndex:y})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(n,o){var i=o.scrollLeft,a=t._getCalculatedScrollLeft(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(n,o){var i=n.height,a=n.rowCount,s=n.scrollToAlignment,u=n.scrollToRow,c=n.width,d=o.scrollTop,f=o.instanceProps;if(a>0){var p=a-1,y=u<0?p:Math.min(p,u),S=f.columnSizeAndPositionManager.getTotalSize(),g=f.scrollbarSizeMeasured&&S>c?f.scrollbarSize:0;return f.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:d,targetIndex:y})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(n,o){var i=o.scrollTop,a=t._getCalculatedScrollTop(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:a}):{}}}]),t}(N.PureComponent),F(Aw,"propTypes",null),Mw);F(ao,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:jP,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:pv,noContentRenderer:hF,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:IP,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:fF,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zl(ao);var pF=1;function Sy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===pF?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var $w,Dw;function Fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function mF(e){for(var t=1;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',j=O.head||O.getElementsByTagName("head")[0],M=O.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(O.createTextNode(I)),j.appendChild(M)}},T=function(O,I){if(n)O.attachEvent("onresize",I);else{if(!O.__resizeTriggers__){var j=O.ownerDocument,M=r.getComputedStyle(O);M&&M.position=="static"&&(O.style.position="relative"),k(j),O.__resizeLast__={},O.__resizeListeners__=[],(O.__resizeTriggers__=j.createElement("div")).className="resize-triggers";var B='
';if(window.trustedTypes){var $=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return B}});O.__resizeTriggers__.innerHTML=$.createHTML("")}else O.__resizeTriggers__.innerHTML=B;O.appendChild(O.__resizeTriggers__),a(O),O.addEventListener("scroll",u,!0),f&&(O.__resizeTriggers__.__animationListener__=function(Z){Z.animationName==v&&a(O)},O.__resizeTriggers__.addEventListener(f,O.__resizeTriggers__.__animationListener__))}O.__resizeListeners__.push(I)}},E=function(O,I){if(n)O.detachEvent("onresize",I);else if(O.__resizeListeners__.splice(O.__resizeListeners__.indexOf(I),1),!O.__resizeListeners__.length){O.removeEventListener("scroll",u,!0),O.__resizeTriggers__.__animationListener__&&(O.__resizeTriggers__.removeEventListener(f,O.__resizeTriggers__.__animationListener__),O.__resizeTriggers__.__animationListener__=null);try{O.__resizeTriggers__=!O.removeChild(O.__resizeTriggers__)}catch{}}};return{addResizeListener:T,removeResizeListener:E}}var Bw,Ww;function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vF(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),F(this,"_cellHeightCache",{}),F(this,"_cellWidthCache",{}),F(this,"_columnWidthCache",{}),F(this,"_rowHeightCache",{}),F(this,"_defaultHeight",void 0),F(this,"_defaultWidth",void 0),F(this,"_minHeight",void 0),F(this,"_minWidth",void 0),F(this,"_keyMapper",void 0),F(this,"_hasFixedHeight",void 0),F(this,"_hasFixedWidth",void 0),F(this,"_columnCount",0),F(this,"_rowCount",0),F(this,"columnWidth",function(d){var f=d.index,p=t._keyMapper(0,f);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),F(this,"rowHeight",function(d){var f=d.index,p=t._keyMapper(f,0);return t._rowHeightCache[p]!==void 0?t._rowHeightCache[p]:t._defaultHeight});var n=r.defaultHeight,o=r.defaultWidth,i=r.fixedHeight,a=r.fixedWidth,s=r.keyMapper,u=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=s||bF,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:gF),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:yF)}return gt(e,[{key:"clear",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(r,n)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(r,n);return this._cellWidthCache[o]!==void 0?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0}},{key:"set",value:function(r,n,o,i){var a=this._keyMapper(r,n);n>=this._columnCount&&(this._columnCount=n+1),r>=this._rowCount&&(this._rowCount=r+1),this._cellHeightCache[a]=i,this._cellWidthCache[a]=o,this._updateCachedColumnAndRowSizes(r,n)}},{key:"_updateCachedColumnAndRowSizes",value:function(r,n){if(!this._hasFixedWidth){for(var o=0,i=0;i=0){var C=u.getScrollPositionForCell({align:d,cellIndex:f,height:c,scrollLeft:S,scrollTop:g,width:p});(C.scrollLeft!==S||C.scrollTop!==g)&&n._setScrollPosition(C)}}),F(Q(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var u=n.props,c=u.cellLayoutManager,d=u.height,f=u.isScrollingChange,p=u.width,y=n._scrollbarSize,S=c.getTotalSize(),g=S.height,C=S.width,v=Math.max(0,Math.min(C-p+y,s.target.scrollLeft)),b=Math.max(0,Math.min(g-d+y,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==b){var _=s.cancelable?ea.OBSERVED:ea.REQUESTED;n.state.isScrolling||f(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:_,scrollTop:b})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalWidth:C,totalHeight:g})}}),n._scrollbarSize=pv(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return gt(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var n=this.props,o=n.cellLayoutManager,i=n.scrollLeft,a=n.scrollToCell,s=n.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=pv(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var u=o.getTotalSize(),c=u.height,d=u.width;this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalHeight:c,totalWidth:d})}},{key:"componentDidUpdate",value:function(n,o){var i=this.props,a=i.height,s=i.scrollToAlignment,u=i.scrollToCell,c=i.width,d=this.state,f=d.scrollLeft,p=d.scrollPositionChangeReason,y=d.scrollTop;p===ea.REQUESTED&&(f>=0&&f!==o.scrollLeft&&f!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=f),y>=0&&y!==o.scrollTop&&y!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=y)),(a!==n.height||s!==n.scrollToAlignment||u!==n.scrollToCell||c!==n.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoHeight,i=n.cellCount,a=n.cellLayoutManager,s=n.className,u=n.height,c=n.horizontalOverscanSize,d=n.id,f=n.noContentRenderer,p=n.style,y=n.verticalOverscanSize,S=n.width,g=this.state,C=g.isScrolling,v=g.scrollLeft,b=g.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var _=a.getTotalSize(),k=_.height,T=_.width,E=Math.max(0,v-c),x=Math.max(0,b-y),O=Math.min(T,v+S+c),I=Math.min(k,b+u+y),j=u>0&&S>0?a.cellRenderers({height:I-x,isScrolling:C,width:O-E,x:E,y:x}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:S,willChange:"transform"},B=k>u?this._scrollbarSize:0,$=T>S?this._scrollbarSize:0;return M.overflowX=T+B<=S?"hidden":"auto",M.overflowY=k+$<=u?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:vn("ReactVirtualized__Collection",s),id:d,onScroll:this._onScroll,role:"grid",style:wF({},M,{},p),tabIndex:0},i>0&&N.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:k,maxHeight:k,maxWidth:T,overflow:"hidden",pointerEvents:C?"none":"",width:T}},j),i===0&&f())}},{key:"_enablePointerEventsAfterDelay",value:function(){var n=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var o=n.props.isScrollingChange;o(!1),n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1})},_F)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,u=n.totalWidth;this._onScrollMemoizer({callback:function(d){var f=d.scrollLeft,p=d.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:s,scrollLeft:f,scrollTop:p,scrollWidth:u})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:ea.REQUESTED};o>=0&&(a.scrollLeft=o),i>=0&&(a.scrollTop=i),(o>=0&&o!==this.state.scrollLeft||i>=0&&i!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.cellCount===0&&(o.scrollLeft!==0||o.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ea.REQUESTED}:n.scrollLeft!==o.scrollLeft||n.scrollTop!==o.scrollTop?{scrollLeft:n.scrollLeft!=null?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null?n.scrollTop:o.scrollTop,scrollPositionChangeReason:ea.REQUESTED}:null}}]),t}(N.PureComponent);F(Af,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});Af.propTypes={};Zl(Af);var xF=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;ft(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gt(e,[{key:"addCellIndex",value:function(r){var n=r.index;this._indexMap[n]||(this._indexMap[n]=!0,this._indices.push(n))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),CF=100,RF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CF;ft(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gt(e,[{key:"getCellIndices",value:function(r){var n=r.height,o=r.width,i=r.x,a=r.y,s={};return this.getSections({height:n,width:o,x:i,y:a}).forEach(function(u){return u.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(u){return s[u]})}},{key:"getCellMetadata",value:function(r){var n=r.index;return this._cellMetadata[n]}},{key:"getSections",value:function(r){for(var n=r.height,o=r.width,i=r.x,a=r.y,s=Math.floor(i/this._sectionSize),u=Math.floor((i+o-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),d=Math.floor((a+n-1)/this._sectionSize),f=[],p=s;p<=u;p++)for(var y=c;y<=d;y++){var S="".concat(p,".").concat(y);this._sections[S]||(this._sections[S]=new xF({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:y*this._sectionSize})),f.push(this._sections[S])}return f}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var r=this;return Object.keys(this._sections).map(function(n){return r._sections[n].toString()})}},{key:"registerCell",value:function(r){var n=r.cellMetadatum,o=r.index;this._cellMetadata[o]=n,this.getSections(n).forEach(function(i){return i.addCellIndex({index:o})})}}]),e}();function kF(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new RF(n),a=0,s=0,u=0;u=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var S=y.startIndex-1;if(!t({index:S}))y.startIndex=S;else break}return a}function NF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}var Kw,Yw,$P=(Yw=Kw=function(e){mr(t,e);function t(){var r,n;ft(this,t);for(var o=arguments.length,i=new Array(o),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:0})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"render",value:function(){var n=this.props,o=n.className,i=n.noRowsRenderer,a=n.scrollToIndex,s=n.width,u=vn("ReactVirtualized__List",o);return N.createElement(ao,ne({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:u,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),F(Kw,"propTypes",null),Yw);F($P,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Sy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function AF(e){if(Array.isArray(e))return e}function MF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function LF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $F(e,t){return AF(e)||MF(e,t)||LP(e,t)||LF()}function DF(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>=n?(o=i,r=i-1):t=i+1}return o}function FF(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>=0?(i=a,r=a-1):t=a+1}return i}function BF(e,t,r,n,o){return typeof r=="function"?FF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):DF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function WF(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>n?(o=i,r=i-1):t=i+1}return o}function UF(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>0?(i=a,r=a-1):t=a+1}return i}function HF(e,t,r,n,o){return typeof r=="function"?UF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):WF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function qF(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a>>1,s=e[a];o(s,n)<0?(i=a,t=a+1):r=a-1}return i}function VF(e,t,r,n,o){return typeof r=="function"?GF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):qF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function KF(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a<=n?(o=i,t=i+1):r=i-1}return o}function YF(e,t,r,n,o){for(var i=t-1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)<=0?(i=a,t=a+1):r=a-1}return i}function QF(e,t,r,n,o){return typeof r=="function"?YF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):KF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function XF(e,t,r,n){for(;t<=r;){var o=t+r>>>1,i=e[o];if(i===n)return o;i<=n?t=o+1:r=o-1}return-1}function JF(e,t,r,n,o){for(;t<=r;){var i=t+r>>>1,a=e[i],s=o(a,n);if(s===0)return i;s<=0?t=i+1:r=i-1}return-1}function ZF(e,t,r,n,o){return typeof r=="function"?JF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):XF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const cd={ge:BF,gt:HF,lt:VF,le:QF,eq:ZF};var va=0,ci=1,gc=2;function xy(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var eu=xy.prototype;function Hp(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function DP(e,t){var r=Ha(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Qw(e,t){var r=e.intervals([]);r.push(t),DP(e,r)}function Xw(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?va:(r.splice(n,1),DP(e,r),ci)}eu.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};eu.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Qw(this,e):this.left.insert(e):this.left=Ha([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Qw(this,e):this.right.insert(e):this.right=Ha([e]);else{var r=cd.ge(this.leftPoints,e,Cy),n=cd.ge(this.rightPoints,e,Ry);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};eu.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Xw(this,e);var n=this.left.remove(e);return n===gc?(this.left=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return va;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Xw(this,e);var n=this.right.remove(e);return n===gc?(this.right=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?gc:va;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var i=this,a=this.left;a.right;)i=a,a=a.right;if(i===this)a.right=this.right;else{var s=this.left,n=this.right;i.count-=a.count,i.right=a.left,a.left=s,a.right=n}Hp(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Hp(this,this.left):Hp(this,this.right);return ci}for(var s=cd.ge(this.leftPoints,e,Cy);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function WP(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return BP(this.rightPoints,e,t)}else return WP(this.leftPoints,t)};eu.queryInterval=function(e,t,r){if(ethis.mid&&this.right){var n=this.right.queryInterval(e,t,r);if(n)return n}return tthis.mid?BP(this.rightPoints,e,r):WP(this.leftPoints,r)};function eB(e,t){return e-t}function Cy(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Ry(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Ha(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(j=D,M=D):(j=Math.min(j,D),M=Math.max(M,D)),E.push(u({index:D,isScrolling:k,key:p(D),parent:n,style:(he={height:s.getHeight(D)},F(he,b==="ltr"?"left":"right",Z),F(he,"position","absolute"),F(he,"top",ae),F(he,"width",s.getWidth(D)),he)}))}),O0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),F(this,"_cellMeasurerCache",void 0),F(this,"_columnIndexOffset",void 0),F(this,"_rowIndexOffset",void 0),F(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),F(this,"rowHeight",function(u){var c=u.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=o===void 0?0:o,a=r.rowIndexOffset,s=a===void 0?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=s}return gt(e,[{key:"clear",value:function(r,n){this._cellMeasurerCache.clear(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"set",value:function(r,n,o,i){this._cellMeasurerCache.set(r+this._rowIndexOffset,n+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function r_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t0?new Gp({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Gp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new Gp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return gt(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,s):s}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,u=this.props,c=u.fixedColumnCount,d=u.fixedRowCount,f=Math.max(0,i-c),p=Math.max(0,s-d);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:p}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:f,rowIndex:p}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:s}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:f,rowIndex:s}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var n=this.props,o=n.scrollLeft,i=n.scrollTop;if(o>0||i>0){var a={};o>0&&(a.scrollLeft=o),i>0&&(a.scrollTop=i),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var n=this.props,o=n.onScroll,i=n.onSectionRendered;n.onScrollbarPresenceChange,n.scrollLeft;var a=n.scrollToColumn;n.scrollTop;var s=n.scrollToRow,u=Fs(n,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,d=c.scrollLeft,f=c.scrollTop;return N.createElement("div",{style:this._containerOuterStyle},N.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(u),this._renderTopRightGrid(Qt({},u,{onScroll:o,scrollLeft:d}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qt({},u,{onScroll:o,scrollTop:f})),this._renderBottomRightGrid(Qt({},u,{onScroll:o,onSectionRendered:i,scrollLeft:d,scrollToColumn:a,scrollToRow:s,scrollTop:f}))))}},{key:"_getBottomGridHeight",value:function(n){var o=n.height,i=this._getTopGridHeight(n);return o-i}},{key:"_getLeftGridWidth",value:function(n){var o=n.fixedColumnCount,i=n.columnWidth;if(this._leftGridWidth==null)if(typeof i=="function"){for(var a=0,s=0;s=0?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null&&n.scrollTop>=0?n.scrollTop:o.scrollTop}:null}}]),t}(N.PureComponent);F(Mf,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Mf.propTypes={};Zl(Mf);var UP=function(e){mr(t,e);function t(r,n){var o;return ft(this,t),o=pr(this,Ht(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Q(o)),o}return gt(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,u=o.scrollLeft,c=o.scrollTop,d=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:u,scrollTop:c,scrollWidth:d})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,u=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:u,scrollWidth:c})}}]),t}(N.PureComponent);UP.propTypes={};function sB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.defaultSortBy,n=t.defaultSortDirection,o=n===void 0?{}:n;if(!e)throw Error('Required parameter "sortCallback" not specified');var i=r||[],a={};i.forEach(function(u){a[u]=o[u]!==void 0?o[u]:"ASC"});function s(u){var c=u.defaultSortDirection,d=u.event,f=u.sortBy;if(d.shiftKey)a[f]!==void 0?a[f]=a[f]==="ASC"?"DESC":"ASC":(a[f]=c,i.push(f));else if(d.ctrlKey||d.metaKey){var p=i.indexOf(f);p>=0&&(i.splice(p,1),delete a[f])}else{i.length=0,i.push(f);var y=Object.keys(a);y.forEach(function(S){S!==f&&delete a[S]}),a[f]!==void 0?a[f]=a[f]==="ASC"?"DESC":"ASC":a[f]=c}e({sortBy:i,sortDirection:a})}return{sort:s,sortBy:i,sortDirection:a}}function HP(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function qP(e){var t=e.cellData;return t==null?"":String(t)}function Py(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}Py.propTypes=null;var so={ASC:"ASC",DESC:"DESC"};function Ty(e){var t=e.sortDirection,r=vn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===so.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===so.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===so.ASC?N.createElement("path",{d:"M7 14l5-5 5 5z"}):N.createElement("path",{d:"M7 10l5 5 5-5z"}),N.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}Ty.propTypes={};function Ey(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[N.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return i&&a.push(N.createElement(Ty,{key:"SortIndicator",sortDirection:o})),a}Ey.propTypes=null;function Oy(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(i||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(y){return i({event:y,index:n,rowData:d})}),a&&(p.onDoubleClick=function(y){return a({event:y,index:n,rowData:d})}),s&&(p.onMouseOut=function(y){return s({event:y,index:n,rowData:d})}),u&&(p.onMouseOver=function(y){return u({event:y,index:n,rowData:d})}),c&&(p.onContextMenu=function(y){return c({event:y,index:n,rowData:d})})),N.createElement("div",ne({},p,{className:t,key:o,role:"row",style:f}),r)}Oy.propTypes=null;var Iy=function(e){mr(t,e);function t(){return ft(this,t),pr(this,Ht(t).apply(this,arguments))}return t}(N.Component);F(Iy,"defaultProps",{cellDataGetter:HP,cellRenderer:qP,defaultSortDirection:so.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ey,style:{}});Iy.propTypes={};function o_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var n=Wl.findDOMNode(this.Grid),o=n.clientWidth||0,i=n.offsetWidth||0;return i-o}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var n=this,o=this.props,i=o.children,a=o.className,s=o.disableHeader,u=o.gridClassName,c=o.gridStyle,d=o.headerHeight,f=o.headerRowRenderer,p=o.height,y=o.id,S=o.noRowsRenderer,g=o.rowClassName,C=o.rowStyle,v=o.scrollToIndex,b=o.style,_=o.width,k=this.state.scrollbarWidth,T=s?p:p-d,E=typeof g=="function"?g({index:-1}):g,x=typeof C=="function"?C({index:-1}):C;return this._cachedColumnStyles=[],N.Children.toArray(i).forEach(function(O,I){var j=n._getFlexStyleForColumn(O,O.props.style);n._cachedColumnStyles[I]=ta({overflow:"hidden"},j)}),N.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":N.Children.toArray(i).length,"aria-rowcount":this.props.rowCount,className:vn("ReactVirtualized__Table",a),id:y,role:"grid",style:b},!s&&f({className:vn("ReactVirtualized__Table__headerRow",E),columns:this._getHeaderColumns(),style:ta({height:d,overflow:"hidden",paddingRight:k,width:_},x)}),N.createElement(ao,ne({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:vn("ReactVirtualized__Table__Grid",u),cellRenderer:this._createRow,columnWidth:_,columnCount:1,height:T,id:void 0,noContentRenderer:S,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:k,scrollToRow:v,style:ta({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,u=n.rowData,c=n.rowIndex,d=this.props.onColumnClick,f=o.props,p=f.cellDataGetter,y=f.cellRenderer,S=f.className,g=f.columnData,C=f.dataKey,v=f.id,b=p({columnData:g,dataKey:C,rowData:u}),_=y({cellData:b,columnData:g,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:u,rowIndex:c}),k=function(O){d&&d({columnData:g,dataKey:C,event:O})},T=this._cachedColumnStyles[i],E=typeof _=="string"?_:null;return N.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:vn("ReactVirtualized__Table__rowColumn",S),key:"Row"+c+"-Col"+i,onClick:k,role:"gridcell",style:T,title:E},_)}},{key:"_createHeader",value:function(n){var o=n.column,i=n.index,a=this.props,s=a.headerClassName,u=a.headerStyle,c=a.onHeaderClick,d=a.sort,f=a.sortBy,p=a.sortDirection,y=o.props,S=y.columnData,g=y.dataKey,C=y.defaultSortDirection,v=y.disableSort,b=y.headerRenderer,_=y.id,k=y.label,T=!v&&d,E=vn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),x=this._getFlexStyleForColumn(o,ta({},u,{},o.props.headerStyle)),O=b({columnData:S,dataKey:g,disableSort:v,label:k,sortBy:f,sortDirection:p}),I,j,M,B,$;if(T||c){var D=f!==g,Z=D?C:p===so.DESC?so.ASC:so.DESC,ae=function(te){T&&d({defaultSortDirection:C,event:te,sortBy:g,sortDirection:Z}),c&&c({columnData:S,dataKey:g,event:te})},he=function(te){(te.key==="Enter"||te.key===" ")&&ae(te)};$=o.props["aria-label"]||k||g,B="none",M=0,I=ae,j=he}return f===g&&(B=p===so.ASC?"ascending":"descending"),N.createElement("div",{"aria-label":$,"aria-sort":B,className:E,id:_,key:"Header-Col"+i,onClick:I,onKeyDown:j,role:"columnheader",style:x,tabIndex:M},O)}},{key:"_createRow",value:function(n){var o=this,i=n.rowIndex,a=n.isScrolling,s=n.key,u=n.parent,c=n.style,d=this.props,f=d.children,p=d.onRowClick,y=d.onRowDoubleClick,S=d.onRowRightClick,g=d.onRowMouseOver,C=d.onRowMouseOut,v=d.rowClassName,b=d.rowGetter,_=d.rowRenderer,k=d.rowStyle,T=this.state.scrollbarWidth,E=typeof v=="function"?v({index:i}):v,x=typeof k=="function"?k({index:i}):k,O=b({index:i}),I=N.Children.toArray(f).map(function(B,$){return o._createColumn({column:B,columnIndex:$,isScrolling:a,parent:u,rowData:O,rowIndex:i,scrollbarWidth:T})}),j=vn("ReactVirtualized__Table__row",E),M=ta({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:T},x);return _({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:y,onRowRightClick:S,onRowMouseOver:g,onRowMouseOut:C,rowData:O,style:M})}},{key:"_getFlexStyleForColumn",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i="".concat(n.props.flexGrow," ").concat(n.props.flexShrink," ").concat(n.props.width,"px"),a=ta({},o,{flex:i,msFlex:i,WebkitFlex:i});return n.props.maxWidth&&(a.maxWidth=n.props.maxWidth),n.props.minWidth&&(a.minWidth=n.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var n=this,o=this.props,i=o.children,a=o.disableHeader,s=a?[]:N.Children.toArray(i);return s.map(function(u,c){return n._createHeader({column:u,index:c})})}},{key:"_getRowHeight",value:function(n){var o=this.props.rowHeight;return typeof o=="function"?o({index:n}):o}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.scrollHeight,a=n.scrollTop,s=this.props.onScroll;s({clientHeight:o,scrollHeight:i,scrollTop:a})}},{key:"_onSectionRendered",value:function(n){var o=n.rowOverscanStartIndex,i=n.rowOverscanStopIndex,a=n.rowStartIndex,s=n.rowStopIndex,u=this.props.onRowsRendered;u({overscanStartIndex:o,overscanStopIndex:i,startIndex:a,stopIndex:s})}},{key:"_setRef",value:function(n){this.Grid=n}},{key:"_setScrollbarWidth",value:function(){var n=this.getScrollbarWidth();this.setState({scrollbarWidth:n})}}]),t}(N.PureComponent);F(jy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Sy,overscanRowCount:10,rowRenderer:Oy,headerRowRenderer:Py,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});jy.propTypes={};var Wo=[],tl=null,Si=null;function GP(){Si&&(Si=null,document.body&&tl!=null&&(document.body.style.pointerEvents=tl),tl=null)}function lB(){GP(),Wo.forEach(function(e){return e.__resetIsScrolling()})}function uB(){Si&&Ua(Si);var e=0;Wo.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Si=yy(lB,e)}function VP(e){e.currentTarget===window&&tl==null&&document.body&&(tl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),uB(),Wo.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function i_(e,t){Wo.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",VP),Wo.push(e)}function a_(e,t){Wo=Wo.filter(function(r){return r!==e}),Wo.length||(t.removeEventListener("scroll",VP),Si&&(Ua(Si),GP()))}var zy=function(t){return t===window},Bs=function(t){return t.getBoundingClientRect()};function s_(e,t){if(e)if(zy(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:typeof n=="number"?n:0,width:typeof o=="number"?o:0}}else return Bs(e);else return{height:t.serverHeight,width:t.serverWidth}}function cB(e,t){if(zy(t)&&document.documentElement){var r=document.documentElement,n=Bs(e),o=Bs(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=KP(t),a=Bs(e),s=Bs(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function KP(e){return zy(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}var l_,u_;function c_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dB(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,o=this.props.onResize,i=this.state,a=i.height,s=i.width,u=this._child||Wl.findDOMNode(this);if(u instanceof Element&&n){var c=cB(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var d=s_(n,this.props);(a!==d.height||s!==d.width)&&(this.setState({height:d.height,width:d.width}),o({height:d.height,width:d.width}))}},{key:"componentDidMount",value:function(){var n=this.props.scrollElement;this._detectElementResize=zP(),this.updatePosition(n),n&&(i_(this,n),this._registerResizeListener(n)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(n,o){var i=this.props.scrollElement,a=n.scrollElement;a!==i&&a!=null&&i!=null&&(this.updatePosition(i),a_(this,a),i_(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(a_(this,n),this._unregisterResizeListener(n)),this._isMounted=!1}},{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.isScrolling,a=o.scrollTop,s=o.scrollLeft,u=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:u,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),F(l_,"propTypes",null),u_);F(QP,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:fB,scrollElement:YP(),serverHeight:0,serverWidth:0});const hB=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:by,AutoSizer:NP,CellMeasurer:AP,CellMeasurerCache:SF,Collection:wy,Column:Iy,ColumnSizer:MP,Grid:ao,InfiniteLoader:_y,List:$P,Masonry:ky,MultiGrid:Mf,ScrollSync:UP,SortDirection:so,SortIndicator:Ty,Table:jy,WindowScroller:QP,accessibilityOverscanIndicesGetter:Sy,createMasonryCellPositioner:aB,createTableMultiSort:sB,defaultCellRangeRenderer:jP,defaultOverscanIndicesGetter:IP,defaultTableCellDataGetter:HP,defaultTableCellRenderer:qP,defaultTableHeaderRenderer:Ey,defaultTableHeaderRowRenderer:Py,defaultTableRowRenderer:Oy},Symbol.toStringTag,{value:"Module"})),pB=Xa(hB);function ro(e,t,r){return t<=e&&e<=r}function Lf(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function mB(e){for(var t=String(e),r=t.length,n=0,o=[];n57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(n===r-1)o.push(65533);else{var a=e.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=i&1023,u=a&1023;o.push(65536+(s<<10)+u),n+=1}else o.push(65533)}n+=1}return o}function vB(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var dd=-1;function Ny(e){this.tokens=[].slice.call(e)}Ny.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():dd},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var qa=-1;function Vp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var fd="utf-8";function hd(e,t){if(!(this instanceof hd))return new hd(e,t);if(e=e!==void 0?String(e).toLowerCase():fd,e!==fd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Lf(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}hd.prototype={decode:function(t,r){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),r=Lf(r),this._streaming||(this._decoder=new gB({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new Ny(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==qa);)a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));if(!this._streaming){do{if(a=this._decoder.handler(o,o.read()),a===qa)break;a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),vB(i)}};function pd(e,t){if(!(this instanceof pd))return new pd(e,t);if(e=e!==void 0?String(e).toLowerCase():fd,e!==fd)throw new Error("Encoding not supported. Only utf-8 is supported");t=Lf(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}pd.prototype={encode:function(t,r){t=t?String(t):"",r=Lf(r),this._streaming||(this._encoder=new yB(this._options)),this._streaming=!!r.stream;for(var n=[],o=new Ny(mB(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==qa);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==qa;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function gB(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===dd&&o!==0)return o=0,Vp(t);if(u===dd)return qa;if(o===0){if(ro(u,0,127))return u;if(ro(u,194,223))o=1,r=u-192;else if(ro(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(ro(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Vp(t);return r=r<<6*o,null}if(!ro(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Vp(t);if(i=128,a=191,n+=1,r+=u-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function yB(e){e.fatal,this.handler=function(t,r){if(r===dd)return qa;if(ro(r,0,127))return r;var n,o;ro(r,128,2047)?(n=1,o=192):ro(r,2048,65535)?(n=2,o=224):ro(r,65536,1114111)&&(n=3,o=240);for(var i=[(r>>6*n)+o];n>0;){var a=r>>6*(n-1);i.push(128|a&63),n-=1}return i}}const SB=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:hd,TextEncoder:pd},Symbol.toStringTag,{value:"Module"})),bB=Xa(SB);var d_={},f_;function wB(){return f_||(f_=1,function(e){if(e.fetch)return;var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(x){return x&&DataView.prototype.isPrototypeOf(x)},o=ArrayBuffer.isView||function(x){return x&&r.indexOf(Object.prototype.toString.call(x))>-1};function i(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(x))throw new TypeError("Invalid character in header field name");return x.toLowerCase()}function a(x){return typeof x!="string"&&(x=String(x)),x}function s(x){var O={next:function(){var I=x.shift();return{done:I===void 0,value:I}}};return t.iterable&&(O[Symbol.iterator]=function(){return O}),O}function u(x){this.map={},x instanceof u?x.forEach(function(O,I){this.append(I,O)},this):Array.isArray(x)?x.forEach(function(O){this.append(O[0],O[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(O){this.append(O,x[O])},this)}u.prototype.append=function(x,O){x=i(x),O=a(O);var I=this.map[x];this.map[x]=I?I+","+O:O},u.prototype.delete=function(x){delete this.map[i(x)]},u.prototype.get=function(x){return x=i(x),this.has(x)?this.map[x]:null},u.prototype.has=function(x){return this.map.hasOwnProperty(i(x))},u.prototype.set=function(x,O){this.map[i(x)]=a(O)},u.prototype.forEach=function(x,O){for(var I in this.map)this.map.hasOwnProperty(I)&&x.call(O,this.map[I],I,this)},u.prototype.keys=function(){var x=[];return this.forEach(function(O,I){x.push(I)}),s(x)},u.prototype.values=function(){var x=[];return this.forEach(function(O){x.push(O)}),s(x)},u.prototype.entries=function(){var x=[];return this.forEach(function(O,I){x.push([I,O])}),s(x)},t.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function c(x){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}function d(x){return new Promise(function(O,I){x.onload=function(){O(x.result)},x.onerror=function(){I(x.error)}})}function f(x){var O=new FileReader,I=d(O);return O.readAsArrayBuffer(x),I}function p(x){var O=new FileReader,I=d(O);return O.readAsText(x),I}function y(x){for(var O=new Uint8Array(x),I=new Array(O.length),j=0;j-1?O:x}function b(x,O){O=O||{};var I=O.body;if(x instanceof b){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,O.headers||(this.headers=new u(x.headers)),this.method=x.method,this.mode=x.mode,!I&&x._bodyInit!=null&&(I=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=O.credentials||this.credentials||"omit",(O.headers||!this.headers)&&(this.headers=new u(O.headers)),this.method=v(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(I)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function _(x){var O=new FormData;return x.trim().split("&").forEach(function(I){if(I){var j=I.split("="),M=j.shift().replace(/\+/g," "),B=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(M),decodeURIComponent(B))}}),O}function k(x){var O=new u,I=x.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(j){var M=j.split(":"),B=M.shift().trim();if(B){var $=M.join(":").trim();O.append(B,$)}}),O}g.call(b.prototype);function T(x,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new u(O.headers),this.url=O.url||"",this._initBody(x)}g.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var x=new T(null,{status:0,statusText:""});return x.type="error",x};var E=[301,302,303,307,308];T.redirect=function(x,O){if(E.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:x}})},e.Headers=u,e.Request=b,e.Response=T,e.fetch=function(x,O){return new Promise(function(I,j){var M=new b(x,O),B=new XMLHttpRequest;B.onload=function(){var $={status:B.status,statusText:B.statusText,headers:k(B.getAllResponseHeaders()||"")};$.url="responseURL"in B?B.responseURL:$.headers.get("X-Request-URL");var D="response"in B?B.response:B.responseText;I(new T(D,$))},B.onerror=function(){j(new TypeError("Network request failed"))},B.ontimeout=function(){j(new TypeError("Network request failed"))},B.open(M.method,M.url,!0),M.credentials==="include"?B.withCredentials=!0:M.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&t.blob&&(B.responseType="blob"),M.headers.forEach(function($,D){B.setRequestHeader(D,$)}),B.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:di)),d_}function h_(e,t){for(var r=0;r0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Jy(this)}},Kn(e,[{key:"closed",get:function(){return vi(this)===!1?Promise.reject(qu("closed")):this._closedPromise}}]),e}(),KW=function(){function e(r){if(!eo(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(na(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Oo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");xT(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(_d("cancel")):CT(this,n):Promise.reject(Gu("cancel"))},t.read=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(_d("read from")):ArrayBuffer.isView(n)?gd(n.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):n.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):YW(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(Gu("read"))},t.releaseLock=function(){if(!Us(this))throw Gu("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Jy(this)}},Kn(e,[{key:"closed",get:function(){return Us(this)?this._closedPromise:Promise.reject(Gu("closed"))}}]),e}();function Us(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function vi(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function xT(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?u6(e):t._state==="closed"?d6(e):(c6(e,t._storedError),e._closedPromise.catch(function(){}))}function CT(e,t){var r=e._ownerReadableStream;return bi(r,t)}function Jy(e){e._ownerReadableStream._state==="readable"?$T(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):f6(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function YW(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):ZW(n._readableStreamController,t,r)}function Zy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Vo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[Gy](t)}var RT=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Hu(this)===!1)throw Vu("close");if(wd(this)===!1)throw new TypeError("The stream is not in a state that permits close");Sd(this)},t.enqueue=function(n){if(Hu(this)===!1)throw Vu("enqueue");if(wd(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return bd(this,n)},t.error=function(n){if(Hu(this)===!1)throw Vu("error");Ko(this,n)},t[qy]=function(r){ls(this);var n=this._cancelAlgorithm(r);return yd(this),n},t[Gy]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=MW(this);return this._closeRequested===!0&&this._queue.length===0?(yd(this),ru(n)):Ol(this),Promise.resolve(Vo(o,!1,r))}var i=ST(n,r);return Ol(this),i},Kn(e,[{key:"desiredSize",get:function(){if(Hu(this)===!1)throw Vu("desiredSize");return e0(this)}}]),e}();function Hu(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Ol(e){var t=kT(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){if(e._pulling=!1,e._pullAgain===!0)return e._pullAgain=!1,Ol(e)},function(n){Ko(e,n)}).catch(no)}}function kT(e){var t=e._controlledReadableStream;if(wd(e)===!1||e._started===!1)return!1;if(Oo(t)===!0&&Wf(t)>0)return!0;var r=e0(e);return r>0}function yd(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Sd(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(yd(e),ru(t))}function bd(e,t){var r=e._controlledReadableStream;if(Oo(r)===!0&&Wf(r)>0)Qy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Ko(e,o),o}try{LW(e,t,n)}catch(o){throw Ko(e,o),o}}Ol(e)}function Ko(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(ls(e),yd(e),bT(r,t))}function e0(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function QW(e){return kT(e)!==!0}function wd(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function PT(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ls(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=o,e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,Ol(t)},function(u){Ko(t,u)}).catch(no)}function XW(e,t,r,n){var o=Object.create(RT.prototype);function i(){return yT(t,"start",[o])}var a=vd(t,"pull",0,[o]),s=vd(t,"cancel",1,[]);PT(e,o,i,a,s,r,n)}var JW=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(Xp(this)===!1)throw Jp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(gd(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");i6(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(Xp(this)===!1)throw Jp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(n))throw new TypeError("You can only respond with array buffer views");if(gd(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");a6(this._associatedReadableByteStreamController,n)},Kn(e,[{key:"view",get:function(){if(Xp(this)===!1)throw Jp("view");return this._view}}]),e}(),TT=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(na(this)===!1)throw Es("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var n=this._controlledReadableByteStream._state;if(n!=="readable")throw new TypeError("The stream (in "+n+" state) is not in the readable state and cannot be closed");n6(this)},t.enqueue=function(n){if(na(this)===!1)throw Es("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var o=this._controlledReadableByteStream._state;if(o!=="readable")throw new TypeError("The stream (in "+o+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(n))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(gd(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");o6(this,n)},t.error=function(n){if(na(this)===!1)throw Es("error");nu(this,n)},t[qy]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}ls(this);var o=this._cancelAlgorithm(r);return Uf(this),o},t[Gy]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,zT(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(d){return Promise.reject(d)}return Promise.resolve(Vo(i,!1,r))}var a=this._autoAllocateChunkSize;if(a!==void 0){var s;try{s=new ArrayBuffer(a)}catch(d){return Promise.reject(d)}var u={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(u)}var c=ST(n,r);return $i(this),c},Kn(e,[{key:"byobRequest",get:function(){if(na(this)===!1)throw Es("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0],o=new Uint8Array(n.buffer,n.byteOffset+n.bytesFilled,n.byteLength-n.bytesFilled),i=Object.create(JW.prototype);l6(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(na(this)===!1)throw Es("desiredSize");return MT(this)}}]),e}();function na(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function Xp(e){return!(!ss(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function $i(e){var t=r6(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,$i(e))},function(n){nu(e,n)}).catch(no)}}function ET(e){r0(e),e._pendingPullIntos=[]}function t0(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=OT(t);t.readerType==="default"?Qy(e,n,r):GW(e,n,r)}function OT(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function yc(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function IT(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,o=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+o,a=i-i%r,s=o,u=!1;a>n&&(s=a-t.bytesFilled,u=!0);for(var c=e._queue;s>0;){var d=c[0],f=Math.min(s,d.byteLength),p=t.byteOffset+t.bytesFilled;jW(t.buffer,p,d.buffer,d.byteOffset,f),d.byteLength===f?c.shift():(d.byteOffset+=f,d.byteLength-=f),e._queueTotalSize-=f,jT(e,f,t),s-=f}return u}function jT(e,t,r){r0(e),r.bytesFilled+=t}function zT(e){e._queueTotalSize===0&&e._closeRequested===!0?(Uf(e),ru(e._controlledReadableByteStream)):$i(e)}function r0(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function NT(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];IT(e,t)===!0&&(n0(e),t0(e._controlledReadableByteStream,t))}}function ZW(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Bf(t.buffer),s={buffer:a,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:o,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),__(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Vo(u,!0,r))}if(e._queueTotalSize>0){if(IT(e,s)===!0){var c=OT(s);return zT(e),Promise.resolve(Vo(c,!1,r))}if(e._closeRequested===!0){var d=new TypeError("Insufficient bytes to fill elements in the given buffer");return nu(e,d),Promise.reject(d)}}e._pendingPullIntos.push(s);var f=__(n,r);return $i(e),f}function e6(e,t){t.buffer=Bf(t.buffer);var r=e._controlledReadableByteStream;if(Xy(r)===!0)for(;wT(r)>0;){var n=n0(e);t0(r,n)}}function t6(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(jT(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);yc(e,i,0,i.byteLength)}r.buffer=Bf(r.buffer),r.bytesFilled-=n,t0(e._controlledReadableByteStream,r),NT(e)}}function AT(e,t){var r=e._pendingPullIntos[0],n=e._controlledReadableByteStream;if(n._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");e6(e,r)}else t6(e,t,r);$i(e)}function n0(e){var t=e._pendingPullIntos.shift();return r0(e),t}function r6(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(_T(t)===!0&&Wf(t)>0||Xy(t)===!0&&wT(t)>0)return!0;var r=MT(e);return r>0}function Uf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function n6(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0){e._closeRequested=!0;return}if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos[0];if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw nu(e,n),n}}Uf(e),ru(t)}function o6(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Bf(n);if(_T(r)===!0)if(Wf(r)===0)yc(e,a,o,i);else{var s=new Uint8Array(a,o,i);Qy(r,s,!1)}else Xy(r)===!0?(yc(e,a,o,i),NT(e)):yc(e,a,o,i);$i(e)}function nu(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(ET(e),ls(e),Uf(e),bT(r,t))}function MT(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function i6(e,t){if(t=Number(t),zW(t)===!1)throw new RangeError("bytesWritten must be a finite");AT(e,t)}function a6(e,t){var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,AT(e,t.byteLength)}function LT(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,ET(t),t._queue=t._queueTotalSize=void 0,ls(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=gv(i),t._pullAlgorithm=n,t._cancelAlgorithm=o,t._autoAllocateChunkSize=a,t._pendingPullIntos=[],e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,$i(t)},function(u){nu(t,u)}).catch(no)}function s6(e,t,r){var n=Object.create(TT.prototype);function o(){return yT(t,"start",[n])}var i=vd(t,"pull",0,[n]),a=vd(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),_B(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");LT(e,n,o,i,a,r,s)}function l6(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function x_(e){if(typeof e!="object"||e===null)return!1;var t=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return t.call(e),!0}catch{return!1}}function ra(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function _d(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function qu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function u6(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function c6(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function d6(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function $T(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function f6(e,t){e._closedPromise=Promise.reject(t)}function h6(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Gu(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Vu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Jp(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Es(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var p6=Zo.ReadableStream,m6=qe.createDataProperty,v6=function(){function e(r){var n=r.highWaterMark;m6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),g6=qe.createDataProperty,y6=function(){function e(r){var n=r.highWaterMark;g6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();ZP("streams:transform-stream:verbose");var S6=qe.InvokeOrNoop,b6=qe.CreateAlgorithmFromUnderlyingMethod,w6=qe.PromiseCall,DT=qe.typeIsObject,C_=qe.ValidateAndNormalizeHighWaterMark;qe.IsNonNegativeNumber;var R_=qe.MakeSizeAlgorithmFromSizeFunction,_6=Zo.CreateReadableStream,FT=Zo.ReadableStreamDefaultControllerClose,x6=Zo.ReadableStreamDefaultControllerEnqueue,C6=Zo.ReadableStreamDefaultControllerError,R6=Zo.ReadableStreamDefaultControllerGetDesiredSize,k6=Zo.ReadableStreamDefaultControllerHasBackpressure,o0=Zo.ReadableStreamDefaultControllerCanCloseOrEnqueue,P6=Cn.CreateWritableStream,T6=Cn.WritableStreamDefaultControllerErrorIfNeeded,BT=function(){function e(t,r,n){t===void 0&&(t={}),r===void 0&&(r={}),n===void 0&&(n={});var o=r.size,i=r.highWaterMark,a=n.size,s=n.highWaterMark,u=t.writableType;if(u!==void 0)throw new RangeError("Invalid writable type specified");var c=R_(o);i===void 0&&(i=1),i=C_(i);var d=t.readableType;if(d!==void 0)throw new RangeError("Invalid readable type specified");var f=R_(a);s===void 0&&(s=0),s=C_(s);var p,y=new Promise(function(g){p=g});WT(this,y,i,c,s,f),O6(this,t);var S=S6(t,"start",[this._transformStreamController]);p(S)}return Kn(e,[{key:"readable",get:function(){if(k_(this)===!1)throw T_("readable");return this._readable}},{key:"writable",get:function(){if(k_(this)===!1)throw T_("writable");return this._writable}}]),e}();function E6(e,t,r,n,o,i,a){n===void 0&&(n=1),o===void 0&&(o=function(){return 1}),i===void 0&&(i=0),a===void 0&&(a=function(){return 1});var s=Object.create(BT.prototype),u,c=new Promise(function(p){u=p});WT(s,c,n,o,i,a);var d=Object.create(UT.prototype);HT(s,d,t,r);var f=e();return u(f),s}function WT(e,t,r,n,o,i){function a(){return t}function s(p){return z6(e,p)}function u(p){return N6(e,p)}function c(){return A6(e)}e._writable=P6(a,s,c,u,r,n);function d(){return M6(e)}function f(p){return qf(e,p),Promise.resolve()}e._readable=_6(a,d,f,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Gf(e,!0),e._transformStreamController=void 0}function k_(e){return!(!DT(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Hf(e,t){C6(e._readable._readableStreamController,t),qf(e,t)}function qf(e,t){qT(e._transformStreamController),T6(e._writable._writableStreamController,t),e._backpressure===!0&&Gf(e,!1)}function Gf(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var UT=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Ku(this)===!1)throw Yu("enqueue");GT(this,n)},t.error=function(n){if(Ku(this)===!1)throw Yu("error");I6(this,n)},t.terminate=function(){if(Ku(this)===!1)throw Yu("terminate");j6(this)},Kn(e,[{key:"desiredSize",get:function(){if(Ku(this)===!1)throw Yu("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return R6(n)}}]),e}();function Ku(e){return!(!DT(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function HT(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function O6(e,t){var r=Object.create(UT.prototype),n=function(s){try{return GT(r,s),Promise.resolve()}catch(u){return Promise.reject(u)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return w6(o,t,[s,r])}}var i=b6(t,"flush",0,[r]);HT(e,r,n,i)}function qT(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function GT(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(o0(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{x6(n,t)}catch(i){throw qf(r,i),r._readable._storedError}var o=k6(n);o!==r._backpressure&&Gf(r,!0)}function I6(e,t){Hf(e._controlledTransformStream,t)}function P_(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Hf(e._controlledTransformStream,n),n})}function j6(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;o0(r)===!0&&FT(r);var n=new TypeError("TransformStream terminated");qf(t,n)}function z6(e,t){var r=e._transformStreamController;if(e._backpressure===!0){var n=e._backpressureChangePromise;return n.then(function(){var o=e._writable,i=o._state;if(i==="erroring")throw o._storedError;return P_(r,t)})}return P_(r,t)}function N6(e,t){return Hf(e,t),Promise.resolve()}function A6(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return qT(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;o0(o)===!0&&FT(o)}).catch(function(o){throw Hf(e,o),t._storedError})}function M6(e){return Gf(e,!1),e._backpressureChangePromise}var L6={CreateTransformStream:E6,TransformStream:BT};function Yu(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function T_(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var $6=L6.TransformStream;const D6=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:v6,CountQueuingStrategy:y6,ReadableStream:p6,TransformStream:$6,WritableStream:IW},Symbol.toStringTag,{value:"Module"})),F6=Xa(D6);function B6(e,t){return fetch(e,t).then(r=>({body:r.body,headers:r.headers,ok:r.ok,status:r.status,statusText:r.statusText,url:r.url}))}let W6=class VT{constructor(t={}){this.h={},t instanceof VT&&t.forEach((r,n)=>this.append(n,r)),Object.getOwnPropertyNames(t).forEach(r=>this.append(r,t[r]))}append(t,r){t=t.toLowerCase(),Array.isArray(this.h[t])||(this.h[t]=[]),this.h[t].push(r)}set(t,r){this.h[t.toLowerCase()]=[r]}has(t){return Array.isArray(this.h[t.toLowerCase()])}get(t){if(t=t.toLowerCase(),Array.isArray(this.h[t]))return this.h[t][0]}getAll(t){return this.h[t.toLowerCase()].concat()}entries(){const t=[];return this.forEach((r,n)=>{t.push([n,r])}),U6(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function U6(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Zp(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function E_({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,u=!1;const c=new ReadableStream({start(p){s=p},cancel(){u=!0,i.abort()}}),{method:d="GET",signal:f}=o;if(i.open(d,n),i.responseType=e,i.withCredentials=o.credentials!=="omit",o.headers)for(const p of o.headers.entries())i.setRequestHeader(p[0],p[1]);return new Promise((p,y)=>{if(o.body&&(d==="GET"||d==="HEAD")&&y(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),f)if(f.aborted){y(Zp());return}else f.addEventListener("abort",()=>{i.abort(),s&&s.error(Zp()),y(Zp())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:G6(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:q6(i.responseURL,n)})},i.onerror=function(){return y(new TypeError("Network request failed"))},i.ontimeout=function(){y(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const S=a(i.response);s.enqueue(S)}},i.onload=function(){s.close()},i.send(o.body)})}}function H6(){return typeof Headers<"u"?new Headers:new W6}function q6(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function G6(e){const t=H6();if(e){const r=e.split(`\r +`);for(let n=0;n0){const a=o.substring(0,i),s=o.substring(i+2);t.append(a,s)}}}return t}let em=null;function V6(){return em||(em=K6()),em}function K6(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return B6;const e="moz-chunked-arraybuffer";return Y6(e)?E_({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):E_({responseType:"text",responseParserFactory:function(){const t=new TextEncoder;let r=0;return function(n){const o=n.substr(r);return r=n.length,t.encode(o,{stream:!0})}}})}function Y6(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function i0(e,t={}){let r=t.transport;return r||(r=i0.transportFactory()),r(e,t)}i0.transportFactory=V6;const Q6=Object.freeze(Object.defineProperty({__proto__:null,default:i0},Symbol.toStringTag,{value:"Module"})),X6=Xa(Q6);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?di:self,function(){return function(r){function n(i){if(o[i])return o[i].exports;var a=o[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var o={};return n.m=r,n.c=o,n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="./",n(n.s=46)}([function(r){r.exports=N},function(r){function n(i,a){var s=i[1]||"",u=i[3];if(!u)return s;if(a&&typeof btoa=="function"){var c=o(u),d=u.sources.map(function(f){return"/*# sourceURL="+u.sourceRoot+f+" */"});return[s].concat(d).concat([c]).join(` +`)}return[s].join(` +`)}function o(i){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+a)+" */"}r.exports=function(i){var a=[];return a.toString=function(){return this.map(function(s){var u=n(s,i);return s[2]?"@media "+s[2]+"{"+u+"}":u}).join("")},a.i=function(s,u){typeof s=="string"&&(s=[[null,s,""]]);for(var c,d={},f=0;f"u"&&(j=I.apply(this,arguments)),j}}(function(){return window&&document&&document.all&&!window.atob}),b=function(I){return document.querySelector(I)},_=function(){var I={};return function(j){if(typeof j=="function")return j();if(typeof I[j]>"u"){var M=b.call(this,j);if(window.HTMLIFrameElement&&M instanceof window.HTMLIFrameElement)try{M=M.contentDocument.head}catch{M=null}I[j]=M}return I[j]}}(),k=null,T=0,E=[],x=o(5);r.exports=function(I,j){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");j=j||{},j.attrs=typeof j.attrs=="object"?j.attrs:{},j.singleton||typeof j.singleton=="boolean"||(j.singleton=v()),j.insertInto||(j.insertInto="head"),j.insertAt||(j.insertAt="bottom");var M=a(I,j);return i(M,j),function(B){for(var $=[],D=0;DE?-1:E?E-1-B:-1},S=function(_){return _?Array.isArray(_)?_.length===1?Object(i.Range)(_[0],_[0]+1):Object(i.Range)(_[0],_[1]+1):Object(i.Range)(_,_+1):Object(i.Range)(0,0)},g=function(_,k){var T=new Uint8Array(_.length+k.length);return T.set(_,0),T.set(k,_.length),T},C=function(_,k){var T=k?g(k,_):_,E=T.length,x=0,O=0,I=Object(i.List)().withMutations(function(j){for(;OC.b?he(Z):Y()}}),I),c(j,M)}return d(x,E),k(x,[{key:"render",value:function(){var O=this.props,I=O.resultsCount,j=O.filterActive,M=O.disabled,B="match"+(I===1?"":"es"),$=j?v.active:v.inactive;return Object(f.createElement)("div",{className:"react-lazylog-searchbar "+v.searchBar},Object(f.createElement)("input",{autoComplete:"off",type:"text",name:"search",placeholder:"Search",className:"react-lazylog-searchbar-input "+v.searchInput,onChange:this.handleSearchChange,onKeyPress:this.handleSearchKeyPress,value:this.state.keywords,disabled:M}),Object(f.createElement)("button",{disabled:M,className:"react-lazylog-searchbar-filter "+(j?"active":"inactive")+" "+v.button+" "+$,onClick:this.handleFilterToggle},Object(f.createElement)(g,null)),Object(f.createElement)("span",{className:"react-lazylog-searchbar-matches "+(I?"active":"inactive")+" "+(I?v.active:v.inactive)},I," ",B))}}]),x}(f.Component),Object.defineProperty(b,"propTypes",{enumerable:!0,writable:!0,value:{onSearch:p.func,onClearSearch:p.func,onFilterLinesWithMatches:p.func,resultsCount:p.number,filterActive:p.bool,disabled:p.bool}}),Object.defineProperty(b,"defaultProps",{enumerable:!0,writable:!0,value:{onSearch:function(){},onClearSearch:function(){},onFilterLinesWithMatches:function(){},resultsCount:0,filterActive:!1,disabled:!1}}),_)},function(r,n,o){var i=o(26);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._1lq6olr9h2p7MJDCA8c-aL { + height: 15px; + cursor: pointer; +} +`,""]),n.locals={filterLinesIcon:"_1lq6olr9h2p7MJDCA8c-aL"}},function(r,n,o){var i=o(28);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._3hsz3SFOTsWryCiRA9Mjtq { + display: flex; + align-items: center; + justify-content: flex-end; + font-family: "Monaco", monospace; + font-size: 12px; + background-color: #222222; + color: #d6d6d6; + padding: 10px; +} + +._2JObJsQyVcVoB1YD6078ip { + background-color: #464646; + color: #d6d6d6; + height: 20px; + min-width: 200px; + font-size: 12px; + padding: 2px 5px; + border: 1px solid #4e4e4e; + margin-right: 10px; +} + +._1NGepveS5BPffleJYyamDk { + color: #d6d6d6; + fill: #d6d6d6; +} + +._3cXa-36GYrmnrGIXEg46cX { + color: #464646; + fill: #464646; +} + +.qZaVIaYTJWY-GaoXJJ2Cp { + background: none; + border: none; + margin-right: 10px; +} +`,""]),n.locals={searchBar:"_3hsz3SFOTsWryCiRA9Mjtq",searchInput:"_2JObJsQyVcVoB1YD6078ip",active:"_1NGepveS5BPffleJYyamDk",inactive:"_3cXa-36GYrmnrGIXEg46cX",button:"qZaVIaYTJWY-GaoXJJ2Cp"}},function(r,n,o){function i(G){if(Array.isArray(G)){for(var V=0,q=Array(G.length);VDe&&(vr=Gt-De,ir=ir.slice(-De),Gt=ir.count());var _e=Object(E.g)({follow:ye,scrollToLine:ge,previousCount:Tt,count:Gt,offset:vr});U.setState({lines:ir,offset:vr,count:Gt,scrollToIndex:_e}),(be||Re)&&U.forceSearch()}}),Object.defineProperty(U,"handleEnd",{enumerable:!0,writable:!0,value:function(K){U.encodedLog=K,U.setState({loaded:!0}),U.props.onLoad&&U.props.onLoad()}}),Object.defineProperty(U,"handleError",{enumerable:!0,writable:!0,value:function(K){U.setState({error:K}),U.props.onError&&U.props.onError(K)}}),Object.defineProperty(U,"handleHighlight",{enumerable:!0,writable:!0,value:function(K){var ee=U.props.onHighlight,oe=U.state.isFilteringLinesWithMatches;if(K.target.id){var fe=+K.target.id;if(fe){var ge=U.state.highlight.first(),ye=U.state.highlight.last(),be=void 0;be=ge===fe?null:K.shiftKey&&ge?fe>ge?[ge,fe]:[fe,ye]:fe;var Re=Object(E.e)(be),ze={highlight:Re};oe&&Object.assign(ze,{scrollToIndex:Object(E.g)({scrollToLine:fe})}),U.setState(ze,function(){ee&&ee(Re),oe&&U.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(U,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var ee=U.state,oe=ee.resultLines,fe=ee.searchKeywords,ge=U.props,ye=ge.caseInsensitive,be=ge.stream,Re=ge.websocket,ze=be||Re||K!==fe?te(K,U.encodedLog,ye):oe;U.setState({resultLines:ze,isSearching:!0,searchKeywords:K},U.filterLinesWithMatches)}}),Object.defineProperty(U,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=U.state.searchKeywords;K&&K.length>E.b&&U.handleSearch(U.state.searchKeywords)}}),Object.defineProperty(U,"handleClearSearch",{enumerable:!0,writable:!0,value:function(){U.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:Object(p.List)(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:U.state.isFilteringLinesWithMatches,scrollToIndex:0})}}),Object.defineProperty(U,"handleFilterLinesWithMatches",{enumerable:!0,writable:!0,value:function(K){U.setState({isFilteringLinesWithMatches:K,filteredLines:Object(p.List)(),resultLineUniqueIndexes:[]},U.filterLinesWithMatches)}}),Object.defineProperty(U,"filterLinesWithMatches",{enumerable:!0,writable:!0,value:function(){var K=U.state,ee=K.resultLines,oe=K.lines,fe=K.isFilteringLinesWithMatches;if(0{const t=["Bytes","KB","MB","GB","TB"];if(e===0)return"0 Byte";const r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(2)+" "+t[r]},$r=e=>{if(isNaN(e)||e===void 0||e===null||e===0)return"0 B/s";const t=["B/s","KB/s","MB/s","GB/s","TB/s"],r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(2)+" "+t[r]},YT=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",Il=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),o=t>0?t+"h ":"",i=r>0?r+"m ":"",a=n+"s";return o+i+a},i8=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return Il(o)},Kf=(e,t)=>e===0||t===0?"0%":YT(e/t*100),O_=e=>zt(e)+"/s",a8=({logs:e=[],onLogSelected:t,onDownload:r,...n})=>{const o=a=>{t(a)},i=()=>m.jsxs("table",{className:"table-auto w-fit text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{})]})}),m.jsx("tbody",{children:e.map((a,s)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>o(a.name),children:[m.jsx("td",{className:"pl-2",children:a.selected&&m.jsx(Vf,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:zt(a.size)}),m.jsx("td",{children:m.jsx(KT,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},s8=()=>{const e=Hl(),t=Ee(kt),r=Ee(nA),[n,o]=N.useState(""),[i,a]=N.useState("Head");N.useEffect(()=>{r.forEach(c=>{if(c.selected){const d=Math.round(c.size/10);let f=c.url;i==="Head"?f=c.url+"?offset=0&limit="+d:i==="Tail"&&(f=c.url+"?offset="+(c.size-d)+"&limit="+d),o(f)}})},[i,r]),N.useEffect(()=>{let c=!1;r.forEach(d=>{d.selected&&(c=!0)}),c||o("")},[r]),N.useEffect(()=>{t!==""&&CP()},[t]);const s=c=>{fetch(c.url,{method:"GET",headers:{"Content-Type":"text/plain"}}).then(d=>d.blob()).then(d=>{const f=window.URL.createObjectURL(new Blob([d])),p=document.createElement("a");p.href=f,p.setAttribute("download",c.name),document.body.appendChild(p),p.click(),document.body.removeChild(p)})},u=c=>{let d="px-4 py-2 mr-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700 border";const f="bg-gray-900 text-white";return c===i?d+" "+f:d};return m.jsxs("div",{className:"flex flex-col w-full pt-4 pb-4",children:[m.jsx(a8,{logs:r,onLogSelected:c=>{e(FN(c))},onDownload:c=>{s(c)}}),n!==""?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row pb-2 pt-2",children:[m.jsx("button",{className:u("Head"),onClick:()=>a("Head"),children:"Head"}),m.jsx("button",{className:u("Tail"),onClick:()=>a("Tail"),children:"Tail"}),m.jsx("button",{className:u("All"),onClick:()=>a("All"),children:"All"})]}),m.jsx(J6.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},l8=()=>{const e=Ee(Sk),[t,r]=N.useState(!0);function n(){r(!t)}const o=()=>m.jsx(m.Fragment,{children:e.map(s=>m.jsxs("div",{className:"py2 pr-8",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Data base - "+s.path}),m.jsxs("table",{className:"table-auto text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Count"})]})}),m.jsx("tbody",{children:s.tables.map(u=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:u.name}),m.jsx("td",{className:"px-4 py-2",children:u.size}),m.jsx("td",{className:"px-4 py-2",children:u.count})]}))})]})]}))}),i=()=>m.jsx("div",{className:"flex w-full flex-row",children:o()}),a=()=>m.jsx("div",{className:"flex w-full flex-col h-[80vh] pt-4 pb-4",children:o()});return m.jsxs("div",{className:"flex flex-col w-full py-4",children:[m.jsx(Un,{backgroundColor:is,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},u8=({onClose:e,onCreate:t,...r})=>{const[n,o]=se.useState(""),i=a=>{o(a.target.value)};return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-1 z-50 outline-none focus:outline-none",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center",children:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Create Session"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center",children:[m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:"To create a new session, enter a name."}),m.jsx("input",{type:"text",placeholder:"Enter Session Name",className:"border-2 border-slate-200 rounded-md p-2",value:n,onChange:i})]}),m.jsxs("div",{className:"flex items-center justify-end p-6",children:[m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(Un,{backgroundColor:is,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},QT=({onSessionSelected:e,...t})=>{const r=Hl(),n=Ee(XN),[o,i]=N.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(zN(c)),e()},u=()=>m.jsxs(m.Fragment,{children:[m.jsxs("table",{className:"table-auto rounded-lg shadow-lg bg-white text-left w-fit mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"PIN"}),m.jsx("th",{})]})}),m.jsx("tbody",{children:n.map((c,d)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>s(c.pin),children:[m.jsx("td",{className:"pl-2",children:c.active&&m.jsx(Vf,{})}),m.jsx("td",{className:"px-4 py-2",children:c.name}),m.jsx("td",{className:"px-4 py-2",children:c.pin}),m.jsx("td",{children:m.jsx(hy,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},d))})]}),o&&m.jsx(xP,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},c8=({title:e="",body:t="",positiveButton:r="",negativeButton:n="",onClose:o=()=>{},onNegativeClick:i=()=>{},onPositiveClick:a=()=>{}})=>{const s=()=>r!==""&&n!==""?m.jsxs(m.Fragment,{children:[u(!0,r),m.jsx("div",{className:"w-2"}),u(!1,n)]}):r!==""?m.jsx(m.Fragment,{children:u(!0,r)}):n!==""?m.jsx(m.Fragment,{children:u(!1,n)}):null,u=(c,d)=>m.jsx(Un,{backgroundColor:c?Xl:is,label:d,onClick:c?a:i,primary:!0});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center p-4 min-w-[20vw]",children:[m.jsxs("div",{className:"flex flex-row w-full",children:[m.jsx("div",{className:"flex-[1]"}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:e})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(If,{onClick:()=>o(),className:"cursor-pointer"})})]}),m.jsx("div",{className:"inline-block relative p-6 flex-auto justify-center items-center w-full break-all max-h-[80vh] overflow-scroll",children:m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:t})}),m.jsx("div",{className:"flex items-center justify-end p-6",children:s()})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},d8=()=>{const e=Hl(),[t,r]=N.useState(!1),[n,o]=N.useState(!1);function i(a,s){return Math.floor(Math.random()*(s-a)+a)}return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),m.jsx(QT,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(Un,{backgroundColor:Xl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(u8,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(IN({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(Un,{backgroundColor:is,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(c8,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(HN()),e(c3()),e(l3()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var l0={},f8=nt;Object.defineProperty(l0,"__esModule",{value:!0});var XT=l0.default=void 0,h8=f8(ot()),p8=m;XT=l0.default=(0,h8.default)((0,p8.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");var u0={},m8=nt;Object.defineProperty(u0,"__esModule",{value:!0});var JT=u0.default=void 0,v8=m8(ot()),g8=m;JT=u0.default=(0,v8.default)((0,g8.jsx)("path",{d:"M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77c.38-.18.79-.27 1.23-.27 1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z"}),"Hub");const y8=({onSessionClicked:e,onNodeClicked:t})=>{const r=Ee(yk),n=Ee(ZN);return m.jsxs("div",{className:"flex flex-row h-10 bg-blue-500 absolute bottom-0 left-0 w-full z-10 px-5 py-1",children:[m.jsxs("button",{className:"text-white bg-blue-600 hover:bg-blue-700 px-2 rounded-md",onClick:()=>{e()},children:[m.jsx(XT,{}),m.jsx("span",{className:"px-1"}),(r==null?void 0:r.name)||"No Session Selected"]}),m.jsx("span",{className:"mx-4"}),m.jsxs("button",{className:"text-white bg-blue-600 hover:bg-blue-700 px-2 rounded-md",onClick:()=>{t()},children:[m.jsx(JT,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},S8=({open:e,onClose:t,...r})=>m.jsxs("dialog",{className:"fixed z-10 inset-0 overflow-y-auto",open:e,onClose:()=>{t()},children:[m.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75","aria-hidden":"true"}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center relative bg-white rounded-lg p-4",children:[m.jsx("h3",{className:"pb-4 text-xl font-semibold",children:"Sessions List"}),m.jsx(QT,{onSessionSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]}),b8=({onNodeSelected:e,...t})=>{const r=Hl(),n=Ee(eA),o=a=>{r(NN(a)),e()},i=()=>m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Version"}),m.jsx("th",{className:"px-4 py-2",children:"Chain"}),m.jsx("th",{className:"px-4 py-2",children:"Block"}),m.jsx("th",{className:"px-4 py-2",children:"Address"})]})}),m.jsx("tbody",{children:n.map((a,s)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>o(a.id),children:[m.jsx("td",{className:"pl-2",children:a.active&&m.jsx(Vf,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:a.version}),m.jsx("td",{className:"px-4 py-2",children:a.chain}),m.jsx("td",{className:"px-4 py-2",children:a.block}),m.jsx("td",{className:"px-4 py-2",children:a.address})]},s))})]});return m.jsx(m.Fragment,{children:n.length>0&&i()})},w8=({open:e,onClose:t,...r})=>m.jsxs("dialog",{className:"fixed z-10 inset-0 overflow-y-auto",open:e,onClose:()=>{t()},children:[m.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75","aria-hidden":"true"}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center relative bg-white rounded-lg p-4",children:[m.jsx("h3",{className:"pb-4 text-xl font-semibold",children:"Nodes List"}),m.jsx(b8,{onNodeSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var zr=function(){return zr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Bt(us,--Pr):0,Ga--,xt===10&&(Ga=1,Qf--),xt}function Dr(){return xt=Pr2||zl(xt)>3?"":" "}function M8(e,t){for(;--t&&Dr()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return ou(e,Sc()+(t<6&&Bn()==32&&Dr()==32))}function _v(e){for(;Dr();)switch(xt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&_v(xt);break;case 40:e===41&&_v(e);break;case 92:Dr();break}return Pr}function L8(e,t){for(;Dr()&&e+xt!==47+10;)if(e+xt===42+42&&Bn()===47)break;return"/*"+ou(t,Pr-1)+"*"+Yf(e===47?e:Dr())}function $8(e){for(;!zl(Bn());)Dr();return ou(e,Pr)}function I_(e){return oE(wc("",null,null,null,[""],e=nE(e),0,[0],e))}function wc(e,t,r,n,o,i,a,s,u){for(var c=0,d=0,f=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,_="",k=o,T=i,E=n,x=_;C;)switch(S=b,b=Dr()){case 40:if(S!=108&&Bt(x,f-1)==58){wv(x+=Fe(bc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=bc(b);break;case 9:case 10:case 13:case 32:x+=A8(S);break;case 92:x+=M8(Sc()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Qu(D8(L8(Dr(),Sc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=Nn(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+d:y>0&&Nn(x)-f&&Qu(y>32?z_(x+";",n,r,f-1):z_(Fe(x," ","")+";",n,r,f-2),u);break;case 59:x+=";";default:if(Qu(E=j_(x,t,r,c,d,o,s,_,k=[],T=[],f),i),b===123)if(d===0)wc(x,t,E,E,k,i,f,s,T);else switch(p===99&&Bt(x,3)===110?100:p){case 100:case 109:case 115:wc(e,E,E,n&&Qu(j_(e,E,E,0,0,o,s,_,o,k=[],f),T),o,T,f,s,n?k:T);break;default:wc(x,E,E,E,[""],T,0,s,T)}}c=d=y=0,g=v=1,_=x="",f=a;break;case 58:f=1+Nn(x),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&N8()==125)continue}switch(x+=Yf(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Nn(x)-1)*v,v=1;break;case 64:Bn()===45&&(x+=bc(Dr())),p=Bn(),d=f=Nn(_=x+=$8(Sc())),b++;break;case 45:S===45&&Nn(x)==2&&(g=0)}}return i}function j_(e,t,r,n,o,i,a,s,u,c,d){for(var f=o-1,p=o===0?i:[""],y=h0(p),S=0,g=0,C=0;S0?p[v]+" "+b:Fe(b,/&\f/g,p[v])))&&(u[C++]=_);return Xf(e,t,r,o===0?d0:s,u,c,d)}function D8(e,t,r){return Xf(e,t,r,ZT,Yf(z8()),jl(e,2,-2),0)}function z_(e,t,r,n){return Xf(e,t,r,f0,jl(e,0,n),jl(e,n+1,-1),n)}function wi(e,t){for(var r="",n=h0(e),o=0;o6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+xd+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wv(e,"stretch")?iE(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,Nn(e)-3-(~wv(e,"!important")&&10))){case 107:return Fe(e,":",":"+Ae)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Bt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Zt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Zt+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Zt+e+e}return e}var V8=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case f0:t.return=iE(t.value,t.length);break;case eE:return wi([Os(t,{value:Fe(t.value,"@","@"+Ae)})],o);case d0:if(t.length)return j8(t.props,function(i){switch(I8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Os(t,{props:[Fe(i,/:(read-\w+)/,":"+xd+"$1")]})],o);case"::placeholder":return wi([Os(t,{props:[Fe(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Os(t,{props:[Fe(i,/:(plac\w+)/,":"+xd+"$1")]}),Os(t,{props:[Fe(i,/:(plac\w+)/,Zt+"input-$1")]})],o)}return""})}},_c=typeof document<"u",K8=_c?void 0:B8(function(){return c0(function(){var e={};return function(t){return e[t]}})}),Y8=[V8],aE=function(t){var r=t.key;if(_c&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var T=k.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var o=t.stylisPlugins||Y8,i={},a,s=[];_c&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(k){for(var T=k.getAttribute("data-emotion").split(" "),E=1;E=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var o9={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i9=/[A-Z]|^ms/g,a9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uE=function(t){return t.charCodeAt(1)===45},$_=function(t){return t!=null&&typeof t!="boolean"},tm=c0(function(e){return uE(e)?e:e.replace(i9,"-$&").toLowerCase()}),D_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(a9,function(n,o,i){return An={name:o,styles:i,next:An},o})}return o9[t]!==1&&!uE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Nl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return An={name:r.name,styles:r.styles,next:An},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)An={name:n.name,styles:n.styles,next:An},n=n.next;var o=r.styles+";";return o}return s9(e,t,r)}case"function":{if(e!==void 0){var i=An,a=r(e);return An=i,Nl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function s9(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?u9:c9},W_=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},d9=typeof document<"u",f9=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;lE(r,n,o);var i=J8(function(){return r9(r,n,o)});if(!d9&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},h9=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=W_(t,r,n),u=s||B_(o),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,y=1;y"u")return!1;var t=un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function q9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!en(i)||!Hn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function G9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(u,c){return u[c]="",u},{});!en(o)||!Hn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var V9={name:"applyStyles",enabled:!0,phase:"write",fn:q9,effect:G9,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var _i=Math.max,kd=Math.min,Ka=Math.round;function Cv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SE(){return!/^((?!chrome|android).)*safari/i.test(Cv())}function Ya(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&en(e)&&(o=e.offsetWidth>0&&Ka(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ka(n.height)/e.offsetHeight||1);var a=zi(e)?un(e):window,s=a.visualViewport,u=!SE()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,d=(n.top+(u&&s?s.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function g0(e){var t=Ya(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function bE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mo(e){return un(e).getComputedStyle(e)}function K9(e){return["table","td","th"].indexOf(Hn(e))>=0}function ei(e){return((zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zf(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(v0(e)?e.host:null)||ei(e)}function ox(e){return!en(e)||mo(e).position==="fixed"?null:e.offsetParent}function Y9(e){var t=/firefox/i.test(Cv()),r=/Trident/i.test(Cv());if(r&&en(e)){var n=mo(e);if(n.position==="fixed")return null}var o=Zf(e);for(v0(o)&&(o=o.host);en(o)&&["html","body"].indexOf(Hn(o))<0;){var i=mo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function au(e){for(var t=un(e),r=ox(e);r&&K9(r)&&mo(r).position==="static";)r=ox(r);return r&&(Hn(r)==="html"||Hn(r)==="body"&&mo(r).position==="static")?t:r||Y9(e)||t}function y0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nl(e,t,r){return _i(e,kd(t,r))}function Q9(e,t,r){var n=nl(e,t,r);return n>r?r:n}function wE(){return{top:0,right:0,bottom:0,left:0}}function _E(e){return Object.assign({},wE(),e)}function xE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var X9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,_E(typeof t!="number"?t:xE(t,iu))};function J9(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Wn(r.placement),u=y0(s),c=[Rr,on].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=X9(o.padding,r),p=g0(i),y=u==="y"?Cr:Rr,S=u==="y"?nn:on,g=r.rects.reference[d]+r.rects.reference[u]-a[u]-r.rects.popper[d],C=a[u]-r.rects.reference[u],v=au(i),b=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,_=g/2-C/2,k=f[y],T=b-p[d]-f[S],E=b/2-p[d]/2+_,x=nl(k,E,T),O=u;r.modifiersData[n]=(t={},t[O]=x,t.centerOffset=x-E,t)}}function Z9(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||bE(t.elements.popper,o)&&(t.elements.arrow=o))}var eU={name:"arrow",enabled:!0,phase:"main",fn:J9,effect:Z9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qa(e){return e.split("-")[1]}var tU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rU(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ka(t*o)/o||0,y:Ka(r*o)/o||0}}function ix(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,y=p===void 0?0:p,S=a.y,g=S===void 0?0:S,C=typeof d=="function"?d({x:y,y:g}):{x:y,y:g};y=C.x,g=C.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),_=Rr,k=Cr,T=window;if(c){var E=au(r),x="clientHeight",O="clientWidth";if(E===un(r)&&(E=ei(r),mo(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",O="scrollWidth")),E=E,o===Cr||(o===Rr||o===on)&&i===Al){k=nn;var I=f&&E===T&&T.visualViewport?T.visualViewport.height:E[x];g-=I-n.height,g*=u?1:-1}if(o===Rr||(o===Cr||o===nn)&&i===Al){_=on;var j=f&&E===T&&T.visualViewport?T.visualViewport.width:E[O];y-=j-n.width,y*=u?1:-1}}var M=Object.assign({position:s},c&&tU),B=d===!0?rU({x:y,y:g}):{x:y,y:g};if(y=B.x,g=B.y,u){var $;return Object.assign({},M,($={},$[k]=b?"0":"",$[_]=v?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",$))}return Object.assign({},M,(t={},t[k]=b?g+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function nU(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Wn(t.placement),variation:Qa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ix(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ix(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var oU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nU,data:{}},Xu={passive:!0};function iU(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,u=un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Xu)}),s&&u.addEventListener("resize",r.update,Xu),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Xu)}),s&&u.removeEventListener("resize",r.update,Xu)}}var aU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iU,data:{}},sU={left:"right",right:"left",bottom:"top",top:"bottom"};function xc(e){return e.replace(/left|right|bottom|top/g,function(t){return sU[t]})}var lU={start:"end",end:"start"};function ax(e){return e.replace(/start|end/g,function(t){return lU[t]})}function S0(e){var t=un(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function b0(e){return Ya(ei(e)).left+S0(e).scrollLeft}function uU(e,t){var r=un(e),n=ei(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=SE();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+b0(e),y:u}}function cU(e){var t,r=ei(e),n=S0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+b0(e),u=-n.scrollTop;return mo(o||r).direction==="rtl"&&(s+=_i(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function w0(e){var t=mo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function CE(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:en(e)&&w0(e)?e:CE(Zf(e))}function ol(e,t){var r;t===void 0&&(t=[]);var n=CE(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=un(n),a=o?[i].concat(i.visualViewport||[],w0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ol(Zf(a)))}function Rv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dU(e,t){var r=Ya(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function sx(e,t,r){return t===gE?Rv(uU(e,r)):zi(t)?dU(t,r):Rv(cU(ei(e)))}function fU(e){var t=ol(Zf(e)),r=["absolute","fixed"].indexOf(mo(e).position)>=0,n=r&&en(e)?au(e):e;return zi(n)?t.filter(function(o){return zi(o)&&bE(o,n)&&Hn(o)!=="body"}):[]}function hU(e,t,r,n){var o=t==="clippingParents"?fU(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var d=sx(e,c,n);return u.top=_i(d.top,u.top),u.right=kd(d.right,u.right),u.bottom=kd(d.bottom,u.bottom),u.left=_i(d.left,u.left),u},sx(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function RE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wn(n):null,i=n?Qa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Cr:u={x:a,y:t.y-r.height};break;case nn:u={x:a,y:t.y+t.height};break;case on:u={x:t.x+t.width,y:s};break;case Rr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?y0(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Va:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Al:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function Ml(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?z9:s,c=r.rootBoundary,d=c===void 0?gE:c,f=r.elementContext,p=f===void 0?Is:f,y=r.altBoundary,S=y===void 0?!1:y,g=r.padding,C=g===void 0?0:g,v=_E(typeof C!="number"?C:xE(C,iu)),b=p===Is?N9:Is,_=e.rects.popper,k=e.elements[S?b:p],T=hU(zi(k)?k:k.contextElement||ei(e.elements.popper),u,d,a),E=Ya(e.elements.reference),x=RE({reference:E,element:_,strategy:"absolute",placement:o}),O=Rv(Object.assign({},_,x)),I=p===Is?O:E,j={top:T.top-I.top+v.top,bottom:I.bottom-T.bottom+v.bottom,left:T.left-I.left+v.left,right:I.right-T.right+v.right},M=e.modifiersData.offset;if(p===Is&&M){var B=M[o];Object.keys(j).forEach(function($){var D=[on,nn].indexOf($)>=0?1:-1,Z=[Cr,nn].indexOf($)>=0?"y":"x";j[$]+=B[Z]*D})}return j}function pU(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?yE:u,d=Qa(n),f=d?s?nx:nx.filter(function(S){return Qa(S)===d}):iu,p=f.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=f);var y=p.reduce(function(S,g){return S[g]=Ml(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Wn(g)],S},{});return Object.keys(y).sort(function(S,g){return y[S]-y[g]})}function mU(e){if(Wn(e)===m0)return[];var t=xc(e);return[ax(e),t,ax(t)]}function vU(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,g=r.allowedAutoPlacements,C=t.options.placement,v=Wn(C),b=v===C,_=u||(b||!S?[xc(C)]:mU(C)),k=[C].concat(_).reduce(function($e,Se){return $e.concat(Wn(Se)===m0?pU(t,{placement:Se,boundary:d,rootBoundary:f,padding:c,flipVariations:S,allowedAutoPlacements:g}):Se)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,O=!0,I=k[0],j=0;j=0,Z=D?"width":"height",ae=Ml(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),he=D?$?on:Rr:$?nn:Cr;T[Z]>E[Z]&&(he=xc(he));var Y=xc(he),te=[];if(i&&te.push(ae[B]<=0),s&&te.push(ae[he]<=0,ae[Y]<=0),te.every(function($e){return $e})){I=M,O=!1;break}x.set(M,te)}if(O)for(var ce=S?3:1,we=function(Se){var G=k.find(function(V){var q=x.get(V);if(q)return q.slice(0,Se).every(function(J){return J})});if(G)return I=G,"break"},ke=ce;ke>0;ke--){var yt=we(ke);if(yt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var gU={name:"flip",enabled:!0,phase:"main",fn:vU,requiresIfExists:["offset"],data:{_skip:!1}};function lx(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ux(e){return[Cr,on,nn,Rr].some(function(t){return e[t]>=0})}function yU(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ml(t,{elementContext:"reference"}),s=Ml(t,{altBoundary:!0}),u=lx(a,n),c=lx(s,o,i),d=ux(u),f=ux(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var SU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yU};function bU(e,t,r){var n=Wn(e),o=[Rr,Cr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Rr,on].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function wU(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=yE.reduce(function(d,f){return d[f]=bU(f,t.rects,i),d},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var _U={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wU};function xU(e){var t=e.state,r=e.name;t.modifiersData[r]=RE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var CU={name:"popperOffsets",enabled:!0,phase:"read",fn:xU,data:{}};function RU(e){return e==="x"?"y":"x"}function kU(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,y=p===void 0?!0:p,S=r.tetherOffset,g=S===void 0?0:S,C=Ml(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),v=Wn(t.placement),b=Qa(t.placement),_=!b,k=y0(v),T=RU(k),E=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(E){if(i){var $,D=k==="y"?Cr:Rr,Z=k==="y"?nn:on,ae=k==="y"?"height":"width",he=E[k],Y=he+C[D],te=he-C[Z],ce=y?-O[ae]/2:0,we=b===Va?x[ae]:O[ae],ke=b===Va?-O[ae]:-x[ae],yt=t.elements.arrow,$e=y&&yt?g0(yt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wE(),G=Se[D],V=Se[Z],q=nl(0,x[ae],$e[ae]),J=_?x[ae]/2-ce-q-G-j.mainAxis:we-q-G-j.mainAxis,U=_?-x[ae]/2+ce+q+V+j.mainAxis:ke+q+V+j.mainAxis,pe=t.elements.arrow&&au(t.elements.arrow),ue=pe?k==="y"?pe.clientTop||0:pe.clientLeft||0:0,ie=($=M==null?void 0:M[k])!=null?$:0,le=he+J-ie-ue,K=he+U-ie,ee=nl(y?kd(Y,le):Y,he,y?_i(te,K):te);E[k]=ee,B[k]=ee-he}if(s){var oe,fe=k==="x"?Cr:Rr,ge=k==="x"?nn:on,ye=E[T],be=T==="y"?"height":"width",Re=ye+C[fe],ze=ye-C[ge],De=[Cr,Rr].indexOf(v)!==-1,Tt=(oe=M==null?void 0:M[T])!=null?oe:0,vr=De?Re:ye-x[be]-O[be]-Tt+j.altAxis,ir=De?ye+x[be]+O[be]-Tt-j.altAxis:ze,Gt=y&&De?Q9(vr,ye,ir):nl(y?vr:Re,ye,y?ir:ze);E[T]=Gt,B[T]=Gt-ye}t.modifiersData[n]=B}}var PU={name:"preventOverflow",enabled:!0,phase:"main",fn:kU,requiresIfExists:["offset"]};function TU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EU(e){return e===un(e)||!en(e)?S0(e):TU(e)}function OU(e){var t=e.getBoundingClientRect(),r=Ka(t.width)/e.offsetWidth||1,n=Ka(t.height)/e.offsetHeight||1;return r!==1||n!==1}function IU(e,t,r){r===void 0&&(r=!1);var n=en(t),o=en(t)&&OU(t),i=ei(t),a=Ya(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Hn(t)!=="body"||w0(i))&&(s=EU(t)),en(t)?(u=Ya(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=b0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function jU(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function zU(e){var t=jU(e);return H9.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function NU(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function AU(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var cx={placement:"bottom",modifiers:[],strategy:"absolute"};function dx(){for(var e=arguments.length,t=new Array(e),r=0;r .`,` { + `,`; + + `,`; + } +`],[` + position: relative; + width: 100%; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Le.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return kE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),WU=function(e,t){var r,n=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,u=e.prefix,c=e.suffix,d=e.open,f=e.defaultOpen,p=e.active,y=p===void 0?!1:p,S=e.disabled,g=S===void 0?!1:S,C=e.rootStyles,v=e.component,b=e.onOpenChange,_=e.onClick,k=e.onKeyUp,T=ji(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),E=se.useContext(Rd),x=se.useContext(Jf),O=x.collapsed,I=x.rtl,j=x.transitionDuration,M=p0(),B=M.renderExpandIcon,$=M.closeOnClick,D=M.menuItemStyles,Z=M.transitionDuration,ae=se.useState(!!f),he=ae[0],Y=ae[1],te=se.useState(!1),ce=te[0],we=te[1],ke=se.useState(!1),yt=ke[0],$e=ke[1],Se=se.useRef(null),G=se.useRef(null),V=se.useRef(),q=DU({level:E,buttonRef:Se,contentRef:G}).popperInstance,J=se.useCallback(function(){var ee,oe=G.current;if(oe){var fe=(ee=oe==null?void 0:oe.querySelector(".".concat(Le.subMenuContent," > ul")))===null||ee===void 0?void 0:ee.clientHeight;oe.style.overflow="hidden",oe.style.height="".concat(fe,"px"),V.current=setTimeout(function(){oe.style.overflow="auto",oe.style.height="auto"},Z)}},[Z]),U=function(){var ee,oe=G.current;if(oe){var fe=(ee=oe==null?void 0:oe.querySelector(".".concat(Le.subMenuContent," > ul")))===null||ee===void 0?void 0:ee.clientHeight;oe.style.overflow="hidden",oe.style.height="".concat(fe,"px"),oe.offsetHeight,oe.style.height="0px"}},pe=function(){E===0&&O||(typeof d>"u"?(clearTimeout(Number(V.current)),he?U():J(),b==null||b(!he),Y(!he)):b==null||b(!d))};se.useEffect(function(){!(E===0&&O)&&typeof d<"u"&&yt&&(clearTimeout(Number(V.current)),d?J():U())},[O,J,i,E,b,d]);var ue=function(ee){_==null||_(ee),pe()},ie=function(ee){k==null||k(ee),ee.key==="Enter"&&pe()},le=function(ee){if(D){var oe={level:E,disabled:g,active:y,isSubmenu:!0,open:d??he},fe=D.root,ge=D.button,ye=D.label,be=D.icon,Re=D.prefix,ze=D.suffix,De=D.subMenuContent,Tt=D.SubMenuExpandIcon;switch(ee){case"root":return typeof fe=="function"?fe(oe):fe;case"button":return typeof ge=="function"?ge(oe):ge;case"label":return typeof ye=="function"?ye(oe):ye;case"icon":return typeof be=="function"?be(oe):be;case"prefix":return typeof Re=="function"?Re(oe):Re;case"suffix":return typeof ze=="function"?ze(oe):ze;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(oe):Tt;case"subMenuContent":return typeof De=="function"?De(oe):De;default:return}}};se.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),O&&E===0&&we(!1)},[O,E,I,j,q]),se.useEffect(function(){var ee=function(ye){var be,Re,ze;!ce&&(!((be=Se.current)===null||be===void 0)&&be.contains(ye))?we(!0):($&&!(!((Re=ye.closest(".".concat(Le.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Le.subMenuRoot))||!(!((ze=G.current)===null||ze===void 0)&&ze.contains(ye))&&ce)&&we(!1)},oe=function(ye){ee(ye.target)},fe=function(ye){ye.key==="Enter"?ee(ye.target):ye.key==="Escape"&&we(!1)},ge=function(){document.removeEventListener("click",oe),document.removeEventListener("keyup",fe)};return ge(),O&&E===0&&(document.addEventListener("click",oe,!1),document.addEventListener("keyup",fe,!1)),function(){ge()}},[O,E,$,ce]),se.useEffect(function(){$e(!0)},[]);var K=(r={},r[Le.active]=y,r[Le.disabled]=g,r[Le.open]=d??he,r);return se.createElement(BU,{ref:t,className:Ot(Le.menuItemRoot,Le.subMenuRoot,K,o),menuItemStyles:le("root"),level:E,collapsed:O,rtl:I,disabled:g,active:y,buttonStyles:le("button"),rootStyles:C},se.createElement(PE,zr({"data-testid":"".concat(Le.button,"-test-id"),ref:Se,title:s,className:Ot(Le.button,K),onClick:ue,onKeyUp:ie,component:v,tabIndex:0},T),a&&se.createElement(pE,{rtl:I,className:Ot(Le.icon,K),rootStyles:le("icon")},a),u&&se.createElement(mE,{collapsed:O,transitionDuration:j,firstLevel:E===0,className:Ot(Le.prefix,K),rtl:I,rootStyles:le("prefix")},u),se.createElement(hE,{className:Ot(Le.label,K),rootStyles:le("label")},i),c&&se.createElement(vE,{collapsed:O,transitionDuration:j,firstLevel:E===0,className:Ot(Le.suffix,K),rootStyles:le("suffix")},c),se.createElement(O9,{rtl:I,className:Ot(Le.SubMenuExpandIcon,K),collapsed:O,level:E,rootStyles:le("SubMenuExpandIcon")},B?B({level:E,disabled:g,active:y,open:d??he}):O&&E===0?se.createElement(j9,null):se.createElement(I9,{rtl:I,open:d??he}))),se.createElement(E9,{ref:G,openWhenCollapsed:ce,open:d??he,firstLevel:E===0,collapsed:O,defaultOpen:d&&!yt||f,className:Ot(Le.subMenuContent,K),rootStyles:le("subMenuContent")},se.createElement(Rd.Provider,{value:E+1},n)))},UU=se.forwardRef(WU),fx,HU=At.li(hx||(hx=or([` + width: 100%; + position: relative; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`],[` + width: 100%; + position: relative; + + `,`; + + `,`; + + > .`,` { + `,`; + + `,`; + } +`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Le.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return kE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),qU=function(e,t){var r,n=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,u=e.active,c=u===void 0?!1:u,d=e.disabled,f=d===void 0?!1:d,p=e.component,y=e.rootStyles,S=ji(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),g=se.useContext(Rd),C=se.useContext(Jf),v=C.collapsed,b=C.rtl,_=C.transitionDuration,k=p0().menuItemStyles,T=function(x){if(k){var O={level:g,disabled:f,active:c,isSubmenu:!1},I=k.root,j=k.button,M=k.label,B=k.icon,$=k.prefix,D=k.suffix;switch(x){case"root":return typeof I=="function"?I(O):I;case"button":return typeof j=="function"?j(O):j;case"label":return typeof M=="function"?M(O):M;case"icon":return typeof B=="function"?B(O):B;case"prefix":return typeof $=="function"?$(O):$;case"suffix":return typeof D=="function"?D(O):D;default:return}}},E=(r={},r[Le.active]=c,r[Le.disabled]=f,r);return se.createElement(HU,{ref:t,className:Ot(Le.menuItemRoot,E,i),menuItemStyles:T("root"),level:g,collapsed:v,rtl:b,disabled:f,active:c,buttonStyles:T("button"),rootStyles:y},se.createElement(PE,zr({className:Ot(Le.button,E),"data-testid":"".concat(Le.button,"-test-id"),component:p,tabIndex:0},S),o&&se.createElement(pE,{rtl:b,className:Ot(Le.icon,E),rootStyles:T("icon")},o),a&&se.createElement(mE,{collapsed:v,transitionDuration:_,firstLevel:g===0,className:Ot(Le.prefix,E),rtl:b,rootStyles:T("prefix")},a),se.createElement(hE,{className:Ot(Le.label,E),rootStyles:T("label")},n),s&&se.createElement(vE,{collapsed:v,transitionDuration:_,firstLevel:g===0,className:Ot(Le.suffix,E),rootStyles:T("suffix")},s)))},gr=se.forwardRef(qU),hx,_0={},GU=nt;Object.defineProperty(_0,"__esModule",{value:!0});var TE=_0.default=void 0,VU=GU(ot()),KU=m;TE=_0.default=(0,VU.default)((0,KU.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuOutlined");var x0={},YU=nt;Object.defineProperty(x0,"__esModule",{value:!0});var EE=x0.default=void 0,QU=YU(ot()),XU=m;EE=x0.default=(0,QU.default)((0,XU.jsx)("path",{d:"M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5m3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"PermDataSetting");var C0={},JU=nt;Object.defineProperty(C0,"__esModule",{value:!0});var OE=C0.default=void 0,ZU=JU(ot()),e7=m;OE=C0.default=(0,ZU.default)((0,e7.jsx)("path",{d:"M12 14.67 3.41 6.09 2 7.5l8.5 8.5H4v2h16v-2h-6.5l5.15-5.15c.26.1.55.15.85.15 1.38 0 2.5-1.12 2.5-2.5S20.88 6 19.5 6 17 7.12 17 8.5c0 .35.07.67.2.97z"}),"NetworkPing");var R0={},t7=nt;Object.defineProperty(R0,"__esModule",{value:!0});var IE=R0.default=void 0,r7=t7(ot()),n7=m;IE=R0.default=(0,r7.default)((0,n7.jsx)("path",{d:"M19 3H4.99C3.89 3 3 3.9 3 5l.01 14c0 1.1.89 2 1.99 2h10l6-6V5c0-1.1-.9-2-2-2M7 8h10v2H7zm5 6H7v-2h5zm2 5.5V14h5.5z"}),"StickyNote2");var k0={},o7=nt;Object.defineProperty(k0,"__esModule",{value:!0});var jE=k0.default=void 0,i7=o7(ot()),a7=m;jE=k0.default=(0,i7.default)((0,a7.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var P0={},s7=nt;Object.defineProperty(P0,"__esModule",{value:!0});var zE=P0.default=void 0,l7=s7(ot()),u7=m;zE=P0.default=(0,l7.default)((0,u7.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 14H7v-4h4zm0-6H7V7h4zm6 6h-4v-4h4zm0-6h-4V7h4z"}),"Dataset");var T0={},c7=nt;Object.defineProperty(T0,"__esModule",{value:!0});var NE=T0.default=void 0,d7=c7(ot()),f7=m;NE=T0.default=(0,d7.default)((0,f7.jsx)("path",{d:"M21 15v-2h-3.07c-.05-.39-.12-.77-.22-1.14l2.58-1.49-1-1.73L16.92 10c-.28-.48-.62-.91-.99-1.29.04-.23.07-.46.07-.71 0-.8-.24-1.55-.65-2.18L17 4.17l-1.41-1.41-1.72 1.72c-1.68-.89-3.1-.33-3.73 0L8.41 2.76 7 4.17l1.65 1.65C8.24 6.45 8 7.2 8 8c0 .25.03.48.07.72-.37.38-.71.81-.99 1.28L4.71 8.63l-1 1.73 2.58 1.49c-.1.37-.17.75-.22 1.14H3v2h3.07c.05.39.12.77.22 1.14l-2.58 1.49 1 1.73L7.08 18c1.08 1.81 2.88 3 4.92 3s3.84-1.19 4.92-3l2.37 1.37 1-1.73-2.58-1.49c.1-.37.17-.75.22-1.14H21zm-8 2h-2v-6h2z"}),"PestControl");var E0={},h7=nt;Object.defineProperty(E0,"__esModule",{value:!0});var AE=E0.default=void 0,p7=h7(ot()),rm=m;AE=E0.default=(0,p7.default)([(0,rm.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),(0,rm.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),(0,rm.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");var O0={},m7=nt;Object.defineProperty(O0,"__esModule",{value:!0});var ME=O0.default=void 0,v7=m7(ot()),g7=m;ME=O0.default=(0,v7.default)((0,g7.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed");var I0={},y7=nt;Object.defineProperty(I0,"__esModule",{value:!0});var LE=I0.default=void 0,S7=y7(ot()),b7=m;LE=I0.default=(0,S7.default)((0,b7.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 1V4.5l5.5 5.5z"}),"Summarize");var j0={},w7=nt;Object.defineProperty(j0,"__esModule",{value:!0});var $E=j0.default=void 0,_7=w7(ot()),px=m;$E=j0.default=(0,_7.default)([(0,px.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),(0,px.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings");var z0={},x7=nt;Object.defineProperty(z0,"__esModule",{value:!0});var DE=z0.default=void 0,C7=x7(ot()),R7=m;DE=z0.default=(0,C7.default)((0,R7.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var N0={},k7=nt;Object.defineProperty(N0,"__esModule",{value:!0});var FE=N0.default=void 0,P7=k7(ot()),T7=m;FE=N0.default=(0,P7.default)((0,T7.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Sync");var A0={},E7=nt;Object.defineProperty(A0,"__esModule",{value:!0});var kv=A0.default=void 0,O7=E7(ot()),I7=m;kv=A0.default=(0,O7.default)((0,I7.jsx)("path",{d:"M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25m-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-1.75s5 1.21 5 1.75zm9 0H14v-1.25c0-.46-.2-.86-.52-1.22.88-.3 1.96-.53 3.02-.53 2.44 0 5 1.21 5 1.75zM7.5 12c1.93 0 3.5-1.57 3.5-3.5S9.43 5 7.5 5 4 6.57 4 8.5 5.57 12 7.5 12m0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 5.5c1.93 0 3.5-1.57 3.5-3.5S18.43 5 16.5 5 13 6.57 13 8.5s1.57 3.5 3.5 3.5m0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2"}),"PeopleOutline");const j7=()=>{const[e,t]=N.useState(!1),r=Ee(N3);return m.jsx(x9,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(k9,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(gr,{icon:m.jsx(TE,{}),onClick:()=>{t(!e)}}),m.jsx(gr,{component:m.jsx(yr,{to:"/"}),icon:m.jsx(EE,{}),children:"Process"}),m.jsxs(UU,{label:"Network",icon:m.jsx(OE,{}),children:[m.jsx(gr,{component:m.jsx(yr,{to:"/sentry-network"}),icon:m.jsx(kv,{}),children:"eth/6x P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/sentinel-network"}),icon:m.jsx(kv,{}),children:"Beacon chain P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/downloader"}),icon:m.jsx(FE,{}),children:"Downloader"})]}),m.jsx(gr,{component:m.jsx(yr,{to:"/logs"}),icon:m.jsx(IE,{}),children:"Logs"}),m.jsx(gr,{component:m.jsx(yr,{to:"/chain"}),icon:m.jsx(jE,{}),children:"Chain"}),m.jsx(gr,{component:m.jsx(yr,{to:"/data"}),icon:m.jsx(zE,{}),children:"Data"}),m.jsx(gr,{component:m.jsx(yr,{to:"/debug"}),icon:m.jsx(NE,{}),children:"Debug"}),m.jsx(gr,{component:m.jsx(yr,{to:"/testing"}),icon:m.jsx(AE,{}),children:"Testing"}),m.jsx(gr,{component:m.jsx(yr,{to:"/performance"}),icon:m.jsx(ME,{}),children:"Performance"}),m.jsx(gr,{component:m.jsx(yr,{to:"/documentation"}),icon:m.jsx(LE,{}),children:"Documentation"}),m.jsx(gr,{component:m.jsx(yr,{to:"/issues"}),icon:m.jsx(DE,{}),suffix:m.jsx(m.Fragment,{children:r==="0"?null:m.jsx("div",{className:"w-5 flex items-center justify-center rounded-full aspect-square bg-red-500 text-white text-xs font-semibold",children:r})}),children:"Issues"}),m.jsx(gr,{component:m.jsx(yr,{to:"/admin"}),icon:m.jsx($E,{}),children:"Admin"})]})})};function z7(e){return xn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const N7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],A7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ke(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return qn(s,z7,a)},M7=Pt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Ke(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ne({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),mx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},L7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$7=e=>L7[e]||e,D7=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTypography"}),o=$7(n.color),i=Kk(ne({},n,{color:o})),{align:a="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=mx}=i,S=lt(i,N7),g=ne({},i,{align:a,color:o,className:s,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:y}),C=u||(f?"p":y[p]||mx[p])||"span",v=A7(g);return m.jsx(M7,ne({as:C,ref:r,ownerState:g,className:wt(v.root,s)},S))}),vx=D7;function F7({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const B7=N.createContext(void 0),W7=B7;function BE(){return N.useContext(W7)}function U7(e){return xn("PrivateSwitchBase",e)}Gn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const H7=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],q7=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${Ke(o)}`],input:["input"]};return qn(i,U7,t)},G7=Pt(wP)(({ownerState:e})=>ne({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),V7=Pt("input",{shouldForwardProp:Zk})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),K7=N.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:u,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:y,inputRef:S,name:g,onBlur:C,onChange:v,onFocus:b,readOnly:_,required:k=!1,tabIndex:T,type:E,value:x}=t,O=lt(t,H7),[I,j]=kk({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=BE(),B=te=>{b&&b(te),M&&M.onFocus&&M.onFocus(te)},$=te=>{C&&C(te),M&&M.onBlur&&M.onBlur(te)},D=te=>{if(te.nativeEvent.defaultPrevented)return;const ce=te.target.checked;j(ce),v&&v(te,ce)};let Z=u;M&&typeof Z>"u"&&(Z=M.disabled);const ae=E==="checkbox"||E==="radio",he=ne({},t,{checked:I,disabled:Z,disableFocusRipple:c,edge:d}),Y=q7(he);return m.jsxs(G7,ne({component:"span",className:wt(Y.root,a),centerRipple:!0,focusRipple:!c,disabled:Z,tabIndex:null,role:void 0,onFocus:B,onBlur:$,ownerState:he,ref:r},O,{children:[m.jsx(V7,ne({autoFocus:n,checked:o,defaultChecked:s,className:Y.input,disabled:Z,id:ae?p:void 0,name:g,onChange:D,readOnly:_,ref:S,required:k,ownerState:he,tabIndex:T,type:E},E==="checkbox"&&x===void 0?{}:{value:x},y)),I?i:f]}))}),Y7=K7,Q7=rL({createStyledComponent:Pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Vn({props:e,name:"MuiStack"})}),X7=Q7;function J7(e){return xn("MuiFormControlLabel",e)}const Z7=Gn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hs=Z7,eH=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],tH=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${Ke(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return qn(a,J7,t)},rH=Pt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hs.label}`]:t.label},t.root,t[`labelPlacement${Ke(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ne({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Hs.label}`]:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),nH=Pt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),oH=N.forwardRef(function(t,r){var n,o;const i=Vn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:u,disabled:c,disableTypography:d,label:f,labelPlacement:p="end",required:y,slotProps:S={}}=i,g=lt(i,eH),C=BE(),v=(n=c??u.props.disabled)!=null?n:C==null?void 0:C.disabled,b=y??u.props.required,_={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof u.props[I]>"u"&&typeof i[I]<"u"&&(_[I]=i[I])});const k=F7({props:i,muiFormControl:C,states:["error"]}),T=ne({},i,{disabled:v,labelPlacement:p,required:b,error:k.error}),E=tH(T),x=(o=S.typography)!=null?o:s.typography;let O=f;return O!=null&&O.type!==vx&&!d&&(O=m.jsx(vx,ne({component:"span"},x,{className:wt(E.label,x==null?void 0:x.className),children:O}))),m.jsxs(rH,ne({className:wt(E.root,a),ownerState:T,ref:r},g,{children:[N.cloneElement(u,_),b?m.jsxs(X7,{display:"block",children:[O,m.jsxs(nH,{ownerState:T,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):O]}))}),gx=oH;function iH(e){return xn("MuiSwitch",e)}const aH=Gn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lr=aH,sH=["className","color","edge","size","sx"],lH=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${Ke(r)}`,`size${Ke(n)}`],switchBase:["switchBase",`color${Ke(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qn(s,iH,t);return ne({},t,u)},uH=Pt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ke(r.edge)}`],t[`size${Ke(r.size)}`]]}})(({ownerState:e})=>ne({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}})),cH=Pt(Y7,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},r.color!=="default"&&t[`color${Ke(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>ne({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ba(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?ld(e.palette[t.color].main,.62):sd(e.palette[t.color].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),dH=Pt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),fH=Pt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),hH=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:u}=n,c=lt(n,sH),d=ne({},n,{color:i,edge:a,size:s}),f=lH(d),p=m.jsx(fH,{className:f.thumb,ownerState:d});return m.jsxs(uH,{className:wt(f.root,o),sx:u,ownerState:d,children:[m.jsx(cH,ne({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:d},c,{classes:ne({},f,{root:f.switchBase})})),m.jsx(dH,{className:f.track,ownerState:d})]})}),yx=hH,pH=({segments:e,onSegmentClicked:t})=>{const r=e.map($=>({status:$,visible:!0,active:$.downloadedBytes<$.totalBytes&&$.downloadedBytes>0})),[n,o]=N.useState(r),[i,a]=N.useState(!1),[s,u]=N.useState(!1),[c,d]=N.useState(0),f=N.useRef(null),[p,y]=N.useState(!1),[S,g]=N.useState(!1),[C,v]=N.useState({column:"Name",descending:!0});N.useEffect(()=>{f.current&&!s&&!i&&(f.current.scrollTop=c),i&&a(!1)},[c,s]),N.useEffect(()=>{},[r]);const b=$=>$.peers.length||0,_=$=>{let D=0;return $.peers.forEach(Z=>{D+=Z.downloadRate}),D},k=$=>$.webseeds.length||0,T=$=>{let D=0;return $.webseeds.forEach(Z=>{D+=Z.downloadRate}),D},E=($,D)=>$/D*100,x=($,D,Z=!0)=>{Z&&a(!0);let he=[...$].sort((Y,te)=>D.column==="Name"?O(Y.status.name,te.status.name,D.descending):D.column==="Progress"?I(E(Y.status.downloadedBytes,Y.status.totalBytes),E(te.status.downloadedBytes,te.status.totalBytes),D.descending):D.column==="Size"?I(Y.status.totalBytes,te.status.totalBytes,D.descending):D.column==="PeersCount"?I(b(Y.status),b(te.status),D.descending):D.column==="PeersRate"?I(_(Y.status),_(te.status),D.descending):D.column==="WebseedsCount"?I(k(Y.status),k(te.status),D.descending):D.column==="WebseedsRate"?I(T(Y.status),T(te.status),D.descending):I(Y.active?1:0,te.active?1:0,D.descending));v(D),o(he)},O=($,D,Z)=>Z?D.localeCompare($):$.localeCompare(D),I=($,D,Z)=>Z?D-$:$-D,j=$=>C.column!==$?m.jsx(Ql,{className:"ml-2"}):C.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),M=$=>{y($.target.checked);let D=n;D.forEach(Z=>{$.target.checked?E(Z.status.downloadedBytes,Z.status.totalBytes)===100&&(Z.visible=!1):E(Z.status.downloadedBytes,Z.status.totalBytes)===100&&(Z.visible=!0)}),o(D)},B=$=>{g($.target.checked);let D=n;D.forEach(Z=>{$.target.checked?E(Z.status.downloadedBytes,Z.status.totalBytes)===0&&(Z.visible=!1):E(Z.status.downloadedBytes,Z.status.totalBytes)===0&&(Z.visible=!0)}),o(D)};return m.jsxs("div",{className:"w-full h-full",style:{overflowY:"auto"},ref:f,children:[m.jsxs("div",{className:"flex flex-row justify-around",children:[m.jsx(gx,{control:m.jsx(yx,{checked:p,onChange:M}),label:"Hide downloaded files"}),m.jsx(gx,{control:m.jsx(yx,{checked:S,onChange:B}),label:"Hide files with no progress"})]}),m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Name",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Name",j("Name")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Progress",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Progress",j("Progress")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Size",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Size",j("Size")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"PeersCount",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Count",j("PeersCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"PeersRate",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Rate",j("PeersRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"WebseedsCount",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Count",j("WebseedsCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"WebseedsRate",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Rate",j("WebseedsRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Active",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Active",j("Active")]})})]})}),m.jsx("tbody",{children:n.map($=>m.jsx(m.Fragment,{children:$.visible&&m.jsxs("tr",{className:"border-b hover:bg-gray-100 cursor-pointer",onClick:()=>{f.current&&d(f.current.scrollTop),u(!0),t($.status)},children:[m.jsx("td",{className:"px-4 py-2",children:$.status.name}),m.jsx("td",{className:"px-4 py-2",children:Kf($.status.downloadedBytes,$.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt($.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:b($.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(_($.status))}),m.jsx("td",{className:"px-4 py-2",children:k($.status)}),m.jsx("td",{className:"px-4 py-2",children:$r(T($.status))}),m.jsx("td",{className:"px-4 py-2",children:$.active.toString()})]})}))})]})]})},Sx=({peers:e})=>{const[t,r]=N.useState(e),[n,o]=N.useState({column:"Url",descending:!0});N.useEffect(()=>{i(e,n)},[e]);const i=(c,d)=>{let p=[...c].sort((y,S)=>d.column==="Url"?a(y.url,S.url,d.descending):s(y.downloadRate,S.downloadRate,d.descending));o(d),r(p)},a=(c,d,f)=>f?d.localeCompare(c):c.localeCompare(d),s=(c,d,f)=>f?d-c:c-d,u=c=>n.column!==c?m.jsx(Ql,{className:"ml-2"}):n.descending?m.jsx(Kl,{}):m.jsx(Yl,{});return m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{i(t,{column:"Url",descending:!n.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["URL",u("Url")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{i(t,{column:"Rate",descending:!n.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Rate",u("Rate")]})})]})}),m.jsx("tbody",{children:t.map(c=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:c.url}),m.jsx("td",{className:"px-4 py-2",children:zt(c.downloadRate)})]}))})]})},mH=({segment:e})=>{const t=a=>{let s=0;return a.forEach(u=>{s+=u.downloadRate}),$r(s)},r=a=>a.peers.length||0,n=a=>{let s=0;return a.peers.forEach(u=>{s+=u.downloadRate}),s},o=a=>a.webseeds.length||0,i=a=>{let s=0;return a.webseeds.forEach(u=>{s+=u.downloadRate}),s};return m.jsx("div",{className:"w-full h-full bg-white",children:e?m.jsxs("div",{className:"flex flex-col justify-around",children:[m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Progress"}),m.jsx("th",{children:"Size"}),m.jsx("th",{children:"Peers Count"}),m.jsx("th",{children:"Peers Rate"}),m.jsx("th",{children:"Webseeds Count"}),m.jsx("th",{children:"Webseeds Rate"})]})}),m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:e.name}),m.jsx("td",{className:"px-4 py-2",children:Kf(e.downloadedBytes,e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:r(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(n(e))}),m.jsx("td",{className:"px-4 py-2",children:o(e)}),m.jsx("td",{className:"px-4 py-2",children:$r(i(e))})]})})]}),m.jsxs("div",{className:"flex flex-row justify-around mt-20",children:[e.peers.length>0&&m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[45vh] w-full overflow-auto items-center",children:[m.jsx("p",{className:"font-bold text-lg",children:e.peers.length+" peers"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.peers)}),m.jsx(Sx,{peers:e.peers})]})}),e.webseeds.length>0&&m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[40vh] w-full overflow-auto items-center",children:[m.jsx("p",{className:"font-bold text-lg",children:e.webseeds.length+" webseeds"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.webseeds)}),m.jsx(Sx,{peers:e.webseeds})]})})]})]}):m.jsx("div",{})})};var M0={},vH=nt;Object.defineProperty(M0,"__esModule",{value:!0});var WE=M0.default=void 0,gH=vH(ot()),yH=m;WE=M0.default=(0,gH.default)((0,yH.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const SH=({onClose:e})=>{const t=Ee(Ef),[r,n]=N.useState(0),[o,i]=N.useState(0),[a,s]=N.useState(null),[u,c]=N.useState(t.segments),d=S=>{S.key==="Escape"&&(a?s(null):e())};N.useEffect(()=>(window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}),[a]),N.useEffect(()=>{let S=0,g=0;t.segments.forEach(C=>{S+=p(C),g+=f(C)}),n(S),i(g)},[t]),N.useEffect(()=>{c(a?[a]:t.segments)},[a]);const f=S=>{let g=0;return S.peers.forEach(C=>{g+=C.downloadRate}),g},p=S=>{let g=0;return S.webseeds.forEach(C=>{g+=C.downloadRate}),g},y=()=>m.jsxs("div",{className:"flex flex-row w-full pt-10 pr-10 pl-10",children:[m.jsx("div",{className:"flex-[1]",children:a&&m.jsx(WE,{onClick:()=>{s(null)},className:"cursor-pointer"})}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsxs("h3",{className:"text-3xl font-semibold",children:[a?"Segment details":"Segments List"," "]})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(If,{onClick:()=>e(),className:"cursor-pointer"})})]});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-[100vw]",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-fit bg-white outline-none focus:outline-none items-center",children:[y(),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-start items-center h-[70vh] overflow-scroll",children:[m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white h-[95%]",children:[m.jsx(pH,{segments:t.segments,onSegmentClicked:S=>s(S)}),a&&m.jsx("div",{className:"absolute z-10 w-full h-full",children:m.jsx(mH,{segment:a})})]}),!a&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"webseeds :"}),m.jsx("p",{children:$r(r)})]}),m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"peers :"}),m.jsx("p",{children:$r(o)})]})]})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},bH=()=>{const e=Ee(Ef),[t,r]=N.useState(!1),n=()=>!e.downloadFinished&&e.indexed<100&&e.torrentMetadataReady0?"downloading and waiting for metadata":"waiting for metadata":!e.downloadFinished&&e.indexed<100?"Downloading":e.indexed<100?"Indexing":"Finished",o=()=>{let i=0;return e.totalTime.forEach(a=>{i+=a}),Il(i)};return m.jsxs("div",{children:[m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Status"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Downaloaded"}),m.jsx("th",{className:"px-4 py-2",children:"Total"}),m.jsx("th",{className:"px-4 py-2",children:"Time Left"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"}),m.jsx("th",{className:"px-4 py-2",children:"Download Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Upload Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Peers"}),m.jsx("th",{className:"px-4 py-2",children:"Files"}),m.jsx("th",{className:"px-4 py-2",children:"Connections"}),m.jsx("th",{className:"px-4 py-2",children:"Alloc"}),m.jsx("th",{className:"px-4 py-2",children:"Sys"})]})}),m.jsx("tbody",{children:(e==null?void 0:e.downloaded)&&m.jsxs("tr",{onClick:()=>{r(!0)},children:[m.jsx("td",{className:"px-4 py-2",children:"Snapshots"}),m.jsx("td",{className:"px-4 py-2 text-center",children:n()}),m.jsx("td",{className:"px-4 py-2",children:Kf(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:i8(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:o()}),m.jsx("td",{className:"px-4 py-2",children:O_(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:O_(e.uploadRate)}),m.jsx("td",{className:"px-4 py-2",children:e.peers}),m.jsx("td",{className:"px-4 py-2",children:e.files}),m.jsx("td",{className:"px-4 py-2",children:e.connections}),m.jsx("td",{className:"px-4 py-2",children:zt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:zt(e.sys)})]})})]}),t&&m.jsx(SH,{onClose:()=>{r(!1)}})]})},wH=({selectedStatistics:e,statistics:t,onRowClicked:r})=>{const n=o=>{let i="px-4 py-2 hover:bg-gray-100";const a="bg-gray-300",s="bg-white text-black";return(o===On.Active||o===On.Static||o===On.Total)&&(i+=" border-r"),o===e?i+" "+a:i+" "+s};return m.jsxs("div",{className:"flex flex-row",children:[m.jsx("div",{className:"shadow-lg rounded-md bg-white overflow-auto mr-5",children:m.jsx("table",{className:"table-fixed text-center",children:m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsxs("td",{className:n(On.Active),onClick:()=>r(On.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(On.Static),onClick:()=>r(On.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(On.Total),onClick:()=>r(On.Total),children:[m.jsx("span",{children:"Total Seen:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.totalPeers})]})]})})})}),m.jsx("div",{className:"shadow-lg rounded-md bg-white overflow-auto",children:m.jsx("table",{className:"table-fixed text-center",children:m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"In Rate:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:$r(t.totalInRate)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Network In:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:zt(t.totalInBytes)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Out Rate:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:$r(t.totalOutRate)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Network Out:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:zt(t.totalOutBytes)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Total Network:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:zt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},nm=({peers:e,onPeerClicked:t})=>{const[r,n]=N.useState(e),[o,i]=N.useState({column:"Type",descending:!0});N.useEffect(()=>{a(e,o)},[e]);const a=(f,p)=>{let y=f.sort((S,g)=>p.column==="Id"?s(S.id,g.id,p.descending):p.column==="Type"?s(S.type,g.type,p.descending):p.column==="Status"?s(S.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(S.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(S.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(S.network.inRate,g.network.inRate,p.descending):u(S.network.outRate,g.network.outRate,p.descending));i(p),n(y)},s=(f,p,y)=>y?p.localeCompare(f):f.localeCompare(p),u=(f,p,y)=>(console.log("! currentSortState "+o.column+" "+o.descending),y?p-f:f-p),c=f=>o.column!==f?m.jsx(Ql,{className:"ml-2"}):o.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),d=f=>f.network.static?"static":f.network.bootnode?"bootnode":"dynamic";return m.jsx("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[83vh] w-full overflow-auto",children:m.jsxs("table",{className:"table-fixed text-left w-full",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Id",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["peer ID",c("Id")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Type",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Type",c("Type")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Status",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Status",c("Status")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"TotalIn",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Total In",c("TotalIn")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"TotalOut",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Total Out",c("TotalOut")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"InSpeed",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["In Speed",c("InSpeed")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"OutSpeed",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Out Speed",c("OutSpeed")]})})]})}),m.jsx("tbody",{children:r.map((f,p)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>{t(f.id)},children:[m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:f.id}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:d(f)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:f.active?"active":""}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:zt(f.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:zt(f.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:$r(f.network.outRate)})]},p))})]})})},_H=({peerId:e,onClose:t,...r})=>{const o=m3()(je.getState(),e),i=(f,p)=>{let y=Object.keys(f),S=Object.keys(p);const g=new Set([...y,...S]),C=Array.from(g);let v=[];return C.forEach(b=>{let _=f[b]|0,k=p[b]|0;v.push({key:b,bytesIn:_,bytesOut:k})}),v},a=()=>{let f=i(o.network.capBytesIn,o.network.capBytesOut);return u(f)},s=()=>{let f=i(o.network.typeBytesIn,o.network.typeBytesOut);return u(f)},u=f=>m.jsxs("table",{className:"table-auto text-left w-full",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b font-bold",children:[m.jsx("th",{children:"Type"}),m.jsx("th",{children:"In"}),m.jsx("th",{children:"Out"})]})}),m.jsx("tbody",{children:f.map(p=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{children:p.key}),m.jsx("td",{children:zt(p.bytesIn)}),m.jsx("td",{children:zt(p.bytesOut)})]},p.key))})]}),c=()=>m.jsxs("table",{className:"table-auto text-left w-full",children:[m.jsx("thead",{}),m.jsxs("tbody",{children:[d("ID",o.id),d("protocols",o.protocols),d("enr",o.enr),d("Enode",o.enode),d("Cient",o.name),d("caps",o.caps.toString()),d("local address",o.network.localAddress),d("remote address",o.network.remoteAddress),d("In",zt(o.network.bytesIn)),d("Out",zt(o.network.bytesOut)),d("In speed",$r(o.network.inRate)),d("Out speed",$r(o.network.outRate))]})]}),d=(f,p)=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{children:f+": "}),m.jsx("td",{children:p})]},f);return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center",children:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Peer Details"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center items-center max-h-[70vh] overflow-scroll",children:[m.jsx("p",{className:"font-bold underline",children:"Main info :"}),c(),m.jsx("div",{className:"h-5"}),m.jsx("p",{className:"font-bold underline",children:"Network Usage By Capability :"}),a(),m.jsx("div",{className:"h-5"}),m.jsx("p",{className:"font-bold underline",children:"Network Usage By Type :"}),s()]}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(Un,{backgroundColor:is,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var On=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(On||{});const bx=({type:e})=>{let t=[],r={activePeers:0,totalPeers:0,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0,totalInRate:0,totalOutRate:0},n=[],o=[];e==="sentry"?(t=Ee(Pf),r=Ee(b3),n=Ee(v3),o=Ee(y3)):(t=Ee(Tf),r=Ee(w3),n=Ee(g3),o=Ee(S3));const[i,a]=N.useState(null),[s,u]=N.useState("none"),c=()=>m.jsxs("table",{className:"table-fixed rounded-lg shadow-lg bg-white text-left mb-4 w-full h-fit",children:[m.jsx("thead",{children:m.jsx("tr",{className:"border-b",children:m.jsx("th",{className:"px-4 py-2",children:"Error"})})}),m.jsx("tbody",{})]});return m.jsxs("div",{className:"flex items-center flex-col",children:[m.jsxs("div",{className:"flex justify-center items-center flex-row mb-5",children:[m.jsx("p",{className:"mb-2 font-bold text-2xl",children:e==="sentry"?"eth/6x P2P":"Beacon chain P2P"}),m.jsx("div",{className:"w-5"}),m.jsx(wH,{statistics:r,selectedStatistics:s,onRowClicked:d=>{u(d)}})]}),s==="active"&&m.jsx(nm,{peers:n,onPeerClicked:d=>{a(d)}}),s==="static"&&m.jsx(nm,{peers:o,onPeerClicked:d=>{a(d)}}),s==="total"&&m.jsx(nm,{peers:t,onPeerClicked:d=>{a(d)}}),s==="errors"&&c(),i&&m.jsx(_H,{peerId:i,onClose:()=>{a(null)}})]})},xH=()=>{const e=Ee(Ef),t=Ee(lP),r=Ee(uP),n=r.stages.flatMap(p=>p.subStage?[p,{...p,name:p.name,subStage:!1}]:[p]),[o,i]=N.useState(0);N.useEffect(()=>{e.torrentMetadataReadys(p)+"/"+r.stages.length,s=p=>{for(let y=0;yp.name==="Snapshots"?p.subStage?e.downloadFinished?"Finished":e.torrentMetadataReadyp.name==="Snapshots"?p.subStage?"Snapshots (Downloading)":"Snapshots (Indexing)":p.name,d=p=>p.name==="Snapshots"?p.subStage?Kf(e.downloaded,e.total):YT(t.progress):"0%",f=p=>{if(p.name==="Snapshots")if(p.subStage){let y=0;return e.totalTime.forEach(S=>{y+=S}),Il(y)}else{let y=0;return t.totalTime.forEach(S=>{y+=S}),Il(y)}else return"0s"};return m.jsx("div",{children:m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Stage"}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"State"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"})]})}),m.jsx("tbody",{children:n.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:a(p)}),m.jsx("td",{className:"px-4 py-2",children:c(p)}),m.jsx("td",{className:"px-4 py-2",children:u(p)}),m.jsx("td",{className:"px-4 py-2",children:d(p)}),m.jsx("td",{className:"px-4 py-2",children:f(p)})]}))})]})})},CH=()=>{const e=Ee(Ef),t=Ee(lP),r=Ee(uP),n=()=>{let i=o();if((i==null?void 0:i.name)===void 0)return"0s";let a=0;return e.totalTime.forEach(s=>{a+=s}),t.totalTime.forEach(s=>{a+=s}),Il(a)},o=()=>{let i=0;return r.currentStage>0&&r.currentStage{const e=Ee(fP),t=()=>m.jsx("div",{children:m.jsx("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:m.jsx("tbody",{children:e.map(r=>m.jsx("tr",{children:m.jsx("div",{className:"p-1",children:m.jsx(_P,{variant:"filled",severity:"warning",children:r.message})})}))})})});return m.jsx("div",{className:"flex flex-col",children:e.length>0?t():m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"No issues detected"})})},Pa=()=>je.getState().app.activeNodeId,kH=()=>{let e=Pa();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},PH=()=>{let e=Pa();for(let t of je.getState().syncStages.snapshotFilesList)if(t.nodeId===e)return t.files;return[]},TH=()=>{let e=Pa();for(let t of je.getState().issues.issues)if(t.nodeId===e)return t.issues;return[]},EH=()=>{const e=kH(),t=PH();if(e&&e.segments.length!=t.length)if(e.segments.length{je.dispatch(j3({nodeId:Pa(),issueId:i.id}))}),r.forEach(i=>{let a=IH(o,i);if(a!==void 0){let s=Date.now()-a.timestamp,u=new Date(s).toISOString().substr(11,8),c="No peers for segment: "+i+" for "+u;je.dispatch(B1({issue:{type:cv.SnapshotSegmentMissingPeers,message:c,id:i,timestamp:a.timestamp},nodeId:Pa()}))}else je.dispatch(B1({issue:{type:cv.SnapshotSegmentMissingPeers,message:"No peers for segment: "+i,id:i,timestamp:Date.now()-2e4},nodeId:Pa()}))})}else console.log("Error, more segments than files")},OH=(e,t)=>{let r=[];return e.forEach(n=>{let o=!1;for(let i of t.segments)if(i.name===n){o=!0;break}o||r.push(n)}),r},IH=(e,t)=>e.find(n=>n.id===t);function jH(){return m.jsx("div",{children:m.jsx(Lj,{children:m.jsxs(Xt,{path:"/",element:m.jsx(zH,{}),children:[m.jsx(Xt,{index:!0,element:m.jsx(tD,{})}),m.jsx(Xt,{path:"sentry-network",element:m.jsx(bx,{type:"sentry"})}),m.jsx(Xt,{path:"sentinel-network",element:m.jsx(bx,{type:"sentinel"})}),m.jsx(Xt,{path:"downloader",element:m.jsx(bH,{})}),m.jsx(Xt,{path:"logs",element:m.jsx(s8,{})}),m.jsx(Xt,{path:"chain",element:m.jsx(NH,{})}),m.jsx(Xt,{path:"data",element:m.jsx(l8,{})}),m.jsx(Xt,{path:"debug",element:m.jsx(AH,{})}),m.jsx(Xt,{path:"testing",element:m.jsx(MH,{})}),m.jsx(Xt,{path:"performance",element:m.jsx(CH,{})}),m.jsx(Xt,{path:"documentation",element:m.jsx(LH,{})}),m.jsx(Xt,{path:"issues",element:m.jsx(RH,{})}),m.jsx(Xt,{path:"admin",element:m.jsx(d8,{})}),m.jsx(Xt,{path:"*",element:m.jsx($H,{})})]})})})}function zH(){const e=Hl(),t=Ee(kt),r=Ee(Sk),n=Ee(Fg);Ee(cP);const[o,i]=N.useState(!1),[a,s]=N.useState(!1);return N.useEffect(()=>{},[]),N.useEffect(()=>{n!==""&&xD()},[n]),N.useEffect(()=>{t!==""&&n!==""&&(kD(),RD(),CD(),CP(),PD(),TD(),OD(),rw(),setInterval(()=>{rw()},5*$s.second),ID(),nw(),setInterval(()=>{nw()},20*$s.second),setInterval(()=>{EH()},20*$s.second),setInterval(()=>{e(h3({activeNodeId:t,countInterval:15}))},15*$s.second))},[t]),N.useEffect(()=>{t!==""&&n!==""&&(setTimeout(()=>{Fu()},500),setTimeout(()=>{Fu()},5e3),setTimeout(()=>{Fu()},1e4),setTimeout(()=>{Fu()},2e4))},[n,t]),N.useEffect(()=>{t!==""&&r.length>0&&r.forEach(u=>{u.tables.length===0&&ED(u.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(j7,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(Aj,{})}),m.jsx(y8,{onSessionClicked:()=>{i(!0)},onNodeClicked:()=>{s(!0)}}),m.jsx(S8,{open:o,onClose:()=>{i(!1)}}),m.jsx(w8,{open:a,onClose:()=>{s(!1)}})]})}function NH(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function AH(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function MH(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function LH(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function $H(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(yr,{to:"/",children:"Go to the home page"})})]})}function Cc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cc=function(r){return typeof r}:Cc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Cc(e)}function DH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wx(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ja(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Cx={exports:{}},Tf={},Rx={exports:{}},Te={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ll=Symbol.for("react.element"),_O=Symbol.for("react.portal"),xO=Symbol.for("react.fragment"),CO=Symbol.for("react.strict_mode"),RO=Symbol.for("react.profiler"),kO=Symbol.for("react.provider"),PO=Symbol.for("react.context"),TO=Symbol.for("react.forward_ref"),EO=Symbol.for("react.suspense"),OO=Symbol.for("react.memo"),IO=Symbol.for("react.lazy"),OS=Symbol.iterator;function jO(e){return e===null||typeof e!="object"?null:(e=OS&&e[OS]||e["@@iterator"],typeof e=="function"?e:null)}var kx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Px=Object.assign,Tx={};function Za(e,t,r){this.props=e,this.context=t,this.refs=Tx,this.updater=r||kx}Za.prototype.isReactComponent={};Za.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Za.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ex(){}Ex.prototype=Za.prototype;function Tv(e,t,r){this.props=e,this.context=t,this.refs=Tx,this.updater=r||kx}var Ev=Tv.prototype=new Ex;Ev.constructor=Tv;Px(Ev,Za.prototype);Ev.isPureReactComponent=!0;var IS=Array.isArray,Ox=Object.prototype.hasOwnProperty,Ov={current:null},Ix={key:!0,ref:!0,__self:!0,__source:!0};function jx(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Ox.call(t,n)&&!Ix.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ke=Y[we];if(0>>1;weo(Se,ce))Go(V,Se)?(Y[we]=V,Y[G]=ce,we=G):(Y[we]=Se,Y[Le]=ce,we=Le);else if(Go(V,ce))Y[we]=V,Y[G]=ce,we=G;else break e}}return te}function o(Y,te){var ce=Y.sortIndex-te.sortIndex;return ce!==0?ce:Y.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],c=[],f=1,d=null,p=3,y=!1,S=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Y){for(var te=r(c);te!==null;){if(te.callback===null)n(c);else if(te.startTime<=Y)n(c),te.sortIndex=te.expirationTime,t(u,te);else break;te=r(c)}}function k(Y){if(g=!1,_(Y),!S)if(r(u)!==null)S=!0,ie(T);else{var te=r(c);te!==null&&de(k,te.startTime-Y)}}function T(Y,te){S=!1,g&&(g=!1,v(O),O=-1),y=!0;var ce=p;try{for(_(te),d=r(u);d!==null&&(!(d.expirationTime>te)||Y&&!M());){var we=d.callback;if(typeof we=="function"){d.callback=null,p=d.priorityLevel;var ke=we(d.expirationTime<=te);te=e.unstable_now(),typeof ke=="function"?d.callback=ke:d===r(u)&&n(u),_(te)}else n(u);d=r(u)}if(d!==null)var Pt=!0;else{var Le=r(c);Le!==null&&de(k,Le.startTime-te),Pt=!1}return Pt}finally{d=null,p=ce,y=!1}}var E=!1,x=null,O=-1,I=5,j=-1;function M(){return!(e.unstable_now()-jY||125we?(Y.sortIndex=ce,t(c,Y),r(u)===null&&Y===r(c)&&(g?(v(O),O=-1):g=!0,de(k,ce-we))):(Y.sortIndex=ke,t(u,Y),S||y||(S=!0,ie(T))),Y},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(Y){var te=p;return function(){var ce=p;p=te;try{return Y.apply(this,arguments)}finally{p=ce}}}})(Mx);Ax.exports=Mx;var UO=Ax.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Lx=N,Fr=UO;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),om=Object.prototype.hasOwnProperty,HO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,zS={},NS={};function qO(e){return om.call(NS,e)?!0:om.call(zS,e)?!1:HO.test(e)?NS[e]=!0:(zS[e]=!0,!1)}function GO(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function VO(e,t,r,n){if(t===null||typeof t>"u"||GO(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new hr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ut[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var jv=/[\-:]([a-z])/g;function zv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jv,zv);Ut[t]=new hr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jv,zv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jv,zv);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nv(e,t,r,n){var o=Ut.hasOwnProperty(t)?Ut[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var u=` -`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Eh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zs(e):""}function KO(e){switch(e.tag){case 5:return zs(e.type);case 16:return zs("Lazy");case 13:return zs("Suspense");case 19:return zs("SuspenseList");case 0:case 2:case 15:return e=Oh(e.type,!1),e;case 11:return e=Oh(e.type.render,!1),e;case 1:return e=Oh(e.type,!0),e;default:return""}}function lm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case aa:return"Fragment";case ia:return"Portal";case im:return"Profiler";case Av:return"StrictMode";case am:return"Suspense";case sm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fx:return(e.displayName||"Context")+".Consumer";case Dx:return(e._context.displayName||"Context")+".Provider";case Mv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lv:return t=e.displayName||null,t!==null?t:lm(e.type)||"Memo";case _o:t=e._payload,e=e._init;try{return lm(e(t))}catch{}}return null}function YO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return lm(t);case 8:return t===Av?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function QO(e){var t=Wx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wu(e){e._valueTracker||(e._valueTracker=QO(e))}function Ux(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Wx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Rc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function um(e,t){var r=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function MS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Uo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hx(e,t){t=t.checked,t!=null&&Nv(e,"checked",t,!1)}function cm(e,t){Hx(e,t);var r=Uo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fm(e,t.type,r):t.hasOwnProperty("defaultValue")&&fm(e,t.type,Uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function LS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function fm(e,t,r){(t!=="number"||Rc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ns=Array.isArray;function ya(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_u.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},XO=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(e){XO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qs[t]=qs[e]})});function Kx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qs.hasOwnProperty(e)&&qs[e]?(""+t).trim():t+"px"}function Yx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Kx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var JO=st({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pm(e,t){if(t){if(JO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function mm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vm=null;function $v(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gm=null,Sa=null,ba=null;function FS(e){if(e=Fl(e)){if(typeof gm!="function")throw Error(re(280));var t=e.stateNode;t&&(t=zf(t),gm(e.stateNode,e.type,t))}}function Qx(e){Sa?ba?ba.push(e):ba=[e]:Sa=e}function Xx(){if(Sa){var e=Sa,t=ba;if(ba=Sa=null,FS(e),t)for(e=0;e>>=0,e===0?32:31-(uI(e)/cI|0)|0}var xu=64,Cu=4194304;function As(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ec(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=As(s):(i&=a,i!==0&&(n=As(i)))}else a=r&~o,a!==0?n=As(a):i!==0&&(n=As(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function $l(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=r}function pI(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Vs),YS=String.fromCharCode(32),QS=!1;function gC(e,t){switch(e){case"keyup":return WI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function HI(e,t){switch(e){case"compositionend":return yC(t);case"keypress":return t.which!==32?null:(QS=!0,YS);case"textInput":return e=t.data,e===YS&&QS?null:e;default:return null}}function qI(e,t){if(sa)return e==="compositionend"||!Gv&&gC(e,t)?(e=mC(),Zu=Uv=Po=null,sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=e1(r)}}function _C(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xC(){for(var e=window,t=Rc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Rc(e.document)}return t}function Vv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function e2(e){var t=xC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_C(r.ownerDocument.documentElement,r)){if(n!==null&&Vv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=t1(r,i);var a=t1(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,la=null,xm=null,Ys=null,Cm=!1;function r1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cm||la==null||la!==Rc(n)||(n=la,"selectionStart"in n&&Vv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ys&&dl(Ys,n)||(Ys=n,n=jc(xm,"onSelect"),0fa||(e.current=Om[fa],Om[fa]=null,fa--)}function Ke(e,t){fa++,Om[fa]=e.current,e.current=t}var Ho={},nr=Qo(Ho),wr=Qo(!1),xi=Ho;function Ia(e,t){var r=e.type.contextTypes;if(!r)return Ho;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _r(e){return e=e.childContextTypes,e!=null}function Nc(){Xe(wr),Xe(nr)}function u1(e,t,r){if(nr.current!==Ho)throw Error(re(168));Ke(nr,t),Ke(wr,r)}function jC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(re(108,YO(e)||"Unknown",o));return st({},r,n)}function Ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ho,xi=nr.current,Ke(nr,e),Ke(wr,wr.current),!0}function c1(e,t,r){var n=e.stateNode;if(!n)throw Error(re(169));r?(e=jC(e,t,xi),n.__reactInternalMemoizedMergedChildContext=e,Xe(wr),Xe(nr),Ke(nr,e)):Xe(wr),Ke(wr,r)}var to=null,Nf=!1,Hh=!1;function zC(e){to===null?to=[e]:to.push(e)}function d2(e){Nf=!0,zC(e)}function Xo(){if(!Hh&&to!==null){Hh=!0;var e=0,t=Be;try{var r=to;for(Be=1;e>=a,o-=a,io=1<<32-yn(t)+o|r<O?(I=x,x=null):I=x.sibling;var j=p(v,x,_[O],k);if(j===null){x===null&&(x=I);break}e&&x&&j.alternate===null&&t(v,x),b=i(j,b,O),E===null?T=j:E.sibling=j,E=j,x=I}if(O===_.length)return r(v,x),rt&&si(v,O),T;if(x===null){for(;O<_.length;O++)x=d(v,_[O],k),x!==null&&(b=i(x,b,O),E===null?T=x:E.sibling=x,E=x);return rt&&si(v,O),T}for(x=n(v,x);O<_.length;O++)I=y(x,v,O,_[O],k),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?O:I.key),b=i(I,b,O),E===null?T=I:E.sibling=I,E=I);return e&&x.forEach(function(M){return t(v,M)}),rt&&si(v,O),T}function g(v,b,_,k){var T=Ss(_);if(typeof T!="function")throw Error(re(150));if(_=T.call(_),_==null)throw Error(re(151));for(var E=T=null,x=b,O=b=0,I=null,j=_.next();x!==null&&!j.done;O++,j=_.next()){x.index>O?(I=x,x=null):I=x.sibling;var M=p(v,x,j.value,k);if(M===null){x===null&&(x=I);break}e&&x&&M.alternate===null&&t(v,x),b=i(M,b,O),E===null?T=M:E.sibling=M,E=M,x=I}if(j.done)return r(v,x),rt&&si(v,O),T;if(x===null){for(;!j.done;O++,j=_.next())j=d(v,j.value,k),j!==null&&(b=i(j,b,O),E===null?T=j:E.sibling=j,E=j);return rt&&si(v,O),T}for(x=n(v,x);!j.done;O++,j=_.next())j=y(x,v,O,j.value,k),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?O:j.key),b=i(j,b,O),E===null?T=j:E.sibling=j,E=j);return e&&x.forEach(function(B){return t(v,B)}),rt&&si(v,O),T}function C(v,b,_,k){if(typeof _=="object"&&_!==null&&_.type===aa&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case bu:e:{for(var T=_.key,E=b;E!==null;){if(E.key===T){if(T=_.type,T===aa){if(E.tag===7){r(v,E.sibling),b=o(E,_.props.children),b.return=v,v=b;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===_o&&g1(T)===E.type){r(v,E.sibling),b=o(E,_.props),b.ref=Cs(v,E,_),b.return=v,v=b;break e}r(v,E);break}else t(v,E);E=E.sibling}_.type===aa?(b=yi(_.props.children,v.mode,k,_.key),b.return=v,v=b):(k=sc(_.type,_.key,_.props,null,v.mode,k),k.ref=Cs(v,b,_),k.return=v,v=k)}return a(v);case ia:e:{for(E=_.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){r(v,b.sibling),b=o(b,_.children||[]),b.return=v,v=b;break e}else{r(v,b);break}else t(v,b);b=b.sibling}b=Jh(_,v.mode,k),b.return=v,v=b}return a(v);case _o:return E=_._init,C(v,b,E(_._payload),k)}if(Ns(_))return S(v,b,_,k);if(Ss(_))return g(v,b,_,k);Iu(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(r(v,b.sibling),b=o(b,_),b.return=v,v=b):(r(v,b),b=Xh(_,v.mode,k),b.return=v,v=b),a(v)):r(v,b)}return C}var za=BC(!0),WC=BC(!1),Bl={},$n=Qo(Bl),vl=Qo(Bl),gl=Qo(Bl);function pi(e){if(e===Bl)throw Error(re(174));return e}function rg(e,t){switch(Ke(gl,t),Ke(vl,e),Ke($n,Bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hm(t,e)}Xe($n),Ke($n,t)}function Na(){Xe($n),Xe(vl),Xe(gl)}function UC(e){pi(gl.current);var t=pi($n.current),r=hm(t,e.type);t!==r&&(Ke(vl,e),Ke($n,r))}function ng(e){vl.current===e&&(Xe($n),Xe(vl))}var it=Qo(0);function Bc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qh=[];function og(){for(var e=0;er?r:4,e(!0);var n=Gh.transition;Gh.transition={};try{e(!1),t()}finally{Be=r,Gh.transition=n}}function iR(){return rn().memoizedState}function v2(e,t,r){var n=Lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},aR(e))sR(t,r);else if(r=LC(e,t,r,n),r!==null){var o=fr();Sn(r,e,n,o),lR(r,t,n)}}function g2(e,t,r){var n=Lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(aR(e))sR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,bn(s,a)){var u=t.interleaved;u===null?(o.next=o,eg(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=LC(e,t,o,n),r!==null&&(o=fr(),Sn(r,e,n,o),lR(r,t,n))}}function aR(e){var t=e.alternate;return e===at||t!==null&&t===at}function sR(e,t){Qs=Wc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function lR(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Fv(e,r)}}var Uc={readContext:tn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},y2={readContext:tn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:S1,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,nc(4194308,4,eR.bind(null,t,e),r)},useLayoutEffect:function(e,t){return nc(4194308,4,e,t)},useInsertionEffect:function(e,t){return nc(4,2,e,t)},useMemo:function(e,t){var r=In();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=In();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=v2.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:y1,useDebugValue:ug,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=y1(!1),t=e[0];return e=m2.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,o=In();if(rt){if(r===void 0)throw Error(re(407));r=r()}else{if(r=t(),zt===null)throw Error(re(349));Ri&30||GC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,S1(KC.bind(null,n,i,e),[e]),n.flags|=2048,bl(9,VC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=In(),t=zt.identifierPrefix;if(rt){var r=ao,n=io;r=(n&~(1<<32-yn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Mn]=t,e[ml]=n,gR(e,t,!1,!1),t.stateNode=e;e:{switch(a=mm(r,n),r){case"dialog":Qe("cancel",e),Qe("close",e),o=n;break;case"iframe":case"object":case"embed":Qe("load",e),o=n;break;case"video":case"audio":for(o=0;oMa&&(t.flags|=128,n=!0,Rs(i,!1),t.lanes=4194304)}else{if(!n)if(e=Bc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return Yt(t),null}else 2*mt()-i.renderingStartTime>Ma&&r!==1073741824&&(t.flags|=128,n=!0,Rs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=mt(),t.sibling=null,r=it.current,Ke(it,n?r&1|2:r&1),t):(Yt(t),null);case 22:case 23:return mg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?jr&1073741824&&(Yt(t),t.subtreeFlags&6&&(t.flags|=8192)):Yt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function k2(e,t){switch(Yv(t),t.tag){case 1:return _r(t.type)&&Nc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(),Xe(wr),Xe(nr),og(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ng(t),null;case 13:if(Xe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(it),null;case 4:return Na(),null;case 10:return Zv(t.type._context),null;case 22:case 23:return mg(),null;case 24:return null;default:return null}}var zu=!1,tr=!1,P2=typeof WeakSet=="function"?WeakSet:Set,pe=null;function ma(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ct(e,t,n)}else r.current=null}function Wm(e,t,r){try{r()}catch(n){ct(e,t,n)}}var T1=!1;function T2(e,t){if(Rm=Oc,e=xC(),Vv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var y;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(u=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)p=d,d=y;for(;;){if(d===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++f===n&&(u=a),(y=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=y}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(km={focusedElem:e,selectionRange:r},Oc=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var g=S.memoizedProps,C=S.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:hn(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(k){ct(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return S=T1,T1=!1,S}function Xs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wm(t,r,i)}o=o.next}while(o!==n)}}function Lf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Um(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function bR(e){var t=e.alternate;t!==null&&(e.alternate=null,bR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ml],delete t[Em],delete t[c2],delete t[f2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wR(e){return e.tag===5||e.tag===3||e.tag===4}function E1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zc));else if(n!==4&&(e=e.child,e!==null))for(Hm(e,t,r),e=e.sibling;e!==null;)Hm(e,t,r),e=e.sibling}function qm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qm(e,t,r),e=e.sibling;e!==null;)qm(e,t,r),e=e.sibling}var $t=null,pn=!1;function wo(e,t,r){for(r=r.child;r!==null;)_R(e,t,r),r=r.sibling}function _R(e,t,r){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Ef,r)}catch{}switch(r.tag){case 5:tr||ma(r,t);case 6:var n=$t,o=pn;$t=null,wo(e,t,r),$t=n,pn=o,$t!==null&&(pn?(e=$t,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):$t.removeChild(r.stateNode));break;case 18:$t!==null&&(pn?(e=$t,r=r.stateNode,e.nodeType===8?Uh(e.parentNode,r):e.nodeType===1&&Uh(e,r),cl(e)):Uh($t,r.stateNode));break;case 4:n=$t,o=pn,$t=r.stateNode.containerInfo,pn=!0,wo(e,t,r),$t=n,pn=o;break;case 0:case 11:case 14:case 15:if(!tr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Wm(r,t,a),o=o.next}while(o!==n)}wo(e,t,r);break;case 1:if(!tr&&(ma(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){ct(r,t,s)}wo(e,t,r);break;case 21:wo(e,t,r);break;case 22:r.mode&1?(tr=(n=tr)||r.memoizedState!==null,wo(e,t,r),tr=n):wo(e,t,r);break;default:wo(e,t,r)}}function O1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new P2),t.forEach(function(n){var o=L2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function dn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=mt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*O2(n/1960))-n,10e?16:e,To===null)var n=!1;else{if(e=To,To=null,Gc=0,Ie&6)throw Error(re(331));var o=Ie;for(Ie|=4,pe=e.current;pe!==null;){var i=pe,a=i.child;if(pe.flags&16){var s=i.deletions;if(s!==null){for(var u=0;umt()-hg?gi(e,0):dg|=r),xr(e,t)}function OR(e,t){t===0&&(e.mode&1?(t=Cu,Cu<<=1,!(Cu&130023424)&&(Cu=4194304)):t=1);var r=fr();e=ho(e,t),e!==null&&($l(e,t,r),xr(e,r))}function M2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),OR(e,r)}function L2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(t),OR(e,r)}var IR;IR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return br=!1,C2(e,t,r);br=!!(e.flags&131072)}else br=!1,rt&&t.flags&1048576&&NC(t,Lc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;oc(e,t),e=t.pendingProps;var o=Ia(t,nr.current);_a(t,r),o=ag(null,t,n,e,o,r);var i=sg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_r(n)?(i=!0,Ac(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tg(t),o.updater=Af,t.stateNode=o,o._reactInternals=t,Am(t,n,e,r),t=$m(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&Kv(t),ur(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(oc(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=D2(n),e=hn(n,e),o){case 0:t=Lm(null,t,n,e,r);break e;case 1:t=R1(null,t,n,e,r);break e;case 11:t=x1(null,t,n,e,r);break e;case 14:t=C1(null,t,n,hn(n.type,e),r);break e}throw Error(re(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),Lm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),R1(e,t,n,o,r);case 3:e:{if(pR(t),e===null)throw Error(re(387));n=t.pendingProps,i=t.memoizedState,o=i.element,$C(e,t),Fc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Aa(Error(re(423)),t),t=k1(e,t,n,r,o);break e}else if(n!==o){o=Aa(Error(re(424)),t),t=k1(e,t,n,r,o);break e}else for(Ar=No(t.stateNode.containerInfo.firstChild),Mr=t,rt=!0,mn=null,r=WC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ja(),n===o){t=po(e,t,r);break e}ur(e,t,n,r)}t=t.child}return t;case 5:return UC(t),e===null&&jm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Pm(n,o)?a=null:i!==null&&Pm(n,i)&&(t.flags|=32),hR(e,t),ur(e,t,a,r),t.child;case 6:return e===null&&jm(t),null;case 13:return mR(e,t,r);case 4:return rg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=za(t,null,n,r):ur(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),x1(e,t,n,o,r);case 7:return ur(e,t,t.pendingProps,r),t.child;case 8:return ur(e,t,t.pendingProps.children,r),t.child;case 12:return ur(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ke($c,n._currentValue),n._currentValue=a,i!==null)if(bn(i.value,a)){if(i.children===o.children&&!wr.current){t=po(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=uo(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),zm(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(re(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),zm(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ur(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,_a(t,r),o=tn(o),n=n(o),t.flags|=1,ur(e,t,n,r),t.child;case 14:return n=t.type,o=hn(n,t.pendingProps),o=hn(n.type,o),C1(e,t,n,o,r);case 15:return fR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hn(n,o),oc(e,t),t.tag=1,_r(n)?(e=!0,Ac(t)):e=!1,_a(t,r),FC(t,n,o),Am(t,n,o,r),$m(null,t,n,!0,e,r);case 19:return vR(e,t,r);case 22:return dR(e,t,r)}throw Error(re(156,t.tag))};function jR(e,t){return oC(e,t)}function $2(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jr(e,t,r,n){return new $2(e,t,r,n)}function gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function D2(e){if(typeof e=="function")return gg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mv)return 11;if(e===Lv)return 14}return 2}function $o(e,t){var r=e.alternate;return r===null?(r=Jr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function sc(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")gg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case aa:return yi(r.children,o,i,t);case Av:a=8,o|=8;break;case im:return e=Jr(12,r,t,o|2),e.elementType=im,e.lanes=i,e;case am:return e=Jr(13,r,t,o),e.elementType=am,e.lanes=i,e;case sm:return e=Jr(19,r,t,o),e.elementType=sm,e.lanes=i,e;case Bx:return Df(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dx:a=10;break e;case Fx:a=9;break e;case Mv:a=11;break e;case Lv:a=14;break e;case _o:a=16,n=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Jr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function yi(e,t,r,n){return e=Jr(7,e,n,t),e.lanes=r,e}function Df(e,t,r,n){return e=Jr(22,e,n,t),e.elementType=Bx,e.lanes=r,e.stateNode={isHidden:!1},e}function Xh(e,t,r){return e=Jr(6,e,null,t),e.lanes=r,e}function Jh(e,t,r){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function F2(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jh(0),this.expirationTimes=jh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yg(e,t,r,n,o,i,a,s,u){return e=new F2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},tg(i),e}function B2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(MR)}catch(e){console.error(e)}}MR(),Nx.exports=Wr;var Wl=Nx.exports,$1=Wl;nm.createRoot=$1.createRoot,nm.hydrateRoot=$1.hydrateRoot;/** - * @remix-run/router v1.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _g(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function V2(){return Math.random().toString(36).substr(2,8)}function F1(e,t){return{usr:e.state,key:e.key,idx:t}}function Qm(e,t,r,n){return r===void 0&&(r=null),_l({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rs(t):t,{state:r,key:t&&t.key||n||V2()})}function Yc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function rs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function K2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Eo.Pop,u=null,c=f();c==null&&(c=0,a.replaceState(_l({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Eo.Pop;let C=f(),v=C==null?null:C-c;c=C,u&&u({action:s,location:g.location,delta:v})}function p(C,v){s=Eo.Push;let b=Qm(g.location,C,v);r&&r(b,C),c=f()+1;let _=F1(b,c),k=g.createHref(b);try{a.pushState(_,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&u&&u({action:s,location:g.location,delta:1})}function y(C,v){s=Eo.Replace;let b=Qm(g.location,C,v);r&&r(b,C),c=f();let _=F1(b,c),k=g.createHref(b);a.replaceState(_,"",k),i&&u&&u({action:s,location:g.location,delta:0})}function S(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:Yc(C);return Ct(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return s},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(D1,d),u=C,()=>{o.removeEventListener(D1,d),u=null}},createHref(C){return t(o,C)},createURL:S,encodeLocation(C){let v=S(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:y,go(C){return a.go(C)}};return g}var B1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(B1||(B1={}));function Y2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?rs(t):t,o=xg(n.pathname||"/",r);if(o==null)return null;let i=LR(e);Q2(i);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Ct(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Do([n,u.relativePath]),f=r.concat(u);i.children&&i.children.length>0&&(Ct(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),LR(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:nj(c,i.index),routesMeta:f})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let u of $R(i.path))o(i,a,u)}),t}function $R(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=$R(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Q2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:oj(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const X2=/^:[\w-]+$/,J2=3,Z2=2,ej=1,tj=10,rj=-2,W1=e=>e==="*";function nj(e,t){let r=e.split("/"),n=r.length;return r.some(W1)&&(n+=rj),t&&(n+=Z2),r.filter(o=>!W1(o)).reduce((o,i)=>o+(X2.test(i)?J2:i===""?ej:tj),n)}function oj(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function ij(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{let{paramName:p,isOptional:y}=f;if(p==="*"){let g=s[d]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const S=s[d];return y&&!S?c[p]=void 0:c[p]=uj(S||"",p),c},{}),pathname:i,pathnameBase:a,pattern:e}}function sj(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),_g(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function lj(e){try{return decodeURI(e)}catch(t){return _g(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function uj(e,t){try{return decodeURIComponent(e)}catch(r){return _g(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function xg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function cj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?rs(e):e;return{pathname:r?r.startsWith("/")?r:fj(r,t):t,search:pj(n),hash:mj(o)}}function fj(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Zh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function dj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function DR(e,t){let r=dj(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function FR(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=rs(e):(o=_l({},e),Ct(!o.pathname||!o.pathname.includes("?"),Zh("?","pathname","search",o)),Ct(!o.pathname||!o.pathname.includes("#"),Zh("#","pathname","hash",o)),Ct(!o.search||!o.search.includes("#"),Zh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=r;else{let d=t.length-1;if(!n&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=cj(o,s),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const Do=e=>e.join("/").replace(/\/\/+/g,"/"),hj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function vj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const BR=["post","put","patch","delete"];new Set(BR);const gj=["get",...BR];new Set(gj);/** - * React Router v6.21.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),N.useCallback(function(c,f){if(f===void 0&&(f={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let d=FR(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Do([t,d.pathname])),(f.replace?n.replace:n.push)(d,f.state,f)},[t,n,a,i,e])}const _j=N.createContext(null);function xj(e){let t=N.useContext(Jo).outlet;return t&&N.createElement(_j.Provider,{value:e},t)}function HR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=N.useContext(Mi),{matches:o}=N.useContext(Jo),{pathname:i}=qf(),a=JSON.stringify(DR(o,n.v7_relativeSplatPath));return N.useMemo(()=>FR(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function Cj(e,t){return Rj(e,t)}function Rj(e,t,r,n){Ul()||Ct(!1);let{navigator:o}=N.useContext(Mi),{matches:i}=N.useContext(Jo),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=qf(),f;if(t){var d;let C=typeof t=="string"?rs(t):t;u==="/"||(d=C.pathname)!=null&&d.startsWith(u)||Ct(!1),f=C}else f=c;let p=f.pathname||"/",y=u==="/"?p:p.slice(u.length)||"/",S=Y2(e,{pathname:y}),g=Oj(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Do([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Do([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,r,n);return t&&g?N.createElement(Hf.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Eo.Pop}},g):g}function kj(){let e=Nj(),t=vj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),r?N.createElement("pre",{style:o},r):null,i)}const Pj=N.createElement(kj,null);class Tj extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?N.createElement(Jo.Provider,{value:this.props.routeContext},N.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ej(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(Cg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Jo.Provider,{value:t},n)}function Oj(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let a=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));f>=0||Ct(!1),a=a.slice(0,Math.min(a.length,f+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let y,S=!1,g=null,C=null;r&&(y=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||Pj,u&&(c<0&&p===0?(Mj("route-fallback",!1),S=!0,C=null):c===p&&(S=!0,C=d.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,p+1)),b=()=>{let _;return y?_=g:S?_=C:d.route.Component?_=N.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=f,N.createElement(Ej,{match:d,routeContext:{outlet:f,matches:v,isDataRoute:r!=null},children:_})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?N.createElement(Tj,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var qR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qR||{}),Qc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qc||{});function Ij(e){let t=N.useContext(Cg);return t||Ct(!1),t}function jj(e){let t=N.useContext(yj);return t||Ct(!1),t}function zj(e){let t=N.useContext(Jo);return t||Ct(!1),t}function GR(e){let t=zj(),r=t.matches[t.matches.length-1];return r.route.id||Ct(!1),r.route.id}function Nj(){var e;let t=N.useContext(WR),r=jj(Qc.UseRouteError),n=GR(Qc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Aj(){let{router:e}=Ij(qR.UseNavigateStable),t=GR(Qc.UseNavigateStable),r=N.useRef(!1);return UR(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,xl({fromRouteId:t},i)))},[e,t])}const U1={};function Mj(e,t,r){!t&&!U1[e]&&(U1[e]=!0)}function Lj(e){return xj(e.context)}function Xt(e){Ct(!1)}function $j(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Eo.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&Ct(!1);let u=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:u,navigator:i,static:a,future:xl({v7_relativeSplatPath:!1},s)}),[u,s,i,a]);typeof n=="string"&&(n=rs(n));let{pathname:f="/",search:d="",hash:p="",state:y=null,key:S="default"}=n,g=N.useMemo(()=>{let C=xg(f,u);return C==null?null:{location:{pathname:C,search:d,hash:p,state:y,key:S},navigationType:o}},[u,f,d,p,y,S,o]);return g==null?null:N.createElement(Mi.Provider,{value:c},N.createElement(Hf.Provider,{children:r,value:g}))}function Dj(e){let{children:t,location:r}=e;return Cj(Xm(t),r)}new Promise(()=>{});function Xm(e,t){t===void 0&&(t=[]);let r=[];return N.Children.forEach(e,(n,o)=>{if(!N.isValidElement(n))return;let i=[...t,o];if(n.type===N.Fragment){r.push.apply(r,Xm(n.props.children,i));return}n.type!==Xt&&Ct(!1),!n.props.index||!n.props.children||Ct(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Xm(n.props.children,i)),r.push(a)}),r}/** - * React Router DOM v6.21.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Bj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wj(e,t){return e.button===0&&(!t||t==="_self")&&!Bj(e)}const Uj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Hj="startTransition",H1=Ea[Hj];function qj(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=G2({window:o,v5Compat:!0}));let a=i.current,[s,u]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},f=N.useCallback(d=>{c&&H1?H1(()=>u(d)):u(d)},[u,c]);return N.useLayoutEffect(()=>a.listen(f),[a,f]),N.createElement($j,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const Gj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yr=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:f,unstable_viewTransition:d}=t,p=Fj(t,Uj),{basename:y}=N.useContext(Mi),S,g=!1;if(typeof c=="string"&&Vj.test(c)&&(S=c,Gj))try{let _=new URL(window.location.href),k=c.startsWith("//")?new URL(_.protocol+c):new URL(c),T=xg(k.pathname,y);k.origin===_.origin&&T!=null?c=T+k.search+k.hash:g=!0}catch{}let C=Sj(c,{relative:o}),v=Kj(c,{replace:a,state:s,target:u,preventScrollReset:f,relative:o,unstable_viewTransition:d});function b(_){n&&n(_),_.defaultPrevented||v(_)}return N.createElement("a",Jm({},p,{href:S||C,onClick:g||i?n:b,ref:r,target:u}))});var q1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(q1||(q1={}));var G1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(G1||(G1={}));function Kj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,u=bj(),c=qf(),f=HR(e,{relative:a});return N.useCallback(d=>{if(Wj(d,r)){d.preventDefault();let p=n!==void 0?n:Yc(c)===Yc(f);u(e,{replace:p,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,u,f,n,o,r,e,i,a,s])}var VR={exports:{}},KR={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var La=N;function Yj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qj=typeof Object.is=="function"?Object.is:Yj,Xj=La.useState,Jj=La.useEffect,Zj=La.useLayoutEffect,ez=La.useDebugValue;function tz(e,t){var r=t(),n=Xj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Zj(function(){o.value=r,o.getSnapshot=t,ep(o)&&i({inst:o})},[e,r,t]),Jj(function(){return ep(o)&&i({inst:o}),e(function(){ep(o)&&i({inst:o})})},[e]),ez(r),r}function ep(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Qj(e,r)}catch{return!0}}function rz(e,t){return t()}var nz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rz:tz;KR.useSyncExternalStore=La.useSyncExternalStore!==void 0?La.useSyncExternalStore:nz;VR.exports=KR;var oz=VR.exports,YR={exports:{}},QR={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gf=N,iz=oz;function az(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sz=typeof Object.is=="function"?Object.is:az,lz=iz.useSyncExternalStore,uz=Gf.useRef,cz=Gf.useEffect,fz=Gf.useMemo,dz=Gf.useDebugValue;QR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=uz(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=fz(function(){function u(y){if(!c){if(c=!0,f=y,y=n(y),o!==void 0&&a.hasValue){var S=a.value;if(o(S,y))return d=S}return d=y}if(S=d,sz(f,y))return S;var g=n(y);return o!==void 0&&o(S,g)?S:(f=y,d=g)}var c=!1,f,d,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,n,o]);var s=lz(e,i[0],i[1]);return cz(function(){a.hasValue=!0,a.value=s},[s]),dz(s),s};YR.exports=QR;var hz=YR.exports;function pz(e){e()}let XR=pz;const mz=e=>XR=e,vz=()=>XR,V1=Symbol.for("react-redux-context"),K1=typeof globalThis<"u"?globalThis:{};function gz(){var e;if(!N.createContext)return{};const t=(e=K1[V1])!=null?e:K1[V1]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const qo=gz();function Rg(e=qo){return function(){return N.useContext(e)}}const JR=Rg(),yz=()=>{throw new Error("uSES not initialized!")};let ZR=yz;const Sz=e=>{ZR=e},bz=(e,t)=>e===t;function wz(e=qo){const t=e===qo?JR:Rg(e);return function(n,o={}){const{equalityFn:i=bz,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:c,getServerState:f,stabilityCheck:d,noopCheck:p}=t();N.useRef(!0);const y=N.useCallback({[n.name](g){return n(g)}}[n.name],[n,d,a]),S=ZR(c.addNestedSub,u.getState,f||u.getState,y,i);return N.useDebugValue(S),S}}const Ee=wz();function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var ek={exports:{}},Ue={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var At=typeof Symbol=="function"&&Symbol.for,kg=At?Symbol.for("react.element"):60103,Pg=At?Symbol.for("react.portal"):60106,Vf=At?Symbol.for("react.fragment"):60107,Kf=At?Symbol.for("react.strict_mode"):60108,Yf=At?Symbol.for("react.profiler"):60114,Qf=At?Symbol.for("react.provider"):60109,Xf=At?Symbol.for("react.context"):60110,Tg=At?Symbol.for("react.async_mode"):60111,Jf=At?Symbol.for("react.concurrent_mode"):60111,Zf=At?Symbol.for("react.forward_ref"):60112,ed=At?Symbol.for("react.suspense"):60113,_z=At?Symbol.for("react.suspense_list"):60120,td=At?Symbol.for("react.memo"):60115,rd=At?Symbol.for("react.lazy"):60116,xz=At?Symbol.for("react.block"):60121,Cz=At?Symbol.for("react.fundamental"):60117,Rz=At?Symbol.for("react.responder"):60118,kz=At?Symbol.for("react.scope"):60119;function Hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kg:switch(e=e.type,e){case Tg:case Jf:case Vf:case Yf:case Kf:case ed:return e;default:switch(e=e&&e.$$typeof,e){case Xf:case Zf:case rd:case td:case Qf:return e;default:return t}}case Pg:return t}}}function tk(e){return Hr(e)===Jf}Ue.AsyncMode=Tg;Ue.ConcurrentMode=Jf;Ue.ContextConsumer=Xf;Ue.ContextProvider=Qf;Ue.Element=kg;Ue.ForwardRef=Zf;Ue.Fragment=Vf;Ue.Lazy=rd;Ue.Memo=td;Ue.Portal=Pg;Ue.Profiler=Yf;Ue.StrictMode=Kf;Ue.Suspense=ed;Ue.isAsyncMode=function(e){return tk(e)||Hr(e)===Tg};Ue.isConcurrentMode=tk;Ue.isContextConsumer=function(e){return Hr(e)===Xf};Ue.isContextProvider=function(e){return Hr(e)===Qf};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kg};Ue.isForwardRef=function(e){return Hr(e)===Zf};Ue.isFragment=function(e){return Hr(e)===Vf};Ue.isLazy=function(e){return Hr(e)===rd};Ue.isMemo=function(e){return Hr(e)===td};Ue.isPortal=function(e){return Hr(e)===Pg};Ue.isProfiler=function(e){return Hr(e)===Yf};Ue.isStrictMode=function(e){return Hr(e)===Kf};Ue.isSuspense=function(e){return Hr(e)===ed};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vf||e===Jf||e===Yf||e===Kf||e===ed||e===_z||typeof e=="object"&&e!==null&&(e.$$typeof===rd||e.$$typeof===td||e.$$typeof===Qf||e.$$typeof===Xf||e.$$typeof===Zf||e.$$typeof===Cz||e.$$typeof===Rz||e.$$typeof===kz||e.$$typeof===xz)};Ue.typeOf=Hr;ek.exports=Ue;var Pz=ek.exports,rk=Pz,Tz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ez={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nk={};nk[rk.ForwardRef]=Tz;nk[rk.Memo]=Ez;var qe={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Eg=Symbol.for("react.element"),Og=Symbol.for("react.portal"),nd=Symbol.for("react.fragment"),od=Symbol.for("react.strict_mode"),id=Symbol.for("react.profiler"),ad=Symbol.for("react.provider"),sd=Symbol.for("react.context"),Oz=Symbol.for("react.server_context"),ld=Symbol.for("react.forward_ref"),ud=Symbol.for("react.suspense"),cd=Symbol.for("react.suspense_list"),fd=Symbol.for("react.memo"),dd=Symbol.for("react.lazy"),Iz=Symbol.for("react.offscreen"),ok;ok=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eg:switch(e=e.type,e){case nd:case id:case od:case ud:case cd:return e;default:switch(e=e&&e.$$typeof,e){case Oz:case sd:case ld:case dd:case fd:case ad:return e;default:return t}}case Og:return t}}}qe.ContextConsumer=sd;qe.ContextProvider=ad;qe.Element=Eg;qe.ForwardRef=ld;qe.Fragment=nd;qe.Lazy=dd;qe.Memo=fd;qe.Portal=Og;qe.Profiler=id;qe.StrictMode=od;qe.Suspense=ud;qe.SuspenseList=cd;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return an(e)===sd};qe.isContextProvider=function(e){return an(e)===ad};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eg};qe.isForwardRef=function(e){return an(e)===ld};qe.isFragment=function(e){return an(e)===nd};qe.isLazy=function(e){return an(e)===dd};qe.isMemo=function(e){return an(e)===fd};qe.isPortal=function(e){return an(e)===Og};qe.isProfiler=function(e){return an(e)===id};qe.isStrictMode=function(e){return an(e)===od};qe.isSuspense=function(e){return an(e)===ud};qe.isSuspenseList=function(e){return an(e)===cd};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nd||e===id||e===od||e===ud||e===cd||e===Iz||typeof e=="object"&&e!==null&&(e.$$typeof===dd||e.$$typeof===fd||e.$$typeof===ad||e.$$typeof===sd||e.$$typeof===ld||e.$$typeof===ok||e.getModuleId!==void 0)};qe.typeOf=an;function jz(){const e=vz();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const Y1={notify(){},get:()=>[]};function zz(e,t){let r,n=Y1,o=0,i=!1;function a(g){f();const C=n.subscribe(g);let v=!1;return()=>{v||(v=!0,C(),d())}}function s(){n.notify()}function u(){S.onStateChange&&S.onStateChange()}function c(){return i}function f(){o++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=jz())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Y1)}function p(){i||(i=!0,f())}function y(){i&&(i=!1,d())}const S={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>n};return S}const Nz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Az=Nz?N.useLayoutEffect:N.useEffect;function Mz({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=zz(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=N.useMemo(()=>e.getState(),[e]);Az(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const u=t||qo;return N.createElement(u.Provider,{value:a},r)}function ik(e=qo){const t=e===qo?JR:Rg(e);return function(){const{store:n}=t();return n}}const Lz=ik();function $z(e=qo){const t=e===qo?Lz:ik(e);return function(){return t().dispatch}}const Hl=$z();Sz(hz.useSyncExternalStoreWithSelector);mz(Wl.unstable_batchedUpdates);function gn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:Ig(e)?2:jg(e)?3:0}function Ca(e,t){return ns(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Dz(e,t){return ns(e)===2?e.get(t):e[t]}function ak(e,t,r){var n=ns(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function sk(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ig(e){return qz&&e instanceof Map}function jg(e){return Gz&&e instanceof Set}function ui(e){return e.o||e.t}function zg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=uk(e);delete t[tt];for(var r=Ra(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Fz),Object.freeze(e),t&&Ti(e,function(r,n){return Ng(n,!0)},!0)),e}function Fz(){gn(2)}function Ag(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dn(e){var t=rv[e];return t||gn(18,e),t}function Bz(e,t){rv[e]||(rv[e]=t)}function Zm(){return Cl}function tp(e,t){t&&(Dn("Patches"),e.u=[],e.s=[],e.v=t)}function Xc(e){ev(e),e.p.forEach(Wz),e.p=null}function ev(e){e===Cl&&(Cl=e.l)}function Q1(e){return Cl={p:[],l:Cl,h:e,m:!0,_:0}}function Wz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function rp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Dn("ES5").S(t,e,n),n?(r[tt].P&&(Xc(t),gn(4)),mo(e)&&(e=Jc(t,e),t.l||Zc(t,e)),t.u&&Dn("Patches").M(r[tt].t,e,t.u,t.s)):e=Jc(t,r,[]),Xc(t),t.u&&t.v(t.u,t.s),e!==lk?e:void 0}function Jc(e,t,r){if(Ag(t))return t;var n=t[tt];if(!n)return Ti(t,function(s,u){return X1(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Zc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=zg(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),Ti(i,function(s,u){return X1(e,n,o,s,u,r,a)}),Zc(e,o,!1),r&&e.u&&Dn("Patches").N(n,r,e.u,e.s)}return n.o}function X1(e,t,r,n,o,i,a){if(Go(o)){var s=Jc(e,o,i&&t&&t.i!==3&&!Ca(t.R,n)?i.concat(n):void 0);if(ak(r,n,s),!Go(s))return;e.m=!1}else a&&r.add(o);if(mo(o)&&!Ag(o)){if(!e.h.D&&e._<1)return;Jc(e,o),t&&t.A.l||Zc(e,o)}}function Zc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ng(t,r)}function np(e,t){var r=e[tt];return(r?ui(r):e)[t]}function J1(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ko(e){e.P||(e.P=!0,e.l&&ko(e.l))}function op(e){e.o||(e.o=zg(e.t))}function tv(e,t,r){var n=Ig(t)?Dn("MapSet").F(t,r):jg(t)?Dn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Zm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=Rl;a&&(u=[s],c=Ls);var f=Proxy.revocable(u,c),d=f.revoke,p=f.proxy;return s.k=p,s.j=d,p}(t,r):Dn("ES5").J(t,r);return(r?r.A:Zm()).p.push(n),n}function Uz(e){return Go(e)||gn(22,e),function t(r){if(!mo(r))return r;var n,o=r[tt],i=ns(r);if(o){if(!o.P&&(o.i<4||!Dn("ES5").K(o)))return o.t;o.I=!0,n=Z1(r,i),o.I=!1}else n=Z1(r,i);return Ti(n,function(a,s){o&&Dz(o.t,a)===s||ak(n,a,t(s))}),i===3?new Set(n):n}(e)}function Z1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zg(e)}function Hz(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var u=this[tt];return Rl.get(u,i)},set:function(u){var c=this[tt];Rl.set(c,i,u)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][tt];if(!s.P)switch(s.i){case 5:n(s)&&ko(s);break;case 4:r(s)&&ko(s)}}}function r(i){for(var a=i.t,s=i.k,u=Ra(s),c=u.length-1;c>=0;c--){var f=u[c];if(f!==tt){var d=a[f];if(d===void 0&&!Ca(a,f))return!0;var p=s[f],y=p&&p[tt];if(y?y.t!==d:!sk(p,d))return!0}}var S=!!a[tt];return u.length!==Ra(a).length+(S?0:1)}function n(i){var a=i.k;if(a.length!==i.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),_=1;_1?f-1:0),p=1;p=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Dn("Patches").$;return Go(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Br=new Kz,ck=Br.produce;Br.produceWithPatches.bind(Br);Br.setAutoFreeze.bind(Br);Br.setUseProxies.bind(Br);Br.applyPatches.bind(Br);Br.createDraft.bind(Br);Br.finishDraft.bind(Br);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function Yz(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fk(e){var t=Yz(e,"string");return $a(t)=="symbol"?t:String(t)}function F(e,t,r){return t=fk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nb(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 ob(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(er(1));return r(Lg)(e,t)}if(typeof e!="function")throw new Error(er(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function f(){if(u)throw new Error(er(3));return i}function d(g){if(typeof g!="function")throw new Error(er(4));if(u)throw new Error(er(5));var C=!0;return c(),s.push(g),function(){if(C){if(u)throw new Error(er(6));C=!1,c();var b=s.indexOf(g);s.splice(b,1),a=null}}}function p(g){if(!Qz(g))throw new Error(er(7));if(typeof g.type>"u")throw new Error(er(8));if(u)throw new Error(er(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var C=a=s,v=0;v"u")throw new Error(er(12));if(typeof r(void 0,{type:ef.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(er(13))})}function dk(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(er(14));d[y]=C,f=f||C!==g}return f=f||i.length!==Object.keys(u).length,f?d:u}}function tf(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return rf}function o(s,u){n(s)===rf&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var tN=function(t,r){return t===r};function rN(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,i=0;i1?t-1:0),n=1;n0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]{let r=e.sessions.findIndex(n=>n.pin===t.payload.pin);r!==-1?e.sessions[r]=t.payload:e.sessions.push(t.payload),e.activeSessionPin=t.payload.pin},updateNodesInfoInCurrentSession:(e,t)=>{let r=e.sessions.findIndex(n=>n.pin===e.activeSessionPin);r!==-1&&(e.sessions[r].nodes=t.payload,t.payload.length>0&&(e.activeNodeId=t.payload[0].id))},setActiveSessionPin:(e,t)=>{e.activeSessionPin=t.payload,e.activeNodeId=""},setActiveNodeId:(e,t)=>{e.activeNodeId=t.payload},addOrUpdateNodeVersion:(e,t)=>{let r=e.nodeVersions.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeVersions[r]=t.payload:e.nodeVersions.push(t.payload)},addOrUpdateNodeFlags:(e,t)=>{let r=e.flags.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.flags[r]=t.payload:e.flags.push(t.payload)},addOrUpdateCmdLineArgs:(e,t)=>{let r=e.cmdLineArgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cmdLineArgs[r]=t.payload:e.cmdLineArgs.push(t.payload)},addOrUpdateNodeLogs:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);r!==-1?e.nodeLogs[r]=t.payload:e.nodeLogs.push(t.payload)},addOrUpdateSyncStages:(e,t)=>{let r=e.syncStages.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.syncStages[r]=t.payload:e.syncStages.push(t.payload)},setLogWithNameSelected:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);if(r!==-1){e.nodeLogs[r].logFiles.forEach(o=>{o.selected=!1});let n=e.nodeLogs[r].logFiles.findIndex(o=>o.name===t.payload);n!==-1&&(e.nodeLogs[r].logFiles[n].selected=!0)}},addOrUpdateDBs:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.dbs[r]=t.payload:e.dbs.push(t.payload)},addOrUpdateDBTable:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.dbs[r].dbs.findIndex(o=>o.path===t.payload.path);n!==-1?e.dbs[r].dbs[n].tables=t.payload.tables:e.dbs[r].dbs.push({path:t.payload.path,tables:t.payload.tables})}},addOrUpdateReorg:(e,t)=>{let r=e.reorgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.reorgs[r]=t.payload:e.reorgs.push(t.payload)},resetAppStateToMockState:e=>{e.sessions=[],e.activeSession=null,e.activeSessionPin="",e.activeNodeId="",e.nodeVersions=[],e.flags=[],e.cmdLineArgs=[],e.nodeLogs=[],e.syncStages=[],e.dbs=[],e.reorgs=[]}}}),{addOrUpdateSession:jN,updateNodesInfoInCurrentSession:zN,setActiveSessionPin:NN,setActiveNodeId:AN,addOrUpdateNodeVersion:MN,addOrUpdateNodeFlags:LN,addOrUpdateCmdLineArgs:$N,addOrUpdateNodeLogs:DN,addOrUpdateSyncStages:FN,setLogWithNameSelected:BN,addOrUpdateDBs:WN,addOrUpdateDBTable:UN,addOrUpdateReorg:HN,resetAppStateToMockState:qN}=gk.actions,yk=e=>e.app.sessions,Dg=e=>e.app.activeSessionPin,Rt=e=>e.app.activeNodeId,Sk=e=>e.app.nodeVersions,GN=e=>e.app.flags,VN=e=>e.app.cmdLineArgs,KN=e=>e.app.nodeLogs,YN=e=>e.app.syncStages,QN=e=>e.app.dbs,XN=e=>e.app.reorgs,bk=He([yk,Dg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Fg=He([bk],e=>{let t=[];return e!=null&&(t=e.nodes),t}),JN=He([yk,Dg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),ZN=He([Fg,Rt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),eA=He([Fg,Rt,Sk],(e,t,r)=>{let n=null;return e.forEach(o=>{if(o.id===t){let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n={active:!0,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""}}}),n}),tA=He([Fg,Rt,Sk],(e,t,r)=>{let n=[];return e.forEach(o=>{let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n.push({active:o.id===t,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""})}),n}),rA=He([GN,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),nA=He([VN,Rt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),oA=He([KN,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),iA=He([YN,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),wk=He([QN,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),aA=He([XN,Rt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),sA=gk.reducer,Ps=({tab:e,selectedTab:t,testId:r,onButtonClicked:n})=>{const o=i=>{let a="px-4 py-2 text-sm font-medium border-blue-600 hover:bg-blue-700 hover:text-white";const s="bg-blue-600 text-white",u="bg-white text-blue-600 outline-top",c="border-l border-r border-t border-b rounded-tl-md rounded-bl-md",f="border-r border-t border-b rounded-tr-md rounded-br-md",d="border-r border-t border-b";return i===dv.Command?a=a+" "+c:i===dv.Reorgs?a=a+" "+f:a=a+" "+d,i===t?a+" "+s:a+" "+u};return m.jsx("button",{className:o(e),onClick:()=>{n(e)},"data-testid":r,children:e})},lA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),uA=({flag:e})=>{function t(o){return o&&typeof o=="object"&&o.constructor===Array}const r=o=>t(o)?n(o):m.jsx("td",{className:"px-4 py-2",children:String(o)}),n=o=>m.jsx(m.Fragment,{children:o.map(i=>m.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:m.jsx("td",{className:"px-4 py-2",children:i+""})},i))});return m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onMouseOver:o=>{const i=o.target,a=e.usage;a&&i.setAttribute("title",a)},children:[m.jsx("td",{className:"px-4 py-2",children:e.flag}),r(e.value),m.jsx("td",{className:"px-4 py-2",children:String(e.default)})]},e.flag)};var Bg={},_k={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(_k);var nt=_k.exports,lp={};function ro(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xk(e){if(!ro(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=xk(e[r])}),t}function Lr(e,t,r={clone:!0}){const n=r.clone?ne({},e):e;return ro(e)&&ro(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ro(t[o])&&o in e&&ro(e[o])?n[o]=Lr(e[o],t[o],r):r.clone?n[o]=ro(t[o])?xk(t[o]):t[o]:n[o]=t[o])}),n}var up={exports:{}},cp,fb;function cA(){if(fb)return cp;fb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cp=e,cp}var fp,db;function fA(){if(db)return fp;db=1;var e=cA();function t(){}function r(){}return r.resetWarningCache=t,fp=function(){function n(a,s,u,c,f,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},fp}var hb;function Ck(){return hb||(hb=1,up.exports=fA()()),up.exports}Ck();function Fa(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function hA(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function pA(e,t){return()=>null}function mA(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Rk(e){return e&&e.ownerDocument||document}function vA(e){return Rk(e).defaultView||window}function gA(e,t){return()=>null}function kk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const yA=typeof window<"u"?N.useLayoutEffect:N.useEffect,Pk=yA;let pb=0;function SA(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(pb+=1,r(`mui-${pb}`))},[t]),n}const mb=Ea["useId".toString()];function bA(e){if(mb!==void 0){const t=mb();return e??t}return SA(e)}function wA(e,t,r,n,o){return null}function Tk({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,a]=N.useState(t),s=o?e:i,u=N.useCallback(c=>{o||a(c)},[]);return[s,u]}function $s(e){const t=N.useRef(e);return Pk(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function ov(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{kk(r,t)})},e)}const vb={};function _A(e,t){const r=N.useRef(vb);return r.current===vb&&(r.current=e(t)),r}const xA=[];function CA(e){N.useEffect(e,xA)}class hd{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new hd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,r()},t)}}function RA(){const e=_A(hd.create).current;return CA(e.disposeEffect),e}let pd=!0,iv=!1;const kA=new hd,PA={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function TA(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&PA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function EA(e){e.metaKey||e.altKey||e.ctrlKey||(pd=!0)}function dp(){pd=!1}function OA(){this.visibilityState==="hidden"&&iv&&(pd=!0)}function IA(e){e.addEventListener("keydown",EA,!0),e.addEventListener("mousedown",dp,!0),e.addEventListener("pointerdown",dp,!0),e.addEventListener("touchstart",dp,!0),e.addEventListener("visibilitychange",OA,!0)}function jA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return pd||TA(t)}function Ek(){const e=N.useCallback(o=>{o!=null&&IA(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(iv=!0,kA.start(100,()=>{iv=!1}),t.current=!1,!0):!1}function n(o){return jA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Ok(e,t){const r=ne({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ne({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=ne({},i),Object.keys(o).forEach(a=>{r[n][a]=Ok(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function qn(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}const gb=e=>e,zA=()=>{let e=gb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gb}}},NA=zA(),Ik=NA,AA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function xn(e,t,r="Mui"){const n=AA[t];return n?`${r}-${n}`:`${Ik.generate(e)}-${t}`}function Gn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=xn(e,o,r)}),n}function MA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function jk(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t0?Dt(os,--kr):0,Ba--,wt===10&&(Ba=1,vd--),wt}function $r(){return wt=kr2||Pl(wt)>3?"":" "}function JA(e,t){for(;--t&&$r()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Gl(e,lc()+(t<6&&Fn()==32&&$r()==32))}function sv(e){for(;$r();)switch(wt){case e:return kr;case 34:case 39:e!==34&&e!==39&&sv(wt);break;case 40:e===41&&sv(e);break;case 92:$r();break}return kr}function ZA(e,t){for(;$r()&&e+wt!==47+10;)if(e+wt===42+42&&Fn()===47)break;return"/*"+Gl(t,kr-1)+"*"+md(e===47?e:$r())}function eM(e){for(;!Pl(Fn());)$r();return Gl(e,kr)}function tM(e){return Dk(cc("",null,null,null,[""],e=$k(e),0,[0],e))}function cc(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,d=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,_="",k=o,T=i,E=n,x=_;C;)switch(S=b,b=$r()){case 40:if(S!=108&&Dt(x,d-1)==58){av(x+=Me(uc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=uc(b);break;case 9:case 10:case 13:case 32:x+=XA(S);break;case 92:x+=JA(lc()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Mu(rM(ZA($r(),lc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=jn(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:v==-1&&(x=Me(x,/\f/g,"")),y>0&&jn(x)-d&&Mu(y>32?Sb(x+";",n,r,d-1):Sb(Me(x," ","")+";",n,r,d-2),u);break;case 59:x+=";";default:if(Mu(E=yb(x,t,r,c,f,o,s,_,k=[],T=[],d),i),b===123)if(f===0)cc(x,t,E,E,k,i,d,s,T);else switch(p===99&&Dt(x,3)===110?100:p){case 100:case 108:case 109:case 115:cc(e,E,E,n&&Mu(yb(e,E,E,0,0,o,s,_,o,k=[],d),T),o,T,d,s,n?k:T);break;default:cc(x,E,E,E,[""],T,0,s,T)}}c=f=y=0,g=v=1,_=x="",d=a;break;case 58:d=1+jn(x),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&QA()==125)continue}switch(x+=md(b),b*g){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[c++]=(jn(x)-1)*v,v=1;break;case 64:Fn()===45&&(x+=uc($r())),p=Fn(),f=d=jn(_=x+=eM(lc())),b++;break;case 45:S===45&&jn(x)==2&&(g=0)}}return i}function yb(e,t,r,n,o,i,a,s,u,c,f){for(var d=o-1,p=o===0?i:[""],y=Hg(p),S=0,g=0,C=0;S0?p[v]+" "+b:Me(b,/&\f/g,p[v])))&&(u[C++]=_);return gd(e,t,r,o===0?Wg:s,u,c,f)}function rM(e,t,r){return gd(e,t,r,Nk,md(YA()),kl(e,2,-2),0)}function Sb(e,t,r,n){return gd(e,t,r,Ug,kl(e,0,n),kl(e,n+1,-1),n)}function ka(e,t){for(var r="",n=Hg(e),o=0;o6)switch(Dt(e,t+1)){case 109:if(Dt(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+nf+(Dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~av(e,"stretch")?Fk(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dt(e,t+1)!==115)break;case 6444:switch(Dt(e,jn(e)-3-(~av(e,"!important")&&10))){case 107:return Me(e,":",":"+Ne)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Dt(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Jt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Jt+e+e}return e}var fM=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ug:t.return=Fk(t.value,t.length);break;case Ak:return ka([Ts(t,{value:Me(t.value,"@","@"+Ne)})],o);case Wg:if(t.length)return KA(t.props,function(i){switch(VA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ka([Ts(t,{props:[Me(i,/:(read-\w+)/,":"+nf+"$1")]})],o);case"::placeholder":return ka([Ts(t,{props:[Me(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),Ts(t,{props:[Me(i,/:(plac\w+)/,":"+nf+"$1")]}),Ts(t,{props:[Me(i,/:(plac\w+)/,Jt+"input-$1")]})],o)}return""})}},dM=[fM],hM=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||dM,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},SM=/[A-Z]|^ms/g,bM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wk=function(t){return t.charCodeAt(1)===45},wb=function(t){return t!=null&&typeof t!="boolean"},hp=zk(function(e){return Wk(e)?e:e.replace(SM,"-$&").toLowerCase()}),_b=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bM,function(n,o,i){return zn={name:o,styles:i,next:zn},o})}return yM[t]!==1&&!Wk(t)&&typeof r=="number"&&r!==0?r+"px":r};function Tl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return zn={name:r.name,styles:r.styles,next:zn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)zn={name:n.name,styles:n.styles,next:zn},n=n.next;var o=r.styles+";";return o}return wM(e,t,r)}case"function":{if(e!==void 0){var i=zn,a=r(e);return zn=i,Tl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function wM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?PM:TM},Rb=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},EM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Bk(r,n,o),CM(function(){return vM(r,n,o)}),null},OM=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=Rb(t,r,n),u=s||Cb(o),c=!u("as");return function(){var f=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{d.push(f[0][0]);for(var p=f.length,y=1;y{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},NM=["values","unit","step"],AM=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>ne({},r,{[n.key]:n.val}),{})};function MM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ft(e,NM),i=AM(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,y){const S=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(S!==-1&&typeof t[a[S]]=="number"?t[a[S]]:y)-n/100}${r})`}function f(p){return a.indexOf(p)+1`@media (min-width:${Gg[e]}px)`};function wn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||kb;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||kb;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Gg).indexOf(s)!==-1){const u=i.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function Gk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Vk(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function DM(e,...t){const r=Gk(e),n=[r,...t].reduce((o,i)=>Lr(o,i),{});return Vk(Object.keys(r),n)}function FM(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i{e[o]!=null&&(r[o]=!0)}),r}function pp({values:e,breakpoints:t,base:r}){const n=r||FM(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,u)=>(Array.isArray(e)?(a[s]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function yd(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function of(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=yd(e,r)||n,t&&(o=t(o,n,e)),o}function vt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,c=yd(u,n)||{};return wn(a,s,d=>{let p=of(c,o,d);return d===p&&typeof d=="string"&&(p=of(c,o,`${t}${d==="default"?"":We(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function BM(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const WM={m:"margin",p:"padding"},UM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},HM=BM(e=>{if(e.length>2)if(Pb[e])e=Pb[e];else return[e];const[t,r]=e.split(""),n=WM[t],o=UM[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Vg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vg,...Kg];function Vl(e,t,r,n){var o;const i=(o=yd(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Yg(e){return Vl(e,"spacing",8)}function Ei(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function qM(e,t){return r=>e.reduce((n,o)=>(n[o]=Ei(t,r),n),{})}function GM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=HM(r),i=qM(o,n),a=e[r];return wn(e,a,i)}function Kk(e,t){const r=Yg(e.theme);return Object.keys(e).map(n=>GM(e,t,n,r)).reduce(el,{})}function lt(e){return Kk(e,Vg)}lt.propTypes={};lt.filterProps=Vg;function ut(e){return Kk(e,Kg)}ut.propTypes={};ut.filterProps=Kg;function VM(e=8){if(e.mui)return e;const t=Yg({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Sd(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?el(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Xr(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return vt({prop:e,themeKey:"borders",transform:t})}const KM=sn("border",Xr),YM=sn("borderTop",Xr),QM=sn("borderRight",Xr),XM=sn("borderBottom",Xr),JM=sn("borderLeft",Xr),ZM=sn("borderColor"),eL=sn("borderTopColor"),tL=sn("borderRightColor"),rL=sn("borderBottomColor"),nL=sn("borderLeftColor"),oL=sn("outline",Xr),iL=sn("outlineColor"),bd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ei(t,n)});return wn(e,e.borderRadius,r)}return null};bd.propTypes={};bd.filterProps=["borderRadius"];Sd(KM,YM,QM,XM,JM,ZM,eL,tL,rL,nL,bd,oL,iL);const wd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({gap:Ei(t,n)});return wn(e,e.gap,r)}return null};wd.propTypes={};wd.filterProps=["gap"];const _d=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({columnGap:Ei(t,n)});return wn(e,e.columnGap,r)}return null};_d.propTypes={};_d.filterProps=["columnGap"];const xd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vl(e.theme,"spacing",8),r=n=>({rowGap:Ei(t,n)});return wn(e,e.rowGap,r)}return null};xd.propTypes={};xd.filterProps=["rowGap"];const aL=vt({prop:"gridColumn"}),sL=vt({prop:"gridRow"}),lL=vt({prop:"gridAutoFlow"}),uL=vt({prop:"gridAutoColumns"}),cL=vt({prop:"gridAutoRows"}),fL=vt({prop:"gridTemplateColumns"}),dL=vt({prop:"gridTemplateRows"}),hL=vt({prop:"gridTemplateAreas"}),pL=vt({prop:"gridArea"});Sd(wd,_d,xd,aL,sL,lL,uL,cL,fL,dL,hL,pL);function Pa(e,t){return t==="grey"?t:e}const mL=vt({prop:"color",themeKey:"palette",transform:Pa}),vL=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pa}),gL=vt({prop:"backgroundColor",themeKey:"palette",transform:Pa});Sd(mL,vL,gL);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const yL=vt({prop:"width",transform:Nr}),Qg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Gg[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Nr(r)}};return wn(e,e.maxWidth,t)}return null};Qg.filterProps=["maxWidth"];const SL=vt({prop:"minWidth",transform:Nr}),bL=vt({prop:"height",transform:Nr}),wL=vt({prop:"maxHeight",transform:Nr}),_L=vt({prop:"minHeight",transform:Nr});vt({prop:"size",cssProperty:"width",transform:Nr});vt({prop:"size",cssProperty:"height",transform:Nr});const xL=vt({prop:"boxSizing"});Sd(yL,Qg,SL,bL,wL,_L,xL);const CL={border:{themeKey:"borders",transform:Xr},borderTop:{themeKey:"borders",transform:Xr},borderRight:{themeKey:"borders",transform:Xr},borderBottom:{themeKey:"borders",transform:Xr},borderLeft:{themeKey:"borders",transform:Xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bd},color:{themeKey:"palette",transform:Pa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pa},backgroundColor:{themeKey:"palette",transform:Pa},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wd},rowGap:{style:xd},columnGap:{style:_d},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:Qg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cd=CL;function RL(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function kL(e,t){return typeof e=="function"?e(t):e}function PL(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:f,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=yd(o,c)||{};return d?d(a):wn(a,n,S=>{let g=of(p,f,S);return S===g&&typeof S=="string"&&(g=of(p,f,`${r}${S==="default"?"":We(S)}`,S)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:Cd;function s(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const f=Gk(i.breakpoints),d=Object.keys(f);let p=f;return Object.keys(c).forEach(y=>{const S=kL(c[y],i);if(S!=null)if(typeof S=="object")if(a[y])p=el(p,e(y,S,i,a));else{const g=wn({theme:i},S,C=>({[y]:C}));RL(g,S)?p[y]=t({sx:S,theme:i}):p=el(p,g)}else p=el(p,e(y,S,i,a))}),Vk(d,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Yk=PL();Yk.filterProps=["sx"];const Xg=Yk;function TL(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const EL=["breakpoints","palette","spacing","shape"];function Rd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=ft(e,EL),s=MM(r),u=VM(o);let c=Lr({breakpoints:s,direction:"ltr",components:{},palette:ne({mode:"light"},n),spacing:u,shape:ne({},$M,i)},a);return c.applyStyles=TL,c=t.reduce((f,d)=>Lr(f,d),c),c.unstable_sxConfig=ne({},Cd,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Xg({sx:d,theme:this})},c}function OL(e){return Object.keys(e).length===0}function IL(e=null){const t=N.useContext(qk);return!t||OL(t)?e:t}const jL=Rd();function zL(e=jL){return IL(e)}const NL=["sx"],AL=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Cd;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Qk(e){const{sx:t}=e,r=ft(e,NL),{systemProps:n,otherProps:o}=AL(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return ro(s)?ne({},n,s):n}:i=ne({},n,t),ne({},o,{sx:i})}const ML=["variant"];function Tb(e){return e.length===0}function Xk(e){const{variant:t}=e,r=ft(e,ML);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=Tb(n)?e[o]:We(e[o]):n+=`${Tb(n)?o:We(o)}${We(e[o].toString())}`}),n}const LL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $L(e){return Object.keys(e).length===0}function DL(e){return typeof e=="string"&&e.charCodeAt(0)>96}const FL=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,af=e=>{let t=0;const r={};return e&&e.forEach(n=>{let o="";typeof n.props=="function"?(o=`callback${t}`,t+=1):o=Xk(n.props),r[o]=n.style}),r},BL=(e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),af(r)},sf=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let i=0;return r&&r.forEach(a=>{let s=!0;if(typeof a.props=="function"){const u=ne({},e,n);s=a.props(u)}else Object.keys(a.props).forEach(u=>{n[u]!==a.props[u]&&e[u]!==a.props[u]&&(s=!1)});s&&(typeof a.props=="function"?o.push(t[`callback${i}`]):o.push(t[Xk(a.props)])),typeof a.props=="function"&&(i+=1)}),o},WL=(e,t,r,n)=>{var o;const i=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return sf(e,t,i)};function fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const UL=Rd(),HL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dc({defaultTheme:e,theme:t,themeId:r}){return $L(t)?e:t[r]||t}function qL(e){return e?(t,r)=>r[e]:null}const Eb=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(ne({},t,{theme:dc(ne({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const a=sf(t,af(i),i);return[o,...a]}return o};function Jk(e={}){const{themeId:t,defaultTheme:r=UL,rootShouldForwardProp:n=fc,slotShouldForwardProp:o=fc}=e,i=a=>Xg(ne({},a,{theme:dc(ne({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{zM(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:f,skipSx:d,overridesResolver:p=qL(HL(c))}=s,y=ft(s,LL),S=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=d||!1;let C,v=fc;c==="Root"||c==="root"?v=n:c?v=o:DL(a)&&(v=void 0);const b=jM(a,ne({shouldForwardProp:v,label:C},y)),_=(k,...T)=>{const E=T?T.map(j=>{if(typeof j=="function"&&j.__emotion_real!==j)return M=>Eb({styledArg:j,props:M,defaultTheme:r,themeId:t});if(ro(j)){let M=j,B;return j&&j.variants&&(B=j.variants,delete M.variants,M=$=>{let D=j;return sf($,af(B),B).forEach(ie=>{D=Lr(D,ie)}),D}),M}return j}):[];let x=k;if(ro(k)){let j;k&&k.variants&&(j=k.variants,delete x.variants,x=M=>{let B=k;return sf(M,af(j),j).forEach(D=>{B=Lr(B,D)}),B})}else typeof k=="function"&&k.__emotion_real!==k&&(x=j=>Eb({styledArg:k,props:j,defaultTheme:r,themeId:t}));u&&p&&E.push(j=>{const M=dc(ne({},j,{defaultTheme:r,themeId:t})),B=FL(u,M);if(B){const $={};return Object.entries(B).forEach(([D,Z])=>{$[D]=typeof Z=="function"?Z(ne({},j,{theme:M})):Z}),p(j,$)}return null}),u&&!S&&E.push(j=>{const M=dc(ne({},j,{defaultTheme:r,themeId:t}));return WL(j,BL(u,M),M,u)}),g||E.push(i);const O=E.length-T.length;if(Array.isArray(k)&&O>0){const j=new Array(O).fill("");x=[...k,...j],x.raw=[...k.raw,...j]}const I=b(x,...E);return a.muiName&&(I.muiName=a.muiName),I};return b.withConfig&&(_.withConfig=b.withConfig),_}}const GL=Jk(),VL=GL;function KL(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ok(t.components[r].defaultProps,n)}function Zk({props:e,name:t,defaultTheme:r,themeId:n}){let o=zL(r);return n&&(o=o[n]||o),KL({theme:o,name:t,props:e})}function Jg(e,t=0,r=1){return MA(e,t,r)}function YL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Oi(e){if(e.type)return e;if(e.charAt(0)==="#")return Oi(YL(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Fa(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Fa(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function kd(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function QL(e){e=Oi(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,f=(c+r/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),kd({type:s,values:u})}function Ob(e){e=Oi(e);let t=e.type==="hsl"||e.type==="hsla"?Oi(QL(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function XL(e,t){const r=Ob(e),n=Ob(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Wa(e,t){return e=Oi(e),t=Jg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kd(e)}function lf(e,t){if(e=Oi(e),t=Jg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return kd(e)}function uf(e,t){if(e=Oi(e),t=Jg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return kd(e)}const JL=["component","direction","spacing","divider","children","className","useFlexGap"],ZL=Rd(),e3=VL("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function t3(e){return Zk({props:e,name:"MuiStack",defaultTheme:ZL})}function r3(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],o3=({ownerState:e,theme:t})=>{let r=ne({display:"flex",flexDirection:"column"},wn({theme:t},pp({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Yg(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),i=pp({values:e.direction,base:o}),a=pp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,c,f)=>{if(!i[u]){const p=c>0?i[f[c-1]]:"column";i[u]=p}}),r=Lr(r,wn({theme:t},a,(u,c)=>e.useFlexGap?{gap:Ei(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${n3(c?i[c]:e.direction)}`]:Ei(n,u)}}))}return r=DM(t.breakpoints,r),r};function i3(e={}){const{createStyledComponent:t=e3,useThemeProps:r=t3,componentName:n="MuiStack"}=e,o=()=>qn({root:["root"]},u=>xn(n,u),{}),i=t(o3);return N.forwardRef(function(u,c){const f=r(u),d=Qk(f),{component:p="div",direction:y="column",spacing:S=0,divider:g,children:C,className:v,useFlexGap:b=!1}=d,_=ft(d,JL),k={direction:y,spacing:S,useFlexGap:b},T=o();return m.jsx(i,ne({as:p,ownerState:k,ref:c,className:bt(T.root,v)},_,{children:g?r3(C,g):C}))})}function a3(e,t){return ne({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const s3={black:"#000",white:"#fff"},El=s3,l3={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"},u3=l3,c3={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Yi=c3,f3={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qi=f3,d3={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Es=d3,h3={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Xi=h3,p3={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ji=p3,m3={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Zi=m3,v3=["mode","contrastThreshold","tonalOffset"],Ib={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:El.white,default:El.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},mp={text:{primary:El.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:El.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function jb(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=uf(e.main,o):t==="dark"&&(e.dark=lf(e.main,i)))}function g3(e="light"){return e==="dark"?{main:Xi[200],light:Xi[50],dark:Xi[400]}:{main:Xi[700],light:Xi[400],dark:Xi[800]}}function y3(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function S3(e="light"){return e==="dark"?{main:Qi[500],light:Qi[300],dark:Qi[700]}:{main:Qi[700],light:Qi[400],dark:Qi[800]}}function b3(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[500],dark:Ji[900]}}function w3(e="light"){return e==="dark"?{main:Zi[400],light:Zi[300],dark:Zi[700]}:{main:Zi[800],light:Zi[500],dark:Zi[900]}}function _3(e="light"){return e==="dark"?{main:Es[400],light:Es[300],dark:Es[700]}:{main:"#ed6c02",light:Es[500],dark:Es[900]}}function x3(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ft(e,v3),i=e.primary||g3(t),a=e.secondary||y3(t),s=e.error||S3(t),u=e.info||b3(t),c=e.success||w3(t),f=e.warning||_3(t);function d(g){return XL(g,mp.text.primary)>=r?mp.text.primary:Ib.text.primary}const p=({color:g,name:C,mainShade:v=500,lightShade:b=300,darkShade:_=700})=>{if(g=ne({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Fa(11,C?` (${C})`:"",v));if(typeof g.main!="string")throw new Error(Fa(12,C?` (${C})`:"",JSON.stringify(g.main)));return jb(g,"light",b,n),jb(g,"dark",_,n),g.contrastText||(g.contrastText=d(g.main)),g},y={dark:mp,light:Ib};return Lr(ne({common:ne({},El),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:u3,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},y[t]),o)}const C3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function R3(e){return Math.round(e*1e5)/1e5}const zb={textTransform:"uppercase"},Nb='"Roboto", "Helvetica", "Arial", sans-serif';function k3(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Nb,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:f,pxToRem:d}=r,p=ft(r,C3),y=o/14,S=d||(v=>`${v/c*y}rem`),g=(v,b,_,k,T)=>ne({fontFamily:n,fontWeight:v,fontSize:S(b),lineHeight:_},n===Nb?{letterSpacing:`${R3(k/b)}em`}:{},T,f),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,zb),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,zb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lr(ne({htmlFontSize:c,pxToRem:S,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},C),p,{clone:!1})}const P3=.2,T3=.14,E3=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${P3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${T3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${E3})`].join(",")}const O3=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],I3=O3,j3=["duration","easing","delay"],z3={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)"},N3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ab(e){return`${Math.round(e)}ms`}function A3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function M3(e){const t=ne({},z3,e.easing),r=ne({},N3,e.duration);return ne({getAutoHeightDuration:A3,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return ft(i,j3),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:Ab(a)} ${s} ${typeof u=="string"?u:Ab(u)}`).join(",")}},e,{easing:t,duration:r})}const L3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$3=L3,D3=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F3(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=ft(e,D3);if(e.vars)throw new Error(Fa(18));const s=x3(n),u=Rd(e);let c=Lr(u,{mixins:a3(u.breakpoints,r),palette:s,shadows:I3.slice(),typography:k3(s,i),transitions:M3(o),zIndex:ne({},$3)});return c=Lr(c,a),c=t.reduce((f,d)=>Lr(f,d),c),c.unstable_sxConfig=ne({},Cd,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Xg({sx:d,theme:this})},c}const B3=F3(),eP=B3,tP="$$material";function Vn({props:e,name:t}){return Zk({props:e,name:t,defaultTheme:eP,themeId:tP})}const rP=e=>fc(e)&&e!=="classes",W3=Jk({themeId:tP,defaultTheme:eP,rootShouldForwardProp:rP}),kt=W3;function U3(e){return xn("MuiSvgIcon",e)}Gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const H3=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],q3=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${We(t)}`,`fontSize${We(r)}`]};return qn(o,U3,n)},G3=kt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${We(r.color)}`],t[`fontSize${We(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,f,d,p,y,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),nP=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,y=ft(n,H3),S=N.isValidElement(o)&&o.type==="svg",g=ne({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:S}),C={};f||(C.viewBox=p);const v=q3(g);return m.jsxs(G3,ne({as:s,className:bt(v.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},C,y,S&&o.props,{ownerState:g,children:[S?o.props.children:o,d?m.jsx("title",{children:d}):null]}))});nP.muiName="SvgIcon";const Mb=nP;function is(e,t){function r(n,o){return m.jsx(Mb,ne({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Mb.muiName,N.memo(N.forwardRef(r))}const V3={configure:e=>{Ik.configure(e)}},K3=Object.freeze(Object.defineProperty({__proto__:null,capitalize:We,createChainedFunction:dA,createSvgIcon:is,debounce:hA,deprecatedPropType:pA,isMuiElement:mA,ownerDocument:Rk,ownerWindow:vA,requirePropFactory:gA,setRef:kk,unstable_ClassNameGenerator:V3,unstable_useEnhancedEffect:Pk,unstable_useId:bA,unsupportedProp:wA,useControlled:Tk,useEventCallback:$s,useForkRef:ov,useIsFocusVisible:Ek},Symbol.toStringTag,{value:"Module"})),Y3=Ja(K3);var Lb;function ot(){return Lb||(Lb=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Y3}(lp)),lp}var Q3=nt;Object.defineProperty(Bg,"__esModule",{value:!0});var Kl=Bg.default=void 0,X3=Q3(ot()),J3=m;Kl=Bg.default=(0,X3.default)((0,J3.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var Zg={},Z3=nt;Object.defineProperty(Zg,"__esModule",{value:!0});var Yl=Zg.default=void 0,e4=Z3(ot()),t4=m;Yl=Zg.default=(0,e4.default)((0,t4.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var ey={},r4=nt;Object.defineProperty(ey,"__esModule",{value:!0});var Ql=ey.default=void 0,n4=r4(ot()),o4=m;Ql=ey.default=(0,n4.default)((0,o4.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");const i4=({flags:e})=>{const[t,r]=se.useState(!1),[n,o]=se.useState([]),[i,a]=se.useState(!0);N.useEffect(()=>{const d=s(e);o(d)},[e]);const s=d=>d===void 0?[]:d.filter(y=>y.value!==void 0&&y.value!==""&&y.value!==null).sort((y,S)=>y.flag.localeCompare(y.flag)),u=(d,p)=>{if(p==="default"){let y=[];return i?y=d.sort((S,g)=>S.default>g.default?1:-1):y=d.sort((S,g)=>S.defaulty.flag.localeCompare(S.flag)):d},c=()=>{const d=u(n,"default");o(d),a(!i),r(!0)},f=()=>t?i?m.jsx(Kl,{}):m.jsx(Yl,{}):m.jsx(Ql,{className:"ml-2"});return m.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Flag"}),m.jsx("th",{className:"px-4 py-2",children:"Value"}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:c,children:m.jsxs("div",{className:"flex flex-row",children:["Default",f()]})})]})}),m.jsx("tbody",{children:n.map(d=>m.jsx(uA,{flag:d}))})]})},a4=({flags:e})=>{const[t,r]=N.useState([]);return N.useEffect(()=>{e!==void 0&&r(e)},[e]),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("input",{type:"text",className:"border-2 border-gray-300 rounded-lg p-2 mb-2",placeholder:"Search",onChange:n=>{const o=e==null?void 0:e.filter(a=>a.flag.toLowerCase().includes(n.target.value.toLowerCase())),i=e==null?void 0:e.filter(a=>a.usage.toLowerCase().includes(n.target.value.toLowerCase()));r([...o,...i])}}),m.jsx(i4,{flags:t})]})},s4=({nodeInfo:e,onRowClicked:t})=>{const n=(i,a)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",onClick:()=>{t(i,String(a))},children:[m.jsxs("td",{className:"px-4 py-2 font-bold",children:[i,":"]}),m.jsx("td",{className:"px-4 py-2",children:String(a).length>50?`${String(a).substring(0,50)}...`:a})]}),o=(i,a)=>{if(!i)return n(a,"null");let s=Object.keys(i);return m.jsxs("tr",{className:"border-b border-gray-200",children:[a.length>0?m.jsx("td",{className:"px-4 py-2 font-bold",children:a+":"}):null,s.map(u=>typeof i[u]=="object"?o(i[u],u):n(u,i[u]))]})};return m.jsx("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:m.jsx("tbody",{children:o(e,"")})})},l4=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(s4,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),u4=({syncStages:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:m.jsx("tbody",{children:e.map(t=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:[m.jsx("td",{className:"px-4 py-2",children:t.key}),m.jsx("td",{className:"px-4 py-2",children:t.value})]},t.key))})})}),c4=({reorg:e})=>e===void 0?null:m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"font-bold",children:"Blocks scanned:"}),m.jsx("span",{children:e.totalBlocks}),m.jsx("span",{className:"font-bold",children:"Time took:"}),m.jsx("span",{children:e.timeTook}),m.jsx("span",{className:"font-bold",children:"Wrong blocks:"}),e.wrongBlocks.length===0?m.jsx("span",{children:"None"}):m.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:m.jsx("tbody",{children:e.wrongBlocks.map(t=>m.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:m.jsx("td",{className:"px-4 py-2",children:t})},t))})})]}),as="#1ea7fd",Xl="red";const Un=({primary:e=!1,size:t="medium",backgroundColor:r,label:n,...o})=>{const i=e?"storybook-button--primary":"storybook-button--secondary";return m.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,i].join(" "),style:{backgroundColor:r},...o,children:n})},$b={isConnectedToInternet:!0,isConnectedToNode:!0},oP=ql({name:"app",initialState:$b,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>$b}}),{setIsConnectedToInternet:YH,setIsConnectedToNode:Db,resetConectionState:f4}=oP.actions,d4=oP.reducer,na={second:1e3,minute:6e4,hour:36e5},Fb={peers:[],bootnodes:[]},iP=ql({name:"network",initialState:Fb,reducers:{updatePeersState:(e,t)=>{const r=e.peers.findIndex(n=>n.nodeId===t.payload.activeNodeId);r!==-1&&e.peers[r].peers.forEach(n=>{if(n.lastUpdateTime0&&(a=o/t.payload.countInterval);let s=0;i>0&&(s=i/t.payload.countInterval);let u=n.network.bytesIn,c=n.network.bytesOut;n.network.inRate=a*8,n.network.outRate=s*8,n.network.sCountedBytesIn=u,n.network.sCountedBytesOut=c}})},addOrUpdatePeer:(e,t)=>{const r=t.payload.nodeId;let n=t.payload.peer;n.lastUpdateTime=Date.now();let o=e.peers.findIndex(i=>i.nodeId===r);if(o!==-1){let i=e.peers[o].peers.findIndex(a=>a.id===n.id);i!==-1?(n.network.inRate=e.peers[o].peers[i].network.inRate,n.network.outRate=e.peers[o].peers[i].network.outRate,n.network.sCountedBytesIn=e.peers[o].peers[i].network.sCountedBytesIn,n.network.sCountedBytesOut=e.peers[o].peers[i].network.sCountedBytesOut,n.network.bytesIn+=e.peers[o].peers[i].network.bytesIn,n.network.bytesOut+=e.peers[o].peers[i].network.bytesOut,Lu(e.peers[o].peers[i].network,n.network,"capBytesIn"),Lu(e.peers[o].peers[i].network,n.network,"capBytesOut"),Lu(e.peers[o].peers[i].network,n.network,"typeBytesIn"),Lu(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:()=>Fb}}),Lu=(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:h4,addOrUpdatePeer:p4,addOrUpdateBootnodes:m4,updatePeersState:v4}=iP.actions,g4=e=>e.network.peers,ty=He([g4,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),y4=()=>He([ty,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),Pd=He([ty,Rt],(e,t)=>aP(t,"Sentry",e)),Td=He([ty,Rt],(e,t)=>aP(t,"Sentinel",e)),aP=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},S4=He([Pd],e=>sP(e)),b4=He([Td],e=>sP(e)),sP=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},w4=He([Pd],e=>lP(e)),_4=He([Td],e=>lP(e)),lP=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},x4=He([Pd],e=>uP(e)),C4=He([Td],e=>uP(e)),uP=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},R4=iP.reducer,Bb={snapshotFilesList:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},cP=ql({name:"syncStages",initialState:Bb,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:()=>Bb}}),{setSnapshotFilesList:k4,resetSyncStagesState:QH,setSnapshotDownloadStatus:P4,setSnapshotIndexStatus:T4,setNodeSyncStages:E4,setTestSnpSyncMsgIdx:XH}=cP.actions,O4=e=>e.syncStages.snapshotDownloadStatus,Ed=He([O4,Rt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),I4=e=>e.syncStages.snapshotIndexStatus,fP=He([I4,Rt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),j4=e=>e.syncStages.syncStages,dP=He([j4,Rt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),z4=e=>e.syncStages.snapshotFilesList,N4=He([z4,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.files)}),r}),A4=He([N4],e=>(e==null?void 0:e.length)<=0),M4=cP.reducer;var uv=(e=>(e.SnapshotSegmentMissingPeers="SnapshotSegmentMissingPeers",e))(uv||{});const Wb={issues:[]},hP=ql({name:"issue",initialState:Wb,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:()=>Wb}}),{addOrUpdateIssue:Ub,resetIssueState:JH,removeIssueWithId:L4}=hP.actions,$4=e=>e.issues.issues,pP=He([$4,Rt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.issues)}),r}),D4=He([pP],e=>e.length>10?"9+":e.length.toString()),F4=hP.reducer;var ry="persist:",ny="persist/FLUSH",Od="persist/REHYDRATE",oy="persist/PAUSE",iy="persist/PERSIST",ay="persist/PURGE",sy="persist/REGISTER",B4=-1;function hc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hc=function(r){return typeof r}:hc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hc(e)}function Hb(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 W4(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z4(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 e$=5e3;function t$(e,t){var r=e.version!==void 0?e.version:B4;e.debug;var n=e.stateReconciler===void 0?H4:e.stateReconciler,o=e.getStoredState||V4,i=e.timeout!==void 0?e.timeout:e$,a=null,s=!1,u=!0,c=function(d){return d._persist.rehydrated&&a&&!u&&a.update(d),d};return function(f,d){var p=f||{},y=p._persist,S=J4(p,["_persist"]),g=S;if(d.type===iy){var C=!1,v=function(O,I){C||(d.rehydrate(e.key,O,I),C=!0)};if(i&&setTimeout(function(){!C&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,a||(a=q4(e)),y)return Xn({},t(g,d),{_persist:y});if(typeof d.rehydrate!="function"||typeof d.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 d.register(e.key),o(e).then(function(x){var O=e.migrate||function(I,j){return Promise.resolve(I)};O(x,r).then(function(I){v(I)},function(I){v(void 0,I)})},function(x){v(void 0,x)}),Xn({},t(g,d),{_persist:{version:r,rehydrated:!1}})}else{if(d.type===ay)return s=!0,d.result(Y4(e)),Xn({},t(g,d),{_persist:y});if(d.type===ny)return d.result(a&&a.flush()),Xn({},t(g,d),{_persist:y});if(d.type===oy)u=!0;else if(d.type===Od){if(s)return Xn({},g,{_persist:Xn({},y,{rehydrated:!0})});if(d.key===e.key){var b=t(g,d),_=d.payload,k=n!==!1&&_!==void 0?n(_,f,b,e):b,T=Xn({},k,{_persist:Xn({},y,{rehydrated:!0})});return c(T)}}}if(!y)return t(f,d);var E=t(g,d);return E===g?f:c(Xn({},E,{_persist:y}))}}function Gb(e){return o$(e)||n$(e)||r$()}function r$(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function n$(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function o$(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:mP,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case sy:return cv({},t,{registry:[].concat(Gb(t.registry),[r.key])});case Od:var n=t.registry.indexOf(r.key),o=Gb(t.registry);return o.splice(n,1),cv({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function s$(e,t,r){var n=r||!1,o=Lg(a$,mP,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:sy,key:c})},a=function(c,f,d){var p={type:Od,payload:f,err:d,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=cv({},o,{purge:function(){var c=[];return e.dispatch({type:ay,result:function(d){c.push(d)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:ny,result:function(d){c.push(d)}}),Promise.all(c)},pause:function(){e.dispatch({type:oy})},persist:function(){e.dispatch({type:iy,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var ly={},uy={};uy.__esModule=!0;uy.default=c$;function pc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pc=function(r){return typeof r}:pc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pc(e)}function vp(){}var l$={getItem:vp,setItem:vp,removeItem:vp};function u$(e){if((typeof self>"u"?"undefined":pc(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 c$(e){var t="".concat(e,"Storage");return u$(t)?self[t]:l$}ly.__esModule=!0;ly.default=h$;var f$=d$(uy);function d$(e){return e&&e.__esModule?e:{default:e}}function h$(e){var t=(0,f$.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 vP=void 0,p$=m$(ly);function m$(e){return e&&e.__esModule?e:{default:e}}var v$=(0,p$.default)("local");vP=v$;const g$={key:"root",blacklist:["connection"],storage:vP},y$=dk({app:sA,network:R4,connection:d4,syncStages:M4,issues:F4}),S$=t$(g$,y$),je=wN({reducer:S$,middleware:e=>e({serializableCheck:{ignoredActions:[ny,Od,oy,iy,ay,sy]}})}),b$=s$(je),w$="sessions",_$="nodes",x$="versions",C$="flags",R$="cmdline",k$="logs",P$="sync-stages",gP="dbs",T$="tables",E$="reorgs",O$="peers",I$="peers",j$=()=>je.getState().app.activeSessionPin,cy=()=>{const e=j$();return`http://localhost:8080/api/${w$}/${e}`},ln=()=>{const e=cy(),t=je.getState().app.activeNodeId;return`${e}/${_$}/${t}`},z$=()=>`${ln()}/${x$}`,yP=()=>`${ln()}/${C$}`,SP=()=>`${ln()}/${R$}`,bP=()=>`${ln()}/${k$}`,wP=()=>`${ln()}/${P$}`,N$=()=>`${ln()}/${gP}`,A$=e=>`${ln()}/${gP}/${e}/${T$}`,_P=()=>`${ln()}/${E$}`,M$=()=>`${ln()}/${O$}`,L$=()=>`${ln()}/${I$}`,$$=()=>`${ln()}/snapshot-sync`,D$=()=>`${ln()}/snapshot-files-list`,F$=()=>{{const e=Gr(cy(),"GET");return qr(e)}},B$=()=>{{const e=Gr(z$(),"GET");return qr(e)}},W$=()=>{{const e=Gr(yP(),"GET");return qr(e)}},U$=()=>{{const e=Gr(SP(),"GET");return qr(e)}},H$=()=>{{const e=Gr(bP(),"GET");return qr(e)}},q$=()=>{{const e=Gr(wP(),"GET");return qr(e)}},G$=()=>{{const e=Gr(N$(),"GET");return qr(e)}},V$=e=>{{const t=Gr(A$(e),"GET");return qr(t)}},K$=()=>{{const e=Gr(_P(),"GET");return qr(e)}},Y$=()=>{{const e=Gr(M$(),"GET");return qr(e)}},Q$=()=>{{const e=Gr(L$(),"GET");return qr(e)}},X$=()=>{{const e=Gr($$(),"GET");return qr(e)}},J$=()=>{{const e=Gr(D$(),"GET");return qr(e)}},qr=e=>fetch(e).then(t=>(je.dispatch(Db(!0)),t.json())).catch(t=>{je.dispatch(Db(!1))});function Gr(e,t,r){return new Request(e,{method:t,body:r})}var fy={},Z$=nt;Object.defineProperty(fy,"__esModule",{value:!0});var dy=fy.default=void 0,e5=Z$(ot()),t5=m;dy=fy.default=(0,e5.default)((0,t5.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var hy={},r5=nt;Object.defineProperty(hy,"__esModule",{value:!0});var Id=hy.default=void 0,n5=r5(ot()),o5=m;Id=hy.default=(0,n5.default)((0,o5.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const i5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Kb=i5;function a5(e){return xn("MuiPaper",e)}Gn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const s5=["className","component","elevation","square","variant"],l5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qn(i,a5,o)},u5=kt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return ne({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&ne({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wa("#fff",Kb(t.elevation))}, ${Wa("#fff",Kb(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),c5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=ft(n,s5),f=ne({},n,{component:i,elevation:a,square:s,variant:u}),d=l5(f);return m.jsx(u5,ne({as:i,ownerState:f,className:bt(d.root,o),ref:r},c))}),f5=c5;function d5(e){return xn("MuiAlert",e)}const h5=Gn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Yb=h5;function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},cf(e,t)}function p5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cf(e,t)}const Qb=se.createContext(null);function Q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function py(e,t){var r=function(i){return t&&N.isValidElement(i)?t(i):i},n=Object.create(null);return e&&N.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function m5(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(n[u])for(a=0;a{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),m.jsx("span",{className:p,style:y,children:m.jsx("span",{className:S})})}const _5=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kr=_5,x5=["center","classes","className"];let jd=e=>e,Xb,Jb,Zb,ew;const fv=550,C5=80,R5=qg(Xb||(Xb=jd` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),k5=qg(Jb||(Jb=jd` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),P5=qg(Zb||(Zb=jd` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),T5=kt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),E5=kt(w5,{name:"MuiTouchRipple",slot:"Ripple"})(ew||(ew=jd` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),Kr.rippleVisible,R5,fv,({theme:e})=>e.transitions.easing.easeInOut,Kr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Kr.child,Kr.childLeaving,k5,fv,({theme:e})=>e.transitions.easing.easeInOut,Kr.childPulsate,P5,({theme:e})=>e.transitions.easing.easeInOut),O5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=ft(n,x5),[u,c]=N.useState([]),f=N.useRef(0),d=N.useRef(null);N.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=N.useRef(!1),y=RA(),S=N.useRef(null),g=N.useRef(null),C=N.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:x,rippleSize:O,cb:I}=k;c(j=>[...j,m.jsx(E5,{classes:{ripple:bt(i.ripple,Kr.ripple),rippleVisible:bt(i.rippleVisible,Kr.rippleVisible),ripplePulsate:bt(i.ripplePulsate,Kr.ripplePulsate),child:bt(i.child,Kr.child),childLeaving:bt(i.childLeaving,Kr.childLeaving),childPulsate:bt(i.childPulsate,Kr.childPulsate)},timeout:fv,pulsate:T,rippleX:E,rippleY:x,rippleSize:O},f.current)]),f.current+=1,d.current=I},[i]),v=N.useCallback((k={},T={},E=()=>{})=>{const{pulsate:x=!1,center:O=o||T.pulsate,fakeElement:I=!1}=T;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const j=I?null:g.current,M=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,$,D;if(O||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)B=Math.round(M.width/2),$=Math.round(M.height/2);else{const{clientX:Z,clientY:ie}=k.touches&&k.touches.length>0?k.touches[0]:k;B=Math.round(Z-M.left),$=Math.round(ie-M.top)}if(O)D=Math.sqrt((2*M.width**2+M.height**2)/3),D%2===0&&(D+=1);else{const Z=Math.max(Math.abs((j?j.clientWidth:0)-B),B)*2+2,ie=Math.max(Math.abs((j?j.clientHeight:0)-$),$)*2+2;D=Math.sqrt(Z**2+ie**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{C({pulsate:x,rippleX:B,rippleY:$,rippleSize:D,cb:E})},y.start(C5,()=>{S.current&&(S.current(),S.current=null)})):C({pulsate:x,rippleX:B,rippleY:$,rippleSize:D,cb:E})},[o,C,y]),b=N.useCallback(()=>{v({},{pulsate:!0})},[v]),_=N.useCallback((k,T)=>{if(y.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,y.start(0,()=>{_(k,T)});return}S.current=null,c(E=>E.length>0?E.slice(1):E),d.current=T},[y]);return N.useImperativeHandle(r,()=>({pulsate:b,start:v,stop:_}),[b,v,_]),m.jsx(T5,ne({className:bt(Kr.root,i.root,a),ref:g},s,{children:m.jsx(b5,{component:null,exit:!0,children:u})}))}),I5=O5;function j5(e){return xn("MuiButtonBase",e)}const z5=Gn("MuiButtonBase",["root","disabled","focusVisible"]),N5=z5,A5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],M5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=qn({root:["root",t&&"disabled",r&&"focusVisible"]},j5,o);return r&&n&&(a.root+=` ${n}`),a},L5=kt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${N5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:u="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:S,onClick:g,onContextMenu:C,onDragLeave:v,onFocus:b,onFocusVisible:_,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:x,onMouseUp:O,onTouchEnd:I,onTouchMove:j,onTouchStart:M,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:D,type:Z}=n,ie=ft(n,A5),de=N.useRef(null),Y=N.useRef(null),te=ov(Y,D),{isFocusVisibleRef:ce,onFocus:we,onBlur:ke,ref:Pt}=Ek(),[Le,Se]=N.useState(!1);c&&Le&&Se(!1),N.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),de.current.focus()}}),[]);const[G,V]=N.useState(!1);N.useEffect(()=>{V(!0)},[]);const q=G&&!f&&!c;N.useEffect(()=>{Le&&p&&!f&&G&&Y.current.pulsate()},[f,p,Le,G]);function ee(_e,ti,ri=d){return $s(Yn=>(ti&&ti(Yn),!ri&&Y.current&&Y.current[_e](Yn),!0))}const U=ee("start",E),he=ee("stop",C),le=ee("stop",v),oe=ee("stop",O),ae=ee("stop",_e=>{Le&&_e.preventDefault(),x&&x(_e)}),K=ee("start",M),J=ee("stop",I),ue=ee("stop",j),me=ee("stop",_e=>{ke(_e),ce.current===!1&&Se(!1),S&&S(_e)},!1),ge=$s(_e=>{de.current||(de.current=_e.currentTarget),we(_e),ce.current===!0&&(Se(!0),_&&_(_e)),b&&b(_e)}),ye=()=>{const _e=de.current;return u&&u!=="button"&&!(_e.tagName==="A"&&_e.href)},be=N.useRef(!1),Re=$s(_e=>{p&&!be.current&&Le&&Y.current&&_e.key===" "&&(be.current=!0,Y.current.stop(_e,()=>{Y.current.start(_e)})),_e.target===_e.currentTarget&&ye()&&_e.key===" "&&_e.preventDefault(),k&&k(_e),_e.target===_e.currentTarget&&ye()&&_e.key==="Enter"&&!c&&(_e.preventDefault(),g&&g(_e))}),ze=$s(_e=>{p&&_e.key===" "&&Y.current&&Le&&!_e.defaultPrevented&&(be.current=!1,Y.current.stop(_e,()=>{Y.current.pulsate(_e)})),T&&T(_e),g&&_e.target===_e.currentTarget&&ye()&&_e.key===" "&&!_e.defaultPrevented&&g(_e)});let $e=u;$e==="button"&&(ie.href||ie.to)&&($e=y);const Tt={};$e==="button"?(Tt.type=Z===void 0?"button":Z,Tt.disabled=c):(!ie.href&&!ie.to&&(Tt.role="button"),c&&(Tt["aria-disabled"]=c));const vr=ov(r,Pt,de),ir=ne({},n,{centerRipple:i,component:u,disabled:c,disableRipple:f,disableTouchRipple:d,focusRipple:p,tabIndex:B,focusVisible:Le}),Gt=M5(ir);return m.jsxs(L5,ne({as:$e,className:bt(Gt.root,s),ownerState:ir,onBlur:me,onClick:g,onContextMenu:he,onFocus:ge,onKeyDown:Re,onKeyUp:ze,onMouseDown:U,onMouseLeave:ae,onMouseUp:oe,onDragLeave:le,onTouchEnd:J,onTouchMove:ue,onTouchStart:K,ref:vr,tabIndex:c?-1:B,type:Z},Tt,ie,{children:[a,q?m.jsx(I5,ne({ref:te,center:i},$)):null]}))}),xP=$5;function D5(e){return xn("MuiIconButton",e)}const F5=Gn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),B5=F5,W5=["edge","children","className","color","disabled","disableFocusRipple","size"],U5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${We(n)}`,o&&`edge${We(o)}`,`size${We(i)}`]};return qn(a,D5,t)},H5=kt(xP,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${We(r.color)}`],r.edge&&t[`edge${We(r.edge)}`],t[`size${We(r.size)}`]]}})(({theme:e,ownerState:t})=>ne({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return ne({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ne({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":ne({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${B5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),q5=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:f="medium"}=n,d=ft(n,W5),p=ne({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:f}),y=U5(p);return m.jsx(H5,ne({className:bt(y.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},d,{children:i}))}),G5=q5,V5=is(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),K5=is(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Y5=is(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Q5=is(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),X5=is(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),J5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Z5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${We(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return qn(i,d5,o)},eD=kt(f5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${We(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?lf:uf,n=e.palette.mode==="light"?uf:lf,o=t.color||t.severity;return ne({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Yb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Yb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&ne({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),tD=kt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),rD=kt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),tw=kt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),rw={success:m.jsx(V5,{fontSize:"inherit"}),warning:m.jsx(K5,{fontSize:"inherit"}),error:m.jsx(Y5,{fontSize:"inherit"}),info:m.jsx(Q5,{fontSize:"inherit"})},nD=N.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Vn({props:t,name:"MuiAlert"}),{action:f,children:d,className:p,closeText:y="Close",color:S,components:g={},componentsProps:C={},icon:v,iconMapping:b=rw,onClose:_,role:k="alert",severity:T="success",slotProps:E={},slots:x={},variant:O="standard"}=c,I=ft(c,J5),j=ne({},c,{color:S,severity:T,variant:O}),M=Z5(j),B=(n=(o=x.closeButton)!=null?o:g.CloseButton)!=null?n:G5,$=(i=(a=x.closeIcon)!=null?a:g.CloseIcon)!=null?i:X5,D=(s=E.closeButton)!=null?s:C.closeButton,Z=(u=E.closeIcon)!=null?u:C.closeIcon;return m.jsxs(eD,ne({role:k,elevation:0,ownerState:j,className:bt(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(tD,{ownerState:j,className:M.icon,children:v||b[T]||rw[T]}):null,m.jsx(rD,{ownerState:j,className:M.message,children:d}),f!=null?m.jsx(tw,{ownerState:j,className:M.action,children:f}):null,f==null&&_?m.jsx(tw,{ownerState:j,className:M.action,children:m.jsx(B,ne({size:"small","aria-label":y,title:y,color:"inherit",onClick:_},D,{children:m.jsx($,ne({fontSize:"small"},Z))}))}):null]}))}),CP=nD,RP=()=>m.jsx("div",{className:"justify-center items-center flex top-[80vh] bottom-0 left-0 right-0 z-50 absolute",children:m.jsx("div",{className:"absolute bottom-[50px] flex items-center w-fit h-fit",role:"alert",children:m.jsx(CP,{severity:"success",children:"Copied!"})})}),oD=({value:e,onClose:t})=>{const[r,n]=se.useState(!1),o=()=>{n(!0),setTimeout(()=>{n(!1)},1500),navigator.clipboard.writeText(e.value)};return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:[m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center p-4 min-w-[20vw]",children:[m.jsxs("div",{className:"flex flex-row w-full",children:[m.jsx("div",{className:"flex-[1]"}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:e.key})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(Id,{onClick:()=>t(),className:"cursor-pointer"})})]}),m.jsx("div",{className:"inline-block relative p-6 flex-auto justify-center items-center w-full break-all max-h-[80vh] overflow-scroll",children:m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:e.value})}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(dy,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(RP,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var dv=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(dv||{});const iD=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=N.useState("Command"),[s,u]=N.useState(!1),[c,f]=N.useState(null),d=N.useRef(null);async function p(v){return"clipboard"in navigator?await navigator.clipboard.writeText(v):document.execCommand("copy",!0,v)}const y=()=>{let v="";switch(i){case"Command":v=SP();break;case"Flags":v=yP();break;case"Node Info":v=cy();break;case"Stages":v=wP();break;case"Reorgs":v=_P();break}return v},S=()=>{const v=y();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(b=>{console.log(b)})},g=v=>{a(v),C()},C=()=>{d.current&&d.current.scroll({top:0,behavior:"smooth"})};return m.jsxs("div",{className:"flex flex-row",children:[m.jsxs("div",{className:"flex flex-col max-h-[90vh] items-center justify-center w-full",children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx(Ps,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(Ps,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(Un,{backgroundColor:as,label:s?"Copied":"Copy curl",onClick:()=>S(),primary:!0})]}),m.jsx("div",{className:"h-10"}),m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-w-[1400px] min-w-[30vw] overflow-auto","data-testid":"test_details_section_content",ref:d,children:[i==="Command"&&m.jsx(lA,{cmdLine:e}),i==="Flags"&&m.jsx(a4,{flags:t}),i==="Node Info"&&m.jsx(l4,{nodeDetails:r,onShowNodeValueDetails:(v,b)=>{f({key:v,value:b})}}),i==="Stages"&&m.jsx(u4,{syncStages:n}),i==="Reorgs"&&m.jsx(c4,{reorg:o})]})]}),c&&m.jsx(oD,{value:c,onClose:()=>f(null)})]})},aD=()=>{const e=Ee(Rt),t=Ee(rA),r=Ee(nA),n=Ee(ZN),o=Ee(iA),i=Ee(aA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(iD,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},sD=e=>({id:e.id,name:e.name,protocols:lD(e.protocols),enodes:cD(e.enodes)}),lD=e=>({eth:uD(e.eth)}),uD=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),cD=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},fD=["boolean","string","number"],dD=e=>{let t=[];for(let r in e)t.push(hD(r,e[r]));return t},hD=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:pD(t.value)}),pD=e=>{let t=typeof e;return fD.includes(t)||mD(e)||vD(e)?e:""};function mD(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function vD(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const gD=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),yD=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},SD=(e,t)=>({enr:(e==null?void 0:e.enr)||"",enode:(e==null?void 0:e.enode)||"",id:e.id,name:e.name,caps:e.caps,network:bD(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),bD=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:wD(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:$u(e.network.capBytesIn),capBytesOut:$u(e.network.capBytesOut),typeBytesIn:$u(e.network.typeBytesIn),typeBytesOut:$u(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),wD=(e,t)=>t.includes(e),$u=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},_D=(e,t,r)=>{let n=[];for(let f in e.segmentsDownloading){let d=xD(f,r);f.includes("beaconblocks")&&(d=100),n.push(CD(e.segmentsDownloading[f],d,f))}let o=(t==null?void 0:t.downloadFinished)||!1;if(!o){let f=!1;for(let d of n)if(d.downloadedBytesu?s.push(u):s.length>0?s[s.length-1]=u:s.push(u),{downloaded:e.downloaded,total:e.total,totalTime:s,downloadRate:e.downloadRate,uploadRate:e.uploadRate,peers:e.peers,files:e.files,connections:e.connections,alloc:e.alloc,sys:e.sys,downloadFinished:o,segments:n,indexingFinished:i,indexed:a,torrentMetadataReady:e.torrentMetadataReady}},xD=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},CD=(e,t,r)=>({name:r,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseeds:nw(e.webseeds),peers:nw(e.peers),indexed:t}),nw=e=>{let t=[];return e.forEach(r=>{t.push({url:r.url,downloadRate:r.downloadRate})}),t},RD=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let u=kD(e.segments[s]);r.push(u),n+=u.progress}r.length>0&&(n=n/t);let o=[0],i=e.timeElapsed;return(o[o.length-1]||0)>i?o.push(i):o.length>0?o[o.length-1]=i:o.push(i),{totalTime:o,progress:n,segments:r,alloc:0,sys:0}},kD=e=>({name:e.segmentName,progress:e.percent}),rr=()=>je.getState().app.activeNodeId,PD=()=>{let e=rr();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},TD=()=>{F$().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(sD(r))}),je.dispatch(zN(t))})},ED=()=>{B$().then(e=>{let t=gD(e);je.dispatch(MN({nodeId:rr(),version:t}))})},OD=()=>{W$().then(e=>{let t=dD(e);je.dispatch(LN({nodeId:rr(),flags:t}))})},ID=()=>{U$().then(e=>{je.dispatch($N({nodeId:rr(),args:e}))})},jD=()=>{q$().then(e=>{je.dispatch(FN({nodeId:rr(),syncStages:yD(e)}))})},kP=()=>{H$().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${bP()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),je.dispatch(DN({nodeId:rr(),logFiles:t}))})},zD=()=>{G$().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),je.dispatch(WN({nodeId:rr(),dbs:t}))})},ND=e=>{V$(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),je.dispatch(UN({nodeId:rr(),path:e,tables:r}))})},AD=()=>{K$().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:rr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};je.dispatch(HN(r))})},ow=()=>{const e=rr(),t=je.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=je.getState().network.bootnodes[t].bootnodes),Y$().then(n=>{n.forEach(o=>{let i=SD(o,r);je.dispatch(p4({peer:i,nodeId:rr()}))})})},MD=()=>{Q$().then(e=>{je.dispatch(m4({nodeId:rr(),bootnodes:e}))})},iw=()=>{X$().then(e=>{if(e){let t=PD(),r=0;t&&t.segments.forEach(s=>{s.name.includes("beaconblocks")||r++});let n=RD(e.snapshotIndexing,r),o=_D(e.snapshotDownload,t,n),i=e.syncStages.currentStage;i===0&&(i=1);let a=[];if(e.syncStages.stagesList!=null&&e.syncStages.stagesList.forEach(s=>{let u=!1;s==="Snapshots"&&(u=!0),a.push({name:s,subStage:u})}),a.length!=0){let s={stages:a,currentStage:i};je.dispatch(E4({nodeId:rr(),stages:s}))}je.dispatch(T4({nodeId:rr(),indexStatus:n})),je.dispatch(P4({nodeId:rr(),downloadStatus:o}))}})},LD=()=>{J$().then(e=>{je.dispatch(k4({nodeId:rr(),files:e.files}))})};var PP={exports:{}},gp={exports:{}},aw;function $D(){return aw||(aw=1,function(e,t){(function(r,n){e.exports=n()})(fi,function(){var r=Array.prototype.slice;function n(l,h){h&&(l.prototype=Object.create(h.prototype)),l.prototype.constructor=l}function o(l){return u(l)?l:oe(l)}n(i,o);function i(l){return c(l)?l:ae(l)}n(a,o);function a(l){return f(l)?l:K(l)}n(s,o);function s(l){return u(l)&&!d(l)?l:J(l)}function u(l){return!!(l&&l[y])}function c(l){return!!(l&&l[S])}function f(l){return!!(l&&l[g])}function d(l){return c(l)||f(l)}function p(l){return!!(l&&l[C])}o.isIterable=u,o.isKeyed=c,o.isIndexed=f,o.isAssociative=d,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var y="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,_=1<>>0;if(""+w!==h||w===4294967295)return NaN;h=w}return h<0?B(l)+h:h}function D(){return!0}function Z(l,h,w){return(l===0||w!==void 0&&l<=-w)&&(h===void 0||w!==void 0&&h>=w)}function ie(l,h){return Y(l,h,0)}function de(l,h){return Y(l,h,h)}function Y(l,h,w){return l===void 0?w:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var te=0,ce=1,we=2,ke=typeof Symbol=="function"&&Symbol.iterator,Pt="@@iterator",Le=ke||Pt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=te,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[Le]=function(){return this};function G(l,h,w,R){var P=l===0?h:l===1?w:[h,w];return R?R.value=P:R={value:P,done:!1},R}function V(){return{value:void 0,done:!0}}function q(l){return!!he(l)}function ee(l){return l&&typeof l.next=="function"}function U(l){var h=he(l);return h&&h.call(l)}function he(l){var h=l&&(ke&&l[ke]||l[Pt]);if(typeof h=="function")return h}function le(l){return l&&typeof l.length=="number"}n(oe,o);function oe(l){return l==null?$e():u(l)?l.toSeq():ir(l)}oe.of=function(){return oe(arguments)},oe.prototype.toSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq {","}")},oe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},oe.prototype.__iterate=function(l,h){return _e(this,l,h,!0)},oe.prototype.__iterator=function(l,h){return ti(this,l,h,!0)},n(ae,oe);function ae(l){return l==null?$e().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():Tt(l)}ae.prototype.toKeyedSeq=function(){return this},n(K,oe);function K(l){return l==null?$e():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():vr(l)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(l,h){return _e(this,l,h,!1)},K.prototype.__iterator=function(l,h){return ti(this,l,h,!1)},n(J,oe);function J(l){return(l==null?$e():u(l)?c(l)?l.entrySeq():l:vr(l)).toSetSeq()}J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},oe.isSeq=Re,oe.Keyed=ae,oe.Set=J,oe.Indexed=K;var ue="@@__IMMUTABLE_SEQ__@@";oe.prototype[ue]=!0,n(me,K);function me(l){this._array=l,this.size=l.length}me.prototype.get=function(l,h){return this.has(l)?this._array[$(this,l)]:h},me.prototype.__iterate=function(l,h){for(var w=this._array,R=w.length-1,P=0;P<=R;P++)if(l(w[h?R-P:P],P,this)===!1)return P+1;return P},me.prototype.__iterator=function(l,h){var w=this._array,R=w.length-1,P=0;return new Se(function(){return P>R?V():G(l,P,w[h?R-P++:P++])})},n(ge,ae);function ge(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ge.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ge.prototype.has=function(l){return this._object.hasOwnProperty(l)},ge.prototype.__iterate=function(l,h){for(var w=this._object,R=this._keys,P=R.length-1,z=0;z<=P;z++){var A=R[h?P-z:z];if(l(w[A],A,this)===!1)return z+1}return z},ge.prototype.__iterator=function(l,h){var w=this._object,R=this._keys,P=R.length-1,z=0;return new Se(function(){var A=R[h?P-z:z];return z++>P?V():G(l,A,w[A])})},ge.prototype[C]=!0,n(ye,K);function ye(l){this._iterable=l,this.size=l.length||l.size}ye.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);var w=this._iterable,R=U(w),P=0;if(ee(R))for(var z;!(z=R.next()).done&&l(z.value,P++,this)!==!1;);return P},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var w=this._iterable,R=U(w);if(!ee(R))return new Se(V);var P=0;return new Se(function(){var z=R.next();return z.done?z:G(l,P++,z.value)})},n(be,K);function be(l){this._iterator=l,this._iteratorCache=[]}be.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);for(var w=this._iterator,R=this._iteratorCache,P=0;P=R.length){var z=w.next();if(z.done)return z;R[P]=z.value}return G(l,P,R[P++])})};function Re(l){return!!(l&&l[ue])}var ze;function $e(){return ze||(ze=new me([]))}function Tt(l){var h=Array.isArray(l)?new me(l).fromEntrySeq():ee(l)?new be(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ge(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function vr(l){var h=Gt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function ir(l){var h=Gt(l)||typeof l=="object"&&new ge(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Gt(l){return le(l)?new me(l):ee(l)?new be(l):q(l)?new ye(l):void 0}function _e(l,h,w,R){var P=l._cache;if(P){for(var z=P.length-1,A=0;A<=z;A++){var L=P[w?z-A:A];if(h(L[1],R?L[0]:A,l)===!1)return A+1}return A}return l.__iterateUncached(h,w)}function ti(l,h,w,R){var P=l._cache;if(P){var z=P.length-1,A=0;return new Se(function(){var L=P[w?z-A:A];return A++>z?V():G(h,R?L[0]:A-1,L[1])})}return l.__iteratorUncached(h,w)}function ri(l,h){return h?Yn(h,l,"",{"":l}):su(l)}function Yn(l,h,w,R){return Array.isArray(h)?l.call(R,w,K(h).map(function(P,z){return Yn(l,P,z,h)})):L0(h)?l.call(R,w,ae(h).map(function(P,z){return Yn(l,P,z,h)})):h}function su(l){return Array.isArray(l)?K(l).map(su).toList():L0(l)?ae(l).map(su).toMap():l}function L0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function yt(l,h){if(l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1;if(typeof l.valueOf=="function"&&typeof h.valueOf=="function"){if(l=l.valueOf(),h=h.valueOf(),l===h||l!==l&&h!==h)return!0;if(!l||!h)return!1}return!!(typeof l.equals=="function"&&typeof h.equals=="function"&&l.equals(h))}function Zd(l,h){if(l===h)return!0;if(!u(h)||l.size!==void 0&&h.size!==void 0&&l.size!==h.size||l.__hash!==void 0&&h.__hash!==void 0&&l.__hash!==h.__hash||c(l)!==c(h)||f(l)!==f(h)||p(l)!==p(h))return!1;if(l.size===0&&h.size===0)return!0;var w=!d(l);if(p(l)){var R=l.entries();return h.every(function(W,H){var X=R.next().value;return X&&yt(X[1],W)&&(w||yt(X[0],H))})&&R.next().done}var P=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{P=!0;var z=l;l=h,h=z}var A=!0,L=h.__iterate(function(W,H){if(w?!l.has(W):P?!yt(W,l.get(H,T)):!yt(l.get(H,T),W))return A=!1,!1});return A&&l.size===L}n(Vt,K);function Vt(l,h){if(!(this instanceof Vt))return new Vt(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(eh)return eh;eh=this}}Vt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Vt.prototype.get=function(l,h){return this.has(l)?this._value:h},Vt.prototype.includes=function(l){return yt(this._value,l)},Vt.prototype.slice=function(l,h){var w=this.size;return Z(l,h,w)?this:new Vt(this._value,de(h,w)-ie(l,w))},Vt.prototype.reverse=function(){return this},Vt.prototype.indexOf=function(l){return yt(this._value,l)?0:-1},Vt.prototype.lastIndexOf=function(l){return yt(this._value,l)?this.size:-1},Vt.prototype.__iterate=function(l,h){for(var w=0;w=0&&h=0&&ww?V():G(l,z++,A)})},Mt.prototype.equals=function(l){return l instanceof Mt?this._start===l._start&&this._end===l._end&&this._step===l._step:Zd(this,l)};var th;n(yo,o);function yo(){throw TypeError("Abstract")}n(fs,yo);function fs(){}n(Di,yo);function Di(){}n(uu,yo);function uu(){}yo.Keyed=fs,yo.Indexed=Di,yo.Set=uu;var ds=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(h,w){h=h|0,w=w|0;var R=h&65535,P=w&65535;return R*P+((h>>>16)*P+R*(w>>>16)<<16>>>0)|0};function rh(l){return l>>>1&1073741824|l&3221225471}function Tr(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var h=typeof l;if(h==="number"){if(l!==l||l===1/0)return 0;var w=l|0;for(w!==l&&(w^=l*4294967295);l>4294967295;)l/=4294967295,w^=l;return rh(w)}if(h==="string")return l.length>YE?GE(l):nh(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return VE(l);if(typeof l.toString=="function")return nh(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function GE(l){var h=lh[l];return h===void 0&&(h=nh(l),sh===QE&&(sh=0,lh={}),sh++,lh[l]=h),h}function nh(l){for(var h=0,w=0;w0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var oh=typeof WeakMap=="function",ih;oh&&(ih=new WeakMap);var ah=0,ni="__immutablehash__";typeof Symbol=="function"&&(ni=Symbol(ni));var YE=16,QE=255,sh=0,lh={};function Er(l){lu(l!==1/0,"Cannot perform this action with an infinite size.")}n(Oe,fs);function Oe(l){return l==null?cn():uh(l)&&!p(l)?l:cn().withMutations(function(h){var w=i(l);Er(w.size),w.forEach(function(R,P){return h.set(P,R)})})}Oe.of=function(){var l=r.call(arguments,0);return cn().withMutations(function(h){for(var w=0;w=l.length)throw new Error("Missing value for key: "+l[w]);h.set(l[w],l[w+1])}})},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Oe.prototype.set=function(l,h){return U0(this,l,h)},Oe.prototype.setIn=function(l,h){return this.updateIn(l,T,function(){return h})},Oe.prototype.remove=function(l){return U0(this,l,T)},Oe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return T})},Oe.prototype.update=function(l,h,w){return arguments.length===1?l(this):this.updateIn([l],h,w)},Oe.prototype.updateIn=function(l,h,w){w||(w=h,h=void 0);var R=K0(this,mS(l),h,w);return R===T?void 0:R},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):cn()},Oe.prototype.merge=function(){return cu(this,void 0,arguments)},Oe.prototype.mergeWith=function(l){var h=r.call(arguments,1);return cu(this,l,h)},Oe.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.merge=="function"?w.merge.apply(w,h):h[h.length-1]})},Oe.prototype.mergeDeep=function(){return cu(this,q0,arguments)},Oe.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return cu(this,G0(l),h)},Oe.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,cn(),function(w){return typeof w.mergeDeep=="function"?w.mergeDeep.apply(w,h):h[h.length-1]})},Oe.prototype.sort=function(l){return ht(Gi(this,l))},Oe.prototype.sortBy=function(l,h){return ht(Gi(this,h,l))},Oe.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(l,h){return new ch(this,l,h)},Oe.prototype.__iterate=function(l,h){var w=this,R=0;return this._root&&this._root.iterate(function(P){return R++,l(P[1],P[0],w)},h),R},Oe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?dh(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function uh(l){return!!(l&&l[F0])}Oe.isMap=uh;var F0="@@__IMMUTABLE_MAP__@@",Pe=Oe.prototype;Pe[F0]=!0,Pe[v]=Pe.remove,Pe.removeIn=Pe.deleteIn;function hs(l,h){this.ownerID=l,this.entries=h}hs.prototype.get=function(l,h,w,R){for(var P=this.entries,z=0,A=P.length;z=rO)return XE(l,W,R,P);var ve=l&&l===this.ownerID,xe=ve?W:M(W);return fe?L?H===X-1?xe.pop():xe[H]=xe.pop():xe[H]=[R,P]:xe.push([R,P]),ve?(this.entries=xe,this):new hs(l,xe)}};function Fi(l,h,w){this.ownerID=l,this.bitmap=h,this.nodes=w}Fi.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var P=1<<((l===0?h:h>>>l)&k),z=this.bitmap;return z&P?this.nodes[Y0(z&P-1)].get(l+b,h,w,R):R},Fi.prototype.update=function(l,h,w,R,P,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,W=1<=nO)return ZE(l,ve,H,L,Ce);if(X&&!Ce&&ve.length===2&&H0(ve[fe^1]))return ve[fe^1];if(X&&Ce&&ve.length===1&&H0(Ce))return Ce;var Ze=l&&l===this.ownerID,fn=X?Ce?H:H^W:H|W,Tn=X?Ce?Q0(ve,fe,Ce,Ze):tO(ve,fe,Ze):eO(ve,fe,Ce,Ze);return Ze?(this.bitmap=fn,this.nodes=Tn,this):new Fi(l,fn,Tn)};function ps(l,h,w){this.ownerID=l,this.count=h,this.nodes=w}ps.prototype.get=function(l,h,w,R){h===void 0&&(h=Tr(w));var P=(l===0?h:h>>>l)&k,z=this.nodes[P];return z?z.get(l+b,h,w,R):R},ps.prototype.update=function(l,h,w,R,P,z,A){w===void 0&&(w=Tr(R));var L=(h===0?w:w>>>h)&k,W=P===T,H=this.nodes,X=H[L];if(W&&!X)return this;var fe=hh(X,l,h+b,w,R,P,z,A);if(fe===X)return this;var ve=this.count;if(!X)ve++;else if(!fe&&(ve--,ve>>w)&k,A=(w===0?R:R>>>w)&k,L,W=z===A?[ph(l,h,w+b,R,P)]:(L=new Qn(h,R,P),z>>=1)A[L]=w&1?h[z++]:void 0;return A[R]=P,new ps(l,z+1,A)}function cu(l,h,w){for(var R=[],P=0;P>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function Q0(l,h,w,R){var P=R?l:M(l);return P[h]=w,P}function eO(l,h,w,R){var P=l.length+1;if(R&&h+1===P)return l[h]=w,l;for(var z=new Array(P),A=0,L=0;L0&&R<_?vs(0,R,b,null,new So(w.toArray())):h.withMutations(function(P){P.setSize(R),w.forEach(function(z,A){return P.set(A,z)})}))}Ye.of=function(){return this(arguments)},Ye.prototype.toString=function(){return this.__toString("List [","]")},Ye.prototype.get=function(l,h){if(l=$(this,l),l>=0&&l>>h&k;if(R>=this.array.length)return new So([],l);var P=R===0,z;if(h>0){var A=this.array[R];if(z=A&&A.removeBefore(l,h-b,w),z===A&&P)return this}if(P&&!z)return this;var L=Wi(this,l);if(!P)for(var W=0;W>>h&k;if(R>=this.array.length)return this;var P;if(h>0){var z=this.array[R];if(P=z&&z.removeAfter(l,h-b,w),P===z&&R===this.array.length-1)return this}var A=Wi(this,l);return A.array.splice(R+1),P&&(A.array[R]=P),A};var ms={};function Z0(l,h){var w=l._origin,R=l._capacity,P=gs(R),z=l._tail;return A(l._root,l._level,0);function A(H,X,fe){return X===0?L(H,fe):W(H,X,fe)}function L(H,X){var fe=X===P?z&&z.array:H&&H.array,ve=X>w?0:w-X,xe=R-X;return xe>_&&(xe=_),function(){if(ve===xe)return ms;var Ce=h?--xe:ve++;return fe&&fe[Ce]}}function W(H,X,fe){var ve,xe=H&&H.array,Ce=fe>w?0:w-fe>>X,Ze=(R-fe>>X)+1;return Ze>_&&(Ze=_),function(){do{if(ve){var fn=ve();if(fn!==ms)return fn;ve=null}if(Ce===Ze)return ms;var Tn=h?--Ze:Ce++;ve=A(xe&&xe[Tn],X-b,fe+(Tn<=l.size||h<0)return l.withMutations(function(A){h<0?bo(A,h).set(0,w):bo(A,0,h+1).set(h,w)});h+=l._origin;var R=l._tail,P=l._root,z=O(x);return h>=gs(l._capacity)?R=vh(R,l.__ownerID,0,h,w,z):P=vh(P,l.__ownerID,l._level,h,w,z),z.value?l.__ownerID?(l._root=P,l._tail=R,l.__hash=void 0,l.__altered=!0,l):vs(l._origin,l._capacity,l._level,P,R):l}function vh(l,h,w,R,P,z){var A=R>>>w&k,L=l&&A0){var H=l&&l.array[A],X=vh(H,h,w-b,R,P,z);return X===H?l:(W=Wi(l,h),W.array[A]=X,W)}return L&&l.array[A]===P?l:(I(z),W=Wi(l,h),P===void 0&&A===W.array.length-1?W.array.pop():W.array[A]=P,W)}function Wi(l,h){return h&&l&&h===l.ownerID?l:new So(l?l.array.slice():[],h)}function tS(l,h){if(h>=gs(l._capacity))return l._tail;if(h<1<0;)w=w.array[h>>>R&k],R-=b;return w}}function bo(l,h,w){h!==void 0&&(h=h|0),w!==void 0&&(w=w|0);var R=l.__ownerID||new j,P=l._origin,z=l._capacity,A=P+h,L=w===void 0?z:w<0?z+w:P+w;if(A===P&&L===z)return l;if(A>=L)return l.clear();for(var W=l._level,H=l._root,X=0;A+X<0;)H=new So(H&&H.array.length?[void 0,H]:[],R),W+=b,X+=1<=1<fe?new So([],R):xe;if(xe&&ve>fe&&Ab;fn-=b){var Tn=fe>>>fn&k;Ze=Ze.array[Tn]=Wi(Ze.array[Tn],R)}Ze.array[fe>>>b&k]=xe}if(L=ve)A-=ve,L-=ve,W=b,H=null,Ce=Ce&&Ce.removeBefore(R,0,A);else if(A>P||ve>>W&k;if(yu!==ve>>>W&k)break;yu&&(X+=(1<P&&(H=H.removeBefore(R,W,A-X)),H&&veP&&(P=L.size),u(A)||(L=L.map(function(W){return ri(W)})),R.push(L)}return P>l.size&&(l=l.setSize(P)),V0(l,h,R)}function gs(l){return l<_?0:l-1>>>b<=_&&P.size>=R.size*2?(W=P.filter(function(H,X){return H!==void 0&&z!==X}),L=W.toKeyedSeq().map(function(H){return H[0]}).flip().toMap(),l.__ownerID&&(L.__ownerID=W.__ownerID=l.__ownerID)):(L=R.remove(h),W=z===P.size-1?P.pop():P.set(z,void 0))}else if(A){if(w===P.get(z)[1])return l;L=R,W=P.set(z,[h,w])}else L=R.set(h,P.size),W=P.set(P.size,[h,w]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=W,l.__hash=void 0,l):gh(L,W)}n(Vr,ae);function Vr(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Vr.prototype.get=function(l,h){return this._iter.get(l,h)},Vr.prototype.has=function(l){return this._iter.has(l)},Vr.prototype.valueSeq=function(){return this._iter.valueSeq()},Vr.prototype.reverse=function(){var l=this,h=yh(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Vr.prototype.map=function(l,h){var w=this,R=aS(this,l,h);return this._useKeys||(R.valueSeq=function(){return w._iter.toSeq().map(l,h)}),R},Vr.prototype.__iterate=function(l,h){var w=this,R;return this._iter.__iterate(this._useKeys?function(P,z){return l(P,z,w)}:(R=h?dS(this):0,function(P){return l(P,h?--R:R++,w)}),h)},Vr.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var w=this._iter.__iterator(ce,h),R=h?dS(this):0;return new Se(function(){var P=w.next();return P.done?P:G(l,h?--R:R++,P.value,P)})},Vr.prototype[C]=!0,n(Ui,K);function Ui(l){this._iter=l,this.size=l.size}Ui.prototype.includes=function(l){return this._iter.includes(l)},Ui.prototype.__iterate=function(l,h){var w=this,R=0;return this._iter.__iterate(function(P){return l(P,R++,w)},h)},Ui.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h),R=0;return new Se(function(){var P=w.next();return P.done?P:G(l,R++,P.value,P)})},n(Hi,J);function Hi(l){this._iter=l,this.size=l.size}Hi.prototype.has=function(l){return this._iter.includes(l)},Hi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){return l(R,R,w)},h)},Hi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){var R=w.next();return R.done?R:G(l,R.value,R.value,R)})},n(qi,ae);function qi(l){this._iter=l,this.size=l.size}qi.prototype.entrySeq=function(){return this._iter.toSeq()},qi.prototype.__iterate=function(l,h){var w=this;return this._iter.__iterate(function(R){if(R){fS(R);var P=u(R);return l(P?R.get(1):R[1],P?R.get(0):R[0],w)}},h)},qi.prototype.__iterator=function(l,h){var w=this._iter.__iterator(ce,h);return new Se(function(){for(;;){var R=w.next();if(R.done)return R;var P=R.value;if(P){fS(P);var z=u(P);return G(l,z?P.get(0):P[0],z?P.get(1):P[1],R)}}})},Ui.prototype.cacheResult=Vr.prototype.cacheResult=Hi.prototype.cacheResult=qi.prototype.cacheResult=wh;function iS(l){var h=Rn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var w=l.reverse.apply(this);return w.flip=function(){return l.reverse()},w},h.has=function(w){return l.includes(w)},h.includes=function(w){return l.has(w)},h.cacheResult=wh,h.__iterateUncached=function(w,R){var P=this;return l.__iterate(function(z,A){return w(A,z,P)!==!1},R)},h.__iteratorUncached=function(w,R){if(w===we){var P=l.__iterator(w,R);return new Se(function(){var z=P.next();if(!z.done){var A=z.value[0];z.value[0]=z.value[1],z.value[1]=A}return z})}return l.__iterator(w===ce?te:ce,R)},h}function aS(l,h,w){var R=Rn(l);return R.size=l.size,R.has=function(P){return l.has(P)},R.get=function(P,z){var A=l.get(P,T);return A===T?z:h.call(w,A,P,l)},R.__iterateUncached=function(P,z){var A=this;return l.__iterate(function(L,W,H){return P(h.call(w,L,W,H),W,A)!==!1},z)},R.__iteratorUncached=function(P,z){var A=l.__iterator(we,z);return new Se(function(){var L=A.next();if(L.done)return L;var W=L.value,H=W[0];return G(P,H,h.call(w,W[1],H,l),L)})},R}function yh(l,h){var w=Rn(l);return w._iter=l,w.size=l.size,w.reverse=function(){return l},l.flip&&(w.flip=function(){var R=iS(l);return R.reverse=function(){return l.flip()},R}),w.get=function(R,P){return l.get(h?R:-1-R,P)},w.has=function(R){return l.has(h?R:-1-R)},w.includes=function(R){return l.includes(R)},w.cacheResult=wh,w.__iterate=function(R,P){var z=this;return l.__iterate(function(A,L){return R(A,L,z)},!P)},w.__iterator=function(R,P){return l.__iterator(R,!P)},w}function sS(l,h,w,R){var P=Rn(l);return R&&(P.has=function(z){var A=l.get(z,T);return A!==T&&!!h.call(w,A,z,l)},P.get=function(z,A){var L=l.get(z,T);return L!==T&&h.call(w,L,z,l)?L:A}),P.__iterateUncached=function(z,A){var L=this,W=0;return l.__iterate(function(H,X,fe){if(h.call(w,H,X,fe))return W++,z(H,R?X:W-1,L)},A),W},P.__iteratorUncached=function(z,A){var L=l.__iterator(we,A),W=0;return new Se(function(){for(;;){var H=L.next();if(H.done)return H;var X=H.value,fe=X[0],ve=X[1];if(h.call(w,ve,fe,l))return G(z,R?fe:W++,ve,H)}})},P}function aO(l,h,w){var R=Oe().asMutable();return l.__iterate(function(P,z){R.update(h.call(w,P,z,l),0,function(A){return A+1})}),R.asImmutable()}function sO(l,h,w){var R=c(l),P=(p(l)?ht():Oe()).asMutable();l.__iterate(function(A,L){P.update(h.call(w,A,L,l),function(W){return W=W||[],W.push(R?[L,A]:A),W})});var z=hS(l);return P.map(function(A){return Ve(l,z(A))})}function Sh(l,h,w,R){var P=l.size;if(h!==void 0&&(h=h|0),w!==void 0&&(w===1/0?w=P:w=w|0),Z(h,w,P))return l;var z=ie(h,P),A=de(w,P);if(z!==z||A!==A)return Sh(l.toSeq().cacheResult(),h,w,R);var L=A-z,W;L===L&&(W=L<0?0:L);var H=Rn(l);return H.size=W===0?W:l.size&&W||void 0,!R&&Re(l)&&W>=0&&(H.get=function(X,fe){return X=$(this,X),X>=0&&XW)return V();var Ze=ve.next();return R||X===ce?Ze:X===te?G(X,Ce-1,void 0,Ze):G(X,Ce-1,Ze.value[1],Ze)})},H}function lO(l,h,w){var R=Rn(l);return R.__iterateUncached=function(P,z){var A=this;if(z)return this.cacheResult().__iterate(P,z);var L=0;return l.__iterate(function(W,H,X){return h.call(w,W,H,X)&&++L&&P(W,H,A)}),L},R.__iteratorUncached=function(P,z){var A=this;if(z)return this.cacheResult().__iterator(P,z);var L=l.__iterator(we,z),W=!0;return new Se(function(){if(!W)return V();var H=L.next();if(H.done)return H;var X=H.value,fe=X[0],ve=X[1];return h.call(w,ve,fe,A)?P===we?H:G(P,fe,ve,H):(W=!1,V())})},R}function lS(l,h,w,R){var P=Rn(l);return P.__iterateUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterate(z,A);var W=!0,H=0;return l.__iterate(function(X,fe,ve){if(!(W&&(W=h.call(w,X,fe,ve))))return H++,z(X,R?fe:H-1,L)}),H},P.__iteratorUncached=function(z,A){var L=this;if(A)return this.cacheResult().__iterator(z,A);var W=l.__iterator(we,A),H=!0,X=0;return new Se(function(){var fe,ve,xe;do{if(fe=W.next(),fe.done)return R||z===ce?fe:z===te?G(z,X++,void 0,fe):G(z,X++,fe.value[1],fe);var Ce=fe.value;ve=Ce[0],xe=Ce[1],H&&(H=h.call(w,xe,ve,L))}while(H);return z===we?fe:G(z,ve,xe,fe)})},P}function uO(l,h){var w=c(l),R=[l].concat(h).map(function(A){return u(A)?w&&(A=i(A)):A=w?Tt(A):vr(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(R.length===0)return l;if(R.length===1){var P=R[0];if(P===l||w&&c(P)||f(l)&&f(P))return P}var z=new me(R);return w?z=z.toKeyedSeq():f(l)||(z=z.toSetSeq()),z=z.flatten(!0),z.size=R.reduce(function(A,L){if(A!==void 0){var W=L.size;if(W!==void 0)return A+W}},0),z}function uS(l,h,w){var R=Rn(l);return R.__iterateUncached=function(P,z){var A=0,L=!1;function W(H,X){var fe=this;H.__iterate(function(ve,xe){return(!h||X0}function bh(l,h,w){var R=Rn(l);return R.size=new me(w).map(function(P){return P.size}).min(),R.__iterate=function(P,z){for(var A=this.__iterator(ce,z),L,W=0;!(L=A.next()).done&&P(L.value,W++,this)!==!1;);return W},R.__iteratorUncached=function(P,z){var A=w.map(function(H){return H=o(H),U(z?H.reverse():H)}),L=0,W=!1;return new Se(function(){var H;return W||(H=A.map(function(X){return X.next()}),W=H.some(function(X){return X.done})),W?V():G(P,L++,h.apply(null,H.map(function(X){return X.value})))})},R}function Ve(l,h){return Re(l)?h:l.constructor(h)}function fS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function dS(l){return Er(l.size),B(l)}function hS(l){return c(l)?i:f(l)?a:s}function Rn(l){return Object.create((c(l)?ae:f(l)?K:J).prototype)}function wh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):oe.prototype.cacheResult.call(this)}function pS(l,h){return l>h?1:l=0;w--)h={value:arguments[w],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):ys(l,h)},St.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Er(l.size);var h=this.size,w=this._head;return l.reverse().forEach(function(R){h++,w={value:R,next:w}}),this.__ownerID?(this.size=h,this._head=w,this.__hash=void 0,this.__altered=!0,this):ys(h,w)},St.prototype.pop=function(){return this.slice(1)},St.prototype.unshift=function(){return this.push.apply(this,arguments)},St.prototype.unshiftAll=function(l){return this.pushAll(l)},St.prototype.shift=function(){return this.pop.apply(this,arguments)},St.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):kh()},St.prototype.slice=function(l,h){if(Z(l,h,this.size))return this;var w=ie(l,this.size),R=de(h,this.size);if(R!==this.size)return Di.prototype.slice.call(this,l,h);for(var P=this.size-w,z=this._head;w--;)z=z.next;return this.__ownerID?(this.size=P,this._head=z,this.__hash=void 0,this.__altered=!0,this):ys(P,z)},St.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?ys(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},St.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var w=0,R=this._head;R&&l(R.value,w++,this)!==!1;)R=R.next;return w},St.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var w=0,R=this._head;return new Se(function(){if(R){var P=R.value;return R=R.next,G(l,w++,P)}return V()})};function xS(l){return!!(l&&l[CS])}St.isStack=xS;var CS="@@__IMMUTABLE_STACK__@@",Vi=St.prototype;Vi[CS]=!0,Vi.withMutations=Pe.withMutations,Vi.asMutable=Pe.asMutable,Vi.asImmutable=Pe.asImmutable,Vi.wasAltered=Pe.wasAltered;function ys(l,h,w,R){var P=Object.create(Vi);return P.size=l,P._head=h,P.__ownerID=w,P.__hash=R,P.__altered=!1,P}var RS;function kh(){return RS||(RS=ys(0))}function Pn(l,h){var w=function(R){l.prototype[R]=h[R]};return Object.keys(h).forEach(w),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(w),l}o.Iterator=Se,Pn(o,{toArray:function(){Er(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,w){l[w]=h}),l},toIndexedSeq:function(){return new Ui(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new Vr(this,!0)},toMap:function(){return Oe(this.toKeyedSeq())},toObject:function(){Er(this.size);var l={};return this.__iterate(function(h,w){l[w]=h}),l},toOrderedMap:function(){return ht(this.toKeyedSeq())},toOrderedSet:function(){return kn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Hi(this)},toSeq:function(){return f(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return St(c(this)?this.valueSeq():this)},toList:function(){return Ye(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,h){return this.size===0?l+h:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+h},concat:function(){var l=r.call(arguments,0);return Ve(this,uO(this,l))},includes:function(l){return this.some(function(h){return yt(h,l)})},entries:function(){return this.__iterator(we)},every:function(l,h){Er(this.size);var w=!0;return this.__iterate(function(R,P,z){if(!l.call(h,R,P,z))return w=!1,!1}),w},filter:function(l,h){return Ve(this,sS(this,l,h,!0))},find:function(l,h,w){var R=this.findEntry(l,h);return R?R[1]:w},forEach:function(l,h){return Er(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Er(this.size),l=l!==void 0?""+l:",";var h="",w=!0;return this.__iterate(function(R){w?w=!1:h+=l,h+=R!=null?R.toString():""}),h},keys:function(){return this.__iterator(te)},map:function(l,h){return Ve(this,aS(this,l,h))},reduce:function(l,h,w){Er(this.size);var R,P;return arguments.length<2?P=!0:R=h,this.__iterate(function(z,A,L){P?(P=!1,R=z):R=l.call(w,R,z,A,L)}),R},reduceRight:function(l,h,w){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return Ve(this,yh(this,!0))},slice:function(l,h){return Ve(this,Sh(this,l,h,!0))},some:function(l,h){return!this.every(gu(l),h)},sort:function(l){return Ve(this,Gi(this,l))},values:function(){return this.__iterator(ce)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(l,h){return B(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return aO(this,l,h)},equals:function(l){return Zd(this,l)},entrySeq:function(){var l=this;if(l._cache)return new me(l._cache);var h=l.toSeq().map(mO).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(gu(l),h)},findEntry:function(l,h,w){var R=w;return this.__iterate(function(P,z,A){if(l.call(h,P,z,A))return R=[z,P],!1}),R},findKey:function(l,h){var w=this.findEntry(l,h);return w&&w[0]},findLast:function(l,h,w){return this.toKeyedSeq().reverse().find(l,h,w)},findLastEntry:function(l,h,w){return this.toKeyedSeq().reverse().findEntry(l,h,w)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(D)},flatMap:function(l,h){return Ve(this,cO(this,l,h))},flatten:function(l){return Ve(this,uS(this,l,!0))},fromEntrySeq:function(){return new qi(this)},get:function(l,h){return this.find(function(w,R){return yt(R,l)},void 0,h)},getIn:function(l,h){for(var w=this,R=mS(l),P;!(P=R.next()).done;){var z=P.value;if(w=w&&w.get?w.get(z,T):T,w===T)return h}return w},groupBy:function(l,h){return sO(this,l,h)},has:function(l){return this.get(l,T)!==T},hasIn:function(l){return this.getIn(l,T)!==T},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(h){return l.includes(h)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(h){return yt(h,l)})},keySeq:function(){return this.toSeq().map(pO).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return hu(this,l)},maxBy:function(l,h){return hu(this,h,l)},min:function(l){return hu(this,l?kS(l):TS)},minBy:function(l,h){return hu(this,h?kS(h):TS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return Ve(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return Ve(this,lS(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(gu(l),h)},sortBy:function(l,h){return Ve(this,Gi(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return Ve(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return Ve(this,lO(this,l,h))},takeUntil:function(l,h){return this.takeWhile(gu(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=gO(this))}});var sr=o.prototype;sr[y]=!0,sr[Le]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=PS,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Pn(i,{flip:function(){return Ve(this,iS(this))},mapEntries:function(l,h){var w=this,R=0;return Ve(this,this.toSeq().map(function(P,z){return l.call(h,[z,P],R++,w)}).fromEntrySeq())},mapKeys:function(l,h){var w=this;return Ve(this,this.toSeq().flip().map(function(R,P){return l.call(h,R,P,w)}).flip())}});var vu=i.prototype;vu[S]=!0,vu[Le]=sr.entries,vu.__toJS=sr.toObject,vu.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+PS(l)},Pn(a,{toKeyedSeq:function(){return new Vr(this,!1)},filter:function(l,h){return Ve(this,sS(this,l,h,!1))},findIndex:function(l,h){var w=this.findEntry(l,h);return w?w[0]:-1},indexOf:function(l){var h=this.keyOf(l);return h===void 0?-1:h},lastIndexOf:function(l){var h=this.lastKeyOf(l);return h===void 0?-1:h},reverse:function(){return Ve(this,yh(this,!1))},slice:function(l,h){return Ve(this,Sh(this,l,h,!1))},splice:function(l,h){var w=arguments.length;if(h=Math.max(h|0,0),w===0||w===2&&!h)return this;l=ie(l,l<0?this.count():this.size);var R=this.slice(0,l);return Ve(this,w===1?R:R.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var w=this.findLastEntry(l,h);return w?w[0]:-1},first:function(){return this.get(0)},flatten:function(l){return Ve(this,uS(this,l,!1))},get:function(l,h){return l=$(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(w,R){return R===l},void 0,h)},has:function(l){return l=$(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function gO(l){if(l.size===1/0)return 0;var h=p(l),w=c(l),R=h?1:0,P=l.__iterate(w?h?function(z,A){R=31*R+ES(Tr(z),Tr(A))|0}:function(z,A){R=R+ES(Tr(z),Tr(A))|0}:h?function(z){R=31*R+Tr(z)|0}:function(z){R=R+Tr(z)|0});return yO(P,R)}function yO(l,h){return h=ds(h,3432918353),h=ds(h<<15|h>>>-15,461845907),h=ds(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=ds(h^h>>>16,2246822507),h=ds(h^h>>>13,3266489909),h=rh(h^h>>>16),h}function ES(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var SO={Iterable:o,Seq:oe,Collection:yo,Map:Oe,OrderedMap:ht,List:Ye,Stack:St,Set:Je,OrderedSet:kn,Record:Or,Range:Mt,Repeat:Vt,is:yt,fromJS:ri};return SO})}(gp)),gp.exports}function DD(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}const FD=Object.freeze(Object.defineProperty({__proto__:null,default:DD},Symbol.toStringTag,{value:"Module"})),BD=Ja(FD);var yp,sw;function TP(){if(sw)return yp;sw=1;var e=typeof fi=="object"&&fi&&fi.Object===Object&&fi;return yp=e,yp}var Sp,lw;function WD(){if(lw)return Sp;lw=1;var e=TP(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Sp=r,Sp}var bp,uw;function zd(){if(uw)return bp;uw=1;var e=WD(),t=e.Symbol;return bp=t,bp}var wp,cw;function UD(){if(cw)return wp;cw=1;var e=zd(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),u=a[o];try{a[o]=void 0;var c=!0}catch{}var f=n.call(a);return c&&(s?a[o]=u:delete a[o]),f}return wp=i,wp}var _p,fw;function HD(){if(fw)return _p;fw=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _p=r,_p}var xp,dw;function Nd(){if(dw)return xp;dw=1;var e=zd(),t=UD(),r=HD(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:n:i&&i in Object(s)?t(s):r(s)}return xp=a,xp}var Cp,hw;function Jl(){if(hw)return Cp;hw=1;function e(t){return t!=null&&typeof t=="object"}return Cp=e,Cp}var Rp,pw;function qD(){if(pw)return Rp;pw=1;var e=Nd(),t=Jl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return Rp=n,Rp}var kp,mw;function GD(){if(mw)return kp;mw=1;function e(t){return function(r){return t(r)}}return kp=e,kp}var Ds={exports:{}};Ds.exports;var vw;function VD(){return vw||(vw=1,function(e,t){var r=TP(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Ds,Ds.exports)),Ds.exports}var Pp,gw;function KD(){if(gw)return Pp;gw=1;var e=qD(),t=GD(),r=VD(),n=r&&r.isRegExp,o=n?t(n):e;return Pp=o,Pp}var Tp,yw;function YD(){if(yw)return Tp;yw=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n0&&i(f)?o>1?r(f,o-1,i,a,s):e(s,f):a||(s[s.length]=f)}return s}return Dp=r,Dp}var Fp,Ow;function aF(){if(Ow)return Fp;Ow=1;var e=iF();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Fp=t,Fp}var Bp,Iw;function sF(){if(Iw)return Bp;Iw=1;var e=KD(),t=ZD(),r=eF(),n=aF();function o(i,a,s){var u=0,c=0;if(i==="")return i;if(!i||!r(i))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var f=a;e(f)||(f=new RegExp("("+t(f)+")","gi"));for(var d=i.split(f),p=1,y=d.length;p=0&&u===s&&c())}function Fs(e,t){if(e==null)return{};var r=ft(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var lF=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;dt(this,e),F(this,"_cellSizeAndPositionData",{}),F(this,"_lastMeasuredIndex",-1),F(this,"_lastBatchedIndex",-1),F(this,"_cellCount",void 0),F(this,"_cellSizeGetter",void 0),F(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return gt(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(r){var n=r.cellCount,o=r.estimatedCellSize,i=r.cellSizeGetter;this._cellCount=n,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(r){if(r<0||r>=this._cellCount)throw Error("Requested index ".concat(r," is outside of range 0..").concat(this._cellCount));if(r>this._lastMeasuredIndex)for(var n=this.getSizeAndPositionOfLastMeasuredCell(),o=n.offset+n.size,i=this._lastMeasuredIndex+1;i<=r;i++){var a=this._cellSizeGetter({index:i});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(a));a===null?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=r):(this._cellSizeAndPositionData[i]={offset:o,size:a},o+=a,this._lastMeasuredIndex=r)}return this._cellSizeAndPositionData[r]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var r=this.getSizeAndPositionOfLastMeasuredCell(),n=r.offset+r.size,o=this._cellCount-this._lastMeasuredIndex-1,i=o*this._estimatedCellSize;return n+i}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;if(i<=0)return 0;var u=this.getSizeAndPositionOfCell(s),c=u.offset,f=c-i+u.size,d;switch(o){case"start":d=c;break;case"end":d=f;break;case"center":d=c-(i-u.size)/2;break;default:d=Math.max(f,Math.min(c,a));break}var p=this.getTotalSize();return Math.max(0,Math.min(p-i,d))}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset,i=this.getTotalSize();if(i===0)return{};var a=o+n,s=this._findNearestCell(o),u=this.getSizeAndPositionOfCell(s);o=u.offset+u.size;for(var c=s;oo&&(r=i-1)}return n>0?n-1:0}},{key:"_exponentialSearch",value:function(r,n){for(var o=1;r=r?this._binarySearch(o,0,r):this._exponentialSearch(o,r)}}]),e}(),uF=15e5,cF=16777100,fF=function(){return typeof window<"u"},dF=function(){return!!window.chrome},hF=function(){return fF()&&dF()?cF:uF},Nw=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?hF():r,o=Fs(t,["maxScrollSize"]);dt(this,e),F(this,"_cellSizeAndPositionManager",void 0),F(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new lF(o),this._maxScrollSize=n}return gt(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(r){this._cellSizeAndPositionManager.configure(r)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(a-i))}},{key:"getSizeAndPositionOfCell",value:function(r){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(r)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;a=this._safeOffsetToOffset({containerSize:i,offset:a});var u=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:u})}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset;return o=this._safeOffsetToOffset({containerSize:n,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:n,offset:o})}},{key:"resetCell",value:function(r){this._cellSizeAndPositionManager.resetCell(r)}},{key:"_getOffsetPercentage",value:function(r){var n=r.containerSize,o=r.offset,i=r.totalSize;return i<=n?0:o/(i-n)}},{key:"_offsetToSafeOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:i});return Math.round(s*(a-n))}},{key:"_safeOffsetToOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(i-n))}}]),e}();function Ua(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),a=!e||i.every(function(u){var c=o[u];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(u){var c=t[u],f=o[u];return Array.isArray(f)?c.join(",")!==f.join(","):c!==f});t=o,a&&s&&n(o)}}var Du=-1,Jn=1;function zP(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Jn?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}}function Aw(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,f=e.scrollToIndex,d=e.size,p=e.sizeJustIncreasedFromZero,y=e.updateScrollIndexCallback,S=r.getCellCount(),g=f>=0&&f0&&(dr.getTotalSize()-d&&y(S-1)}function NP(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,f=e.parent,d=e.rowSizeAndPositionManager,p=e.rowStartIndex,y=e.rowStopIndex,S=e.styleCache,g=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],_=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),k=!u&&!_,T=p;T<=y;T++)for(var E=d.getSizeAndPositionOfCell(T),x=o;x<=i;x++){var O=n.getSizeAndPositionOfCell(x),I=x>=C.start&&x<=C.stop&&T>=v.start&&T<=v.stop,j="".concat(T,"-").concat(x),M=void 0;k&&S[j]?M=S[j]:a&&!a.has(T,x)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:E.size,left:O.offset+s,position:"absolute",top:E.offset+g,width:O.size},S[j]=M);var B={columnIndex:x,isScrolling:u,isVisible:I,key:j,parent:f,rowIndex:T,style:M},$=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r(B)),$=t[j]):$=r(B),!($==null||$===!1)&&b.push($)}return b}const pF=!!(typeof window<"u"&&window.document&&window.document.createElement);var Fu;function hv(e){if((!Fu&&Fu!==0||e)&&pF){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Fu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Fu}var cr;typeof window<"u"?cr=window:typeof self<"u"?cr=self:cr={};var mF=cr.requestAnimationFrame||cr.webkitRequestAnimationFrame||cr.mozRequestAnimationFrame||cr.oRequestAnimationFrame||cr.msRequestAnimationFrame||function(e){return cr.setTimeout(e,1e3/60)},vF=cr.cancelAnimationFrame||cr.webkitCancelAnimationFrame||cr.mozCancelAnimationFrame||cr.oCancelAnimationFrame||cr.msCancelAnimationFrame||function(e){cr.clearTimeout(e)},Mw=mF,gF=vF,Ha=function(t){return gF(t.id)},gy=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=Mw(a)},i={id:Mw(o)};return i},Lw,$w;function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(r,n.state)),r.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(r,n.state)),n}return gt(t,[{key:"getOffsetForCell",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.alignment,i=o===void 0?this.props.scrollToAlignment:o,a=n.columnIndex,s=a===void 0?this.props.scrollToColumn:a,u=n.rowIndex,c=u===void 0?this.props.scrollToRow:u,f=oi({},this.props,{scrollToAlignment:i,scrollToColumn:s,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(f),scrollTop:this._getCalculatedScrollTop(f)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(n){var o=n.scrollLeft,i=o===void 0?0:o,a=n.scrollTop,s=a===void 0?0:a;if(!(s<0)){this._debounceScrollEnded();var u=this.props,c=u.autoHeight,f=u.autoWidth,d=u.height,p=u.width,y=this.state.instanceProps,S=y.scrollbarSize,g=y.rowSizeAndPositionManager.getTotalSize(),C=y.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+S),i),b=Math.min(Math.max(0,g-d+S),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==b){var _=v!==this.state.scrollLeft?v>this.state.scrollLeft?Jn:Du:this.state.scrollDirectionHorizontal,k=b!==this.state.scrollTop?b>this.state.scrollTop?Jn:Du:this.state.scrollDirectionVertical,T={isScrolling:!0,scrollDirectionHorizontal:_,scrollDirectionVertical:k,scrollPositionChangeReason:Wp.OBSERVED};c||(T.scrollTop=b),f||(T.scrollLeft=v),T.needToResetStyleCache=!1,this.setState(T)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:C,totalRowsHeight:g})}}},{key:"invalidateCellSizeAfterRender",value:function(n){var o=n.columnIndex,i=n.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){var n=this.props,o=n.columnCount,i=n.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(o-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(i-1)}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,u=this.props,c=u.scrollToColumn,f=u.scrollToRow,d=this.state.instanceProps;d.columnSizeAndPositionManager.resetCell(i),d.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===Jn?i<=c:i>=c),this._recomputeScrollTopFlag=f>=0&&(this.state.scrollDirectionVertical===Jn?s<=f:s>=f),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(n){var o=n.columnIndex,i=n.rowIndex,a=this.props.columnCount,s=this.props;a>1&&o!==void 0&&this._updateScrollLeftForScrollToColumn(oi({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(oi({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,u=n.scrollTop,c=n.scrollToRow,f=n.width,d=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),d.scrollbarSizeMeasured||this.setState(function(S){var g=oi({},S,{needToResetStyleCache:!1});return g.instanceProps.scrollbarSize=o(),g.instanceProps.scrollbarSizeMeasured=!0,g}),typeof a=="number"&&a>=0||typeof u=="number"&&u>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:u});p&&(p.needToResetStyleCache=!1,this.setState(p))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var y=i>0&&f>0;s>=0&&y&&this._updateScrollLeftForScrollToColumn(),c>=0&&y&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:u||0,totalColumnsWidth:d.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:d.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(n,o){var i=this,a=this.props,s=a.autoHeight,u=a.autoWidth,c=a.columnCount,f=a.height,d=a.rowCount,p=a.scrollToAlignment,y=a.scrollToColumn,S=a.scrollToRow,g=a.width,C=this.state,v=C.scrollLeft,b=C.scrollPositionChangeReason,_=C.scrollTop,k=C.instanceProps;this._handleInvalidatedGridSize();var T=c>0&&n.columnCount===0||d>0&&n.rowCount===0;b===Wp.REQUESTED&&(!u&&v>=0&&(v!==this._scrollingContainer.scrollLeft||T)&&(this._scrollingContainer.scrollLeft=v),!s&&_>=0&&(_!==this._scrollingContainer.scrollTop||T)&&(this._scrollingContainer.scrollTop=_));var E=(n.width===0||n.height===0)&&f>0&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Aw({cellSizeAndPositionManager:k.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:y,size:g,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Aw({cellSizeAndPositionManager:k.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:_,scrollToAlignment:p,scrollToIndex:S,size:f,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||_!==o.scrollTop){var x=k.rowSizeAndPositionManager.getTotalSize(),O=k.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:_,totalColumnsWidth:O,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Ha(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,u=n.containerProps,c=n.containerRole,f=n.containerStyle,d=n.height,p=n.id,y=n.noContentRenderer,S=n.role,g=n.style,C=n.tabIndex,v=n.width,b=this.state,_=b.instanceProps,k=b.needToResetStyleCache,T=this._isScrolling(),E={boxSizing:"border-box",direction:"ltr",height:i?"auto":d,position:"relative",width:a?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};k&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=_.columnSizeAndPositionManager.getTotalSize(),O=_.rowSizeAndPositionManager.getTotalSize(),I=O>d?_.scrollbarSize:0,j=x>v?_.scrollbarSize:0;(j!==this._horizontalScrollBarSize||I!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=j,this._verticalScrollBarSize=I,this._scrollbarPresenceChanged=!0),E.overflowX=x+I<=v?"hidden":"auto",E.overflowY=O+j<=d?"hidden":"auto";var M=this._childrenToDisplay,B=M.length===0&&d>0&&v>0;return N.createElement("div",ne({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:vn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:S,style:oi({},E,{},g),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:oi({width:o?"auto":x,height:O,maxWidth:x,maxHeight:O,overflow:"hidden",pointerEvents:T?"none":"",position:"relative"},f)},M),B&&y())}},{key:"_calculateChildrenToRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=n.cellRenderer,a=n.cellRangeRenderer,s=n.columnCount,u=n.deferredMeasurementCache,c=n.height,f=n.overscanColumnCount,d=n.overscanIndicesGetter,p=n.overscanRowCount,y=n.rowCount,S=n.width,g=n.isScrollingOptOut,C=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,b=o.instanceProps,_=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,k=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,T=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&S>0){var E=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:S,offset:k}),x=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:_}),O=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:S,offset:k}),I=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:_});this._renderedColumnStartIndex=E.start,this._renderedColumnStopIndex=E.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var j=d({direction:"horizontal",cellCount:s,overscanCellsCount:f,scrollDirection:C,startIndex:typeof E.start=="number"?E.start:0,stopIndex:typeof E.stop=="number"?E.stop:-1}),M=d({direction:"vertical",cellCount:y,overscanCellsCount:p,scrollDirection:v,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),B=j.overscanStartIndex,$=j.overscanStopIndex,D=M.overscanStartIndex,Z=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var ie=D;ie<=Z;ie++)if(!u.has(ie,0)){B=0,$=s-1;break}}if(!u.hasFixedWidth()){for(var de=B;de<=$;de++)if(!u.has(0,de)){D=0,Z=y-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:B,columnStopIndex:$,deferredMeasurementCache:u,horizontalOffsetAdjustment:O,isScrolling:T,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:D,rowStopIndex:Z,scrollLeft:k,scrollTop:_,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:E,visibleRowIndices:x}),this._columnStartIndex=B,this._columnStopIndex=$,this._rowStartIndex=D,this._rowStopIndex=Z}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ha(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=gy(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalColumnsWidth,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(f){var d=f.scrollLeft,p=f.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:u,scrollLeft:d,scrollTop:p,scrollWidth:s})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_isScrolling",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(n,"isScrolling")?!!n.isScrolling:!!o.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var n=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,n({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(n,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(n,o)}},{key:"_resetStyleCache",value:function(){var n=this._styleCache,o=this._cellCache,i=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var u="".concat(a,"-").concat(s);this._styleCache[u]=n[u],i&&(this._cellCache[u]=o[u])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i={};n.columnCount===0&&o.scrollLeft!==0||n.rowCount===0&&o.scrollTop!==0?(i.scrollLeft=0,i.scrollTop=0):(n.scrollLeft!==o.scrollLeft&&n.scrollToColumn<0||n.scrollTop!==o.scrollTop&&n.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}));var a=o.instanceProps;i.needToResetStyleCache=!1,(n.columnWidth!==a.prevColumnWidth||n.rowHeight!==a.prevRowHeight)&&(i.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:n.columnCount,estimatedCellSize:t._getEstimatedColumnSize(n),cellSizeGetter:t._wrapSizeGetter(n.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:n.rowCount,estimatedCellSize:t._getEstimatedRowSize(n),cellSizeGetter:t._wrapSizeGetter(n.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),n.autoHeight&&n.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(i,{isScrolling:!1});var s,u;return zw({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.columnCount,nextCellSize:typeof n.columnWidth=="number"?n.columnWidth:null,nextScrollToIndex:n.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollLeftForScrollToColumnStateUpdate(n,o)}}),zw({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.rowCount,nextCellSize:typeof n.rowHeight=="number"?n.rowHeight:null,nextScrollToIndex:n.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){u=t._getScrollTopForScrollToRowStateUpdate(n,o)}}),a.prevColumnCount=n.columnCount,a.prevColumnWidth=n.columnWidth,a.prevIsScrolling=n.isScrolling===!0,a.prevRowCount=n.rowCount,a.prevRowHeight=n.rowHeight,a.prevScrollToColumn=n.scrollToColumn,a.prevScrollToRow=n.scrollToRow,a.scrollbarSize=n.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,i.instanceProps=a,oi({},i,{},s,{},u)}},{key:"_getEstimatedColumnSize",value:function(n){return typeof n.columnWidth=="number"?n.columnWidth:n.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(n){return typeof n.rowHeight=="number"?n.rowHeight:n.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(n){var o=n.prevState,i=n.scrollLeft,a=n.scrollTop,s={scrollPositionChangeReason:Wp.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Jn:Du,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Jn:Du,s.scrollTop=a),typeof i=="number"&&i>=0&&i!==o.scrollLeft||typeof a=="number"&&a>=0&&a!==o.scrollTop?s:{}}},{key:"_wrapSizeGetter",value:function(n){return typeof n=="function"?n:function(){return n}}},{key:"_getCalculatedScrollLeft",value:function(n,o){var i=n.columnCount,a=n.height,s=n.scrollToAlignment,u=n.scrollToColumn,c=n.width,f=o.scrollLeft,d=o.instanceProps;if(i>0){var p=i-1,y=u<0?p:Math.min(p,u),S=d.rowSizeAndPositionManager.getTotalSize(),g=d.scrollbarSizeMeasured&&S>a?d.scrollbarSize:0;return d.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:f,targetIndex:y})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(n,o){var i=o.scrollLeft,a=t._getCalculatedScrollLeft(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(n,o){var i=n.height,a=n.rowCount,s=n.scrollToAlignment,u=n.scrollToRow,c=n.width,f=o.scrollTop,d=o.instanceProps;if(a>0){var p=a-1,y=u<0?p:Math.min(p,u),S=d.columnSizeAndPositionManager.getTotalSize(),g=d.scrollbarSizeMeasured&&S>c?d.scrollbarSize:0;return d.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:f,targetIndex:y})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(n,o){var i=o.scrollTop,a=t._getCalculatedScrollTop(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:a}):{}}}]),t}(N.PureComponent),F(Lw,"propTypes",null),$w);F(so,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:NP,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:hv,noContentRenderer:SF,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:zP,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:yF,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zl(so);var bF=1;function yy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===bF?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var Fw,Bw;function Ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function wF(e){for(var t=1;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',j=O.head||O.getElementsByTagName("head")[0],M=O.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(O.createTextNode(I)),j.appendChild(M)}},T=function(O,I){if(n)O.attachEvent("onresize",I);else{if(!O.__resizeTriggers__){var j=O.ownerDocument,M=r.getComputedStyle(O);M&&M.position=="static"&&(O.style.position="relative"),k(j),O.__resizeLast__={},O.__resizeListeners__=[],(O.__resizeTriggers__=j.createElement("div")).className="resize-triggers";var B='
';if(window.trustedTypes){var $=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return B}});O.__resizeTriggers__.innerHTML=$.createHTML("")}else O.__resizeTriggers__.innerHTML=B;O.appendChild(O.__resizeTriggers__),a(O),O.addEventListener("scroll",u,!0),d&&(O.__resizeTriggers__.__animationListener__=function(Z){Z.animationName==v&&a(O)},O.__resizeTriggers__.addEventListener(d,O.__resizeTriggers__.__animationListener__))}O.__resizeListeners__.push(I)}},E=function(O,I){if(n)O.detachEvent("onresize",I);else if(O.__resizeListeners__.splice(O.__resizeListeners__.indexOf(I),1),!O.__resizeListeners__.length){O.removeEventListener("scroll",u,!0),O.__resizeTriggers__.__animationListener__&&(O.__resizeTriggers__.removeEventListener(d,O.__resizeTriggers__.__animationListener__),O.__resizeTriggers__.__animationListener__=null);try{O.__resizeTriggers__=!O.removeChild(O.__resizeTriggers__)}catch{}}};return{addResizeListener:T,removeResizeListener:E}}var Uw,Hw;function qw(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 _F(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};dt(this,e),F(this,"_cellHeightCache",{}),F(this,"_cellWidthCache",{}),F(this,"_columnWidthCache",{}),F(this,"_rowHeightCache",{}),F(this,"_defaultHeight",void 0),F(this,"_defaultWidth",void 0),F(this,"_minHeight",void 0),F(this,"_minWidth",void 0),F(this,"_keyMapper",void 0),F(this,"_hasFixedHeight",void 0),F(this,"_hasFixedWidth",void 0),F(this,"_columnCount",0),F(this,"_rowCount",0),F(this,"columnWidth",function(f){var d=f.index,p=t._keyMapper(0,d);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),F(this,"rowHeight",function(f){var d=f.index,p=t._keyMapper(d,0);return t._rowHeightCache[p]!==void 0?t._rowHeightCache[p]:t._defaultHeight});var n=r.defaultHeight,o=r.defaultWidth,i=r.fixedHeight,a=r.fixedWidth,s=r.keyMapper,u=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=s||kF,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:xF),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:CF)}return gt(e,[{key:"clear",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(r,n)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(r,n);return this._cellWidthCache[o]!==void 0?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0}},{key:"set",value:function(r,n,o,i){var a=this._keyMapper(r,n);n>=this._columnCount&&(this._columnCount=n+1),r>=this._rowCount&&(this._rowCount=r+1),this._cellHeightCache[a]=i,this._cellWidthCache[a]=o,this._updateCachedColumnAndRowSizes(r,n)}},{key:"_updateCachedColumnAndRowSizes",value:function(r,n){if(!this._hasFixedWidth){for(var o=0,i=0;i=0){var C=u.getScrollPositionForCell({align:f,cellIndex:d,height:c,scrollLeft:S,scrollTop:g,width:p});(C.scrollLeft!==S||C.scrollTop!==g)&&n._setScrollPosition(C)}}),F(Q(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var u=n.props,c=u.cellLayoutManager,f=u.height,d=u.isScrollingChange,p=u.width,y=n._scrollbarSize,S=c.getTotalSize(),g=S.height,C=S.width,v=Math.max(0,Math.min(C-p+y,s.target.scrollLeft)),b=Math.max(0,Math.min(g-f+y,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==b){var _=s.cancelable?ea.OBSERVED:ea.REQUESTED;n.state.isScrolling||d(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:_,scrollTop:b})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalWidth:C,totalHeight:g})}}),n._scrollbarSize=hv(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return gt(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var n=this.props,o=n.cellLayoutManager,i=n.scrollLeft,a=n.scrollToCell,s=n.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=hv(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var u=o.getTotalSize(),c=u.height,f=u.width;this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalHeight:c,totalWidth:f})}},{key:"componentDidUpdate",value:function(n,o){var i=this.props,a=i.height,s=i.scrollToAlignment,u=i.scrollToCell,c=i.width,f=this.state,d=f.scrollLeft,p=f.scrollPositionChangeReason,y=f.scrollTop;p===ea.REQUESTED&&(d>=0&&d!==o.scrollLeft&&d!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=d),y>=0&&y!==o.scrollTop&&y!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=y)),(a!==n.height||s!==n.scrollToAlignment||u!==n.scrollToCell||c!==n.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoHeight,i=n.cellCount,a=n.cellLayoutManager,s=n.className,u=n.height,c=n.horizontalOverscanSize,f=n.id,d=n.noContentRenderer,p=n.style,y=n.verticalOverscanSize,S=n.width,g=this.state,C=g.isScrolling,v=g.scrollLeft,b=g.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var _=a.getTotalSize(),k=_.height,T=_.width,E=Math.max(0,v-c),x=Math.max(0,b-y),O=Math.min(T,v+S+c),I=Math.min(k,b+u+y),j=u>0&&S>0?a.cellRenderers({height:I-x,isScrolling:C,width:O-E,x:E,y:x}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:S,willChange:"transform"},B=k>u?this._scrollbarSize:0,$=T>S?this._scrollbarSize:0;return M.overflowX=T+B<=S?"hidden":"auto",M.overflowY=k+$<=u?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:vn("ReactVirtualized__Collection",s),id:f,onScroll:this._onScroll,role:"grid",style:PF({},M,{},p),tabIndex:0},i>0&&N.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:k,maxHeight:k,maxWidth:T,overflow:"hidden",pointerEvents:C?"none":"",width:T}},j),i===0&&d())}},{key:"_enablePointerEventsAfterDelay",value:function(){var n=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var o=n.props.isScrollingChange;o(!1),n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1})},TF)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,u=n.totalWidth;this._onScrollMemoizer({callback:function(f){var d=f.scrollLeft,p=f.scrollTop,y=o.props,S=y.height,g=y.onScroll,C=y.width;g({clientHeight:S,clientWidth:C,scrollHeight:s,scrollLeft:d,scrollTop:p,scrollWidth:u})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:ea.REQUESTED};o>=0&&(a.scrollLeft=o),i>=0&&(a.scrollTop=i),(o>=0&&o!==this.state.scrollLeft||i>=0&&i!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.cellCount===0&&(o.scrollLeft!==0||o.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ea.REQUESTED}:n.scrollLeft!==o.scrollLeft||n.scrollTop!==o.scrollTop?{scrollLeft:n.scrollLeft!=null?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null?n.scrollTop:o.scrollTop,scrollPositionChangeReason:ea.REQUESTED}:null}}]),t}(N.PureComponent);F(Ad,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});Ad.propTypes={};Zl(Ad);var EF=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;dt(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gt(e,[{key:"addCellIndex",value:function(r){var n=r.index;this._indexMap[n]||(this._indexMap[n]=!0,this._indices.push(n))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),OF=100,IF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OF;dt(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gt(e,[{key:"getCellIndices",value:function(r){var n=r.height,o=r.width,i=r.x,a=r.y,s={};return this.getSections({height:n,width:o,x:i,y:a}).forEach(function(u){return u.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(u){return s[u]})}},{key:"getCellMetadata",value:function(r){var n=r.index;return this._cellMetadata[n]}},{key:"getSections",value:function(r){for(var n=r.height,o=r.width,i=r.x,a=r.y,s=Math.floor(i/this._sectionSize),u=Math.floor((i+o-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),f=Math.floor((a+n-1)/this._sectionSize),d=[],p=s;p<=u;p++)for(var y=c;y<=f;y++){var S="".concat(p,".").concat(y);this._sections[S]||(this._sections[S]=new EF({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:y*this._sectionSize})),d.push(this._sections[S])}return d}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var r=this;return Object.keys(this._sections).map(function(n){return r._sections[n].toString()})}},{key:"registerCell",value:function(r){var n=r.cellMetadatum,o=r.index;this._cellMetadata[o]=n,this.getSections(n).forEach(function(i){return i.addCellIndex({index:o})})}}]),e}();function jF(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new IF(n),a=0,s=0,u=0;u=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var S=y.startIndex-1;if(!t({index:S}))y.startIndex=S;else break}return a}function FF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}var Qw,Xw,FP=(Xw=Qw=function(e){mr(t,e);function t(){var r,n;dt(this,t);for(var o=arguments.length,i=new Array(o),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:0})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"render",value:function(){var n=this.props,o=n.className,i=n.noRowsRenderer,a=n.scrollToIndex,s=n.width,u=vn("ReactVirtualized__List",o);return N.createElement(so,ne({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:u,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),F(Qw,"propTypes",null),Xw);F(FP,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:yy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function BF(e){if(Array.isArray(e))return e}function WF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function UF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HF(e,t){return BF(e)||WF(e,t)||DP(e,t)||UF()}function qF(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>=n?(o=i,r=i-1):t=i+1}return o}function GF(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>=0?(i=a,r=a-1):t=a+1}return i}function VF(e,t,r,n,o){return typeof r=="function"?GF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):qF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function KF(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>n?(o=i,r=i-1):t=i+1}return o}function YF(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>0?(i=a,r=a-1):t=a+1}return i}function QF(e,t,r,n,o){return typeof r=="function"?YF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):KF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function XF(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a>>1,s=e[a];o(s,n)<0?(i=a,t=a+1):r=a-1}return i}function ZF(e,t,r,n,o){return typeof r=="function"?JF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):XF(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function eB(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a<=n?(o=i,t=i+1):r=i-1}return o}function tB(e,t,r,n,o){for(var i=t-1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)<=0?(i=a,t=a+1):r=a-1}return i}function rB(e,t,r,n,o){return typeof r=="function"?tB(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):eB(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function nB(e,t,r,n){for(;t<=r;){var o=t+r>>>1,i=e[o];if(i===n)return o;i<=n?t=o+1:r=o-1}return-1}function oB(e,t,r,n,o){for(;t<=r;){var i=t+r>>>1,a=e[i],s=o(a,n);if(s===0)return i;s<=0?t=i+1:r=i-1}return-1}function iB(e,t,r,n,o){return typeof r=="function"?oB(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):nB(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const ff={ge:VF,gt:QF,lt:ZF,le:rB,eq:iB};var ga=0,ci=1,mc=2;function _y(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var eu=_y.prototype;function Up(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function BP(e,t){var r=qa(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Jw(e,t){var r=e.intervals([]);r.push(t),BP(e,r)}function Zw(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?ga:(r.splice(n,1),BP(e,r),ci)}eu.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};eu.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Jw(this,e):this.left.insert(e):this.left=qa([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Jw(this,e):this.right.insert(e):this.right=qa([e]);else{var r=ff.ge(this.leftPoints,e,xy),n=ff.ge(this.rightPoints,e,Cy);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};eu.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Zw(this,e);var n=this.left.remove(e);return n===mc?(this.left=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return ga;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Zw(this,e);var n=this.right.remove(e);return n===mc?(this.right=null,this.count-=1,ci):(n===ci&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?mc:ga;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var i=this,a=this.left;a.right;)i=a,a=a.right;if(i===this)a.right=this.right;else{var s=this.left,n=this.right;i.count-=a.count,i.right=a.left,a.left=s,a.right=n}Up(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Up(this,this.left):Up(this,this.right);return ci}for(var s=ff.ge(this.leftPoints,e,xy);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function HP(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return UP(this.rightPoints,e,t)}else return HP(this.leftPoints,t)};eu.queryInterval=function(e,t,r){if(ethis.mid&&this.right){var n=this.right.queryInterval(e,t,r);if(n)return n}return tthis.mid?UP(this.rightPoints,e,r):HP(this.leftPoints,r)};function aB(e,t){return e-t}function xy(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Cy(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function qa(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(j=D,M=D):(j=Math.min(j,D),M=Math.max(M,D)),E.push(u({index:D,isScrolling:k,key:p(D),parent:n,style:(de={height:s.getHeight(D)},F(de,b==="ltr"?"left":"right",Z),F(de,"position","absolute"),F(de,"top",ie),F(de,"width",s.getWidth(D)),de)}))}),O0&&arguments[0]!==void 0?arguments[0]:{};dt(this,e),F(this,"_cellMeasurerCache",void 0),F(this,"_columnIndexOffset",void 0),F(this,"_rowIndexOffset",void 0),F(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),F(this,"rowHeight",function(u){var c=u.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=o===void 0?0:o,a=r.rowIndexOffset,s=a===void 0?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=s}return gt(e,[{key:"clear",value:function(r,n){this._cellMeasurerCache.clear(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"set",value:function(r,n,o,i){this._cellMeasurerCache.set(r+this._rowIndexOffset,n+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function o_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t0?new qp({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new qp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new qp({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return gt(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,s):s}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,u=this.props,c=u.fixedColumnCount,f=u.fixedRowCount,d=Math.max(0,i-c),p=Math.max(0,s-f);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:p}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:d,rowIndex:p}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:s}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:d,rowIndex:s}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var n=this.props,o=n.scrollLeft,i=n.scrollTop;if(o>0||i>0){var a={};o>0&&(a.scrollLeft=o),i>0&&(a.scrollTop=i),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var n=this.props,o=n.onScroll,i=n.onSectionRendered;n.onScrollbarPresenceChange,n.scrollLeft;var a=n.scrollToColumn;n.scrollTop;var s=n.scrollToRow,u=Fs(n,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,f=c.scrollLeft,d=c.scrollTop;return N.createElement("div",{style:this._containerOuterStyle},N.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(u),this._renderTopRightGrid(Qt({},u,{onScroll:o,scrollLeft:f}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qt({},u,{onScroll:o,scrollTop:d})),this._renderBottomRightGrid(Qt({},u,{onScroll:o,onSectionRendered:i,scrollLeft:f,scrollToColumn:a,scrollToRow:s,scrollTop:d}))))}},{key:"_getBottomGridHeight",value:function(n){var o=n.height,i=this._getTopGridHeight(n);return o-i}},{key:"_getLeftGridWidth",value:function(n){var o=n.fixedColumnCount,i=n.columnWidth;if(this._leftGridWidth==null)if(typeof i=="function"){for(var a=0,s=0;s=0?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null&&n.scrollTop>=0?n.scrollTop:o.scrollTop}:null}}]),t}(N.PureComponent);F(Md,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Md.propTypes={};Zl(Md);var qP=function(e){mr(t,e);function t(r,n){var o;return dt(this,t),o=pr(this,Ht(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Q(o)),o}return gt(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,u=o.scrollLeft,c=o.scrollTop,f=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:u,scrollTop:c,scrollWidth:f})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,u=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:u,scrollWidth:c})}}]),t}(N.PureComponent);qP.propTypes={};function hB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.defaultSortBy,n=t.defaultSortDirection,o=n===void 0?{}:n;if(!e)throw Error('Required parameter "sortCallback" not specified');var i=r||[],a={};i.forEach(function(u){a[u]=o[u]!==void 0?o[u]:"ASC"});function s(u){var c=u.defaultSortDirection,f=u.event,d=u.sortBy;if(f.shiftKey)a[d]!==void 0?a[d]=a[d]==="ASC"?"DESC":"ASC":(a[d]=c,i.push(d));else if(f.ctrlKey||f.metaKey){var p=i.indexOf(d);p>=0&&(i.splice(p,1),delete a[d])}else{i.length=0,i.push(d);var y=Object.keys(a);y.forEach(function(S){S!==d&&delete a[S]}),a[d]!==void 0?a[d]=a[d]==="ASC"?"DESC":"ASC":a[d]=c}e({sortBy:i,sortDirection:a})}return{sort:s,sortBy:i,sortDirection:a}}function GP(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function VP(e){var t=e.cellData;return t==null?"":String(t)}function ky(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}ky.propTypes=null;var lo={ASC:"ASC",DESC:"DESC"};function Py(e){var t=e.sortDirection,r=vn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===lo.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===lo.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===lo.ASC?N.createElement("path",{d:"M7 14l5-5 5 5z"}):N.createElement("path",{d:"M7 10l5 5 5-5z"}),N.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}Py.propTypes={};function Ty(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[N.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return i&&a.push(N.createElement(Py,{key:"SortIndicator",sortDirection:o})),a}Ty.propTypes=null;function Ey(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,f=e.rowData,d=e.style,p={"aria-rowindex":n+1};return(i||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(y){return i({event:y,index:n,rowData:f})}),a&&(p.onDoubleClick=function(y){return a({event:y,index:n,rowData:f})}),s&&(p.onMouseOut=function(y){return s({event:y,index:n,rowData:f})}),u&&(p.onMouseOver=function(y){return u({event:y,index:n,rowData:f})}),c&&(p.onContextMenu=function(y){return c({event:y,index:n,rowData:f})})),N.createElement("div",ne({},p,{className:t,key:o,role:"row",style:d}),r)}Ey.propTypes=null;var Oy=function(e){mr(t,e);function t(){return dt(this,t),pr(this,Ht(t).apply(this,arguments))}return t}(N.Component);F(Oy,"defaultProps",{cellDataGetter:GP,cellRenderer:VP,defaultSortDirection:lo.ASC,flexGrow:0,flexShrink:1,headerRenderer:Ty,style:{}});Oy.propTypes={};function a_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var n=Wl.findDOMNode(this.Grid),o=n.clientWidth||0,i=n.offsetWidth||0;return i-o}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var n=this,o=this.props,i=o.children,a=o.className,s=o.disableHeader,u=o.gridClassName,c=o.gridStyle,f=o.headerHeight,d=o.headerRowRenderer,p=o.height,y=o.id,S=o.noRowsRenderer,g=o.rowClassName,C=o.rowStyle,v=o.scrollToIndex,b=o.style,_=o.width,k=this.state.scrollbarWidth,T=s?p:p-f,E=typeof g=="function"?g({index:-1}):g,x=typeof C=="function"?C({index:-1}):C;return this._cachedColumnStyles=[],N.Children.toArray(i).forEach(function(O,I){var j=n._getFlexStyleForColumn(O,O.props.style);n._cachedColumnStyles[I]=ta({overflow:"hidden"},j)}),N.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":N.Children.toArray(i).length,"aria-rowcount":this.props.rowCount,className:vn("ReactVirtualized__Table",a),id:y,role:"grid",style:b},!s&&d({className:vn("ReactVirtualized__Table__headerRow",E),columns:this._getHeaderColumns(),style:ta({height:f,overflow:"hidden",paddingRight:k,width:_},x)}),N.createElement(so,ne({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:vn("ReactVirtualized__Table__Grid",u),cellRenderer:this._createRow,columnWidth:_,columnCount:1,height:T,id:void 0,noContentRenderer:S,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:k,scrollToRow:v,style:ta({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,u=n.rowData,c=n.rowIndex,f=this.props.onColumnClick,d=o.props,p=d.cellDataGetter,y=d.cellRenderer,S=d.className,g=d.columnData,C=d.dataKey,v=d.id,b=p({columnData:g,dataKey:C,rowData:u}),_=y({cellData:b,columnData:g,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:u,rowIndex:c}),k=function(O){f&&f({columnData:g,dataKey:C,event:O})},T=this._cachedColumnStyles[i],E=typeof _=="string"?_:null;return N.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:vn("ReactVirtualized__Table__rowColumn",S),key:"Row"+c+"-Col"+i,onClick:k,role:"gridcell",style:T,title:E},_)}},{key:"_createHeader",value:function(n){var o=n.column,i=n.index,a=this.props,s=a.headerClassName,u=a.headerStyle,c=a.onHeaderClick,f=a.sort,d=a.sortBy,p=a.sortDirection,y=o.props,S=y.columnData,g=y.dataKey,C=y.defaultSortDirection,v=y.disableSort,b=y.headerRenderer,_=y.id,k=y.label,T=!v&&f,E=vn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),x=this._getFlexStyleForColumn(o,ta({},u,{},o.props.headerStyle)),O=b({columnData:S,dataKey:g,disableSort:v,label:k,sortBy:d,sortDirection:p}),I,j,M,B,$;if(T||c){var D=d!==g,Z=D?C:p===lo.DESC?lo.ASC:lo.DESC,ie=function(te){T&&f({defaultSortDirection:C,event:te,sortBy:g,sortDirection:Z}),c&&c({columnData:S,dataKey:g,event:te})},de=function(te){(te.key==="Enter"||te.key===" ")&&ie(te)};$=o.props["aria-label"]||k||g,B="none",M=0,I=ie,j=de}return d===g&&(B=p===lo.ASC?"ascending":"descending"),N.createElement("div",{"aria-label":$,"aria-sort":B,className:E,id:_,key:"Header-Col"+i,onClick:I,onKeyDown:j,role:"columnheader",style:x,tabIndex:M},O)}},{key:"_createRow",value:function(n){var o=this,i=n.rowIndex,a=n.isScrolling,s=n.key,u=n.parent,c=n.style,f=this.props,d=f.children,p=f.onRowClick,y=f.onRowDoubleClick,S=f.onRowRightClick,g=f.onRowMouseOver,C=f.onRowMouseOut,v=f.rowClassName,b=f.rowGetter,_=f.rowRenderer,k=f.rowStyle,T=this.state.scrollbarWidth,E=typeof v=="function"?v({index:i}):v,x=typeof k=="function"?k({index:i}):k,O=b({index:i}),I=N.Children.toArray(d).map(function(B,$){return o._createColumn({column:B,columnIndex:$,isScrolling:a,parent:u,rowData:O,rowIndex:i,scrollbarWidth:T})}),j=vn("ReactVirtualized__Table__row",E),M=ta({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:T},x);return _({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:y,onRowRightClick:S,onRowMouseOver:g,onRowMouseOut:C,rowData:O,style:M})}},{key:"_getFlexStyleForColumn",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i="".concat(n.props.flexGrow," ").concat(n.props.flexShrink," ").concat(n.props.width,"px"),a=ta({},o,{flex:i,msFlex:i,WebkitFlex:i});return n.props.maxWidth&&(a.maxWidth=n.props.maxWidth),n.props.minWidth&&(a.minWidth=n.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var n=this,o=this.props,i=o.children,a=o.disableHeader,s=a?[]:N.Children.toArray(i);return s.map(function(u,c){return n._createHeader({column:u,index:c})})}},{key:"_getRowHeight",value:function(n){var o=this.props.rowHeight;return typeof o=="function"?o({index:n}):o}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.scrollHeight,a=n.scrollTop,s=this.props.onScroll;s({clientHeight:o,scrollHeight:i,scrollTop:a})}},{key:"_onSectionRendered",value:function(n){var o=n.rowOverscanStartIndex,i=n.rowOverscanStopIndex,a=n.rowStartIndex,s=n.rowStopIndex,u=this.props.onRowsRendered;u({overscanStartIndex:o,overscanStopIndex:i,startIndex:a,stopIndex:s})}},{key:"_setRef",value:function(n){this.Grid=n}},{key:"_setScrollbarWidth",value:function(){var n=this.getScrollbarWidth();this.setState({scrollbarWidth:n})}}]),t}(N.PureComponent);F(Iy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:yy,overscanRowCount:10,rowRenderer:Ey,headerRowRenderer:ky,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});Iy.propTypes={};var Wo=[],tl=null,Si=null;function KP(){Si&&(Si=null,document.body&&tl!=null&&(document.body.style.pointerEvents=tl),tl=null)}function pB(){KP(),Wo.forEach(function(e){return e.__resetIsScrolling()})}function mB(){Si&&Ha(Si);var e=0;Wo.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Si=gy(pB,e)}function YP(e){e.currentTarget===window&&tl==null&&document.body&&(tl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),mB(),Wo.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function s_(e,t){Wo.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",YP),Wo.push(e)}function l_(e,t){Wo=Wo.filter(function(r){return r!==e}),Wo.length||(t.removeEventListener("scroll",YP),Si&&(Ha(Si),KP()))}var jy=function(t){return t===window},Bs=function(t){return t.getBoundingClientRect()};function u_(e,t){if(e)if(jy(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:typeof n=="number"?n:0,width:typeof o=="number"?o:0}}else return Bs(e);else return{height:t.serverHeight,width:t.serverWidth}}function vB(e,t){if(jy(t)&&document.documentElement){var r=document.documentElement,n=Bs(e),o=Bs(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=QP(t),a=Bs(e),s=Bs(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function QP(e){return jy(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}var c_,f_;function d_(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 gB(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,o=this.props.onResize,i=this.state,a=i.height,s=i.width,u=this._child||Wl.findDOMNode(this);if(u instanceof Element&&n){var c=vB(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var f=u_(n,this.props);(a!==f.height||s!==f.width)&&(this.setState({height:f.height,width:f.width}),o({height:f.height,width:f.width}))}},{key:"componentDidMount",value:function(){var n=this.props.scrollElement;this._detectElementResize=AP(),this.updatePosition(n),n&&(s_(this,n),this._registerResizeListener(n)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(n,o){var i=this.props.scrollElement,a=n.scrollElement;a!==i&&a!=null&&i!=null&&(this.updatePosition(i),l_(this,a),s_(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(l_(this,n),this._unregisterResizeListener(n)),this._isMounted=!1}},{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.isScrolling,a=o.scrollTop,s=o.scrollLeft,u=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:u,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),F(c_,"propTypes",null),f_);F(JP,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:yB,scrollElement:XP(),serverHeight:0,serverWidth:0});const SB=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:Sy,AutoSizer:MP,CellMeasurer:LP,CellMeasurerCache:RF,Collection:by,Column:Oy,ColumnSizer:$P,Grid:so,InfiniteLoader:wy,List:FP,Masonry:Ry,MultiGrid:Md,ScrollSync:qP,SortDirection:lo,SortIndicator:Py,Table:Iy,WindowScroller:JP,accessibilityOverscanIndicesGetter:yy,createMasonryCellPositioner:dB,createTableMultiSort:hB,defaultCellRangeRenderer:NP,defaultOverscanIndicesGetter:zP,defaultTableCellDataGetter:GP,defaultTableCellRenderer:VP,defaultTableHeaderRenderer:Ty,defaultTableHeaderRowRenderer:ky,defaultTableRowRenderer:Ey},Symbol.toStringTag,{value:"Module"})),bB=Ja(SB);function no(e,t,r){return t<=e&&e<=r}function Ld(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function wB(e){for(var t=String(e),r=t.length,n=0,o=[];n57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(n===r-1)o.push(65533);else{var a=e.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=i&1023,u=a&1023;o.push(65536+(s<<10)+u),n+=1}else o.push(65533)}n+=1}return o}function _B(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var df=-1;function zy(e){this.tokens=[].slice.call(e)}zy.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():df},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Ga=-1;function Gp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var hf="utf-8";function pf(e,t){if(!(this instanceof pf))return new pf(e,t);if(e=e!==void 0?String(e).toLowerCase():hf,e!==hf)throw new Error("Encoding not supported. Only utf-8 is supported");t=Ld(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}pf.prototype={decode:function(t,r){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),r=Ld(r),this._streaming||(this._decoder=new xB({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new zy(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==Ga);)a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));if(!this._streaming){do{if(a=this._decoder.handler(o,o.read()),a===Ga)break;a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),_B(i)}};function mf(e,t){if(!(this instanceof mf))return new mf(e,t);if(e=e!==void 0?String(e).toLowerCase():hf,e!==hf)throw new Error("Encoding not supported. Only utf-8 is supported");t=Ld(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}mf.prototype={encode:function(t,r){t=t?String(t):"",r=Ld(r),this._streaming||(this._encoder=new CB(this._options)),this._streaming=!!r.stream;for(var n=[],o=new zy(wB(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Ga);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Ga;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function xB(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===df&&o!==0)return o=0,Gp(t);if(u===df)return Ga;if(o===0){if(no(u,0,127))return u;if(no(u,194,223))o=1,r=u-192;else if(no(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(no(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Gp(t);return r=r<<6*o,null}if(!no(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Gp(t);if(i=128,a=191,n+=1,r+=u-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function CB(e){e.fatal,this.handler=function(t,r){if(r===df)return Ga;if(no(r,0,127))return r;var n,o;no(r,128,2047)?(n=1,o=192):no(r,2048,65535)?(n=2,o=224):no(r,65536,1114111)&&(n=3,o=240);for(var i=[(r>>6*n)+o];n>0;){var a=r>>6*(n-1);i.push(128|a&63),n-=1}return i}}const RB=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:pf,TextEncoder:mf},Symbol.toStringTag,{value:"Module"})),kB=Ja(RB);var h_={},p_;function PB(){return p_||(p_=1,function(e){if(e.fetch)return;var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(x){return x&&DataView.prototype.isPrototypeOf(x)},o=ArrayBuffer.isView||function(x){return x&&r.indexOf(Object.prototype.toString.call(x))>-1};function i(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(x))throw new TypeError("Invalid character in header field name");return x.toLowerCase()}function a(x){return typeof x!="string"&&(x=String(x)),x}function s(x){var O={next:function(){var I=x.shift();return{done:I===void 0,value:I}}};return t.iterable&&(O[Symbol.iterator]=function(){return O}),O}function u(x){this.map={},x instanceof u?x.forEach(function(O,I){this.append(I,O)},this):Array.isArray(x)?x.forEach(function(O){this.append(O[0],O[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(O){this.append(O,x[O])},this)}u.prototype.append=function(x,O){x=i(x),O=a(O);var I=this.map[x];this.map[x]=I?I+","+O:O},u.prototype.delete=function(x){delete this.map[i(x)]},u.prototype.get=function(x){return x=i(x),this.has(x)?this.map[x]:null},u.prototype.has=function(x){return this.map.hasOwnProperty(i(x))},u.prototype.set=function(x,O){this.map[i(x)]=a(O)},u.prototype.forEach=function(x,O){for(var I in this.map)this.map.hasOwnProperty(I)&&x.call(O,this.map[I],I,this)},u.prototype.keys=function(){var x=[];return this.forEach(function(O,I){x.push(I)}),s(x)},u.prototype.values=function(){var x=[];return this.forEach(function(O){x.push(O)}),s(x)},u.prototype.entries=function(){var x=[];return this.forEach(function(O,I){x.push([I,O])}),s(x)},t.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function c(x){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}function f(x){return new Promise(function(O,I){x.onload=function(){O(x.result)},x.onerror=function(){I(x.error)}})}function d(x){var O=new FileReader,I=f(O);return O.readAsArrayBuffer(x),I}function p(x){var O=new FileReader,I=f(O);return O.readAsText(x),I}function y(x){for(var O=new Uint8Array(x),I=new Array(O.length),j=0;j-1?O:x}function b(x,O){O=O||{};var I=O.body;if(x instanceof b){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,O.headers||(this.headers=new u(x.headers)),this.method=x.method,this.mode=x.mode,!I&&x._bodyInit!=null&&(I=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=O.credentials||this.credentials||"omit",(O.headers||!this.headers)&&(this.headers=new u(O.headers)),this.method=v(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(I)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function _(x){var O=new FormData;return x.trim().split("&").forEach(function(I){if(I){var j=I.split("="),M=j.shift().replace(/\+/g," "),B=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(M),decodeURIComponent(B))}}),O}function k(x){var O=new u,I=x.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(j){var M=j.split(":"),B=M.shift().trim();if(B){var $=M.join(":").trim();O.append(B,$)}}),O}g.call(b.prototype);function T(x,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new u(O.headers),this.url=O.url||"",this._initBody(x)}g.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var x=new T(null,{status:0,statusText:""});return x.type="error",x};var E=[301,302,303,307,308];T.redirect=function(x,O){if(E.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:x}})},e.Headers=u,e.Request=b,e.Response=T,e.fetch=function(x,O){return new Promise(function(I,j){var M=new b(x,O),B=new XMLHttpRequest;B.onload=function(){var $={status:B.status,statusText:B.statusText,headers:k(B.getAllResponseHeaders()||"")};$.url="responseURL"in B?B.responseURL:$.headers.get("X-Request-URL");var D="response"in B?B.response:B.responseText;I(new T(D,$))},B.onerror=function(){j(new TypeError("Network request failed"))},B.ontimeout=function(){j(new TypeError("Network request failed"))},B.open(M.method,M.url,!0),M.credentials==="include"?B.withCredentials=!0:M.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&t.blob&&(B.responseType="blob"),M.headers.forEach(function($,D){B.setRequestHeader(D,$)}),B.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:fi)),h_}function m_(e,t){for(var r=0;r0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Xy(this)}},Kn(e,[{key:"closed",get:function(){return vi(this)===!1?Promise.reject(Uu("closed")):this._closedPromise}}]),e}(),e6=function(){function e(r){if(!eo(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(oa(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Oo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");RT(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(xf("cancel")):kT(this,n):Promise.reject(Hu("cancel"))},t.read=function(n){return Us(this)?this._ownerReadableStream===void 0?Promise.reject(xf("read from")):ArrayBuffer.isView(n)?yf(n.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):n.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):t6(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(Hu("read"))},t.releaseLock=function(){if(!Us(this))throw Hu("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Xy(this)}},Kn(e,[{key:"closed",get:function(){return Us(this)?this._closedPromise:Promise.reject(Hu("closed"))}}]),e}();function Us(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function vi(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function RT(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?m6(e):t._state==="closed"?g6(e):(v6(e,t._storedError),e._closedPromise.catch(function(){}))}function kT(e,t){var r=e._ownerReadableStream;return bi(r,t)}function Xy(e){e._ownerReadableStream._state==="readable"?FT(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):y6(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function t6(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):i6(n._readableStreamController,t,r)}function Jy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Vo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[qy](t)}var PT=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Wu(this)===!1)throw qu("close");if(_f(this)===!1)throw new TypeError("The stream is not in a state that permits close");bf(this)},t.enqueue=function(n){if(Wu(this)===!1)throw qu("enqueue");if(_f(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return wf(this,n)},t.error=function(n){if(Wu(this)===!1)throw qu("error");Ko(this,n)},t[Hy]=function(r){us(this);var n=this._cancelAlgorithm(r);return Sf(this),n},t[qy]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=WW(this);return this._closeRequested===!0&&this._queue.length===0?(Sf(this),ru(n)):Ol(this),Promise.resolve(Vo(o,!1,r))}var i=wT(n,r);return Ol(this),i},Kn(e,[{key:"desiredSize",get:function(){if(Wu(this)===!1)throw qu("desiredSize");return Zy(this)}}]),e}();function Wu(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function Ol(e){var t=TT(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){if(e._pulling=!1,e._pullAgain===!0)return e._pullAgain=!1,Ol(e)},function(n){Ko(e,n)}).catch(oo)}}function TT(e){var t=e._controlledReadableStream;if(_f(e)===!1||e._started===!1)return!1;if(Oo(t)===!0&&Wd(t)>0)return!0;var r=Zy(e);return r>0}function Sf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function bf(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(Sf(e),ru(t))}function wf(e,t){var r=e._controlledReadableStream;if(Oo(r)===!0&&Wd(r)>0)Yy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Ko(e,o),o}try{UW(e,t,n)}catch(o){throw Ko(e,o),o}}Ol(e)}function Ko(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(us(e),Sf(e),_T(r,t))}function Zy(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function r6(e){return TT(e)!==!0}function _f(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function ET(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,us(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=o,e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,Ol(t)},function(u){Ko(t,u)}).catch(oo)}function n6(e,t,r,n){var o=Object.create(PT.prototype);function i(){return bT(t,"start",[o])}var a=gf(t,"pull",0,[o]),s=gf(t,"cancel",1,[]);ET(e,o,i,a,s,r,n)}var o6=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(Qp(this)===!1)throw Xp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(yf(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");f6(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(Qp(this)===!1)throw Xp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(n))throw new TypeError("You can only respond with array buffer views");if(yf(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");d6(this._associatedReadableByteStreamController,n)},Kn(e,[{key:"view",get:function(){if(Qp(this)===!1)throw Xp("view");return this._view}}]),e}(),OT=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(oa(this)===!1)throw Os("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var n=this._controlledReadableByteStream._state;if(n!=="readable")throw new TypeError("The stream (in "+n+" state) is not in the readable state and cannot be closed");u6(this)},t.enqueue=function(n){if(oa(this)===!1)throw Os("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var o=this._controlledReadableByteStream._state;if(o!=="readable")throw new TypeError("The stream (in "+o+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(n))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(yf(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");c6(this,n)},t.error=function(n){if(oa(this)===!1)throw Os("error");nu(this,n)},t[Hy]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}us(this);var o=this._cancelAlgorithm(r);return Ud(this),o},t[qy]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,AT(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(f){return Promise.reject(f)}return Promise.resolve(Vo(i,!1,r))}var a=this._autoAllocateChunkSize;if(a!==void 0){var s;try{s=new ArrayBuffer(a)}catch(f){return Promise.reject(f)}var u={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(u)}var c=wT(n,r);return $i(this),c},Kn(e,[{key:"byobRequest",get:function(){if(oa(this)===!1)throw Os("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0],o=new Uint8Array(n.buffer,n.byteOffset+n.bytesFilled,n.byteLength-n.bytesFilled),i=Object.create(o6.prototype);p6(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(oa(this)===!1)throw Os("desiredSize");return $T(this)}}]),e}();function oa(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function Qp(e){return!(!ls(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function $i(e){var t=l6(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,$i(e))},function(n){nu(e,n)}).catch(oo)}}function IT(e){t0(e),e._pendingPullIntos=[]}function e0(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=jT(t);t.readerType==="default"?Yy(e,n,r):JW(e,n,r)}function jT(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function vc(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function zT(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,o=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+o,a=i-i%r,s=o,u=!1;a>n&&(s=a-t.bytesFilled,u=!0);for(var c=e._queue;s>0;){var f=c[0],d=Math.min(s,f.byteLength),p=t.byteOffset+t.bytesFilled;$W(t.buffer,p,f.buffer,f.byteOffset,d),f.byteLength===d?c.shift():(f.byteOffset+=d,f.byteLength-=d),e._queueTotalSize-=d,NT(e,d,t),s-=d}return u}function NT(e,t,r){t0(e),r.bytesFilled+=t}function AT(e){e._queueTotalSize===0&&e._closeRequested===!0?(Ud(e),ru(e._controlledReadableByteStream)):$i(e)}function t0(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function MT(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];zT(e,t)===!0&&(r0(e),e0(e._controlledReadableByteStream,t))}}function i6(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Bd(t.buffer),s={buffer:a,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:o,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),C_(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Vo(u,!0,r))}if(e._queueTotalSize>0){if(zT(e,s)===!0){var c=jT(s);return AT(e),Promise.resolve(Vo(c,!1,r))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return nu(e,f),Promise.reject(f)}}e._pendingPullIntos.push(s);var d=C_(n,r);return $i(e),d}function a6(e,t){t.buffer=Bd(t.buffer);var r=e._controlledReadableByteStream;if(Qy(r)===!0)for(;xT(r)>0;){var n=r0(e);e0(r,n)}}function s6(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(NT(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);vc(e,i,0,i.byteLength)}r.buffer=Bd(r.buffer),r.bytesFilled-=n,e0(e._controlledReadableByteStream,r),MT(e)}}function LT(e,t){var r=e._pendingPullIntos[0],n=e._controlledReadableByteStream;if(n._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");a6(e,r)}else s6(e,t,r);$i(e)}function r0(e){var t=e._pendingPullIntos.shift();return t0(e),t}function l6(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(CT(t)===!0&&Wd(t)>0||Qy(t)===!0&&xT(t)>0)return!0;var r=$T(e);return r>0}function Ud(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function u6(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0){e._closeRequested=!0;return}if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos[0];if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw nu(e,n),n}}Ud(e),ru(t)}function c6(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Bd(n);if(CT(r)===!0)if(Wd(r)===0)vc(e,a,o,i);else{var s=new Uint8Array(a,o,i);Yy(r,s,!1)}else Qy(r)===!0?(vc(e,a,o,i),MT(e)):vc(e,a,o,i);$i(e)}function nu(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(IT(e),us(e),Ud(e),_T(r,t))}function $T(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function f6(e,t){if(t=Number(t),DW(t)===!1)throw new RangeError("bytesWritten must be a finite");LT(e,t)}function d6(e,t){var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,LT(e,t.byteLength)}function DT(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,IT(t),t._queue=t._queueTotalSize=void 0,us(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=vv(i),t._pullAlgorithm=n,t._cancelAlgorithm=o,t._autoAllocateChunkSize=a,t._pendingPullIntos=[],e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,$i(t)},function(u){nu(t,u)}).catch(oo)}function h6(e,t,r){var n=Object.create(OT.prototype);function o(){return bT(t,"start",[n])}var i=gf(t,"pull",0,[n]),a=gf(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),TB(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");DT(e,n,o,i,a,r,s)}function p6(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function R_(e){if(typeof e!="object"||e===null)return!1;var t=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return t.call(e),!0}catch{return!1}}function ra(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function xf(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Uu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function m6(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function v6(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function g6(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function FT(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function y6(e,t){e._closedPromise=Promise.reject(t)}function S6(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Hu(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function qu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Xp(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Os(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var b6=Zo.ReadableStream,w6=Ge.createDataProperty,_6=function(){function e(r){var n=r.highWaterMark;w6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),x6=Ge.createDataProperty,C6=function(){function e(r){var n=r.highWaterMark;x6(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();tT("streams:transform-stream:verbose");var R6=Ge.InvokeOrNoop,k6=Ge.CreateAlgorithmFromUnderlyingMethod,P6=Ge.PromiseCall,BT=Ge.typeIsObject,k_=Ge.ValidateAndNormalizeHighWaterMark;Ge.IsNonNegativeNumber;var P_=Ge.MakeSizeAlgorithmFromSizeFunction,T6=Zo.CreateReadableStream,WT=Zo.ReadableStreamDefaultControllerClose,E6=Zo.ReadableStreamDefaultControllerEnqueue,O6=Zo.ReadableStreamDefaultControllerError,I6=Zo.ReadableStreamDefaultControllerGetDesiredSize,j6=Zo.ReadableStreamDefaultControllerHasBackpressure,n0=Zo.ReadableStreamDefaultControllerCanCloseOrEnqueue,z6=Cn.CreateWritableStream,N6=Cn.WritableStreamDefaultControllerErrorIfNeeded,UT=function(){function e(t,r,n){t===void 0&&(t={}),r===void 0&&(r={}),n===void 0&&(n={});var o=r.size,i=r.highWaterMark,a=n.size,s=n.highWaterMark,u=t.writableType;if(u!==void 0)throw new RangeError("Invalid writable type specified");var c=P_(o);i===void 0&&(i=1),i=k_(i);var f=t.readableType;if(f!==void 0)throw new RangeError("Invalid readable type specified");var d=P_(a);s===void 0&&(s=0),s=k_(s);var p,y=new Promise(function(g){p=g});HT(this,y,i,c,s,d),M6(this,t);var S=R6(t,"start",[this._transformStreamController]);p(S)}return Kn(e,[{key:"readable",get:function(){if(T_(this)===!1)throw O_("readable");return this._readable}},{key:"writable",get:function(){if(T_(this)===!1)throw O_("writable");return this._writable}}]),e}();function A6(e,t,r,n,o,i,a){n===void 0&&(n=1),o===void 0&&(o=function(){return 1}),i===void 0&&(i=0),a===void 0&&(a=function(){return 1});var s=Object.create(UT.prototype),u,c=new Promise(function(p){u=p});HT(s,c,n,o,i,a);var f=Object.create(qT.prototype);GT(s,f,t,r);var d=e();return u(d),s}function HT(e,t,r,n,o,i){function a(){return t}function s(p){return D6(e,p)}function u(p){return F6(e,p)}function c(){return B6(e)}e._writable=z6(a,s,c,u,r,n);function f(){return W6(e)}function d(p){return qd(e,p),Promise.resolve()}e._readable=T6(a,f,d,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Gd(e,!0),e._transformStreamController=void 0}function T_(e){return!(!BT(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Hd(e,t){O6(e._readable._readableStreamController,t),qd(e,t)}function qd(e,t){VT(e._transformStreamController),N6(e._writable._writableStreamController,t),e._backpressure===!0&&Gd(e,!1)}function Gd(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var qT=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Gu(this)===!1)throw Vu("enqueue");KT(this,n)},t.error=function(n){if(Gu(this)===!1)throw Vu("error");L6(this,n)},t.terminate=function(){if(Gu(this)===!1)throw Vu("terminate");$6(this)},Kn(e,[{key:"desiredSize",get:function(){if(Gu(this)===!1)throw Vu("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return I6(n)}}]),e}();function Gu(e){return!(!BT(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function GT(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function M6(e,t){var r=Object.create(qT.prototype),n=function(s){try{return KT(r,s),Promise.resolve()}catch(u){return Promise.reject(u)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return P6(o,t,[s,r])}}var i=k6(t,"flush",0,[r]);GT(e,r,n,i)}function VT(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function KT(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(n0(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{E6(n,t)}catch(i){throw qd(r,i),r._readable._storedError}var o=j6(n);o!==r._backpressure&&Gd(r,!0)}function L6(e,t){Hd(e._controlledTransformStream,t)}function E_(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Hd(e._controlledTransformStream,n),n})}function $6(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;n0(r)===!0&&WT(r);var n=new TypeError("TransformStream terminated");qd(t,n)}function D6(e,t){var r=e._transformStreamController;if(e._backpressure===!0){var n=e._backpressureChangePromise;return n.then(function(){var o=e._writable,i=o._state;if(i==="erroring")throw o._storedError;return E_(r,t)})}return E_(r,t)}function F6(e,t){return Hd(e,t),Promise.resolve()}function B6(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return VT(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;n0(o)===!0&&WT(o)}).catch(function(o){throw Hd(e,o),t._storedError})}function W6(e){return Gd(e,!1),e._backpressureChangePromise}var U6={CreateTransformStream:A6,TransformStream:UT};function Vu(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function O_(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var H6=U6.TransformStream;const q6=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:_6,CountQueuingStrategy:C6,ReadableStream:b6,TransformStream:H6,WritableStream:LW},Symbol.toStringTag,{value:"Module"})),G6=Ja(q6);function V6(e,t){return fetch(e,t).then(r=>({body:r.body,headers:r.headers,ok:r.ok,status:r.status,statusText:r.statusText,url:r.url}))}let K6=class YT{constructor(t={}){this.h={},t instanceof YT&&t.forEach((r,n)=>this.append(n,r)),Object.getOwnPropertyNames(t).forEach(r=>this.append(r,t[r]))}append(t,r){t=t.toLowerCase(),Array.isArray(this.h[t])||(this.h[t]=[]),this.h[t].push(r)}set(t,r){this.h[t.toLowerCase()]=[r]}has(t){return Array.isArray(this.h[t.toLowerCase()])}get(t){if(t=t.toLowerCase(),Array.isArray(this.h[t]))return this.h[t][0]}getAll(t){return this.h[t.toLowerCase()].concat()}entries(){const t=[];return this.forEach((r,n)=>{t.push([n,r])}),Y6(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function Y6(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Jp(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function I_({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,u=!1;const c=new ReadableStream({start(p){s=p},cancel(){u=!0,i.abort()}}),{method:f="GET",signal:d}=o;if(i.open(f,n),i.responseType=e,i.withCredentials=o.credentials!=="omit",o.headers)for(const p of o.headers.entries())i.setRequestHeader(p[0],p[1]);return new Promise((p,y)=>{if(o.body&&(f==="GET"||f==="HEAD")&&y(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),d)if(d.aborted){y(Jp());return}else d.addEventListener("abort",()=>{i.abort(),s&&s.error(Jp()),y(Jp())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:J6(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:X6(i.responseURL,n)})},i.onerror=function(){return y(new TypeError("Network request failed"))},i.ontimeout=function(){y(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const S=a(i.response);s.enqueue(S)}},i.onload=function(){s.close()},i.send(o.body)})}}function Q6(){return typeof Headers<"u"?new Headers:new K6}function X6(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function J6(e){const t=Q6();if(e){const r=e.split(`\r -`);for(let n=0;n0){const a=o.substring(0,i),s=o.substring(i+2);t.append(a,s)}}}return t}let Zp=null;function Z6(){return Zp||(Zp=e8()),Zp}function e8(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return V6;const e="moz-chunked-arraybuffer";return t8(e)?I_({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):I_({responseType:"text",responseParserFactory:function(){const t=new TextEncoder;let r=0;return function(n){const o=n.substr(r);return r=n.length,t.encode(o,{stream:!0})}}})}function t8(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function o0(e,t={}){let r=t.transport;return r||(r=o0.transportFactory()),r(e,t)}o0.transportFactory=Z6;const r8=Object.freeze(Object.defineProperty({__proto__:null,default:o0},Symbol.toStringTag,{value:"Module"})),n8=Ja(r8);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?fi:self,function(){return function(r){function n(i){if(o[i])return o[i].exports;var a=o[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var o={};return n.m=r,n.c=o,n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="./",n(n.s=46)}([function(r){r.exports=N},function(r){function n(i,a){var s=i[1]||"",u=i[3];if(!u)return s;if(a&&typeof btoa=="function"){var c=o(u),f=u.sources.map(function(d){return"/*# sourceURL="+u.sourceRoot+d+" */"});return[s].concat(f).concat([c]).join(` -`)}return[s].join(` -`)}function o(i){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+a)+" */"}r.exports=function(i){var a=[];return a.toString=function(){return this.map(function(s){var u=n(s,i);return s[2]?"@media "+s[2]+"{"+u+"}":u}).join("")},a.i=function(s,u){typeof s=="string"&&(s=[[null,s,""]]);for(var c,f={},d=0;d"u"&&(j=I.apply(this,arguments)),j}}(function(){return window&&document&&document.all&&!window.atob}),b=function(I){return document.querySelector(I)},_=function(){var I={};return function(j){if(typeof j=="function")return j();if(typeof I[j]>"u"){var M=b.call(this,j);if(window.HTMLIFrameElement&&M instanceof window.HTMLIFrameElement)try{M=M.contentDocument.head}catch{M=null}I[j]=M}return I[j]}}(),k=null,T=0,E=[],x=o(5);r.exports=function(I,j){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");j=j||{},j.attrs=typeof j.attrs=="object"?j.attrs:{},j.singleton||typeof j.singleton=="boolean"||(j.singleton=v()),j.insertInto||(j.insertInto="head"),j.insertAt||(j.insertAt="bottom");var M=a(I,j);return i(M,j),function(B){for(var $=[],D=0;DE?-1:E?E-1-B:-1},S=function(_){return _?Array.isArray(_)?_.length===1?Object(i.Range)(_[0],_[0]+1):Object(i.Range)(_[0],_[1]+1):Object(i.Range)(_,_+1):Object(i.Range)(0,0)},g=function(_,k){var T=new Uint8Array(_.length+k.length);return T.set(_,0),T.set(k,_.length),T},C=function(_,k){var T=k?g(k,_):_,E=T.length,x=0,O=0,I=Object(i.List)().withMutations(function(j){for(;OC.b?de(Z):Y()}}),I),c(j,M)}return f(x,E),k(x,[{key:"render",value:function(){var O=this.props,I=O.resultsCount,j=O.filterActive,M=O.disabled,B="match"+(I===1?"":"es"),$=j?v.active:v.inactive;return Object(d.createElement)("div",{className:"react-lazylog-searchbar "+v.searchBar},Object(d.createElement)("input",{autoComplete:"off",type:"text",name:"search",placeholder:"Search",className:"react-lazylog-searchbar-input "+v.searchInput,onChange:this.handleSearchChange,onKeyPress:this.handleSearchKeyPress,value:this.state.keywords,disabled:M}),Object(d.createElement)("button",{disabled:M,className:"react-lazylog-searchbar-filter "+(j?"active":"inactive")+" "+v.button+" "+$,onClick:this.handleFilterToggle},Object(d.createElement)(g,null)),Object(d.createElement)("span",{className:"react-lazylog-searchbar-matches "+(I?"active":"inactive")+" "+(I?v.active:v.inactive)},I," ",B))}}]),x}(d.Component),Object.defineProperty(b,"propTypes",{enumerable:!0,writable:!0,value:{onSearch:p.func,onClearSearch:p.func,onFilterLinesWithMatches:p.func,resultsCount:p.number,filterActive:p.bool,disabled:p.bool}}),Object.defineProperty(b,"defaultProps",{enumerable:!0,writable:!0,value:{onSearch:function(){},onClearSearch:function(){},onFilterLinesWithMatches:function(){},resultsCount:0,filterActive:!1,disabled:!1}}),_)},function(r,n,o){var i=o(26);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._1lq6olr9h2p7MJDCA8c-aL { - height: 15px; - cursor: pointer; -} -`,""]),n.locals={filterLinesIcon:"_1lq6olr9h2p7MJDCA8c-aL"}},function(r,n,o){var i=o(28);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._3hsz3SFOTsWryCiRA9Mjtq { - display: flex; - align-items: center; - justify-content: flex-end; - font-family: "Monaco", monospace; - font-size: 12px; - background-color: #222222; - color: #d6d6d6; - padding: 10px; -} - -._2JObJsQyVcVoB1YD6078ip { - background-color: #464646; - color: #d6d6d6; - height: 20px; - min-width: 200px; - font-size: 12px; - padding: 2px 5px; - border: 1px solid #4e4e4e; - margin-right: 10px; -} - -._1NGepveS5BPffleJYyamDk { - color: #d6d6d6; - fill: #d6d6d6; -} - -._3cXa-36GYrmnrGIXEg46cX { - color: #464646; - fill: #464646; -} - -.qZaVIaYTJWY-GaoXJJ2Cp { - background: none; - border: none; - margin-right: 10px; -} -`,""]),n.locals={searchBar:"_3hsz3SFOTsWryCiRA9Mjtq",searchInput:"_2JObJsQyVcVoB1YD6078ip",active:"_1NGepveS5BPffleJYyamDk",inactive:"_3cXa-36GYrmnrGIXEg46cX",button:"qZaVIaYTJWY-GaoXJJ2Cp"}},function(r,n,o){function i(G){if(Array.isArray(G)){for(var V=0,q=Array(G.length);V$e&&(vr=Gt-$e,ir=ir.slice(-$e),Gt=ir.count());var _e=Object(E.g)({follow:ye,scrollToLine:ge,previousCount:Tt,count:Gt,offset:vr});U.setState({lines:ir,offset:vr,count:Gt,scrollToIndex:_e}),(be||Re)&&U.forceSearch()}}),Object.defineProperty(U,"handleEnd",{enumerable:!0,writable:!0,value:function(K){U.encodedLog=K,U.setState({loaded:!0}),U.props.onLoad&&U.props.onLoad()}}),Object.defineProperty(U,"handleError",{enumerable:!0,writable:!0,value:function(K){U.setState({error:K}),U.props.onError&&U.props.onError(K)}}),Object.defineProperty(U,"handleHighlight",{enumerable:!0,writable:!0,value:function(K){var J=U.props.onHighlight,ue=U.state.isFilteringLinesWithMatches;if(K.target.id){var me=+K.target.id;if(me){var ge=U.state.highlight.first(),ye=U.state.highlight.last(),be=void 0;be=ge===me?null:K.shiftKey&&ge?me>ge?[ge,me]:[me,ye]:me;var Re=Object(E.e)(be),ze={highlight:Re};ue&&Object.assign(ze,{scrollToIndex:Object(E.g)({scrollToLine:me})}),U.setState(ze,function(){J&&J(Re),ue&&U.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(U,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var J=U.state,ue=J.resultLines,me=J.searchKeywords,ge=U.props,ye=ge.caseInsensitive,be=ge.stream,Re=ge.websocket,ze=be||Re||K!==me?te(K,U.encodedLog,ye):ue;U.setState({resultLines:ze,isSearching:!0,searchKeywords:K},U.filterLinesWithMatches)}}),Object.defineProperty(U,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=U.state.searchKeywords;K&&K.length>E.b&&U.handleSearch(U.state.searchKeywords)}}),Object.defineProperty(U,"handleClearSearch",{enumerable:!0,writable:!0,value:function(){U.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:Object(p.List)(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:U.state.isFilteringLinesWithMatches,scrollToIndex:0})}}),Object.defineProperty(U,"handleFilterLinesWithMatches",{enumerable:!0,writable:!0,value:function(K){U.setState({isFilteringLinesWithMatches:K,filteredLines:Object(p.List)(),resultLineUniqueIndexes:[]},U.filterLinesWithMatches)}}),Object.defineProperty(U,"filterLinesWithMatches",{enumerable:!0,writable:!0,value:function(){var K=U.state,J=K.resultLines,ue=K.lines,me=K.isFilteringLinesWithMatches;if(0{const t=["Bytes","KB","MB","GB","TB"];if(e===0)return"0 Byte";const r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(2)+" "+t[r]},_n=e=>{if(isNaN(e)||e===void 0||e===null||e===0)return"0 B/s";const t=["B/s","KB/s","MB/s","GB/s","TB/s"],r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(2)+" "+t[r]},XT=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",Il=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),o=t>0?t+"h ":"",i=r>0?r+"m ":"",a=n+"s";return o+i+a},f8=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return Il(o)},s0=(e,t)=>e===0||t===0?"0%":XT(e/t*100),j_=e=>Bt(e)+"/s",d8=({logs:e=[],onLogSelected:t,onDownload:r,...n})=>{const o=a=>{t(a)},i=()=>m.jsxs("table",{className:"table-auto w-fit text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{})]})}),m.jsx("tbody",{children:e.map((a,s)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>o(a.name),children:[m.jsx("td",{className:"pl-2",children:a.selected&&m.jsx(Vd,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:Bt(a.size)}),m.jsx("td",{children:m.jsx(QT,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},h8=()=>{const e=Hl(),t=Ee(Rt),r=Ee(oA),[n,o]=N.useState(""),[i,a]=N.useState("Head");N.useEffect(()=>{r.forEach(c=>{if(c.selected){const f=Math.round(c.size/10);let d=c.url;i==="Head"?d=c.url+"?offset=0&limit="+f:i==="Tail"&&(d=c.url+"?offset="+(c.size-f)+"&limit="+f),o(d)}})},[i,r]),N.useEffect(()=>{let c=!1;r.forEach(f=>{f.selected&&(c=!0)}),c||o("")},[r]),N.useEffect(()=>{t!==""&&kP()},[t]);const s=c=>{fetch(c.url,{method:"GET",headers:{"Content-Type":"text/plain"}}).then(f=>f.blob()).then(f=>{const d=window.URL.createObjectURL(new Blob([f])),p=document.createElement("a");p.href=d,p.setAttribute("download",c.name),document.body.appendChild(p),p.click(),document.body.removeChild(p)})},u=c=>{let f="px-4 py-2 mr-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700 border";const d="bg-gray-900 text-white";return c===i?f+" "+d:f};return m.jsxs("div",{className:"flex flex-col w-full pt-4 pb-4",children:[m.jsx(d8,{logs:r,onLogSelected:c=>{e(BN(c))},onDownload:c=>{s(c)}}),n!==""?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row pb-2 pt-2",children:[m.jsx("button",{className:u("Head"),onClick:()=>a("Head"),children:"Head"}),m.jsx("button",{className:u("Tail"),onClick:()=>a("Tail"),children:"Tail"}),m.jsx("button",{className:u("All"),onClick:()=>a("All"),children:"All"})]}),m.jsx(o8.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},p8=()=>{const e=Ee(wk),[t,r]=N.useState(!0);function n(){r(!t)}const o=()=>m.jsx(m.Fragment,{children:e.map(s=>m.jsxs("div",{className:"py2 pr-8",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Data base - "+s.path}),m.jsxs("table",{className:"table-auto text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Count"})]})}),m.jsx("tbody",{children:s.tables.map(u=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:u.name}),m.jsx("td",{className:"px-4 py-2",children:u.size}),m.jsx("td",{className:"px-4 py-2",children:u.count})]}))})]})]}))}),i=()=>m.jsx("div",{className:"flex w-full flex-row",children:o()}),a=()=>m.jsx("div",{className:"flex w-full flex-col h-[80vh] pt-4 pb-4",children:o()});return m.jsxs("div",{className:"flex flex-col w-full py-4",children:[m.jsx(Un,{backgroundColor:as,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},m8=({onClose:e,onCreate:t,...r})=>{const[n,o]=se.useState(""),i=a=>{o(a.target.value)};return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-1 z-50 outline-none focus:outline-none",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center",children:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Create Session"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center",children:[m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:"To create a new session, enter a name."}),m.jsx("input",{type:"text",placeholder:"Enter Session Name",className:"border-2 border-slate-200 rounded-md p-2",value:n,onChange:i})]}),m.jsxs("div",{className:"flex items-center justify-end p-6",children:[m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(Un,{backgroundColor:as,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},JT=({onSessionSelected:e,...t})=>{const r=Hl(),n=Ee(JN),[o,i]=N.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(NN(c)),e()},u=()=>m.jsxs(m.Fragment,{children:[m.jsxs("table",{className:"table-auto rounded-lg shadow-lg bg-white text-left w-fit mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"PIN"}),m.jsx("th",{})]})}),m.jsx("tbody",{children:n.map((c,f)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>s(c.pin),children:[m.jsx("td",{className:"pl-2",children:c.active&&m.jsx(Vd,{})}),m.jsx("td",{className:"px-4 py-2",children:c.name}),m.jsx("td",{className:"px-4 py-2",children:c.pin}),m.jsx("td",{children:m.jsx(dy,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},f))})]}),o&&m.jsx(RP,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},v8=({title:e="",body:t="",positiveButton:r="",negativeButton:n="",onClose:o=()=>{},onNegativeClick:i=()=>{},onPositiveClick:a=()=>{}})=>{const s=()=>r!==""&&n!==""?m.jsxs(m.Fragment,{children:[u(!0,r),m.jsx("div",{className:"w-2"}),u(!1,n)]}):r!==""?m.jsx(m.Fragment,{children:u(!0,r)}):n!==""?m.jsx(m.Fragment,{children:u(!1,n)}):null,u=(c,f)=>m.jsx(Un,{backgroundColor:c?Xl:as,label:f,onClick:c?a:i,primary:!0});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center p-4 min-w-[20vw]",children:[m.jsxs("div",{className:"flex flex-row w-full",children:[m.jsx("div",{className:"flex-[1]"}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:e})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(Id,{onClick:()=>o(),className:"cursor-pointer"})})]}),m.jsx("div",{className:"inline-block relative p-6 flex-auto justify-center items-center w-full break-all max-h-[80vh] overflow-scroll",children:m.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:t})}),m.jsx("div",{className:"flex items-center justify-end p-6",children:s()})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},g8=()=>{const e=Hl(),[t,r]=N.useState(!1),[n,o]=N.useState(!1);function i(a,s){return Math.floor(Math.random()*(s-a)+a)}return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),m.jsx(JT,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(Un,{backgroundColor:Xl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(m8,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(jN({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(Un,{backgroundColor:as,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(v8,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(qN()),e(h4()),e(f4()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var l0={},y8=nt;Object.defineProperty(l0,"__esModule",{value:!0});var ZT=l0.default=void 0,S8=y8(ot()),b8=m;ZT=l0.default=(0,S8.default)((0,b8.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");var u0={},w8=nt;Object.defineProperty(u0,"__esModule",{value:!0});var eE=u0.default=void 0,_8=w8(ot()),x8=m;eE=u0.default=(0,_8.default)((0,x8.jsx)("path",{d:"M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77c.38-.18.79-.27 1.23-.27 1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z"}),"Hub");const C8=({onSessionClicked:e,onNodeClicked:t})=>{const r=Ee(bk),n=Ee(eA);return m.jsxs("div",{className:"flex flex-row h-10 bg-blue-500 absolute bottom-0 left-0 w-full z-10 px-5 py-1",children:[m.jsxs("button",{className:"text-white bg-blue-600 hover:bg-blue-700 px-2 rounded-md",onClick:()=>{e()},children:[m.jsx(ZT,{}),m.jsx("span",{className:"px-1"}),(r==null?void 0:r.name)||"No Session Selected"]}),m.jsx("span",{className:"mx-4"}),m.jsxs("button",{className:"text-white bg-blue-600 hover:bg-blue-700 px-2 rounded-md",onClick:()=>{t()},children:[m.jsx(eE,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},R8=({open:e,onClose:t,...r})=>m.jsxs("dialog",{className:"fixed z-10 inset-0 overflow-y-auto",open:e,onClose:()=>{t()},children:[m.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75","aria-hidden":"true"}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center relative bg-white rounded-lg p-4",children:[m.jsx("h3",{className:"pb-4 text-xl font-semibold",children:"Sessions List"}),m.jsx(JT,{onSessionSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]}),k8=({onNodeSelected:e,...t})=>{const r=Hl(),n=Ee(tA),o=a=>{r(AN(a)),e()},i=()=>m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Version"}),m.jsx("th",{className:"px-4 py-2",children:"Chain"}),m.jsx("th",{className:"px-4 py-2",children:"Block"}),m.jsx("th",{className:"px-4 py-2",children:"Address"})]})}),m.jsx("tbody",{children:n.map((a,s)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>o(a.id),children:[m.jsx("td",{className:"pl-2",children:a.active&&m.jsx(Vd,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:a.version}),m.jsx("td",{className:"px-4 py-2",children:a.chain}),m.jsx("td",{className:"px-4 py-2",children:a.block}),m.jsx("td",{className:"px-4 py-2",children:a.address})]},s))})]});return m.jsx(m.Fragment,{children:n.length>0&&i()})},P8=({open:e,onClose:t,...r})=>m.jsxs("dialog",{className:"fixed z-10 inset-0 overflow-y-auto",open:e,onClose:()=>{t()},children:[m.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75","aria-hidden":"true"}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center relative bg-white rounded-lg p-4",children:[m.jsx("h3",{className:"pb-4 text-xl font-semibold",children:"Nodes List"}),m.jsx(k8,{onNodeSelected:()=>{t()}}),m.jsx(Un,{backgroundColor:Xl,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var zr=function(){return zr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Ft(cs,--Pr):0,Va--,_t===10&&(Va=1,Yd--),_t}function Dr(){return _t=Pr2||zl(_t)>3?"":" "}function W8(e,t){for(;--t&&Dr()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return ou(e,gc()+(t<6&&Bn()==32&&Dr()==32))}function wv(e){for(;Dr();)switch(_t){case e:return Pr;case 34:case 39:e!==34&&e!==39&&wv(_t);break;case 40:e===41&&wv(e);break;case 92:Dr();break}return Pr}function U8(e,t){for(;Dr()&&e+_t!==47+10;)if(e+_t===42+42&&Bn()===47)break;return"/*"+ou(t,Pr-1)+"*"+Kd(e===47?e:Dr())}function H8(e){for(;!zl(Bn());)Dr();return ou(e,Pr)}function z_(e){return aE(Sc("",null,null,null,[""],e=iE(e),0,[0],e))}function Sc(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,d=a,p=0,y=0,S=0,g=1,C=1,v=1,b=0,_="",k=o,T=i,E=n,x=_;C;)switch(S=b,b=Dr()){case 40:if(S!=108&&Ft(x,d-1)==58){bv(x+=De(yc(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=yc(b);break;case 9:case 10:case 13:case 32:x+=B8(S);break;case 92:x+=W8(gc()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Ku(q8(U8(Dr(),gc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=Nn(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:y>0&&Nn(x)-d&&Ku(y>32?A_(x+";",n,r,d-1):A_(De(x," ","")+";",n,r,d-2),u);break;case 59:x+=";";default:if(Ku(E=N_(x,t,r,c,f,o,s,_,k=[],T=[],d),i),b===123)if(f===0)Sc(x,t,E,E,k,i,d,s,T);else switch(p===99&&Ft(x,3)===110?100:p){case 100:case 109:case 115:Sc(e,E,E,n&&Ku(N_(e,E,E,0,0,o,s,_,o,k=[],d),T),o,T,d,s,n?k:T);break;default:Sc(x,E,E,E,[""],T,0,s,T)}}c=f=y=0,g=v=1,_=x="",d=a;break;case 58:d=1+Nn(x),y=S;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&F8()==125)continue}switch(x+=Kd(b),b*g){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[c++]=(Nn(x)-1)*v,v=1;break;case 64:Bn()===45&&(x+=yc(Dr())),p=Bn(),f=d=Nn(_=x+=H8(gc())),b++;break;case 45:S===45&&Nn(x)==2&&(g=0)}}return i}function N_(e,t,r,n,o,i,a,s,u,c,f){for(var d=o-1,p=o===0?i:[""],y=h0(p),S=0,g=0,C=0;S0?p[v]+" "+b:De(b,/&\f/g,p[v])))&&(u[C++]=_);return Qd(e,t,r,o===0?f0:s,u,c,f)}function q8(e,t,r){return Qd(e,t,r,tE,Kd(D8()),jl(e,2,-2),0)}function A_(e,t,r,n){return Qd(e,t,r,d0,jl(e,0,n),jl(e,n+1,-1),n)}function wi(e,t){for(var r="",n=h0(e),o=0;o6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return De(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Cf+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bv(e,"stretch")?sE(De(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ft(e,t+1)!==115)break;case 6444:switch(Ft(e,Nn(e)-3-(~bv(e,"!important")&&10))){case 107:return De(e,":",":"+Ae)+e;case 101:return De(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Ft(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Zt+"$2box$3")+e}break;case 5936:switch(Ft(e,t+11)){case 114:return Ae+e+Zt+De(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Zt+De(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Zt+De(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Zt+e+e}return e}var Z8=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case d0:t.return=sE(t.value,t.length);break;case rE:return wi([Is(t,{value:De(t.value,"@","@"+Ae)})],o);case f0:if(t.length)return $8(t.props,function(i){switch(L8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wi([Is(t,{props:[De(i,/:(read-\w+)/,":"+Cf+"$1")]})],o);case"::placeholder":return wi([Is(t,{props:[De(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Is(t,{props:[De(i,/:(plac\w+)/,":"+Cf+"$1")]}),Is(t,{props:[De(i,/:(plac\w+)/,Zt+"input-$1")]})],o)}return""})}},bc=typeof document<"u",e9=bc?void 0:V8(function(){return c0(function(){var e={};return function(t){return e[t]}})}),t9=[Z8],lE=function(t){var r=t.key;if(bc&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var T=k.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var o=t.stylisPlugins||t9,i={},a,s=[];bc&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(k){for(var T=k.getAttribute("data-emotion").split(" "),E=1;E=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var c9={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f9=/[A-Z]|^ms/g,d9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fE=function(t){return t.charCodeAt(1)===45},F_=function(t){return t!=null&&typeof t!="boolean"},em=c0(function(e){return fE(e)?e:e.replace(f9,"-$&").toLowerCase()}),B_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(d9,function(n,o,i){return An={name:o,styles:i,next:An},o})}return c9[t]!==1&&!fE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Nl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return An={name:r.name,styles:r.styles,next:An},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)An={name:n.name,styles:n.styles,next:An},n=n.next;var o=r.styles+";";return o}return h9(e,t,r)}case"function":{if(e!==void 0){var i=An,a=r(e);return An=i,Nl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function h9(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?m9:v9},H_=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},g9=typeof document<"u",y9=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;cE(r,n,o);var i=o9(function(){return l9(r,n,o)});if(!g9&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},S9=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=H_(t,r,n),u=s||U_(o),c=!u("as");return function(){var f=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{d.push(f[0][0]);for(var p=f.length,y=1;y"u")return!1;var t=un(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function X9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!en(i)||!Hn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function J9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(u,c){return u[c]="",u},{});!en(o)||!Hn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var Z9={name:"applyStyles",enabled:!0,phase:"write",fn:X9,effect:J9,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var _i=Math.max,Pf=Math.min,Ya=Math.round;function xv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wE(){return!/^((?!chrome|android).)*safari/i.test(xv())}function Qa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&en(e)&&(o=e.offsetWidth>0&&Ya(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ya(n.height)/e.offsetHeight||1);var a=zi(e)?un(e):window,s=a.visualViewport,u=!wE()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,f=(n.top+(u&&s?s.offsetTop:0))/i,d=n.width/o,p=n.height/i;return{width:d,height:p,top:f,right:c+d,bottom:f+p,left:c,x:c,y:f}}function g0(e){var t=Qa(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function _E(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function vo(e){return un(e).getComputedStyle(e)}function eU(e){return["table","td","th"].indexOf(Hn(e))>=0}function ei(e){return((zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jd(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(v0(e)?e.host:null)||ei(e)}function ax(e){return!en(e)||vo(e).position==="fixed"?null:e.offsetParent}function tU(e){var t=/firefox/i.test(xv()),r=/Trident/i.test(xv());if(r&&en(e)){var n=vo(e);if(n.position==="fixed")return null}var o=Jd(e);for(v0(o)&&(o=o.host);en(o)&&["html","body"].indexOf(Hn(o))<0;){var i=vo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function au(e){for(var t=un(e),r=ax(e);r&&eU(r)&&vo(r).position==="static";)r=ax(r);return r&&(Hn(r)==="html"||Hn(r)==="body"&&vo(r).position==="static")?t:r||tU(e)||t}function y0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nl(e,t,r){return _i(e,Pf(t,r))}function rU(e,t,r){var n=nl(e,t,r);return n>r?r:n}function xE(){return{top:0,right:0,bottom:0,left:0}}function CE(e){return Object.assign({},xE(),e)}function RE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var nU=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,CE(typeof t!="number"?t:RE(t,iu))};function oU(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Wn(r.placement),u=y0(s),c=[Rr,on].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!a)){var d=nU(o.padding,r),p=g0(i),y=u==="y"?Cr:Rr,S=u==="y"?nn:on,g=r.rects.reference[f]+r.rects.reference[u]-a[u]-r.rects.popper[f],C=a[u]-r.rects.reference[u],v=au(i),b=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,_=g/2-C/2,k=d[y],T=b-p[f]-d[S],E=b/2-p[f]/2+_,x=nl(k,E,T),O=u;r.modifiersData[n]=(t={},t[O]=x,t.centerOffset=x-E,t)}}function iU(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||_E(t.elements.popper,o)&&(t.elements.arrow=o))}var aU={name:"arrow",enabled:!0,phase:"main",fn:oU,effect:iU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var sU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lU(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ya(t*o)/o||0,y:Ya(r*o)/o||0}}function sx(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,y=p===void 0?0:p,S=a.y,g=S===void 0?0:S,C=typeof f=="function"?f({x:y,y:g}):{x:y,y:g};y=C.x,g=C.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),_=Rr,k=Cr,T=window;if(c){var E=au(r),x="clientHeight",O="clientWidth";if(E===un(r)&&(E=ei(r),vo(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",O="scrollWidth")),E=E,o===Cr||(o===Rr||o===on)&&i===Al){k=nn;var I=d&&E===T&&T.visualViewport?T.visualViewport.height:E[x];g-=I-n.height,g*=u?1:-1}if(o===Rr||(o===Cr||o===nn)&&i===Al){_=on;var j=d&&E===T&&T.visualViewport?T.visualViewport.width:E[O];y-=j-n.width,y*=u?1:-1}}var M=Object.assign({position:s},c&&sU),B=f===!0?lU({x:y,y:g}):{x:y,y:g};if(y=B.x,g=B.y,u){var $;return Object.assign({},M,($={},$[k]=b?"0":"",$[_]=v?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",$))}return Object.assign({},M,(t={},t[k]=b?g+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function uU(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Wn(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,sx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,sx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var cU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uU,data:{}},Yu={passive:!0};function fU(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,u=un(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",r.update,Yu)}),s&&u.addEventListener("resize",r.update,Yu),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",r.update,Yu)}),s&&u.removeEventListener("resize",r.update,Yu)}}var dU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fU,data:{}},hU={left:"right",right:"left",bottom:"top",top:"bottom"};function wc(e){return e.replace(/left|right|bottom|top/g,function(t){return hU[t]})}var pU={start:"end",end:"start"};function lx(e){return e.replace(/start|end/g,function(t){return pU[t]})}function S0(e){var t=un(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function b0(e){return Qa(ei(e)).left+S0(e).scrollLeft}function mU(e,t){var r=un(e),n=ei(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=wE();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+b0(e),y:u}}function vU(e){var t,r=ei(e),n=S0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_i(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_i(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+b0(e),u=-n.scrollTop;return vo(o||r).direction==="rtl"&&(s+=_i(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function w0(e){var t=vo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function kE(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:en(e)&&w0(e)?e:kE(Jd(e))}function ol(e,t){var r;t===void 0&&(t=[]);var n=kE(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=un(n),a=o?[i].concat(i.visualViewport||[],w0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ol(Jd(a)))}function Cv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gU(e,t){var r=Qa(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ux(e,t,r){return t===SE?Cv(mU(e,r)):zi(t)?gU(t,r):Cv(vU(ei(e)))}function yU(e){var t=ol(Jd(e)),r=["absolute","fixed"].indexOf(vo(e).position)>=0,n=r&&en(e)?au(e):e;return zi(n)?t.filter(function(o){return zi(o)&&_E(o,n)&&Hn(o)!=="body"}):[]}function SU(e,t,r,n){var o=t==="clippingParents"?yU(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var f=ux(e,c,n);return u.top=_i(f.top,u.top),u.right=Pf(f.right,u.right),u.bottom=Pf(f.bottom,u.bottom),u.left=_i(f.left,u.left),u},ux(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function PE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wn(n):null,i=n?Xa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Cr:u={x:a,y:t.y-r.height};break;case nn:u={x:a,y:t.y+t.height};break;case on:u={x:t.x+t.width,y:s};break;case Rr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?y0(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case Ka:u[c]=u[c]-(t[f]/2-r[f]/2);break;case Al:u[c]=u[c]+(t[f]/2-r[f]/2);break}}return u}function Ml(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?D9:s,c=r.rootBoundary,f=c===void 0?SE:c,d=r.elementContext,p=d===void 0?js:d,y=r.altBoundary,S=y===void 0?!1:y,g=r.padding,C=g===void 0?0:g,v=CE(typeof C!="number"?C:RE(C,iu)),b=p===js?F9:js,_=e.rects.popper,k=e.elements[S?b:p],T=SU(zi(k)?k:k.contextElement||ei(e.elements.popper),u,f,a),E=Qa(e.elements.reference),x=PE({reference:E,element:_,strategy:"absolute",placement:o}),O=Cv(Object.assign({},_,x)),I=p===js?O:E,j={top:T.top-I.top+v.top,bottom:I.bottom-T.bottom+v.bottom,left:T.left-I.left+v.left,right:I.right-T.right+v.right},M=e.modifiersData.offset;if(p===js&&M){var B=M[o];Object.keys(j).forEach(function($){var D=[on,nn].indexOf($)>=0?1:-1,Z=[Cr,nn].indexOf($)>=0?"y":"x";j[$]+=B[Z]*D})}return j}function bU(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?bE:u,f=Xa(n),d=f?s?ix:ix.filter(function(S){return Xa(S)===f}):iu,p=d.filter(function(S){return c.indexOf(S)>=0});p.length===0&&(p=d);var y=p.reduce(function(S,g){return S[g]=Ml(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Wn(g)],S},{});return Object.keys(y).sort(function(S,g){return y[S]-y[g]})}function wU(e){if(Wn(e)===m0)return[];var t=wc(e);return[lx(e),t,lx(t)]}function _U(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,c=r.padding,f=r.boundary,d=r.rootBoundary,p=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,g=r.allowedAutoPlacements,C=t.options.placement,v=Wn(C),b=v===C,_=u||(b||!S?[wc(C)]:wU(C)),k=[C].concat(_).reduce(function(Le,Se){return Le.concat(Wn(Se)===m0?bU(t,{placement:Se,boundary:f,rootBoundary:d,padding:c,flipVariations:S,allowedAutoPlacements:g}):Se)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,O=!0,I=k[0],j=0;j=0,Z=D?"width":"height",ie=Ml(t,{placement:M,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),de=D?$?on:Rr:$?nn:Cr;T[Z]>E[Z]&&(de=wc(de));var Y=wc(de),te=[];if(i&&te.push(ie[B]<=0),s&&te.push(ie[de]<=0,ie[Y]<=0),te.every(function(Le){return Le})){I=M,O=!1;break}x.set(M,te)}if(O)for(var ce=S?3:1,we=function(Se){var G=k.find(function(V){var q=x.get(V);if(q)return q.slice(0,Se).every(function(ee){return ee})});if(G)return I=G,"break"},ke=ce;ke>0;ke--){var Pt=we(ke);if(Pt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var xU={name:"flip",enabled:!0,phase:"main",fn:_U,requiresIfExists:["offset"],data:{_skip:!1}};function cx(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function fx(e){return[Cr,on,nn,Rr].some(function(t){return e[t]>=0})}function CU(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ml(t,{elementContext:"reference"}),s=Ml(t,{altBoundary:!0}),u=cx(a,n),c=cx(s,o,i),f=fx(u),d=fx(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var RU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CU};function kU(e,t,r){var n=Wn(e),o=[Rr,Cr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Rr,on].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function PU(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=bE.reduce(function(f,d){return f[d]=kU(d,t.rects,i),f},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var TU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PU};function EU(e){var t=e.state,r=e.name;t.modifiersData[r]=PE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var OU={name:"popperOffsets",enabled:!0,phase:"read",fn:EU,data:{}};function IU(e){return e==="x"?"y":"x"}function jU(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,c=r.rootBoundary,f=r.altBoundary,d=r.padding,p=r.tether,y=p===void 0?!0:p,S=r.tetherOffset,g=S===void 0?0:S,C=Ml(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),v=Wn(t.placement),b=Xa(t.placement),_=!b,k=y0(v),T=IU(k),E=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(E){if(i){var $,D=k==="y"?Cr:Rr,Z=k==="y"?nn:on,ie=k==="y"?"height":"width",de=E[k],Y=de+C[D],te=de-C[Z],ce=y?-O[ie]/2:0,we=b===Ka?x[ie]:O[ie],ke=b===Ka?-O[ie]:-x[ie],Pt=t.elements.arrow,Le=y&&Pt?g0(Pt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xE(),G=Se[D],V=Se[Z],q=nl(0,x[ie],Le[ie]),ee=_?x[ie]/2-ce-q-G-j.mainAxis:we-q-G-j.mainAxis,U=_?-x[ie]/2+ce+q+V+j.mainAxis:ke+q+V+j.mainAxis,he=t.elements.arrow&&au(t.elements.arrow),le=he?k==="y"?he.clientTop||0:he.clientLeft||0:0,oe=($=M==null?void 0:M[k])!=null?$:0,ae=de+ee-oe-le,K=de+U-oe,J=nl(y?Pf(Y,ae):Y,de,y?_i(te,K):te);E[k]=J,B[k]=J-de}if(s){var ue,me=k==="x"?Cr:Rr,ge=k==="x"?nn:on,ye=E[T],be=T==="y"?"height":"width",Re=ye+C[me],ze=ye-C[ge],$e=[Cr,Rr].indexOf(v)!==-1,Tt=(ue=M==null?void 0:M[T])!=null?ue:0,vr=$e?Re:ye-x[be]-O[be]-Tt+j.altAxis,ir=$e?ye+x[be]+O[be]-Tt-j.altAxis:ze,Gt=y&&$e?rU(vr,ye,ir):nl(y?vr:Re,ye,y?ir:ze);E[T]=Gt,B[T]=Gt-ye}t.modifiersData[n]=B}}var zU={name:"preventOverflow",enabled:!0,phase:"main",fn:jU,requiresIfExists:["offset"]};function NU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function AU(e){return e===un(e)||!en(e)?S0(e):NU(e)}function MU(e){var t=e.getBoundingClientRect(),r=Ya(t.width)/e.offsetWidth||1,n=Ya(t.height)/e.offsetHeight||1;return r!==1||n!==1}function LU(e,t,r){r===void 0&&(r=!1);var n=en(t),o=en(t)&&MU(t),i=ei(t),a=Qa(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Hn(t)!=="body"||w0(i))&&(s=AU(t)),en(t)?(u=Qa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=b0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function $U(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function DU(e){var t=$U(e);return Q9.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function FU(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function BU(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var dx={placement:"bottom",modifiers:[],strategy:"absolute"};function hx(){for(var e=arguments.length,t=new Array(e),r=0;r .`,` { - `,`; - - `,`; - } -`],[` - position: relative; - width: 100%; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Fe.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return TE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),KU=function(e,t){var r,n=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,u=e.prefix,c=e.suffix,f=e.open,d=e.defaultOpen,p=e.active,y=p===void 0?!1:p,S=e.disabled,g=S===void 0?!1:S,C=e.rootStyles,v=e.component,b=e.onOpenChange,_=e.onClick,k=e.onKeyUp,T=ji(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),E=se.useContext(kf),x=se.useContext(Xd),O=x.collapsed,I=x.rtl,j=x.transitionDuration,M=p0(),B=M.renderExpandIcon,$=M.closeOnClick,D=M.menuItemStyles,Z=M.transitionDuration,ie=se.useState(!!d),de=ie[0],Y=ie[1],te=se.useState(!1),ce=te[0],we=te[1],ke=se.useState(!1),Pt=ke[0],Le=ke[1],Se=se.useRef(null),G=se.useRef(null),V=se.useRef(),q=qU({level:E,buttonRef:Se,contentRef:G}).popperInstance,ee=function(){var J=G.current;if(J){J.style.display="block",J.style.overflow="hidden",J.style.height="auto";var ue=J.offsetHeight;J.style.height="0px",J.offsetHeight,J.style.height="".concat(ue,"px"),V.current=setTimeout(function(){J.style.overflow="auto",J.style.height="auto"},Z)}},U=function(){var J=G.current;J&&(J.style.overflow="hidden",J.style.height="".concat(J.offsetHeight,"px"),J.offsetHeight,J.style.height="0px",V.current=setTimeout(function(){J.style.overflow="auto",J.style.display="none"},Z))},he=function(){if(!(E===0&&O)){clearTimeout(Number(V.current));var J=f??de;J?U():ee(),b==null||b(!J),typeof f>"u"&&Y(!de)}},le=function(J){_==null||_(J),he()},oe=function(J){k==null||k(J),J.key==="Enter"&&he()},ae=function(J){if(D){var ue={level:E,disabled:g,active:y,isSubmenu:!0,open:f??de},me=D.root,ge=D.button,ye=D.label,be=D.icon,Re=D.prefix,ze=D.suffix,$e=D.subMenuContent,Tt=D.SubMenuExpandIcon;switch(J){case"root":return typeof me=="function"?me(ue):me;case"button":return typeof ge=="function"?ge(ue):ge;case"label":return typeof ye=="function"?ye(ue):ye;case"icon":return typeof be=="function"?be(ue):be;case"prefix":return typeof Re=="function"?Re(ue):Re;case"suffix":return typeof ze=="function"?ze(ue):ze;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(ue):Tt;case"subMenuContent":return typeof $e=="function"?$e(ue):$e;default:return}}};se.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),O&&E===0&&we(!1)},[O,E,I,j,q]),se.useEffect(function(){var J=function(ye){var be,Re,ze;!ce&&(!((be=Se.current)===null||be===void 0)&&be.contains(ye))?we(!0):($&&!(!((Re=ye.closest(".".concat(Fe.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Fe.subMenuRoot))||!(!((ze=G.current)===null||ze===void 0)&&ze.contains(ye))&&ce)&&we(!1)},ue=function(ye){J(ye.target)},me=function(ye){ye.key==="Enter"?J(ye.target):ye.key==="Escape"&&we(!1)},ge=function(){document.removeEventListener("click",ue),document.removeEventListener("keyup",me)};return ge(),O&&E===0&&(document.addEventListener("click",ue,!1),document.addEventListener("keyup",me,!1)),function(){ge()}},[O,E,$,ce]),se.useEffect(function(){Le(!0)},[]);var K=(r={},r[Fe.active]=y,r[Fe.disabled]=g,r[Fe.open]=f??de,r);return se.createElement(VU,{ref:t,className:Ot(Fe.menuItemRoot,Fe.subMenuRoot,K,o),menuItemStyles:ae("root"),level:E,collapsed:O,rtl:I,disabled:g,active:y,buttonStyles:ae("button"),rootStyles:C},se.createElement(EE,zr({"data-testid":"".concat(Fe.button,"-test-id"),ref:Se,title:s,className:Ot(Fe.button,K),onClick:le,onKeyUp:oe,component:v,tabIndex:0},T),a&&se.createElement(vE,{rtl:I,className:Ot(Fe.icon,K),rootStyles:ae("icon")},a),u&&se.createElement(gE,{collapsed:O,transitionDuration:j,firstLevel:E===0,className:Ot(Fe.prefix,K),rtl:I,rootStyles:ae("prefix")},u),se.createElement(mE,{className:Ot(Fe.label,K),rootStyles:ae("label")},i),c&&se.createElement(yE,{collapsed:O,transitionDuration:j,firstLevel:E===0,className:Ot(Fe.suffix,K),rootStyles:ae("suffix")},c),se.createElement(M9,{rtl:I,className:Ot(Fe.SubMenuExpandIcon,K),collapsed:O,level:E,rootStyles:ae("SubMenuExpandIcon")},B?B({level:E,disabled:g,active:y,open:f??de}):O&&E===0?se.createElement($9,null):se.createElement(L9,{rtl:I,open:f??de}))),se.createElement(A9,{ref:G,openWhenCollapsed:ce,open:f??de,firstLevel:E===0,collapsed:O,defaultOpen:f&&!Pt||d,className:Ot(Fe.subMenuContent,K),rootStyles:ae("subMenuContent")},se.createElement(kf.Provider,{value:E+1},n)))},YU=se.forwardRef(KU),px,QU=Nt.li(mx||(mx=or([` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`],[` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Fe.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return TE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),XU=function(e,t){var r,n=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,u=e.active,c=u===void 0?!1:u,f=e.disabled,d=f===void 0?!1:f,p=e.component,y=e.rootStyles,S=ji(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),g=se.useContext(kf),C=se.useContext(Xd),v=C.collapsed,b=C.rtl,_=C.transitionDuration,k=p0().menuItemStyles,T=function(x){if(k){var O={level:g,disabled:d,active:c,isSubmenu:!1},I=k.root,j=k.button,M=k.label,B=k.icon,$=k.prefix,D=k.suffix;switch(x){case"root":return typeof I=="function"?I(O):I;case"button":return typeof j=="function"?j(O):j;case"label":return typeof M=="function"?M(O):M;case"icon":return typeof B=="function"?B(O):B;case"prefix":return typeof $=="function"?$(O):$;case"suffix":return typeof D=="function"?D(O):D;default:return}}},E=(r={},r[Fe.active]=c,r[Fe.disabled]=d,r);return se.createElement(QU,{ref:t,className:Ot(Fe.menuItemRoot,E,i),menuItemStyles:T("root"),level:g,collapsed:v,rtl:b,disabled:d,active:c,buttonStyles:T("button"),rootStyles:y},se.createElement(EE,zr({className:Ot(Fe.button,E),"data-testid":"".concat(Fe.button,"-test-id"),component:p,tabIndex:0},S),o&&se.createElement(vE,{rtl:b,className:Ot(Fe.icon,E),rootStyles:T("icon")},o),a&&se.createElement(gE,{collapsed:v,transitionDuration:_,firstLevel:g===0,className:Ot(Fe.prefix,E),rtl:b,rootStyles:T("prefix")},a),se.createElement(mE,{className:Ot(Fe.label,E),rootStyles:T("label")},n),s&&se.createElement(yE,{collapsed:v,transitionDuration:_,firstLevel:g===0,className:Ot(Fe.suffix,E),rootStyles:T("suffix")},s)))},gr=se.forwardRef(XU),mx,_0={},JU=nt;Object.defineProperty(_0,"__esModule",{value:!0});var OE=_0.default=void 0,ZU=JU(ot()),e7=m;OE=_0.default=(0,ZU.default)((0,e7.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"MenuOutlined");var x0={},t7=nt;Object.defineProperty(x0,"__esModule",{value:!0});var IE=x0.default=void 0,r7=t7(ot()),n7=m;IE=x0.default=(0,r7.default)((0,n7.jsx)("path",{d:"M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5m3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"PermDataSetting");var C0={},o7=nt;Object.defineProperty(C0,"__esModule",{value:!0});var jE=C0.default=void 0,i7=o7(ot()),a7=m;jE=C0.default=(0,i7.default)((0,a7.jsx)("path",{d:"M12 14.67 3.41 6.09 2 7.5l8.5 8.5H4v2h16v-2h-6.5l5.15-5.15c.26.1.55.15.85.15 1.38 0 2.5-1.12 2.5-2.5S20.88 6 19.5 6 17 7.12 17 8.5c0 .35.07.67.2.97z"}),"NetworkPing");var R0={},s7=nt;Object.defineProperty(R0,"__esModule",{value:!0});var zE=R0.default=void 0,l7=s7(ot()),u7=m;zE=R0.default=(0,l7.default)((0,u7.jsx)("path",{d:"M19 3H4.99C3.89 3 3 3.9 3 5l.01 14c0 1.1.89 2 1.99 2h10l6-6V5c0-1.1-.9-2-2-2M7 8h10v2H7zm5 6H7v-2h5zm2 5.5V14h5.5z"}),"StickyNote2");var k0={},c7=nt;Object.defineProperty(k0,"__esModule",{value:!0});var NE=k0.default=void 0,f7=c7(ot()),d7=m;NE=k0.default=(0,f7.default)((0,d7.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var P0={},h7=nt;Object.defineProperty(P0,"__esModule",{value:!0});var AE=P0.default=void 0,p7=h7(ot()),m7=m;AE=P0.default=(0,p7.default)((0,m7.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 14H7v-4h4zm0-6H7V7h4zm6 6h-4v-4h4zm0-6h-4V7h4z"}),"Dataset");var T0={},v7=nt;Object.defineProperty(T0,"__esModule",{value:!0});var ME=T0.default=void 0,g7=v7(ot()),y7=m;ME=T0.default=(0,g7.default)((0,y7.jsx)("path",{d:"M21 15v-2h-3.07c-.05-.39-.12-.77-.22-1.14l2.58-1.49-1-1.73L16.92 10c-.28-.48-.62-.91-.99-1.29.04-.23.07-.46.07-.71 0-.8-.24-1.55-.65-2.18L17 4.17l-1.41-1.41-1.72 1.72c-1.68-.89-3.1-.33-3.73 0L8.41 2.76 7 4.17l1.65 1.65C8.24 6.45 8 7.2 8 8c0 .25.03.48.07.72-.37.38-.71.81-.99 1.28L4.71 8.63l-1 1.73 2.58 1.49c-.1.37-.17.75-.22 1.14H3v2h3.07c.05.39.12.77.22 1.14l-2.58 1.49 1 1.73L7.08 18c1.08 1.81 2.88 3 4.92 3s3.84-1.19 4.92-3l2.37 1.37 1-1.73-2.58-1.49c.1-.37.17-.75.22-1.14H21zm-8 2h-2v-6h2z"}),"PestControl");var E0={},S7=nt;Object.defineProperty(E0,"__esModule",{value:!0});var LE=E0.default=void 0,b7=S7(ot()),tm=m;LE=E0.default=(0,b7.default)([(0,tm.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),(0,tm.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),(0,tm.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");var O0={},w7=nt;Object.defineProperty(O0,"__esModule",{value:!0});var $E=O0.default=void 0,_7=w7(ot()),x7=m;$E=O0.default=(0,_7.default)((0,x7.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed");var I0={},C7=nt;Object.defineProperty(I0,"__esModule",{value:!0});var DE=I0.default=void 0,R7=C7(ot()),k7=m;DE=I0.default=(0,R7.default)((0,k7.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 1V4.5l5.5 5.5z"}),"Summarize");var j0={},P7=nt;Object.defineProperty(j0,"__esModule",{value:!0});var FE=j0.default=void 0,T7=P7(ot()),vx=m;FE=j0.default=(0,T7.default)([(0,vx.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),(0,vx.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings");var z0={},E7=nt;Object.defineProperty(z0,"__esModule",{value:!0});var BE=z0.default=void 0,O7=E7(ot()),I7=m;BE=z0.default=(0,O7.default)((0,I7.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var N0={},j7=nt;Object.defineProperty(N0,"__esModule",{value:!0});var WE=N0.default=void 0,z7=j7(ot()),N7=m;WE=N0.default=(0,z7.default)((0,N7.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Sync");var A0={},A7=nt;Object.defineProperty(A0,"__esModule",{value:!0});var Rv=A0.default=void 0,M7=A7(ot()),L7=m;Rv=A0.default=(0,M7.default)((0,L7.jsx)("path",{d:"M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25m-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-1.75s5 1.21 5 1.75zm9 0H14v-1.25c0-.46-.2-.86-.52-1.22.88-.3 1.96-.53 3.02-.53 2.44 0 5 1.21 5 1.75zM7.5 12c1.93 0 3.5-1.57 3.5-3.5S9.43 5 7.5 5 4 6.57 4 8.5 5.57 12 7.5 12m0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 5.5c1.93 0 3.5-1.57 3.5-3.5S18.43 5 16.5 5 13 6.57 13 8.5s1.57 3.5 3.5 3.5m0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2"}),"PeopleOutline");const $7=()=>{const[e,t]=N.useState(!1),r=Ee(D4);return m.jsx(E9,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(j9,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(gr,{icon:m.jsx(OE,{}),onClick:()=>{t(!e)}}),m.jsx(gr,{component:m.jsx(yr,{to:"/"}),icon:m.jsx(IE,{}),children:"Process"}),m.jsxs(YU,{label:"Network",icon:m.jsx(jE,{}),children:[m.jsx(gr,{component:m.jsx(yr,{to:"/sentry-network"}),icon:m.jsx(Rv,{}),children:"eth/6x P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/sentinel-network"}),icon:m.jsx(Rv,{}),children:"Beacon chain P2P"}),m.jsx(gr,{component:m.jsx(yr,{to:"/downloader"}),icon:m.jsx(WE,{}),children:"Downloader"})]}),m.jsx(gr,{component:m.jsx(yr,{to:"/logs"}),icon:m.jsx(zE,{}),children:"Logs"}),m.jsx(gr,{component:m.jsx(yr,{to:"/chain"}),icon:m.jsx(NE,{}),children:"Chain"}),m.jsx(gr,{component:m.jsx(yr,{to:"/data"}),icon:m.jsx(AE,{}),children:"Data"}),m.jsx(gr,{component:m.jsx(yr,{to:"/debug"}),icon:m.jsx(ME,{}),children:"Debug"}),m.jsx(gr,{component:m.jsx(yr,{to:"/testing"}),icon:m.jsx(LE,{}),children:"Testing"}),m.jsx(gr,{component:m.jsx(yr,{to:"/performance"}),icon:m.jsx($E,{}),children:"Performance"}),m.jsx(gr,{component:m.jsx(yr,{to:"/documentation"}),icon:m.jsx(DE,{}),children:"Documentation"}),m.jsx(gr,{component:m.jsx(yr,{to:"/issues"}),icon:m.jsx(BE,{}),suffix:m.jsx(m.Fragment,{children:r==="0"?null:m.jsx("div",{className:"w-5 flex items-center justify-center rounded-full aspect-square bg-red-500 text-white text-xs font-semibold",children:r})}),children:"Issues"}),m.jsx(gr,{component:m.jsx(yr,{to:"/admin"}),icon:m.jsx(FE,{}),children:"Admin"})]})})};function D7(e){return xn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const F7=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],B7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${We(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return qn(s,D7,a)},W7=kt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${We(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ne({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},U7={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},H7=e=>U7[e]||e,q7=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiTypography"}),o=H7(n.color),i=Qk(ne({},n,{color:o})),{align:a="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:f=!1,paragraph:d=!1,variant:p="body1",variantMapping:y=gx}=i,S=ft(i,F7),g=ne({},i,{align:a,color:o,className:s,component:u,gutterBottom:c,noWrap:f,paragraph:d,variant:p,variantMapping:y}),C=u||(d?"p":y[p]||gx[p])||"span",v=B7(g);return m.jsx(W7,ne({as:C,ref:r,ownerState:g,className:bt(v.root,s)},S))}),yx=q7;function G7({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const V7=N.createContext(void 0),K7=V7;function UE(){return N.useContext(K7)}function Y7(e){return xn("PrivateSwitchBase",e)}Gn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Q7=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],X7=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${We(o)}`],input:["input"]};return qn(i,Y7,t)},J7=kt(xP)(({ownerState:e})=>ne({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Z7=kt("input",{shouldForwardProp:rP})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),eH=N.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:u,disableFocusRipple:c=!1,edge:f=!1,icon:d,id:p,inputProps:y,inputRef:S,name:g,onBlur:C,onChange:v,onFocus:b,readOnly:_,required:k=!1,tabIndex:T,type:E,value:x}=t,O=ft(t,Q7),[I,j]=Tk({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),M=UE(),B=te=>{b&&b(te),M&&M.onFocus&&M.onFocus(te)},$=te=>{C&&C(te),M&&M.onBlur&&M.onBlur(te)},D=te=>{if(te.nativeEvent.defaultPrevented)return;const ce=te.target.checked;j(ce),v&&v(te,ce)};let Z=u;M&&typeof Z>"u"&&(Z=M.disabled);const ie=E==="checkbox"||E==="radio",de=ne({},t,{checked:I,disabled:Z,disableFocusRipple:c,edge:f}),Y=X7(de);return m.jsxs(J7,ne({component:"span",className:bt(Y.root,a),centerRipple:!0,focusRipple:!c,disabled:Z,tabIndex:null,role:void 0,onFocus:B,onBlur:$,ownerState:de,ref:r},O,{children:[m.jsx(Z7,ne({autoFocus:n,checked:o,defaultChecked:s,className:Y.input,disabled:Z,id:ie?p:void 0,name:g,onChange:D,readOnly:_,ref:S,required:k,ownerState:de,tabIndex:T,type:E},E==="checkbox"&&x===void 0?{}:{value:x},y)),I?i:d]}))}),tH=eH,rH=i3({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Vn({props:e,name:"MuiStack"})}),nH=rH;function oH(e){return xn("MuiFormControlLabel",e)}const iH=Gn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hs=iH,aH=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],sH=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${We(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return qn(a,oH,t)},lH=kt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hs.label}`]:t.label},t.root,t[`labelPlacement${We(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ne({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Hs.label}`]:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),uH=kt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}})),cH=N.forwardRef(function(t,r){var n,o;const i=Vn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:u,disabled:c,disableTypography:f,label:d,labelPlacement:p="end",required:y,slotProps:S={}}=i,g=ft(i,aH),C=UE(),v=(n=c??u.props.disabled)!=null?n:C==null?void 0:C.disabled,b=y??u.props.required,_={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof u.props[I]>"u"&&typeof i[I]<"u"&&(_[I]=i[I])});const k=G7({props:i,muiFormControl:C,states:["error"]}),T=ne({},i,{disabled:v,labelPlacement:p,required:b,error:k.error}),E=sH(T),x=(o=S.typography)!=null?o:s.typography;let O=d;return O!=null&&O.type!==yx&&!f&&(O=m.jsx(yx,ne({component:"span"},x,{className:bt(E.label,x==null?void 0:x.className),children:O}))),m.jsxs(lH,ne({className:bt(E.root,a),ownerState:T,ref:r},g,{children:[N.cloneElement(u,_),b?m.jsxs(nH,{display:"block",children:[O,m.jsxs(uH,{ownerState:T,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):O]}))}),Sx=cH;function fH(e){return xn("MuiSwitch",e)}const dH=Gn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lr=dH,hH=["className","color","edge","size","sx"],pH=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${We(r)}`,`size${We(n)}`],switchBase:["switchBase",`color${We(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qn(s,fH,t);return ne({},t,u)},mH=kt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${We(r.edge)}`],t[`size${We(r.size)}`]]}})(({ownerState:e})=>ne({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}})),vH=kt(tH,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},r.color!=="default"&&t[`color${We(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>ne({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?uf(e.palette[t.color].main,.62):lf(e.palette[t.color].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),gH=kt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),yH=kt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),SH=N.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:u}=n,c=ft(n,hH),f=ne({},n,{color:i,edge:a,size:s}),d=pH(f),p=m.jsx(yH,{className:d.thumb,ownerState:f});return m.jsxs(mH,{className:bt(d.root,o),sx:u,ownerState:f,children:[m.jsx(vH,ne({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:f},c,{classes:ne({},d,{root:d.switchBase})})),m.jsx(gH,{className:d.track,ownerState:f})]})}),bx=SH,bH=({segments:e,onSegmentClicked:t})=>{const r=e.map($=>({status:$,visible:!0,active:$.downloadedBytes<$.totalBytes&&$.downloadedBytes>0})),[n,o]=N.useState(r),[i,a]=N.useState(!1),[s,u]=N.useState(!1),[c,f]=N.useState(0),d=N.useRef(null),[p,y]=N.useState(!1),[S,g]=N.useState(!1),[C,v]=N.useState({column:"Name",descending:!0});N.useEffect(()=>{d.current&&!s&&!i&&(d.current.scrollTop=c),i&&a(!1)},[c,s]),N.useEffect(()=>{},[r]);const b=$=>$.peers.length||0,_=$=>{let D=0;return $.peers.forEach(Z=>{D+=Z.downloadRate}),D},k=$=>$.webseeds.length||0,T=$=>{let D=0;return $.webseeds.forEach(Z=>{D+=Z.downloadRate}),D},E=($,D)=>$/D*100,x=($,D,Z=!0)=>{Z&&a(!0);let de=[...$].sort((Y,te)=>D.column==="Name"?O(Y.status.name,te.status.name,D.descending):D.column==="Progress"?I(E(Y.status.downloadedBytes,Y.status.totalBytes),E(te.status.downloadedBytes,te.status.totalBytes),D.descending):D.column==="Size"?I(Y.status.totalBytes,te.status.totalBytes,D.descending):D.column==="PeersCount"?I(b(Y.status),b(te.status),D.descending):D.column==="PeersRate"?I(_(Y.status),_(te.status),D.descending):D.column==="WebseedsCount"?I(k(Y.status),k(te.status),D.descending):D.column==="WebseedsRate"?I(T(Y.status),T(te.status),D.descending):I(Y.active?1:0,te.active?1:0,D.descending));v(D),o(de)},O=($,D,Z)=>Z?D.localeCompare($):$.localeCompare(D),I=($,D,Z)=>Z?D-$:$-D,j=$=>C.column!==$?m.jsx(Ql,{className:"ml-2"}):C.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),M=$=>{y($.target.checked);let D=n;D.forEach(Z=>{$.target.checked?E(Z.status.downloadedBytes,Z.status.totalBytes)===100&&(Z.visible=!1):E(Z.status.downloadedBytes,Z.status.totalBytes)===100&&(Z.visible=!0)}),o(D)},B=$=>{g($.target.checked);let D=n;D.forEach(Z=>{$.target.checked?E(Z.status.downloadedBytes,Z.status.totalBytes)===0&&(Z.visible=!1):E(Z.status.downloadedBytes,Z.status.totalBytes)===0&&(Z.visible=!0)}),o(D)};return N.useEffect(()=>{},[p,S]),m.jsxs("div",{className:"table-container",style:{overflowY:"auto"},ref:d,children:[m.jsxs("div",{className:"flex flex-row justify-around",children:[m.jsx(Sx,{control:m.jsx(bx,{checked:p,onChange:M}),label:"Hide downloaded files"}),m.jsx(Sx,{control:m.jsx(bx,{checked:S,onChange:B}),label:"Hide files with no progress"})]}),m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Name",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Name",j("Name")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Progress",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Progress",j("Progress")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Size",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Size",j("Size")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"PeersCount",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Count",j("PeersCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"PeersRate",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Peers Rate",j("PeersRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"WebseedsCount",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Count",j("WebseedsCount")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"WebseedsRate",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Webseeds Rate",j("WebseedsRate")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{x(n,{column:"Active",descending:!C.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Active",j("Active")]})})]})}),m.jsx("tbody",{children:n.map($=>m.jsx(m.Fragment,{children:$.visible&&m.jsxs("tr",{className:"border-b hover:bg-gray-100 cursor-pointer",onClick:()=>{d.current&&f(d.current.scrollTop),u(!0),t($.status)},children:[m.jsx("td",{className:"px-4 py-2",children:$.status.name}),m.jsx("td",{className:"px-4 py-2",children:s0($.status.downloadedBytes,$.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:Bt($.status.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:b($.status)}),m.jsx("td",{className:"px-4 py-2",children:_n(_($.status))}),m.jsx("td",{className:"px-4 py-2",children:k($.status)}),m.jsx("td",{className:"px-4 py-2",children:_n(T($.status))}),m.jsx("td",{className:"px-4 py-2",children:$.active.toString()})]})}))})]})]})},wx=({peers:e})=>{const[t,r]=N.useState(e),[n,o]=N.useState({column:"Url",descending:!0});N.useEffect(()=>{i(e,n)},[e]);const i=(c,f)=>{let p=[...c].sort((y,S)=>f.column==="Url"?a(y.url,S.url,f.descending):s(y.downloadRate,S.downloadRate,f.descending));o(f),r(p)},a=(c,f,d)=>d?f.localeCompare(c):c.localeCompare(f),s=(c,f,d)=>d?f-c:c-f,u=c=>n.column!==c?m.jsx(Ql,{className:"ml-2"}):n.descending?m.jsx(Kl,{}):m.jsx(Yl,{});return m.jsxs("table",{className:"table-fixed text-left",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{i(t,{column:"Url",descending:!n.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["URL",u("Url")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{i(t,{column:"Rate",descending:!n.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Rate",u("Rate")]})})]})}),m.jsx("tbody",{children:t.map(c=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:c.url}),m.jsx("td",{className:"px-4 py-2",children:Bt(c.downloadRate)})]}))})]})},wH=({segment:e})=>{const t=r=>{let n=0;return r.forEach(o=>{n+=o.downloadRate}),_n(n)};return m.jsx("div",{className:"w-full",children:e?m.jsxs("div",{className:"flex flex-row w-full justify-around mt-20",children:[m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[45vh] w-full overflow-auto items-center",children:[m.jsx("p",{className:"font-bold text-lg",children:e.peers.length+" peers"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.peers)}),m.jsx(wx,{peers:e.peers})]})}),m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[45vh] w-full overflow-auto items-center",children:[m.jsx("p",{className:"font-bold text-lg",children:e.webseeds.length+" webseeds"}),m.jsx("p",{className:"font-bold text-lg",children:"Total speed: "+t(e.webseeds)}),m.jsx(wx,{peers:e.webseeds})]})})]}):m.jsx("div",{})})};var M0={},_H=nt;Object.defineProperty(M0,"__esModule",{value:!0});var HE=M0.default=void 0,xH=_H(ot()),CH=m;HE=M0.default=(0,xH.default)((0,CH.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const RH=({onClose:e})=>{const t=Ee(Ed),[r,n]=N.useState(0),[o,i]=N.useState(0),[a,s]=N.useState(null),[u,c]=N.useState(t.segments),f=S=>{S.key==="Escape"&&(a?s(null):e())};N.useEffect(()=>(window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}),[a]),N.useEffect(()=>{let S=0,g=0;t.segments.forEach(C=>{S+=p(C),g+=d(C)}),n(S),i(g)},[t]),N.useEffect(()=>{c(a?[a]:t.segments)},[a]);const d=S=>{let g=0;return S.peers.forEach(C=>{g+=C.downloadRate}),g},p=S=>{let g=0;return S.webseeds.forEach(C=>{g+=C.downloadRate}),g},y=()=>m.jsxs("div",{className:"flex flex-row w-full p-10",children:[m.jsx("div",{className:"flex-[1]",children:a&&m.jsx(HE,{onClick:()=>{s(null)},className:"cursor-pointer"})}),m.jsx("div",{className:"flex flex-[2] justify-center",children:m.jsx("h3",{className:"text-3xl font-semibold",children:"Segments List"})}),m.jsx("div",{className:"flex flex-[1] justify-end",children:m.jsx(Id,{onClick:()=>e(),className:"cursor-pointer"})})]});return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-[100vw]",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-fit bg-white outline-none focus:outline-none items-center",children:[y(),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-start items-center h-[70vh] overflow-scroll",children:[m.jsx("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[83vh] w-full overflow-auto",children:m.jsx(bH,{segments:u,onSegmentClicked:S=>s(S)})}),a?m.jsx(wH,{segment:a}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"webseeds :"}),m.jsx("p",{children:_n(r)})]}),m.jsxs("div",{className:"flex flex-row",children:[m.jsx("p",{className:"font-bold",children:"peers :"}),m.jsx("p",{children:_n(o)})]})]})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},kH=()=>{const e=Ee(Ed),[t,r]=N.useState(!1),n=()=>!e.downloadFinished&&e.indexed<100&&e.torrentMetadataReady0?"downloading and waiting for metadata":"waiting for metadata":!e.downloadFinished&&e.indexed<100?"Downloading":e.indexed<100?"Indexing":"Finished",o=()=>{let i=0;return e.totalTime.forEach(a=>{i+=a}),Il(i)};return m.jsxs("div",{children:[m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Status"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Downaloaded"}),m.jsx("th",{className:"px-4 py-2",children:"Total"}),m.jsx("th",{className:"px-4 py-2",children:"Time Left"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"}),m.jsx("th",{className:"px-4 py-2",children:"Download Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Upload Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Peers"}),m.jsx("th",{className:"px-4 py-2",children:"Files"}),m.jsx("th",{className:"px-4 py-2",children:"Connections"}),m.jsx("th",{className:"px-4 py-2",children:"Alloc"}),m.jsx("th",{className:"px-4 py-2",children:"Sys"})]})}),m.jsx("tbody",{children:(e==null?void 0:e.downloaded)&&m.jsxs("tr",{onClick:()=>{r(!0)},children:[m.jsx("td",{className:"px-4 py-2",children:"Snapshots"}),m.jsx("td",{className:"px-4 py-2 text-center",children:n()}),m.jsx("td",{className:"px-4 py-2",children:s0(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:Bt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:Bt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:f8(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:o()}),m.jsx("td",{className:"px-4 py-2",children:j_(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:j_(e.uploadRate)}),m.jsx("td",{className:"px-4 py-2",children:e.peers}),m.jsx("td",{className:"px-4 py-2",children:e.files}),m.jsx("td",{className:"px-4 py-2",children:e.connections}),m.jsx("td",{className:"px-4 py-2",children:Bt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:Bt(e.sys)})]})})]}),t&&m.jsx(RH,{onClose:()=>{r(!1)}})]})},PH=({selectedStatistics:e,statistics:t,onRowClicked:r})=>{const n=o=>{let i="px-4 py-2 hover:bg-gray-100";const a="bg-gray-300",s="bg-white text-black";return(o===On.Active||o===On.Static||o===On.Total)&&(i+=" border-r"),o===e?i+" "+a:i+" "+s};return m.jsxs("div",{className:"flex flex-row",children:[m.jsx("div",{className:"shadow-lg rounded-md bg-white overflow-auto mr-5",children:m.jsx("table",{className:"table-fixed text-center",children:m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsxs("td",{className:n(On.Active),onClick:()=>r(On.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(On.Static),onClick:()=>r(On.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(On.Total),onClick:()=>r(On.Total),children:[m.jsx("span",{children:"Total Seen:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.totalPeers})]})]})})})}),m.jsx("div",{className:"shadow-lg rounded-md bg-white overflow-auto",children:m.jsx("table",{className:"table-fixed text-center",children:m.jsx("tbody",{children:m.jsxs("tr",{children:[m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"In Rate:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:_n(t.totalInRate)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Network In:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:Bt(t.totalInBytes)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Out Rate:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:_n(t.totalOutRate)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Network Out:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:Bt(t.totalOutBytes)})]}),m.jsxs("td",{className:"px-4 py-2",children:[m.jsx("span",{children:"Total Network:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:Bt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},rm=({peers:e,onPeerClicked:t})=>{const[r,n]=N.useState(e),[o,i]=N.useState({column:"Type",descending:!0});N.useEffect(()=>{a(e,o)},[e]);const a=(d,p)=>{let y=d.sort((S,g)=>p.column==="Id"?s(S.id,g.id,p.descending):p.column==="Type"?s(S.type,g.type,p.descending):p.column==="Status"?s(S.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(S.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(S.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(S.network.inRate,g.network.inRate,p.descending):u(S.network.outRate,g.network.outRate,p.descending));i(p),n(y)},s=(d,p,y)=>y?p.localeCompare(d):d.localeCompare(p),u=(d,p,y)=>(console.log("! currentSortState "+o.column+" "+o.descending),y?p-d:d-p),c=d=>o.column!==d?m.jsx(Ql,{className:"ml-2"}):o.descending?m.jsx(Kl,{}):m.jsx(Yl,{}),f=d=>d.network.static?"static":d.network.bootnode?"bootnode":"dynamic";return m.jsx("div",{className:"flex flex-col shadow-lg rounded-md p-2 bg-white min-h-[40px] max-h-[83vh] w-full overflow-auto",children:m.jsxs("table",{className:"table-fixed text-left w-full",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Id",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["peer ID",c("Id")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Type",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Type",c("Type")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"Status",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Status",c("Status")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"TotalIn",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Total In",c("TotalIn")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"TotalOut",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Total Out",c("TotalOut")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"InSpeed",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["In Speed",c("InSpeed")]})}),m.jsx("th",{className:"px-4 py-2 cursor-pointer",onClick:()=>{a(r,{column:"OutSpeed",descending:!o.descending})},children:m.jsxs("div",{className:"flex flex-row",children:["Out Speed",c("OutSpeed")]})})]})}),m.jsx("tbody",{children:r.map((d,p)=>m.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>{t(d.id)},children:[m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:d.id}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:f(d)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:d.active?"active":""}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:Bt(d.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:Bt(d.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:_n(d.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:_n(d.network.outRate)})]},p))})]})})},TH=({peerId:e,onClose:t,...r})=>{const o=y4()(je.getState(),e),i=(d,p)=>{let y=Object.keys(d),S=Object.keys(p);const g=new Set([...y,...S]),C=Array.from(g);let v=[];return C.forEach(b=>{let _=d[b]|0,k=p[b]|0;v.push({key:b,bytesIn:_,bytesOut:k})}),v},a=()=>{let d=i(o.network.capBytesIn,o.network.capBytesOut);return u(d)},s=()=>{let d=i(o.network.typeBytesIn,o.network.typeBytesOut);return u(d)},u=d=>m.jsxs("table",{className:"table-auto text-left w-full",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b font-bold",children:[m.jsx("th",{children:"Type"}),m.jsx("th",{children:"In"}),m.jsx("th",{children:"Out"})]})}),m.jsx("tbody",{children:d.map(p=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{children:p.key}),m.jsx("td",{children:Bt(p.bytesIn)}),m.jsx("td",{children:Bt(p.bytesOut)})]},p.key))})]}),c=()=>m.jsxs("table",{className:"table-auto text-left w-full",children:[m.jsx("thead",{}),m.jsxs("tbody",{children:[f("ID",o.id),f("protocols",o.protocols),f("enr",o.enr),f("Enode",o.enode),f("Cient",o.name),f("caps",o.caps.toString()),f("local address",o.network.localAddress),f("remote address",o.network.remoteAddress),f("In",Bt(o.network.bytesIn)),f("Out",Bt(o.network.bytesOut)),f("In speed",_n(o.network.inRate)),f("Out speed",_n(o.network.outRate))]})]}),f=(d,p)=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{children:d+": "}),m.jsx("td",{children:p})]},d);return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-0 z-50 outline-none focus:outline-none absolute bg-black/[.4]",children:m.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:m.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none items-center",children:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Peer Details"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center items-center max-h-[70vh] overflow-scroll",children:[m.jsx("p",{className:"font-bold underline",children:"Main info :"}),c(),m.jsx("div",{className:"h-5"}),m.jsx("p",{className:"font-bold underline",children:"Network Usage By Capability :"}),a(),m.jsx("div",{className:"h-5"}),m.jsx("p",{className:"font-bold underline",children:"Network Usage By Type :"}),s()]}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(Un,{backgroundColor:as,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var On=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(On||{});const _x=({type:e})=>{let t=[],r={activePeers:0,totalPeers:0,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0,totalInRate:0,totalOutRate:0},n=[],o=[];e==="sentry"?(t=Ee(Pd),r=Ee(x4),n=Ee(S4),o=Ee(w4)):(t=Ee(Td),r=Ee(C4),n=Ee(b4),o=Ee(_4));const[i,a]=N.useState(null),[s,u]=N.useState("none"),c=()=>m.jsxs("table",{className:"table-fixed rounded-lg shadow-lg bg-white text-left mb-4 w-full h-fit",children:[m.jsx("thead",{children:m.jsx("tr",{className:"border-b",children:m.jsx("th",{className:"px-4 py-2",children:"Error"})})}),m.jsx("tbody",{})]});return m.jsxs("div",{className:"flex items-center flex-col",children:[m.jsxs("div",{className:"flex justify-center items-center flex-row mb-5",children:[m.jsx("p",{className:"mb-2 font-bold text-2xl",children:e==="sentry"?"eth/6x P2P":"Beacon chain P2P"}),m.jsx("div",{className:"w-5"}),m.jsx(PH,{statistics:r,selectedStatistics:s,onRowClicked:f=>{u(f)}})]}),s==="active"&&m.jsx(rm,{peers:n,onPeerClicked:f=>{a(f)}}),s==="static"&&m.jsx(rm,{peers:o,onPeerClicked:f=>{a(f)}}),s==="total"&&m.jsx(rm,{peers:t,onPeerClicked:f=>{a(f)}}),s==="errors"&&c(),i&&m.jsx(TH,{peerId:i,onClose:()=>{a(null)}})]})},EH=()=>{const e=Ee(Ed),t=Ee(fP),r=Ee(dP),n=r.stages.flatMap(p=>p.subStage?[p,{...p,name:p.name,subStage:!1}]:[p]),[o,i]=N.useState(0);N.useEffect(()=>{e.torrentMetadataReadys(p)+"/"+r.stages.length,s=p=>{for(let y=0;yp.name==="Snapshots"?p.subStage?e.downloadFinished?"Finished":e.torrentMetadataReadyp.name==="Snapshots"?p.subStage?"Snapshots (Downloading)":"Snapshots (Indexing)":p.name,f=p=>p.name==="Snapshots"?p.subStage?s0(e.downloaded,e.total):XT(t.progress):"0%",d=p=>{if(p.name==="Snapshots")if(p.subStage){let y=0;return e.totalTime.forEach(S=>{y+=S}),Il(y)}else{let y=0;return t.totalTime.forEach(S=>{y+=S}),Il(y)}else return"0s"};return m.jsx("div",{children:m.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b",children:[m.jsx("th",{className:"px-4 py-2",children:"Stage"}),m.jsx("th",{className:"px-4 py-2",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"State"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Total Time"})]})}),m.jsx("tbody",{children:n.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:a(p)}),m.jsx("td",{className:"px-4 py-2",children:c(p)}),m.jsx("td",{className:"px-4 py-2",children:u(p)}),m.jsx("td",{className:"px-4 py-2",children:f(p)}),m.jsx("td",{className:"px-4 py-2",children:d(p)})]}))})]})})},OH=()=>{const e=Ee(Ed),t=Ee(fP),r=Ee(dP),n=()=>{let i=o();if((i==null?void 0:i.name)===void 0)return"0s";let a=0;return e.totalTime.forEach(s=>{a+=s}),t.totalTime.forEach(s=>{a+=s}),Il(a)},o=()=>{let i=0;return r.currentStage>0&&r.currentStage{const e=Ee(pP),t=()=>m.jsx("div",{children:m.jsx("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none mb-4",children:m.jsx("tbody",{children:e.map(r=>m.jsx("tr",{children:m.jsx("div",{className:"p-1",children:m.jsx(CP,{variant:"filled",severity:"warning",children:r.message})})}))})})});return m.jsx("div",{className:"flex flex-col",children:e.length>0?t():m.jsx("h3",{className:"py-2 text-xl font-semibold",children:"No issues detected"})})},Ta=()=>je.getState().app.activeNodeId,jH=()=>{let e=Ta();for(let t of je.getState().syncStages.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},zH=()=>{let e=Ta();for(let t of je.getState().syncStages.snapshotFilesList)if(t.nodeId===e)return t.files;return[]},NH=()=>{let e=Ta();for(let t of je.getState().issues.issues)if(t.nodeId===e)return t.issues;return[]},AH=()=>{const e=jH(),t=zH();if(e&&e.segments.length!=t.length)if(e.segments.length{je.dispatch(L4({nodeId:Ta(),issueId:i.id}))}),r.forEach(i=>{let a=LH(o,i);if(a!==void 0){let s=Date.now()-a.timestamp,u=new Date(s).toISOString().substr(11,8),c="No peers for segment: "+i+" for "+u;je.dispatch(Ub({issue:{type:uv.SnapshotSegmentMissingPeers,message:c,id:i,timestamp:a.timestamp},nodeId:Ta()}))}else je.dispatch(Ub({issue:{type:uv.SnapshotSegmentMissingPeers,message:"No peers for segment: "+i,id:i,timestamp:Date.now()-2e4},nodeId:Ta()}))})}else console.log("Error, more segments than files")},MH=(e,t)=>{let r=[];return e.forEach(n=>{let o=!1;for(let i of t.segments)if(i.name===n){o=!0;break}o||r.push(n)}),r},LH=(e,t)=>e.find(n=>n.id===t);function $H(){return m.jsx("div",{children:m.jsx(Dj,{children:m.jsxs(Xt,{path:"/",element:m.jsx(DH,{}),children:[m.jsx(Xt,{index:!0,element:m.jsx(aD,{})}),m.jsx(Xt,{path:"sentry-network",element:m.jsx(_x,{type:"sentry"})}),m.jsx(Xt,{path:"sentinel-network",element:m.jsx(_x,{type:"sentinel"})}),m.jsx(Xt,{path:"downloader",element:m.jsx(kH,{})}),m.jsx(Xt,{path:"logs",element:m.jsx(h8,{})}),m.jsx(Xt,{path:"chain",element:m.jsx(FH,{})}),m.jsx(Xt,{path:"data",element:m.jsx(p8,{})}),m.jsx(Xt,{path:"debug",element:m.jsx(BH,{})}),m.jsx(Xt,{path:"testing",element:m.jsx(WH,{})}),m.jsx(Xt,{path:"performance",element:m.jsx(OH,{})}),m.jsx(Xt,{path:"documentation",element:m.jsx(UH,{})}),m.jsx(Xt,{path:"issues",element:m.jsx(IH,{})}),m.jsx(Xt,{path:"admin",element:m.jsx(g8,{})}),m.jsx(Xt,{path:"*",element:m.jsx(HH,{})})]})})})}function DH(){const e=Hl(),t=Ee(Rt),r=Ee(wk),n=Ee(Dg),o=Ee(A4),[i,a]=N.useState(!1),[s,u]=N.useState(!1);return N.useEffect(()=>{},[]),N.useEffect(()=>{n!==""&&TD()},[n]),N.useEffect(()=>{t!==""&&n!==""&&(ID(),OD(),ED(),kP(),jD(),zD(),AD(),ow(),setInterval(()=>{ow()},5*na.second),MD(),iw(),setInterval(()=>{iw()},10*na.second),setInterval(()=>{AH()},20*na.second),setInterval(()=>{e(v4({activeNodeId:t,countInterval:15}))},15*na.second))},[t]),N.useEffect(()=>{if(t!==""&&n!==""){const c=setInterval(()=>{o?LD():clearInterval(c)},5*na.second)}},[o,n,t]),N.useEffect(()=>{t!==""&&r.length>0&&r.forEach(c=>{c.tables.length===0&&ND(c.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx($7,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(Lj,{})}),m.jsx(C8,{onSessionClicked:()=>{a(!0)},onNodeClicked:()=>{u(!0)}}),m.jsx(R8,{open:i,onClose:()=>{a(!1)}}),m.jsx(P8,{open:s,onClose:()=>{u(!1)}})]})}function FH(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function BH(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function WH(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function UH(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function HH(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(yr,{to:"/",children:"Go to the home page"})})]})}function _c(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_c=function(r){return typeof r}:_c=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_c(e)}function qH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xx(e,t){for(var r=0;r