diff --git a/web/dist/assets/index-7da21621.js b/web/dist/assets/index-020d598b.js similarity index 57% rename from web/dist/assets/index-7da21621.js rename to web/dist/assets/index-020d598b.js index 2441355..50b57c2 100644 --- a/web/dist/assets/index-7da21621.js +++ b/web/dist/assets/index-020d598b.js @@ -1,4 +1,4 @@ -function ME(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 oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(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 rx={exports:{}},vf={},nx={exports:{}},Pe={};/** +function $P(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 oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(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 rx={exports:{}},vf={},nx={exports:{}},Ee={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function ME(e,t){for(var r=0;r>>1,Te=Z[we];if(0>>1;weo(Se,ce))Go(V,Se)?(Z[we]=V,Z[G]=ce,we=G):(Z[we]=Se,Z[Me]=ce,we=Me);else if(Go(V,ce))Z[we]=V,Z[G]=ce,we=G;else break e}}return se}function o(Z,se){var ce=Z.sortIndex-se.sortIndex;return ce!==0?ce:Z.id-se.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,_=!1,w=!1,g=!1,R=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Z){for(var se=r(c);se!==null;){if(se.callback===null)n(c);else if(se.startTime<=Z)n(c),se.sortIndex=se.expirationTime,t(u,se);else break;se=r(c)}}function T(Z){if(g=!1,b(Z),!w)if(r(u)!==null)w=!0,oe(P);else{var se=r(c);se!==null&&ge(T,se.startTime-Z)}}function P(Z,se){w=!1,g&&(g=!1,v(k),k=-1),_=!0;var ce=p;try{for(b(se),d=r(u);d!==null&&(!(d.expirationTime>se)||Z&&!M());){var we=d.callback;if(typeof we=="function"){d.callback=null,p=d.priorityLevel;var Te=we(d.expirationTime<=se);se=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===r(u)&&n(u),b(se)}else n(u);d=r(u)}if(d!==null)var bt=!0;else{var Me=r(c);Me!==null&&ge(T,Me.startTime-se),bt=!1}return bt}finally{d=null,p=ce,_=!1}}var E=!1,x=null,k=-1,I=5,j=-1;function M(){return!(e.unstable_now()-jZ||125we?(Z.sortIndex=ce,t(c,Z),r(u)===null&&Z===r(c)&&(g?(v(k),k=-1):g=!0,ge(T,ce-we))):(Z.sortIndex=Te,t(u,Z),w||_||(w=!0,oe(P))),Z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(Z){var se=p;return function(){var ce=p;p=se;try{return Z.apply(this,arguments)}finally{p=ce}}}})(px);hx.exports=px;var ik=hx.exports;/** + */(function(e){function t(Z,se){var ce=Z.length;Z.push(se);e:for(;0>>1,Te=Z[be];if(0>>1;beo(Se,ce))Go(V,Se)?(Z[be]=V,Z[G]=ce,be=G):(Z[be]=Se,Z[Me]=ce,be=Me);else if(Go(V,ce))Z[be]=V,Z[G]=ce,be=G;else break e}}return se}function o(Z,se){var ce=Z.sortIndex-se.sortIndex;return ce!==0?ce:Z.id-se.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,_=!1,b=!1,g=!1,R=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(Z){for(var se=r(c);se!==null;){if(se.callback===null)n(c);else if(se.startTime<=Z)n(c),se.sortIndex=se.expirationTime,t(u,se);else break;se=r(c)}}function T(Z){if(g=!1,w(Z),!b)if(r(u)!==null)b=!0,oe(E);else{var se=r(c);se!==null&&ge(T,se.startTime-Z)}}function E(Z,se){b=!1,g&&(g=!1,v(k),k=-1),_=!0;var ce=p;try{for(w(se),d=r(u);d!==null&&(!(d.expirationTime>se)||Z&&!M());){var be=d.callback;if(typeof be=="function"){d.callback=null,p=d.priorityLevel;var Te=be(d.expirationTime<=se);se=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===r(u)&&n(u),w(se)}else n(u);d=r(u)}if(d!==null)var wt=!0;else{var Me=r(c);Me!==null&&ge(T,Me.startTime-se),wt=!1}return wt}finally{d=null,p=ce,_=!1}}var P=!1,x=null,k=-1,I=5,j=-1;function M(){return!(e.unstable_now()-jZ||125be?(Z.sortIndex=ce,t(c,Z),r(u)===null&&Z===r(c)&&(g?(v(k),k=-1):g=!0,ge(T,ce-be))):(Z.sortIndex=Te,t(u,Z),b||_||(b=!0,oe(E))),Z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(Z){var se=p;return function(){var ce=p;p=se;try{return Z.apply(this,arguments)}finally{p=ce}}}})(px);hx.exports=px;var sk=hx.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function ME(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fp=Object.prototype.hasOwnProperty,ak=/^[: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]*$/,bS={},xS={};function sk(e){return Fp.call(xS,e)?!0:Fp.call(bS,e)?!1:ak.test(e)?xS[e]=!0:(bS[e]=!0,!1)}function lk(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 uk(e,t,r,n){if(t===null||typeof t>"u"||lk(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 cr(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 Dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Dt[e]=new cr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Dt[t]=new cr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dt[e]=new cr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dt[e]=new cr(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){Dt[e]=new cr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Dt[e]=new cr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Dt[e]=new cr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Dt[e]=new cr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Dt[e]=new cr(e,5,!1,e.toLowerCase(),null,!1,!1)});var vv=/[\-:]([a-z])/g;function gv(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(vv,gv);Dt[t]=new cr(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(vv,gv);Dt[t]=new cr(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(vv,gv);Dt[t]=new cr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Dt[e]=new cr(e,1,!1,e.toLowerCase(),null,!1,!1)});Dt.xlinkHref=new cr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Dt[e]=new cr(e,1,!1,e.toLowerCase(),null,!0,!0)});function yv(e,t,r,n){var o=Dt.hasOwnProperty(t)?Dt[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wp=Object.prototype.hasOwnProperty,lk=/^[: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]*$/,wS={},xS={};function uk(e){return Wp.call(xS,e)?!0:Wp.call(wS,e)?!1:lk.test(e)?xS[e]=!0:(wS[e]=!0,!1)}function ck(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 fk(e,t,r,n){if(t===null||typeof t>"u"||ck(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 cr(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 Dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Dt[e]=new cr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Dt[t]=new cr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dt[e]=new cr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dt[e]=new cr(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){Dt[e]=new cr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Dt[e]=new cr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Dt[e]=new cr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Dt[e]=new cr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Dt[e]=new cr(e,5,!1,e.toLowerCase(),null,!1,!1)});var gv=/[\-:]([a-z])/g;function yv(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(gv,yv);Dt[t]=new cr(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(gv,yv);Dt[t]=new cr(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(gv,yv);Dt[t]=new cr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Dt[e]=new cr(e,1,!1,e.toLowerCase(),null,!1,!1)});Dt.xlinkHref=new cr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Dt[e]=new cr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sv(e,t,r,n){var o=Dt.hasOwnProperty(t)?Dt[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{dh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ps(e):""}function ck(e){switch(e.tag){case 5:return Ps(e.type);case 16:return Ps("Lazy");case 13:return Ps("Suspense");case 19:return Ps("SuspenseList");case 0:case 2:case 15:return e=hh(e.type,!1),e;case 11:return e=hh(e.type.render,!1),e;case 1:return e=hh(e.type,!0),e;default:return""}}function Hp(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 Ji:return"Fragment";case Xi:return"Portal";case Wp:return"Profiler";case Sv:return"StrictMode";case Bp:return"Suspense";case Up:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yx:return(e.displayName||"Context")+".Consumer";case gx:return(e._context.displayName||"Context")+".Provider";case _v:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wv:return t=e.displayName||null,t!==null?t:Hp(e.type)||"Memo";case po:t=e._payload,e=e._init;try{return Hp(e(t))}catch{}}return null}function fk(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 Hp(t);case 8:return t===Sv?"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 Mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dk(e){var t=_x(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 cu(e){e._valueTracker||(e._valueTracker=dk(e))}function wx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=_x(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 qp(e,t){var r=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function RS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bx(e,t){t=t.checked,t!=null&&yv(e,"checked",t,!1)}function Gp(e,t){bx(e,t);var r=Mo(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")?Vp(e,t.type,r):t.hasOwnProperty("defaultValue")&&Vp(e,t.type,Mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TS(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 Vp(e,t,r){(t!=="number"||pc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Es=Array.isArray;function ca(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=fu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function el(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ds={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},hk=["Webkit","ms","Moz","O"];Object.keys(Ds).forEach(function(e){hk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ds[t]=Ds[e]})});function Tx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ds.hasOwnProperty(e)&&Ds[e]?(""+t).trim():t+"px"}function Ox(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Tx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var pk=it({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 Qp(e,t){if(t){if(pk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function Xp(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 Jp=null;function bv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zp=null,fa=null,da=null;function ES(e){if(e=jl(e)){if(typeof Zp!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=wf(t),Zp(e.stateNode,e.type,t))}}function Px(e){fa?da?da.push(e):da=[e]:fa=e}function Ex(){if(fa){var e=fa,t=da;if(da=fa=null,ES(e),t)for(e=0;e>>=0,e===0?32:31-(Rk(e)/Tk|0)|0}var du=64,hu=4194304;function ks(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 yc(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=ks(s):(i&=a,i!==0&&(n=ks(i)))}else a=r&~o,a!==0?n=ks(a):i!==0&&(n=ks(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 kl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=r}function kk(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=Ws),$S=String.fromCharCode(32),DS=!1;function Yx(e,t){switch(e){case"keyup":return oI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zi=!1;function aI(e,t){switch(e){case"compositionend":return Qx(t);case"keypress":return t.which!==32?null:(DS=!0,$S);case"textInput":return e=t.data,e===$S&&DS?null:e;default:return null}}function sI(e,t){if(Zi)return e==="compositionend"||!kv&&Yx(e,t)?(e=Vx(),Bu=Ov=So=null,Zi=!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=US(r)}}function eC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tC(){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 Iv(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 vI(e){var t=tC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&eC(r.ownerDocument.documentElement,r)){if(n!==null&&Iv(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=HS(r,i);var a=HS(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,ea=null,im=null,Us=null,am=!1;function qS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;am||ea==null||ea!==pc(n)||(n=ea,"selectionStart"in n&&Iv(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}),Us&&al(Us,n)||(Us=n,n=wc(im,"onSelect"),0na||(e.current=dm[na],dm[na]=null,na--)}function Ge(e,t){na++,dm[na]=e.current,e.current=t}var Lo={},Jt=Uo(Lo),gr=Uo(!1),vi=Lo;function ba(e,t){var r=e.type.contextTypes;if(!r)return Lo;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 yr(e){return e=e.childContextTypes,e!=null}function xc(){Ye(gr),Ye(Jt)}function JS(e,t,r){if(Jt.current!==Lo)throw Error(ee(168));Ge(Jt,t),Ge(gr,r)}function cC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ee(108,fk(e)||"Unknown",o));return it({},r,n)}function Cc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,vi=Jt.current,Ge(Jt,e),Ge(gr,gr.current),!0}function ZS(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=cC(e,t,vi),n.__reactInternalMemoizedMergedChildContext=e,Ye(gr),Ye(Jt),Ge(Jt,e)):Ye(gr),Ge(gr,r)}var Gn=null,bf=!1,Oh=!1;function fC(e){Gn===null?Gn=[e]:Gn.push(e)}function PI(e){bf=!0,fC(e)}function Ho(){if(!Oh&&Gn!==null){Oh=!0;var e=0,t=We;try{var r=Gn;for(We=1;e>=a,o-=a,Yn=1<<32-dn(t)+o|r<k?(I=x,x=null):I=x.sibling;var j=p(v,x,b[k],T);if(j===null){x===null&&(x=I);break}e&&x&&j.alternate===null&&t(v,x),S=i(j,S,k),E===null?P=j:E.sibling=j,E=j,x=I}if(k===b.length)return r(v,x),rt&&ei(v,k),P;if(x===null){for(;kk?(I=x,x=null):I=x.sibling;var M=p(v,x,j.value,T);if(M===null){x===null&&(x=I);break}e&&x&&M.alternate===null&&t(v,x),S=i(M,S,k),E===null?P=M:E.sibling=M,E=M,x=I}if(j.done)return r(v,x),rt&&ei(v,k),P;if(x===null){for(;!j.done;k++,j=b.next())j=d(v,j.value,T),j!==null&&(S=i(j,S,k),E===null?P=j:E.sibling=j,E=j);return rt&&ei(v,k),P}for(x=n(v,x);!j.done;k++,j=b.next())j=_(x,v,k,j.value,T),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?k:j.key),S=i(j,S,k),E===null?P=j:E.sibling=j,E=j);return e&&x.forEach(function(D){return t(v,D)}),rt&&ei(v,k),P}function R(v,S,b,T){if(typeof b=="object"&&b!==null&&b.type===Ji&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case uu:e:{for(var P=b.key,E=S;E!==null;){if(E.key===P){if(P=b.type,P===Ji){if(E.tag===7){r(v,E.sibling),S=o(E,b.props.children),S.return=v,v=S;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===po&&a1(P)===E.type){r(v,E.sibling),S=o(E,b.props),S.ref=ys(v,E,b),S.return=v,v=S;break e}r(v,E);break}else t(v,E);E=E.sibling}b.type===Ji?(S=fi(b.props.children,v.mode,T,b.key),S.return=v,v=S):(T=Qu(b.type,b.key,b.props,null,v.mode,T),T.ref=ys(v,S,b),T.return=v,v=T)}return a(v);case Xi:e:{for(E=b.key;S!==null;){if(S.key===E)if(S.tag===4&&S.stateNode.containerInfo===b.containerInfo&&S.stateNode.implementation===b.implementation){r(v,S.sibling),S=o(S,b.children||[]),S.return=v,v=S;break e}else{r(v,S);break}else t(v,S);S=S.sibling}S=Nh(b,v.mode,T),S.return=v,v=S}return a(v);case po:return E=b._init,R(v,S,E(b._payload),T)}if(Es(b))return w(v,S,b,T);if(hs(b))return g(v,S,b,T);_u(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,S!==null&&S.tag===6?(r(v,S.sibling),S=o(S,b),S.return=v,v=S):(r(v,S),S=Ah(b,v.mode,T),S.return=v,v=S),a(v)):r(v,S)}return R}var Ca=SC(!0),_C=SC(!1),zl={},jn=Uo(zl),cl=Uo(zl),fl=Uo(zl);function si(e){if(e===zl)throw Error(ee(174));return e}function Fv(e,t){switch(Ge(fl,t),Ge(cl,e),Ge(jn,zl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yp(t,e)}Ye(jn),Ge(jn,t)}function Ra(){Ye(jn),Ye(cl),Ye(fl)}function wC(e){si(fl.current);var t=si(jn.current),r=Yp(t,e.type);t!==r&&(Ge(cl,e),Ge(jn,r))}function Wv(e){cl.current===e&&(Ye(jn),Ye(cl))}var nt=Uo(0);function kc(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 Ph=[];function Bv(){for(var e=0;er?r:4,e(!0);var n=Eh.transition;Eh.transition={};try{e(!1),t()}finally{We=r,Eh.transition=n}}function LC(){return Qr().memoizedState}function jI(e,t,r){var n=ko(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$C(e))DC(t,r);else if(r=mC(e,t,r,n),r!==null){var o=sr();hn(r,e,n,o),FC(r,t,n)}}function zI(e,t,r){var n=ko(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($C(e))DC(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,pn(s,a)){var u=t.interleaved;u===null?(o.next=o,$v(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=mC(e,t,o,n),r!==null&&(o=sr(),hn(r,e,n,o),FC(r,t,n))}}function $C(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function DC(e,t){Hs=Ic=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function FC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Cv(e,r)}}var jc={readContext:Yr,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useInsertionEffect:Ht,useLayoutEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useMutableSource:Ht,useSyncExternalStore:Ht,useId:Ht,unstable_isNewReconciler:!1},AI={readContext:Yr,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:Yr,useEffect:l1,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gu(4194308,4,jC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gu(4,2,e,t)},useMemo:function(e,t){var r=Cn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Cn();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=jI.bind(null,ot,e),[n.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:s1,useDebugValue:Vv,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=s1(!1),t=e[0];return e=II.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ot,o=Cn();if(rt){if(r===void 0)throw Error(ee(407));r=r()}else{if(r=t(),Pt===null)throw Error(ee(349));yi&30||CC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,l1(TC.bind(null,n,i,e),[e]),n.flags|=2048,pl(9,RC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Cn(),t=Pt.identifierPrefix;if(rt){var r=Qn,n=Yn;r=(n&~(1<<32-dn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=dl++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{hh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Es(e):""}function dk(e){switch(e.tag){case 5:return Es(e.type);case 16:return Es("Lazy");case 13:return Es("Suspense");case 19:return Es("SuspenseList");case 0:case 2:case 15:return e=ph(e.type,!1),e;case 11:return e=ph(e.type.render,!1),e;case 1:return e=ph(e.type,!0),e;default:return""}}function qp(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 Ji:return"Fragment";case Xi:return"Portal";case Bp:return"Profiler";case _v:return"StrictMode";case Up:return"Suspense";case Hp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yx:return(e.displayName||"Context")+".Consumer";case gx:return(e._context.displayName||"Context")+".Provider";case bv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wv:return t=e.displayName||null,t!==null?t:qp(e.type)||"Memo";case po:t=e._payload,e=e._init;try{return qp(e(t))}catch{}}return null}function hk(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 qp(t);case 8:return t===_v?"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 Mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pk(e){var t=_x(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 fu(e){e._valueTracker||(e._valueTracker=pk(e))}function bx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=_x(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function mc(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 Gp(e,t){var r=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function RS(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mo(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&&Sv(e,"checked",t,!1)}function Vp(e,t){wx(e,t);var r=Mo(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")?Kp(e,t.type,r):t.hasOwnProperty("defaultValue")&&Kp(e,t.type,Mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TS(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 Kp(e,t,r){(t!=="number"||mc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ps=Array.isArray;function ca(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=du.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function el(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ds={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},mk=["Webkit","ms","Moz","O"];Object.keys(Ds).forEach(function(e){mk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ds[t]=Ds[e]})});function Tx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ds.hasOwnProperty(e)&&Ds[e]?(""+t).trim():t+"px"}function Ox(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Tx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var vk=it({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 Xp(e,t){if(t){if(vk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function Jp(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 Zp=null;function xv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var em=null,fa=null,da=null;function PS(e){if(e=zl(e)){if(typeof em!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=bf(t),em(e.stateNode,e.type,t))}}function Ex(e){fa?da?da.push(e):da=[e]:fa=e}function Px(){if(fa){var e=fa,t=da;if(da=fa=null,PS(e),t)for(e=0;e>>=0,e===0?32:31-(Ok(e)/Ek|0)|0}var hu=64,pu=4194304;function ks(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 Sc(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=ks(s):(i&=a,i!==0&&(n=ks(i)))}else a=r&~o,a!==0?n=ks(a):i!==0&&(n=ks(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 Il(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=r}function jk(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=Ws),$S=String.fromCharCode(32),DS=!1;function Yx(e,t){switch(e){case"keyup":return aI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zi=!1;function lI(e,t){switch(e){case"compositionend":return Qx(t);case"keypress":return t.which!==32?null:(DS=!0,$S);case"textInput":return e=t.data,e===$S&&DS?null:e;default:return null}}function uI(e,t){if(Zi)return e==="compositionend"||!Iv&&Yx(e,t)?(e=Vx(),Uu=Ev=So=null,Zi=!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=US(r)}}function eC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tC(){for(var e=window,t=mc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=mc(e.document)}return t}function jv(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 yI(e){var t=tC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&eC(r.ownerDocument.documentElement,r)){if(n!==null&&jv(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=HS(r,i);var a=HS(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,ea=null,am=null,Us=null,sm=!1;function qS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;sm||ea==null||ea!==mc(n)||(n=ea,"selectionStart"in n&&jv(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}),Us&&al(Us,n)||(Us=n,n=wc(am,"onSelect"),0na||(e.current=hm[na],hm[na]=null,na--)}function Ge(e,t){na++,hm[na]=e.current,e.current=t}var Lo={},Jt=Uo(Lo),gr=Uo(!1),vi=Lo;function wa(e,t){var r=e.type.contextTypes;if(!r)return Lo;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 yr(e){return e=e.childContextTypes,e!=null}function Cc(){Ye(gr),Ye(Jt)}function JS(e,t,r){if(Jt.current!==Lo)throw Error(ee(168));Ge(Jt,t),Ge(gr,r)}function cC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ee(108,hk(e)||"Unknown",o));return it({},r,n)}function Rc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,vi=Jt.current,Ge(Jt,e),Ge(gr,gr.current),!0}function ZS(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=cC(e,t,vi),n.__reactInternalMemoizedMergedChildContext=e,Ye(gr),Ye(Jt),Ge(Jt,e)):Ye(gr),Ge(gr,r)}var Gn=null,wf=!1,Eh=!1;function fC(e){Gn===null?Gn=[e]:Gn.push(e)}function kI(e){wf=!0,fC(e)}function Ho(){if(!Eh&&Gn!==null){Eh=!0;var e=0,t=We;try{var r=Gn;for(We=1;e>=a,o-=a,Yn=1<<32-dn(t)+o|r<k?(I=x,x=null):I=x.sibling;var j=p(v,x,w[k],T);if(j===null){x===null&&(x=I);break}e&&x&&j.alternate===null&&t(v,x),S=i(j,S,k),P===null?E=j:P.sibling=j,P=j,x=I}if(k===w.length)return r(v,x),rt&&ei(v,k),E;if(x===null){for(;kk?(I=x,x=null):I=x.sibling;var M=p(v,x,j.value,T);if(M===null){x===null&&(x=I);break}e&&x&&M.alternate===null&&t(v,x),S=i(M,S,k),P===null?E=M:P.sibling=M,P=M,x=I}if(j.done)return r(v,x),rt&&ei(v,k),E;if(x===null){for(;!j.done;k++,j=w.next())j=d(v,j.value,T),j!==null&&(S=i(j,S,k),P===null?E=j:P.sibling=j,P=j);return rt&&ei(v,k),E}for(x=n(v,x);!j.done;k++,j=w.next())j=_(x,v,k,j.value,T),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?k:j.key),S=i(j,S,k),P===null?E=j:P.sibling=j,P=j);return e&&x.forEach(function(D){return t(v,D)}),rt&&ei(v,k),E}function R(v,S,w,T){if(typeof w=="object"&&w!==null&&w.type===Ji&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case cu:e:{for(var E=w.key,P=S;P!==null;){if(P.key===E){if(E=w.type,E===Ji){if(P.tag===7){r(v,P.sibling),S=o(P,w.props.children),S.return=v,v=S;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===po&&a1(E)===P.type){r(v,P.sibling),S=o(P,w.props),S.ref=ys(v,P,w),S.return=v,v=S;break e}r(v,P);break}else t(v,P);P=P.sibling}w.type===Ji?(S=fi(w.props.children,v.mode,T,w.key),S.return=v,v=S):(T=Xu(w.type,w.key,w.props,null,v.mode,T),T.ref=ys(v,S,w),T.return=v,v=T)}return a(v);case Xi:e:{for(P=w.key;S!==null;){if(S.key===P)if(S.tag===4&&S.stateNode.containerInfo===w.containerInfo&&S.stateNode.implementation===w.implementation){r(v,S.sibling),S=o(S,w.children||[]),S.return=v,v=S;break e}else{r(v,S);break}else t(v,S);S=S.sibling}S=Mh(w,v.mode,T),S.return=v,v=S}return a(v);case po:return P=w._init,R(v,S,P(w._payload),T)}if(Ps(w))return b(v,S,w,T);if(hs(w))return g(v,S,w,T);bu(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,S!==null&&S.tag===6?(r(v,S.sibling),S=o(S,w),S.return=v,v=S):(r(v,S),S=Nh(w,v.mode,T),S.return=v,v=S),a(v)):r(v,S)}return R}var Ca=SC(!0),_C=SC(!1),Al={},jn=Uo(Al),cl=Uo(Al),fl=Uo(Al);function si(e){if(e===Al)throw Error(ee(174));return e}function Wv(e,t){switch(Ge(fl,t),Ge(cl,e),Ge(jn,Al),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qp(t,e)}Ye(jn),Ge(jn,t)}function Ra(){Ye(jn),Ye(cl),Ye(fl)}function bC(e){si(fl.current);var t=si(jn.current),r=Qp(t,e.type);t!==r&&(Ge(cl,e),Ge(jn,r))}function Bv(e){cl.current===e&&(Ye(jn),Ye(cl))}var nt=Uo(0);function Ic(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 Ph=[];function Uv(){for(var e=0;er?r:4,e(!0);var n=kh.transition;kh.transition={};try{e(!1),t()}finally{We=r,kh.transition=n}}function LC(){return Qr().memoizedState}function AI(e,t,r){var n=ko(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$C(e))DC(t,r);else if(r=mC(e,t,r,n),r!==null){var o=sr();hn(r,e,n,o),FC(r,t,n)}}function NI(e,t,r){var n=ko(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($C(e))DC(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,pn(s,a)){var u=t.interleaved;u===null?(o.next=o,Dv(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=mC(e,t,o,n),r!==null&&(o=sr(),hn(r,e,n,o),FC(r,t,n))}}function $C(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function DC(e,t){Hs=jc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function FC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Rv(e,r)}}var zc={readContext:Yr,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useInsertionEffect:Ht,useLayoutEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useMutableSource:Ht,useSyncExternalStore:Ht,useId:Ht,unstable_isNewReconciler:!1},MI={readContext:Yr,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:Yr,useEffect:l1,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vu(4194308,4,jC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vu(4,2,e,t)},useMemo:function(e,t){var r=Cn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Cn();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=AI.bind(null,ot,e),[n.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:s1,useDebugValue:Kv,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=s1(!1),t=e[0];return e=zI.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ot,o=Cn();if(rt){if(r===void 0)throw Error(ee(407));r=r()}else{if(r=t(),Et===null)throw Error(ee(349));yi&30||CC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,l1(TC.bind(null,n,i,e),[e]),n.flags|=2048,pl(9,RC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Cn(),t=Et.identifierPrefix;if(rt){var r=Qn,n=Yn;r=(n&~(1<<32-dn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=dl++,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[En]=t,e[ul]=n,YC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Xp(r,n),r){case"dialog":Ke("cancel",e),Ke("close",e),o=n;break;case"iframe":case"object":case"embed":Ke("load",e),o=n;break;case"video":case"audio":for(o=0;oOa&&(t.flags|=128,n=!0,Ss(i,!1),t.lanes=4194304)}else{if(!n)if(e=kc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ss(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return qt(t),null}else 2*pt()-i.renderingStartTime>Oa&&r!==1073741824&&(t.flags|=128,n=!0,Ss(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=pt(),t.sibling=null,r=nt.current,Ge(nt,n?r&1|2:r&1),t):(qt(t),null);case 22:case 23:return Zv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?kr&1073741824&&(qt(t),t.subtreeFlags&6&&(t.flags|=8192)):qt(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function BI(e,t){switch(zv(t),t.tag){case 1:return yr(t.type)&&xc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ra(),Ye(gr),Ye(Jt),Bv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wv(t),null;case 13:if(Ye(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(nt),null;case 4:return Ra(),null;case 10:return Lv(t.type._context),null;case 22:case 23:return Zv(),null;case 24:return null;default:return null}}var bu=!1,Qt=!1,UI=typeof WeakSet=="function"?WeakSet:Set,he=null;function sa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){lt(e,t,n)}else r.current=null}function Cm(e,t,r){try{r()}catch(n){lt(e,t,n)}}var g1=!1;function HI(e,t){if(sm=Sc,e=tC(),Iv(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 _;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),(_=d.firstChild)!==null;)p=d,d=_;for(;;){if(d===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++f===n&&(u=a),(_=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=_}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(lm={focusedElem:e,selectionRange:r},Sc=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,R=w.memoizedState,v=t.stateNode,S=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:sn(t.type,g),R);v.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ee(163))}}catch(T){lt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return w=g1,g1=!1,w}function qs(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&&Cm(t,r,i)}o=o.next}while(o!==n)}}function Rf(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 Rm(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 JC(e){var t=e.alternate;t!==null&&(e.alternate=null,JC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[ul],delete t[fm],delete t[TI],delete t[OI])),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 ZC(e){return e.tag===5||e.tag===3||e.tag===4}function y1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZC(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 Tm(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=bc));else if(n!==4&&(e=e.child,e!==null))for(Tm(e,t,r),e=e.sibling;e!==null;)Tm(e,t,r),e=e.sibling}function Om(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(Om(e,t,r),e=e.sibling;e!==null;)Om(e,t,r),e=e.sibling}var Nt=null,ln=!1;function ho(e,t,r){for(r=r.child;r!==null;)eR(e,t,r),r=r.sibling}function eR(e,t,r){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(gf,r)}catch{}switch(r.tag){case 5:Qt||sa(r,t);case 6:var n=Nt,o=ln;Nt=null,ho(e,t,r),Nt=n,ln=o,Nt!==null&&(ln?(e=Nt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Nt.removeChild(r.stateNode));break;case 18:Nt!==null&&(ln?(e=Nt,r=r.stateNode,e.nodeType===8?Th(e.parentNode,r):e.nodeType===1&&Th(e,r),ol(e)):Th(Nt,r.stateNode));break;case 4:n=Nt,o=ln,Nt=r.stateNode.containerInfo,ln=!0,ho(e,t,r),Nt=n,ln=o;break;case 0:case 11:case 14:case 15:if(!Qt&&(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)&&Cm(r,t,a),o=o.next}while(o!==n)}ho(e,t,r);break;case 1:if(!Qt&&(sa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){lt(r,t,s)}ho(e,t,r);break;case 21:ho(e,t,r);break;case 22:r.mode&1?(Qt=(n=Qt)||r.memoizedState!==null,ho(e,t,r),Qt=n):ho(e,t,r);break;default:ho(e,t,r)}}function S1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new UI),t.forEach(function(n){var o=ZI.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function an(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=pt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*GI(n/1960))-n,10e?16:e,_o===null)var n=!1;else{if(e=_o,_o=null,Nc=0,ke&6)throw Error(ee(331));var o=ke;for(ke|=4,he=e.current;he!==null;){var i=he,a=i.child;if(he.flags&16){var s=i.deletions;if(s!==null){for(var u=0;upt()-Xv?ci(e,0):Qv|=r),Sr(e,t)}function lR(e,t){t===0&&(e.mode&1?(t=hu,hu<<=1,!(hu&130023424)&&(hu=4194304)):t=1);var r=sr();e=no(e,t),e!==null&&(kl(e,t,r),Sr(e,r))}function JI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lR(e,r)}function ZI(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ee(314))}n!==null&&n.delete(t),lR(e,r)}var uR;uR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gr.current)vr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return vr=!1,FI(e,t,r);vr=!!(e.flags&131072)}else vr=!1,rt&&t.flags&1048576&&dC(t,Tc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vu(e,t),e=t.pendingProps;var o=ba(t,Jt.current);pa(t,r),o=Hv(null,t,n,e,o,r);var i=qv();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,yr(n)?(i=!0,Cc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Dv(t),o.updater=xf,t.stateNode=o,o._reactInternals=t,gm(t,n,e,r),t=_m(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&jv(t),ir(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=t2(n),e=sn(n,e),o){case 0:t=Sm(null,t,n,e,r);break e;case 1:t=p1(null,t,n,e,r);break e;case 11:t=d1(null,t,n,e,r);break e;case 14:t=h1(null,t,n,sn(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),Sm(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),p1(e,t,n,o,r);case 3:e:{if(GC(t),e===null)throw Error(ee(387));n=t.pendingProps,i=t.memoizedState,o=i.element,vC(e,t),Ec(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=Ta(Error(ee(423)),t),t=m1(e,t,n,r,o);break e}else if(n!==o){o=Ta(Error(ee(424)),t),t=m1(e,t,n,r,o);break e}else for(zr=Oo(t.stateNode.containerInfo.firstChild),Ar=t,rt=!0,un=null,r=_C(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(xa(),n===o){t=oo(e,t,r);break e}ir(e,t,n,r)}t=t.child}return t;case 5:return wC(t),e===null&&pm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,um(n,o)?a=null:i!==null&&um(n,i)&&(t.flags|=32),qC(e,t),ir(e,t,a,r),t.child;case 6:return e===null&&pm(t),null;case 13:return VC(e,t,r);case 4:return Fv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ca(t,null,n,r):ir(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),d1(e,t,n,o,r);case 7:return ir(e,t,t.pendingProps,r),t.child;case 8:return ir(e,t,t.pendingProps.children,r),t.child;case 12:return ir(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,Ge(Oc,n._currentValue),n._currentValue=a,i!==null)if(pn(i.value,a)){if(i.children===o.children&&!gr.current){t=oo(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=Zn(-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),mm(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ee(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),mm(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}ir(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,pa(t,r),o=Yr(o),n=n(o),t.flags|=1,ir(e,t,n,r),t.child;case 14:return n=t.type,o=sn(n,t.pendingProps),o=sn(n.type,o),h1(e,t,n,o,r);case 15:return UC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),Vu(e,t),t.tag=1,yr(n)?(e=!0,Cc(t)):e=!1,pa(t,r),yC(t,n,o),gm(t,n,o,r),_m(null,t,n,!0,e,r);case 19:return KC(e,t,r);case 22:return HC(e,t,r)}throw Error(ee(156,t.tag))};function cR(e,t){return Mx(e,t)}function e2(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 Gr(e,t,r,n){return new e2(e,t,r,n)}function tg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t2(e){if(typeof e=="function")return tg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_v)return 11;if(e===wv)return 14}return 2}function Io(e,t){var r=e.alternate;return r===null?(r=Gr(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 Qu(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")tg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ji:return fi(r.children,o,i,t);case Sv:a=8,o|=8;break;case Wp:return e=Gr(12,r,t,o|2),e.elementType=Wp,e.lanes=i,e;case Bp:return e=Gr(13,r,t,o),e.elementType=Bp,e.lanes=i,e;case Up:return e=Gr(19,r,t,o),e.elementType=Up,e.lanes=i,e;case Sx:return Of(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gx:a=10;break e;case yx:a=9;break e;case _v:a=11;break e;case wv:a=14;break e;case po:a=16,n=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=Gr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function fi(e,t,r,n){return e=Gr(7,e,n,t),e.lanes=r,e}function Of(e,t,r,n){return e=Gr(22,e,n,t),e.elementType=Sx,e.lanes=r,e.stateNode={isHidden:!1},e}function Ah(e,t,r){return e=Gr(6,e,null,t),e.lanes=r,e}function Nh(e,t,r){return t=Gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r2(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=mh(0),this.expirationTimes=mh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rg(e,t,r,n,o,i,a,s,u){return e=new r2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Gr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dv(i),e}function n2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pR)}catch(e){console.error(e)}}pR(),dx.exports=Dr;var Al=dx.exports,O1=Al;Dp.createRoot=O1.createRoot,Dp.hydrateRoot=O1.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function zh(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Sm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var DI=typeof WeakMap=="function"?WeakMap:Map;function WC(e,t,r){r=Zn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Nc||(Nc=!0,Pm=n),Sm(e,t)},r}function BC(e,t,r){r=Zn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Sm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Sm(e,t),typeof n!="function"&&(Po===null?Po=new Set([this]):Po.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function u1(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new DI;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=ZI.bind(null,e,t,r),t.then(e,e))}function c1(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function f1(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Zn(-1,1),t.tag=2,Eo(r,t,1))),r.lanes|=1),e)}var FI=lo.ReactCurrentOwner,vr=!1;function ir(e,t,r,n){t.child=e===null?_C(t,null,r,n):Ca(t,e.child,r,n)}function d1(e,t,r,n,o){r=r.render;var i=t.ref;return pa(t,o),n=qv(e,t,r,n,i,o),r=Gv(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,oo(e,t,o)):(rt&&r&&zv(t),t.flags|=1,ir(e,t,n,o),t.child)}function h1(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!rg(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,UC(e,t,i,n,o)):(e=Xu(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:al,r(a,n)&&e.ref===t.ref)return oo(e,t,o)}return t.flags|=1,e=Io(i,n),e.ref=t.ref,e.return=t,t.child=e}function UC(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(al(i,n)&&e.ref===t.ref)if(vr=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(vr=!0);else return t.lanes=e.lanes,oo(e,t,o)}return _m(e,t,r,n,o)}function HC(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(la,kr),kr|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ge(la,kr),kr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Ge(la,kr),kr|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ge(la,kr),kr|=n;return ir(e,t,o,r),t.child}function qC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _m(e,t,r,n,o){var i=yr(r)?vi:Jt.current;return i=wa(t,i),pa(t,o),r=qv(e,t,r,n,i,o),n=Gv(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,oo(e,t,o)):(rt&&n&&zv(t),t.flags|=1,ir(e,t,r,o),t.child)}function p1(e,t,r,n,o){if(yr(r)){var i=!0;Rc(t)}else i=!1;if(pa(t,o),t.stateNode===null)Ku(e,t),yC(t,r,n),ym(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Yr(c):(c=yr(r)?vi:Jt.current,c=wa(t,c));var f=r.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||u!==c)&&i1(t,a,n,c),mo=!1;var p=t.memoizedState;a.state=p,kc(t,n,a,o),u=t.memoizedState,s!==n||p!==u||gr.current||mo?(typeof f=="function"&&(gm(t,r,f,n),u=t.memoizedState),(s=mo||o1(t,r,s,n,p,u,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,vC(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:sn(t.type,s),a.props=c,d=t.pendingProps,p=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=Yr(u):(u=yr(r)?vi:Jt.current,u=wa(t,u));var _=r.getDerivedStateFromProps;(f=typeof _=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==u)&&i1(t,a,n,u),mo=!1,p=t.memoizedState,a.state=p,kc(t,n,a,o);var b=t.memoizedState;s!==d||p!==b||gr.current||mo?(typeof _=="function"&&(gm(t,r,_,n),b=t.memoizedState),(c=mo||o1(t,r,c,n,p,b,u)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,b,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,b,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),a.props=n,a.state=b,a.context=u,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return bm(e,t,r,n,i,o)}function bm(e,t,r,n,o,i){qC(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&ZS(t,r,!1),oo(e,t,i);n=t.stateNode,FI.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Ca(t,e.child,null,i),t.child=Ca(t,null,s,i)):ir(e,t,s,i),t.memoizedState=n.state,o&&ZS(t,r,!0),t.child}function GC(e){var t=e.stateNode;t.pendingContext?JS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&JS(e,t.context,!1),Wv(e,t.containerInfo)}function m1(e,t,r,n,o){return xa(),Nv(o),t.flags|=256,ir(e,t,r,n),t.child}var wm={dehydrated:null,treeContext:null,retryLane:0};function xm(e){return{baseLanes:e,cachePool:null,transitions:null}}function VC(e,t,r){var n=t.pendingProps,o=nt.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ge(nt,o&1),e===null)return mm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Of(a,n,0,null),e=fi(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=xm(r),t.memoizedState=wm,e):Yv(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return WI(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:n.children};return!(a&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Io(o,u),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Io(s,i):(i=fi(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?xm(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=wm,n}return i=e.child,e=i.sibling,n=Io(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Yv(e,t){return t=Of({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wu(e,t,r,n){return n!==null&&Nv(n),Ca(t,e.child,null,r),e=Yv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function WI(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=zh(Error(ee(422))),wu(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Of({mode:"visible",children:n.children},o,0,null),i=fi(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Ca(t,e.child,null,a),t.child.memoizedState=xm(a),t.memoizedState=wm,i);if(!(t.mode&1))return wu(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(ee(419)),n=zh(i,n,void 0),wu(e,t,a,n)}if(s=(a&e.childLanes)!==0,vr||s){if(n=Et,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,no(e,o),hn(n,e,o,-1))}return tg(),n=zh(Error(ee(421))),wu(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=e2.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,zr=Oo(o.nextSibling),Ar=t,rt=!0,un=null,e!==null&&(Hr[qr++]=Yn,Hr[qr++]=Qn,Hr[qr++]=gi,Yn=e.id,Qn=e.overflow,gi=t),t=Yv(t,n.children),t.flags|=4096,t)}function v1(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),vm(e.return,t,r)}function Ah(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function KC(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(ir(e,t,n.children,r),n=nt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&v1(e,r,t);else if(e.tag===19)v1(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ge(nt,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Ic(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Ah(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ic(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Ah(t,!0,r,null,i);break;case"together":Ah(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ku(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Si|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ee(153));if(t.child!==null){for(e=t.child,r=Io(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Io(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function BI(e,t,r){switch(t.tag){case 3:GC(t),xa();break;case 5:bC(t);break;case 1:yr(t.type)&&Rc(t);break;case 4:Wv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Ge(Ec,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ge(nt,nt.current&1),t.flags|=128,null):r&t.child.childLanes?VC(e,t,r):(Ge(nt,nt.current&1),e=oo(e,t,r),e!==null?e.sibling:null);Ge(nt,nt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return KC(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ge(nt,nt.current),n)break;return null;case 22:case 23:return t.lanes=0,HC(e,t,r)}return oo(e,t,r)}var YC,Cm,QC,XC;YC=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Cm=function(){};QC=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,si(jn.current);var i=null;switch(r){case"input":o=Gp(e,o),n=Gp(e,n),i=[];break;case"select":o=it({},o,{value:void 0}),n=it({},n,{value:void 0}),i=[];break;case"textarea":o=Yp(e,o),n=Yp(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=xc)}Xp(r,n);var a;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Zs.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var u=n[c];if(s=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(i||(i=[]),i.push(c,r)),r=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Zs.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Ke("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};XC=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ss(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function UI(e,t,r){var n=t.pendingProps;switch(Av(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(t),null;case 1:return yr(t.type)&&Cc(),qt(t),null;case 3:return n=t.stateNode,Ra(),Ye(gr),Ye(Jt),Uv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_u(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,un!==null&&(jm(un),un=null))),Cm(e,t),qt(t),null;case 5:Bv(t);var o=si(fl.current);if(r=t.type,e!==null&&t.stateNode!=null)QC(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ee(166));return qt(t),null}if(e=si(jn.current),_u(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Pn]=t,n[ul]=i,e=(t.mode&1)!==0,r){case"dialog":Ke("cancel",n),Ke("close",n);break;case"iframe":case"object":case"embed":Ke("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Pn]=t,e[ul]=n,YC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Jp(r,n),r){case"dialog":Ke("cancel",e),Ke("close",e),o=n;break;case"iframe":case"object":case"embed":Ke("load",e),o=n;break;case"video":case"audio":for(o=0;oOa&&(t.flags|=128,n=!0,Ss(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ic(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ss(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!rt)return qt(t),null}else 2*pt()-i.renderingStartTime>Oa&&r!==1073741824&&(t.flags|=128,n=!0,Ss(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=pt(),t.sibling=null,r=nt.current,Ge(nt,n?r&1|2:r&1),t):(qt(t),null);case 22:case 23:return eg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?kr&1073741824&&(qt(t),t.subtreeFlags&6&&(t.flags|=8192)):qt(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function HI(e,t){switch(Av(t),t.tag){case 1:return yr(t.type)&&Cc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ra(),Ye(gr),Ye(Jt),Uv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bv(t),null;case 13:if(Ye(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(nt),null;case 4:return Ra(),null;case 10:return $v(t.type._context),null;case 22:case 23:return eg(),null;case 24:return null;default:return null}}var xu=!1,Qt=!1,qI=typeof WeakSet=="function"?WeakSet:Set,he=null;function sa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){lt(e,t,n)}else r.current=null}function Rm(e,t,r){try{r()}catch(n){lt(e,t,n)}}var g1=!1;function GI(e,t){if(lm=_c,e=tC(),jv(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 _;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),(_=d.firstChild)!==null;)p=d,d=_;for(;;){if(d===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++f===n&&(u=a),(_=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=_}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(um={focusedElem:e,selectionRange:r},_c=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,R=b.memoizedState,v=t.stateNode,S=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:sn(t.type,g),R);v.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ee(163))}}catch(T){lt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return b=g1,g1=!1,b}function qs(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&&Rm(t,r,i)}o=o.next}while(o!==n)}}function Rf(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 Tm(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 JC(e){var t=e.alternate;t!==null&&(e.alternate=null,JC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[ul],delete t[dm],delete t[EI],delete t[PI])),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 ZC(e){return e.tag===5||e.tag===3||e.tag===4}function y1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZC(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 Om(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=xc));else if(n!==4&&(e=e.child,e!==null))for(Om(e,t,r),e=e.sibling;e!==null;)Om(e,t,r),e=e.sibling}function Em(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(Em(e,t,r),e=e.sibling;e!==null;)Em(e,t,r),e=e.sibling}var Nt=null,ln=!1;function ho(e,t,r){for(r=r.child;r!==null;)eR(e,t,r),r=r.sibling}function eR(e,t,r){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(gf,r)}catch{}switch(r.tag){case 5:Qt||sa(r,t);case 6:var n=Nt,o=ln;Nt=null,ho(e,t,r),Nt=n,ln=o,Nt!==null&&(ln?(e=Nt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Nt.removeChild(r.stateNode));break;case 18:Nt!==null&&(ln?(e=Nt,r=r.stateNode,e.nodeType===8?Oh(e.parentNode,r):e.nodeType===1&&Oh(e,r),ol(e)):Oh(Nt,r.stateNode));break;case 4:n=Nt,o=ln,Nt=r.stateNode.containerInfo,ln=!0,ho(e,t,r),Nt=n,ln=o;break;case 0:case 11:case 14:case 15:if(!Qt&&(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)&&Rm(r,t,a),o=o.next}while(o!==n)}ho(e,t,r);break;case 1:if(!Qt&&(sa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){lt(r,t,s)}ho(e,t,r);break;case 21:ho(e,t,r);break;case 22:r.mode&1?(Qt=(n=Qt)||r.memoizedState!==null,ho(e,t,r),Qt=n):ho(e,t,r);break;default:ho(e,t,r)}}function S1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new qI),t.forEach(function(n){var o=t2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function an(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=pt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*KI(n/1960))-n,10e?16:e,_o===null)var n=!1;else{if(e=_o,_o=null,Mc=0,Ie&6)throw Error(ee(331));var o=Ie;for(Ie|=4,he=e.current;he!==null;){var i=he,a=i.child;if(he.flags&16){var s=i.deletions;if(s!==null){for(var u=0;upt()-Jv?ci(e,0):Xv|=r),Sr(e,t)}function lR(e,t){t===0&&(e.mode&1?(t=pu,pu<<=1,!(pu&130023424)&&(pu=4194304)):t=1);var r=sr();e=no(e,t),e!==null&&(Il(e,t,r),Sr(e,r))}function e2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lR(e,r)}function t2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ee(314))}n!==null&&n.delete(t),lR(e,r)}var uR;uR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gr.current)vr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return vr=!1,BI(e,t,r);vr=!!(e.flags&131072)}else vr=!1,rt&&t.flags&1048576&&dC(t,Oc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ku(e,t),e=t.pendingProps;var o=wa(t,Jt.current);pa(t,r),o=qv(null,t,n,e,o,r);var i=Gv();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,yr(n)?(i=!0,Rc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Fv(t),o.updater=xf,t.stateNode=o,o._reactInternals=t,ym(t,n,e,r),t=bm(null,t,n,!0,i,r)):(t.tag=0,rt&&i&&zv(t),ir(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ku(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=n2(n),e=sn(n,e),o){case 0:t=_m(null,t,n,e,r);break e;case 1:t=p1(null,t,n,e,r);break e;case 11:t=d1(null,t,n,e,r);break e;case 14:t=h1(null,t,n,sn(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),_m(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),p1(e,t,n,o,r);case 3:e:{if(GC(t),e===null)throw Error(ee(387));n=t.pendingProps,i=t.memoizedState,o=i.element,vC(e,t),kc(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=Ta(Error(ee(423)),t),t=m1(e,t,n,r,o);break e}else if(n!==o){o=Ta(Error(ee(424)),t),t=m1(e,t,n,r,o);break e}else for(zr=Oo(t.stateNode.containerInfo.firstChild),Ar=t,rt=!0,un=null,r=_C(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(xa(),n===o){t=oo(e,t,r);break e}ir(e,t,n,r)}t=t.child}return t;case 5:return bC(t),e===null&&mm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,cm(n,o)?a=null:i!==null&&cm(n,i)&&(t.flags|=32),qC(e,t),ir(e,t,a,r),t.child;case 6:return e===null&&mm(t),null;case 13:return VC(e,t,r);case 4:return Wv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ca(t,null,n,r):ir(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),d1(e,t,n,o,r);case 7:return ir(e,t,t.pendingProps,r),t.child;case 8:return ir(e,t,t.pendingProps.children,r),t.child;case 12:return ir(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,Ge(Ec,n._currentValue),n._currentValue=a,i!==null)if(pn(i.value,a)){if(i.children===o.children&&!gr.current){t=oo(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=Zn(-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),vm(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ee(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),vm(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}ir(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,pa(t,r),o=Yr(o),n=n(o),t.flags|=1,ir(e,t,n,r),t.child;case 14:return n=t.type,o=sn(n,t.pendingProps),o=sn(n.type,o),h1(e,t,n,o,r);case 15:return UC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:sn(n,o),Ku(e,t),t.tag=1,yr(n)?(e=!0,Rc(t)):e=!1,pa(t,r),yC(t,n,o),ym(t,n,o,r),bm(null,t,n,!0,e,r);case 19:return KC(e,t,r);case 22:return HC(e,t,r)}throw Error(ee(156,t.tag))};function cR(e,t){return Mx(e,t)}function r2(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 Gr(e,t,r,n){return new r2(e,t,r,n)}function rg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n2(e){if(typeof e=="function")return rg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bv)return 11;if(e===wv)return 14}return 2}function Io(e,t){var r=e.alternate;return r===null?(r=Gr(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 Xu(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")rg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ji:return fi(r.children,o,i,t);case _v:a=8,o|=8;break;case Bp:return e=Gr(12,r,t,o|2),e.elementType=Bp,e.lanes=i,e;case Up:return e=Gr(13,r,t,o),e.elementType=Up,e.lanes=i,e;case Hp:return e=Gr(19,r,t,o),e.elementType=Hp,e.lanes=i,e;case Sx:return Of(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gx:a=10;break e;case yx:a=9;break e;case bv:a=11;break e;case wv:a=14;break e;case po:a=16,n=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=Gr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function fi(e,t,r,n){return e=Gr(7,e,n,t),e.lanes=r,e}function Of(e,t,r,n){return e=Gr(22,e,n,t),e.elementType=Sx,e.lanes=r,e.stateNode={isHidden:!1},e}function Nh(e,t,r){return e=Gr(6,e,null,t),e.lanes=r,e}function Mh(e,t,r){return t=Gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function o2(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=vh(0),this.expirationTimes=vh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ng(e,t,r,n,o,i,a,s,u){return e=new o2(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Gr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fv(i),e}function i2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pR)}catch(e){console.error(e)}}pR(),dx.exports=Dr;var Nl=dx.exports,O1=Nl;Fp.createRoot=O1.createRoot,Fp.hydrateRoot=O1.hydrateRoot;/** * @remix-run/router v1.8.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ag(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function u2(){return Math.random().toString(36).substr(2,8)}function E1(e,t){return{usr:e.state,key:e.key,idx:t}}function jm(e,t,r,n){return r===void 0&&(r=null),vl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:r,key:t&&t.key||n||u2()})}function $c(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 Ga(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 c2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=wo.Pop,u=null,c=f();c==null&&(c=0,a.replaceState(vl({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=wo.Pop;let R=f(),v=R==null?null:R-c;c=R,u&&u({action:s,location:g.location,delta:v})}function p(R,v){s=wo.Push;let S=jm(g.location,R,v);r&&r(S,R),c=f()+1;let b=E1(S,c),T=g.createHref(S);try{a.pushState(b,"",T)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(T)}i&&u&&u({action:s,location:g.location,delta:1})}function _(R,v){s=wo.Replace;let S=jm(g.location,R,v);r&&r(S,R),c=f();let b=E1(S,c),T=g.createHref(S);a.replaceState(b,"",T),i&&u&&u({action:s,location:g.location,delta:0})}function w(R){let v=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof R=="string"?R:$c(R);return wt(v,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,v)}let g={get action(){return s},get location(){return e(o,a)},listen(R){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(P1,d),u=R,()=>{o.removeEventListener(P1,d),u=null}},createHref(R){return t(o,R)},createURL:w,encodeLocation(R){let v=w(R);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:_,go(R){return a.go(R)}};return g}var k1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(k1||(k1={}));function f2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ga(t):t,o=sg(n.pathname||"/",r);if(o==null)return null;let i=mR(e);d2(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("/")&&(wt(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=jo([n,u.relativePath]),f=r.concat(u);i.children&&i.children.length>0&&(wt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),mR(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:S2(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 vR(i.path))o(i,a,u)}),t}function vR(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=vR(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 d2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_2(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const h2=/^:\w+$/,p2=3,m2=2,v2=1,g2=10,y2=-2,I1=e=>e==="*";function S2(e,t){let r=e.split("/"),n=r.length;return r.some(I1)&&(n+=y2),t&&(n+=m2),r.filter(o=>!I1(o)).reduce((o,i)=>o+(h2.test(i)?p2:i===""?v2:g2),n)}function _2(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 w2(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{if(f==="*"){let p=s[d]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=R2(s[d]||"",f),c},{}),pathname:i,pathnameBase:a,pattern:e}}function x2(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ag(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)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function C2(e){try{return decodeURI(e)}catch(t){return ag(!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 R2(e,t){try{return decodeURIComponent(e)}catch(r){return ag(!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 sg(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 T2(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ga(e):e;return{pathname:r?r.startsWith("/")?r:O2(r,t):t,search:E2(n),hash:k2(o)}}function O2(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 Mh(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 gR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function yR(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Ga(e):(o=vl({},e),wt(!o.pathname||!o.pathname.includes("?"),Mh("?","pathname","search",o)),wt(!o.pathname||!o.pathname.includes("#"),Mh("#","pathname","hash",o)),wt(!o.search||!o.search.includes("#"),Mh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=T2(o,s),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const jo=e=>e.join("/").replace(/\/\/+/g,"/"),P2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,k2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function I2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const SR=["post","put","patch","delete"];new Set(SR);const j2=["get",...SR];new Set(j2);/** + */function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function f2(){return Math.random().toString(36).substr(2,8)}function P1(e,t){return{usr:e.state,key:e.key,idx:t}}function zm(e,t,r,n){return r===void 0&&(r=null),vl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:r,key:t&&t.key||n||f2()})}function Dc(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 Ga(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 d2(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=bo.Pop,u=null,c=f();c==null&&(c=0,a.replaceState(vl({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=bo.Pop;let R=f(),v=R==null?null:R-c;c=R,u&&u({action:s,location:g.location,delta:v})}function p(R,v){s=bo.Push;let S=zm(g.location,R,v);r&&r(S,R),c=f()+1;let w=P1(S,c),T=g.createHref(S);try{a.pushState(w,"",T)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(T)}i&&u&&u({action:s,location:g.location,delta:1})}function _(R,v){s=bo.Replace;let S=zm(g.location,R,v);r&&r(S,R),c=f();let w=P1(S,c),T=g.createHref(S);a.replaceState(w,"",T),i&&u&&u({action:s,location:g.location,delta:0})}function b(R){let v=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof R=="string"?R:Dc(R);return bt(v,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,v)}let g={get action(){return s},get location(){return e(o,a)},listen(R){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(E1,d),u=R,()=>{o.removeEventListener(E1,d),u=null}},createHref(R){return t(o,R)},createURL:b,encodeLocation(R){let v=b(R);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:_,go(R){return a.go(R)}};return g}var k1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(k1||(k1={}));function h2(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ga(t):t,o=lg(n.pathname||"/",r);if(o==null)return null;let i=mR(e);p2(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("/")&&(bt(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=jo([n,u.relativePath]),f=r.concat(u);i.children&&i.children.length>0&&(bt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),mR(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:b2(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 vR(i.path))o(i,a,u)}),t}function vR(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=vR(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 p2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:w2(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const m2=/^:\w+$/,v2=3,g2=2,y2=1,S2=10,_2=-2,I1=e=>e==="*";function b2(e,t){let r=e.split("/"),n=r.length;return r.some(I1)&&(n+=_2),t&&(n+=g2),r.filter(o=>!I1(o)).reduce((o,i)=>o+(m2.test(i)?v2:i===""?y2:S2),n)}function w2(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 x2(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{if(f==="*"){let p=s[d]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=O2(s[d]||"",f),c},{}),pathname:i,pathnameBase:a,pattern:e}}function R2(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),sg(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)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function T2(e){try{return decodeURI(e)}catch(t){return sg(!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 O2(e,t){try{return decodeURIComponent(e)}catch(r){return sg(!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 lg(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 E2(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ga(e):e;return{pathname:r?r.startsWith("/")?r:P2(r,t):t,search:I2(n),hash:j2(o)}}function P2(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 Lh(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 gR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function yR(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Ga(e):(o=vl({},e),bt(!o.pathname||!o.pathname.includes("?"),Lh("?","pathname","search",o)),bt(!o.pathname||!o.pathname.includes("#"),Lh("#","pathname","hash",o)),bt(!o.search||!o.search.includes("#"),Lh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=E2(o,s),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const jo=e=>e.join("/").replace(/\/\/+/g,"/"),k2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,j2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function z2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const SR=["post","put","patch","delete"];new Set(SR);const A2=["get",...SR];new Set(A2);/** * React Router v6.15.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),a=A.useRef(!1);return wR(()=>{a.current=!0}),A.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=yR(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:jo([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}const L2=A.createContext(null);function $2(e){let t=A.useContext(qo).outlet;return t&&A.createElement(L2.Provider,{value:e},t)}function bR(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=A.useContext(qo),{pathname:o}=zf(),i=JSON.stringify(gR(n).map(a=>a.pathnameBase));return A.useMemo(()=>yR(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function D2(e,t){return F2(e,t)}function F2(e,t,r){Nl()||wt(!1);let{navigator:n}=A.useContext(Va),{matches:o}=A.useContext(qo),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=zf(),c;if(t){var f;let g=typeof t=="string"?Ga(t):t;s==="/"||(f=g.pathname)!=null&&f.startsWith(s)||wt(!1),c=g}else c=u;let d=c.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",_=f2(e,{pathname:p}),w=q2(_&&_.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:jo([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:jo([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r);return t&&w?A.createElement(jf.Provider,{value:{location:Dc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:wo.Pop}},w):w}function W2(){let e=Y2(),t=I2(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 A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:o},r):null,i)}const B2=A.createElement(W2,null);class U2 extends A.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||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?A.createElement(qo.Provider,{value:this.props.routeContext},A.createElement(_R.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function H2(e){let{routeContext:t,match:r,children:n}=e,o=A.useContext(lg);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),A.createElement(qo.Provider,{value:t},n)}function q2(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,a=(n=r)==null?void 0:n.errors;if(a!=null){let s=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id]));s>=0||wt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,u,c)=>{let f=u.route.id?a==null?void 0:a[u.route.id]:null,d=null;r&&(d=u.route.errorElement||B2);let p=t.concat(i.slice(0,c+1)),_=()=>{let w;return f?w=d:u.route.Component?w=A.createElement(u.route.Component,null):u.route.element?w=u.route.element:w=s,A.createElement(H2,{match:u,routeContext:{outlet:s,matches:p,isDataRoute:r!=null},children:w})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?A.createElement(U2,{location:r.location,revalidation:r.revalidation,component:d,error:f,children:_(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):_()},null)}var xR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xR||{}),Fc=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}(Fc||{});function G2(e){let t=A.useContext(lg);return t||wt(!1),t}function V2(e){let t=A.useContext(z2);return t||wt(!1),t}function K2(e){let t=A.useContext(qo);return t||wt(!1),t}function CR(e){let t=K2(),r=t.matches[t.matches.length-1];return r.route.id||wt(!1),r.route.id}function Y2(){var e;let t=A.useContext(_R),r=V2(Fc.UseRouteError),n=CR(Fc.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Q2(){let{router:e}=G2(xR.UseNavigateStable),t=CR(Fc.UseNavigateStable),r=A.useRef(!1);return wR(()=>{r.current=!0}),A.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Dc({fromRouteId:t},i)))},[e,t])}function X2(e){return $2(e.context)}function or(e){wt(!1)}function J2(e){let{basename:t="/",children:r=null,location:n,navigationType:o=wo.Pop,navigator:i,static:a=!1}=e;Nl()&&wt(!1);let s=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=Ga(n));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:_="default"}=n,w=A.useMemo(()=>{let g=sg(c,s);return g==null?null:{location:{pathname:g,search:f,hash:d,state:p,key:_},navigationType:o}},[s,c,f,d,p,_,o]);return w==null?null:A.createElement(Va.Provider,{value:u},A.createElement(jf.Provider,{children:r,value:w}))}function Z2(e){let{children:t,location:r}=e;return D2(zm(t),r)}new Promise(()=>{});function zm(e,t){t===void 0&&(t=[]);let r=[];return A.Children.forEach(e,(n,o)=>{if(!A.isValidElement(n))return;let i=[...t,o];if(n.type===A.Fragment){r.push.apply(r,zm(n.props.children,i));return}n.type!==or&&wt(!1),!n.props.index||!n.props.children||wt(!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=zm(n.props.children,i)),r.push(a)}),r}/** + */function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),a=A.useRef(!1);return bR(()=>{a.current=!0}),A.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=yR(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:jo([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}const D2=A.createContext(null);function F2(e){let t=A.useContext(qo).outlet;return t&&A.createElement(D2.Provider,{value:e},t)}function wR(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=A.useContext(qo),{pathname:o}=zf(),i=JSON.stringify(gR(n).map(a=>a.pathnameBase));return A.useMemo(()=>yR(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function W2(e,t){return B2(e,t)}function B2(e,t,r){Ml()||bt(!1);let{navigator:n}=A.useContext(Va),{matches:o}=A.useContext(qo),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=zf(),c;if(t){var f;let g=typeof t=="string"?Ga(t):t;s==="/"||(f=g.pathname)!=null&&f.startsWith(s)||bt(!1),c=g}else c=u;let d=c.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",_=h2(e,{pathname:p}),b=V2(_&&_.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:jo([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:jo([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r);return t&&b?A.createElement(jf.Provider,{value:{location:Fc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:bo.Pop}},b):b}function U2(){let e=X2(),t=z2(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 A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:o},r):null,i)}const H2=A.createElement(U2,null);class q2 extends A.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||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?A.createElement(qo.Provider,{value:this.props.routeContext},A.createElement(_R.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function G2(e){let{routeContext:t,match:r,children:n}=e,o=A.useContext(ug);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),A.createElement(qo.Provider,{value:t},n)}function V2(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,a=(n=r)==null?void 0:n.errors;if(a!=null){let s=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id]));s>=0||bt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,u,c)=>{let f=u.route.id?a==null?void 0:a[u.route.id]:null,d=null;r&&(d=u.route.errorElement||H2);let p=t.concat(i.slice(0,c+1)),_=()=>{let b;return f?b=d:u.route.Component?b=A.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,A.createElement(G2,{match:u,routeContext:{outlet:s,matches:p,isDataRoute:r!=null},children:b})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?A.createElement(q2,{location:r.location,revalidation:r.revalidation,component:d,error:f,children:_(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):_()},null)}var xR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xR||{}),Wc=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}(Wc||{});function K2(e){let t=A.useContext(ug);return t||bt(!1),t}function Y2(e){let t=A.useContext(N2);return t||bt(!1),t}function Q2(e){let t=A.useContext(qo);return t||bt(!1),t}function CR(e){let t=Q2(),r=t.matches[t.matches.length-1];return r.route.id||bt(!1),r.route.id}function X2(){var e;let t=A.useContext(_R),r=Y2(Wc.UseRouteError),n=CR(Wc.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function J2(){let{router:e}=K2(xR.UseNavigateStable),t=CR(Wc.UseNavigateStable),r=A.useRef(!1);return bR(()=>{r.current=!0}),A.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fc({fromRouteId:t},i)))},[e,t])}function Z2(e){return F2(e.context)}function or(e){bt(!1)}function ej(e){let{basename:t="/",children:r=null,location:n,navigationType:o=bo.Pop,navigator:i,static:a=!1}=e;Ml()&&bt(!1);let s=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=Ga(n));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:_="default"}=n,b=A.useMemo(()=>{let g=lg(c,s);return g==null?null:{location:{pathname:g,search:f,hash:d,state:p,key:_},navigationType:o}},[s,c,f,d,p,_,o]);return b==null?null:A.createElement(Va.Provider,{value:u},A.createElement(jf.Provider,{children:r,value:b}))}function tj(e){let{children:t,location:r}=e;return W2(Am(t),r)}new Promise(()=>{});function Am(e,t){t===void 0&&(t=[]);let r=[];return A.Children.forEach(e,(n,o)=>{if(!A.isValidElement(n))return;let i=[...t,o];if(n.type===A.Fragment){r.push.apply(r,Am(n.props.children,i));return}n.type!==or&&bt(!1),!n.props.index||!n.props.children||bt(!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=Am(n.props.children,i)),r.push(a)}),r}/** * React Router DOM v6.15.0 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Am(){return Am=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function tj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rj(e,t){return e.button===0&&(!t||t==="_self")&&!tj(e)}const nj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],oj="startTransition",j1=_a[oj];function ij(e){let{basename:t,children:r,future:n,window:o}=e,i=A.useRef();i.current==null&&(i.current=l2({window:o,v5Compat:!0}));let a=i.current,[s,u]=A.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},f=A.useCallback(d=>{c&&j1?j1(()=>u(d)):u(d)},[u,c]);return A.useLayoutEffect(()=>a.listen(f),[a,f]),A.createElement(J2,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a})}const aj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Er=A.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:f}=t,d=ej(t,nj),{basename:p}=A.useContext(Va),_,w=!1;if(typeof c=="string"&&sj.test(c)&&(_=c,aj))try{let S=new URL(window.location.href),b=c.startsWith("//")?new URL(S.protocol+c):new URL(c),T=sg(b.pathname,p);b.origin===S.origin&&T!=null?c=T+b.search+b.hash:w=!0}catch{}let g=A2(c,{relative:o}),R=lj(c,{replace:a,state:s,target:u,preventScrollReset:f,relative:o});function v(S){n&&n(S),S.defaultPrevented||R(S)}return A.createElement("a",Am({},d,{href:_||g,onClick:w||i?n:v,ref:r,target:u}))});var z1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(z1||(z1={}));var A1;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A1||(A1={}));function lj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=N2(),u=zf(),c=bR(e,{relative:a});return A.useCallback(f=>{if(rj(f,r)){f.preventDefault();let d=n!==void 0?n:$c(u)===$c(c);s(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[u,s,c,n,o,r,e,i,a])}var RR={exports:{}},TR={};/** + */function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function nj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oj(e,t){return e.button===0&&(!t||t==="_self")&&!nj(e)}const ij=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],aj="startTransition",j1=_a[aj];function sj(e){let{basename:t,children:r,future:n,window:o}=e,i=A.useRef();i.current==null&&(i.current=c2({window:o,v5Compat:!0}));let a=i.current,[s,u]=A.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},f=A.useCallback(d=>{c&&j1?j1(()=>u(d)):u(d)},[u,c]);return A.useLayoutEffect(()=>a.listen(f),[a,f]),A.createElement(ej,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a})}const lj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pr=A.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:f}=t,d=rj(t,ij),{basename:p}=A.useContext(Va),_,b=!1;if(typeof c=="string"&&uj.test(c)&&(_=c,lj))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),T=lg(w.pathname,p);w.origin===S.origin&&T!=null?c=T+w.search+w.hash:b=!0}catch{}let g=M2(c,{relative:o}),R=cj(c,{replace:a,state:s,target:u,preventScrollReset:f,relative:o});function v(S){n&&n(S),S.defaultPrevented||R(S)}return A.createElement("a",Nm({},d,{href:_||g,onClick:b||i?n:v,ref:r,target:u}))});var z1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(z1||(z1={}));var A1;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A1||(A1={}));function cj(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=L2(),u=zf(),c=wR(e,{relative:a});return A.useCallback(f=>{if(oj(f,r)){f.preventDefault();let d=n!==void 0?n:Dc(u)===Dc(c);s(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[u,s,c,n,o,r,e,i,a])}var RR={exports:{}},TR={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -72,7 +72,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pa=A;function uj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cj=typeof Object.is=="function"?Object.is:uj,fj=Pa.useState,dj=Pa.useEffect,hj=Pa.useLayoutEffect,pj=Pa.useDebugValue;function mj(e,t){var r=t(),n=fj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return hj(function(){o.value=r,o.getSnapshot=t,Lh(o)&&i({inst:o})},[e,r,t]),dj(function(){return Lh(o)&&i({inst:o}),e(function(){Lh(o)&&i({inst:o})})},[e]),pj(r),r}function Lh(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!cj(e,r)}catch{return!0}}function vj(e,t){return t()}var gj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vj:mj;TR.useSyncExternalStore=Pa.useSyncExternalStore!==void 0?Pa.useSyncExternalStore:gj;RR.exports=TR;var yj=RR.exports,OR={exports:{}},PR={};/** + */var Ea=A;function fj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dj=typeof Object.is=="function"?Object.is:fj,hj=Ea.useState,pj=Ea.useEffect,mj=Ea.useLayoutEffect,vj=Ea.useDebugValue;function gj(e,t){var r=t(),n=hj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return mj(function(){o.value=r,o.getSnapshot=t,$h(o)&&i({inst:o})},[e,r,t]),pj(function(){return $h(o)&&i({inst:o}),e(function(){$h(o)&&i({inst:o})})},[e]),vj(r),r}function $h(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!dj(e,r)}catch{return!0}}function yj(e,t){return t()}var Sj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?yj:gj;TR.useSyncExternalStore=Ea.useSyncExternalStore!==void 0?Ea.useSyncExternalStore:Sj;RR.exports=TR;var _j=RR.exports,OR={exports:{}},ER={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -80,14 +80,14 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Af=A,Sj=yj;function _j(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wj=typeof Object.is=="function"?Object.is:_j,bj=Sj.useSyncExternalStore,xj=Af.useRef,Cj=Af.useEffect,Rj=Af.useMemo,Tj=Af.useDebugValue;PR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=xj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Rj(function(){function u(_){if(!c){if(c=!0,f=_,_=n(_),o!==void 0&&a.hasValue){var w=a.value;if(o(w,_))return d=w}return d=_}if(w=d,wj(f,_))return w;var g=n(_);return o!==void 0&&o(w,g)?w:(f=_,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=bj(e,i[0],i[1]);return Cj(function(){a.hasValue=!0,a.value=s},[s]),Tj(s),s};OR.exports=PR;var Oj=OR.exports;function Pj(e){e()}let ER=Pj;const Ej=e=>ER=e,kj=()=>ER,N1=Symbol.for("react-redux-context"),M1=typeof globalThis<"u"?globalThis:{};function Ij(){var e;if(!A.createContext)return{};const t=(e=M1[N1])!=null?e:M1[N1]=new Map;let r=t.get(A.createContext);return r||(r=A.createContext(null),t.set(A.createContext,r)),r}const $o=Ij();function ug(e=$o){return function(){return A.useContext(e)}}const kR=ug(),jj=()=>{throw new Error("uSES not initialized!")};let IR=jj;const zj=e=>{IR=e},Aj=(e,t)=>e===t;function Nj(e=$o){const t=e===$o?kR:ug(e);return function(n,o={}){const{equalityFn:i=Aj,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();A.useRef(!0);const _=A.useCallback({[n.name](g){return n(g)}}[n.name],[n,d,a]),w=IR(c.addNestedSub,u.getState,f||u.getState,_,i);return A.useDebugValue(w),w}}const Ne=Nj();function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var jR={exports:{}},Be={};/** @license React v16.13.1 + */var Af=A,bj=_j;function wj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xj=typeof Object.is=="function"?Object.is:wj,Cj=bj.useSyncExternalStore,Rj=Af.useRef,Tj=Af.useEffect,Oj=Af.useMemo,Ej=Af.useDebugValue;ER.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=Rj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Oj(function(){function u(_){if(!c){if(c=!0,f=_,_=n(_),o!==void 0&&a.hasValue){var b=a.value;if(o(b,_))return d=b}return d=_}if(b=d,xj(f,_))return b;var g=n(_);return o!==void 0&&o(b,g)?b:(f=_,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=Cj(e,i[0],i[1]);return Tj(function(){a.hasValue=!0,a.value=s},[s]),Ej(s),s};OR.exports=ER;var Pj=OR.exports;function kj(e){e()}let PR=kj;const Ij=e=>PR=e,jj=()=>PR,N1=Symbol.for("react-redux-context"),M1=typeof globalThis<"u"?globalThis:{};function zj(){var e;if(!A.createContext)return{};const t=(e=M1[N1])!=null?e:M1[N1]=new Map;let r=t.get(A.createContext);return r||(r=A.createContext(null),t.set(A.createContext,r)),r}const $o=zj();function cg(e=$o){return function(){return A.useContext(e)}}const kR=cg(),Aj=()=>{throw new Error("uSES not initialized!")};let IR=Aj;const Nj=e=>{IR=e},Mj=(e,t)=>e===t;function Lj(e=$o){const t=e===$o?kR:cg(e);return function(n,o={}){const{equalityFn:i=Mj,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();A.useRef(!0);const _=A.useCallback({[n.name](g){return n(g)}}[n.name],[n,d,a]),b=IR(c.addNestedSub,u.getState,f||u.getState,_,i);return A.useDebugValue(b),b}}const ke=Lj();function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var jR={exports:{}},Be={};/** @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 It=typeof Symbol=="function"&&Symbol.for,cg=It?Symbol.for("react.element"):60103,fg=It?Symbol.for("react.portal"):60106,Nf=It?Symbol.for("react.fragment"):60107,Mf=It?Symbol.for("react.strict_mode"):60108,Lf=It?Symbol.for("react.profiler"):60114,$f=It?Symbol.for("react.provider"):60109,Df=It?Symbol.for("react.context"):60110,dg=It?Symbol.for("react.async_mode"):60111,Ff=It?Symbol.for("react.concurrent_mode"):60111,Wf=It?Symbol.for("react.forward_ref"):60112,Bf=It?Symbol.for("react.suspense"):60113,Mj=It?Symbol.for("react.suspense_list"):60120,Uf=It?Symbol.for("react.memo"):60115,Hf=It?Symbol.for("react.lazy"):60116,Lj=It?Symbol.for("react.block"):60121,$j=It?Symbol.for("react.fundamental"):60117,Dj=It?Symbol.for("react.responder"):60118,Fj=It?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cg:switch(e=e.type,e){case dg:case Ff:case Nf:case Lf:case Mf:case Bf:return e;default:switch(e=e&&e.$$typeof,e){case Df:case Wf:case Hf:case Uf:case $f:return e;default:return t}}case fg:return t}}}function zR(e){return Wr(e)===Ff}Be.AsyncMode=dg;Be.ConcurrentMode=Ff;Be.ContextConsumer=Df;Be.ContextProvider=$f;Be.Element=cg;Be.ForwardRef=Wf;Be.Fragment=Nf;Be.Lazy=Hf;Be.Memo=Uf;Be.Portal=fg;Be.Profiler=Lf;Be.StrictMode=Mf;Be.Suspense=Bf;Be.isAsyncMode=function(e){return zR(e)||Wr(e)===dg};Be.isConcurrentMode=zR;Be.isContextConsumer=function(e){return Wr(e)===Df};Be.isContextProvider=function(e){return Wr(e)===$f};Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cg};Be.isForwardRef=function(e){return Wr(e)===Wf};Be.isFragment=function(e){return Wr(e)===Nf};Be.isLazy=function(e){return Wr(e)===Hf};Be.isMemo=function(e){return Wr(e)===Uf};Be.isPortal=function(e){return Wr(e)===fg};Be.isProfiler=function(e){return Wr(e)===Lf};Be.isStrictMode=function(e){return Wr(e)===Mf};Be.isSuspense=function(e){return Wr(e)===Bf};Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nf||e===Ff||e===Lf||e===Mf||e===Bf||e===Mj||typeof e=="object"&&e!==null&&(e.$$typeof===Hf||e.$$typeof===Uf||e.$$typeof===$f||e.$$typeof===Df||e.$$typeof===Wf||e.$$typeof===$j||e.$$typeof===Dj||e.$$typeof===Fj||e.$$typeof===Lj)};Be.typeOf=Wr;jR.exports=Be;var Wj=jR.exports,AR=Wj,Bj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NR={};NR[AR.ForwardRef]=Bj;NR[AR.Memo]=Uj;var Ue={};/** + */var It=typeof Symbol=="function"&&Symbol.for,fg=It?Symbol.for("react.element"):60103,dg=It?Symbol.for("react.portal"):60106,Nf=It?Symbol.for("react.fragment"):60107,Mf=It?Symbol.for("react.strict_mode"):60108,Lf=It?Symbol.for("react.profiler"):60114,$f=It?Symbol.for("react.provider"):60109,Df=It?Symbol.for("react.context"):60110,hg=It?Symbol.for("react.async_mode"):60111,Ff=It?Symbol.for("react.concurrent_mode"):60111,Wf=It?Symbol.for("react.forward_ref"):60112,Bf=It?Symbol.for("react.suspense"):60113,$j=It?Symbol.for("react.suspense_list"):60120,Uf=It?Symbol.for("react.memo"):60115,Hf=It?Symbol.for("react.lazy"):60116,Dj=It?Symbol.for("react.block"):60121,Fj=It?Symbol.for("react.fundamental"):60117,Wj=It?Symbol.for("react.responder"):60118,Bj=It?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fg:switch(e=e.type,e){case hg:case Ff:case Nf:case Lf:case Mf:case Bf:return e;default:switch(e=e&&e.$$typeof,e){case Df:case Wf:case Hf:case Uf:case $f:return e;default:return t}}case dg:return t}}}function zR(e){return Wr(e)===Ff}Be.AsyncMode=hg;Be.ConcurrentMode=Ff;Be.ContextConsumer=Df;Be.ContextProvider=$f;Be.Element=fg;Be.ForwardRef=Wf;Be.Fragment=Nf;Be.Lazy=Hf;Be.Memo=Uf;Be.Portal=dg;Be.Profiler=Lf;Be.StrictMode=Mf;Be.Suspense=Bf;Be.isAsyncMode=function(e){return zR(e)||Wr(e)===hg};Be.isConcurrentMode=zR;Be.isContextConsumer=function(e){return Wr(e)===Df};Be.isContextProvider=function(e){return Wr(e)===$f};Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fg};Be.isForwardRef=function(e){return Wr(e)===Wf};Be.isFragment=function(e){return Wr(e)===Nf};Be.isLazy=function(e){return Wr(e)===Hf};Be.isMemo=function(e){return Wr(e)===Uf};Be.isPortal=function(e){return Wr(e)===dg};Be.isProfiler=function(e){return Wr(e)===Lf};Be.isStrictMode=function(e){return Wr(e)===Mf};Be.isSuspense=function(e){return Wr(e)===Bf};Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nf||e===Ff||e===Lf||e===Mf||e===Bf||e===$j||typeof e=="object"&&e!==null&&(e.$$typeof===Hf||e.$$typeof===Uf||e.$$typeof===$f||e.$$typeof===Df||e.$$typeof===Wf||e.$$typeof===Fj||e.$$typeof===Wj||e.$$typeof===Bj||e.$$typeof===Dj)};Be.typeOf=Wr;jR.exports=Be;var Uj=jR.exports,AR=Uj,Hj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qj={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NR={};NR[AR.ForwardRef]=Hj;NR[AR.Memo]=qj;var Ue={};/** * @license React * react-is.production.min.js * @@ -95,13 +95,13 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hg=Symbol.for("react.element"),pg=Symbol.for("react.portal"),qf=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),Vf=Symbol.for("react.profiler"),Kf=Symbol.for("react.provider"),Yf=Symbol.for("react.context"),Hj=Symbol.for("react.server_context"),Qf=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Jf=Symbol.for("react.suspense_list"),Zf=Symbol.for("react.memo"),ed=Symbol.for("react.lazy"),qj=Symbol.for("react.offscreen"),MR;MR=Symbol.for("react.module.reference");function Zr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hg:switch(e=e.type,e){case qf:case Vf:case Gf:case Xf:case Jf:return e;default:switch(e=e&&e.$$typeof,e){case Hj:case Yf:case Qf:case ed:case Zf:case Kf:return e;default:return t}}case pg:return t}}}Ue.ContextConsumer=Yf;Ue.ContextProvider=Kf;Ue.Element=hg;Ue.ForwardRef=Qf;Ue.Fragment=qf;Ue.Lazy=ed;Ue.Memo=Zf;Ue.Portal=pg;Ue.Profiler=Vf;Ue.StrictMode=Gf;Ue.Suspense=Xf;Ue.SuspenseList=Jf;Ue.isAsyncMode=function(){return!1};Ue.isConcurrentMode=function(){return!1};Ue.isContextConsumer=function(e){return Zr(e)===Yf};Ue.isContextProvider=function(e){return Zr(e)===Kf};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hg};Ue.isForwardRef=function(e){return Zr(e)===Qf};Ue.isFragment=function(e){return Zr(e)===qf};Ue.isLazy=function(e){return Zr(e)===ed};Ue.isMemo=function(e){return Zr(e)===Zf};Ue.isPortal=function(e){return Zr(e)===pg};Ue.isProfiler=function(e){return Zr(e)===Vf};Ue.isStrictMode=function(e){return Zr(e)===Gf};Ue.isSuspense=function(e){return Zr(e)===Xf};Ue.isSuspenseList=function(e){return Zr(e)===Jf};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qf||e===Vf||e===Gf||e===Xf||e===Jf||e===qj||typeof e=="object"&&e!==null&&(e.$$typeof===ed||e.$$typeof===Zf||e.$$typeof===Kf||e.$$typeof===Yf||e.$$typeof===Qf||e.$$typeof===MR||e.getModuleId!==void 0)};Ue.typeOf=Zr;function Gj(){const e=kj();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 L1={notify(){},get:()=>[]};function Vj(e,t){let r,n=L1;function o(d){return u(),n.subscribe(d)}function i(){n.notify()}function a(){f.onStateChange&&f.onStateChange()}function s(){return!!r}function u(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=Gj())}function c(){r&&(r(),r=void 0,n.clear(),n=L1)}const f={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>n};return f}const Kj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yj=Kj?A.useLayoutEffect:A.useEffect;function Qj({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=A.useMemo(()=>{const c=Vj(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=A.useMemo(()=>e.getState(),[e]);Yj(()=>{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||$o;return A.createElement(u.Provider,{value:a},r)}function LR(e=$o){const t=e===$o?kR:ug(e);return function(){const{store:n}=t();return n}}const Xj=LR();function Jj(e=$o){const t=e===$o?Xj:LR(e);return function(){return t().dispatch}}const Ka=Jj();zj(Oj.useSyncExternalStoreWithSelector);Ej(Al.unstable_batchedUpdates);function fn(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:mg(e)?2:vg(e)?3:0}function va(e,t){return Ya(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zj(e,t){return Ya(e)===2?e.get(t):e[t]}function $R(e,t,r){var n=Ya(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function DR(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function mg(e){return iz&&e instanceof Map}function vg(e){return az&&e instanceof Set}function ri(e){return e.o||e.t}function gg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=WR(e);delete t[tt];for(var r=ga(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=ez),Object.freeze(e),t&&wi(e,function(r,n){return yg(n,!0)},!0)),e}function ez(){fn(2)}function Sg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zn(e){var t=$m[e];return t||fn(18,e),t}function tz(e,t){$m[e]||($m[e]=t)}function Nm(){return gl}function $h(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function Wc(e){Mm(e),e.p.forEach(rz),e.p=null}function Mm(e){e===gl&&(gl=e.l)}function $1(e){return gl={p:[],l:gl,h:e,m:!0,_:0}}function rz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function Dh(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||zn("ES5").S(t,e,n),n?(r[tt].P&&(Wc(t),fn(4)),io(e)&&(e=Bc(t,e),t.l||Uc(t,e)),t.u&&zn("Patches").M(r[tt].t,e,t.u,t.s)):e=Bc(t,r,[]),Wc(t),t.u&&t.v(t.u,t.s),e!==FR?e:void 0}function Bc(e,t,r){if(Sg(t))return t;var n=t[tt];if(!n)return wi(t,function(s,u){return D1(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Uc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=gg(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),wi(i,function(s,u){return D1(e,n,o,s,u,r,a)}),Uc(e,o,!1),r&&e.u&&zn("Patches").N(n,r,e.u,e.s)}return n.o}function D1(e,t,r,n,o,i,a){if(Do(o)){var s=Bc(e,o,i&&t&&t.i!==3&&!va(t.R,n)?i.concat(n):void 0);if($R(r,n,s),!Do(s))return;e.m=!1}else a&&r.add(o);if(io(o)&&!Sg(o)){if(!e.h.D&&e._<1)return;Bc(e,o),t&&t.A.l||Uc(e,o)}}function Uc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&yg(t,r)}function Fh(e,t){var r=e[tt];return(r?ri(r):e)[t]}function F1(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 yo(e){e.P||(e.P=!0,e.l&&yo(e.l))}function Wh(e){e.o||(e.o=gg(e.t))}function Lm(e,t,r){var n=mg(t)?zn("MapSet").F(t,r):vg(t)?zn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Nm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=yl;a&&(u=[s],c=js);var f=Proxy.revocable(u,c),d=f.revoke,p=f.proxy;return s.k=p,s.j=d,p}(t,r):zn("ES5").J(t,r);return(r?r.A:Nm()).p.push(n),n}function nz(e){return Do(e)||fn(22,e),function t(r){if(!io(r))return r;var n,o=r[tt],i=Ya(r);if(o){if(!o.P&&(o.i<4||!zn("ES5").K(o)))return o.t;o.I=!0,n=W1(r,i),o.I=!1}else n=W1(r,i);return wi(n,function(a,s){o&&Zj(o.t,a)===s||$R(n,a,t(s))}),i===3?new Set(n):n}(e)}function W1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gg(e)}function oz(){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 yl.get(u,i)},set:function(u){var c=this[tt];yl.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)&&yo(s);break;case 4:r(s)&&yo(s)}}}function r(i){for(var a=i.t,s=i.k,u=ga(s),c=u.length-1;c>=0;c--){var f=u[c];if(f!==tt){var d=a[f];if(d===void 0&&!va(a,f))return!0;var p=s[f],_=p&&p[tt];if(_?_.t!==d:!DR(p,d))return!0}}var w=!!a[tt];return u.length!==ga(a).length+(w?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),b=1;b1?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=zn("Patches").$;return Do(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),$r=new lz,BR=$r.produce;$r.produceWithPatches.bind($r);$r.setAutoFreeze.bind($r);$r.setUseProxies.bind($r);$r.applyPatches.bind($r);$r.createDraft.bind($r);$r.finishDraft.bind($r);function Ea(e){"@babel/helpers - typeof";return Ea=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},Ea(e)}function uz(e,t){if(Ea(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ea(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UR(e){var t=uz(e,"string");return Ea(t)==="symbol"?t:String(t)}function $(e,t,r){return t=UR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q1(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 G1(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Yt(1));return r(wg)(e,t)}if(typeof e!="function")throw new Error(Yt(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(Yt(3));return i}function d(g){if(typeof g!="function")throw new Error(Yt(4));if(u)throw new Error(Yt(5));var R=!0;return c(),s.push(g),function(){if(R){if(u)throw new Error(Yt(6));R=!1,c();var S=s.indexOf(g);s.splice(S,1),a=null}}}function p(g){if(!cz(g))throw new Error(Yt(7));if(typeof g.type>"u")throw new Error(Yt(8));if(u)throw new Error(Yt(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var R=a=s,v=0;v"u")throw new Error(Yt(12));if(typeof r(void 0,{type:Hc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Yt(13))})}function HR(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(Yt(14));d[_]=R,f=f||R!==g}return f=f||i.length!==Object.keys(u).length,f?d:u}}function qc(){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 Gc}function o(s,u){n(s)===Gc&&(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 mz=function(t,r){return t===r};function vz(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:Gz,updateNodesInfoInCurrentSession:Vz,setActiveSessionPin:Kz,setActiveNodeId:Yz,addOrUpdateNodeVersion:Qz,addOrUpdateNodeFlags:Xz,addOrUpdateCmdLineArgs:Jz,addOrUpdateNodeLogs:Zz,addOrUpdateSyncStages:eA,setLogWithNameSelected:tA,addOrUpdateDBs:rA,addOrUpdateDBTable:nA,addOrUpdateReorg:oA,resetAppStateToMockState:iA}=YR.actions,QR=e=>e.app.sessions,Cg=e=>e.app.activeSessionPin,jt=e=>e.app.activeNodeId,XR=e=>e.app.nodeVersions,aA=e=>e.app.flags,sA=e=>e.app.cmdLineArgs,lA=e=>e.app.nodeLogs,uA=e=>e.app.syncStages,cA=e=>e.app.dbs,fA=e=>e.app.reorgs,JR=Xe([QR,Cg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Rg=Xe([JR],e=>{let t=[];return e!=null&&(t=e.nodes),t}),dA=Xe([QR,Cg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),hA=Xe([Rg,jt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),pA=Xe([Rg,jt,XR],(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}),mA=Xe([Rg,jt,XR],(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}),vA=Xe([aA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),gA=Xe([sA,jt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),yA=Xe([lA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),SA=Xe([uA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),ZR=Xe([cA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),_A=Xe([fA,jt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),wA=YR.reducer,ws=({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===Qm.Command?a=a+" "+c:i===Qm.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})},bA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),xA=({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 Tg={},eT={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})(eT);var ut=eT.exports,qh={};function Yi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function tT(e){if(!Yi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=tT(e[r])}),t}function eo(e,t,r={clone:!0}){const n=r.clone?de({},e):e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Yi(t[o])&&o in e&&Yi(e[o])?n[o]=eo(e[o],t[o],r):r.clone?n[o]=Yi(t[o])?tT(t[o]):t[o]:n[o]=t[o])}),n}var Gh={exports:{}},Vh,Z1;function CA(){if(Z1)return Vh;Z1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vh=e,Vh}var Kh,e_;function RA(){if(e_)return Kh;e_=1;var e=CA();function t(){}function r(){}return r.resetWarningCache=t,Kh=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},Kh}var t_;function rT(){return t_||(t_=1,Gh.exports=RA()()),Gh.exports}rT();function Ia(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 OA(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 EA(e,t){return A.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function nT(e){return e&&e.ownerDocument||document}function kA(e){return nT(e).defaultView||window}function IA(e,t){return()=>null}function oT(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const jA=typeof window<"u"?A.useLayoutEffect:A.useEffect,iT=jA;let r_=0;function zA(e){const[t,r]=A.useState(e),n=e||t;return A.useEffect(()=>{t==null&&(r_+=1,r(`mui-${r_}`))},[t]),n}const n_=_a["useId".toString()];function AA(e){if(n_!==void 0){const t=n_();return e??t}return zA(e)}function NA(e,t,r,n,o){return null}function MA({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=A.useRef(e!==void 0),[i,a]=A.useState(t),s=o?e:i,u=A.useCallback(c=>{o||a(c)},[]);return[s,u]}function zs(e){const t=A.useRef(e);return iT(()=>{t.current=e}),A.useCallback((...r)=>(0,t.current)(...r),[])}function Fm(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{oT(r,t)})},e)}let td=!0,Wm=!1,o_;const LA={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 $A(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&LA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function DA(e){e.metaKey||e.altKey||e.ctrlKey||(td=!0)}function Yh(){td=!1}function FA(){this.visibilityState==="hidden"&&Wm&&(td=!0)}function WA(e){e.addEventListener("keydown",DA,!0),e.addEventListener("mousedown",Yh,!0),e.addEventListener("pointerdown",Yh,!0),e.addEventListener("touchstart",Yh,!0),e.addEventListener("visibilitychange",FA,!0)}function BA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return td||$A(t)}function aT(){const e=A.useCallback(o=>{o!=null&&WA(o.ownerDocument)},[]),t=A.useRef(!1);function r(){return t.current?(Wm=!0,window.clearTimeout(o_),o_=window.setTimeout(()=>{Wm=!1},100),t.current=!1,!0):!1}function n(o){return BA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function sT(e,t){const r=de({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=de({},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]=de({},i),Object.keys(o).forEach(a=>{r[n][a]=sT(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ml(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 i_=e=>e,UA=()=>{let e=i_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i_}}},HA=UA(),lT=HA,qA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Qa(e,t,r="Mui"){const n=qA[t];return n?`${r}-${n}`:`${lT.generate(e)}-${t}`}function Xa(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Qa(e,o,r)}),n}function uT(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?Mt(Ja,--br):0,ja--,yt===10&&(ja=1,nd--),yt}function Nr(){return yt=br2||_l(yt)>3?"":" "}function sN(e,t){for(;--t&&Nr()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Ll(e,Xu()+(t<6&&An()==32&&Nr()==32))}function Um(e){for(;Nr();)switch(yt){case e:return br;case 34:case 39:e!==34&&e!==39&&Um(yt);break;case 40:e===41&&Um(e);break;case 92:Nr();break}return br}function lN(e,t){for(;Nr()&&e+yt!==47+10;)if(e+yt===42+42&&An()===47)break;return"/*"+Ll(t,br-1)+"*"+rd(e===47?e:Nr())}function uN(e){for(;!_l(An());)Nr();return Ll(e,br)}function cN(e){return vT(Zu("",null,null,null,[""],e=mT(e),0,[0],e))}function Zu(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,d=a,p=0,_=0,w=0,g=1,R=1,v=1,S=0,b="",T=o,P=i,E=n,x=b;R;)switch(w=S,S=Nr()){case 40:if(w!=108&&Mt(x,d-1)==58){Bm(x+=Ae(Ju(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Ju(S);break;case 9:case 10:case 13:case 32:x+=aN(w);break;case 92:x+=sN(Xu()-1,7);continue;case 47:switch(An()){case 42:case 47:Ru(fN(lN(Nr(),Xu()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=Rn(x)*v;case 125*g:case 59:case 0:switch(S){case 0:case 125:R=0;case 59+f:v==-1&&(x=Ae(x,/\f/g,"")),_>0&&Rn(x)-d&&Ru(_>32?s_(x+";",n,r,d-1):s_(Ae(x," ","")+";",n,r,d-2),u);break;case 59:x+=";";default:if(Ru(E=a_(x,t,r,c,f,o,s,b,T=[],P=[],d),i),S===123)if(f===0)Zu(x,t,E,E,T,i,d,s,P);else switch(p===99&&Mt(x,3)===110?100:p){case 100:case 108:case 109:case 115:Zu(e,E,E,n&&Ru(a_(e,E,E,0,0,o,s,b,o,T=[],d),P),o,P,d,s,n?T:P);break;default:Zu(x,E,E,E,[""],P,0,s,P)}}c=f=_=0,g=v=1,b=x="",d=a;break;case 58:d=1+Rn(x),_=w;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&iN()==125)continue}switch(x+=rd(S),S*g){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[c++]=(Rn(x)-1)*v,v=1;break;case 64:An()===45&&(x+=Ju(Nr())),p=An(),f=d=Rn(b=x+=uN(Xu())),S++;break;case 45:w===45&&Rn(x)==2&&(g=0)}}return i}function a_(e,t,r,n,o,i,a,s,u,c,f){for(var d=o-1,p=o===0?i:[""],_=Eg(p),w=0,g=0,R=0;w0?p[v]+" "+S:Ae(S,/&\f/g,p[v])))&&(u[R++]=b);return od(e,t,r,o===0?Og:s,u,c,f)}function fN(e,t,r){return od(e,t,r,fT,rd(oN()),Sl(e,2,-2),0)}function s_(e,t,r,n){return od(e,t,r,Pg,Sl(e,0,n),Sl(e,n+1,-1),n)}function ya(e,t){for(var r="",n=Eg(e),o=0;o6)switch(Mt(e,t+1)){case 109:if(Mt(e,t+4)!==45)break;case 102:return Ae(e,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+Vc+(Mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bm(e,"stretch")?gT(Ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mt(e,t+1)!==115)break;case 6444:switch(Mt(e,Rn(e)-3-(~Bm(e,"!important")&&10))){case 107:return Ae(e,":",":"+je)+e;case 101:return Ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+je+(Mt(e,14)===45?"inline-":"")+"box$3$1"+je+"$2$3$1"+Vt+"$2box$3")+e}break;case 5936:switch(Mt(e,t+11)){case 114:return je+e+Vt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return je+e+Vt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return je+e+Vt+Ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return je+e+Vt+e+e}return e}var _N=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Pg:t.return=gT(t.value,t.length);break;case dT:return ya([bs(t,{value:Ae(t.value,"@","@"+je)})],o);case Og:if(t.length)return nN(t.props,function(i){switch(rN(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ya([bs(t,{props:[Ae(i,/:(read-\w+)/,":"+Vc+"$1")]})],o);case"::placeholder":return ya([bs(t,{props:[Ae(i,/:(plac\w+)/,":"+je+"input-$1")]}),bs(t,{props:[Ae(i,/:(plac\w+)/,":"+Vc+"$1")]}),bs(t,{props:[Ae(i,/:(plac\w+)/,Vt+"input-$1")]})],o)}return""})}},wN=[_N],bN=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 R=g.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||wN,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var R=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 ON={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},PN=/[A-Z]|^ms/g,EN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ST=function(t){return t.charCodeAt(1)===45},u_=function(t){return t!=null&&typeof t!="boolean"},Qh=cT(function(e){return ST(e)?e:e.replace(PN,"-$&").toLowerCase()}),c_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(EN,function(n,o,i){return Tn={name:o,styles:i,next:Tn},o})}return ON[t]!==1&&!ST(t)&&typeof r=="number"&&r!==0?r+"px":r};function wl(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 Tn={name:r.name,styles:r.styles,next:Tn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Tn={name:n.name,styles:n.styles,next:Tn},n=n.next;var o=r.styles+";";return o}return kN(e,t,r)}case"function":{if(e!==void 0){var i=Tn,a=r(e);return Tn=i,wl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function kN(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?MN:LN},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},$N=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return yT(r,n,o),zN(function(){return RN(r,n,o)}),null},DN=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||d_(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,_=1;_{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 L1={notify(){},get:()=>[]};function Yj(e,t){let r,n=L1;function o(d){return u(),n.subscribe(d)}function i(){n.notify()}function a(){f.onStateChange&&f.onStateChange()}function s(){return!!r}function u(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=Kj())}function c(){r&&(r(),r=void 0,n.clear(),n=L1)}const f={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>n};return f}const Qj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xj=Qj?A.useLayoutEffect:A.useEffect;function Jj({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=A.useMemo(()=>{const c=Yj(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=A.useMemo(()=>e.getState(),[e]);Xj(()=>{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||$o;return A.createElement(u.Provider,{value:a},r)}function LR(e=$o){const t=e===$o?kR:cg(e);return function(){const{store:n}=t();return n}}const Zj=LR();function ez(e=$o){const t=e===$o?Zj:LR(e);return function(){return t().dispatch}}const Ka=ez();Nj(Pj.useSyncExternalStoreWithSelector);Ij(Nl.unstable_batchedUpdates);function fn(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:vg(e)?2:gg(e)?3:0}function va(e,t){return Ya(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tz(e,t){return Ya(e)===2?e.get(t):e[t]}function $R(e,t,r){var n=Ya(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function DR(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vg(e){return sz&&e instanceof Map}function gg(e){return lz&&e instanceof Set}function ri(e){return e.o||e.t}function yg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=WR(e);delete t[tt];for(var r=ga(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=rz),Object.freeze(e),t&&bi(e,function(r,n){return Sg(n,!0)},!0)),e}function rz(){fn(2)}function _g(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zn(e){var t=Dm[e];return t||fn(18,e),t}function nz(e,t){Dm[e]||(Dm[e]=t)}function Mm(){return gl}function Dh(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function Bc(e){Lm(e),e.p.forEach(oz),e.p=null}function Lm(e){e===gl&&(gl=e.l)}function $1(e){return gl={p:[],l:gl,h:e,m:!0,_:0}}function oz(e){var t=e[tt];t.i===0||t.i===1?t.j():t.g=!0}function Fh(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||zn("ES5").S(t,e,n),n?(r[tt].P&&(Bc(t),fn(4)),io(e)&&(e=Uc(t,e),t.l||Hc(t,e)),t.u&&zn("Patches").M(r[tt].t,e,t.u,t.s)):e=Uc(t,r,[]),Bc(t),t.u&&t.v(t.u,t.s),e!==FR?e:void 0}function Uc(e,t,r){if(_g(t))return t;var n=t[tt];if(!n)return bi(t,function(s,u){return D1(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Hc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=yg(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),bi(i,function(s,u){return D1(e,n,o,s,u,r,a)}),Hc(e,o,!1),r&&e.u&&zn("Patches").N(n,r,e.u,e.s)}return n.o}function D1(e,t,r,n,o,i,a){if(Do(o)){var s=Uc(e,o,i&&t&&t.i!==3&&!va(t.R,n)?i.concat(n):void 0);if($R(r,n,s),!Do(s))return;e.m=!1}else a&&r.add(o);if(io(o)&&!_g(o)){if(!e.h.D&&e._<1)return;Uc(e,o),t&&t.A.l||Hc(e,o)}}function Hc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Sg(t,r)}function Wh(e,t){var r=e[tt];return(r?ri(r):e)[t]}function F1(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 yo(e){e.P||(e.P=!0,e.l&&yo(e.l))}function Bh(e){e.o||(e.o=yg(e.t))}function $m(e,t,r){var n=vg(t)?zn("MapSet").F(t,r):gg(t)?zn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Mm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=yl;a&&(u=[s],c=js);var f=Proxy.revocable(u,c),d=f.revoke,p=f.proxy;return s.k=p,s.j=d,p}(t,r):zn("ES5").J(t,r);return(r?r.A:Mm()).p.push(n),n}function iz(e){return Do(e)||fn(22,e),function t(r){if(!io(r))return r;var n,o=r[tt],i=Ya(r);if(o){if(!o.P&&(o.i<4||!zn("ES5").K(o)))return o.t;o.I=!0,n=W1(r,i),o.I=!1}else n=W1(r,i);return bi(n,function(a,s){o&&tz(o.t,a)===s||$R(n,a,t(s))}),i===3?new Set(n):n}(e)}function W1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yg(e)}function az(){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 yl.get(u,i)},set:function(u){var c=this[tt];yl.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)&&yo(s);break;case 4:r(s)&&yo(s)}}}function r(i){for(var a=i.t,s=i.k,u=ga(s),c=u.length-1;c>=0;c--){var f=u[c];if(f!==tt){var d=a[f];if(d===void 0&&!va(a,f))return!0;var p=s[f],_=p&&p[tt];if(_?_.t!==d:!DR(p,d))return!0}}var b=!!a[tt];return u.length!==ga(a).length+(b?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),w=1;w1?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=zn("Patches").$;return Do(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),$r=new cz,BR=$r.produce;$r.produceWithPatches.bind($r);$r.setAutoFreeze.bind($r);$r.setUseProxies.bind($r);$r.applyPatches.bind($r);$r.createDraft.bind($r);$r.finishDraft.bind($r);function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function fz(e,t){if(Pa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UR(e){var t=fz(e,"string");return Pa(t)==="symbol"?t:String(t)}function $(e,t,r){return t=UR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q1(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 G1(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Yt(1));return r(wg)(e,t)}if(typeof e!="function")throw new Error(Yt(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(Yt(3));return i}function d(g){if(typeof g!="function")throw new Error(Yt(4));if(u)throw new Error(Yt(5));var R=!0;return c(),s.push(g),function(){if(R){if(u)throw new Error(Yt(6));R=!1,c();var S=s.indexOf(g);s.splice(S,1),a=null}}}function p(g){if(!dz(g))throw new Error(Yt(7));if(typeof g.type>"u")throw new Error(Yt(8));if(u)throw new Error(Yt(9));try{u=!0,i=o(i,g)}finally{u=!1}for(var R=a=s,v=0;v"u")throw new Error(Yt(12));if(typeof r(void 0,{type:qc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Yt(13))})}function HR(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(Yt(14));d[_]=R,f=f||R!==g}return f=f||i.length!==Object.keys(u).length,f?d:u}}function Gc(){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 Vc}function o(s,u){n(s)===Vc&&(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 gz=function(t,r){return t===r};function yz(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:Kz,updateNodesInfoInCurrentSession:Yz,setActiveSessionPin:Qz,setActiveNodeId:Xz,addOrUpdateNodeVersion:Jz,addOrUpdateNodeFlags:Zz,addOrUpdateCmdLineArgs:eA,addOrUpdateNodeLogs:tA,addOrUpdateSyncStages:rA,setLogWithNameSelected:nA,addOrUpdateDBs:oA,addOrUpdateDBTable:iA,addOrUpdateReorg:aA,resetAppStateToMockState:sA}=YR.actions,QR=e=>e.app.sessions,Rg=e=>e.app.activeSessionPin,jt=e=>e.app.activeNodeId,XR=e=>e.app.nodeVersions,lA=e=>e.app.flags,uA=e=>e.app.cmdLineArgs,cA=e=>e.app.nodeLogs,fA=e=>e.app.syncStages,dA=e=>e.app.dbs,hA=e=>e.app.reorgs,JR=Xe([QR,Rg],(e,t)=>{let r=null;return t!=""&&e.forEach(n=>{n.pin===t&&(r=n)}),r}),Tg=Xe([JR],e=>{let t=[];return e!=null&&(t=e.nodes),t}),pA=Xe([QR,Rg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),mA=Xe([Tg,jt],(e,t)=>{let r;return e.forEach(n=>{n.id===t&&(r=n)}),r}),vA=Xe([Tg,jt,XR],(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}),gA=Xe([Tg,jt,XR],(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}),yA=Xe([lA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),SA=Xe([uA,jt],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),_A=Xe([cA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),bA=Xe([fA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),ZR=Xe([dA,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),wA=Xe([hA,jt],(e,t)=>{let r;return e.forEach(n=>{n.nodeId===t&&(r=n)}),r}),xA=YR.reducer,bs=({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===Xm.Command?a=a+" "+c:i===Xm.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})},CA=({cmdLine:e})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx("span",{className:"mb-2",children:e})}),RA=({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 Og={},eT={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})(eT);var ut=eT.exports,Gh={};function Yi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function tT(e){if(!Yi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=tT(e[r])}),t}function eo(e,t,r={clone:!0}){const n=r.clone?de({},e):e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Yi(t[o])&&o in e&&Yi(e[o])?n[o]=eo(e[o],t[o],r):r.clone?n[o]=Yi(t[o])?tT(t[o]):t[o]:n[o]=t[o])}),n}var Vh={exports:{}},Kh,Z1;function TA(){if(Z1)return Kh;Z1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kh=e,Kh}var Yh,e_;function OA(){if(e_)return Yh;e_=1;var e=TA();function t(){}function r(){}return r.resetWarningCache=t,Yh=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},Yh}var t_;function rT(){return t_||(t_=1,Vh.exports=OA()()),Vh.exports}rT();function Ia(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 PA(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 kA(e,t){return()=>null}function IA(e,t){return A.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function nT(e){return e&&e.ownerDocument||document}function jA(e){return nT(e).defaultView||window}function zA(e,t){return()=>null}function oT(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const AA=typeof window<"u"?A.useLayoutEffect:A.useEffect,iT=AA;let r_=0;function NA(e){const[t,r]=A.useState(e),n=e||t;return A.useEffect(()=>{t==null&&(r_+=1,r(`mui-${r_}`))},[t]),n}const n_=_a["useId".toString()];function MA(e){if(n_!==void 0){const t=n_();return e??t}return NA(e)}function LA(e,t,r,n,o){return null}function $A({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=A.useRef(e!==void 0),[i,a]=A.useState(t),s=o?e:i,u=A.useCallback(c=>{o||a(c)},[]);return[s,u]}function zs(e){const t=A.useRef(e);return iT(()=>{t.current=e}),A.useCallback((...r)=>(0,t.current)(...r),[])}function Wm(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{oT(r,t)})},e)}let td=!0,Bm=!1,o_;const DA={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 FA(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&DA[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function WA(e){e.metaKey||e.altKey||e.ctrlKey||(td=!0)}function Qh(){td=!1}function BA(){this.visibilityState==="hidden"&&Bm&&(td=!0)}function UA(e){e.addEventListener("keydown",WA,!0),e.addEventListener("mousedown",Qh,!0),e.addEventListener("pointerdown",Qh,!0),e.addEventListener("touchstart",Qh,!0),e.addEventListener("visibilitychange",BA,!0)}function HA(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return td||FA(t)}function aT(){const e=A.useCallback(o=>{o!=null&&UA(o.ownerDocument)},[]),t=A.useRef(!1);function r(){return t.current?(Bm=!0,window.clearTimeout(o_),o_=window.setTimeout(()=>{Bm=!1},100),t.current=!1,!0):!1}function n(o){return HA(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function sT(e,t){const r=de({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=de({},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]=de({},i),Object.keys(o).forEach(a=>{r[n][a]=sT(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ll(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 i_=e=>e,qA=()=>{let e=i_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i_}}},GA=qA(),lT=GA,VA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Qa(e,t,r="Mui"){const n=VA[t];return n?`${r}-${n}`:`${lT.generate(e)}-${t}`}function Xa(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Qa(e,o,r)}),n}function uT(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?Mt(Ja,--wr):0,ja--,yt===10&&(ja=1,nd--),yt}function Nr(){return yt=wr2||_l(yt)>3?"":" "}function uN(e,t){for(;--t&&Nr()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return $l(e,Ju()+(t<6&&An()==32&&Nr()==32))}function Hm(e){for(;Nr();)switch(yt){case e:return wr;case 34:case 39:e!==34&&e!==39&&Hm(yt);break;case 40:e===41&&Hm(e);break;case 92:Nr();break}return wr}function cN(e,t){for(;Nr()&&e+yt!==47+10;)if(e+yt===42+42&&An()===47)break;return"/*"+$l(t,wr-1)+"*"+rd(e===47?e:Nr())}function fN(e){for(;!_l(An());)Nr();return $l(e,wr)}function dN(e){return vT(ec("",null,null,null,[""],e=mT(e),0,[0],e))}function ec(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,d=a,p=0,_=0,b=0,g=1,R=1,v=1,S=0,w="",T=o,E=i,P=n,x=w;R;)switch(b=S,S=Nr()){case 40:if(b!=108&&Mt(x,d-1)==58){Um(x+=Ne(Zu(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Zu(S);break;case 9:case 10:case 13:case 32:x+=lN(b);break;case 92:x+=uN(Ju()-1,7);continue;case 47:switch(An()){case 42:case 47:Tu(hN(cN(Nr(),Ju()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=Rn(x)*v;case 125*g:case 59:case 0:switch(S){case 0:case 125:R=0;case 59+f:v==-1&&(x=Ne(x,/\f/g,"")),_>0&&Rn(x)-d&&Tu(_>32?s_(x+";",n,r,d-1):s_(Ne(x," ","")+";",n,r,d-2),u);break;case 59:x+=";";default:if(Tu(P=a_(x,t,r,c,f,o,s,w,T=[],E=[],d),i),S===123)if(f===0)ec(x,t,P,P,T,i,d,s,E);else switch(p===99&&Mt(x,3)===110?100:p){case 100:case 108:case 109:case 115:ec(e,P,P,n&&Tu(a_(e,P,P,0,0,o,s,w,o,T=[],d),E),o,E,d,s,n?T:E);break;default:ec(x,P,P,P,[""],E,0,s,E)}}c=f=_=0,g=v=1,w=x="",d=a;break;case 58:d=1+Rn(x),_=b;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&sN()==125)continue}switch(x+=rd(S),S*g){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[c++]=(Rn(x)-1)*v,v=1;break;case 64:An()===45&&(x+=Zu(Nr())),p=An(),f=d=Rn(w=x+=fN(Ju())),S++;break;case 45:b===45&&Rn(x)==2&&(g=0)}}return i}function a_(e,t,r,n,o,i,a,s,u,c,f){for(var d=o-1,p=o===0?i:[""],_=kg(p),b=0,g=0,R=0;b0?p[v]+" "+S:Ne(S,/&\f/g,p[v])))&&(u[R++]=w);return od(e,t,r,o===0?Eg:s,u,c,f)}function hN(e,t,r){return od(e,t,r,fT,rd(aN()),Sl(e,2,-2),0)}function s_(e,t,r,n){return od(e,t,r,Pg,Sl(e,0,n),Sl(e,n+1,-1),n)}function ya(e,t){for(var r="",n=kg(e),o=0;o6)switch(Mt(e,t+1)){case 109:if(Mt(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+Kc+(Mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Um(e,"stretch")?gT(Ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mt(e,t+1)!==115)break;case 6444:switch(Mt(e,Rn(e)-3-(~Um(e,"!important")&&10))){case 107:return Ne(e,":",":"+ze)+e;case 101:return Ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(Mt(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Vt+"$2box$3")+e}break;case 5936:switch(Mt(e,t+11)){case 114:return ze+e+Vt+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Vt+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Vt+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Vt+e+e}return e}var wN=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Pg:t.return=gT(t.value,t.length);break;case dT:return ya([ws(t,{value:Ne(t.value,"@","@"+ze)})],o);case Eg:if(t.length)return iN(t.props,function(i){switch(oN(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ya([ws(t,{props:[Ne(i,/:(read-\w+)/,":"+Kc+"$1")]})],o);case"::placeholder":return ya([ws(t,{props:[Ne(i,/:(plac\w+)/,":"+ze+"input-$1")]}),ws(t,{props:[Ne(i,/:(plac\w+)/,":"+Kc+"$1")]}),ws(t,{props:[Ne(i,/:(plac\w+)/,Vt+"input-$1")]})],o)}return""})}},xN=[wN],CN=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 R=g.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||xN,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var R=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 PN={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},kN=/[A-Z]|^ms/g,IN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ST=function(t){return t.charCodeAt(1)===45},u_=function(t){return t!=null&&typeof t!="boolean"},Xh=cT(function(e){return ST(e)?e:e.replace(kN,"-$&").toLowerCase()}),c_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(IN,function(n,o,i){return Tn={name:o,styles:i,next:Tn},o})}return PN[t]!==1&&!ST(t)&&typeof r=="number"&&r!==0?r+"px":r};function bl(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 Tn={name:r.name,styles:r.styles,next:Tn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Tn={name:n.name,styles:n.styles,next:Tn},n=n.next;var o=r.styles+";";return o}return jN(e,t,r)}case"function":{if(e!==void 0){var i=Tn,a=r(e);return Tn=i,bl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function jN(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?$N:DN},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},FN=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return yT(r,n,o),NN(function(){return ON(r,n,o)}),null},WN=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||d_(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,_=1;_{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},UN=["values","unit","step"],HN=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)=>de({},r,{[n.key]:n.val}),{})};function qN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Zt(e,UN),i=HN(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,_){const w=a.indexOf(_);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(w!==-1&&typeof t[a[w]]=="number"?t[a[w]]:_)-n/100}${r})`}function f(p){return a.indexOf(p)+1`@media (min-width:${Ig[e]}px)`};function ao(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||p_;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||p_;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Ig).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 KN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function YN(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function id(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 Kc(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=id(e,r)||n,t&&(o=t(o,n,e)),o}function De(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=id(u,n)||{};return ao(a,s,d=>{let p=Kc(c,o,d);return d===p&&typeof d=="string"&&(p=Kc(c,o,`${t}${d==="default"?"":Et(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function QN(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const XN={m:"margin",p:"padding"},JN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},m_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ZN=QN(e=>{if(e.length>2)if(m_[e])e=m_[e];else return[e];const[t,r]=e.split(""),n=XN[t],o=JN[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),jg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jg,...zg];function $l(e,t,r,n){var o;const i=(o=id(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 xT(e){return $l(e,"spacing",8)}function Dl(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 eM(e,t){return r=>e.reduce((n,o)=>(n[o]=Dl(t,r),n),{})}function tM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=ZN(r),i=eM(o,n),a=e[r];return ao(e,a,i)}function CT(e,t){const r=xT(e.theme);return Object.keys(e).map(n=>tM(e,t,n,r)).reduce(Ks,{})}function at(e){return CT(e,jg)}at.propTypes={};at.filterProps=jg;function st(e){return CT(e,zg)}st.propTypes={};st.filterProps=zg;function rM(e=8){if(e.mui)return e;const t=xT({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 ad(...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]?Ks(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function kn(e){return typeof e!="number"?e:`${e}px solid`}const nM=De({prop:"border",themeKey:"borders",transform:kn}),oM=De({prop:"borderTop",themeKey:"borders",transform:kn}),iM=De({prop:"borderRight",themeKey:"borders",transform:kn}),aM=De({prop:"borderBottom",themeKey:"borders",transform:kn}),sM=De({prop:"borderLeft",themeKey:"borders",transform:kn}),lM=De({prop:"borderColor",themeKey:"palette"}),uM=De({prop:"borderTopColor",themeKey:"palette"}),cM=De({prop:"borderRightColor",themeKey:"palette"}),fM=De({prop:"borderBottomColor",themeKey:"palette"}),dM=De({prop:"borderLeftColor",themeKey:"palette"}),sd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$l(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Dl(t,n)});return ao(e,e.borderRadius,r)}return null};sd.propTypes={};sd.filterProps=["borderRadius"];ad(nM,oM,iM,aM,sM,lM,uM,cM,fM,dM,sd);const ld=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$l(e.theme,"spacing",8),r=n=>({gap:Dl(t,n)});return ao(e,e.gap,r)}return null};ld.propTypes={};ld.filterProps=["gap"];const ud=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$l(e.theme,"spacing",8),r=n=>({columnGap:Dl(t,n)});return ao(e,e.columnGap,r)}return null};ud.propTypes={};ud.filterProps=["columnGap"];const cd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$l(e.theme,"spacing",8),r=n=>({rowGap:Dl(t,n)});return ao(e,e.rowGap,r)}return null};cd.propTypes={};cd.filterProps=["rowGap"];const hM=De({prop:"gridColumn"}),pM=De({prop:"gridRow"}),mM=De({prop:"gridAutoFlow"}),vM=De({prop:"gridAutoColumns"}),gM=De({prop:"gridAutoRows"}),yM=De({prop:"gridTemplateColumns"}),SM=De({prop:"gridTemplateRows"}),_M=De({prop:"gridTemplateAreas"}),wM=De({prop:"gridArea"});ad(ld,ud,cd,hM,pM,mM,vM,gM,yM,SM,_M,wM);function Sa(e,t){return t==="grey"?t:e}const bM=De({prop:"color",themeKey:"palette",transform:Sa}),xM=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sa}),CM=De({prop:"backgroundColor",themeKey:"palette",transform:Sa});ad(bM,xM,CM);function jr(e){return e<=1&&e!==0?`${e*100}%`:e}const RM=De({prop:"width",transform:jr}),Ag=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ig[r]||jr(r)}};return ao(e,e.maxWidth,t)}return null};Ag.filterProps=["maxWidth"];const TM=De({prop:"minWidth",transform:jr}),OM=De({prop:"height",transform:jr}),PM=De({prop:"maxHeight",transform:jr}),EM=De({prop:"minHeight",transform:jr});De({prop:"size",cssProperty:"width",transform:jr});De({prop:"size",cssProperty:"height",transform:jr});const kM=De({prop:"boxSizing"});ad(RM,Ag,TM,OM,PM,EM,kM);const IM={border:{themeKey:"borders",transform:kn},borderTop:{themeKey:"borders",transform:kn},borderRight:{themeKey:"borders",transform:kn},borderBottom:{themeKey:"borders",transform:kn},borderLeft:{themeKey:"borders",transform:kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sd},color:{themeKey:"palette",transform:Sa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sa},backgroundColor:{themeKey:"palette",transform:Sa},p:{style:st},pt:{style:st},pr:{style:st},pb:{style:st},pl:{style:st},px:{style:st},py:{style:st},padding:{style:st},paddingTop:{style:st},paddingRight:{style:st},paddingBottom:{style:st},paddingLeft:{style:st},paddingX:{style:st},paddingY:{style:st},paddingInline:{style:st},paddingInlineStart:{style:st},paddingInlineEnd:{style:st},paddingBlock:{style:st},paddingBlockStart:{style:st},paddingBlockEnd:{style:st},m:{style:at},mt:{style:at},mr:{style:at},mb:{style:at},ml:{style:at},mx:{style:at},my:{style:at},margin:{style:at},marginTop:{style:at},marginRight:{style:at},marginBottom:{style:at},marginLeft:{style:at},marginX:{style:at},marginY:{style:at},marginInline:{style:at},marginInlineStart:{style:at},marginInlineEnd:{style:at},marginBlock:{style:at},marginBlockStart:{style:at},marginBlockEnd:{style:at},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:ld},rowGap:{style:cd},columnGap:{style:ud},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jr},maxWidth:{style:Ag},minWidth:{transform:jr},height:{transform:jr},maxHeight:{transform:jr},minHeight:{transform:jr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ng=IM;function jM(...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 zM(e,t){return typeof e=="function"?e(t):e}function AM(){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=id(o,c)||{};return d?d(a):ao(a,n,w=>{let g=Kc(p,f,w);return w===g&&typeof w=="string"&&(g=Kc(p,f,`${r}${w==="default"?"":Et(w)}`,w)),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:Ng;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=KN(i.breakpoints),d=Object.keys(f);let p=f;return Object.keys(c).forEach(_=>{const w=zM(c[_],i);if(w!=null)if(typeof w=="object")if(a[_])p=Ks(p,e(_,w,i,a));else{const g=ao({theme:i},w,R=>({[_]:R}));jM(g,w)?p[_]=t({sx:w,theme:i}):p=Ks(p,g)}else p=Ks(p,e(_,w,i,a))}),YN(d,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const RT=AM();RT.filterProps=["sx"];const Mg=RT,NM=["breakpoints","palette","spacing","shape"];function Lg(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Zt(e,NM),s=qN(r),u=rM(o);let c=eo({breakpoints:s,direction:"ltr",components:{},palette:de({mode:"light"},n),spacing:u,shape:de({},VN,i)},a);return c=t.reduce((f,d)=>eo(f,d),c),c.unstable_sxConfig=de({},Ng,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Mg({sx:d,theme:this})},c}function MM(e){return Object.keys(e).length===0}function LM(e=null){const t=A.useContext(bT);return!t||MM(t)?e:t}const $M=Lg();function DM(e=$M){return LM(e)}const FM=["variant"];function v_(e){return e.length===0}function TT(e){const{variant:t}=e,r=Zt(e,FM);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=v_(n)?e[o]:Et(e[o]):n+=`${v_(n)?o:Et(o)}${Et(e[o].toString())}`}),n}const WM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BM(e){return Object.keys(e).length===0}function UM(e){return typeof e=="string"&&e.charCodeAt(0)>96}const HM=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,qM=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const i=TT(o.props);n[i]=o.style}),n},GM=(e,t,r,n)=>{var o;const{ownerState:i={}}=e,a=[],s=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return s&&s.forEach(u=>{let c=!0;Object.keys(u.props).forEach(f=>{i[f]!==u.props[f]&&e[f]!==u.props[f]&&(c=!1)}),c&&a.push(t[TT(u.props)])}),a};function ec(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const VM=Lg(),KM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xs({defaultTheme:e,theme:t,themeId:r}){return BM(t)?e:t[r]||t}function YM(e){return e?(t,r)=>r[e]:null}function QM(e={}){const{themeId:t,defaultTheme:r=VM,rootShouldForwardProp:n=ec,slotShouldForwardProp:o=ec}=e,i=a=>Mg(de({},a,{theme:xs(de({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{BN(a,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:f,skipSx:d,overridesResolver:p=YM(KM(c))}=s,_=Zt(s,WM),w=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=d||!1;let R,v=ec;c==="Root"||c==="root"?v=n:c?v=o:UM(a)&&(v=void 0);const S=WN(a,de({shouldForwardProp:v,label:R},_)),b=(T,...P)=>{const E=P?P.map(j=>typeof j=="function"&&j.__emotion_real!==j?M=>j(de({},M,{theme:xs(de({},M,{defaultTheme:r,themeId:t}))})):j):[];let x=T;u&&p&&E.push(j=>{const M=xs(de({},j,{defaultTheme:r,themeId:t})),D=HM(u,M);if(D){const U={};return Object.entries(D).forEach(([H,ie])=>{U[H]=typeof ie=="function"?ie(de({},j,{theme:M})):ie}),p(j,U)}return null}),u&&!w&&E.push(j=>{const M=xs(de({},j,{defaultTheme:r,themeId:t}));return GM(j,qM(u,M),M,u)}),g||E.push(i);const k=E.length-P.length;if(Array.isArray(T)&&k>0){const j=new Array(k).fill("");x=[...T,...j],x.raw=[...T.raw,...j]}else typeof T=="function"&&T.__emotion_real!==T&&(x=j=>T(de({},j,{theme:xs(de({},j,{defaultTheme:r,themeId:t}))})));const I=S(x,...E);return a.muiName&&(I.muiName=a.muiName),I};return S.withConfig&&(b.withConfig=S.withConfig),b}}function XM(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:sT(t.components[r].defaultProps,n)}function JM({props:e,name:t,defaultTheme:r,themeId:n}){let o=DM(r);return n&&(o=o[n]||o),XM({theme:o,name:t,props:e})}function $g(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function ZM(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 bi(e){if(e.type)return e;if(e.charAt(0)==="#")return bi(ZM(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ia(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(Ia(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function fd(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 e3(e){e=bi(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])),fd({type:s,values:u})}function g_(e){e=bi(e);let t=e.type==="hsl"||e.type==="hsla"?bi(e3(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 t3(e,t){const r=g_(e),n=g_(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Yc(e,t){return e=bi(e),t=$g(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fd(e)}function qm(e,t){if(e=bi(e),t=$g(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 fd(e)}function Gm(e,t){if(e=bi(e),t=$g(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 fd(e)}function r3(e,t){return de({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const n3={black:"#000",white:"#fff"},bl=n3,o3={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"},i3=o3,a3={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"},Wi=a3,s3={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"},Bi=s3,l3={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"},Cs=l3,u3={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"},Ui=u3,c3={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"},Hi=c3,f3={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"},qi=f3,d3=["mode","contrastThreshold","tonalOffset"],y_={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:bl.white,default:bl.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}},Xh={text:{primary:bl.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:bl.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 S_(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=Gm(e.main,o):t==="dark"&&(e.dark=qm(e.main,i)))}function h3(e="light"){return e==="dark"?{main:Ui[200],light:Ui[50],dark:Ui[400]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function p3(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[500],light:Wi[300],dark:Wi[700]}}function m3(e="light"){return e==="dark"?{main:Bi[500],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[400],dark:Bi[800]}}function v3(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function g3(e="light"){return e==="dark"?{main:qi[400],light:qi[300],dark:qi[700]}:{main:qi[800],light:qi[500],dark:qi[900]}}function y3(e="light"){return e==="dark"?{main:Cs[400],light:Cs[300],dark:Cs[700]}:{main:"#ed6c02",light:Cs[500],dark:Cs[900]}}function S3(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Zt(e,d3),i=e.primary||h3(t),a=e.secondary||p3(t),s=e.error||m3(t),u=e.info||v3(t),c=e.success||g3(t),f=e.warning||y3(t);function d(g){return t3(g,Xh.text.primary)>=r?Xh.text.primary:y_.text.primary}const p=({color:g,name:R,mainShade:v=500,lightShade:S=300,darkShade:b=700})=>{if(g=de({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Ia(11,R?` (${R})`:"",v));if(typeof g.main!="string")throw new Error(Ia(12,R?` (${R})`:"",JSON.stringify(g.main)));return S_(g,"light",S,n),S_(g,"dark",b,n),g.contrastText||(g.contrastText=d(g.main)),g},_={dark:Xh,light:y_};return eo(de({common:de({},bl),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:i3,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},_[t]),o)}const _3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function w3(e){return Math.round(e*1e5)/1e5}const __={textTransform:"uppercase"},w_='"Roboto", "Helvetica", "Arial", sans-serif';function b3(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=w_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:f,pxToRem:d}=r,p=Zt(r,_3),_=o/14,w=d||(v=>`${v/c*_}rem`),g=(v,S,b,T,P)=>de({fontFamily:n,fontWeight:v,fontSize:w(S),lineHeight:b},n===w_?{letterSpacing:`${w3(T/S)}em`}:{},P,f),R={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,__),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,__),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return eo(de({htmlFontSize:c,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},R),p,{clone:!1})}const x3=.2,C3=.14,R3=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${x3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${C3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${R3})`].join(",")}const T3=["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)],O3=T3,P3=["duration","easing","delay"],E3={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)"},k3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b_(e){return`${Math.round(e)}ms`}function I3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function j3(e){const t=de({},E3,e.easing),r=de({},k3,e.duration);return de({getAutoHeightDuration:I3,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return Zt(i,P3),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:b_(a)} ${s} ${typeof u=="string"?u:b_(u)}`).join(",")}},e,{easing:t,duration:r})}const z3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},A3=z3,N3=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function M3(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Zt(e,N3);if(e.vars)throw new Error(Ia(18));const s=S3(n),u=Lg(e);let c=eo(u,{mixins:r3(u.breakpoints,r),palette:s,shadows:O3.slice(),typography:b3(s,i),transitions:j3(o),zIndex:de({},A3)});return c=eo(c,a),c=t.reduce((f,d)=>eo(f,d),c),c.unstable_sxConfig=de({},Ng,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Mg({sx:d,theme:this})},c}const L3=M3(),OT=L3,PT="$$material";function Za({props:e,name:t}){return JM({props:e,name:t,defaultTheme:OT,themeId:PT})}const $3=e=>ec(e)&&e!=="classes",D3=QM({themeId:PT,defaultTheme:OT,rootShouldForwardProp:$3}),$n=D3;function F3(e){return Qa("MuiSvgIcon",e)}Xa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const W3=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B3=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Et(t)}`,`fontSize${Et(r)}`]};return Ml(o,F3,n)},U3=$n("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Et(r.color)}`],t[`fontSize${Et(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,f,d,p,_,w;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:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),ET=A.forwardRef(function(t,r){const n=Za({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,_=Zt(n,W3),w=A.isValidElement(o)&&o.type==="svg",g=de({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:w}),R={};f||(R.viewBox=p);const v=B3(g);return m.jsxs(U3,de({as:s,className:pr(v.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},R,_,w&&o.props,{ownerState:g,children:[w?o.props.children:o,d?m.jsx("title",{children:d}):null]}))});ET.muiName="SvgIcon";const x_=ET;function es(e,t){function r(n,o){return m.jsx(x_,de({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=x_.muiName,A.memo(A.forwardRef(r))}const H3={configure:e=>{lT.configure(e)}},q3=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Et,createChainedFunction:TA,createSvgIcon:es,debounce:OA,deprecatedPropType:PA,isMuiElement:EA,ownerDocument:nT,ownerWindow:kA,requirePropFactory:IA,setRef:oT,unstable_ClassNameGenerator:H3,unstable_useEnhancedEffect:iT,unstable_useId:AA,unsupportedProp:NA,useControlled:MA,useEventCallback:zs,useForkRef:Fm,useIsFocusVisible:aT},Symbol.toStringTag,{value:"Module"})),G3=Ba(q3);var C_;function ct(){return C_||(C_=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=G3}(qh)),qh}var V3=ut;Object.defineProperty(Tg,"__esModule",{value:!0});var Dg=Tg.default=void 0,K3=V3(ct()),Y3=m,Q3=(0,K3.default)((0,Y3.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");Dg=Tg.default=Q3;var Fg={},X3=ut;Object.defineProperty(Fg,"__esModule",{value:!0});var Wg=Fg.default=void 0,J3=X3(ct()),Z3=m,e4=(0,J3.default)((0,Z3.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");Wg=Fg.default=e4;var Bg={},t4=ut;Object.defineProperty(Bg,"__esModule",{value:!0});var Ug=Bg.default=void 0,r4=t4(ct()),n4=m,o4=(0,r4.default)((0,n4.jsx)("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"Sort");Ug=Bg.default=o4;const i4=({flags:e})=>{const[t,r]=ne.useState(!1),[n,o]=ne.useState([]),[i,a]=ne.useState(!0);A.useEffect(()=>{const d=s(e);o(d)},[e]);const s=d=>d===void 0?[]:d.filter(_=>_.value!==void 0&&_.value!==""&&_.value!==null).sort((_,w)=>_.flag.localeCompare(_.flag)),u=(d,p)=>{if(p==="default"){let _=[];return i?_=d.sort((w,g)=>w.default>g.default?1:-1):_=d.sort((w,g)=>w.default_.flag.localeCompare(w.flag)):d},c=()=>{const d=u(n,"default");o(d),a(!i),r(!0)},f=()=>t?i?m.jsx(Dg,{}):m.jsx(Wg,{}):m.jsx(Ug,{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(xA,{flag:d}))})]})},a4=({flags:e})=>{const[t,r]=A.useState([]);return A.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))})})]}),Pi="#1ea7fd",Fl="red";const mn=({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})},R_={isConnectedToInternet:!0,isConnectedToNode:!0},kT=bg({name:"app",initialState:R_,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>R_}}),{setIsConnectedToInternet:T_,setIsConnectedToNode:O_,resetConectionState:f4}=kT.actions,d4=e=>e.connection.isConnectedToInternet,h4=e=>e.connection.isConnectedToNode,p4=kT.reducer,tc={second:1e3,minute:6e4,hour:36e5},m4={peers:[],bootnodes:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[]},IT=bg({name:"network",initialState:m4,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,Tu(e.peers[o].peers[i].network,n.network,"capBytesIn"),Tu(e.peers[o].peers[i].network,n.network,"capBytesOut"),Tu(e.peers[o].peers[i].network,n.network,"typeBytesIn"),Tu(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)},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)},resetNetworkStateToMockState:e=>{e.peers=[],e.bootnodes=[],e.snapshotDownloadStatus=[],e.snapshotIndexStatus=[],e.syncStages=[]}}}),Tu=(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:v4,addOrUpdatePeer:g4,addOrUpdateBootnodes:y4,setSnapshotDownloadStatus:S4,updatePeersState:_4,setSnapshotIndexStatus:w4,setNodeSyncStages:b4}=IT.actions,x4=e=>e.network.peers,C4=e=>e.network.snapshotDownloadStatus,R4=e=>e.network.snapshotIndexStatus,T4=e=>e.network.syncStages,Hg=Xe([x4,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),O4=()=>Xe([Hg,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),dd=Xe([Hg,jt],(e,t)=>jT(t,"Sentry",e)),hd=Xe([Hg,jt],(e,t)=>jT(t,"Sentinel",e)),jT=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},P4=Xe([dd],e=>zT(e)),E4=Xe([hd],e=>zT(e)),zT=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},k4=Xe([dd],e=>AT(e)),I4=Xe([hd],e=>AT(e)),AT=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},j4=Xe([dd],e=>NT(e)),z4=Xe([hd],e=>NT(e)),NT=e=>{let t={activePeers:0,totalPeers:e.length,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0};return e.forEach(r=>{t.totalInBytes+=r.network.bytesIn,t.totalOutBytes+=r.network.bytesOut,r.active&&t.activePeers++,r.network.static&&t.staticPeers++}),t},qg=Xe([C4,jt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),A4=Xe([R4,jt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),N4=Xe([T4,jt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),M4=IT.reducer;var Gg="persist:",Vg="persist/FLUSH",pd="persist/REHYDRATE",Kg="persist/PAUSE",Yg="persist/PERSIST",Qg="persist/PURGE",Xg="persist/REGISTER",L4=-1;function rc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rc=function(r){return typeof r}:rc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rc(e)}function P_(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 $4(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y4(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 Q4=5e3;function X4(e,t){var r=e.version!==void 0?e.version:L4;e.debug;var n=e.stateReconciler===void 0?F4:e.stateReconciler,o=e.getStoredState||U4,i=e.timeout!==void 0?e.timeout:Q4,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||{},_=p._persist,w=K4(p,["_persist"]),g=w;if(d.type===Yg){var R=!1,v=function(k,I){R||(d.rehydrate(e.key,k,I),R=!0)};if(i&&setTimeout(function(){!R&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,a||(a=W4(e)),_)return Bn({},t(g,d),{_persist:_});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 k=e.migrate||function(I,j){return Promise.resolve(I)};k(x,r).then(function(I){v(I)},function(I){v(void 0,I)})},function(x){v(void 0,x)}),Bn({},t(g,d),{_persist:{version:r,rehydrated:!1}})}else{if(d.type===Qg)return s=!0,d.result(q4(e)),Bn({},t(g,d),{_persist:_});if(d.type===Vg)return d.result(a&&a.flush()),Bn({},t(g,d),{_persist:_});if(d.type===Kg)u=!0;else if(d.type===pd){if(s)return Bn({},g,{_persist:Bn({},_,{rehydrated:!0})});if(d.key===e.key){var S=t(g,d),b=d.payload,T=n!==!1&&b!==void 0?n(b,f,S,e):S,P=Bn({},T,{_persist:Bn({},_,{rehydrated:!0})});return c(P)}}}if(!_)return t(f,d);var E=t(g,d);return E===g?f:c(Bn({},E,{_persist:_}))}}function k_(e){return eL(e)||Z4(e)||J4()}function J4(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Z4(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function eL(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:MT,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Xg:return Vm({},t,{registry:[].concat(k_(t.registry),[r.key])});case pd:var n=t.registry.indexOf(r.key),o=k_(t.registry);return o.splice(n,1),Vm({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function nL(e,t,r){var n=r||!1,o=wg(rL,MT,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:Xg,key:c})},a=function(c,f,d){var p={type:pd,payload:f,err:d,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=Vm({},o,{purge:function(){var c=[];return e.dispatch({type:Qg,result:function(d){c.push(d)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:Vg,result:function(d){c.push(d)}}),Promise.all(c)},pause:function(){e.dispatch({type:Kg})},persist:function(){e.dispatch({type:Yg,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var Jg={},Zg={};Zg.__esModule=!0;Zg.default=aL;function nc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nc=function(r){return typeof r}:nc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nc(e)}function Jh(){}var oL={getItem:Jh,setItem:Jh,removeItem:Jh};function iL(e){if((typeof self>"u"?"undefined":nc(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 aL(e){var t="".concat(e,"Storage");return iL(t)?self[t]:oL}Jg.__esModule=!0;Jg.default=uL;var sL=lL(Zg);function lL(e){return e&&e.__esModule?e:{default:e}}function uL(e){var t=(0,sL.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 LT=void 0,cL=fL(Jg);function fL(e){return e&&e.__esModule?e:{default:e}}var dL=(0,cL.default)("local");LT=dL;const hL={key:"root",blacklist:["connection"],storage:LT},pL=HR({app:wA,network:M4,connection:p4}),mL=X4(hL,pL),Qe=Nz({reducer:mL,middleware:e=>e({serializableCheck:{ignoredActions:[Vg,pd,Kg,Yg,Qg,Xg]}})}),vL=nL(Qe),gL="sessions",yL="nodes",SL="versions",_L="flags",wL="cmdline",bL="logs",xL="sync-stages",$T="dbs",CL="tables",RL="reorgs",TL="peers",OL="peers",PL=()=>Qe.getState().app.activeSessionPin,ey=()=>{const e=PL();return`${window.location.origin}/api/${gL}/${e}`},vn=()=>{const e=ey(),t=Qe.getState().app.activeNodeId;return`${e}/${yL}/${t}`},EL=()=>`${vn()}/${SL}`,DT=()=>`${vn()}/${_L}`,FT=()=>`${vn()}/${wL}`,WT=()=>`${vn()}/${bL}`,BT=()=>`${vn()}/${xL}`,kL=()=>`${vn()}/${$T}`,IL=e=>`${vn()}/${$T}/${e}/${CL}`,UT=()=>`${vn()}/${RL}`,jL=()=>`${vn()}/${TL}`,zL=()=>`${vn()}/${OL}`,AL=()=>`${vn()}/snapshot-sync`,NL=()=>{{const e=tn(ey(),"GET");return en(e)}},ML=()=>{{const e=tn(EL(),"GET");return en(e)}},LL=()=>{{const e=tn(DT(),"GET");return en(e)}},$L=()=>{{const e=tn(FT(),"GET");return en(e)}},DL=()=>{{const e=tn(WT(),"GET");return en(e)}},FL=()=>{{const e=tn(BT(),"GET");return en(e)}},WL=()=>{{const e=tn(kL(),"GET");return en(e)}},BL=e=>{{const t=tn(IL(e),"GET");return en(t)}},UL=()=>{{const e=tn(UT(),"GET");return en(e)}},HL=()=>{{const e=tn(jL(),"GET");return en(e)}},qL=()=>{{const e=tn(zL(),"GET");return en(e)}},GL=()=>{{const e=tn(AL(),"GET");return en(e)}},en=e=>fetch(e).then(t=>(Qe.dispatch(O_(!0)),t.json())).catch(t=>{Qe.dispatch(O_(!1))});function tn(e,t,r){return new Request(e,{method:t,body:r})}var ty={},VL=ut;Object.defineProperty(ty,"__esModule",{value:!0});var ry=ty.default=void 0,KL=VL(ct()),YL=m,QL=(0,KL.default)((0,YL.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 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-2zm0 16H8V7h11v14z"}),"ContentCopy");ry=ty.default=QL;var ny={},XL=ut;Object.defineProperty(ny,"__esModule",{value:!0});var oy=ny.default=void 0,JL=XL(ct()),ZL=m,e5=(0,JL.default)((0,ZL.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");oy=ny.default=e5;const t5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},j_=t5;function r5(e){return Qa("MuiPaper",e)}Xa("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 n5=["className","component","elevation","square","variant"],o5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ml(i,r5,o)},i5=$n("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 de({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"&&de({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Yc("#fff",j_(t.elevation))}, ${Yc("#fff",j_(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),a5=A.forwardRef(function(t,r){const n=Za({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=Zt(n,n5),f=de({},n,{component:i,elevation:a,square:s,variant:u}),d=o5(f);return m.jsx(i5,de({as:i,ownerState:f,className:pr(d.root,o),ref:r},c))}),s5=a5;function l5(e){return Qa("MuiAlert",e)}const u5=Xa("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),z_=u5;function Qc(e,t){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Qc(e,t)}function c5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qc(e,t)}const A_=ne.createContext(null);function Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iy(e,t){var r=function(i){return t&&A.isValidElement(i)?t(i):i},n=Object.create(null);return e&&A.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function f5(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:_,children:m.jsx("span",{className:w})})}const y5=Xa("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ur=y5,S5=["center","classes","className"];let md=e=>e,N_,M_,L_,$_;const Km=550,_5=80,w5=kg(N_||(N_=md` + */function UN(e,t){return qm(e,t)}const HN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},qN=["values","unit","step"],GN=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)=>de({},r,{[n.key]:n.val}),{})};function VN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Zt(e,qN),i=GN(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,_){const b=a.indexOf(_);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:_)-n/100}${r})`}function f(p){return a.indexOf(p)+1`@media (min-width:${jg[e]}px)`};function ao(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||p_;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||p_;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||jg).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 QN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function XN(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function id(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 Yc(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=id(e,r)||n,t&&(o=t(o,n,e)),o}function De(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=id(u,n)||{};return ao(a,s,d=>{let p=Yc(c,o,d);return d===p&&typeof d=="string"&&(p=Yc(c,o,`${t}${d==="default"?"":Pt(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function JN(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ZN={m:"margin",p:"padding"},eM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},m_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tM=JN(e=>{if(e.length>2)if(m_[e])e=m_[e];else return[e];const[t,r]=e.split(""),n=ZN[t],o=eM[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),zg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ag=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zg,...Ag];function Dl(e,t,r,n){var o;const i=(o=id(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 xT(e){return Dl(e,"spacing",8)}function Fl(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 rM(e,t){return r=>e.reduce((n,o)=>(n[o]=Fl(t,r),n),{})}function nM(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=tM(r),i=rM(o,n),a=e[r];return ao(e,a,i)}function CT(e,t){const r=xT(e.theme);return Object.keys(e).map(n=>nM(e,t,n,r)).reduce(Ks,{})}function at(e){return CT(e,zg)}at.propTypes={};at.filterProps=zg;function st(e){return CT(e,Ag)}st.propTypes={};st.filterProps=Ag;function oM(e=8){if(e.mui)return e;const t=xT({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 ad(...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]?Ks(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function kn(e){return typeof e!="number"?e:`${e}px solid`}const iM=De({prop:"border",themeKey:"borders",transform:kn}),aM=De({prop:"borderTop",themeKey:"borders",transform:kn}),sM=De({prop:"borderRight",themeKey:"borders",transform:kn}),lM=De({prop:"borderBottom",themeKey:"borders",transform:kn}),uM=De({prop:"borderLeft",themeKey:"borders",transform:kn}),cM=De({prop:"borderColor",themeKey:"palette"}),fM=De({prop:"borderTopColor",themeKey:"palette"}),dM=De({prop:"borderRightColor",themeKey:"palette"}),hM=De({prop:"borderBottomColor",themeKey:"palette"}),pM=De({prop:"borderLeftColor",themeKey:"palette"}),sd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dl(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Fl(t,n)});return ao(e,e.borderRadius,r)}return null};sd.propTypes={};sd.filterProps=["borderRadius"];ad(iM,aM,sM,lM,uM,cM,fM,dM,hM,pM,sd);const ld=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dl(e.theme,"spacing",8),r=n=>({gap:Fl(t,n)});return ao(e,e.gap,r)}return null};ld.propTypes={};ld.filterProps=["gap"];const ud=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dl(e.theme,"spacing",8),r=n=>({columnGap:Fl(t,n)});return ao(e,e.columnGap,r)}return null};ud.propTypes={};ud.filterProps=["columnGap"];const cd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dl(e.theme,"spacing",8),r=n=>({rowGap:Fl(t,n)});return ao(e,e.rowGap,r)}return null};cd.propTypes={};cd.filterProps=["rowGap"];const mM=De({prop:"gridColumn"}),vM=De({prop:"gridRow"}),gM=De({prop:"gridAutoFlow"}),yM=De({prop:"gridAutoColumns"}),SM=De({prop:"gridAutoRows"}),_M=De({prop:"gridTemplateColumns"}),bM=De({prop:"gridTemplateRows"}),wM=De({prop:"gridTemplateAreas"}),xM=De({prop:"gridArea"});ad(ld,ud,cd,mM,vM,gM,yM,SM,_M,bM,wM,xM);function Sa(e,t){return t==="grey"?t:e}const CM=De({prop:"color",themeKey:"palette",transform:Sa}),RM=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sa}),TM=De({prop:"backgroundColor",themeKey:"palette",transform:Sa});ad(CM,RM,TM);function jr(e){return e<=1&&e!==0?`${e*100}%`:e}const OM=De({prop:"width",transform:jr}),Ng=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||jg[r]||jr(r)}};return ao(e,e.maxWidth,t)}return null};Ng.filterProps=["maxWidth"];const EM=De({prop:"minWidth",transform:jr}),PM=De({prop:"height",transform:jr}),kM=De({prop:"maxHeight",transform:jr}),IM=De({prop:"minHeight",transform:jr});De({prop:"size",cssProperty:"width",transform:jr});De({prop:"size",cssProperty:"height",transform:jr});const jM=De({prop:"boxSizing"});ad(OM,Ng,EM,PM,kM,IM,jM);const zM={border:{themeKey:"borders",transform:kn},borderTop:{themeKey:"borders",transform:kn},borderRight:{themeKey:"borders",transform:kn},borderBottom:{themeKey:"borders",transform:kn},borderLeft:{themeKey:"borders",transform:kn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sd},color:{themeKey:"palette",transform:Sa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sa},backgroundColor:{themeKey:"palette",transform:Sa},p:{style:st},pt:{style:st},pr:{style:st},pb:{style:st},pl:{style:st},px:{style:st},py:{style:st},padding:{style:st},paddingTop:{style:st},paddingRight:{style:st},paddingBottom:{style:st},paddingLeft:{style:st},paddingX:{style:st},paddingY:{style:st},paddingInline:{style:st},paddingInlineStart:{style:st},paddingInlineEnd:{style:st},paddingBlock:{style:st},paddingBlockStart:{style:st},paddingBlockEnd:{style:st},m:{style:at},mt:{style:at},mr:{style:at},mb:{style:at},ml:{style:at},mx:{style:at},my:{style:at},margin:{style:at},marginTop:{style:at},marginRight:{style:at},marginBottom:{style:at},marginLeft:{style:at},marginX:{style:at},marginY:{style:at},marginInline:{style:at},marginInlineStart:{style:at},marginInlineEnd:{style:at},marginBlock:{style:at},marginBlockStart:{style:at},marginBlockEnd:{style:at},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:ld},rowGap:{style:cd},columnGap:{style:ud},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jr},maxWidth:{style:Ng},minWidth:{transform:jr},height:{transform:jr},maxHeight:{transform:jr},minHeight:{transform:jr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Mg=zM;function AM(...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 NM(e,t){return typeof e=="function"?e(t):e}function MM(){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=id(o,c)||{};return d?d(a):ao(a,n,b=>{let g=Yc(p,f,b);return b===g&&typeof b=="string"&&(g=Yc(p,f,`${r}${b==="default"?"":Pt(b)}`,b)),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:Mg;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=QN(i.breakpoints),d=Object.keys(f);let p=f;return Object.keys(c).forEach(_=>{const b=NM(c[_],i);if(b!=null)if(typeof b=="object")if(a[_])p=Ks(p,e(_,b,i,a));else{const g=ao({theme:i},b,R=>({[_]:R}));AM(g,b)?p[_]=t({sx:b,theme:i}):p=Ks(p,g)}else p=Ks(p,e(_,b,i,a))}),XN(d,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const RT=MM();RT.filterProps=["sx"];const Lg=RT,LM=["breakpoints","palette","spacing","shape"];function $g(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Zt(e,LM),s=VN(r),u=oM(o);let c=eo({breakpoints:s,direction:"ltr",components:{},palette:de({mode:"light"},n),spacing:u,shape:de({},YN,i)},a);return c=t.reduce((f,d)=>eo(f,d),c),c.unstable_sxConfig=de({},Mg,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Lg({sx:d,theme:this})},c}function $M(e){return Object.keys(e).length===0}function DM(e=null){const t=A.useContext(wT);return!t||$M(t)?e:t}const FM=$g();function WM(e=FM){return DM(e)}const BM=["variant"];function v_(e){return e.length===0}function TT(e){const{variant:t}=e,r=Zt(e,BM);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=v_(n)?e[o]:Pt(e[o]):n+=`${v_(n)?o:Pt(o)}${Pt(e[o].toString())}`}),n}const UM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function HM(e){return Object.keys(e).length===0}function qM(e){return typeof e=="string"&&e.charCodeAt(0)>96}const GM=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,VM=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const i=TT(o.props);n[i]=o.style}),n},KM=(e,t,r,n)=>{var o;const{ownerState:i={}}=e,a=[],s=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return s&&s.forEach(u=>{let c=!0;Object.keys(u.props).forEach(f=>{i[f]!==u.props[f]&&e[f]!==u.props[f]&&(c=!1)}),c&&a.push(t[TT(u.props)])}),a};function tc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const YM=$g(),QM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xs({defaultTheme:e,theme:t,themeId:r}){return HM(t)?e:t[r]||t}function XM(e){return e?(t,r)=>r[e]:null}function JM(e={}){const{themeId:t,defaultTheme:r=YM,rootShouldForwardProp:n=tc,slotShouldForwardProp:o=tc}=e,i=a=>Lg(de({},a,{theme:xs(de({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{HN(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:f,skipSx:d,overridesResolver:p=XM(QM(c))}=s,_=Zt(s,UM),b=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=d||!1;let R,v=tc;c==="Root"||c==="root"?v=n:c?v=o:qM(a)&&(v=void 0);const S=UN(a,de({shouldForwardProp:v,label:R},_)),w=(T,...E)=>{const P=E?E.map(j=>typeof j=="function"&&j.__emotion_real!==j?M=>j(de({},M,{theme:xs(de({},M,{defaultTheme:r,themeId:t}))})):j):[];let x=T;u&&p&&P.push(j=>{const M=xs(de({},j,{defaultTheme:r,themeId:t})),D=GM(u,M);if(D){const U={};return Object.entries(D).forEach(([H,ie])=>{U[H]=typeof ie=="function"?ie(de({},j,{theme:M})):ie}),p(j,U)}return null}),u&&!b&&P.push(j=>{const M=xs(de({},j,{defaultTheme:r,themeId:t}));return KM(j,VM(u,M),M,u)}),g||P.push(i);const k=P.length-E.length;if(Array.isArray(T)&&k>0){const j=new Array(k).fill("");x=[...T,...j],x.raw=[...T.raw,...j]}else typeof T=="function"&&T.__emotion_real!==T&&(x=j=>T(de({},j,{theme:xs(de({},j,{defaultTheme:r,themeId:t}))})));const I=S(x,...P);return a.muiName&&(I.muiName=a.muiName),I};return S.withConfig&&(w.withConfig=S.withConfig),w}}function ZM(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:sT(t.components[r].defaultProps,n)}function e3({props:e,name:t,defaultTheme:r,themeId:n}){let o=WM(r);return n&&(o=o[n]||o),ZM({theme:o,name:t,props:e})}function Dg(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function t3(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 wi(e){if(e.type)return e;if(e.charAt(0)==="#")return wi(t3(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ia(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(Ia(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function fd(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 r3(e){e=wi(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])),fd({type:s,values:u})}function g_(e){e=wi(e);let t=e.type==="hsl"||e.type==="hsla"?wi(r3(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 n3(e,t){const r=g_(e),n=g_(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qc(e,t){return e=wi(e),t=Dg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fd(e)}function Gm(e,t){if(e=wi(e),t=Dg(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 fd(e)}function Vm(e,t){if(e=wi(e),t=Dg(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 fd(e)}function o3(e,t){return de({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const i3={black:"#000",white:"#fff"},wl=i3,a3={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"},s3=a3,l3={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"},Wi=l3,u3={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"},Bi=u3,c3={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"},Cs=c3,f3={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"},Ui=f3,d3={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"},Hi=d3,h3={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"},qi=h3,p3=["mode","contrastThreshold","tonalOffset"],y_={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:wl.white,default:wl.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}},Jh={text:{primary:wl.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:wl.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 S_(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=Vm(e.main,o):t==="dark"&&(e.dark=Gm(e.main,i)))}function m3(e="light"){return e==="dark"?{main:Ui[200],light:Ui[50],dark:Ui[400]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function v3(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[500],light:Wi[300],dark:Wi[700]}}function g3(e="light"){return e==="dark"?{main:Bi[500],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[400],dark:Bi[800]}}function y3(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function S3(e="light"){return e==="dark"?{main:qi[400],light:qi[300],dark:qi[700]}:{main:qi[800],light:qi[500],dark:qi[900]}}function _3(e="light"){return e==="dark"?{main:Cs[400],light:Cs[300],dark:Cs[700]}:{main:"#ed6c02",light:Cs[500],dark:Cs[900]}}function b3(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Zt(e,p3),i=e.primary||m3(t),a=e.secondary||v3(t),s=e.error||g3(t),u=e.info||y3(t),c=e.success||S3(t),f=e.warning||_3(t);function d(g){return n3(g,Jh.text.primary)>=r?Jh.text.primary:y_.text.primary}const p=({color:g,name:R,mainShade:v=500,lightShade:S=300,darkShade:w=700})=>{if(g=de({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Ia(11,R?` (${R})`:"",v));if(typeof g.main!="string")throw new Error(Ia(12,R?` (${R})`:"",JSON.stringify(g.main)));return S_(g,"light",S,n),S_(g,"dark",w,n),g.contrastText||(g.contrastText=d(g.main)),g},_={dark:Jh,light:y_};return eo(de({common:de({},wl),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:s3,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},_[t]),o)}const w3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function x3(e){return Math.round(e*1e5)/1e5}const __={textTransform:"uppercase"},b_='"Roboto", "Helvetica", "Arial", sans-serif';function C3(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=b_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:f,pxToRem:d}=r,p=Zt(r,w3),_=o/14,b=d||(v=>`${v/c*_}rem`),g=(v,S,w,T,E)=>de({fontFamily:n,fontWeight:v,fontSize:b(S),lineHeight:w},n===b_?{letterSpacing:`${x3(T/S)}em`}:{},E,f),R={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,__),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,__),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return eo(de({htmlFontSize:c,pxToRem:b,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},R),p,{clone:!1})}const R3=.2,T3=.14,O3=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${R3})`,`${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,${O3})`].join(",")}const E3=["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)],P3=E3,k3=["duration","easing","delay"],I3={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)"},j3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function w_(e){return`${Math.round(e)}ms`}function z3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function A3(e){const t=de({},I3,e.easing),r=de({},j3,e.duration);return de({getAutoHeightDuration:z3,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return Zt(i,k3),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:w_(a)} ${s} ${typeof u=="string"?u:w_(u)}`).join(",")}},e,{easing:t,duration:r})}const N3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M3=N3,L3=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $3(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Zt(e,L3);if(e.vars)throw new Error(Ia(18));const s=b3(n),u=$g(e);let c=eo(u,{mixins:o3(u.breakpoints,r),palette:s,shadows:P3.slice(),typography:C3(s,i),transitions:A3(o),zIndex:de({},M3)});return c=eo(c,a),c=t.reduce((f,d)=>eo(f,d),c),c.unstable_sxConfig=de({},Mg,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Lg({sx:d,theme:this})},c}const D3=$3(),OT=D3,ET="$$material";function Za({props:e,name:t}){return e3({props:e,name:t,defaultTheme:OT,themeId:ET})}const F3=e=>tc(e)&&e!=="classes",W3=JM({themeId:ET,defaultTheme:OT,rootShouldForwardProp:F3}),$n=W3;function B3(e){return Qa("MuiSvgIcon",e)}Xa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const U3=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],H3=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Pt(t)}`,`fontSize${Pt(r)}`]};return Ll(o,B3,n)},q3=$n("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pt(r.color)}`],t[`fontSize${Pt(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,f,d,p,_,b;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:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),PT=A.forwardRef(function(t,r){const n=Za({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,_=Zt(n,U3),b=A.isValidElement(o)&&o.type==="svg",g=de({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:b}),R={};f||(R.viewBox=p);const v=H3(g);return m.jsxs(q3,de({as:s,className:pr(v.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},R,_,b&&o.props,{ownerState:g,children:[b?o.props.children:o,d?m.jsx("title",{children:d}):null]}))});PT.muiName="SvgIcon";const x_=PT;function es(e,t){function r(n,o){return m.jsx(x_,de({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=x_.muiName,A.memo(A.forwardRef(r))}const G3={configure:e=>{lT.configure(e)}},V3=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pt,createChainedFunction:EA,createSvgIcon:es,debounce:PA,deprecatedPropType:kA,isMuiElement:IA,ownerDocument:nT,ownerWindow:jA,requirePropFactory:zA,setRef:oT,unstable_ClassNameGenerator:G3,unstable_useEnhancedEffect:iT,unstable_useId:MA,unsupportedProp:LA,useControlled:$A,useEventCallback:zs,useForkRef:Wm,useIsFocusVisible:aT},Symbol.toStringTag,{value:"Module"})),K3=Ba(V3);var C_;function ct(){return C_||(C_=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=K3}(Gh)),Gh}var Y3=ut;Object.defineProperty(Og,"__esModule",{value:!0});var Fg=Og.default=void 0,Q3=Y3(ct()),X3=m,J3=(0,Q3.default)((0,X3.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");Fg=Og.default=J3;var Wg={},Z3=ut;Object.defineProperty(Wg,"__esModule",{value:!0});var Bg=Wg.default=void 0,e4=Z3(ct()),t4=m,r4=(0,e4.default)((0,t4.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");Bg=Wg.default=r4;var Ug={},n4=ut;Object.defineProperty(Ug,"__esModule",{value:!0});var Hg=Ug.default=void 0,o4=n4(ct()),i4=m,a4=(0,o4.default)((0,i4.jsx)("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"Sort");Hg=Ug.default=a4;const s4=({flags:e})=>{const[t,r]=ne.useState(!1),[n,o]=ne.useState([]),[i,a]=ne.useState(!0);A.useEffect(()=>{const d=s(e);o(d)},[e]);const s=d=>d===void 0?[]:d.filter(_=>_.value!==void 0&&_.value!==""&&_.value!==null).sort((_,b)=>_.flag.localeCompare(_.flag)),u=(d,p)=>{if(p==="default"){let _=[];return i?_=d.sort((b,g)=>b.default>g.default?1:-1):_=d.sort((b,g)=>b.default_.flag.localeCompare(b.flag)):d},c=()=>{const d=u(n,"default");o(d),a(!i),r(!0)},f=()=>t?i?m.jsx(Fg,{}):m.jsx(Bg,{}):m.jsx(Hg,{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(RA,{flag:d}))})]})},l4=({flags:e})=>{const[t,r]=A.useState([]);return A.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(s4,{flags:t})]})},u4=({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,"")})})},c4=({nodeDetails:e,onShowNodeValueDetails:t})=>e===void 0?null:m.jsx("div",{className:"flex flex-col",children:m.jsx(u4,{nodeInfo:e,onRowClicked:(r,n)=>{t(r,n)}})}),f4=({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))})})}),d4=({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))})})]}),Ei="#1ea7fd",Wl="red";const mn=({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})},R_={isConnectedToInternet:!0,isConnectedToNode:!0},kT=xg({name:"app",initialState:R_,reducers:{setIsConnectedToInternet:(e,t)=>{e.isConnectedToInternet=t.payload},setIsConnectedToNode:(e,t)=>{e.isConnectedToNode=t.payload},resetConectionState:()=>R_}}),{setIsConnectedToInternet:T_,setIsConnectedToNode:O_,resetConectionState:h4}=kT.actions,p4=e=>e.connection.isConnectedToInternet,m4=e=>e.connection.isConnectedToNode,v4=kT.reducer,rc={second:1e3,minute:6e4,hour:36e5},g4={peers:[],bootnodes:[],snapshotDownloadStatus:[],snapshotIndexStatus:[],syncStages:[],testSnpSyncMsgIdx:0},IT=xg({name:"network",initialState:g4,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,Ou(e.peers[o].peers[i].network,n.network,"capBytesIn"),Ou(e.peers[o].peers[i].network,n.network,"capBytesOut"),Ou(e.peers[o].peers[i].network,n.network,"typeBytesIn"),Ou(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)},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},resetNetworkStateToMockState:e=>{e.peers=[],e.bootnodes=[],e.snapshotDownloadStatus=[],e.snapshotIndexStatus=[],e.syncStages=[],e.testSnpSyncMsgIdx=0}}}),Ou=(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:y4,addOrUpdatePeer:S4,addOrUpdateBootnodes:_4,setSnapshotDownloadStatus:b4,updatePeersState:w4,setSnapshotIndexStatus:x4,setNodeSyncStages:C4,setTestSnpSyncMsgIdx:h7}=IT.actions,R4=e=>e.network.peers,T4=e=>e.network.snapshotDownloadStatus,O4=e=>e.network.snapshotIndexStatus,E4=e=>e.network.syncStages,qg=Xe([R4,jt],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.peers)}),r}),P4=()=>Xe([qg,(e,t)=>t],(e,t)=>{let r={};return e.forEach(n=>{n.id===t&&(r=n)}),r}),dd=Xe([qg,jt],(e,t)=>jT(t,"Sentry",e)),hd=Xe([qg,jt],(e,t)=>jT(t,"Sentinel",e)),jT=(e,t,r)=>{let n=[];return r.forEach(o=>{o.type===t&&n.push(o)}),n},k4=Xe([dd],e=>zT(e)),I4=Xe([hd],e=>zT(e)),zT=e=>{let t=[];return e.forEach(r=>{r.active&&t.push(r)}),t},j4=Xe([dd],e=>AT(e)),z4=Xe([hd],e=>AT(e)),AT=e=>{let t=[];return e.forEach(r=>{r.network.static&&t.push(r)}),t},A4=Xe([dd],e=>NT(e)),N4=Xe([hd],e=>NT(e)),NT=e=>{let t={activePeers:0,totalPeers:e.length,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0};return e.forEach(r=>{t.totalInBytes+=r.network.bytesIn,t.totalOutBytes+=r.network.bytesOut,r.active&&t.activePeers++,r.network.static&&t.staticPeers++}),t},pd=Xe([T4,jt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.downloadStatus)}),r}),MT=Xe([O4,jt],(e,t)=>{let r={};return e.forEach(n=>{n.nodeId===t&&(r=n.indexStatus)}),r}),LT=Xe([E4,jt],(e,t)=>{let r={stages:[],currentStage:0};return e.forEach(n=>{n.nodeId===t&&(r=n.stages)}),r}),M4=IT.reducer;var Gg="persist:",Vg="persist/FLUSH",md="persist/REHYDRATE",Kg="persist/PAUSE",Yg="persist/PERSIST",Qg="persist/PURGE",Xg="persist/REGISTER",L4=-1;function nc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nc=function(r){return typeof r}:nc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nc(e)}function E_(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 $4(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y4(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 Q4=5e3;function X4(e,t){var r=e.version!==void 0?e.version:L4;e.debug;var n=e.stateReconciler===void 0?F4:e.stateReconciler,o=e.getStoredState||U4,i=e.timeout!==void 0?e.timeout:Q4,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||{},_=p._persist,b=K4(p,["_persist"]),g=b;if(d.type===Yg){var R=!1,v=function(k,I){R||(d.rehydrate(e.key,k,I),R=!0)};if(i&&setTimeout(function(){!R&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,a||(a=W4(e)),_)return Bn({},t(g,d),{_persist:_});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 k=e.migrate||function(I,j){return Promise.resolve(I)};k(x,r).then(function(I){v(I)},function(I){v(void 0,I)})},function(x){v(void 0,x)}),Bn({},t(g,d),{_persist:{version:r,rehydrated:!1}})}else{if(d.type===Qg)return s=!0,d.result(q4(e)),Bn({},t(g,d),{_persist:_});if(d.type===Vg)return d.result(a&&a.flush()),Bn({},t(g,d),{_persist:_});if(d.type===Kg)u=!0;else if(d.type===md){if(s)return Bn({},g,{_persist:Bn({},_,{rehydrated:!0})});if(d.key===e.key){var S=t(g,d),w=d.payload,T=n!==!1&&w!==void 0?n(w,f,S,e):S,E=Bn({},T,{_persist:Bn({},_,{rehydrated:!0})});return c(E)}}}if(!_)return t(f,d);var P=t(g,d);return P===g?f:c(Bn({},P,{_persist:_}))}}function k_(e){return eL(e)||Z4(e)||J4()}function J4(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Z4(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function eL(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:$T,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Xg:return Km({},t,{registry:[].concat(k_(t.registry),[r.key])});case md:var n=t.registry.indexOf(r.key),o=k_(t.registry);return o.splice(n,1),Km({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function nL(e,t,r){var n=r||!1,o=wg(rL,$T,t&&t.enhancer?t.enhancer:void 0),i=function(c){o.dispatch({type:Xg,key:c})},a=function(c,f,d){var p={type:md,payload:f,err:d,key:c};e.dispatch(p),o.dispatch(p),n&&s.getState().bootstrapped&&(n(),n=!1)},s=Km({},o,{purge:function(){var c=[];return e.dispatch({type:Qg,result:function(d){c.push(d)}}),Promise.all(c)},flush:function(){var c=[];return e.dispatch({type:Vg,result:function(d){c.push(d)}}),Promise.all(c)},pause:function(){e.dispatch({type:Kg})},persist:function(){e.dispatch({type:Yg,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}var Jg={},Zg={};Zg.__esModule=!0;Zg.default=aL;function oc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oc=function(r){return typeof r}:oc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oc(e)}function Zh(){}var oL={getItem:Zh,setItem:Zh,removeItem:Zh};function iL(e){if((typeof self>"u"?"undefined":oc(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 aL(e){var t="".concat(e,"Storage");return iL(t)?self[t]:oL}Jg.__esModule=!0;Jg.default=uL;var sL=lL(Zg);function lL(e){return e&&e.__esModule?e:{default:e}}function uL(e){var t=(0,sL.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 DT=void 0,cL=fL(Jg);function fL(e){return e&&e.__esModule?e:{default:e}}var dL=(0,cL.default)("local");DT=dL;const hL={key:"root",blacklist:["connection"],storage:DT},pL=HR({app:xA,network:M4,connection:v4}),mL=X4(hL,pL),Qe=Lz({reducer:mL,middleware:e=>e({serializableCheck:{ignoredActions:[Vg,md,Kg,Yg,Qg,Xg]}})}),vL=nL(Qe),gL="sessions",yL="nodes",SL="versions",_L="flags",bL="cmdline",wL="logs",xL="sync-stages",FT="dbs",CL="tables",RL="reorgs",TL="peers",OL="peers",EL=()=>Qe.getState().app.activeSessionPin,ey=()=>{const e=EL();return`http://localhost:8080/api/${gL}/${e}`},vn=()=>{const e=ey(),t=Qe.getState().app.activeNodeId;return`${e}/${yL}/${t}`},PL=()=>`${vn()}/${SL}`,WT=()=>`${vn()}/${_L}`,BT=()=>`${vn()}/${bL}`,UT=()=>`${vn()}/${wL}`,HT=()=>`${vn()}/${xL}`,kL=()=>`${vn()}/${FT}`,IL=e=>`${vn()}/${FT}/${e}/${CL}`,qT=()=>`${vn()}/${RL}`,jL=()=>`${vn()}/${TL}`,zL=()=>`${vn()}/${OL}`,AL=()=>`${vn()}/snapshot-sync`,NL=()=>{{const e=tn(ey(),"GET");return en(e)}},ML=()=>{{const e=tn(PL(),"GET");return en(e)}},LL=()=>{{const e=tn(WT(),"GET");return en(e)}},$L=()=>{{const e=tn(BT(),"GET");return en(e)}},DL=()=>{{const e=tn(UT(),"GET");return en(e)}},FL=()=>{{const e=tn(HT(),"GET");return en(e)}},WL=()=>{{const e=tn(kL(),"GET");return en(e)}},BL=e=>{{const t=tn(IL(e),"GET");return en(t)}},UL=()=>{{const e=tn(qT(),"GET");return en(e)}},HL=()=>{{const e=tn(jL(),"GET");return en(e)}},qL=()=>{{const e=tn(zL(),"GET");return en(e)}},GL=()=>{{const e=tn(AL(),"GET");return en(e)}},en=e=>fetch(e).then(t=>(Qe.dispatch(O_(!0)),t.json())).catch(t=>{Qe.dispatch(O_(!1))});function tn(e,t,r){return new Request(e,{method:t,body:r})}var ty={},VL=ut;Object.defineProperty(ty,"__esModule",{value:!0});var ry=ty.default=void 0,KL=VL(ct()),YL=m,QL=(0,KL.default)((0,YL.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 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-2zm0 16H8V7h11v14z"}),"ContentCopy");ry=ty.default=QL;var ny={},XL=ut;Object.defineProperty(ny,"__esModule",{value:!0});var oy=ny.default=void 0,JL=XL(ct()),ZL=m,e5=(0,JL.default)((0,ZL.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");oy=ny.default=e5;const t5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},j_=t5;function r5(e){return Qa("MuiPaper",e)}Xa("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 n5=["className","component","elevation","square","variant"],o5=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ll(i,r5,o)},i5=$n("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 de({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"&&de({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qc("#fff",j_(t.elevation))}, ${Qc("#fff",j_(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),a5=A.forwardRef(function(t,r){const n=Za({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:u="elevation"}=n,c=Zt(n,n5),f=de({},n,{component:i,elevation:a,square:s,variant:u}),d=o5(f);return m.jsx(i5,de({as:i,ownerState:f,className:pr(d.root,o),ref:r},c))}),s5=a5;function l5(e){return Qa("MuiAlert",e)}const u5=Xa("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),z_=u5;function Xc(e,t){return Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Xc(e,t)}function c5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xc(e,t)}const A_=ne.createContext(null);function Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iy(e,t){var r=function(i){return t&&A.isValidElement(i)?t(i):i},n=Object.create(null);return e&&A.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function f5(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:_,children:m.jsx("span",{className:b})})}const y5=Xa("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ur=y5,S5=["center","classes","className"];let vd=e=>e,N_,M_,L_,$_;const Ym=550,_5=80,b5=Ig(N_||(N_=vd` 0% { transform: scale(0); opacity: 0.1; @@ -111,7 +111,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),b5=kg(M_||(M_=md` +`)),w5=Ig(M_||(M_=vd` 0% { opacity: 1; } @@ -119,7 +119,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),x5=kg(L_||(L_=md` +`)),x5=Ig(L_||(L_=vd` 0% { transform: scale(1); } @@ -131,7 +131,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),C5=$n("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),R5=$n(g5,{name:"MuiTouchRipple",slot:"Ripple"})($_||($_=md` +`)),C5=$n("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),R5=$n(g5,{name:"MuiTouchRipple",slot:"Ripple"})($_||($_=vd` opacity: 0; position: absolute; @@ -174,7 +174,7 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Ur.rippleVisible,w5,Km,({theme:e})=>e.transitions.easing.easeInOut,Ur.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ur.child,Ur.childLeaving,b5,Km,({theme:e})=>e.transitions.easing.easeInOut,Ur.childPulsate,x5,({theme:e})=>e.transitions.easing.easeInOut),T5=A.forwardRef(function(t,r){const n=Za({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=Zt(n,S5),[u,c]=A.useState([]),f=A.useRef(0),d=A.useRef(null);A.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=A.useRef(!1),_=A.useRef(0),w=A.useRef(null),g=A.useRef(null);A.useEffect(()=>()=>{_.current&&clearTimeout(_.current)},[]);const R=A.useCallback(T=>{const{pulsate:P,rippleX:E,rippleY:x,rippleSize:k,cb:I}=T;c(j=>[...j,m.jsx(R5,{classes:{ripple:pr(i.ripple,Ur.ripple),rippleVisible:pr(i.rippleVisible,Ur.rippleVisible),ripplePulsate:pr(i.ripplePulsate,Ur.ripplePulsate),child:pr(i.child,Ur.child),childLeaving:pr(i.childLeaving,Ur.childLeaving),childPulsate:pr(i.childPulsate,Ur.childPulsate)},timeout:Km,pulsate:P,rippleX:E,rippleY:x,rippleSize:k},f.current)]),f.current+=1,d.current=I},[i]),v=A.useCallback((T={},P={},E=()=>{})=>{const{pulsate:x=!1,center:k=o||P.pulsate,fakeElement:I=!1}=P;if((T==null?void 0:T.type)==="mousedown"&&p.current){p.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(p.current=!0);const j=I?null:g.current,M=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,U,H;if(k||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)D=Math.round(M.width/2),U=Math.round(M.height/2);else{const{clientX:ie,clientY:oe}=T.touches&&T.touches.length>0?T.touches[0]:T;D=Math.round(ie-M.left),U=Math.round(oe-M.top)}if(k)H=Math.sqrt((2*M.width**2+M.height**2)/3),H%2===0&&(H+=1);else{const ie=Math.max(Math.abs((j?j.clientWidth:0)-D),D)*2+2,oe=Math.max(Math.abs((j?j.clientHeight:0)-U),U)*2+2;H=Math.sqrt(ie**2+oe**2)}T!=null&&T.touches?w.current===null&&(w.current=()=>{R({pulsate:x,rippleX:D,rippleY:U,rippleSize:H,cb:E})},_.current=setTimeout(()=>{w.current&&(w.current(),w.current=null)},_5)):R({pulsate:x,rippleX:D,rippleY:U,rippleSize:H,cb:E})},[o,R]),S=A.useCallback(()=>{v({},{pulsate:!0})},[v]),b=A.useCallback((T,P)=>{if(clearTimeout(_.current),(T==null?void 0:T.type)==="touchend"&&w.current){w.current(),w.current=null,_.current=setTimeout(()=>{b(T,P)});return}w.current=null,c(E=>E.length>0?E.slice(1):E),d.current=P},[]);return A.useImperativeHandle(r,()=>({pulsate:S,start:v,stop:b}),[S,v,b]),m.jsx(C5,de({className:pr(Ur.root,i.root,a),ref:g},s,{children:m.jsx(v5,{component:null,exit:!0,children:u})}))}),O5=T5;function P5(e){return Qa("MuiButtonBase",e)}const E5=Xa("MuiButtonBase",["root","disabled","focusVisible"]),k5=E5,I5=["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"],j5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Ml({root:["root",t&&"disabled",r&&"focusVisible"]},P5,o);return r&&n&&(a.root+=` ${n}`),a},z5=$n("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"},[`&.${k5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),A5=A.forwardRef(function(t,r){const n=Za({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:_="a",onBlur:w,onClick:g,onContextMenu:R,onDragLeave:v,onFocus:S,onFocusVisible:b,onKeyDown:T,onKeyUp:P,onMouseDown:E,onMouseLeave:x,onMouseUp:k,onTouchEnd:I,onTouchMove:j,onTouchStart:M,tabIndex:D=0,TouchRippleProps:U,touchRippleRef:H,type:ie}=n,oe=Zt(n,I5),ge=A.useRef(null),Z=A.useRef(null),se=Fm(Z,H),{isFocusVisibleRef:ce,onFocus:we,onBlur:Te,ref:bt}=aT(),[Me,Se]=A.useState(!1);c&&Me&&Se(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),ge.current.focus()}}),[]);const[G,V]=A.useState(!1);A.useEffect(()=>{V(!0)},[]);const q=G&&!f&&!c;A.useEffect(()=>{Me&&p&&!f&&G&&Z.current.pulsate()},[f,p,Me,G]);function J(be,Ko,Yo=d){return zs(Fn=>(Ko&&Ko(Fn),!Yo&&Z.current&&Z.current[be](Fn),!0))}const W=J("start",E),fe=J("stop",R),ae=J("stop",v),te=J("stop",k),re=J("stop",be=>{Me&&be.preventDefault(),x&&x(be)}),K=J("start",M),X=J("stop",I),le=J("stop",j),pe=J("stop",be=>{Te(be),ce.current===!1&&Se(!1),w&&w(be)},!1),ve=zs(be=>{ge.current||(ge.current=be.currentTarget),we(be),ce.current===!0&&(Se(!0),b&&b(be)),S&&S(be)}),ye=()=>{const be=ge.current;return u&&u!=="button"&&!(be.tagName==="A"&&be.href)},_e=A.useRef(!1),Re=zs(be=>{p&&!_e.current&&Me&&Z.current&&be.key===" "&&(_e.current=!0,Z.current.stop(be,()=>{Z.current.start(be)})),be.target===be.currentTarget&&ye()&&be.key===" "&&be.preventDefault(),T&&T(be),be.target===be.currentTarget&&ye()&&be.key==="Enter"&&!c&&(be.preventDefault(),g&&g(be))}),Ie=zs(be=>{p&&be.key===" "&&Z.current&&Me&&!be.defaultPrevented&&(_e.current=!1,Z.current.stop(be,()=>{Z.current.pulsate(be)})),P&&P(be),g&&be.target===be.currentTarget&&ye()&&be.key===" "&&!be.defaultPrevented&&g(be)});let Le=u;Le==="button"&&(oe.href||oe.to)&&(Le=_);const xt={};Le==="button"?(xt.type=ie===void 0?"button":ie,xt.disabled=c):(!oe.href&&!oe.to&&(xt.role="button"),c&&(xt["aria-disabled"]=c));const hr=Fm(r,bt,ge),tr=de({},n,{centerRipple:i,component:u,disabled:c,disableRipple:f,disableTouchRipple:d,focusRipple:p,tabIndex:D,focusVisible:Me}),Bt=j5(tr);return m.jsxs(z5,de({as:Le,className:pr(Bt.root,s),ownerState:tr,onBlur:pe,onClick:g,onContextMenu:fe,onFocus:ve,onKeyDown:Re,onKeyUp:Ie,onMouseDown:W,onMouseLeave:re,onMouseUp:te,onDragLeave:ae,onTouchEnd:X,onTouchMove:le,onTouchStart:K,ref:hr,tabIndex:c?-1:D,type:ie},xt,oe,{children:[a,q?m.jsx(O5,de({ref:se,center:i},U)):null]}))}),N5=A5;function M5(e){return Qa("MuiIconButton",e)}const L5=Xa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),$5=L5,D5=["edge","children","className","color","disabled","disableFocusRipple","size"],F5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${Et(n)}`,o&&`edge${Et(o)}`,`size${Et(i)}`]};return Ml(a,M5,t)},W5=$n(N5,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Et(r.color)}`],r.edge&&t[`edge${Et(r.edge)}`],t[`size${Et(r.size)}`]]}})(({theme:e,ownerState:t})=>de({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})`:Yc(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 de({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&de({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":de({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Yc(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)},{[`&.${$5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),B5=A.forwardRef(function(t,r){const n=Za({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=Zt(n,D5),p=de({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:f}),_=F5(p);return m.jsx(W5,de({className:pr(_.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},d,{children:i}))}),U5=B5,H5=es(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"),q5=es(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),G5=es(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"),V5=es(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"),K5=es(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"),Y5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Q5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${Et(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ml(i,l5,o)},X5=$n(s5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Et(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?qm:Gm,n=e.palette.mode==="light"?Gm:qm,o=t.color||t.severity;return de({},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),[`& .${z_.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}`,[`& .${z_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&de({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)}))}),J5=$n("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Z5=$n("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),D_=$n("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),F_={success:m.jsx(H5,{fontSize:"inherit"}),warning:m.jsx(q5,{fontSize:"inherit"}),error:m.jsx(G5,{fontSize:"inherit"}),info:m.jsx(V5,{fontSize:"inherit"})},e$=A.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Za({props:t,name:"MuiAlert"}),{action:f,children:d,className:p,closeText:_="Close",color:w,components:g={},componentsProps:R={},icon:v,iconMapping:S=F_,onClose:b,role:T="alert",severity:P="success",slotProps:E={},slots:x={},variant:k="standard"}=c,I=Zt(c,Y5),j=de({},c,{color:w,severity:P,variant:k}),M=Q5(j),D=(n=(o=x.closeButton)!=null?o:g.CloseButton)!=null?n:U5,U=(i=(a=x.closeIcon)!=null?a:g.CloseIcon)!=null?i:K5,H=(s=E.closeButton)!=null?s:R.closeButton,ie=(u=E.closeIcon)!=null?u:R.closeIcon;return m.jsxs(X5,de({role:T,elevation:0,ownerState:j,className:pr(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(J5,{ownerState:j,className:M.icon,children:v||S[P]||F_[P]}):null,m.jsx(Z5,{ownerState:j,className:M.message,children:d}),f!=null?m.jsx(D_,{ownerState:j,className:M.action,children:f}):null,f==null&&b?m.jsx(D_,{ownerState:j,className:M.action,children:m.jsx(D,de({size:"small","aria-label":_,title:_,color:"inherit",onClick:b},H,{children:m.jsx(U,de({fontSize:"small"},ie))}))}):null]}))}),Ym=e$,HT=()=>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(Ym,{severity:"success",children:"Copied!"})})}),t$=({value:e,onClose:t})=>{const[r,n]=ne.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(oy,{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(ry,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(HT,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var Qm=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(Qm||{});const r$=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=A.useState("Command"),[s,u]=A.useState(!1),[c,f]=A.useState(null),d=A.useRef(null);async function p(v){return"clipboard"in navigator?await navigator.clipboard.writeText(v):document.execCommand("copy",!0,v)}const _=()=>{let v="";switch(i){case"Command":v=FT();break;case"Flags":v=DT();break;case"Node Info":v=ey();break;case"Stages":v=BT();break;case"Reorgs":v=UT();break}return v},w=()=>{const v=_();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(S=>{console.log(S)})},g=v=>{a(v),R()},R=()=>{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(ws,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(ws,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(ws,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(ws,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(ws,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(mn,{backgroundColor:Pi,label:s?"Copied":"Copy curl",onClick:()=>w(),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(bA,{cmdLine:e}),i==="Flags"&&m.jsx(a4,{flags:t}),i==="Node Info"&&m.jsx(l4,{nodeDetails:r,onShowNodeValueDetails:(v,S)=>{f({key:v,value:S})}}),i==="Stages"&&m.jsx(u4,{syncStages:n}),i==="Reorgs"&&m.jsx(c4,{reorg:o})]})]}),c&&m.jsx(t$,{value:c,onClose:()=>f(null)})]})},n$=()=>{const e=Ne(jt),t=Ne(vA),r=Ne(gA),n=Ne(hA),o=Ne(SA),i=Ne(_A);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(r$,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},o$=e=>({id:e.id,name:e.name,protocols:i$(e.protocols),enodes:s$(e.enodes)}),i$=e=>({eth:a$(e.eth)}),a$=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),s$=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},l$=["boolean","string","number"],u$=e=>{let t=[];for(let r in e)t.push(c$(r,e[r]));return t},c$=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:f$(t.value)}),f$=e=>{let t=typeof e;return l$.includes(t)||d$(e)||h$(e)?e:""};function d$(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function h$(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const p$=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),m$=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},v$=(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:g$(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),g$=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:y$(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Ou(e.network.capBytesIn),capBytesOut:Ou(e.network.capBytesOut),typeBytesIn:Ou(e.network.typeBytesIn),typeBytesOut:Ou(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),y$=(e,t)=>t.includes(e),Ou=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},S$=(e,t,r)=>{let n=[];for(let s in e.segmentsDownloading){let u=_$(s,r);n.push(w$(e.segmentsDownloading[s],u))}let o=(t==null?void 0:t.downloadFinished)||!1;if(!o){let s=!1;for(let u of n)if(u.downloadedBytes{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},w$=(e,t)=>({name:e.name,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseedsCount:e.webseedsCount,peersCount:e.peersCount,webseedsRate:e.webseedsRate,peersRate:e.peersRate,indexed:t}),b$=e=>{let t=[],r=0;for(let n in e.segments){let o=x$(e.segments[n]);t.push(o),r+=o.progress}return t.length>0&&(r=r/t.length),{totalTime:e.timeElapsed,progress:r,segments:t}},x$=e=>({name:e.segmentName,progress:e.percent,totalTime:0,alloc:e.alloc,sys:e.sys}),lr=()=>Qe.getState().app.activeNodeId,C$=()=>{let e=lr();for(let t of Qe.getState().network.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},R$=()=>{NL().then(e=>{let t=[];e.nodes!==null&&e.nodes.forEach(r=>{t.push(o$(r))}),Qe.dispatch(Vz(t))})},T$=()=>{ML().then(e=>{let t=p$(e);Qe.dispatch(Qz({nodeId:lr(),version:t}))})},O$=()=>{LL().then(e=>{let t=u$(e);Qe.dispatch(Xz({nodeId:lr(),flags:t}))})},P$=()=>{$L().then(e=>{Qe.dispatch(Jz({nodeId:lr(),args:e}))})},E$=()=>{FL().then(e=>{Qe.dispatch(eA({nodeId:lr(),syncStages:m$(e)}))})},qT=()=>{DL().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${WT()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),Qe.dispatch(Zz({nodeId:lr(),logFiles:t}))})},k$=()=>{WL().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),Qe.dispatch(rA({nodeId:lr(),dbs:t}))})},I$=e=>{BL(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),Qe.dispatch(nA({nodeId:lr(),path:e,tables:r}))})},j$=()=>{UL().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:lr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};Qe.dispatch(oA(r))})},W_=()=>{const e=lr(),t=Qe.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=Qe.getState().network.bootnodes[t].bootnodes),HL().then(n=>{n.forEach(o=>{let i=v$(o,r);Qe.dispatch(g4({peer:i,nodeId:lr()}))})})},z$=()=>{qL().then(e=>{Qe.dispatch(y4({nodeId:lr(),bootnodes:e}))})},B_=()=>{GL().then(e=>{let t=b$(e.snapshotIndexing),r=S$(e.snapshotDownload,C$(),t),n=e.syncStages.currentStage;n===0&&(n=1);let o=[];e.syncStages.stagesList.forEach(a=>{let s=!1;a==="Snapshots"&&(s=!0),o.push({name:a,subStage:s})});let i={stages:o,currentStage:n};Qe.dispatch(b4({nodeId:lr(),stages:i})),Qe.dispatch(w4({nodeId:lr(),indexStatus:t})),Qe.dispatch(S4({nodeId:lr(),downloadStatus:r}))})};var GT={exports:{}},Zh={exports:{}},U_;function A$(){return U_||(U_=1,function(e,t){(function(r,n){e.exports=n()})(oi,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:te(l)}n(i,o);function i(l){return c(l)?l:re(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:X(l)}function u(l){return!!(l&&l[_])}function c(l){return!!(l&&l[w])}function f(l){return!!(l&&l[g])}function d(l){return c(l)||f(l)}function p(l){return!!(l&&l[R])}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 _="@@__IMMUTABLE_ITERABLE__@@",w="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",R="@@__IMMUTABLE_ORDERED__@@",v="delete",S=5,b=1<>>0;if(""+y!==h||y===4294967295)return NaN;h=y}return h<0?D(l)+h:h}function H(){return!0}function ie(l,h,y){return(l===0||y!==void 0&&l<=-y)&&(h===void 0||y!==void 0&&h>=y)}function oe(l,h){return Z(l,h,0)}function ge(l,h){return Z(l,h,h)}function Z(l,h,y){return l===void 0?y:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var se=0,ce=1,we=2,Te=typeof Symbol=="function"&&Symbol.iterator,bt="@@iterator",Me=Te||bt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=se,Se.VALUES=ce,Se.ENTRIES=we,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[Me]=function(){return this};function G(l,h,y,C){var O=l===0?h:l===1?y:[h,y];return C?C.value=O:C={value:O,done:!1},C}function V(){return{value:void 0,done:!0}}function q(l){return!!fe(l)}function J(l){return l&&typeof l.next=="function"}function W(l){var h=fe(l);return h&&h.call(l)}function fe(l){var h=l&&(Te&&l[Te]||l[bt]);if(typeof h=="function")return h}function ae(l){return l&&typeof l.length=="number"}n(te,o);function te(l){return l==null?Le():u(l)?l.toSeq():tr(l)}te.of=function(){return te(arguments)},te.prototype.toSeq=function(){return this},te.prototype.toString=function(){return this.__toString("Seq {","}")},te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},te.prototype.__iterate=function(l,h){return be(this,l,h,!0)},te.prototype.__iterator=function(l,h){return Ko(this,l,h,!0)},n(re,te);function re(l){return l==null?Le().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():xt(l)}re.prototype.toKeyedSeq=function(){return this},n(K,te);function K(l){return l==null?Le():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():hr(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 be(this,l,h,!1)},K.prototype.__iterator=function(l,h){return Ko(this,l,h,!1)},n(X,te);function X(l){return(l==null?Le():u(l)?c(l)?l.entrySeq():l:hr(l)).toSetSeq()}X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},te.isSeq=Re,te.Keyed=re,te.Set=X,te.Indexed=K;var le="@@__IMMUTABLE_SEQ__@@";te.prototype[le]=!0,n(pe,K);function pe(l){this._array=l,this.size=l.length}pe.prototype.get=function(l,h){return this.has(l)?this._array[U(this,l)]:h},pe.prototype.__iterate=function(l,h){for(var y=this._array,C=y.length-1,O=0;O<=C;O++)if(l(y[h?C-O:O],O,this)===!1)return O+1;return O},pe.prototype.__iterator=function(l,h){var y=this._array,C=y.length-1,O=0;return new Se(function(){return O>C?V():G(l,O,y[h?C-O++:O++])})},n(ve,re);function ve(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ve.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ve.prototype.has=function(l){return this._object.hasOwnProperty(l)},ve.prototype.__iterate=function(l,h){for(var y=this._object,C=this._keys,O=C.length-1,z=0;z<=O;z++){var N=C[h?O-z:z];if(l(y[N],N,this)===!1)return z+1}return z},ve.prototype.__iterator=function(l,h){var y=this._object,C=this._keys,O=C.length-1,z=0;return new Se(function(){var N=C[h?O-z:z];return z++>O?V():G(l,N,y[N])})},ve.prototype[R]=!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 y=this._iterable,C=W(y),O=0;if(J(C))for(var z;!(z=C.next()).done&&l(z.value,O++,this)!==!1;);return O},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var y=this._iterable,C=W(y);if(!J(C))return new Se(V);var O=0;return new Se(function(){var z=C.next();return z.done?z:G(l,O++,z.value)})},n(_e,K);function _e(l){this._iterator=l,this._iteratorCache=[]}_e.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);for(var y=this._iterator,C=this._iteratorCache,O=0;O=C.length){var z=y.next();if(z.done)return z;C[O]=z.value}return G(l,O,C[O++])})};function Re(l){return!!(l&&l[le])}var Ie;function Le(){return Ie||(Ie=new pe([]))}function xt(l){var h=Array.isArray(l)?new pe(l).fromEntrySeq():J(l)?new _e(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ve(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function hr(l){var h=Bt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function tr(l){var h=Bt(l)||typeof l=="object"&&new ve(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Bt(l){return ae(l)?new pe(l):J(l)?new _e(l):q(l)?new ye(l):void 0}function be(l,h,y,C){var O=l._cache;if(O){for(var z=O.length-1,N=0;N<=z;N++){var L=O[y?z-N:N];if(h(L[1],C?L[0]:N,l)===!1)return N+1}return N}return l.__iterateUncached(h,y)}function Ko(l,h,y,C){var O=l._cache;if(O){var z=O.length-1,N=0;return new Se(function(){var L=O[y?z-N:N];return N++>z?V():G(h,C?L[0]:N-1,L[1])})}return l.__iteratorUncached(h,y)}function Yo(l,h){return h?Fn(h,l,"",{"":l}):Ql(l)}function Fn(l,h,y,C){return Array.isArray(h)?l.call(C,y,K(h).map(function(O,z){return Fn(l,O,z,h)})):T0(h)?l.call(C,y,re(h).map(function(O,z){return Fn(l,O,z,h)})):h}function Ql(l){return Array.isArray(l)?K(l).map(Ql).toList():T0(l)?re(l).map(Ql).toMap():l}function T0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function vt(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 Md(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 y=!d(l);if(p(l)){var C=l.entries();return h.every(function(F,B){var Q=C.next().value;return Q&&vt(Q[1],F)&&(y||vt(Q[0],B))})&&C.next().done}var O=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{O=!0;var z=l;l=h,h=z}var N=!0,L=h.__iterate(function(F,B){if(y?!l.has(F):O?!vt(F,l.get(B,P)):!vt(l.get(B,P),F))return N=!1,!1});return N&&l.size===L}n(Ut,K);function Ut(l,h){if(!(this instanceof Ut))return new Ut(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if(Ld)return Ld;Ld=this}}Ut.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ut.prototype.get=function(l,h){return this.has(l)?this._value:h},Ut.prototype.includes=function(l){return vt(this._value,l)},Ut.prototype.slice=function(l,h){var y=this.size;return ie(l,h,y)?this:new Ut(this._value,ge(h,y)-oe(l,y))},Ut.prototype.reverse=function(){return this},Ut.prototype.indexOf=function(l){return vt(this._value,l)?0:-1},Ut.prototype.lastIndexOf=function(l){return vt(this._value,l)?this.size:-1},Ut.prototype.__iterate=function(l,h){for(var y=0;y=0&&h=0&&yy?V():G(l,z++,N)})},zt.prototype.equals=function(l){return l instanceof zt?this._start===l._start&&this._end===l._end&&this._step===l._step:Md(this,l)};var $d;n(uo,o);function uo(){throw TypeError("Abstract")}n(is,uo);function is(){}n(Ii,uo);function Ii(){}n(Jl,uo);function Jl(){}uo.Keyed=is,uo.Indexed=Ii,uo.Set=Jl;var as=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(h,y){h=h|0,y=y|0;var C=h&65535,O=y&65535;return C*O+((h>>>16)*O+C*(y>>>16)<<16>>>0)|0};function Dd(l){return l>>>1&1073741824|l&3221225471}function Cr(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 y=l|0;for(y!==l&&(y^=l*4294967295);l>4294967295;)l/=4294967295,y^=l;return Dd(y)}if(h==="string")return l.length>fE?lE(l):Fd(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return uE(l);if(typeof l.toString=="function")return Fd(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function lE(l){var h=qd[l];return h===void 0&&(h=Fd(l),Hd===dE&&(Hd=0,qd={}),Hd++,qd[l]=h),h}function Fd(l){for(var h=0,y=0;y0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var Wd=typeof WeakMap=="function",Bd;Wd&&(Bd=new WeakMap);var Ud=0,Qo="__immutablehash__";typeof Symbol=="function"&&(Qo=Symbol(Qo));var fE=16,dE=255,Hd=0,qd={};function Rr(l){Xl(l!==1/0,"Cannot perform this action with an infinite size.")}n(Ee,is);function Ee(l){return l==null?nn():Gd(l)&&!p(l)?l:nn().withMutations(function(h){var y=i(l);Rr(y.size),y.forEach(function(C,O){return h.set(O,C)})})}Ee.of=function(){var l=r.call(arguments,0);return nn().withMutations(function(h){for(var y=0;y=l.length)throw new Error("Missing value for key: "+l[y]);h.set(l[y],l[y+1])}})},Ee.prototype.toString=function(){return this.__toString("Map {","}")},Ee.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Ee.prototype.set=function(l,h){return j0(this,l,h)},Ee.prototype.setIn=function(l,h){return this.updateIn(l,P,function(){return h})},Ee.prototype.remove=function(l){return j0(this,l,P)},Ee.prototype.deleteIn=function(l){return this.updateIn(l,function(){return P})},Ee.prototype.update=function(l,h,y){return arguments.length===1?l(this):this.updateIn([l],h,y)},Ee.prototype.updateIn=function(l,h,y){y||(y=h,h=void 0);var C=L0(this,oS(l),h,y);return C===P?void 0:C},Ee.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):nn()},Ee.prototype.merge=function(){return Zl(this,void 0,arguments)},Ee.prototype.mergeWith=function(l){var h=r.call(arguments,1);return Zl(this,l,h)},Ee.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,nn(),function(y){return typeof y.merge=="function"?y.merge.apply(y,h):h[h.length-1]})},Ee.prototype.mergeDeep=function(){return Zl(this,A0,arguments)},Ee.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return Zl(this,N0(l),h)},Ee.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,nn(),function(y){return typeof y.mergeDeep=="function"?y.mergeDeep.apply(y,h):h[h.length-1]})},Ee.prototype.sort=function(l){return dt($i(this,l))},Ee.prototype.sortBy=function(l,h){return dt($i(this,h,l))},Ee.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Ee.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Ee.prototype.asImmutable=function(){return this.__ensureOwner()},Ee.prototype.wasAltered=function(){return this.__altered},Ee.prototype.__iterator=function(l,h){return new Vd(this,l,h)},Ee.prototype.__iterate=function(l,h){var y=this,C=0;return this._root&&this._root.iterate(function(O){return C++,l(O[1],O[0],y)},h),C},Ee.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?Yd(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function Gd(l){return!!(l&&l[E0])}Ee.isMap=Gd;var E0="@@__IMMUTABLE_MAP__@@",Oe=Ee.prototype;Oe[E0]=!0,Oe[v]=Oe.remove,Oe.removeIn=Oe.deleteIn;function ss(l,h){this.ownerID=l,this.entries=h}ss.prototype.get=function(l,h,y,C){for(var O=this.entries,z=0,N=O.length;z=yE)return hE(l,F,C,O);var me=l&&l===this.ownerID,xe=me?F:M(F);return ue?L?B===Q-1?xe.pop():xe[B]=xe.pop():xe[B]=[C,O]:xe.push([C,O]),me?(this.entries=xe,this):new ss(l,xe)}};function ji(l,h,y){this.ownerID=l,this.bitmap=h,this.nodes=y}ji.prototype.get=function(l,h,y,C){h===void 0&&(h=Cr(y));var O=1<<((l===0?h:h>>>l)&T),z=this.bitmap;return z&O?this.nodes[$0(z&O-1)].get(l+S,h,y,C):C},ji.prototype.update=function(l,h,y,C,O,z,N){y===void 0&&(y=Cr(C));var L=(h===0?y:y>>>h)&T,F=1<=SE)return mE(l,me,B,L,Ce);if(Q&&!Ce&&me.length===2&&z0(me[ue^1]))return me[ue^1];if(Q&&Ce&&me.length===1&&z0(Ce))return Ce;var Ze=l&&l===this.ownerID,on=Q?Ce?B:B^F:B|F,wn=Q?Ce?D0(me,ue,Ce,Ze):gE(me,ue,Ze):vE(me,ue,Ce,Ze);return Ze?(this.bitmap=on,this.nodes=wn,this):new ji(l,on,wn)};function ls(l,h,y){this.ownerID=l,this.count=h,this.nodes=y}ls.prototype.get=function(l,h,y,C){h===void 0&&(h=Cr(y));var O=(l===0?h:h>>>l)&T,z=this.nodes[O];return z?z.get(l+S,h,y,C):C},ls.prototype.update=function(l,h,y,C,O,z,N){y===void 0&&(y=Cr(C));var L=(h===0?y:y>>>h)&T,F=O===P,B=this.nodes,Q=B[L];if(F&&!Q)return this;var ue=Qd(Q,l,h+S,y,C,O,z,N);if(ue===Q)return this;var me=this.count;if(!Q)me++;else if(!ue&&(me--,me<_E))return pE(l,B,me,L);var xe=l&&l===this.ownerID,Ce=D0(B,L,ue,xe);return xe?(this.count=me,this.nodes=Ce,this):new ls(l,me,Ce)};function zi(l,h,y){this.ownerID=l,this.keyHash=h,this.entries=y}zi.prototype.get=function(l,h,y,C){for(var O=this.entries,z=0,N=O.length;z>>y)&T,N=(y===0?C:C>>>y)&T,L,F=z===N?[Xd(l,h,y+S,C,O)]:(L=new Wn(h,C,O),z>>=1)N[L]=y&1?h[z++]:void 0;return N[C]=O,new ls(l,z+1,N)}function Zl(l,h,y){for(var C=[],O=0;O>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function D0(l,h,y,C){var O=C?l:M(l);return O[h]=y,O}function vE(l,h,y,C){var O=l.length+1;if(C&&h+1===O)return l[h]=y,l;for(var z=new Array(O),N=0,L=0;L0&&C=0&&l>>h&T;if(C>=this.array.length)return new co([],l);var O=C===0,z;if(h>0){var N=this.array[C];if(z=N&&N.removeBefore(l,h-S,y),z===N&&O)return this}if(O&&!z)return this;var L=Ai(this,l);if(!O)for(var F=0;F>>h&T;if(C>=this.array.length)return this;var O;if(h>0){var z=this.array[C];if(O=z&&z.removeAfter(l,h-S,y),O===z&&C===this.array.length-1)return this}var N=Ai(this,l);return N.array.splice(C+1),O&&(N.array[C]=O),N};var us={};function B0(l,h){var y=l._origin,C=l._capacity,O=fs(C),z=l._tail;return N(l._root,l._level,0);function N(B,Q,ue){return Q===0?L(B,ue):F(B,Q,ue)}function L(B,Q){var ue=Q===O?z&&z.array:B&&B.array,me=Q>y?0:y-Q,xe=C-Q;return xe>b&&(xe=b),function(){if(me===xe)return us;var Ce=h?--xe:me++;return ue&&ue[Ce]}}function F(B,Q,ue){var me,xe=B&&B.array,Ce=ue>y?0:y-ue>>Q,Ze=(C-ue>>Q)+1;return Ze>b&&(Ze=b),function(){do{if(me){var on=me();if(on!==us)return on;me=null}if(Ce===Ze)return us;var wn=h?--Ze:Ce++;me=N(xe&&xe[wn],Q-S,ue+(wn<=l.size||h<0)return l.withMutations(function(N){h<0?fo(N,h).set(0,y):fo(N,0,h+1).set(h,y)});h+=l._origin;var C=l._tail,O=l._root,z=k(x);return h>=fs(l._capacity)?C=Zd(C,l.__ownerID,0,h,y,z):O=Zd(O,l.__ownerID,l._level,h,y,z),z.value?l.__ownerID?(l._root=O,l._tail=C,l.__hash=void 0,l.__altered=!0,l):cs(l._origin,l._capacity,l._level,O,C):l}function Zd(l,h,y,C,O,z){var N=C>>>y&T,L=l&&N0){var B=l&&l.array[N],Q=Zd(B,h,y-S,C,O,z);return Q===B?l:(F=Ai(l,h),F.array[N]=Q,F)}return L&&l.array[N]===O?l:(I(z),F=Ai(l,h),O===void 0&&N===F.array.length-1?F.array.pop():F.array[N]=O,F)}function Ai(l,h){return h&&l&&h===l.ownerID?l:new co(l?l.array.slice():[],h)}function H0(l,h){if(h>=fs(l._capacity))return l._tail;if(h<1<0;)y=y.array[h>>>C&T],C-=S;return y}}function fo(l,h,y){h!==void 0&&(h=h|0),y!==void 0&&(y=y|0);var C=l.__ownerID||new j,O=l._origin,z=l._capacity,N=O+h,L=y===void 0?z:y<0?z+y:O+y;if(N===O&&L===z)return l;if(N>=L)return l.clear();for(var F=l._level,B=l._root,Q=0;N+Q<0;)B=new co(B&&B.array.length?[void 0,B]:[],C),F+=S,Q+=1<=1<ue?new co([],C):xe;if(xe&&me>ue&&NS;on-=S){var wn=ue>>>on&T;Ze=Ze.array[wn]=Ai(Ze.array[wn],C)}Ze.array[ue>>>S&T]=xe}if(L=me)N-=me,L-=me,F=S,B=null,Ce=Ce&&Ce.removeBefore(C,0,N);else if(N>O||me>>F&T;if(su!==me>>>F&T)break;su&&(Q+=(1<O&&(B=B.removeBefore(C,F,N-Q)),B&&meO&&(O=L.size),u(N)||(L=L.map(function(F){return Yo(F)})),C.push(L)}return O>l.size&&(l=l.setSize(O)),M0(l,h,C)}function fs(l){return l>>S<=b&&O.size>=C.size*2?(F=O.filter(function(B,Q){return B!==void 0&&z!==Q}),L=F.toKeyedSeq().map(function(B){return B[0]}).flip().toMap(),l.__ownerID&&(L.__ownerID=F.__ownerID=l.__ownerID)):(L=C.remove(h),F=z===O.size-1?O.pop():O.set(z,void 0))}else if(N){if(y===O.get(z)[1])return l;L=C,F=O.set(z,[h,y])}else L=C.set(h,O.size),F=O.set(O.size,[h,y]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=F,l.__hash=void 0,l):eh(L,F)}n(Br,re);function Br(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Br.prototype.get=function(l,h){return this._iter.get(l,h)},Br.prototype.has=function(l){return this._iter.has(l)},Br.prototype.valueSeq=function(){return this._iter.valueSeq()},Br.prototype.reverse=function(){var l=this,h=th(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Br.prototype.map=function(l,h){var y=this,C=Y0(this,l,h);return this._useKeys||(C.valueSeq=function(){return y._iter.toSeq().map(l,h)}),C},Br.prototype.__iterate=function(l,h){var y=this,C;return this._iter.__iterate(this._useKeys?function(O,z){return l(O,z,y)}:(C=h?tS(this):0,function(O){return l(O,h?--C:C++,y)}),h)},Br.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var y=this._iter.__iterator(ce,h),C=h?tS(this):0;return new Se(function(){var O=y.next();return O.done?O:G(l,h?--C:C++,O.value,O)})},Br.prototype[R]=!0,n(Ni,K);function Ni(l){this._iter=l,this.size=l.size}Ni.prototype.includes=function(l){return this._iter.includes(l)},Ni.prototype.__iterate=function(l,h){var y=this,C=0;return this._iter.__iterate(function(O){return l(O,C++,y)},h)},Ni.prototype.__iterator=function(l,h){var y=this._iter.__iterator(ce,h),C=0;return new Se(function(){var O=y.next();return O.done?O:G(l,C++,O.value,O)})},n(Mi,X);function Mi(l){this._iter=l,this.size=l.size}Mi.prototype.has=function(l){return this._iter.includes(l)},Mi.prototype.__iterate=function(l,h){var y=this;return this._iter.__iterate(function(C){return l(C,C,y)},h)},Mi.prototype.__iterator=function(l,h){var y=this._iter.__iterator(ce,h);return new Se(function(){var C=y.next();return C.done?C:G(l,C.value,C.value,C)})},n(Li,re);function Li(l){this._iter=l,this.size=l.size}Li.prototype.entrySeq=function(){return this._iter.toSeq()},Li.prototype.__iterate=function(l,h){var y=this;return this._iter.__iterate(function(C){if(C){eS(C);var O=u(C);return l(O?C.get(1):C[1],O?C.get(0):C[0],y)}},h)},Li.prototype.__iterator=function(l,h){var y=this._iter.__iterator(ce,h);return new Se(function(){for(;;){var C=y.next();if(C.done)return C;var O=C.value;if(O){eS(O);var z=u(O);return G(l,z?O.get(0):O[0],z?O.get(1):O[1],C)}}})},Ni.prototype.cacheResult=Br.prototype.cacheResult=Mi.prototype.cacheResult=Li.prototype.cacheResult=oh;function K0(l){var h=yn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var y=l.reverse.apply(this);return y.flip=function(){return l.reverse()},y},h.has=function(y){return l.includes(y)},h.includes=function(y){return l.has(y)},h.cacheResult=oh,h.__iterateUncached=function(y,C){var O=this;return l.__iterate(function(z,N){return y(N,z,O)!==!1},C)},h.__iteratorUncached=function(y,C){if(y===we){var O=l.__iterator(y,C);return new Se(function(){var z=O.next();if(!z.done){var N=z.value[0];z.value[0]=z.value[1],z.value[1]=N}return z})}return l.__iterator(y===ce?se:ce,C)},h}function Y0(l,h,y){var C=yn(l);return C.size=l.size,C.has=function(O){return l.has(O)},C.get=function(O,z){var N=l.get(O,P);return N===P?z:h.call(y,N,O,l)},C.__iterateUncached=function(O,z){var N=this;return l.__iterate(function(L,F,B){return O(h.call(y,L,F,B),F,N)!==!1},z)},C.__iteratorUncached=function(O,z){var N=l.__iterator(we,z);return new Se(function(){var L=N.next();if(L.done)return L;var F=L.value,B=F[0];return G(O,B,h.call(y,F[1],B,l),L)})},C}function th(l,h){var y=yn(l);return y._iter=l,y.size=l.size,y.reverse=function(){return l},l.flip&&(y.flip=function(){var C=K0(l);return C.reverse=function(){return l.flip()},C}),y.get=function(C,O){return l.get(h?C:-1-C,O)},y.has=function(C){return l.has(h?C:-1-C)},y.includes=function(C){return l.includes(C)},y.cacheResult=oh,y.__iterate=function(C,O){var z=this;return l.__iterate(function(N,L){return C(N,L,z)},!O)},y.__iterator=function(C,O){return l.__iterator(C,!O)},y}function Q0(l,h,y,C){var O=yn(l);return C&&(O.has=function(z){var N=l.get(z,P);return N!==P&&!!h.call(y,N,z,l)},O.get=function(z,N){var L=l.get(z,P);return L!==P&&h.call(y,L,z,l)?L:N}),O.__iterateUncached=function(z,N){var L=this,F=0;return l.__iterate(function(B,Q,ue){if(h.call(y,B,Q,ue))return F++,z(B,C?Q:F-1,L)},N),F},O.__iteratorUncached=function(z,N){var L=l.__iterator(we,N),F=0;return new Se(function(){for(;;){var B=L.next();if(B.done)return B;var Q=B.value,ue=Q[0],me=Q[1];if(h.call(y,me,ue,l))return G(z,C?ue:F++,me,B)}})},O}function bE(l,h,y){var C=Ee().asMutable();return l.__iterate(function(O,z){C.update(h.call(y,O,z,l),0,function(N){return N+1})}),C.asImmutable()}function xE(l,h,y){var C=c(l),O=(p(l)?dt():Ee()).asMutable();l.__iterate(function(N,L){O.update(h.call(y,N,L,l),function(F){return F=F||[],F.push(C?[L,N]:N),F})});var z=rS(l);return O.map(function(N){return qe(l,z(N))})}function rh(l,h,y,C){var O=l.size;if(h!==void 0&&(h=h|0),y!==void 0&&(y===1/0?y=O:y=y|0),ie(h,y,O))return l;var z=oe(h,O),N=ge(y,O);if(z!==z||N!==N)return rh(l.toSeq().cacheResult(),h,y,C);var L=N-z,F;L===L&&(F=L<0?0:L);var B=yn(l);return B.size=F===0?F:l.size&&F||void 0,!C&&Re(l)&&F>=0&&(B.get=function(Q,ue){return Q=U(this,Q),Q>=0&&QF)return V();var Ze=me.next();return C||Q===ce?Ze:Q===se?G(Q,Ce-1,void 0,Ze):G(Q,Ce-1,Ze.value[1],Ze)})},B}function CE(l,h,y){var C=yn(l);return C.__iterateUncached=function(O,z){var N=this;if(z)return this.cacheResult().__iterate(O,z);var L=0;return l.__iterate(function(F,B,Q){return h.call(y,F,B,Q)&&++L&&O(F,B,N)}),L},C.__iteratorUncached=function(O,z){var N=this;if(z)return this.cacheResult().__iterator(O,z);var L=l.__iterator(we,z),F=!0;return new Se(function(){if(!F)return V();var B=L.next();if(B.done)return B;var Q=B.value,ue=Q[0],me=Q[1];return h.call(y,me,ue,N)?O===we?B:G(O,ue,me,B):(F=!1,V())})},C}function X0(l,h,y,C){var O=yn(l);return O.__iterateUncached=function(z,N){var L=this;if(N)return this.cacheResult().__iterate(z,N);var F=!0,B=0;return l.__iterate(function(Q,ue,me){if(!(F&&(F=h.call(y,Q,ue,me))))return B++,z(Q,C?ue:B-1,L)}),B},O.__iteratorUncached=function(z,N){var L=this;if(N)return this.cacheResult().__iterator(z,N);var F=l.__iterator(we,N),B=!0,Q=0;return new Se(function(){var ue,me,xe;do{if(ue=F.next(),ue.done)return C||z===ce?ue:z===se?G(z,Q++,void 0,ue):G(z,Q++,ue.value[1],ue);var Ce=ue.value;me=Ce[0],xe=Ce[1],B&&(B=h.call(y,xe,me,L))}while(B);return z===we?ue:G(z,me,xe,ue)})},O}function RE(l,h){var y=c(l),C=[l].concat(h).map(function(N){return u(N)?y&&(N=i(N)):N=y?xt(N):hr(Array.isArray(N)?N:[N]),N}).filter(function(N){return N.size!==0});if(C.length===0)return l;if(C.length===1){var O=C[0];if(O===l||y&&c(O)||f(l)&&f(O))return O}var z=new pe(C);return y?z=z.toKeyedSeq():f(l)||(z=z.toSetSeq()),z=z.flatten(!0),z.size=C.reduce(function(N,L){if(N!==void 0){var F=L.size;if(F!==void 0)return N+F}},0),z}function J0(l,h,y){var C=yn(l);return C.__iterateUncached=function(O,z){var N=0,L=!1;function F(B,Q){var ue=this;B.__iterate(function(me,xe){return(!h||Q0}function nh(l,h,y){var C=yn(l);return C.size=new pe(y).map(function(O){return O.size}).min(),C.__iterate=function(O,z){for(var N=this.__iterator(ce,z),L,F=0;!(L=N.next()).done&&O(L.value,F++,this)!==!1;);return F},C.__iteratorUncached=function(O,z){var N=y.map(function(B){return B=o(B),W(z?B.reverse():B)}),L=0,F=!1;return new Se(function(){var B;return F||(B=N.map(function(Q){return Q.next()}),F=B.some(function(Q){return Q.done})),F?V():G(O,L++,h.apply(null,B.map(function(Q){return Q.value})))})},C}function qe(l,h){return Re(l)?h:l.constructor(h)}function eS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function tS(l){return Rr(l.size),D(l)}function rS(l){return c(l)?i:f(l)?a:s}function yn(l){return Object.create((c(l)?re:f(l)?K:X).prototype)}function oh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):te.prototype.cacheResult.call(this)}function nS(l,h){return l>h?1:l=0;y--)h={value:arguments[y],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):ds(l,h)},gt.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Rr(l.size);var h=this.size,y=this._head;return l.reverse().forEach(function(C){h++,y={value:C,next:y}}),this.__ownerID?(this.size=h,this._head=y,this.__hash=void 0,this.__altered=!0,this):ds(h,y)},gt.prototype.pop=function(){return this.slice(1)},gt.prototype.unshift=function(){return this.push.apply(this,arguments)},gt.prototype.unshiftAll=function(l){return this.pushAll(l)},gt.prototype.shift=function(){return this.pop.apply(this,arguments)},gt.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):uh()},gt.prototype.slice=function(l,h){if(ie(l,h,this.size))return this;var y=oe(l,this.size),C=ge(h,this.size);if(C!==this.size)return Ii.prototype.slice.call(this,l,h);for(var O=this.size-y,z=this._head;y--;)z=z.next;return this.__ownerID?(this.size=O,this._head=z,this.__hash=void 0,this.__altered=!0,this):ds(O,z)},gt.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?ds(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},gt.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var y=0,C=this._head;C&&l(C.value,y++,this)!==!1;)C=C.next;return y},gt.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var y=0,C=this._head;return new Se(function(){if(C){var O=C.value;return C=C.next,G(l,y++,O)}return V()})};function dS(l){return!!(l&&l[hS])}gt.isStack=dS;var hS="@@__IMMUTABLE_STACK__@@",Di=gt.prototype;Di[hS]=!0,Di.withMutations=Oe.withMutations,Di.asMutable=Oe.asMutable,Di.asImmutable=Oe.asImmutable,Di.wasAltered=Oe.wasAltered;function ds(l,h,y,C){var O=Object.create(Di);return O.size=l,O._head=h,O.__ownerID=y,O.__hash=C,O.__altered=!1,O}var pS;function uh(){return pS||(pS=ds(0))}function _n(l,h){var y=function(C){l.prototype[C]=h[C]};return Object.keys(h).forEach(y),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(y),l}o.Iterator=Se,_n(o,{toArray:function(){Rr(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,y){l[y]=h}),l},toIndexedSeq:function(){return new Ni(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 Br(this,!0)},toMap:function(){return Ee(this.toKeyedSeq())},toObject:function(){Rr(this.size);var l={};return this.__iterate(function(h,y){l[y]=h}),l},toOrderedMap:function(){return dt(this.toKeyedSeq())},toOrderedSet:function(){return Sn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Mi(this)},toSeq:function(){return f(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gt(c(this)?this.valueSeq():this)},toList:function(){return Ve(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 qe(this,RE(this,l))},includes:function(l){return this.some(function(h){return vt(h,l)})},entries:function(){return this.__iterator(we)},every:function(l,h){Rr(this.size);var y=!0;return this.__iterate(function(C,O,z){if(!l.call(h,C,O,z))return y=!1,!1}),y},filter:function(l,h){return qe(this,Q0(this,l,h,!0))},find:function(l,h,y){var C=this.findEntry(l,h);return C?C[1]:y},forEach:function(l,h){return Rr(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Rr(this.size),l=l!==void 0?""+l:",";var h="",y=!0;return this.__iterate(function(C){y?y=!1:h+=l,h+=C!=null?C.toString():""}),h},keys:function(){return this.__iterator(se)},map:function(l,h){return qe(this,Y0(this,l,h))},reduce:function(l,h,y){Rr(this.size);var C,O;return arguments.length<2?O=!0:C=h,this.__iterate(function(z,N,L){O?(O=!1,C=z):C=l.call(y,C,z,N,L)}),C},reduceRight:function(l,h,y){var C=this.toKeyedSeq().reverse();return C.reduce.apply(C,arguments)},reverse:function(){return qe(this,th(this,!0))},slice:function(l,h){return qe(this,rh(this,l,h,!0))},some:function(l,h){return!this.every(au(l),h)},sort:function(l){return qe(this,$i(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 D(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return bE(this,l,h)},equals:function(l){return Md(this,l)},entrySeq:function(){var l=this;if(l._cache)return new pe(l._cache);var h=l.toSeq().map(IE).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(au(l),h)},findEntry:function(l,h,y){var C=y;return this.__iterate(function(O,z,N){if(l.call(h,O,z,N))return C=[z,O],!1}),C},findKey:function(l,h){var y=this.findEntry(l,h);return y&&y[0]},findLast:function(l,h,y){return this.toKeyedSeq().reverse().find(l,h,y)},findLastEntry:function(l,h,y){return this.toKeyedSeq().reverse().findEntry(l,h,y)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(H)},flatMap:function(l,h){return qe(this,TE(this,l,h))},flatten:function(l){return qe(this,J0(this,l,!0))},fromEntrySeq:function(){return new Li(this)},get:function(l,h){return this.find(function(y,C){return vt(C,l)},void 0,h)},getIn:function(l,h){for(var y=this,C=oS(l),O;!(O=C.next()).done;){var z=O.value;if(y=y&&y.get?y.get(z,P):P,y===P)return h}return y},groupBy:function(l,h){return xE(this,l,h)},has:function(l){return this.get(l,P)!==P},hasIn:function(l){return this.getIn(l,P)!==P},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 vt(h,l)})},keySeq:function(){return this.toSeq().map(kE).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return ru(this,l)},maxBy:function(l,h){return ru(this,h,l)},min:function(l){return ru(this,l?mS(l):gS)},minBy:function(l,h){return ru(this,h?mS(h):gS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return qe(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return qe(this,X0(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(au(l),h)},sortBy:function(l,h){return qe(this,$i(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return qe(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return qe(this,CE(this,l,h))},takeUntil:function(l,h){return this.takeWhile(au(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=zE(this))}});var nr=o.prototype;nr[_]=!0,nr[Me]=nr.values,nr.__toJS=nr.toArray,nr.__toStringMapper=vS,nr.inspect=nr.toSource=function(){return this.toString()},nr.chain=nr.flatMap,nr.contains=nr.includes,_n(i,{flip:function(){return qe(this,K0(this))},mapEntries:function(l,h){var y=this,C=0;return qe(this,this.toSeq().map(function(O,z){return l.call(h,[z,O],C++,y)}).fromEntrySeq())},mapKeys:function(l,h){var y=this;return qe(this,this.toSeq().flip().map(function(C,O){return l.call(h,C,O,y)}).flip())}});var iu=i.prototype;iu[w]=!0,iu[Me]=nr.entries,iu.__toJS=nr.toObject,iu.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+vS(l)},_n(a,{toKeyedSeq:function(){return new Br(this,!1)},filter:function(l,h){return qe(this,Q0(this,l,h,!1))},findIndex:function(l,h){var y=this.findEntry(l,h);return y?y[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 qe(this,th(this,!1))},slice:function(l,h){return qe(this,rh(this,l,h,!1))},splice:function(l,h){var y=arguments.length;if(h=Math.max(h|0,0),y===0||y===2&&!h)return this;l=oe(l,l<0?this.count():this.size);var C=this.slice(0,l);return qe(this,y===1?C:C.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var y=this.findLastEntry(l,h);return y?y[0]:-1},first:function(){return this.get(0)},flatten:function(l){return qe(this,J0(this,l,!1))},get:function(l,h){return l=U(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(y,C){return C===l},void 0,h)},has:function(l){return l=U(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function zE(l){if(l.size===1/0)return 0;var h=p(l),y=c(l),C=h?1:0,O=l.__iterate(y?h?function(z,N){C=31*C+yS(Cr(z),Cr(N))|0}:function(z,N){C=C+yS(Cr(z),Cr(N))|0}:h?function(z){C=31*C+Cr(z)|0}:function(z){C=C+Cr(z)|0});return AE(O,C)}function AE(l,h){return h=as(h,3432918353),h=as(h<<15|h>>>-15,461845907),h=as(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=as(h^h>>>16,2246822507),h=as(h^h>>>13,3266489909),h=Dd(h^h>>>16),h}function yS(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var NE={Iterable:o,Seq:te,Collection:uo,Map:Ee,OrderedMap:dt,List:Ve,Stack:gt,Set:Je,OrderedSet:Sn,Record:Tr,Range:zt,Repeat:Ut,is:vt,fromJS:Yo};return NE})}(Zh)),Zh.exports}function N$(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 M$=Object.freeze(Object.defineProperty({__proto__:null,default:N$},Symbol.toStringTag,{value:"Module"})),L$=Ba(M$);var ep,H_;function VT(){if(H_)return ep;H_=1;var e=typeof oi=="object"&&oi&&oi.Object===Object&&oi;return ep=e,ep}var tp,q_;function $$(){if(q_)return tp;q_=1;var e=VT(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return tp=r,tp}var rp,G_;function vd(){if(G_)return rp;G_=1;var e=$$(),t=e.Symbol;return rp=t,rp}var np,V_;function D$(){if(V_)return np;V_=1;var e=vd(),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 np=i,np}var op,K_;function F$(){if(K_)return op;K_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return op=r,op}var ip,Y_;function gd(){if(Y_)return ip;Y_=1;var e=vd(),t=D$(),r=F$(),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 ip=a,ip}var ap,Q_;function Wl(){if(Q_)return ap;Q_=1;function e(t){return t!=null&&typeof t=="object"}return ap=e,ap}var sp,X_;function W$(){if(X_)return sp;X_=1;var e=gd(),t=Wl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return sp=n,sp}var lp,J_;function B$(){if(J_)return lp;J_=1;function e(t){return function(r){return t(r)}}return lp=e,lp}var As={exports:{}};As.exports;var Z_;function U$(){return Z_||(Z_=1,function(e,t){var r=VT(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(As,As.exports)),As.exports}var up,ew;function H$(){if(ew)return up;ew=1;var e=W$(),t=B$(),r=U$(),n=r&&r.isRegExp,o=n?t(n):e;return up=o,up}var cp,tw;function q$(){if(tw)return cp;tw=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 wp=r,wp}var bp,hw;function rD(){if(hw)return bp;hw=1;var e=tD();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return bp=t,bp}var xp,pw;function nD(){if(pw)return xp;pw=1;var e=H$(),t=Y$(),r=Q$(),n=rD();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,_=d.length;p<_;p+=2)c=d[p].length,u+=d[p-1].length,d[p]=s(d[p],p,u),u+=c;return d}return xp=function(a,s,u){return Array.isArray(a)||(a=[a]),n(a.map(function(c){return r(c)?o(c,s,u):c}))},xp}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mw(e,t){for(var r=0;re.transitions.easing.easeInOut,Ur.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ur.child,Ur.childLeaving,w5,Ym,({theme:e})=>e.transitions.easing.easeInOut,Ur.childPulsate,x5,({theme:e})=>e.transitions.easing.easeInOut),T5=A.forwardRef(function(t,r){const n=Za({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=Zt(n,S5),[u,c]=A.useState([]),f=A.useRef(0),d=A.useRef(null);A.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=A.useRef(!1),_=A.useRef(0),b=A.useRef(null),g=A.useRef(null);A.useEffect(()=>()=>{_.current&&clearTimeout(_.current)},[]);const R=A.useCallback(T=>{const{pulsate:E,rippleX:P,rippleY:x,rippleSize:k,cb:I}=T;c(j=>[...j,m.jsx(R5,{classes:{ripple:pr(i.ripple,Ur.ripple),rippleVisible:pr(i.rippleVisible,Ur.rippleVisible),ripplePulsate:pr(i.ripplePulsate,Ur.ripplePulsate),child:pr(i.child,Ur.child),childLeaving:pr(i.childLeaving,Ur.childLeaving),childPulsate:pr(i.childPulsate,Ur.childPulsate)},timeout:Ym,pulsate:E,rippleX:P,rippleY:x,rippleSize:k},f.current)]),f.current+=1,d.current=I},[i]),v=A.useCallback((T={},E={},P=()=>{})=>{const{pulsate:x=!1,center:k=o||E.pulsate,fakeElement:I=!1}=E;if((T==null?void 0:T.type)==="mousedown"&&p.current){p.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(p.current=!0);const j=I?null:g.current,M=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,U,H;if(k||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)D=Math.round(M.width/2),U=Math.round(M.height/2);else{const{clientX:ie,clientY:oe}=T.touches&&T.touches.length>0?T.touches[0]:T;D=Math.round(ie-M.left),U=Math.round(oe-M.top)}if(k)H=Math.sqrt((2*M.width**2+M.height**2)/3),H%2===0&&(H+=1);else{const ie=Math.max(Math.abs((j?j.clientWidth:0)-D),D)*2+2,oe=Math.max(Math.abs((j?j.clientHeight:0)-U),U)*2+2;H=Math.sqrt(ie**2+oe**2)}T!=null&&T.touches?b.current===null&&(b.current=()=>{R({pulsate:x,rippleX:D,rippleY:U,rippleSize:H,cb:P})},_.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},_5)):R({pulsate:x,rippleX:D,rippleY:U,rippleSize:H,cb:P})},[o,R]),S=A.useCallback(()=>{v({},{pulsate:!0})},[v]),w=A.useCallback((T,E)=>{if(clearTimeout(_.current),(T==null?void 0:T.type)==="touchend"&&b.current){b.current(),b.current=null,_.current=setTimeout(()=>{w(T,E)});return}b.current=null,c(P=>P.length>0?P.slice(1):P),d.current=E},[]);return A.useImperativeHandle(r,()=>({pulsate:S,start:v,stop:w}),[S,v,w]),m.jsx(C5,de({className:pr(Ur.root,i.root,a),ref:g},s,{children:m.jsx(v5,{component:null,exit:!0,children:u})}))}),O5=T5;function E5(e){return Qa("MuiButtonBase",e)}const P5=Xa("MuiButtonBase",["root","disabled","focusVisible"]),k5=P5,I5=["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"],j5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Ll({root:["root",t&&"disabled",r&&"focusVisible"]},E5,o);return r&&n&&(a.root+=` ${n}`),a},z5=$n("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"},[`&.${k5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),A5=A.forwardRef(function(t,r){const n=Za({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:_="a",onBlur:b,onClick:g,onContextMenu:R,onDragLeave:v,onFocus:S,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:P,onMouseLeave:x,onMouseUp:k,onTouchEnd:I,onTouchMove:j,onTouchStart:M,tabIndex:D=0,TouchRippleProps:U,touchRippleRef:H,type:ie}=n,oe=Zt(n,I5),ge=A.useRef(null),Z=A.useRef(null),se=Wm(Z,H),{isFocusVisibleRef:ce,onFocus:be,onBlur:Te,ref:wt}=aT(),[Me,Se]=A.useState(!1);c&&Me&&Se(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),ge.current.focus()}}),[]);const[G,V]=A.useState(!1);A.useEffect(()=>{V(!0)},[]);const q=G&&!f&&!c;A.useEffect(()=>{Me&&p&&!f&&G&&Z.current.pulsate()},[f,p,Me,G]);function J(we,Ko,Yo=d){return zs(Fn=>(Ko&&Ko(Fn),!Yo&&Z.current&&Z.current[we](Fn),!0))}const W=J("start",P),fe=J("stop",R),ae=J("stop",v),te=J("stop",k),re=J("stop",we=>{Me&&we.preventDefault(),x&&x(we)}),K=J("start",M),X=J("stop",I),le=J("stop",j),pe=J("stop",we=>{Te(we),ce.current===!1&&Se(!1),b&&b(we)},!1),ve=zs(we=>{ge.current||(ge.current=we.currentTarget),be(we),ce.current===!0&&(Se(!0),w&&w(we)),S&&S(we)}),ye=()=>{const we=ge.current;return u&&u!=="button"&&!(we.tagName==="A"&&we.href)},_e=A.useRef(!1),Re=zs(we=>{p&&!_e.current&&Me&&Z.current&&we.key===" "&&(_e.current=!0,Z.current.stop(we,()=>{Z.current.start(we)})),we.target===we.currentTarget&&ye()&&we.key===" "&&we.preventDefault(),T&&T(we),we.target===we.currentTarget&&ye()&&we.key==="Enter"&&!c&&(we.preventDefault(),g&&g(we))}),je=zs(we=>{p&&we.key===" "&&Z.current&&Me&&!we.defaultPrevented&&(_e.current=!1,Z.current.stop(we,()=>{Z.current.pulsate(we)})),E&&E(we),g&&we.target===we.currentTarget&&ye()&&we.key===" "&&!we.defaultPrevented&&g(we)});let Le=u;Le==="button"&&(oe.href||oe.to)&&(Le=_);const xt={};Le==="button"?(xt.type=ie===void 0?"button":ie,xt.disabled=c):(!oe.href&&!oe.to&&(xt.role="button"),c&&(xt["aria-disabled"]=c));const hr=Wm(r,wt,ge),tr=de({},n,{centerRipple:i,component:u,disabled:c,disableRipple:f,disableTouchRipple:d,focusRipple:p,tabIndex:D,focusVisible:Me}),Bt=j5(tr);return m.jsxs(z5,de({as:Le,className:pr(Bt.root,s),ownerState:tr,onBlur:pe,onClick:g,onContextMenu:fe,onFocus:ve,onKeyDown:Re,onKeyUp:je,onMouseDown:W,onMouseLeave:re,onMouseUp:te,onDragLeave:ae,onTouchEnd:X,onTouchMove:le,onTouchStart:K,ref:hr,tabIndex:c?-1:D,type:ie},xt,oe,{children:[a,q?m.jsx(O5,de({ref:se,center:i},U)):null]}))}),N5=A5;function M5(e){return Qa("MuiIconButton",e)}const L5=Xa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),$5=L5,D5=["edge","children","className","color","disabled","disableFocusRipple","size"],F5=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${Pt(n)}`,o&&`edge${Pt(o)}`,`size${Pt(i)}`]};return Ll(a,M5,t)},W5=$n(N5,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Pt(r.color)}`],r.edge&&t[`edge${Pt(r.edge)}`],t[`size${Pt(r.size)}`]]}})(({theme:e,ownerState:t})=>de({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})`:Qc(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 de({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&de({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":de({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qc(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)},{[`&.${$5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),B5=A.forwardRef(function(t,r){const n=Za({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=Zt(n,D5),p=de({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:f}),_=F5(p);return m.jsx(W5,de({className:pr(_.root,a),centerRipple:!0,focusRipple:!c,disabled:u,ref:r,ownerState:p},d,{children:i}))}),U5=B5,H5=es(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"),q5=es(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),G5=es(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"),V5=es(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"),K5=es(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"),Y5=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Q5=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${Pt(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ll(i,l5,o)},X5=$n(s5,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Pt(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Gm:Vm,n=e.palette.mode==="light"?Vm:Gm,o=t.color||t.severity;return de({},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),[`& .${z_.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}`,[`& .${z_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&de({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)}))}),J5=$n("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Z5=$n("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),D_=$n("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),F_={success:m.jsx(H5,{fontSize:"inherit"}),warning:m.jsx(q5,{fontSize:"inherit"}),error:m.jsx(G5,{fontSize:"inherit"}),info:m.jsx(V5,{fontSize:"inherit"})},e$=A.forwardRef(function(t,r){var n,o,i,a,s,u;const c=Za({props:t,name:"MuiAlert"}),{action:f,children:d,className:p,closeText:_="Close",color:b,components:g={},componentsProps:R={},icon:v,iconMapping:S=F_,onClose:w,role:T="alert",severity:E="success",slotProps:P={},slots:x={},variant:k="standard"}=c,I=Zt(c,Y5),j=de({},c,{color:b,severity:E,variant:k}),M=Q5(j),D=(n=(o=x.closeButton)!=null?o:g.CloseButton)!=null?n:U5,U=(i=(a=x.closeIcon)!=null?a:g.CloseIcon)!=null?i:K5,H=(s=P.closeButton)!=null?s:R.closeButton,ie=(u=P.closeIcon)!=null?u:R.closeIcon;return m.jsxs(X5,de({role:T,elevation:0,ownerState:j,className:pr(M.root,p),ref:r},I,{children:[v!==!1?m.jsx(J5,{ownerState:j,className:M.icon,children:v||S[E]||F_[E]}):null,m.jsx(Z5,{ownerState:j,className:M.message,children:d}),f!=null?m.jsx(D_,{ownerState:j,className:M.action,children:f}):null,f==null&&w?m.jsx(D_,{ownerState:j,className:M.action,children:m.jsx(D,de({size:"small","aria-label":_,title:_,color:"inherit",onClick:w},H,{children:m.jsx(U,de({fontSize:"small"},ie))}))}):null]}))}),Qm=e$,GT=()=>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(Qm,{severity:"success",children:"Copied!"})})}),t$=({value:e,onClose:t})=>{const[r,n]=ne.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(oy,{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(ry,{onClick:()=>o(),className:"cursor-pointer"})})]})}),r&&m.jsx(GT,{})]}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var Xm=(e=>(e.Command="Command",e.Flags="Flags",e.NodeInfo="Node Info",e.SyncStages="Stages",e.Reorgs="Reorgs",e))(Xm||{});const r$=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n,reorgs:o})=>{const[i,a]=A.useState("Command"),[s,u]=A.useState(!1),[c,f]=A.useState(null),d=A.useRef(null);async function p(v){return"clipboard"in navigator?await navigator.clipboard.writeText(v):document.execCommand("copy",!0,v)}const _=()=>{let v="";switch(i){case"Command":v=BT();break;case"Flags":v=WT();break;case"Node Info":v=ey();break;case"Stages":v=HT();break;case"Reorgs":v=qT();break}return v},b=()=>{const v=_();p(v).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(S=>{console.log(S)})},g=v=>{a(v),R()},R=()=>{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(bs,{tab:"Command",selectedTab:i,testId:"command_button",onButtonClicked:v=>{g(v)}}),m.jsx(bs,{tab:"Flags",selectedTab:i,testId:"flags_button",onButtonClicked:v=>{g(v)}}),m.jsx(bs,{tab:"Node Info",selectedTab:i,testId:"node_info_button",onButtonClicked:v=>{g(v)}}),m.jsx(bs,{tab:"Stages",selectedTab:i,testId:"sync_stages_button",onButtonClicked:v=>{g(v)}}),m.jsx(bs,{tab:"Reorgs",selectedTab:i,testId:"reorgs_button",onButtonClicked:v=>{g(v)}}),m.jsx("div",{className:"w-5"}),m.jsx(mn,{backgroundColor:Ei,label:s?"Copied":"Copy curl",onClick:()=>b(),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(CA,{cmdLine:e}),i==="Flags"&&m.jsx(l4,{flags:t}),i==="Node Info"&&m.jsx(c4,{nodeDetails:r,onShowNodeValueDetails:(v,S)=>{f({key:v,value:S})}}),i==="Stages"&&m.jsx(f4,{syncStages:n}),i==="Reorgs"&&m.jsx(d4,{reorg:o})]})]}),c&&m.jsx(t$,{value:c,onClose:()=>f(null)})]})},n$=()=>{const e=ke(jt),t=ke(yA),r=ke(SA),n=ke(mA),o=ke(bA),i=ke(wA);return m.jsx("div",{className:"mt-4",children:e!==""&&m.jsx(r$,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o,reorgs:i})})},o$=e=>({id:e.id,name:e.name,protocols:i$(e.protocols),enodes:s$(e.enodes)}),i$=e=>({eth:a$(e.eth)}),a$=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:e.config}),s$=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},l$=["boolean","string","number"],u$=e=>{let t=[];for(let r in e)t.push(c$(r,e[r]));return t},c$=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:f$(t.value)}),f$=e=>{let t=typeof e;return l$.includes(t)||d$(e)||h$(e)?e:""};function d$(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function h$(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const p$=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),m$=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},v$=(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:g$(e,t),protocols:e.protocols,type:e.type,lastUpdateTime:0,active:!0}),g$=(e,t)=>({localAddress:e.network.localAddress,remoteAddress:e.network.remoteAddress,inbound:e.network.inbound,trusted:e.network.trusted,static:e.network.static,bootnode:y$(e.enr,t),bytesIn:e.network.bytesIn,bytesOut:e.network.bytesOut,capBytesIn:Eu(e.network.capBytesIn),capBytesOut:Eu(e.network.capBytesOut),typeBytesIn:Eu(e.network.typeBytesIn),typeBytesOut:Eu(e.network.typeBytesOut),inRate:0,outRate:0,sCountedBytesIn:0,sCountedBytesOut:0}),y$=(e,t)=>t.includes(e),Eu=e=>{let t=new Map;for(let n in e)t.set(n,e[n]);return Object.fromEntries(t)},S$=(e,t,r)=>{let n=[];for(let f in e.segmentsDownloading){let d=_$(f,r);f.includes("beaconblocks")&&(d=100),n.push(b$(e.segmentsDownloading[f],d))}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}},_$=(e,t)=>{let r=t.segments.find(n=>n.name===e);return r?r.progress:0},b$=(e,t)=>({name:e.name,totalBytes:e.totalBytes,downloadedBytes:e.downloadedBytes,webseedsCount:e.webseedsCount,peersCount:e.peersCount,webseedsRate:e.webseedsRate,peersRate:e.peersRate,indexed:t}),w$=(e,t)=>{let r=[],n=0;if(e.segments!==null)for(let s in e.segments){let u=x$(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}},x$=e=>({name:e.segmentName,progress:e.percent}),lr=()=>Qe.getState().app.activeNodeId,C$=()=>{let e=lr();for(let t of Qe.getState().network.snapshotDownloadStatus)if(t.nodeId===e)return t.downloadStatus},R$=()=>{NL().then(e=>{let t=[];(e==null?void 0:e.nodes)!==null&&e.nodes.forEach(r=>{t.push(o$(r))}),Qe.dispatch(Yz(t))})},T$=()=>{ML().then(e=>{let t=p$(e);Qe.dispatch(Jz({nodeId:lr(),version:t}))})},O$=()=>{LL().then(e=>{let t=u$(e);Qe.dispatch(Zz({nodeId:lr(),flags:t}))})},E$=()=>{$L().then(e=>{Qe.dispatch(eA({nodeId:lr(),args:e}))})},P$=()=>{FL().then(e=>{Qe.dispatch(rA({nodeId:lr(),syncStages:m$(e)}))})},VT=()=>{DL().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${UT()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),Qe.dispatch(tA({nodeId:lr(),logFiles:t}))})},k$=()=>{WL().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),Qe.dispatch(oA({nodeId:lr(),dbs:t}))})},I$=e=>{BL(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),Qe.dispatch(iA({nodeId:lr(),path:e,tables:r}))})},j$=()=>{UL().then(e=>{let t=[];e.WrongBlocks!==null&&e.WrongBlocks.forEach(n=>{t.push(n)});let r={nodeId:lr(),totalBlocks:e.TotalScanned,wrongBlocks:t,timeTook:e.TimeTook};Qe.dispatch(aA(r))})},W_=()=>{const e=lr(),t=Qe.getState().network.bootnodes.findIndex(n=>n.nodeId===e);let r=[];t!==-1&&(r=Qe.getState().network.bootnodes[t].bootnodes),HL().then(n=>{n.forEach(o=>{let i=v$(o,r);Qe.dispatch(S4({peer:i,nodeId:lr()}))})})},z$=()=>{qL().then(e=>{Qe.dispatch(_4({nodeId:lr(),bootnodes:e}))})},B_=()=>{GL().then(e=>{if(e){let t=C$(),r=0;t&&t.segments.forEach(s=>{s.name.includes("beaconblocks")||r++});let n=w$(e.snapshotIndexing,r),o=S$(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};Qe.dispatch(C4({nodeId:lr(),stages:s}))}Qe.dispatch(x4({nodeId:lr(),indexStatus:n})),Qe.dispatch(b4({nodeId:lr(),downloadStatus:o}))}})};var KT={exports:{}},ep={exports:{}},U_;function A$(){return U_||(U_=1,function(e,t){(function(r,n){e.exports=n()})(oi,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:te(l)}n(i,o);function i(l){return c(l)?l:re(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:X(l)}function u(l){return!!(l&&l[_])}function c(l){return!!(l&&l[b])}function f(l){return!!(l&&l[g])}function d(l){return c(l)||f(l)}function p(l){return!!(l&&l[R])}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 _="@@__IMMUTABLE_ITERABLE__@@",b="@@__IMMUTABLE_KEYED__@@",g="@@__IMMUTABLE_INDEXED__@@",R="@@__IMMUTABLE_ORDERED__@@",v="delete",S=5,w=1<>>0;if(""+y!==h||y===4294967295)return NaN;h=y}return h<0?D(l)+h:h}function H(){return!0}function ie(l,h,y){return(l===0||y!==void 0&&l<=-y)&&(h===void 0||y!==void 0&&h>=y)}function oe(l,h){return Z(l,h,0)}function ge(l,h){return Z(l,h,h)}function Z(l,h,y){return l===void 0?y:l<0?Math.max(0,h+l):h===void 0?l:Math.min(h,l)}var se=0,ce=1,be=2,Te=typeof Symbol=="function"&&Symbol.iterator,wt="@@iterator",Me=Te||wt;function Se(l){this.next=l}Se.prototype.toString=function(){return"[Iterator]"},Se.KEYS=se,Se.VALUES=ce,Se.ENTRIES=be,Se.prototype.inspect=Se.prototype.toSource=function(){return this.toString()},Se.prototype[Me]=function(){return this};function G(l,h,y,C){var O=l===0?h:l===1?y:[h,y];return C?C.value=O:C={value:O,done:!1},C}function V(){return{value:void 0,done:!0}}function q(l){return!!fe(l)}function J(l){return l&&typeof l.next=="function"}function W(l){var h=fe(l);return h&&h.call(l)}function fe(l){var h=l&&(Te&&l[Te]||l[wt]);if(typeof h=="function")return h}function ae(l){return l&&typeof l.length=="number"}n(te,o);function te(l){return l==null?Le():u(l)?l.toSeq():tr(l)}te.of=function(){return te(arguments)},te.prototype.toSeq=function(){return this},te.prototype.toString=function(){return this.__toString("Seq {","}")},te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},te.prototype.__iterate=function(l,h){return we(this,l,h,!0)},te.prototype.__iterator=function(l,h){return Ko(this,l,h,!0)},n(re,te);function re(l){return l==null?Le().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():xt(l)}re.prototype.toKeyedSeq=function(){return this},n(K,te);function K(l){return l==null?Le():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():hr(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 we(this,l,h,!1)},K.prototype.__iterator=function(l,h){return Ko(this,l,h,!1)},n(X,te);function X(l){return(l==null?Le():u(l)?c(l)?l.entrySeq():l:hr(l)).toSetSeq()}X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},te.isSeq=Re,te.Keyed=re,te.Set=X,te.Indexed=K;var le="@@__IMMUTABLE_SEQ__@@";te.prototype[le]=!0,n(pe,K);function pe(l){this._array=l,this.size=l.length}pe.prototype.get=function(l,h){return this.has(l)?this._array[U(this,l)]:h},pe.prototype.__iterate=function(l,h){for(var y=this._array,C=y.length-1,O=0;O<=C;O++)if(l(y[h?C-O:O],O,this)===!1)return O+1;return O},pe.prototype.__iterator=function(l,h){var y=this._array,C=y.length-1,O=0;return new Se(function(){return O>C?V():G(l,O,y[h?C-O++:O++])})},n(ve,re);function ve(l){var h=Object.keys(l);this._object=l,this._keys=h,this.size=h.length}ve.prototype.get=function(l,h){return h!==void 0&&!this.has(l)?h:this._object[l]},ve.prototype.has=function(l){return this._object.hasOwnProperty(l)},ve.prototype.__iterate=function(l,h){for(var y=this._object,C=this._keys,O=C.length-1,z=0;z<=O;z++){var N=C[h?O-z:z];if(l(y[N],N,this)===!1)return z+1}return z},ve.prototype.__iterator=function(l,h){var y=this._object,C=this._keys,O=C.length-1,z=0;return new Se(function(){var N=C[h?O-z:z];return z++>O?V():G(l,N,y[N])})},ve.prototype[R]=!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 y=this._iterable,C=W(y),O=0;if(J(C))for(var z;!(z=C.next()).done&&l(z.value,O++,this)!==!1;);return O},ye.prototype.__iteratorUncached=function(l,h){if(h)return this.cacheResult().__iterator(l,h);var y=this._iterable,C=W(y);if(!J(C))return new Se(V);var O=0;return new Se(function(){var z=C.next();return z.done?z:G(l,O++,z.value)})},n(_e,K);function _e(l){this._iterator=l,this._iteratorCache=[]}_e.prototype.__iterateUncached=function(l,h){if(h)return this.cacheResult().__iterate(l,h);for(var y=this._iterator,C=this._iteratorCache,O=0;O=C.length){var z=y.next();if(z.done)return z;C[O]=z.value}return G(l,O,C[O++])})};function Re(l){return!!(l&&l[le])}var je;function Le(){return je||(je=new pe([]))}function xt(l){var h=Array.isArray(l)?new pe(l).fromEntrySeq():J(l)?new _e(l).fromEntrySeq():q(l)?new ye(l).fromEntrySeq():typeof l=="object"?new ve(l):void 0;if(!h)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return h}function hr(l){var h=Bt(l);if(!h)throw new TypeError("Expected Array or iterable object of values: "+l);return h}function tr(l){var h=Bt(l)||typeof l=="object"&&new ve(l);if(!h)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return h}function Bt(l){return ae(l)?new pe(l):J(l)?new _e(l):q(l)?new ye(l):void 0}function we(l,h,y,C){var O=l._cache;if(O){for(var z=O.length-1,N=0;N<=z;N++){var L=O[y?z-N:N];if(h(L[1],C?L[0]:N,l)===!1)return N+1}return N}return l.__iterateUncached(h,y)}function Ko(l,h,y,C){var O=l._cache;if(O){var z=O.length-1,N=0;return new Se(function(){var L=O[y?z-N:N];return N++>z?V():G(h,C?L[0]:N-1,L[1])})}return l.__iteratorUncached(h,y)}function Yo(l,h){return h?Fn(h,l,"",{"":l}):Xl(l)}function Fn(l,h,y,C){return Array.isArray(h)?l.call(C,y,K(h).map(function(O,z){return Fn(l,O,z,h)})):T0(h)?l.call(C,y,re(h).map(function(O,z){return Fn(l,O,z,h)})):h}function Xl(l){return Array.isArray(l)?K(l).map(Xl).toList():T0(l)?re(l).map(Xl).toMap():l}function T0(l){return l&&(l.constructor===Object||l.constructor===void 0)}function vt(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 Ld(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 y=!d(l);if(p(l)){var C=l.entries();return h.every(function(F,B){var Q=C.next().value;return Q&&vt(Q[1],F)&&(y||vt(Q[0],B))})&&C.next().done}var O=!1;if(l.size===void 0)if(h.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{O=!0;var z=l;l=h,h=z}var N=!0,L=h.__iterate(function(F,B){if(y?!l.has(F):O?!vt(F,l.get(B,E)):!vt(l.get(B,E),F))return N=!1,!1});return N&&l.size===L}n(Ut,K);function Ut(l,h){if(!(this instanceof Ut))return new Ut(l,h);if(this._value=l,this.size=h===void 0?1/0:Math.max(0,h),this.size===0){if($d)return $d;$d=this}}Ut.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ut.prototype.get=function(l,h){return this.has(l)?this._value:h},Ut.prototype.includes=function(l){return vt(this._value,l)},Ut.prototype.slice=function(l,h){var y=this.size;return ie(l,h,y)?this:new Ut(this._value,ge(h,y)-oe(l,y))},Ut.prototype.reverse=function(){return this},Ut.prototype.indexOf=function(l){return vt(this._value,l)?0:-1},Ut.prototype.lastIndexOf=function(l){return vt(this._value,l)?this.size:-1},Ut.prototype.__iterate=function(l,h){for(var y=0;y=0&&h=0&&yy?V():G(l,z++,N)})},zt.prototype.equals=function(l){return l instanceof zt?this._start===l._start&&this._end===l._end&&this._step===l._step:Ld(this,l)};var Dd;n(uo,o);function uo(){throw TypeError("Abstract")}n(is,uo);function is(){}n(Ii,uo);function Ii(){}n(Zl,uo);function Zl(){}uo.Keyed=is,uo.Indexed=Ii,uo.Set=Zl;var as=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(h,y){h=h|0,y=y|0;var C=h&65535,O=y&65535;return C*O+((h>>>16)*O+C*(y>>>16)<<16>>>0)|0};function Fd(l){return l>>>1&1073741824|l&3221225471}function Cr(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 y=l|0;for(y!==l&&(y^=l*4294967295);l>4294967295;)l/=4294967295,y^=l;return Fd(y)}if(h==="string")return l.length>hP?cP(l):Wd(l);if(typeof l.hashCode=="function")return l.hashCode();if(h==="object")return fP(l);if(typeof l.toString=="function")return Wd(l.toString());throw new Error("Value type "+h+" cannot be hashed.")}function cP(l){var h=Gd[l];return h===void 0&&(h=Wd(l),qd===pP&&(qd=0,Gd={}),qd++,Gd[l]=h),h}function Wd(l){for(var h=0,y=0;y0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var Bd=typeof WeakMap=="function",Ud;Bd&&(Ud=new WeakMap);var Hd=0,Qo="__immutablehash__";typeof Symbol=="function"&&(Qo=Symbol(Qo));var hP=16,pP=255,qd=0,Gd={};function Rr(l){Jl(l!==1/0,"Cannot perform this action with an infinite size.")}n(Pe,is);function Pe(l){return l==null?nn():Vd(l)&&!p(l)?l:nn().withMutations(function(h){var y=i(l);Rr(y.size),y.forEach(function(C,O){return h.set(O,C)})})}Pe.of=function(){var l=r.call(arguments,0);return nn().withMutations(function(h){for(var y=0;y=l.length)throw new Error("Missing value for key: "+l[y]);h.set(l[y],l[y+1])}})},Pe.prototype.toString=function(){return this.__toString("Map {","}")},Pe.prototype.get=function(l,h){return this._root?this._root.get(0,void 0,l,h):h},Pe.prototype.set=function(l,h){return j0(this,l,h)},Pe.prototype.setIn=function(l,h){return this.updateIn(l,E,function(){return h})},Pe.prototype.remove=function(l){return j0(this,l,E)},Pe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return E})},Pe.prototype.update=function(l,h,y){return arguments.length===1?l(this):this.updateIn([l],h,y)},Pe.prototype.updateIn=function(l,h,y){y||(y=h,h=void 0);var C=L0(this,oS(l),h,y);return C===E?void 0:C},Pe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):nn()},Pe.prototype.merge=function(){return eu(this,void 0,arguments)},Pe.prototype.mergeWith=function(l){var h=r.call(arguments,1);return eu(this,l,h)},Pe.prototype.mergeIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,nn(),function(y){return typeof y.merge=="function"?y.merge.apply(y,h):h[h.length-1]})},Pe.prototype.mergeDeep=function(){return eu(this,A0,arguments)},Pe.prototype.mergeDeepWith=function(l){var h=r.call(arguments,1);return eu(this,N0(l),h)},Pe.prototype.mergeDeepIn=function(l){var h=r.call(arguments,1);return this.updateIn(l,nn(),function(y){return typeof y.mergeDeep=="function"?y.mergeDeep.apply(y,h):h[h.length-1]})},Pe.prototype.sort=function(l){return dt($i(this,l))},Pe.prototype.sortBy=function(l,h){return dt($i(this,h,l))},Pe.prototype.withMutations=function(l){var h=this.asMutable();return l(h),h.wasAltered()?h.__ensureOwner(this.__ownerID):this},Pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Pe.prototype.asImmutable=function(){return this.__ensureOwner()},Pe.prototype.wasAltered=function(){return this.__altered},Pe.prototype.__iterator=function(l,h){return new Kd(this,l,h)},Pe.prototype.__iterate=function(l,h){var y=this,C=0;return this._root&&this._root.iterate(function(O){return C++,l(O[1],O[0],y)},h),C},Pe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?Qd(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function Vd(l){return!!(l&&l[P0])}Pe.isMap=Vd;var P0="@@__IMMUTABLE_MAP__@@",Oe=Pe.prototype;Oe[P0]=!0,Oe[v]=Oe.remove,Oe.removeIn=Oe.deleteIn;function ss(l,h){this.ownerID=l,this.entries=h}ss.prototype.get=function(l,h,y,C){for(var O=this.entries,z=0,N=O.length;z=_P)return mP(l,F,C,O);var me=l&&l===this.ownerID,xe=me?F:M(F);return ue?L?B===Q-1?xe.pop():xe[B]=xe.pop():xe[B]=[C,O]:xe.push([C,O]),me?(this.entries=xe,this):new ss(l,xe)}};function ji(l,h,y){this.ownerID=l,this.bitmap=h,this.nodes=y}ji.prototype.get=function(l,h,y,C){h===void 0&&(h=Cr(y));var O=1<<((l===0?h:h>>>l)&T),z=this.bitmap;return z&O?this.nodes[$0(z&O-1)].get(l+S,h,y,C):C},ji.prototype.update=function(l,h,y,C,O,z,N){y===void 0&&(y=Cr(C));var L=(h===0?y:y>>>h)&T,F=1<=bP)return gP(l,me,B,L,Ce);if(Q&&!Ce&&me.length===2&&z0(me[ue^1]))return me[ue^1];if(Q&&Ce&&me.length===1&&z0(Ce))return Ce;var Ze=l&&l===this.ownerID,on=Q?Ce?B:B^F:B|F,bn=Q?Ce?D0(me,ue,Ce,Ze):SP(me,ue,Ze):yP(me,ue,Ce,Ze);return Ze?(this.bitmap=on,this.nodes=bn,this):new ji(l,on,bn)};function ls(l,h,y){this.ownerID=l,this.count=h,this.nodes=y}ls.prototype.get=function(l,h,y,C){h===void 0&&(h=Cr(y));var O=(l===0?h:h>>>l)&T,z=this.nodes[O];return z?z.get(l+S,h,y,C):C},ls.prototype.update=function(l,h,y,C,O,z,N){y===void 0&&(y=Cr(C));var L=(h===0?y:y>>>h)&T,F=O===E,B=this.nodes,Q=B[L];if(F&&!Q)return this;var ue=Xd(Q,l,h+S,y,C,O,z,N);if(ue===Q)return this;var me=this.count;if(!Q)me++;else if(!ue&&(me--,me>>y)&T,N=(y===0?C:C>>>y)&T,L,F=z===N?[Jd(l,h,y+S,C,O)]:(L=new Wn(h,C,O),z>>=1)N[L]=y&1?h[z++]:void 0;return N[C]=O,new ls(l,z+1,N)}function eu(l,h,y){for(var C=[],O=0;O>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function D0(l,h,y,C){var O=C?l:M(l);return O[h]=y,O}function yP(l,h,y,C){var O=l.length+1;if(C&&h+1===O)return l[h]=y,l;for(var z=new Array(O),N=0,L=0;L0&&C=0&&l>>h&T;if(C>=this.array.length)return new co([],l);var O=C===0,z;if(h>0){var N=this.array[C];if(z=N&&N.removeBefore(l,h-S,y),z===N&&O)return this}if(O&&!z)return this;var L=Ai(this,l);if(!O)for(var F=0;F>>h&T;if(C>=this.array.length)return this;var O;if(h>0){var z=this.array[C];if(O=z&&z.removeAfter(l,h-S,y),O===z&&C===this.array.length-1)return this}var N=Ai(this,l);return N.array.splice(C+1),O&&(N.array[C]=O),N};var us={};function B0(l,h){var y=l._origin,C=l._capacity,O=fs(C),z=l._tail;return N(l._root,l._level,0);function N(B,Q,ue){return Q===0?L(B,ue):F(B,Q,ue)}function L(B,Q){var ue=Q===O?z&&z.array:B&&B.array,me=Q>y?0:y-Q,xe=C-Q;return xe>w&&(xe=w),function(){if(me===xe)return us;var Ce=h?--xe:me++;return ue&&ue[Ce]}}function F(B,Q,ue){var me,xe=B&&B.array,Ce=ue>y?0:y-ue>>Q,Ze=(C-ue>>Q)+1;return Ze>w&&(Ze=w),function(){do{if(me){var on=me();if(on!==us)return on;me=null}if(Ce===Ze)return us;var bn=h?--Ze:Ce++;me=N(xe&&xe[bn],Q-S,ue+(bn<=l.size||h<0)return l.withMutations(function(N){h<0?fo(N,h).set(0,y):fo(N,0,h+1).set(h,y)});h+=l._origin;var C=l._tail,O=l._root,z=k(x);return h>=fs(l._capacity)?C=eh(C,l.__ownerID,0,h,y,z):O=eh(O,l.__ownerID,l._level,h,y,z),z.value?l.__ownerID?(l._root=O,l._tail=C,l.__hash=void 0,l.__altered=!0,l):cs(l._origin,l._capacity,l._level,O,C):l}function eh(l,h,y,C,O,z){var N=C>>>y&T,L=l&&N0){var B=l&&l.array[N],Q=eh(B,h,y-S,C,O,z);return Q===B?l:(F=Ai(l,h),F.array[N]=Q,F)}return L&&l.array[N]===O?l:(I(z),F=Ai(l,h),O===void 0&&N===F.array.length-1?F.array.pop():F.array[N]=O,F)}function Ai(l,h){return h&&l&&h===l.ownerID?l:new co(l?l.array.slice():[],h)}function H0(l,h){if(h>=fs(l._capacity))return l._tail;if(h<1<0;)y=y.array[h>>>C&T],C-=S;return y}}function fo(l,h,y){h!==void 0&&(h=h|0),y!==void 0&&(y=y|0);var C=l.__ownerID||new j,O=l._origin,z=l._capacity,N=O+h,L=y===void 0?z:y<0?z+y:O+y;if(N===O&&L===z)return l;if(N>=L)return l.clear();for(var F=l._level,B=l._root,Q=0;N+Q<0;)B=new co(B&&B.array.length?[void 0,B]:[],C),F+=S,Q+=1<=1<ue?new co([],C):xe;if(xe&&me>ue&&NS;on-=S){var bn=ue>>>on&T;Ze=Ze.array[bn]=Ai(Ze.array[bn],C)}Ze.array[ue>>>S&T]=xe}if(L=me)N-=me,L-=me,F=S,B=null,Ce=Ce&&Ce.removeBefore(C,0,N);else if(N>O||me>>F&T;if(lu!==me>>>F&T)break;lu&&(Q+=(1<O&&(B=B.removeBefore(C,F,N-Q)),B&&meO&&(O=L.size),u(N)||(L=L.map(function(F){return Yo(F)})),C.push(L)}return O>l.size&&(l=l.setSize(O)),M0(l,h,C)}function fs(l){return l>>S<=w&&O.size>=C.size*2?(F=O.filter(function(B,Q){return B!==void 0&&z!==Q}),L=F.toKeyedSeq().map(function(B){return B[0]}).flip().toMap(),l.__ownerID&&(L.__ownerID=F.__ownerID=l.__ownerID)):(L=C.remove(h),F=z===O.size-1?O.pop():O.set(z,void 0))}else if(N){if(y===O.get(z)[1])return l;L=C,F=O.set(z,[h,y])}else L=C.set(h,O.size),F=O.set(O.size,[h,y]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=F,l.__hash=void 0,l):th(L,F)}n(Br,re);function Br(l,h){this._iter=l,this._useKeys=h,this.size=l.size}Br.prototype.get=function(l,h){return this._iter.get(l,h)},Br.prototype.has=function(l){return this._iter.has(l)},Br.prototype.valueSeq=function(){return this._iter.valueSeq()},Br.prototype.reverse=function(){var l=this,h=rh(this,!0);return this._useKeys||(h.valueSeq=function(){return l._iter.toSeq().reverse()}),h},Br.prototype.map=function(l,h){var y=this,C=Y0(this,l,h);return this._useKeys||(C.valueSeq=function(){return y._iter.toSeq().map(l,h)}),C},Br.prototype.__iterate=function(l,h){var y=this,C;return this._iter.__iterate(this._useKeys?function(O,z){return l(O,z,y)}:(C=h?tS(this):0,function(O){return l(O,h?--C:C++,y)}),h)},Br.prototype.__iterator=function(l,h){if(this._useKeys)return this._iter.__iterator(l,h);var y=this._iter.__iterator(ce,h),C=h?tS(this):0;return new Se(function(){var O=y.next();return O.done?O:G(l,h?--C:C++,O.value,O)})},Br.prototype[R]=!0,n(Ni,K);function Ni(l){this._iter=l,this.size=l.size}Ni.prototype.includes=function(l){return this._iter.includes(l)},Ni.prototype.__iterate=function(l,h){var y=this,C=0;return this._iter.__iterate(function(O){return l(O,C++,y)},h)},Ni.prototype.__iterator=function(l,h){var y=this._iter.__iterator(ce,h),C=0;return new Se(function(){var O=y.next();return O.done?O:G(l,C++,O.value,O)})},n(Mi,X);function Mi(l){this._iter=l,this.size=l.size}Mi.prototype.has=function(l){return this._iter.includes(l)},Mi.prototype.__iterate=function(l,h){var y=this;return this._iter.__iterate(function(C){return l(C,C,y)},h)},Mi.prototype.__iterator=function(l,h){var y=this._iter.__iterator(ce,h);return new Se(function(){var C=y.next();return C.done?C:G(l,C.value,C.value,C)})},n(Li,re);function Li(l){this._iter=l,this.size=l.size}Li.prototype.entrySeq=function(){return this._iter.toSeq()},Li.prototype.__iterate=function(l,h){var y=this;return this._iter.__iterate(function(C){if(C){eS(C);var O=u(C);return l(O?C.get(1):C[1],O?C.get(0):C[0],y)}},h)},Li.prototype.__iterator=function(l,h){var y=this._iter.__iterator(ce,h);return new Se(function(){for(;;){var C=y.next();if(C.done)return C;var O=C.value;if(O){eS(O);var z=u(O);return G(l,z?O.get(0):O[0],z?O.get(1):O[1],C)}}})},Ni.prototype.cacheResult=Br.prototype.cacheResult=Mi.prototype.cacheResult=Li.prototype.cacheResult=ih;function K0(l){var h=yn(l);return h._iter=l,h.size=l.size,h.flip=function(){return l},h.reverse=function(){var y=l.reverse.apply(this);return y.flip=function(){return l.reverse()},y},h.has=function(y){return l.includes(y)},h.includes=function(y){return l.has(y)},h.cacheResult=ih,h.__iterateUncached=function(y,C){var O=this;return l.__iterate(function(z,N){return y(N,z,O)!==!1},C)},h.__iteratorUncached=function(y,C){if(y===be){var O=l.__iterator(y,C);return new Se(function(){var z=O.next();if(!z.done){var N=z.value[0];z.value[0]=z.value[1],z.value[1]=N}return z})}return l.__iterator(y===ce?se:ce,C)},h}function Y0(l,h,y){var C=yn(l);return C.size=l.size,C.has=function(O){return l.has(O)},C.get=function(O,z){var N=l.get(O,E);return N===E?z:h.call(y,N,O,l)},C.__iterateUncached=function(O,z){var N=this;return l.__iterate(function(L,F,B){return O(h.call(y,L,F,B),F,N)!==!1},z)},C.__iteratorUncached=function(O,z){var N=l.__iterator(be,z);return new Se(function(){var L=N.next();if(L.done)return L;var F=L.value,B=F[0];return G(O,B,h.call(y,F[1],B,l),L)})},C}function rh(l,h){var y=yn(l);return y._iter=l,y.size=l.size,y.reverse=function(){return l},l.flip&&(y.flip=function(){var C=K0(l);return C.reverse=function(){return l.flip()},C}),y.get=function(C,O){return l.get(h?C:-1-C,O)},y.has=function(C){return l.has(h?C:-1-C)},y.includes=function(C){return l.includes(C)},y.cacheResult=ih,y.__iterate=function(C,O){var z=this;return l.__iterate(function(N,L){return C(N,L,z)},!O)},y.__iterator=function(C,O){return l.__iterator(C,!O)},y}function Q0(l,h,y,C){var O=yn(l);return C&&(O.has=function(z){var N=l.get(z,E);return N!==E&&!!h.call(y,N,z,l)},O.get=function(z,N){var L=l.get(z,E);return L!==E&&h.call(y,L,z,l)?L:N}),O.__iterateUncached=function(z,N){var L=this,F=0;return l.__iterate(function(B,Q,ue){if(h.call(y,B,Q,ue))return F++,z(B,C?Q:F-1,L)},N),F},O.__iteratorUncached=function(z,N){var L=l.__iterator(be,N),F=0;return new Se(function(){for(;;){var B=L.next();if(B.done)return B;var Q=B.value,ue=Q[0],me=Q[1];if(h.call(y,me,ue,l))return G(z,C?ue:F++,me,B)}})},O}function CP(l,h,y){var C=Pe().asMutable();return l.__iterate(function(O,z){C.update(h.call(y,O,z,l),0,function(N){return N+1})}),C.asImmutable()}function RP(l,h,y){var C=c(l),O=(p(l)?dt():Pe()).asMutable();l.__iterate(function(N,L){O.update(h.call(y,N,L,l),function(F){return F=F||[],F.push(C?[L,N]:N),F})});var z=rS(l);return O.map(function(N){return qe(l,z(N))})}function nh(l,h,y,C){var O=l.size;if(h!==void 0&&(h=h|0),y!==void 0&&(y===1/0?y=O:y=y|0),ie(h,y,O))return l;var z=oe(h,O),N=ge(y,O);if(z!==z||N!==N)return nh(l.toSeq().cacheResult(),h,y,C);var L=N-z,F;L===L&&(F=L<0?0:L);var B=yn(l);return B.size=F===0?F:l.size&&F||void 0,!C&&Re(l)&&F>=0&&(B.get=function(Q,ue){return Q=U(this,Q),Q>=0&&QF)return V();var Ze=me.next();return C||Q===ce?Ze:Q===se?G(Q,Ce-1,void 0,Ze):G(Q,Ce-1,Ze.value[1],Ze)})},B}function TP(l,h,y){var C=yn(l);return C.__iterateUncached=function(O,z){var N=this;if(z)return this.cacheResult().__iterate(O,z);var L=0;return l.__iterate(function(F,B,Q){return h.call(y,F,B,Q)&&++L&&O(F,B,N)}),L},C.__iteratorUncached=function(O,z){var N=this;if(z)return this.cacheResult().__iterator(O,z);var L=l.__iterator(be,z),F=!0;return new Se(function(){if(!F)return V();var B=L.next();if(B.done)return B;var Q=B.value,ue=Q[0],me=Q[1];return h.call(y,me,ue,N)?O===be?B:G(O,ue,me,B):(F=!1,V())})},C}function X0(l,h,y,C){var O=yn(l);return O.__iterateUncached=function(z,N){var L=this;if(N)return this.cacheResult().__iterate(z,N);var F=!0,B=0;return l.__iterate(function(Q,ue,me){if(!(F&&(F=h.call(y,Q,ue,me))))return B++,z(Q,C?ue:B-1,L)}),B},O.__iteratorUncached=function(z,N){var L=this;if(N)return this.cacheResult().__iterator(z,N);var F=l.__iterator(be,N),B=!0,Q=0;return new Se(function(){var ue,me,xe;do{if(ue=F.next(),ue.done)return C||z===ce?ue:z===se?G(z,Q++,void 0,ue):G(z,Q++,ue.value[1],ue);var Ce=ue.value;me=Ce[0],xe=Ce[1],B&&(B=h.call(y,xe,me,L))}while(B);return z===be?ue:G(z,me,xe,ue)})},O}function OP(l,h){var y=c(l),C=[l].concat(h).map(function(N){return u(N)?y&&(N=i(N)):N=y?xt(N):hr(Array.isArray(N)?N:[N]),N}).filter(function(N){return N.size!==0});if(C.length===0)return l;if(C.length===1){var O=C[0];if(O===l||y&&c(O)||f(l)&&f(O))return O}var z=new pe(C);return y?z=z.toKeyedSeq():f(l)||(z=z.toSetSeq()),z=z.flatten(!0),z.size=C.reduce(function(N,L){if(N!==void 0){var F=L.size;if(F!==void 0)return N+F}},0),z}function J0(l,h,y){var C=yn(l);return C.__iterateUncached=function(O,z){var N=0,L=!1;function F(B,Q){var ue=this;B.__iterate(function(me,xe){return(!h||Q0}function oh(l,h,y){var C=yn(l);return C.size=new pe(y).map(function(O){return O.size}).min(),C.__iterate=function(O,z){for(var N=this.__iterator(ce,z),L,F=0;!(L=N.next()).done&&O(L.value,F++,this)!==!1;);return F},C.__iteratorUncached=function(O,z){var N=y.map(function(B){return B=o(B),W(z?B.reverse():B)}),L=0,F=!1;return new Se(function(){var B;return F||(B=N.map(function(Q){return Q.next()}),F=B.some(function(Q){return Q.done})),F?V():G(O,L++,h.apply(null,B.map(function(Q){return Q.value})))})},C}function qe(l,h){return Re(l)?h:l.constructor(h)}function eS(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function tS(l){return Rr(l.size),D(l)}function rS(l){return c(l)?i:f(l)?a:s}function yn(l){return Object.create((c(l)?re:f(l)?K:X).prototype)}function ih(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):te.prototype.cacheResult.call(this)}function nS(l,h){return l>h?1:l=0;y--)h={value:arguments[y],next:h};return this.__ownerID?(this.size=l,this._head=h,this.__hash=void 0,this.__altered=!0,this):ds(l,h)},gt.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;Rr(l.size);var h=this.size,y=this._head;return l.reverse().forEach(function(C){h++,y={value:C,next:y}}),this.__ownerID?(this.size=h,this._head=y,this.__hash=void 0,this.__altered=!0,this):ds(h,y)},gt.prototype.pop=function(){return this.slice(1)},gt.prototype.unshift=function(){return this.push.apply(this,arguments)},gt.prototype.unshiftAll=function(l){return this.pushAll(l)},gt.prototype.shift=function(){return this.pop.apply(this,arguments)},gt.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):ch()},gt.prototype.slice=function(l,h){if(ie(l,h,this.size))return this;var y=oe(l,this.size),C=ge(h,this.size);if(C!==this.size)return Ii.prototype.slice.call(this,l,h);for(var O=this.size-y,z=this._head;y--;)z=z.next;return this.__ownerID?(this.size=O,this._head=z,this.__hash=void 0,this.__altered=!0,this):ds(O,z)},gt.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?ds(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},gt.prototype.__iterate=function(l,h){if(h)return this.reverse().__iterate(l);for(var y=0,C=this._head;C&&l(C.value,y++,this)!==!1;)C=C.next;return y},gt.prototype.__iterator=function(l,h){if(h)return this.reverse().__iterator(l);var y=0,C=this._head;return new Se(function(){if(C){var O=C.value;return C=C.next,G(l,y++,O)}return V()})};function dS(l){return!!(l&&l[hS])}gt.isStack=dS;var hS="@@__IMMUTABLE_STACK__@@",Di=gt.prototype;Di[hS]=!0,Di.withMutations=Oe.withMutations,Di.asMutable=Oe.asMutable,Di.asImmutable=Oe.asImmutable,Di.wasAltered=Oe.wasAltered;function ds(l,h,y,C){var O=Object.create(Di);return O.size=l,O._head=h,O.__ownerID=y,O.__hash=C,O.__altered=!1,O}var pS;function ch(){return pS||(pS=ds(0))}function _n(l,h){var y=function(C){l.prototype[C]=h[C]};return Object.keys(h).forEach(y),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(h).forEach(y),l}o.Iterator=Se,_n(o,{toArray:function(){Rr(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(h,y){l[y]=h}),l},toIndexedSeq:function(){return new Ni(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 Br(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Rr(this.size);var l={};return this.__iterate(function(h,y){l[y]=h}),l},toOrderedMap:function(){return dt(this.toKeyedSeq())},toOrderedSet:function(){return Sn(c(this)?this.valueSeq():this)},toSet:function(){return Je(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Mi(this)},toSeq:function(){return f(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gt(c(this)?this.valueSeq():this)},toList:function(){return Ve(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 qe(this,OP(this,l))},includes:function(l){return this.some(function(h){return vt(h,l)})},entries:function(){return this.__iterator(be)},every:function(l,h){Rr(this.size);var y=!0;return this.__iterate(function(C,O,z){if(!l.call(h,C,O,z))return y=!1,!1}),y},filter:function(l,h){return qe(this,Q0(this,l,h,!0))},find:function(l,h,y){var C=this.findEntry(l,h);return C?C[1]:y},forEach:function(l,h){return Rr(this.size),this.__iterate(h?l.bind(h):l)},join:function(l){Rr(this.size),l=l!==void 0?""+l:",";var h="",y=!0;return this.__iterate(function(C){y?y=!1:h+=l,h+=C!=null?C.toString():""}),h},keys:function(){return this.__iterator(se)},map:function(l,h){return qe(this,Y0(this,l,h))},reduce:function(l,h,y){Rr(this.size);var C,O;return arguments.length<2?O=!0:C=h,this.__iterate(function(z,N,L){O?(O=!1,C=z):C=l.call(y,C,z,N,L)}),C},reduceRight:function(l,h,y){var C=this.toKeyedSeq().reverse();return C.reduce.apply(C,arguments)},reverse:function(){return qe(this,rh(this,!0))},slice:function(l,h){return qe(this,nh(this,l,h,!0))},some:function(l,h){return!this.every(su(l),h)},sort:function(l){return qe(this,$i(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 D(l?this.toSeq().filter(l,h):this)},countBy:function(l,h){return CP(this,l,h)},equals:function(l){return Ld(this,l)},entrySeq:function(){var l=this;if(l._cache)return new pe(l._cache);var h=l.toSeq().map(zP).toIndexedSeq();return h.fromEntrySeq=function(){return l.toSeq()},h},filterNot:function(l,h){return this.filter(su(l),h)},findEntry:function(l,h,y){var C=y;return this.__iterate(function(O,z,N){if(l.call(h,O,z,N))return C=[z,O],!1}),C},findKey:function(l,h){var y=this.findEntry(l,h);return y&&y[0]},findLast:function(l,h,y){return this.toKeyedSeq().reverse().find(l,h,y)},findLastEntry:function(l,h,y){return this.toKeyedSeq().reverse().findEntry(l,h,y)},findLastKey:function(l,h){return this.toKeyedSeq().reverse().findKey(l,h)},first:function(){return this.find(H)},flatMap:function(l,h){return qe(this,EP(this,l,h))},flatten:function(l){return qe(this,J0(this,l,!0))},fromEntrySeq:function(){return new Li(this)},get:function(l,h){return this.find(function(y,C){return vt(C,l)},void 0,h)},getIn:function(l,h){for(var y=this,C=oS(l),O;!(O=C.next()).done;){var z=O.value;if(y=y&&y.get?y.get(z,E):E,y===E)return h}return y},groupBy:function(l,h){return RP(this,l,h)},has:function(l){return this.get(l,E)!==E},hasIn:function(l){return this.getIn(l,E)!==E},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(h){return l.includes(h)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(h){return vt(h,l)})},keySeq:function(){return this.toSeq().map(jP).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return nu(this,l)},maxBy:function(l,h){return nu(this,h,l)},min:function(l){return nu(this,l?mS(l):gS)},minBy:function(l,h){return nu(this,h?mS(h):gS,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return qe(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,h){return qe(this,X0(this,l,h,!0))},skipUntil:function(l,h){return this.skipWhile(su(l),h)},sortBy:function(l,h){return qe(this,$i(this,h,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return qe(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,h){return qe(this,TP(this,l,h))},takeUntil:function(l,h){return this.takeWhile(su(l),h)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=NP(this))}});var nr=o.prototype;nr[_]=!0,nr[Me]=nr.values,nr.__toJS=nr.toArray,nr.__toStringMapper=vS,nr.inspect=nr.toSource=function(){return this.toString()},nr.chain=nr.flatMap,nr.contains=nr.includes,_n(i,{flip:function(){return qe(this,K0(this))},mapEntries:function(l,h){var y=this,C=0;return qe(this,this.toSeq().map(function(O,z){return l.call(h,[z,O],C++,y)}).fromEntrySeq())},mapKeys:function(l,h){var y=this;return qe(this,this.toSeq().flip().map(function(C,O){return l.call(h,C,O,y)}).flip())}});var au=i.prototype;au[b]=!0,au[Me]=nr.entries,au.__toJS=nr.toObject,au.__toStringMapper=function(l,h){return JSON.stringify(h)+": "+vS(l)},_n(a,{toKeyedSeq:function(){return new Br(this,!1)},filter:function(l,h){return qe(this,Q0(this,l,h,!1))},findIndex:function(l,h){var y=this.findEntry(l,h);return y?y[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 qe(this,rh(this,!1))},slice:function(l,h){return qe(this,nh(this,l,h,!1))},splice:function(l,h){var y=arguments.length;if(h=Math.max(h|0,0),y===0||y===2&&!h)return this;l=oe(l,l<0?this.count():this.size);var C=this.slice(0,l);return qe(this,y===1?C:C.concat(M(arguments,2),this.slice(l+h)))},findLastIndex:function(l,h){var y=this.findLastEntry(l,h);return y?y[0]:-1},first:function(){return this.get(0)},flatten:function(l){return qe(this,J0(this,l,!1))},get:function(l,h){return l=U(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?h:this.find(function(y,C){return C===l},void 0,h)},has:function(l){return l=U(this,l),l>=0&&(this.size!==void 0?this.size===1/0||lh?-1:0}function NP(l){if(l.size===1/0)return 0;var h=p(l),y=c(l),C=h?1:0,O=l.__iterate(y?h?function(z,N){C=31*C+yS(Cr(z),Cr(N))|0}:function(z,N){C=C+yS(Cr(z),Cr(N))|0}:h?function(z){C=31*C+Cr(z)|0}:function(z){C=C+Cr(z)|0});return MP(O,C)}function MP(l,h){return h=as(h,3432918353),h=as(h<<15|h>>>-15,461845907),h=as(h<<13|h>>>-13,5),h=(h+3864292196|0)^l,h=as(h^h>>>16,2246822507),h=as(h^h>>>13,3266489909),h=Fd(h^h>>>16),h}function yS(l,h){return l^h+2654435769+(l<<6)+(l>>2)|0}var LP={Iterable:o,Seq:te,Collection:uo,Map:Pe,OrderedMap:dt,List:Ve,Stack:gt,Set:Je,OrderedSet:Sn,Record:Tr,Range:zt,Repeat:Ut,is:vt,fromJS:Yo};return LP})}(ep)),ep.exports}function N$(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 M$=Object.freeze(Object.defineProperty({__proto__:null,default:N$},Symbol.toStringTag,{value:"Module"})),L$=Ba(M$);var tp,H_;function YT(){if(H_)return tp;H_=1;var e=typeof oi=="object"&&oi&&oi.Object===Object&&oi;return tp=e,tp}var rp,q_;function $$(){if(q_)return rp;q_=1;var e=YT(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return rp=r,rp}var np,G_;function gd(){if(G_)return np;G_=1;var e=$$(),t=e.Symbol;return np=t,np}var op,V_;function D$(){if(V_)return op;V_=1;var e=gd(),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 op=i,op}var ip,K_;function F$(){if(K_)return ip;K_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return ip=r,ip}var ap,Y_;function yd(){if(Y_)return ap;Y_=1;var e=gd(),t=D$(),r=F$(),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 ap=a,ap}var sp,Q_;function Bl(){if(Q_)return sp;Q_=1;function e(t){return t!=null&&typeof t=="object"}return sp=e,sp}var lp,X_;function W$(){if(X_)return lp;X_=1;var e=yd(),t=Bl(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return lp=n,lp}var up,J_;function B$(){if(J_)return up;J_=1;function e(t){return function(r){return t(r)}}return up=e,up}var As={exports:{}};As.exports;var Z_;function U$(){return Z_||(Z_=1,function(e,t){var r=YT(),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}(As,As.exports)),As.exports}var cp,eb;function H$(){if(eb)return cp;eb=1;var e=W$(),t=B$(),r=U$(),n=r&&r.isRegExp,o=n?t(n):e;return cp=o,cp}var fp,tb;function q$(){if(tb)return fp;tb=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 wp=r,wp}var xp,hb;function rD(){if(hb)return xp;hb=1;var e=tD();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return xp=t,xp}var Cp,pb;function nD(){if(pb)return Cp;pb=1;var e=H$(),t=Y$(),r=Q$(),n=rD();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,_=d.length;p<_;p+=2)c=d[p].length,u+=d[p-1].length,d[p]=s(d[p],p,u),u+=c;return d}return Cp=function(a,s,u){return Array.isArray(a)||(a=[a]),n(a.map(function(c){return r(c)?o(c,s,u):c}))},Cp}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mb(e,t){for(var r=0;r=0&&u===s&&c())}function Ns(e,t){if(e==null)return{};var r=Zt(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 oD=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ft(this,e),$(this,"_cellSizeAndPositionData",{}),$(this,"_lastMeasuredIndex",-1),$(this,"_lastBatchedIndex",-1),$(this,"_cellCount",void 0),$(this,"_cellSizeGetter",void 0),$(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return mt(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}(),iD=15e5,aD=16777100,sD=function(){return typeof window<"u"},lD=function(){return!!window.chrome},uD=function(){return sD()&&lD()?aD:iD},gw=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?uD():r,o=Ns(t,["maxScrollSize"]);ft(this,e),$(this,"_cellSizeAndPositionManager",void 0),$(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new oD(o),this._maxScrollSize=n}return mt(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 za(){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 Pu=-1,Un=1;function JT(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Un?{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 yw(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,_=e.updateScrollIndexCallback,w=r.getCellCount(),g=f>=0&&f0&&(dr.getTotalSize()-d&&_(w-1)}function ZT(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,_=e.rowStopIndex,w=e.styleCache,g=e.verticalOffsetAdjustment,R=e.visibleColumnIndices,v=e.visibleRowIndices,S=[],b=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),T=!u&&!b,P=p;P<=_;P++)for(var E=d.getSizeAndPositionOfCell(P),x=o;x<=i;x++){var k=n.getSizeAndPositionOfCell(x),I=x>=R.start&&x<=R.stop&&P>=v.start&&P<=v.stop,j="".concat(P,"-").concat(x),M=void 0;T&&w[j]?M=w[j]:a&&!a.has(P,x)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:E.size,left:k.offset+s,position:"absolute",top:E.offset+g,width:k.size},w[j]=M);var D={columnIndex:x,isScrolling:u,isVisible:I,key:j,parent:f,rowIndex:P,style:M},U=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r(D)),U=t[j]):U=r(D),!(U==null||U===!1)&&S.push(U)}return S}const cD=!!(typeof window<"u"&&window.document&&window.document.createElement);var Eu;function Xm(e){if((!Eu&&Eu!==0||e)&&cD){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),Eu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Eu}var ar;typeof window<"u"?ar=window:typeof self<"u"?ar=self:ar={};var fD=ar.requestAnimationFrame||ar.webkitRequestAnimationFrame||ar.mozRequestAnimationFrame||ar.oRequestAnimationFrame||ar.msRequestAnimationFrame||function(e){return ar.setTimeout(e,1e3/60)},dD=ar.cancelAnimationFrame||ar.webkitCancelAnimationFrame||ar.mozCancelAnimationFrame||ar.oCancelAnimationFrame||ar.msCancelAnimationFrame||function(e){ar.clearTimeout(e)},Sw=fD,hD=dD,Aa=function(t){return hD(t.id)},ly=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=Sw(a)},i={id:Sw(o)};return i},_w,ww;function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xo(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 mt(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=Xo({},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,_=this.state.instanceProps,w=_.scrollbarSize,g=_.rowSizeAndPositionManager.getTotalSize(),R=_.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,R-p+w),i),S=Math.min(Math.max(0,g-d+w),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==S){var b=v!==this.state.scrollLeft?v>this.state.scrollLeft?Un:Pu:this.state.scrollDirectionHorizontal,T=S!==this.state.scrollTop?S>this.state.scrollTop?Un:Pu:this.state.scrollDirectionVertical,P={isScrolling:!0,scrollDirectionHorizontal:b,scrollDirectionVertical:T,scrollPositionChangeReason:Cp.OBSERVED};c||(P.scrollTop=S),f||(P.scrollLeft=v),P.needToResetStyleCache=!1,this.setState(P)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:S,totalColumnsWidth:R,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===Un?i<=c:i>=c),this._recomputeScrollTopFlag=f>=0&&(this.state.scrollDirectionVertical===Un?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(Xo({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(Xo({},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(w){var g=Xo({},w,{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 _=i>0&&f>0;s>=0&&_&&this._updateScrollLeftForScrollToColumn(),c>=0&&_&&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,_=a.scrollToColumn,w=a.scrollToRow,g=a.width,R=this.state,v=R.scrollLeft,S=R.scrollPositionChangeReason,b=R.scrollTop,T=R.instanceProps;this._handleInvalidatedGridSize();var P=c>0&&n.columnCount===0||d>0&&n.rowCount===0;S===Cp.REQUESTED&&(!u&&v>=0&&(v!==this._scrollingContainer.scrollLeft||P)&&(this._scrollingContainer.scrollLeft=v),!s&&b>=0&&(b!==this._scrollingContainer.scrollTop||P)&&(this._scrollingContainer.scrollTop=b));var E=(n.width===0||n.height===0)&&f>0&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):yw({cellSizeAndPositionManager:T.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:_,size:g,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):yw({cellSizeAndPositionManager:T.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:b,scrollToAlignment:p,scrollToIndex:w,size:f,sizeJustIncreasedFromZero:E,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||b!==o.scrollTop){var x=T.rowSizeAndPositionManager.getTotalSize(),k=T.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:k,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Aa(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,_=n.noContentRenderer,w=n.role,g=n.style,R=n.tabIndex,v=n.width,S=this.state,b=S.instanceProps,T=S.needToResetStyleCache,P=this._isScrolling(),E={boxSizing:"border-box",direction:"ltr",height:i?"auto":d,position:"relative",width:a?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};T&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=b.columnSizeAndPositionManager.getTotalSize(),k=b.rowSizeAndPositionManager.getTotalSize(),I=k>d?b.scrollbarSize:0,j=x>v?b.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=k+j<=d?"hidden":"auto";var M=this._childrenToDisplay,D=M.length===0&&d>0&&v>0;return A.createElement("div",de({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:cn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:w,style:Xo({},E,{},g),tabIndex:R}),M.length>0&&A.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:Xo({width:o?"auto":x,height:k,maxWidth:x,maxHeight:k,overflow:"hidden",pointerEvents:P?"none":"",position:"relative"},f)},M),D&&_())}},{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,_=n.rowCount,w=n.width,g=n.isScrollingOptOut,R=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,S=o.instanceProps,b=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,T=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,P=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&w>0){var E=S.columnSizeAndPositionManager.getVisibleCellRange({containerSize:w,offset:T}),x=S.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:b}),k=S.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:w,offset:T}),I=S.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:b});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:R,startIndex:typeof E.start=="number"?E.start:0,stopIndex:typeof E.stop=="number"?E.stop:-1}),M=d({direction:"vertical",cellCount:_,overscanCellsCount:p,scrollDirection:v,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),D=j.overscanStartIndex,U=j.overscanStopIndex,H=M.overscanStartIndex,ie=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var oe=H;oe<=ie;oe++)if(!u.has(oe,0)){D=0,U=s-1;break}}if(!u.hasFixedWidth()){for(var ge=D;ge<=U;ge++)if(!u.has(0,ge)){H=0,ie=_-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:S.columnSizeAndPositionManager,columnStartIndex:D,columnStopIndex:U,deferredMeasurementCache:u,horizontalOffsetAdjustment:k,isScrolling:P,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:S.rowSizeAndPositionManager,rowStartIndex:H,rowStopIndex:ie,scrollLeft:T,scrollTop:b,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:E,visibleRowIndices:x}),this._columnStartIndex=D,this._columnStopIndex=U,this._rowStartIndex=H,this._rowStopIndex=ie}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Aa(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=ly(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalColumnsWidth,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(f){var d=f.scrollLeft,p=f.scrollTop,_=o.props,w=_.height,g=_.onScroll,R=_.width;g({clientHeight:w,clientWidth:R,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 vw({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)}}),vw({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,Xo({},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:Cp.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Un:Pu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Un:Pu,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,_=u<0?p:Math.min(p,u),w=d.rowSizeAndPositionManager.getTotalSize(),g=d.scrollbarSizeMeasured&&w>a?d.scrollbarSize:0;return d.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:f,targetIndex:_})}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,_=u<0?p:Math.min(p,u),w=d.columnSizeAndPositionManager.getTotalSize(),g=d.scrollbarSizeMeasured&&w>c?d.scrollbarSize:0;return d.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:f,targetIndex:_})}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}(A.PureComponent),$(_w,"propTypes",null),ww);$(Xn,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:ZT,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Xm,noContentRenderer:mD,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:JT,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:pD,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Bl(Xn);var vD=1;function uy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===vD?{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 xw,Cw;function Rw(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 gD(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=k.head||k.getElementsByTagName("head")[0],M=k.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(k.createTextNode(I)),j.appendChild(M)}},P=function(k,I){if(n)k.attachEvent("onresize",I);else{if(!k.__resizeTriggers__){var j=k.ownerDocument,M=r.getComputedStyle(k);M&&M.position=="static"&&(k.style.position="relative"),T(j),k.__resizeLast__={},k.__resizeListeners__=[],(k.__resizeTriggers__=j.createElement("div")).className="resize-triggers";var D='
';if(window.trustedTypes){var U=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return D}});k.__resizeTriggers__.innerHTML=U.createHTML("")}else k.__resizeTriggers__.innerHTML=D;k.appendChild(k.__resizeTriggers__),a(k),k.addEventListener("scroll",u,!0),d&&(k.__resizeTriggers__.__animationListener__=function(ie){ie.animationName==v&&a(k)},k.__resizeTriggers__.addEventListener(d,k.__resizeTriggers__.__animationListener__))}k.__resizeListeners__.push(I)}},E=function(k,I){if(n)k.detachEvent("onresize",I);else if(k.__resizeListeners__.splice(k.__resizeListeners__.indexOf(I),1),!k.__resizeListeners__.length){k.removeEventListener("scroll",u,!0),k.__resizeTriggers__.__animationListener__&&(k.__resizeTriggers__.removeEventListener(d,k.__resizeTriggers__.__animationListener__),k.__resizeTriggers__.__animationListener__=null);try{k.__resizeTriggers__=!k.removeChild(k.__resizeTriggers__)}catch{}}};return{addResizeListener:P,removeResizeListener:E}}var Tw,Ow;function Pw(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 yD(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),$(this,"_cellHeightCache",{}),$(this,"_cellWidthCache",{}),$(this,"_columnWidthCache",{}),$(this,"_rowHeightCache",{}),$(this,"_defaultHeight",void 0),$(this,"_defaultWidth",void 0),$(this,"_minHeight",void 0),$(this,"_minWidth",void 0),$(this,"_keyMapper",void 0),$(this,"_hasFixedHeight",void 0),$(this,"_hasFixedWidth",void 0),$(this,"_columnCount",0),$(this,"_rowCount",0),$(this,"columnWidth",function(f){var d=f.index,p=t._keyMapper(0,d);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),$(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||bD,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:SD),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:_D)}return mt(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 R=u.getScrollPositionForCell({align:f,cellIndex:d,height:c,scrollLeft:w,scrollTop:g,width:p});(R.scrollLeft!==w||R.scrollTop!==g)&&n._setScrollPosition(R)}}),$(Y(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,_=n._scrollbarSize,w=c.getTotalSize(),g=w.height,R=w.width,v=Math.max(0,Math.min(R-p+_,s.target.scrollLeft)),S=Math.max(0,Math.min(g-f+_,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==S){var b=s.cancelable?Gi.OBSERVED:Gi.REQUESTED;n.state.isScrolling||d(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:b,scrollTop:S})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:S,totalWidth:R,totalHeight:g})}}),n._scrollbarSize=Xm(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return mt(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=Xm(),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,_=f.scrollTop;p===Gi.REQUESTED&&(d>=0&&d!==o.scrollLeft&&d!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=d),_>=0&&_!==o.scrollTop&&_!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=_)),(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,_=n.verticalOverscanSize,w=n.width,g=this.state,R=g.isScrolling,v=g.scrollLeft,S=g.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var b=a.getTotalSize(),T=b.height,P=b.width,E=Math.max(0,v-c),x=Math.max(0,S-_),k=Math.min(P,v+w+c),I=Math.min(T,S+u+_),j=u>0&&w>0?a.cellRenderers({height:I-x,isScrolling:R,width:k-E,x:E,y:x}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:w,willChange:"transform"},D=T>u?this._scrollbarSize:0,U=P>w?this._scrollbarSize:0;return M.overflowX=P+D<=w?"hidden":"auto",M.overflowY=T+U<=u?"hidden":"auto",A.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:cn("ReactVirtualized__Collection",s),id:f,onScroll:this._onScroll,role:"grid",style:xD({},M,{},p),tabIndex:0},i>0&&A.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:T,maxHeight:T,maxWidth:P,overflow:"hidden",pointerEvents:R?"none":"",width:P}},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})},CD)}},{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,_=o.props,w=_.height,g=_.onScroll,R=_.width;g({clientHeight:w,clientWidth:R,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:Gi.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:Gi.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:Gi.REQUESTED}:null}}]),t}(A.PureComponent);$(yd,"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});yd.propTypes={};Bl(yd);var RD=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 mt(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}(),TD=100,OD=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TD;ft(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return mt(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 _=c;_<=f;_++){var w="".concat(p,".").concat(_);this._sections[w]||(this._sections[w]=new RD({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:_*this._sectionSize})),d.push(this._sections[w])}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 PD(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new OD(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 w=_.startIndex-1;if(!t({index:w}))_.startIndex=w;else break}return a}function MD(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 zw,Aw,iO=(Aw=zw=function(e){dr(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=cn("ReactVirtualized__List",o);return A.createElement(Xn,de({},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}(A.PureComponent),$(zw,"propTypes",null),Aw);$(iO,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:uy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function LD(e){if(Array.isArray(e))return e}function $D(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 DD(){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 FD(e,t){return LD(e)||$D(e,t)||oO(e,t)||DD()}function WD(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 BD(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 UD(e,t,r,n,o){return typeof r=="function"?BD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):WD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function HD(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 qD(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 GD(e,t,r,n,o){return typeof r=="function"?qD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):HD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function VD(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 YD(e,t,r,n,o){return typeof r=="function"?KD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):VD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function QD(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 XD(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 JD(e,t,r,n,o){return typeof r=="function"?XD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):QD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function ZD(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 eF(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 tF(e,t,r,n,o){return typeof r=="function"?eF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):ZD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const Xc={ge:UD,gt:GD,lt:YD,le:JD,eq:tF};var ua=0,ni=1,oc=2;function hy(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 Ul=hy.prototype;function Rp(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 aO(e,t){var r=Na(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 Nw(e,t){var r=e.intervals([]);r.push(t),aO(e,r)}function Mw(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?ua:(r.splice(n,1),aO(e,r),ni)}Ul.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};Ul.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Nw(this,e):this.left.insert(e):this.left=Na([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Nw(this,e):this.right.insert(e):this.right=Na([e]);else{var r=Xc.ge(this.leftPoints,e,py),n=Xc.ge(this.rightPoints,e,my);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};Ul.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Mw(this,e);var n=this.left.remove(e);return n===oc?(this.left=null,this.count-=1,ni):(n===ni&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return ua;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Mw(this,e);var n=this.right.remove(e);return n===oc?(this.right=null,this.count-=1,ni):(n===ni&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?oc:ua;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}Rp(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Rp(this,this.left):Rp(this,this.right);return ni}for(var s=Xc.ge(this.leftPoints,e,py);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function uO(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return lO(this.rightPoints,e,t)}else return uO(this.leftPoints,t)};Ul.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?lO(this.rightPoints,e,r):uO(this.leftPoints,r)};function rF(e,t){return e-t}function py(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function my(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Na(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(j=H,M=H):(j=Math.min(j,H),M=Math.max(M,H)),E.push(u({index:H,isScrolling:T,key:p(H),parent:n,style:(ge={height:s.getHeight(H)},$(ge,S==="ltr"?"left":"right",ie),$(ge,"position","absolute"),$(ge,"top",oe),$(ge,"width",s.getWidth(H)),ge)}))}),k0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),$(this,"_cellMeasurerCache",void 0),$(this,"_columnIndexOffset",void 0),$(this,"_rowIndexOffset",void 0),$(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),$(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 mt(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 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 Gt(e){for(var t=1;t0?new Op({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Op({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new Op({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return mt(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=Ns(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 A.createElement("div",{style:this._containerOuterStyle},A.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(u),this._renderTopRightGrid(Gt({},u,{onScroll:o,scrollLeft:f}))),A.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Gt({},u,{onScroll:o,scrollTop:d})),this._renderBottomRightGrid(Gt({},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}(A.PureComponent);$(Sd,"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});Sd.propTypes={};Bl(Sd);var cO=function(e){dr(t,e);function t(r,n){var o;return ft(this,t),o=fr(this,Ft(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Y(o)),o}return mt(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}(A.PureComponent);cO.propTypes={};function uF(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 _=Object.keys(a);_.forEach(function(w){w!==d&&delete a[w]}),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 fO(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function dO(e){var t=e.cellData;return t==null?"":String(t)}function gy(e){var t=e.className,r=e.columns,n=e.style;return A.createElement("div",{className:t,role:"row",style:n},r)}gy.propTypes=null;var Jn={ASC:"ASC",DESC:"DESC"};function yy(e){var t=e.sortDirection,r=cn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Jn.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Jn.DESC});return A.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===Jn.ASC?A.createElement("path",{d:"M7 14l5-5 5 5z"}):A.createElement("path",{d:"M7 10l5 5 5-5z"}),A.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}yy.propTypes={};function Sy(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[A.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return i&&a.push(A.createElement(yy,{key:"SortIndicator",sortDirection:o})),a}Sy.propTypes=null;function _y(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(_){return i({event:_,index:n,rowData:f})}),a&&(p.onDoubleClick=function(_){return a({event:_,index:n,rowData:f})}),s&&(p.onMouseOut=function(_){return s({event:_,index:n,rowData:f})}),u&&(p.onMouseOver=function(_){return u({event:_,index:n,rowData:f})}),c&&(p.onContextMenu=function(_){return c({event:_,index:n,rowData:f})})),A.createElement("div",de({},p,{className:t,key:o,role:"row",style:d}),r)}_y.propTypes=null;var wy=function(e){dr(t,e);function t(){return ft(this,t),fr(this,Ft(t).apply(this,arguments))}return t}(A.Component);$(wy,"defaultProps",{cellDataGetter:fO,cellRenderer:dO,defaultSortDirection:Jn.ASC,flexGrow:0,flexShrink:1,headerRenderer:Sy,style:{}});wy.propTypes={};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 Vi(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=Al.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,_=o.id,w=o.noRowsRenderer,g=o.rowClassName,R=o.rowStyle,v=o.scrollToIndex,S=o.style,b=o.width,T=this.state.scrollbarWidth,P=s?p:p-f,E=typeof g=="function"?g({index:-1}):g,x=typeof R=="function"?R({index:-1}):R;return this._cachedColumnStyles=[],A.Children.toArray(i).forEach(function(k,I){var j=n._getFlexStyleForColumn(k,k.props.style);n._cachedColumnStyles[I]=Vi({overflow:"hidden"},j)}),A.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":A.Children.toArray(i).length,"aria-rowcount":this.props.rowCount,className:cn("ReactVirtualized__Table",a),id:_,role:"grid",style:S},!s&&d({className:cn("ReactVirtualized__Table__headerRow",E),columns:this._getHeaderColumns(),style:Vi({height:f,overflow:"hidden",paddingRight:T,width:b},x)}),A.createElement(Xn,de({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:cn("ReactVirtualized__Table__Grid",u),cellRenderer:this._createRow,columnWidth:b,columnCount:1,height:P,id:void 0,noContentRenderer:w,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:T,scrollToRow:v,style:Vi({},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,_=d.cellRenderer,w=d.className,g=d.columnData,R=d.dataKey,v=d.id,S=p({columnData:g,dataKey:R,rowData:u}),b=_({cellData:S,columnData:g,columnIndex:i,dataKey:R,isScrolling:a,parent:s,rowData:u,rowIndex:c}),T=function(k){f&&f({columnData:g,dataKey:R,event:k})},P=this._cachedColumnStyles[i],E=typeof b=="string"?b:null;return A.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:cn("ReactVirtualized__Table__rowColumn",w),key:"Row"+c+"-Col"+i,onClick:T,role:"gridcell",style:P,title:E},b)}},{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,_=o.props,w=_.columnData,g=_.dataKey,R=_.defaultSortDirection,v=_.disableSort,S=_.headerRenderer,b=_.id,T=_.label,P=!v&&f,E=cn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:P}),x=this._getFlexStyleForColumn(o,Vi({},u,{},o.props.headerStyle)),k=S({columnData:w,dataKey:g,disableSort:v,label:T,sortBy:d,sortDirection:p}),I,j,M,D,U;if(P||c){var H=d!==g,ie=H?R:p===Jn.DESC?Jn.ASC:Jn.DESC,oe=function(se){P&&f({defaultSortDirection:R,event:se,sortBy:g,sortDirection:ie}),c&&c({columnData:w,dataKey:g,event:se})},ge=function(se){(se.key==="Enter"||se.key===" ")&&oe(se)};U=o.props["aria-label"]||T||g,D="none",M=0,I=oe,j=ge}return d===g&&(D=p===Jn.ASC?"ascending":"descending"),A.createElement("div",{"aria-label":U,"aria-sort":D,className:E,id:b,key:"Header-Col"+i,onClick:I,onKeyDown:j,role:"columnheader",style:x,tabIndex:M},k)}},{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,_=f.onRowDoubleClick,w=f.onRowRightClick,g=f.onRowMouseOver,R=f.onRowMouseOut,v=f.rowClassName,S=f.rowGetter,b=f.rowRenderer,T=f.rowStyle,P=this.state.scrollbarWidth,E=typeof v=="function"?v({index:i}):v,x=typeof T=="function"?T({index:i}):T,k=S({index:i}),I=A.Children.toArray(d).map(function(D,U){return o._createColumn({column:D,columnIndex:U,isScrolling:a,parent:u,rowData:k,rowIndex:i,scrollbarWidth:P})}),j=cn("ReactVirtualized__Table__row",E),M=Vi({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:P},x);return b({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:_,onRowRightClick:w,onRowMouseOver:g,onRowMouseOut:R,rowData:k,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=Vi({},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?[]:A.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}(A.PureComponent);$(by,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:uy,overscanRowCount:10,rowRenderer:_y,headerRowRenderer:gy,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});by.propTypes={};var No=[],Ys=null,di=null;function hO(){di&&(di=null,document.body&&Ys!=null&&(document.body.style.pointerEvents=Ys),Ys=null)}function cF(){hO(),No.forEach(function(e){return e.__resetIsScrolling()})}function fF(){di&&Aa(di);var e=0;No.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),di=ly(cF,e)}function pO(e){e.currentTarget===window&&Ys==null&&document.body&&(Ys=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),fF(),No.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function Hw(e,t){No.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",pO),No.push(e)}function qw(e,t){No=No.filter(function(r){return r!==e}),No.length||(t.removeEventListener("scroll",pO),di&&(Aa(di),hO()))}var xy=function(t){return t===window},Ms=function(t){return t.getBoundingClientRect()};function Gw(e,t){if(e)if(xy(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 Ms(e);else return{height:t.serverHeight,width:t.serverWidth}}function dF(e,t){if(xy(t)&&document.documentElement){var r=document.documentElement,n=Ms(e),o=Ms(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=mO(t),a=Ms(e),s=Ms(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function mO(e){return xy(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 Vw,Kw;function Yw(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 hF(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||Al.findDOMNode(this);if(u instanceof Element&&n){var c=dF(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var f=Gw(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=eO(),this.updatePosition(n),n&&(Hw(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),qw(this,a),Hw(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(qw(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}(A.PureComponent),$(Vw,"propTypes",null),Kw);$(gO,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:pF,scrollElement:vO(),serverHeight:0,serverWidth:0});const mF=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:cy,AutoSizer:tO,CellMeasurer:rO,CellMeasurerCache:wD,Collection:fy,Column:wy,ColumnSizer:nO,Grid:Xn,InfiniteLoader:dy,List:iO,Masonry:vy,MultiGrid:Sd,ScrollSync:cO,SortDirection:Jn,SortIndicator:yy,Table:by,WindowScroller:gO,accessibilityOverscanIndicesGetter:uy,createMasonryCellPositioner:lF,createTableMultiSort:uF,defaultCellRangeRenderer:ZT,defaultOverscanIndicesGetter:JT,defaultTableCellDataGetter:fO,defaultTableCellRenderer:dO,defaultTableHeaderRenderer:Sy,defaultTableHeaderRowRenderer:gy,defaultTableRowRenderer:_y},Symbol.toStringTag,{value:"Module"})),vF=Ba(mF);function Vn(e,t,r){return t<=e&&e<=r}function _d(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function gF(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 yF(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var Jc=-1;function Cy(e){this.tokens=[].slice.call(e)}Cy.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Jc},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 Ma=-1;function Pp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Zc="utf-8";function ef(e,t){if(!(this instanceof ef))return new ef(e,t);if(e=e!==void 0?String(e).toLowerCase():Zc,e!==Zc)throw new Error("Encoding not supported. Only utf-8 is supported");t=_d(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})}ef.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=_d(r),this._streaming||(this._decoder=new SF({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new Cy(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==Ma);)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===Ma)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),yF(i)}};function tf(e,t){if(!(this instanceof tf))return new tf(e,t);if(e=e!==void 0?String(e).toLowerCase():Zc,e!==Zc)throw new Error("Encoding not supported. Only utf-8 is supported");t=_d(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}tf.prototype={encode:function(t,r){t=t?String(t):"",r=_d(r),this._streaming||(this._encoder=new _F(this._options)),this._streaming=!!r.stream;for(var n=[],o=new Cy(gF(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Ma);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Ma;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function SF(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===Jc&&o!==0)return o=0,Pp(t);if(u===Jc)return Ma;if(o===0){if(Vn(u,0,127))return u;if(Vn(u,194,223))o=1,r=u-192;else if(Vn(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(Vn(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Pp(t);return r=r<<6*o,null}if(!Vn(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Pp(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 _F(e){e.fatal,this.handler=function(t,r){if(r===Jc)return Ma;if(Vn(r,0,127))return r;var n,o;Vn(r,128,2047)?(n=1,o=192):Vn(r,2048,65535)?(n=2,o=224):Vn(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 wF=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:ef,TextEncoder:tf},Symbol.toStringTag,{value:"Module"})),bF=Ba(wF);var Qw={},Xw;function xF(){return Xw||(Xw=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 k={next:function(){var I=x.shift();return{done:I===void 0,value:I}}};return t.iterable&&(k[Symbol.iterator]=function(){return k}),k}function u(x){this.map={},x instanceof u?x.forEach(function(k,I){this.append(I,k)},this):Array.isArray(x)?x.forEach(function(k){this.append(k[0],k[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(k){this.append(k,x[k])},this)}u.prototype.append=function(x,k){x=i(x),k=a(k);var I=this.map[x];this.map[x]=I?I+","+k:k},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,k){this.map[i(x)]=a(k)},u.prototype.forEach=function(x,k){for(var I in this.map)this.map.hasOwnProperty(I)&&x.call(k,this.map[I],I,this)},u.prototype.keys=function(){var x=[];return this.forEach(function(k,I){x.push(I)}),s(x)},u.prototype.values=function(){var x=[];return this.forEach(function(k){x.push(k)}),s(x)},u.prototype.entries=function(){var x=[];return this.forEach(function(k,I){x.push([I,k])}),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(k,I){x.onload=function(){k(x.result)},x.onerror=function(){I(x.error)}})}function d(x){var k=new FileReader,I=f(k);return k.readAsArrayBuffer(x),I}function p(x){var k=new FileReader,I=f(k);return k.readAsText(x),I}function _(x){for(var k=new Uint8Array(x),I=new Array(k.length),j=0;j-1?k:x}function S(x,k){k=k||{};var I=k.body;if(x instanceof S){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,k.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=k.credentials||this.credentials||"omit",(k.headers||!this.headers)&&(this.headers=new u(k.headers)),this.method=v(k.method||this.method||"GET"),this.mode=k.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)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function b(x){var k=new FormData;return x.trim().split("&").forEach(function(I){if(I){var j=I.split("="),M=j.shift().replace(/\+/g," "),D=j.join("=").replace(/\+/g," ");k.append(decodeURIComponent(M),decodeURIComponent(D))}}),k}function T(x){var k=new u,I=x.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(j){var M=j.split(":"),D=M.shift().trim();if(D){var U=M.join(":").trim();k.append(D,U)}}),k}g.call(S.prototype);function P(x,k){k||(k={}),this.type="default",this.status=k.status===void 0?200:k.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in k?k.statusText:"OK",this.headers=new u(k.headers),this.url=k.url||"",this._initBody(x)}g.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},P.error=function(){var x=new P(null,{status:0,statusText:""});return x.type="error",x};var E=[301,302,303,307,308];P.redirect=function(x,k){if(E.indexOf(k)===-1)throw new RangeError("Invalid status code");return new P(null,{status:k,headers:{location:x}})},e.Headers=u,e.Request=S,e.Response=P,e.fetch=function(x,k){return new Promise(function(I,j){var M=new S(x,k),D=new XMLHttpRequest;D.onload=function(){var U={status:D.status,statusText:D.statusText,headers:T(D.getAllResponseHeaders()||"")};U.url="responseURL"in D?D.responseURL:U.headers.get("X-Request-URL");var H="response"in D?D.response:D.responseText;I(new P(H,U))},D.onerror=function(){j(new TypeError("Network request failed"))},D.ontimeout=function(){j(new TypeError("Network request failed"))},D.open(M.method,M.url,!0),M.credentials==="include"?D.withCredentials=!0:M.credentials==="omit"&&(D.withCredentials=!1),"responseType"in D&&t.blob&&(D.responseType="blob"),M.headers.forEach(function(U,H){D.setRequestHeader(H,U)}),D.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:oi)),Qw}function Jw(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");By(this)}},Dn(e,[{key:"closed",get:function(){return ui(this)===!1?Promise.reject(ju("closed")):this._closedPromise}}]),e}(),QW=function(){function e(r){if(!qn(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(Qi(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(bo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");HO(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return $s(this)?this._ownerReadableStream===void 0?Promise.reject(cf("cancel")):qO(this,n):Promise.reject(zu("cancel"))},t.read=function(n){return $s(this)?this._ownerReadableStream===void 0?Promise.reject(cf("read from")):ArrayBuffer.isView(n)?of(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")):XW(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(zu("read"))},t.releaseLock=function(){if(!$s(this))throw zu("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");By(this)}},Dn(e,[{key:"closed",get:function(){return $s(this)?this._closedPromise:Promise.reject(zu("closed"))}}]),e}();function $s(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function ui(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function HO(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?fB(e):t._state==="closed"?hB(e):(dB(e,t._storedError),e._closedPromise.catch(function(){}))}function qO(e,t){var r=e._ownerReadableStream;return hi(r,t)}function By(e){e._ownerReadableStream._state==="readable"?iP(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):pB(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 XW(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):tB(n._readableStreamController,t,r)}function Uy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Fo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[My](t)}var GO=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(Iu(this)===!1)throw Au("close");if(uf(this)===!1)throw new TypeError("The stream is not in a state that permits close");sf(this)},t.enqueue=function(n){if(Iu(this)===!1)throw Au("enqueue");if(uf(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return lf(this,n)},t.error=function(n){if(Iu(this)===!1)throw Au("error");Wo(this,n)},t[Ny]=function(r){ns(this);var n=this._cancelAlgorithm(r);return af(this),n},t[My]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=$W(this);return this._closeRequested===!0&&this._queue.length===0?(af(this),ql(n)):xl(this),Promise.resolve(Fo(o,!1,r))}var i=FO(n,r);return xl(this),i},Dn(e,[{key:"desiredSize",get:function(){if(Iu(this)===!1)throw Au("desiredSize");return Hy(this)}}]),e}();function Iu(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function xl(e){var t=VO(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,xl(e)},function(n){Wo(e,n)}).catch(Kn)}}function VO(e){var t=e._controlledReadableStream;if(uf(e)===!1||e._started===!1)return!1;if(bo(t)===!0&&Rd(t)>0)return!0;var r=Hy(e);return r>0}function af(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function sf(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(af(e),ql(t))}function lf(e,t){var r=e._controlledReadableStream;if(bo(r)===!0&&Rd(r)>0)Fy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Wo(e,o),o}try{DW(e,t,n)}catch(o){throw Wo(e,o),o}}xl(e)}function Wo(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(ns(e),af(e),WO(r,t))}function Hy(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function JW(e){return VO(e)!==!0}function uf(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function KO(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ns(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,xl(t)},function(u){Wo(t,u)}).catch(Kn)}function ZW(e,t,r,n){var o=Object.create(GO.prototype);function i(){return DO(t,"start",[o])}var a=nf(t,"pull",0,[o]),s=nf(t,"cancel",1,[]);KO(e,o,i,a,s,r,n)}var eB=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(jp(this)===!1)throw zp("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(of(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");sB(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(jp(this)===!1)throw zp("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(of(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");lB(this._associatedReadableByteStreamController,n)},Dn(e,[{key:"view",get:function(){if(jp(this)===!1)throw zp("view");return this._view}}]),e}(),YO=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(Qi(this)===!1)throw Rs("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");iB(this)},t.enqueue=function(n){if(Qi(this)===!1)throw Rs("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(of(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");aB(this,n)},t.error=function(n){if(Qi(this)===!1)throw Rs("error");Gl(this,n)},t[Ny]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}ns(this);var o=this._cancelAlgorithm(r);return Td(this),o},t[My]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,eP(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(f){return Promise.reject(f)}return Promise.resolve(Fo(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=FO(n,r);return ki(this),c},Dn(e,[{key:"byobRequest",get:function(){if(Qi(this)===!1)throw Rs("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(eB.prototype);cB(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(Qi(this)===!1)throw Rs("desiredSize");return nP(this)}}]),e}();function Qi(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function jp(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function ki(e){var t=oB(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,ki(e))},function(n){Gl(e,n)}).catch(Kn)}}function QO(e){Gy(e),e._pendingPullIntos=[]}function qy(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=XO(t);t.readerType==="default"?Fy(e,n,r):KW(e,n,r)}function XO(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function ic(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function JO(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;AW(t.buffer,p,f.buffer,f.byteOffset,d),f.byteLength===d?c.shift():(f.byteOffset+=d,f.byteLength-=d),e._queueTotalSize-=d,ZO(e,d,t),s-=d}return u}function ZO(e,t,r){Gy(e),r.bytesFilled+=t}function eP(e){e._queueTotalSize===0&&e._closeRequested===!0?(Td(e),ql(e._controlledReadableByteStream)):ki(e)}function Gy(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function tP(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];JO(e,t)===!0&&(Vy(e),qy(e._controlledReadableByteStream,t))}}function tB(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Cd(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),sb(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Fo(u,!0,r))}if(e._queueTotalSize>0){if(JO(e,s)===!0){var c=XO(s);return eP(e),Promise.resolve(Fo(c,!1,r))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return Gl(e,f),Promise.reject(f)}}e._pendingPullIntos.push(s);var d=sb(n,r);return ki(e),d}function rB(e,t){t.buffer=Cd(t.buffer);var r=e._controlledReadableByteStream;if(Wy(r)===!0)for(;BO(r)>0;){var n=Vy(e);qy(r,n)}}function nB(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(ZO(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);ic(e,i,0,i.byteLength)}r.buffer=Cd(r.buffer),r.bytesFilled-=n,qy(e._controlledReadableByteStream,r),tP(e)}}function rP(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");rB(e,r)}else nB(e,t,r);ki(e)}function Vy(e){var t=e._pendingPullIntos.shift();return Gy(e),t}function oB(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(UO(t)===!0&&Rd(t)>0||Wy(t)===!0&&BO(t)>0)return!0;var r=nP(e);return r>0}function Td(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function iB(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 Gl(e,n),n}}Td(e),ql(t)}function aB(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Cd(n);if(UO(r)===!0)if(Rd(r)===0)ic(e,a,o,i);else{var s=new Uint8Array(a,o,i);Fy(r,s,!1)}else Wy(r)===!0?(ic(e,a,o,i),tP(e)):ic(e,a,o,i);ki(e)}function Gl(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(QO(e),ns(e),Td(e),WO(r,t))}function nP(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function sB(e,t){if(t=Number(t),NW(t)===!1)throw new RangeError("bytesWritten must be a finite");rP(e,t)}function lB(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,rP(e,t.byteLength)}function oP(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,QO(t),t._queue=t._queueTotalSize=void 0,ns(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=ev(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,ki(t)},function(u){Gl(t,u)}).catch(Kn)}function uB(e,t,r){var n=Object.create(YO.prototype);function o(){return DO(t,"start",[n])}var i=nf(t,"pull",0,[n]),a=nf(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),CF(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");oP(e,n,o,i,a,r,s)}function cB(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function lb(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 Ki(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function cf(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function ju(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function fB(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function dB(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function hB(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function iP(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function pB(e,t){e._closedPromise=Promise.reject(t)}function mB(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function zu(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Au(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function zp(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Rs(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var vB=Go.ReadableStream,gB=He.createDataProperty,yB=function(){function e(r){var n=r.highWaterMark;gB(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),SB=He.createDataProperty,_B=function(){function e(r){var n=r.highWaterMark;SB(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();_O("streams:transform-stream:verbose");var wB=He.InvokeOrNoop,bB=He.CreateAlgorithmFromUnderlyingMethod,xB=He.PromiseCall,aP=He.typeIsObject,ub=He.ValidateAndNormalizeHighWaterMark;He.IsNonNegativeNumber;var cb=He.MakeSizeAlgorithmFromSizeFunction,CB=Go.CreateReadableStream,sP=Go.ReadableStreamDefaultControllerClose,RB=Go.ReadableStreamDefaultControllerEnqueue,TB=Go.ReadableStreamDefaultControllerError,OB=Go.ReadableStreamDefaultControllerGetDesiredSize,PB=Go.ReadableStreamDefaultControllerHasBackpressure,Ky=Go.ReadableStreamDefaultControllerCanCloseOrEnqueue,EB=gn.CreateWritableStream,kB=gn.WritableStreamDefaultControllerErrorIfNeeded,lP=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=cb(o);i===void 0&&(i=1),i=ub(i);var f=t.readableType;if(f!==void 0)throw new RangeError("Invalid readable type specified");var d=cb(a);s===void 0&&(s=0),s=ub(s);var p,_=new Promise(function(g){p=g});uP(this,_,i,c,s,d),jB(this,t);var w=wB(t,"start",[this._transformStreamController]);p(w)}return Dn(e,[{key:"readable",get:function(){if(fb(this)===!1)throw hb("readable");return this._readable}},{key:"writable",get:function(){if(fb(this)===!1)throw hb("writable");return this._writable}}]),e}();function IB(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(lP.prototype),u,c=new Promise(function(p){u=p});uP(s,c,n,o,i,a);var f=Object.create(cP.prototype);fP(s,f,t,r);var d=e();return u(d),s}function uP(e,t,r,n,o,i){function a(){return t}function s(p){return NB(e,p)}function u(p){return MB(e,p)}function c(){return LB(e)}e._writable=EB(a,s,c,u,r,n);function f(){return $B(e)}function d(p){return Pd(e,p),Promise.resolve()}e._readable=CB(a,f,d,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Ed(e,!0),e._transformStreamController=void 0}function fb(e){return!(!aP(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Od(e,t){TB(e._readable._readableStreamController,t),Pd(e,t)}function Pd(e,t){dP(e._transformStreamController),kB(e._writable._writableStreamController,t),e._backpressure===!0&&Ed(e,!1)}function Ed(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var cP=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Nu(this)===!1)throw Mu("enqueue");hP(this,n)},t.error=function(n){if(Nu(this)===!1)throw Mu("error");zB(this,n)},t.terminate=function(){if(Nu(this)===!1)throw Mu("terminate");AB(this)},Dn(e,[{key:"desiredSize",get:function(){if(Nu(this)===!1)throw Mu("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return OB(n)}}]),e}();function Nu(e){return!(!aP(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function fP(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function jB(e,t){var r=Object.create(cP.prototype),n=function(s){try{return hP(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 xB(o,t,[s,r])}}var i=bB(t,"flush",0,[r]);fP(e,r,n,i)}function dP(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function hP(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(Ky(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{RB(n,t)}catch(i){throw Pd(r,i),r._readable._storedError}var o=PB(n);o!==r._backpressure&&Ed(r,!0)}function zB(e,t){Od(e._controlledTransformStream,t)}function db(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Od(e._controlledTransformStream,n),n})}function AB(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;Ky(r)===!0&&sP(r);var n=new TypeError("TransformStream terminated");Pd(t,n)}function NB(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 db(r,t)})}return db(r,t)}function MB(e,t){return Od(e,t),Promise.resolve()}function LB(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return dP(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;Ky(o)===!0&&sP(o)}).catch(function(o){throw Od(e,o),t._storedError})}function $B(e){return Ed(e,!1),e._backpressureChangePromise}var DB={CreateTransformStream:IB,TransformStream:lP};function Mu(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function hb(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var FB=DB.TransformStream;const WB=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:yB,CountQueuingStrategy:_B,ReadableStream:vB,TransformStream:FB,WritableStream:zW},Symbol.toStringTag,{value:"Module"})),BB=Ba(WB);function UB(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 HB=class pP{constructor(t={}){this.h={},t instanceof pP&&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])}),qB(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function qB(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Ap(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function pb({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,_)=>{if(o.body&&(f==="GET"||f==="HEAD")&&_(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),d)if(d.aborted){_(Ap());return}else d.addEventListener("abort",()=>{i.abort(),s&&s.error(Ap()),_(Ap())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:KB(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:VB(i.responseURL,n)})},i.onerror=function(){return _(new TypeError("Network request failed"))},i.ontimeout=function(){_(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const w=a(i.response);s.enqueue(w)}},i.onload=function(){s.close()},i.send(o.body)})}}function GB(){return typeof Headers<"u"?new Headers:new HB}function VB(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function KB(e){const t=GB();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 Np=null;function YB(){return Np||(Np=QB()),Np}function QB(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return UB;const e="moz-chunked-arraybuffer";return XB(e)?pb({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):pb({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 XB(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function Yy(e,t={}){let r=t.transport;return r||(r=Yy.transportFactory()),r(e,t)}Yy.transportFactory=YB;const JB=Object.freeze(Object.defineProperty({__proto__:null,default:Yy},Symbol.toStringTag,{value:"Module"})),ZB=Ba(JB);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?oi: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=A},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(` +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=QT,t.componentWillReceiveProps=XT),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=JT;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,f,d){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,c,f,p)}}return e}function ZT(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0&&u===s&&c())}function Ns(e,t){if(e==null)return{};var r=Zt(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 oD=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;ft(this,e),$(this,"_cellSizeAndPositionData",{}),$(this,"_lastMeasuredIndex",-1),$(this,"_lastBatchedIndex",-1),$(this,"_cellCount",void 0),$(this,"_cellSizeGetter",void 0),$(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return mt(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}(),iD=15e5,aD=16777100,sD=function(){return typeof window<"u"},lD=function(){return!!window.chrome},uD=function(){return sD()&&lD()?aD:iD},gb=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?uD():r,o=Ns(t,["maxScrollSize"]);ft(this,e),$(this,"_cellSizeAndPositionManager",void 0),$(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new oD(o),this._maxScrollSize=n}return mt(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 za(){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 Pu=-1,Un=1;function eO(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===Un?{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 yb(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,_=e.updateScrollIndexCallback,b=r.getCellCount(),g=f>=0&&f0&&(dr.getTotalSize()-d&&_(b-1)}function tO(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,_=e.rowStopIndex,b=e.styleCache,g=e.verticalOffsetAdjustment,R=e.visibleColumnIndices,v=e.visibleRowIndices,S=[],w=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),T=!u&&!w,E=p;E<=_;E++)for(var P=d.getSizeAndPositionOfCell(E),x=o;x<=i;x++){var k=n.getSizeAndPositionOfCell(x),I=x>=R.start&&x<=R.stop&&E>=v.start&&E<=v.stop,j="".concat(E,"-").concat(x),M=void 0;T&&b[j]?M=b[j]:a&&!a.has(E,x)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:P.size,left:k.offset+s,position:"absolute",top:P.offset+g,width:k.size},b[j]=M);var D={columnIndex:x,isScrolling:u,isVisible:I,key:j,parent:f,rowIndex:E,style:M},U=void 0;(c||u)&&!s&&!g?(t[j]||(t[j]=r(D)),U=t[j]):U=r(D),!(U==null||U===!1)&&S.push(U)}return S}const cD=!!(typeof window<"u"&&window.document&&window.document.createElement);var ku;function Jm(e){if((!ku&&ku!==0||e)&&cD){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),ku=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ku}var ar;typeof window<"u"?ar=window:typeof self<"u"?ar=self:ar={};var fD=ar.requestAnimationFrame||ar.webkitRequestAnimationFrame||ar.mozRequestAnimationFrame||ar.oRequestAnimationFrame||ar.msRequestAnimationFrame||function(e){return ar.setTimeout(e,1e3/60)},dD=ar.cancelAnimationFrame||ar.webkitCancelAnimationFrame||ar.mozCancelAnimationFrame||ar.oCancelAnimationFrame||ar.msCancelAnimationFrame||function(e){ar.clearTimeout(e)},Sb=fD,hD=dD,Aa=function(t){return hD(t.id)},ly=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=Sb(a)},i={id:Sb(o)};return i},_b,bb;function wb(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 Xo(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 mt(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=Xo({},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,_=this.state.instanceProps,b=_.scrollbarSize,g=_.rowSizeAndPositionManager.getTotalSize(),R=_.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,R-p+b),i),S=Math.min(Math.max(0,g-d+b),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==S){var w=v!==this.state.scrollLeft?v>this.state.scrollLeft?Un:Pu:this.state.scrollDirectionHorizontal,T=S!==this.state.scrollTop?S>this.state.scrollTop?Un:Pu:this.state.scrollDirectionVertical,E={isScrolling:!0,scrollDirectionHorizontal:w,scrollDirectionVertical:T,scrollPositionChangeReason:Rp.OBSERVED};c||(E.scrollTop=S),f||(E.scrollLeft=v),E.needToResetStyleCache=!1,this.setState(E)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:S,totalColumnsWidth:R,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===Un?i<=c:i>=c),this._recomputeScrollTopFlag=f>=0&&(this.state.scrollDirectionVertical===Un?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(Xo({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(Xo({},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(b){var g=Xo({},b,{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 _=i>0&&f>0;s>=0&&_&&this._updateScrollLeftForScrollToColumn(),c>=0&&_&&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,_=a.scrollToColumn,b=a.scrollToRow,g=a.width,R=this.state,v=R.scrollLeft,S=R.scrollPositionChangeReason,w=R.scrollTop,T=R.instanceProps;this._handleInvalidatedGridSize();var E=c>0&&n.columnCount===0||d>0&&n.rowCount===0;S===Rp.REQUESTED&&(!u&&v>=0&&(v!==this._scrollingContainer.scrollLeft||E)&&(this._scrollingContainer.scrollLeft=v),!s&&w>=0&&(w!==this._scrollingContainer.scrollTop||E)&&(this._scrollingContainer.scrollTop=w));var P=(n.width===0||n.height===0)&&f>0&&g>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):yb({cellSizeAndPositionManager:T.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:_,size:g,sizeJustIncreasedFromZero:P,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):yb({cellSizeAndPositionManager:T.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:w,scrollToAlignment:p,scrollToIndex:b,size:f,sizeJustIncreasedFromZero:P,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||w!==o.scrollTop){var x=T.rowSizeAndPositionManager.getTotalSize(),k=T.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:w,totalColumnsWidth:k,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Aa(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,_=n.noContentRenderer,b=n.role,g=n.style,R=n.tabIndex,v=n.width,S=this.state,w=S.instanceProps,T=S.needToResetStyleCache,E=this._isScrolling(),P={boxSizing:"border-box",direction:"ltr",height:i?"auto":d,position:"relative",width:a?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};T&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=w.columnSizeAndPositionManager.getTotalSize(),k=w.rowSizeAndPositionManager.getTotalSize(),I=k>d?w.scrollbarSize:0,j=x>v?w.scrollbarSize:0;(j!==this._horizontalScrollBarSize||I!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=j,this._verticalScrollBarSize=I,this._scrollbarPresenceChanged=!0),P.overflowX=x+I<=v?"hidden":"auto",P.overflowY=k+j<=d?"hidden":"auto";var M=this._childrenToDisplay,D=M.length===0&&d>0&&v>0;return A.createElement("div",de({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:cn("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:b,style:Xo({},P,{},g),tabIndex:R}),M.length>0&&A.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:Xo({width:o?"auto":x,height:k,maxWidth:x,maxHeight:k,overflow:"hidden",pointerEvents:E?"none":"",position:"relative"},f)},M),D&&_())}},{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,_=n.rowCount,b=n.width,g=n.isScrollingOptOut,R=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,S=o.instanceProps,w=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,T=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,E=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&b>0){var P=S.columnSizeAndPositionManager.getVisibleCellRange({containerSize:b,offset:T}),x=S.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:w}),k=S.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:b,offset:T}),I=S.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:w});this._renderedColumnStartIndex=P.start,this._renderedColumnStopIndex=P.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var j=d({direction:"horizontal",cellCount:s,overscanCellsCount:f,scrollDirection:R,startIndex:typeof P.start=="number"?P.start:0,stopIndex:typeof P.stop=="number"?P.stop:-1}),M=d({direction:"vertical",cellCount:_,overscanCellsCount:p,scrollDirection:v,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),D=j.overscanStartIndex,U=j.overscanStopIndex,H=M.overscanStartIndex,ie=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var oe=H;oe<=ie;oe++)if(!u.has(oe,0)){D=0,U=s-1;break}}if(!u.hasFixedWidth()){for(var ge=D;ge<=U;ge++)if(!u.has(0,ge)){H=0,ie=_-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:S.columnSizeAndPositionManager,columnStartIndex:D,columnStopIndex:U,deferredMeasurementCache:u,horizontalOffsetAdjustment:k,isScrolling:E,isScrollingOptOut:g,parent:this,rowSizeAndPositionManager:S.rowSizeAndPositionManager,rowStartIndex:H,rowStopIndex:ie,scrollLeft:T,scrollTop:w,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:P,visibleRowIndices:x}),this._columnStartIndex=D,this._columnStopIndex=U,this._rowStartIndex=H,this._rowStopIndex=ie}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Aa(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=ly(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalColumnsWidth,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(f){var d=f.scrollLeft,p=f.scrollTop,_=o.props,b=_.height,g=_.onScroll,R=_.width;g({clientHeight:b,clientWidth:R,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 vb({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)}}),vb({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,Xo({},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:Rp.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?Un:Pu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?Un:Pu,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,_=u<0?p:Math.min(p,u),b=d.rowSizeAndPositionManager.getTotalSize(),g=d.scrollbarSizeMeasured&&b>a?d.scrollbarSize:0;return d.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-g,currentOffset:f,targetIndex:_})}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,_=u<0?p:Math.min(p,u),b=d.columnSizeAndPositionManager.getTotalSize(),g=d.scrollbarSizeMeasured&&b>c?d.scrollbarSize:0;return d.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-g,currentOffset:f,targetIndex:_})}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}(A.PureComponent),$(_b,"propTypes",null),bb);$(Xn,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:tO,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Jm,noContentRenderer:mD,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:eO,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:pD,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Ul(Xn);var vD=1;function uy(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===vD?{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 xb,Cb;function Rb(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 gD(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=k.head||k.getElementsByTagName("head")[0],M=k.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(k.createTextNode(I)),j.appendChild(M)}},E=function(k,I){if(n)k.attachEvent("onresize",I);else{if(!k.__resizeTriggers__){var j=k.ownerDocument,M=r.getComputedStyle(k);M&&M.position=="static"&&(k.style.position="relative"),T(j),k.__resizeLast__={},k.__resizeListeners__=[],(k.__resizeTriggers__=j.createElement("div")).className="resize-triggers";var D='
';if(window.trustedTypes){var U=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return D}});k.__resizeTriggers__.innerHTML=U.createHTML("")}else k.__resizeTriggers__.innerHTML=D;k.appendChild(k.__resizeTriggers__),a(k),k.addEventListener("scroll",u,!0),d&&(k.__resizeTriggers__.__animationListener__=function(ie){ie.animationName==v&&a(k)},k.__resizeTriggers__.addEventListener(d,k.__resizeTriggers__.__animationListener__))}k.__resizeListeners__.push(I)}},P=function(k,I){if(n)k.detachEvent("onresize",I);else if(k.__resizeListeners__.splice(k.__resizeListeners__.indexOf(I),1),!k.__resizeListeners__.length){k.removeEventListener("scroll",u,!0),k.__resizeTriggers__.__animationListener__&&(k.__resizeTriggers__.removeEventListener(d,k.__resizeTriggers__.__animationListener__),k.__resizeTriggers__.__animationListener__=null);try{k.__resizeTriggers__=!k.removeChild(k.__resizeTriggers__)}catch{}}};return{addResizeListener:E,removeResizeListener:P}}var Tb,Ob;function Eb(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 yD(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),$(this,"_cellHeightCache",{}),$(this,"_cellWidthCache",{}),$(this,"_columnWidthCache",{}),$(this,"_rowHeightCache",{}),$(this,"_defaultHeight",void 0),$(this,"_defaultWidth",void 0),$(this,"_minHeight",void 0),$(this,"_minWidth",void 0),$(this,"_keyMapper",void 0),$(this,"_hasFixedHeight",void 0),$(this,"_hasFixedWidth",void 0),$(this,"_columnCount",0),$(this,"_rowCount",0),$(this,"columnWidth",function(f){var d=f.index,p=t._keyMapper(0,d);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),$(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||wD,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:SD),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:_D)}return mt(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 R=u.getScrollPositionForCell({align:f,cellIndex:d,height:c,scrollLeft:b,scrollTop:g,width:p});(R.scrollLeft!==b||R.scrollTop!==g)&&n._setScrollPosition(R)}}),$(Y(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,_=n._scrollbarSize,b=c.getTotalSize(),g=b.height,R=b.width,v=Math.max(0,Math.min(R-p+_,s.target.scrollLeft)),S=Math.max(0,Math.min(g-f+_,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==S){var w=s.cancelable?Gi.OBSERVED:Gi.REQUESTED;n.state.isScrolling||d(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:w,scrollTop:S})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:S,totalWidth:R,totalHeight:g})}}),n._scrollbarSize=Jm(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return mt(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=Jm(),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,_=f.scrollTop;p===Gi.REQUESTED&&(d>=0&&d!==o.scrollLeft&&d!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=d),_>=0&&_!==o.scrollTop&&_!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=_)),(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,_=n.verticalOverscanSize,b=n.width,g=this.state,R=g.isScrolling,v=g.scrollLeft,S=g.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var w=a.getTotalSize(),T=w.height,E=w.width,P=Math.max(0,v-c),x=Math.max(0,S-_),k=Math.min(E,v+b+c),I=Math.min(T,S+u+_),j=u>0&&b>0?a.cellRenderers({height:I-x,isScrolling:R,width:k-P,x:P,y:x}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:b,willChange:"transform"},D=T>u?this._scrollbarSize:0,U=E>b?this._scrollbarSize:0;return M.overflowX=E+D<=b?"hidden":"auto",M.overflowY=T+U<=u?"hidden":"auto",A.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:cn("ReactVirtualized__Collection",s),id:f,onScroll:this._onScroll,role:"grid",style:xD({},M,{},p),tabIndex:0},i>0&&A.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:T,maxHeight:T,maxWidth:E,overflow:"hidden",pointerEvents:R?"none":"",width:E}},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})},CD)}},{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,_=o.props,b=_.height,g=_.onScroll,R=_.width;g({clientHeight:b,clientWidth:R,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:Gi.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:Gi.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:Gi.REQUESTED}:null}}]),t}(A.PureComponent);$(Sd,"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});Sd.propTypes={};Ul(Sd);var RD=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 mt(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}(),TD=100,OD=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TD;ft(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return mt(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 _=c;_<=f;_++){var b="".concat(p,".").concat(_);this._sections[b]||(this._sections[b]=new RD({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:_*this._sectionSize})),d.push(this._sections[b])}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 ED(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new OD(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 b=_.startIndex-1;if(!t({index:b}))_.startIndex=b;else break}return a}function MD(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 zb,Ab,sO=(Ab=zb=function(e){dr(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=cn("ReactVirtualized__List",o);return A.createElement(Xn,de({},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}(A.PureComponent),$(zb,"propTypes",null),Ab);$(sO,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:uy,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function LD(e){if(Array.isArray(e))return e}function $D(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 DD(){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 FD(e,t){return LD(e)||$D(e,t)||aO(e,t)||DD()}function WD(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 BD(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 UD(e,t,r,n,o){return typeof r=="function"?BD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):WD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function HD(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 qD(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 GD(e,t,r,n,o){return typeof r=="function"?qD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):HD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function VD(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 YD(e,t,r,n,o){return typeof r=="function"?KD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):VD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function QD(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 XD(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 JD(e,t,r,n,o){return typeof r=="function"?XD(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):QD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function ZD(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 eF(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 tF(e,t,r,n,o){return typeof r=="function"?eF(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):ZD(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const Jc={ge:UD,gt:GD,lt:YD,le:JD,eq:tF};var ua=0,ni=1,ic=2;function hy(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 Hl=hy.prototype;function Tp(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 lO(e,t){var r=Na(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 Nb(e,t){var r=e.intervals([]);r.push(t),lO(e,r)}function Mb(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?ua:(r.splice(n,1),lO(e,r),ni)}Hl.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};Hl.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?Nb(this,e):this.left.insert(e):this.left=Na([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Nb(this,e):this.right.insert(e):this.right=Na([e]);else{var r=Jc.ge(this.leftPoints,e,py),n=Jc.ge(this.rightPoints,e,my);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};Hl.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return Mb(this,e);var n=this.left.remove(e);return n===ic?(this.left=null,this.count-=1,ni):(n===ni&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return ua;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return Mb(this,e);var n=this.right.remove(e);return n===ic?(this.right=null,this.count-=1,ni):(n===ni&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?ic:ua;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}Tp(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Tp(this,this.left):Tp(this,this.right);return ni}for(var s=Jc.ge(this.leftPoints,e,py);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function fO(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return cO(this.rightPoints,e,t)}else return fO(this.leftPoints,t)};Hl.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?cO(this.rightPoints,e,r):fO(this.leftPoints,r)};function rF(e,t){return e-t}function py(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function my(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Na(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(j=H,M=H):(j=Math.min(j,H),M=Math.max(M,H)),P.push(u({index:H,isScrolling:T,key:p(H),parent:n,style:(ge={height:s.getHeight(H)},$(ge,S==="ltr"?"left":"right",ie),$(ge,"position","absolute"),$(ge,"top",oe),$(ge,"width",s.getWidth(H)),ge)}))}),k0&&arguments[0]!==void 0?arguments[0]:{};ft(this,e),$(this,"_cellMeasurerCache",void 0),$(this,"_columnIndexOffset",void 0),$(this,"_rowIndexOffset",void 0),$(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),$(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 mt(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 Wb(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 Gt(e){for(var t=1;t0?new Ep({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Ep({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new Ep({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return mt(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=Ns(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 A.createElement("div",{style:this._containerOuterStyle},A.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(u),this._renderTopRightGrid(Gt({},u,{onScroll:o,scrollLeft:f}))),A.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Gt({},u,{onScroll:o,scrollTop:d})),this._renderBottomRightGrid(Gt({},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}(A.PureComponent);$(_d,"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});_d.propTypes={};Ul(_d);var dO=function(e){dr(t,e);function t(r,n){var o;return ft(this,t),o=fr(this,Ft(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Y(o)),o}return mt(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}(A.PureComponent);dO.propTypes={};function uF(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 _=Object.keys(a);_.forEach(function(b){b!==d&&delete a[b]}),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 hO(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function pO(e){var t=e.cellData;return t==null?"":String(t)}function gy(e){var t=e.className,r=e.columns,n=e.style;return A.createElement("div",{className:t,role:"row",style:n},r)}gy.propTypes=null;var Jn={ASC:"ASC",DESC:"DESC"};function yy(e){var t=e.sortDirection,r=cn("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Jn.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Jn.DESC});return A.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===Jn.ASC?A.createElement("path",{d:"M7 14l5-5 5 5z"}):A.createElement("path",{d:"M7 10l5 5 5-5z"}),A.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}yy.propTypes={};function Sy(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[A.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return i&&a.push(A.createElement(yy,{key:"SortIndicator",sortDirection:o})),a}Sy.propTypes=null;function _y(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(_){return i({event:_,index:n,rowData:f})}),a&&(p.onDoubleClick=function(_){return a({event:_,index:n,rowData:f})}),s&&(p.onMouseOut=function(_){return s({event:_,index:n,rowData:f})}),u&&(p.onMouseOver=function(_){return u({event:_,index:n,rowData:f})}),c&&(p.onContextMenu=function(_){return c({event:_,index:n,rowData:f})})),A.createElement("div",de({},p,{className:t,key:o,role:"row",style:d}),r)}_y.propTypes=null;var by=function(e){dr(t,e);function t(){return ft(this,t),fr(this,Ft(t).apply(this,arguments))}return t}(A.Component);$(by,"defaultProps",{cellDataGetter:hO,cellRenderer:pO,defaultSortDirection:Jn.ASC,flexGrow:0,flexShrink:1,headerRenderer:Sy,style:{}});by.propTypes={};function Ub(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 Vi(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=Nl.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,_=o.id,b=o.noRowsRenderer,g=o.rowClassName,R=o.rowStyle,v=o.scrollToIndex,S=o.style,w=o.width,T=this.state.scrollbarWidth,E=s?p:p-f,P=typeof g=="function"?g({index:-1}):g,x=typeof R=="function"?R({index:-1}):R;return this._cachedColumnStyles=[],A.Children.toArray(i).forEach(function(k,I){var j=n._getFlexStyleForColumn(k,k.props.style);n._cachedColumnStyles[I]=Vi({overflow:"hidden"},j)}),A.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":A.Children.toArray(i).length,"aria-rowcount":this.props.rowCount,className:cn("ReactVirtualized__Table",a),id:_,role:"grid",style:S},!s&&d({className:cn("ReactVirtualized__Table__headerRow",P),columns:this._getHeaderColumns(),style:Vi({height:f,overflow:"hidden",paddingRight:T,width:w},x)}),A.createElement(Xn,de({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:cn("ReactVirtualized__Table__Grid",u),cellRenderer:this._createRow,columnWidth:w,columnCount:1,height:E,id:void 0,noContentRenderer:b,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:T,scrollToRow:v,style:Vi({},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,_=d.cellRenderer,b=d.className,g=d.columnData,R=d.dataKey,v=d.id,S=p({columnData:g,dataKey:R,rowData:u}),w=_({cellData:S,columnData:g,columnIndex:i,dataKey:R,isScrolling:a,parent:s,rowData:u,rowIndex:c}),T=function(k){f&&f({columnData:g,dataKey:R,event:k})},E=this._cachedColumnStyles[i],P=typeof w=="string"?w:null;return A.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:cn("ReactVirtualized__Table__rowColumn",b),key:"Row"+c+"-Col"+i,onClick:T,role:"gridcell",style:E,title:P},w)}},{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,_=o.props,b=_.columnData,g=_.dataKey,R=_.defaultSortDirection,v=_.disableSort,S=_.headerRenderer,w=_.id,T=_.label,E=!v&&f,P=cn("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),x=this._getFlexStyleForColumn(o,Vi({},u,{},o.props.headerStyle)),k=S({columnData:b,dataKey:g,disableSort:v,label:T,sortBy:d,sortDirection:p}),I,j,M,D,U;if(E||c){var H=d!==g,ie=H?R:p===Jn.DESC?Jn.ASC:Jn.DESC,oe=function(se){E&&f({defaultSortDirection:R,event:se,sortBy:g,sortDirection:ie}),c&&c({columnData:b,dataKey:g,event:se})},ge=function(se){(se.key==="Enter"||se.key===" ")&&oe(se)};U=o.props["aria-label"]||T||g,D="none",M=0,I=oe,j=ge}return d===g&&(D=p===Jn.ASC?"ascending":"descending"),A.createElement("div",{"aria-label":U,"aria-sort":D,className:P,id:w,key:"Header-Col"+i,onClick:I,onKeyDown:j,role:"columnheader",style:x,tabIndex:M},k)}},{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,_=f.onRowDoubleClick,b=f.onRowRightClick,g=f.onRowMouseOver,R=f.onRowMouseOut,v=f.rowClassName,S=f.rowGetter,w=f.rowRenderer,T=f.rowStyle,E=this.state.scrollbarWidth,P=typeof v=="function"?v({index:i}):v,x=typeof T=="function"?T({index:i}):T,k=S({index:i}),I=A.Children.toArray(d).map(function(D,U){return o._createColumn({column:D,columnIndex:U,isScrolling:a,parent:u,rowData:k,rowIndex:i,scrollbarWidth:E})}),j=cn("ReactVirtualized__Table__row",P),M=Vi({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:E},x);return w({className:j,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:_,onRowRightClick:b,onRowMouseOver:g,onRowMouseOut:R,rowData:k,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=Vi({},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?[]:A.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}(A.PureComponent);$(wy,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:uy,overscanRowCount:10,rowRenderer:_y,headerRowRenderer:gy,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});wy.propTypes={};var No=[],Ys=null,di=null;function mO(){di&&(di=null,document.body&&Ys!=null&&(document.body.style.pointerEvents=Ys),Ys=null)}function cF(){mO(),No.forEach(function(e){return e.__resetIsScrolling()})}function fF(){di&&Aa(di);var e=0;No.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),di=ly(cF,e)}function vO(e){e.currentTarget===window&&Ys==null&&document.body&&(Ys=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),fF(),No.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function Hb(e,t){No.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",vO),No.push(e)}function qb(e,t){No=No.filter(function(r){return r!==e}),No.length||(t.removeEventListener("scroll",vO),di&&(Aa(di),mO()))}var xy=function(t){return t===window},Ms=function(t){return t.getBoundingClientRect()};function Gb(e,t){if(e)if(xy(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 Ms(e);else return{height:t.serverHeight,width:t.serverWidth}}function dF(e,t){if(xy(t)&&document.documentElement){var r=document.documentElement,n=Ms(e),o=Ms(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=gO(t),a=Ms(e),s=Ms(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function gO(e){return xy(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 Vb,Kb;function Yb(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 hF(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||Nl.findDOMNode(this);if(u instanceof Element&&n){var c=dF(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var f=Gb(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=rO(),this.updatePosition(n),n&&(Hb(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),qb(this,a),Hb(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(qb(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}(A.PureComponent),$(Vb,"propTypes",null),Kb);$(SO,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:pF,scrollElement:yO(),serverHeight:0,serverWidth:0});const mF=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:cy,AutoSizer:nO,CellMeasurer:oO,CellMeasurerCache:bD,Collection:fy,Column:by,ColumnSizer:iO,Grid:Xn,InfiniteLoader:dy,List:sO,Masonry:vy,MultiGrid:_d,ScrollSync:dO,SortDirection:Jn,SortIndicator:yy,Table:wy,WindowScroller:SO,accessibilityOverscanIndicesGetter:uy,createMasonryCellPositioner:lF,createTableMultiSort:uF,defaultCellRangeRenderer:tO,defaultOverscanIndicesGetter:eO,defaultTableCellDataGetter:hO,defaultTableCellRenderer:pO,defaultTableHeaderRenderer:Sy,defaultTableHeaderRowRenderer:gy,defaultTableRowRenderer:_y},Symbol.toStringTag,{value:"Module"})),vF=Ba(mF);function Vn(e,t,r){return t<=e&&e<=r}function bd(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function gF(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 yF(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var Zc=-1;function Cy(e){this.tokens=[].slice.call(e)}Cy.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Zc},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 Ma=-1;function Pp(e,t){if(e)throw TypeError("Decoder error");return t||65533}var ef="utf-8";function tf(e,t){if(!(this instanceof tf))return new tf(e,t);if(e=e!==void 0?String(e).toLowerCase():ef,e!==ef)throw new Error("Encoding not supported. Only utf-8 is supported");t=bd(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})}tf.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=bd(r),this._streaming||(this._decoder=new SF({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new Cy(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==Ma);)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===Ma)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),yF(i)}};function rf(e,t){if(!(this instanceof rf))return new rf(e,t);if(e=e!==void 0?String(e).toLowerCase():ef,e!==ef)throw new Error("Encoding not supported. Only utf-8 is supported");t=bd(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}rf.prototype={encode:function(t,r){t=t?String(t):"",r=bd(r),this._streaming||(this._encoder=new _F(this._options)),this._streaming=!!r.stream;for(var n=[],o=new Cy(gF(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Ma);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Ma;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function SF(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===Zc&&o!==0)return o=0,Pp(t);if(u===Zc)return Ma;if(o===0){if(Vn(u,0,127))return u;if(Vn(u,194,223))o=1,r=u-192;else if(Vn(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(Vn(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Pp(t);return r=r<<6*o,null}if(!Vn(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Pp(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 _F(e){e.fatal,this.handler=function(t,r){if(r===Zc)return Ma;if(Vn(r,0,127))return r;var n,o;Vn(r,128,2047)?(n=1,o=192):Vn(r,2048,65535)?(n=2,o=224):Vn(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 bF=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:tf,TextEncoder:rf},Symbol.toStringTag,{value:"Module"})),wF=Ba(bF);var Qb={},Xb;function xF(){return Xb||(Xb=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 k={next:function(){var I=x.shift();return{done:I===void 0,value:I}}};return t.iterable&&(k[Symbol.iterator]=function(){return k}),k}function u(x){this.map={},x instanceof u?x.forEach(function(k,I){this.append(I,k)},this):Array.isArray(x)?x.forEach(function(k){this.append(k[0],k[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(k){this.append(k,x[k])},this)}u.prototype.append=function(x,k){x=i(x),k=a(k);var I=this.map[x];this.map[x]=I?I+","+k:k},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,k){this.map[i(x)]=a(k)},u.prototype.forEach=function(x,k){for(var I in this.map)this.map.hasOwnProperty(I)&&x.call(k,this.map[I],I,this)},u.prototype.keys=function(){var x=[];return this.forEach(function(k,I){x.push(I)}),s(x)},u.prototype.values=function(){var x=[];return this.forEach(function(k){x.push(k)}),s(x)},u.prototype.entries=function(){var x=[];return this.forEach(function(k,I){x.push([I,k])}),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(k,I){x.onload=function(){k(x.result)},x.onerror=function(){I(x.error)}})}function d(x){var k=new FileReader,I=f(k);return k.readAsArrayBuffer(x),I}function p(x){var k=new FileReader,I=f(k);return k.readAsText(x),I}function _(x){for(var k=new Uint8Array(x),I=new Array(k.length),j=0;j-1?k:x}function S(x,k){k=k||{};var I=k.body;if(x instanceof S){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,k.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=k.credentials||this.credentials||"omit",(k.headers||!this.headers)&&(this.headers=new u(k.headers)),this.method=v(k.method||this.method||"GET"),this.mode=k.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)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function w(x){var k=new FormData;return x.trim().split("&").forEach(function(I){if(I){var j=I.split("="),M=j.shift().replace(/\+/g," "),D=j.join("=").replace(/\+/g," ");k.append(decodeURIComponent(M),decodeURIComponent(D))}}),k}function T(x){var k=new u,I=x.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(j){var M=j.split(":"),D=M.shift().trim();if(D){var U=M.join(":").trim();k.append(D,U)}}),k}g.call(S.prototype);function E(x,k){k||(k={}),this.type="default",this.status=k.status===void 0?200:k.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in k?k.statusText:"OK",this.headers=new u(k.headers),this.url=k.url||"",this._initBody(x)}g.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},E.error=function(){var x=new E(null,{status:0,statusText:""});return x.type="error",x};var P=[301,302,303,307,308];E.redirect=function(x,k){if(P.indexOf(k)===-1)throw new RangeError("Invalid status code");return new E(null,{status:k,headers:{location:x}})},e.Headers=u,e.Request=S,e.Response=E,e.fetch=function(x,k){return new Promise(function(I,j){var M=new S(x,k),D=new XMLHttpRequest;D.onload=function(){var U={status:D.status,statusText:D.statusText,headers:T(D.getAllResponseHeaders()||"")};U.url="responseURL"in D?D.responseURL:U.headers.get("X-Request-URL");var H="response"in D?D.response:D.responseText;I(new E(H,U))},D.onerror=function(){j(new TypeError("Network request failed"))},D.ontimeout=function(){j(new TypeError("Network request failed"))},D.open(M.method,M.url,!0),M.credentials==="include"?D.withCredentials=!0:M.credentials==="omit"&&(D.withCredentials=!1),"responseType"in D&&t.blob&&(D.responseType="blob"),M.headers.forEach(function(U,H){D.setRequestHeader(H,U)}),D.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:oi)),Qb}function Jb(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");By(this)}},Dn(e,[{key:"closed",get:function(){return ui(this)===!1?Promise.reject(zu("closed")):this._closedPromise}}]),e}(),QW=function(){function e(r){if(!qn(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(Qi(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(wo(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");GO(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return $s(this)?this._ownerReadableStream===void 0?Promise.reject(ff("cancel")):VO(this,n):Promise.reject(Au("cancel"))},t.read=function(n){return $s(this)?this._ownerReadableStream===void 0?Promise.reject(ff("read from")):ArrayBuffer.isView(n)?af(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")):XW(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(Au("read"))},t.releaseLock=function(){if(!$s(this))throw Au("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");By(this)}},Dn(e,[{key:"closed",get:function(){return $s(this)?this._closedPromise:Promise.reject(Au("closed"))}}]),e}();function $s(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function ui(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function GO(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?fB(e):t._state==="closed"?hB(e):(dB(e,t._storedError),e._closedPromise.catch(function(){}))}function VO(e,t){var r=e._ownerReadableStream;return hi(r,t)}function By(e){e._ownerReadableStream._state==="readable"?sE(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):pB(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 XW(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):tB(n._readableStreamController,t,r)}function Uy(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(Fo(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[My](t)}var KO=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(ju(this)===!1)throw Nu("close");if(cf(this)===!1)throw new TypeError("The stream is not in a state that permits close");lf(this)},t.enqueue=function(n){if(ju(this)===!1)throw Nu("enqueue");if(cf(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return uf(this,n)},t.error=function(n){if(ju(this)===!1)throw Nu("error");Wo(this,n)},t[Ny]=function(r){ns(this);var n=this._cancelAlgorithm(r);return sf(this),n},t[My]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=$W(this);return this._closeRequested===!0&&this._queue.length===0?(sf(this),Gl(n)):xl(this),Promise.resolve(Fo(o,!1,r))}var i=BO(n,r);return xl(this),i},Dn(e,[{key:"desiredSize",get:function(){if(ju(this)===!1)throw Nu("desiredSize");return Hy(this)}}]),e}();function ju(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function xl(e){var t=YO(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,xl(e)},function(n){Wo(e,n)}).catch(Kn)}}function YO(e){var t=e._controlledReadableStream;if(cf(e)===!1||e._started===!1)return!1;if(wo(t)===!0&&Td(t)>0)return!0;var r=Hy(e);return r>0}function sf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function lf(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(sf(e),Gl(t))}function uf(e,t){var r=e._controlledReadableStream;if(wo(r)===!0&&Td(r)>0)Fy(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Wo(e,o),o}try{DW(e,t,n)}catch(o){throw Wo(e,o),o}}xl(e)}function Wo(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(ns(e),sf(e),UO(r,t))}function Hy(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function JW(e){return YO(e)!==!0}function cf(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function QO(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ns(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,xl(t)},function(u){Wo(t,u)}).catch(Kn)}function ZW(e,t,r,n){var o=Object.create(KO.prototype);function i(){return WO(t,"start",[o])}var a=of(t,"pull",0,[o]),s=of(t,"cancel",1,[]);QO(e,o,i,a,s,r,n)}var eB=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(zp(this)===!1)throw Ap("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(af(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");sB(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(zp(this)===!1)throw Ap("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(af(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");lB(this._associatedReadableByteStreamController,n)},Dn(e,[{key:"view",get:function(){if(zp(this)===!1)throw Ap("view");return this._view}}]),e}(),XO=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(Qi(this)===!1)throw Rs("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");iB(this)},t.enqueue=function(n){if(Qi(this)===!1)throw Rs("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(af(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");aB(this,n)},t.error=function(n){if(Qi(this)===!1)throw Rs("error");Vl(this,n)},t[Ny]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}ns(this);var o=this._cancelAlgorithm(r);return Od(this),o},t[My]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,rE(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(f){return Promise.reject(f)}return Promise.resolve(Fo(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=BO(n,r);return ki(this),c},Dn(e,[{key:"byobRequest",get:function(){if(Qi(this)===!1)throw Rs("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(eB.prototype);cB(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(Qi(this)===!1)throw Rs("desiredSize");return iE(this)}}]),e}();function Qi(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function zp(e){return!(!rs(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function ki(e){var t=oB(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,ki(e))},function(n){Vl(e,n)}).catch(Kn)}}function JO(e){Gy(e),e._pendingPullIntos=[]}function qy(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=ZO(t);t.readerType==="default"?Fy(e,n,r):KW(e,n,r)}function ZO(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function ac(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function eE(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;AW(t.buffer,p,f.buffer,f.byteOffset,d),f.byteLength===d?c.shift():(f.byteOffset+=d,f.byteLength-=d),e._queueTotalSize-=d,tE(e,d,t),s-=d}return u}function tE(e,t,r){Gy(e),r.bytesFilled+=t}function rE(e){e._queueTotalSize===0&&e._closeRequested===!0?(Od(e),Gl(e._controlledReadableByteStream)):ki(e)}function Gy(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function nE(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];eE(e,t)===!0&&(Vy(e),qy(e._controlledReadableByteStream,t))}}function tB(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Rd(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),sw(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(Fo(u,!0,r))}if(e._queueTotalSize>0){if(eE(e,s)===!0){var c=ZO(s);return rE(e),Promise.resolve(Fo(c,!1,r))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return Vl(e,f),Promise.reject(f)}}e._pendingPullIntos.push(s);var d=sw(n,r);return ki(e),d}function rB(e,t){t.buffer=Rd(t.buffer);var r=e._controlledReadableByteStream;if(Wy(r)===!0)for(;HO(r)>0;){var n=Vy(e);qy(r,n)}}function nB(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(tE(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);ac(e,i,0,i.byteLength)}r.buffer=Rd(r.buffer),r.bytesFilled-=n,qy(e._controlledReadableByteStream,r),nE(e)}}function oE(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");rB(e,r)}else nB(e,t,r);ki(e)}function Vy(e){var t=e._pendingPullIntos.shift();return Gy(e),t}function oB(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(qO(t)===!0&&Td(t)>0||Wy(t)===!0&&HO(t)>0)return!0;var r=iE(e);return r>0}function Od(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function iB(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 Vl(e,n),n}}Od(e),Gl(t)}function aB(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Rd(n);if(qO(r)===!0)if(Td(r)===0)ac(e,a,o,i);else{var s=new Uint8Array(a,o,i);Fy(r,s,!1)}else Wy(r)===!0?(ac(e,a,o,i),nE(e)):ac(e,a,o,i);ki(e)}function Vl(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(JO(e),ns(e),Od(e),UO(r,t))}function iE(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function sB(e,t){if(t=Number(t),NW(t)===!1)throw new RangeError("bytesWritten must be a finite");oE(e,t)}function lB(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,oE(e,t.byteLength)}function aE(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,JO(t),t._queue=t._queueTotalSize=void 0,ns(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=tv(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,ki(t)},function(u){Vl(t,u)}).catch(Kn)}function uB(e,t,r){var n=Object.create(XO.prototype);function o(){return WO(t,"start",[n])}var i=of(t,"pull",0,[n]),a=of(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),CF(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");aE(e,n,o,i,a,r,s)}function cB(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function lw(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 Ki(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function ff(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function zu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function fB(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function dB(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function hB(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function sE(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function pB(e,t){e._closedPromise=Promise.reject(t)}function mB(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Au(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Nu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Ap(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Rs(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var vB=Go.ReadableStream,gB=He.createDataProperty,yB=function(){function e(r){var n=r.highWaterMark;gB(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),SB=He.createDataProperty,_B=function(){function e(r){var n=r.highWaterMark;SB(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();wO("streams:transform-stream:verbose");var bB=He.InvokeOrNoop,wB=He.CreateAlgorithmFromUnderlyingMethod,xB=He.PromiseCall,lE=He.typeIsObject,uw=He.ValidateAndNormalizeHighWaterMark;He.IsNonNegativeNumber;var cw=He.MakeSizeAlgorithmFromSizeFunction,CB=Go.CreateReadableStream,uE=Go.ReadableStreamDefaultControllerClose,RB=Go.ReadableStreamDefaultControllerEnqueue,TB=Go.ReadableStreamDefaultControllerError,OB=Go.ReadableStreamDefaultControllerGetDesiredSize,EB=Go.ReadableStreamDefaultControllerHasBackpressure,Ky=Go.ReadableStreamDefaultControllerCanCloseOrEnqueue,PB=gn.CreateWritableStream,kB=gn.WritableStreamDefaultControllerErrorIfNeeded,cE=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=cw(o);i===void 0&&(i=1),i=uw(i);var f=t.readableType;if(f!==void 0)throw new RangeError("Invalid readable type specified");var d=cw(a);s===void 0&&(s=0),s=uw(s);var p,_=new Promise(function(g){p=g});fE(this,_,i,c,s,d),jB(this,t);var b=bB(t,"start",[this._transformStreamController]);p(b)}return Dn(e,[{key:"readable",get:function(){if(fw(this)===!1)throw hw("readable");return this._readable}},{key:"writable",get:function(){if(fw(this)===!1)throw hw("writable");return this._writable}}]),e}();function IB(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(cE.prototype),u,c=new Promise(function(p){u=p});fE(s,c,n,o,i,a);var f=Object.create(dE.prototype);hE(s,f,t,r);var d=e();return u(d),s}function fE(e,t,r,n,o,i){function a(){return t}function s(p){return NB(e,p)}function u(p){return MB(e,p)}function c(){return LB(e)}e._writable=PB(a,s,c,u,r,n);function f(){return $B(e)}function d(p){return Pd(e,p),Promise.resolve()}e._readable=CB(a,f,d,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,kd(e,!0),e._transformStreamController=void 0}function fw(e){return!(!lE(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Ed(e,t){TB(e._readable._readableStreamController,t),Pd(e,t)}function Pd(e,t){pE(e._transformStreamController),kB(e._writable._writableStreamController,t),e._backpressure===!0&&kd(e,!1)}function kd(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var dE=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(Mu(this)===!1)throw Lu("enqueue");mE(this,n)},t.error=function(n){if(Mu(this)===!1)throw Lu("error");zB(this,n)},t.terminate=function(){if(Mu(this)===!1)throw Lu("terminate");AB(this)},Dn(e,[{key:"desiredSize",get:function(){if(Mu(this)===!1)throw Lu("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return OB(n)}}]),e}();function Mu(e){return!(!lE(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function hE(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function jB(e,t){var r=Object.create(dE.prototype),n=function(s){try{return mE(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 xB(o,t,[s,r])}}var i=wB(t,"flush",0,[r]);hE(e,r,n,i)}function pE(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function mE(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(Ky(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{RB(n,t)}catch(i){throw Pd(r,i),r._readable._storedError}var o=EB(n);o!==r._backpressure&&kd(r,!0)}function zB(e,t){Ed(e._controlledTransformStream,t)}function dw(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Ed(e._controlledTransformStream,n),n})}function AB(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;Ky(r)===!0&&uE(r);var n=new TypeError("TransformStream terminated");Pd(t,n)}function NB(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 dw(r,t)})}return dw(r,t)}function MB(e,t){return Ed(e,t),Promise.resolve()}function LB(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return pE(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;Ky(o)===!0&&uE(o)}).catch(function(o){throw Ed(e,o),t._storedError})}function $B(e){return kd(e,!1),e._backpressureChangePromise}var DB={CreateTransformStream:IB,TransformStream:cE};function Lu(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function hw(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var FB=DB.TransformStream;const WB=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:yB,CountQueuingStrategy:_B,ReadableStream:vB,TransformStream:FB,WritableStream:zW},Symbol.toStringTag,{value:"Module"})),BB=Ba(WB);function UB(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 HB=class vE{constructor(t={}){this.h={},t instanceof vE&&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])}),qB(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function qB(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Np(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function pw({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,_)=>{if(o.body&&(f==="GET"||f==="HEAD")&&_(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),d)if(d.aborted){_(Np());return}else d.addEventListener("abort",()=>{i.abort(),s&&s.error(Np()),_(Np())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:KB(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:VB(i.responseURL,n)})},i.onerror=function(){return _(new TypeError("Network request failed"))},i.ontimeout=function(){_(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const b=a(i.response);s.enqueue(b)}},i.onload=function(){s.close()},i.send(o.body)})}}function GB(){return typeof Headers<"u"?new Headers:new HB}function VB(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function KB(e){const t=GB();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 Mp=null;function YB(){return Mp||(Mp=QB()),Mp}function QB(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return UB;const e="moz-chunked-arraybuffer";return XB(e)?pw({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):pw({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 XB(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function Yy(e,t={}){let r=t.transport;return r||(r=Yy.transportFactory()),r(e,t)}Yy.transportFactory=YB;const JB=Object.freeze(Object.defineProperty({__proto__:null,default:Yy},Symbol.toStringTag,{value:"Module"})),ZB=Ba(JB);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?oi: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=A},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}),S=function(I){return document.querySelector(I)},b=function(){var I={};return function(j){if(typeof j=="function")return j();if(typeof I[j]>"u"){var M=S.call(this,j);if(window.HTMLIFrameElement&&M instanceof window.HTMLIFrameElement)try{M=M.contentDocument.head}catch{M=null}I[j]=M}return I[j]}}(),T=null,P=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(D){for(var U=[],H=0;HE?-1:E?E-1-D:-1},w=function(b){return b?Array.isArray(b)?b.length===1?Object(i.Range)(b[0],b[0]+1):Object(i.Range)(b[0],b[1]+1):Object(i.Range)(b,b+1):Object(i.Range)(0,0)},g=function(b,T){var P=new Uint8Array(b.length+T.length);return P.set(b,0),P.set(T,b.length),P},R=function(b,T){var P=T?g(T,b):b,E=P.length,x=0,k=0,I=Object(i.List)().withMutations(function(j){for(;k"u"&&(j=I.apply(this,arguments)),j}}(function(){return window&&document&&document.all&&!window.atob}),S=function(I){return document.querySelector(I)},w=function(){var I={};return function(j){if(typeof j=="function")return j();if(typeof I[j]>"u"){var M=S.call(this,j);if(window.HTMLIFrameElement&&M instanceof window.HTMLIFrameElement)try{M=M.contentDocument.head}catch{M=null}I[j]=M}return I[j]}}(),T=null,E=0,P=[],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(D){for(var U=[],H=0;HP?-1:P?P-1-D:-1},b=function(w){return w?Array.isArray(w)?w.length===1?Object(i.Range)(w[0],w[0]+1):Object(i.Range)(w[0],w[1]+1):Object(i.Range)(w,w+1):Object(i.Range)(0,0)},g=function(w,T){var E=new Uint8Array(w.length+T.length);return E.set(w,0),E.set(T,w.length),E},R=function(w,T){var E=T?g(T,w):w,P=E.length,x=0,k=0,I=Object(i.List)().withMutations(function(j){for(;kR.b?ge(ie):Z()}}),I),c(j,M)}return f(x,E),T(x,[{key:"render",value:function(){var k=this.props,I=k.resultsCount,j=k.filterActive,M=k.disabled,D="match"+(I===1?"":"es"),U=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+" "+U,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," ",D))}}]),x}(d.Component),Object.defineProperty(S,"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(S,"defaultProps",{enumerable:!0,writable:!0,value:{onSearch:function(){},onClearSearch:function(){},onFilterLinesWithMatches:function(){},resultsCount:0,filterActive:!1,disabled:!1}}),b)},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 { +`,""]),n.locals={loading:"_cNRtwoABiEV7jcRJa4g3"}},function(r,n,o){function i(P,x){if(!(P instanceof x))throw new TypeError("Cannot call a class as a function")}function a(P,x){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:P}function s(P,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);P.prototype=Object.create(x&&x.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(P,x):P.__proto__=x)}function u(P,x){if(!(P instanceof x))throw new TypeError("Cannot call a class as a function")}function c(P,x){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:P}function f(P,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);P.prototype=Object.create(x&&x.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(P,x):P.__proto__=x)}Object.defineProperty(n,"__esModule",{value:!0});var d=o(0);o.n(d);var p=o(3);o.n(p);var _=o(25);o.n(_);var b=function(){function P(x,k){for(var I,j=0;jR.b?ge(ie):Z()}}),I),c(j,M)}return f(x,P),T(x,[{key:"render",value:function(){var k=this.props,I=k.resultsCount,j=k.filterActive,M=k.disabled,D="match"+(I===1?"":"es"),U=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+" "+U,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," ",D))}}]),x}(d.Component),Object.defineProperty(S,"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(S,"defaultProps",{enumerable:!0,writable:!0,value:{onSearch:function(){},onClearSearch:function(){},onFilterLinesWithMatches:function(){},resultsCount:0,filterActive:!1,disabled:!1}}),w)},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; } @@ -317,9 +317,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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);VLe&&(hr=Bt-Le,tr=tr.slice(-Le),Bt=tr.count());var be=Object(E.g)({follow:ye,scrollToLine:ve,previousCount:xt,count:Bt,offset:hr});W.setState({lines:tr,offset:hr,count:Bt,scrollToIndex:be}),(_e||Re)&&W.forceSearch()}}),Object.defineProperty(W,"handleEnd",{enumerable:!0,writable:!0,value:function(K){W.encodedLog=K,W.setState({loaded:!0}),W.props.onLoad&&W.props.onLoad()}}),Object.defineProperty(W,"handleError",{enumerable:!0,writable:!0,value:function(K){W.setState({error:K}),W.props.onError&&W.props.onError(K)}}),Object.defineProperty(W,"handleHighlight",{enumerable:!0,writable:!0,value:function(K){var X=W.props.onHighlight,le=W.state.isFilteringLinesWithMatches;if(K.target.id){var pe=+K.target.id;if(pe){var ve=W.state.highlight.first(),ye=W.state.highlight.last(),_e=void 0;_e=ve===pe?null:K.shiftKey&&ve?pe>ve?[ve,pe]:[pe,ye]:pe;var Re=Object(E.e)(_e),Ie={highlight:Re};le&&Object.assign(Ie,{scrollToIndex:Object(E.g)({scrollToLine:pe})}),W.setState(Ie,function(){X&&X(Re),le&&W.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(W,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var X=W.state,le=X.resultLines,pe=X.searchKeywords,ve=W.props,ye=ve.caseInsensitive,_e=ve.stream,Re=ve.websocket,Ie=_e||Re||K!==pe?se(K,W.encodedLog,ye):le;W.setState({resultLines:Ie,isSearching:!0,searchKeywords:K},W.filterLinesWithMatches)}}),Object.defineProperty(W,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=W.state.searchKeywords;K&&K.length>E.b&&W.handleSearch(W.state.searchKeywords)}}),Object.defineProperty(W,"handleClearSearch",{enumerable:!0,writable:!0,value:function(){W.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:Object(p.List)(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:W.state.isFilteringLinesWithMatches,scrollToIndex:0})}}),Object.defineProperty(W,"handleFilterLinesWithMatches",{enumerable:!0,writable:!0,value:function(K){W.setState({isFilteringLinesWithMatches:K,filteredLines:Object(p.List)(),resultLineUniqueIndexes:[]},W.filterLinesWithMatches)}}),Object.defineProperty(W,"filterLinesWithMatches",{enumerable:!0,writable:!0,value:function(){var K=W.state,X=K.resultLines,le=K.lines,pe=K.isFilteringLinesWithMatches;if(0Le&&(hr=Bt-Le,tr=tr.slice(-Le),Bt=tr.count());var we=Object(P.g)({follow:ye,scrollToLine:ve,previousCount:xt,count:Bt,offset:hr});W.setState({lines:tr,offset:hr,count:Bt,scrollToIndex:we}),(_e||Re)&&W.forceSearch()}}),Object.defineProperty(W,"handleEnd",{enumerable:!0,writable:!0,value:function(K){W.encodedLog=K,W.setState({loaded:!0}),W.props.onLoad&&W.props.onLoad()}}),Object.defineProperty(W,"handleError",{enumerable:!0,writable:!0,value:function(K){W.setState({error:K}),W.props.onError&&W.props.onError(K)}}),Object.defineProperty(W,"handleHighlight",{enumerable:!0,writable:!0,value:function(K){var X=W.props.onHighlight,le=W.state.isFilteringLinesWithMatches;if(K.target.id){var pe=+K.target.id;if(pe){var ve=W.state.highlight.first(),ye=W.state.highlight.last(),_e=void 0;_e=ve===pe?null:K.shiftKey&&ve?pe>ve?[ve,pe]:[pe,ye]:pe;var Re=Object(P.e)(_e),je={highlight:Re};le&&Object.assign(je,{scrollToIndex:Object(P.g)({scrollToLine:pe})}),W.setState(je,function(){X&&X(Re),le&&W.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(W,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var X=W.state,le=X.resultLines,pe=X.searchKeywords,ve=W.props,ye=ve.caseInsensitive,_e=ve.stream,Re=ve.websocket,je=_e||Re||K!==pe?se(K,W.encodedLog,ye):le;W.setState({resultLines:je,isSearching:!0,searchKeywords:K},W.filterLinesWithMatches)}}),Object.defineProperty(W,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=W.state.searchKeywords;K&&K.length>P.b&&W.handleSearch(W.state.searchKeywords)}}),Object.defineProperty(W,"handleClearSearch",{enumerable:!0,writable:!0,value:function(){W.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:Object(p.List)(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:W.state.isFilteringLinesWithMatches,scrollToIndex:0})}}),Object.defineProperty(W,"handleFilterLinesWithMatches",{enumerable:!0,writable:!0,value:function(K){W.setState({isFilteringLinesWithMatches:K,filteredLines:Object(p.List)(),resultLineUniqueIndexes:[]},W.filterLinesWithMatches)}}),Object.defineProperty(W,"filterLinesWithMatches",{enumerable:!0,writable:!0,value:function(){var K=W.state,X=K.resultLines,le=K.lines,pe=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]},xo=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]},vP=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",ff=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},u6=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return ff(o)},Jy=(e,t)=>e===0||t===0?"0%":vP(e/t*100),mb=e=>Xt(e)+"/s",c6=({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(kd,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:Xt(a.size)}),m.jsx("td",{children:m.jsx(mP,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},f6=()=>{const e=Ka(),t=Ne(jt),r=Ne(yA),[n,o]=A.useState(""),[i,a]=A.useState("Head");A.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]),A.useEffect(()=>{let c=!1;r.forEach(f=>{f.selected&&(c=!0)}),c||o("")},[r]),A.useEffect(()=>{t!==""&&qT()},[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(c6,{logs:r,onLogSelected:c=>{e(tA(c))},onDownload:c=>{s(c)}}),n!==""?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex flex-row pb-2 pt-2",children:[m.jsx("button",{className: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(e6.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},d6=()=>{const e=Ne(ZR),[t,r]=A.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(mn,{backgroundColor:Pi,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},h6=({onClose:e,onCreate:t,...r})=>{const[n,o]=ne.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(mn,{backgroundColor:Fl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(mn,{backgroundColor:Pi,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},gP=({onSessionSelected:e,...t})=>{const r=Ka(),n=Ne(dA),[o,i]=A.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(Kz(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(kd,{})}),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(ry,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},f))})]}),o&&m.jsx(HT,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},p6=({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(mn,{backgroundColor:c?Pi:Fl,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(oy,{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"})]})},m6=()=>{const e=Ka(),[t,r]=A.useState(!1),[n,o]=A.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(gP,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(mn,{backgroundColor:Fl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(h6,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(Gz({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(mn,{backgroundColor:Pi,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(p6,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(iA()),e(v4()),e(f4()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var Zy={},v6=ut;Object.defineProperty(Zy,"__esModule",{value:!0});var yP=Zy.default=void 0,g6=v6(ct()),y6=m,S6=(0,g6.default)((0,y6.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-5h-4z"}),"DeviceHub");yP=Zy.default=S6;var e0={},_6=ut;Object.defineProperty(e0,"__esModule",{value:!0});var SP=e0.default=void 0,w6=_6(ct()),b6=m,x6=(0,w6.default)((0,b6.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 0L8.4 18.2z"}),"Hub");SP=e0.default=x6;const C6=({onSessionClicked:e,onNodeClicked:t})=>{const r=Ne(JR),n=Ne(pA);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(yP,{}),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(SP,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},R6=({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(gP,{onSessionSelected:()=>{t()}}),m.jsx(mn,{backgroundColor:Fl,label:"Close",onClick:t,primary:!0})]})})]}),T6=({onNodeSelected:e,...t})=>{const r=Ka(),n=Ne(mA),o=a=>{r(Yz(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(kd,{})}),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()})},O6=({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(T6,{onNodeSelected:()=>{t()}}),m.jsx(mn,{backgroundColor:Fl,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** +`,""]),n.locals={lazyLog:"_3NRgTLvWbyfWD-1xileYWR",searchMatch:"_Z1mYiD5z7OQvtbdHBEZT"}},function(r,n,o){function i(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function a(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:b}function s(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}Object.defineProperty(n,"__esModule",{value:!0}),o.d(n,"default",function(){return _});var u,c,f=o(0);o.n(f);var d=o(3);o.n(d);var p=function(){function b(g,R){for(var v,S=0;S{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]},xo=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]},yE=e=>e==null||isNaN(e)?"0%":e.toFixed(2)+"%",Cl=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},u6=(e,t,r)=>{if(r===0)return"999hrs:99m";const o=(t-e)/r;return Cl(o)},Jy=(e,t)=>e===0||t===0?"0%":yE(e/t*100),mw=e=>Xt(e)+"/s",c6=({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(Id,{})}),m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:Xt(a.size)}),m.jsx("td",{children:m.jsx(gE,{onClick:u=>{u.preventDefault(),u.stopPropagation(),r(a)},className:"cursor-pointer pr-2 hover:scale-125"})})]},s))})]});return m.jsx(m.Fragment,{children:i()})},f6=()=>{const e=Ka(),t=ke(jt),r=ke(_A),[n,o]=A.useState(""),[i,a]=A.useState("Head");A.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]),A.useEffect(()=>{let c=!1;r.forEach(f=>{f.selected&&(c=!0)}),c||o("")},[r]),A.useEffect(()=>{t!==""&&VT()},[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(c6,{logs:r,onLogSelected:c=>{e(nA(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(e6.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},d6=()=>{const e=ke(ZR),[t,r]=A.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(mn,{backgroundColor:Ei,label:"Toggle orientation",onClick:n,primary:!0}),t?i():a()]})},h6=({onClose:e,onCreate:t,...r})=>{const[n,o]=ne.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(mn,{backgroundColor:Wl,label:"Close",onClick:()=>e(),primary:!0}),m.jsx("div",{className:"w-2"}),m.jsx(mn,{backgroundColor:Ei,label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},SE=({onSessionSelected:e,...t})=>{const r=Ka(),n=ke(pA),[o,i]=A.useState(!1),a=c=>{i(!0),setTimeout(()=>{i(!1)},1500),navigator.clipboard.writeText(c)},s=c=>{r(Qz(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(Id,{})}),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(ry,{onClick:()=>a(c.pin),className:"cursor-pointer pr-2"})})]},f))})]}),o&&m.jsx(GT,{})]});return m.jsx(m.Fragment,{children:n.length>0&&u()})},p6=({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(mn,{backgroundColor:c?Wl:Ei,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(oy,{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"})]})},m6=()=>{const e=Ka(),[t,r]=A.useState(!1),[n,o]=A.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(SE,{onSessionSelected:()=>{}}),m.jsx("div",{className:"absolute right-[5vw] bottom-[10vh]",children:m.jsx(mn,{backgroundColor:Wl,label:"Clear all data",onClick:()=>{o(!0)},primary:!0})}),t?m.jsx(h6,{onClose:()=>r(!1),onCreate:a=>{let s=i(1e7,99999999).toString();e(Kz({name:a,pin:s,is_active:!0,nodes:[]})),r(!1)}}):m.jsx(mn,{backgroundColor:Ei,label:"Create Session",onClick:()=>r(!0),primary:!0}),n&&m.jsx(p6,{title:"Clear all data",body:"Are you sure you want to clear all data?",positiveButton:"Clear",negativeButton:"Cancel",onPositiveClick:()=>{e(sA()),e(y4()),e(h4()),o(!1)},onNegativeClick:()=>o(!1),onClose:()=>o(!1)})]})};var Zy={},v6=ut;Object.defineProperty(Zy,"__esModule",{value:!0});var _E=Zy.default=void 0,g6=v6(ct()),y6=m,S6=(0,g6.default)((0,y6.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-5h-4z"}),"DeviceHub");_E=Zy.default=S6;var e0={},_6=ut;Object.defineProperty(e0,"__esModule",{value:!0});var bE=e0.default=void 0,b6=_6(ct()),w6=m,x6=(0,b6.default)((0,w6.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 0L8.4 18.2z"}),"Hub");bE=e0.default=x6;const C6=({onSessionClicked:e,onNodeClicked:t})=>{const r=ke(JR),n=ke(vA);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(_E,{}),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(bE,{}),m.jsx("span",{className:"px-1"}),(n==null?void 0:n.name)||"No Node Selected"]})]})},R6=({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(SE,{onSessionSelected:()=>{t()}}),m.jsx(mn,{backgroundColor:Wl,label:"Close",onClick:t,primary:!0})]})})]}),T6=({onNodeSelected:e,...t})=>{const r=Ka(),n=ke(gA),o=a=>{r(Xz(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(Id,{})}),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()})},O6=({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(T6,{onNodeSelected:()=>{t()}}),m.jsx(mn,{backgroundColor:Wl,label:"Close",onClick:t,primary:!0})]})})]});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -349,11 +349,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ir=function(){return Ir=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Lt(os,--xr):0,La--,St===10&&(La=1,jd--),St}function Mr(){return St=xr2||Rl(St)>3?"":" "}function B6(e,t){for(;--t&&Mr()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return Vl(e,ac()+(t<6&&Nn()==32&&Mr()==32))}function iv(e){for(;Mr();)switch(St){case e:return xr;case 34:case 39:e!==34&&e!==39&&iv(St);break;case 40:e===41&&iv(e);break;case 92:Mr();break}return xr}function U6(e,t){for(;Mr()&&e+St!==47+10;)if(e+St===42+42&&Nn()===47)break;return"/*"+Vl(t,xr-1)+"*"+Id(e===47?e:Mr())}function H6(e){for(;!Rl(Nn());)Mr();return Vl(e,xr)}function vb(e){return RP(lc("",null,null,null,[""],e=CP(e),0,[0],e))}function lc(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,d=a,p=0,_=0,w=0,g=1,R=1,v=1,S=0,b="",T=o,P=i,E=n,x=b;R;)switch(w=S,S=Mr()){case 40:if(w!=108&&Lt(x,d-1)==58){ov(x+=$e(sc(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=sc(S);break;case 9:case 10:case 13:case 32:x+=W6(w);break;case 92:x+=B6(ac()-1,7);continue;case 47:switch(Nn()){case 42:case 47:Lu(q6(U6(Mr(),ac()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=On(x)*v;case 125*g:case 59:case 0:switch(S){case 0:case 125:R=0;case 59+f:_>0&&On(x)-d&&Lu(_>32?yb(x+";",n,r,d-1):yb($e(x," ","")+";",n,r,d-2),u);break;case 59:x+=";";default:if(Lu(E=gb(x,t,r,c,f,o,s,b,T=[],P=[],d),i),S===123)if(f===0)lc(x,t,E,E,T,i,d,s,P);else switch(p===99&&Lt(x,3)===110?100:p){case 100:case 109:case 115:lc(e,E,E,n&&Lu(gb(e,E,E,0,0,o,s,b,o,T=[],d),P),o,P,d,s,n?T:P);break;default:lc(x,E,E,E,[""],P,0,s,P)}}c=f=_=0,g=v=1,b=x="",d=a;break;case 58:d=1+On(x),_=w;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&F6()==125)continue}switch(x+=Id(S),S*g){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[c++]=(On(x)-1)*v,v=1;break;case 64:Nn()===45&&(x+=sc(Mr())),p=Nn(),f=d=On(b=x+=H6(ac())),S++;break;case 45:w===45&&On(x)==2&&(g=0)}}return i}function gb(e,t,r,n,o,i,a,s,u,c,f){for(var d=o-1,p=o===0?i:[""],_=o0(p),w=0,g=0,R=0;w0?p[v]+" "+S:$e(S,/&\f/g,p[v])))&&(u[R++]=b);return zd(e,t,r,o===0?r0:s,u,c,f)}function q6(e,t,r){return zd(e,t,r,_P,Id(D6()),Cl(e,2,-2),0)}function yb(e,t,r,n){return zd(e,t,r,n0,Cl(e,0,n),Cl(e,n+1,-1),n)}function pi(e,t){for(var r="",n=o0(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return $e(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+df+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ov(e,"stretch")?TP($e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,On(e)-3-(~ov(e,"!important")&&10))){case 107:return $e(e,":",":"+ze)+e;case 101:return $e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(Lt(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Kt+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return ze+e+Kt+$e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Kt+$e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Kt+$e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Kt+e+e}return e}var Z6=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case n0:t.return=TP(t.value,t.length);break;case wP:return pi([Ts(t,{value:$e(t.value,"@","@"+ze)})],o);case r0:if(t.length)return $6(t.props,function(i){switch(L6(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Ts(t,{props:[$e(i,/:(read-\w+)/,":"+df+"$1")]})],o);case"::placeholder":return pi([Ts(t,{props:[$e(i,/:(plac\w+)/,":"+ze+"input-$1")]}),Ts(t,{props:[$e(i,/:(plac\w+)/,":"+df+"$1")]}),Ts(t,{props:[$e(i,/:(plac\w+)/,Kt+"input-$1")]})],o)}return""})}},uc=typeof document<"u",e8=uc?void 0:V6(function(){return t0(function(){var e={};return function(t){return e[t]}})}),t8=[Z6],OP=function(t){var r=t.key;if(uc&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(T){var P=T.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var o=t.stylisPlugins||t8,i={},a,s=[];uc&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(T){for(var P=T.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 c8={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},f8=/[A-Z]|^ms/g,d8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kP=function(t){return t.charCodeAt(1)===45},xb=function(t){return t!=null&&typeof t!="boolean"},Mp=t0(function(e){return kP(e)?e:e.replace(f8,"-$&").toLowerCase()}),Cb=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(d8,function(n,o,i){return Pn={name:o,styles:i,next:Pn},o})}return c8[t]!==1&&!kP(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 Pn={name:r.name,styles:r.styles,next:Pn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Pn={name:n.name,styles:n.styles,next:Pn},n=n.next;var o=r.styles+";";return o}return h8(e,t,r)}case"function":{if(e!==void 0){var i=Pn,a=r(e);return Pn=i,Tl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function h8(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?m8:v8},Ob=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},g8=typeof document<"u",y8=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;EP(r,n,o);var i=o8(function(){return l8(r,n,o)});if(!g8&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return A.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},S8=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=Ob(t,r,n),u=s||Tb(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,_=1;_0?Lt(os,--xr):0,La--,St===10&&(La=1,zd--),St}function Mr(){return St=xr2||Tl(St)>3?"":" "}function B6(e,t){for(;--t&&Mr()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return Kl(e,sc()+(t<6&&Nn()==32&&Mr()==32))}function av(e){for(;Mr();)switch(St){case e:return xr;case 34:case 39:e!==34&&e!==39&&av(St);break;case 40:e===41&&av(e);break;case 92:Mr();break}return xr}function U6(e,t){for(;Mr()&&e+St!==47+10;)if(e+St===42+42&&Nn()===47)break;return"/*"+Kl(t,xr-1)+"*"+jd(e===47?e:Mr())}function H6(e){for(;!Tl(Nn());)Mr();return Kl(e,xr)}function vw(e){return OE(uc("",null,null,null,[""],e=TE(e),0,[0],e))}function uc(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,d=a,p=0,_=0,b=0,g=1,R=1,v=1,S=0,w="",T=o,E=i,P=n,x=w;R;)switch(b=S,S=Mr()){case 40:if(b!=108&&Lt(x,d-1)==58){iv(x+=$e(lc(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=lc(S);break;case 9:case 10:case 13:case 32:x+=W6(b);break;case 92:x+=B6(sc()-1,7);continue;case 47:switch(Nn()){case 42:case 47:$u(q6(U6(Mr(),sc()),t,r),u);break;default:x+="/"}break;case 123*g:s[c++]=On(x)*v;case 125*g:case 59:case 0:switch(S){case 0:case 125:R=0;case 59+f:_>0&&On(x)-d&&$u(_>32?yw(x+";",n,r,d-1):yw($e(x," ","")+";",n,r,d-2),u);break;case 59:x+=";";default:if($u(P=gw(x,t,r,c,f,o,s,w,T=[],E=[],d),i),S===123)if(f===0)uc(x,t,P,P,T,i,d,s,E);else switch(p===99&&Lt(x,3)===110?100:p){case 100:case 109:case 115:uc(e,P,P,n&&$u(gw(e,P,P,0,0,o,s,w,o,T=[],d),E),o,E,d,s,n?T:E);break;default:uc(x,P,P,P,[""],E,0,s,E)}}c=f=_=0,g=v=1,w=x="",d=a;break;case 58:d=1+On(x),_=b;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&F6()==125)continue}switch(x+=jd(S),S*g){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[c++]=(On(x)-1)*v,v=1;break;case 64:Nn()===45&&(x+=lc(Mr())),p=Nn(),f=d=On(w=x+=H6(sc())),S++;break;case 45:b===45&&On(x)==2&&(g=0)}}return i}function gw(e,t,r,n,o,i,a,s,u,c,f){for(var d=o-1,p=o===0?i:[""],_=o0(p),b=0,g=0,R=0;b0?p[v]+" "+S:$e(S,/&\f/g,p[v])))&&(u[R++]=w);return Ad(e,t,r,o===0?r0:s,u,c,f)}function q6(e,t,r){return Ad(e,t,r,wE,jd(D6()),Rl(e,2,-2),0)}function yw(e,t,r,n){return Ad(e,t,r,n0,Rl(e,0,n),Rl(e,n+1,-1),n)}function pi(e,t){for(var r="",n=o0(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return $e(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+df+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iv(e,"stretch")?EE($e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,On(e)-3-(~iv(e,"!important")&&10))){case 107:return $e(e,":",":"+Ae)+e;case 101:return $e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Kt+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Ae+e+Kt+$e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Kt+$e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Kt+$e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Kt+e+e}return e}var Z6=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case n0:t.return=EE(t.value,t.length);break;case xE:return pi([Ts(t,{value:$e(t.value,"@","@"+Ae)})],o);case r0:if(t.length)return $6(t.props,function(i){switch(L6(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Ts(t,{props:[$e(i,/:(read-\w+)/,":"+df+"$1")]})],o);case"::placeholder":return pi([Ts(t,{props:[$e(i,/:(plac\w+)/,":"+Ae+"input-$1")]}),Ts(t,{props:[$e(i,/:(plac\w+)/,":"+df+"$1")]}),Ts(t,{props:[$e(i,/:(plac\w+)/,Kt+"input-$1")]})],o)}return""})}},cc=typeof document<"u",e8=cc?void 0:V6(function(){return t0(function(){var e={};return function(t){return e[t]}})}),t8=[Z6],PE=function(t){var r=t.key;if(cc&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(T){var E=T.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var o=t.stylisPlugins||t8,i={},a,s=[];cc&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(T){for(var E=T.getAttribute("data-emotion").split(" "),P=1;P=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 c8={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},f8=/[A-Z]|^ms/g,d8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jE=function(t){return t.charCodeAt(1)===45},xw=function(t){return t!=null&&typeof t!="boolean"},Lp=t0(function(e){return jE(e)?e:e.replace(f8,"-$&").toLowerCase()}),Cw=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(d8,function(n,o,i){return En={name:o,styles:i,next:En},o})}return c8[t]!==1&&!jE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ol(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 En={name:r.name,styles:r.styles,next:En},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)En={name:n.name,styles:n.styles,next:En},n=n.next;var o=r.styles+";";return o}return h8(e,t,r)}case"function":{if(e!==void 0){var i=En,a=r(e);return En=i,Ol(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function h8(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?m8:v8},Ow=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},g8=typeof document<"u",y8=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;IE(r,n,o);var i=o8(function(){return l8(r,n,o)});if(!g8&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return A.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},S8=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=Ow(t,r,n),u=s||Tw(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,_=1;_"u")return!1;var t=rn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function X8(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];!Kr(i)||!Ln(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 J8(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},{});!Kr(o)||!Ln(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var Z8={name:"applyStyles",enabled:!0,phase:"write",fn:X8,effect:J8,requires:["computeStyles"]};function Mn(e){return e.split("-")[0]}var mi=Math.max,mf=Math.min,Da=Math.round;function sv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function FP(){return!/^((?!chrome|android).)*safari/i.test(sv())}function Fa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Kr(e)&&(o=e.offsetWidth>0&&Da(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Da(n.height)/e.offsetHeight||1);var a=Ri(e)?rn(e):window,s=a.visualViewport,u=!FP()&&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 l0(e){var t=Fa(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 WP(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&s0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function so(e){return rn(e).getComputedStyle(e)}function e9(e){return["table","td","th"].indexOf(Ln(e))>=0}function Vo(e){return((Ri(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nd(e){return Ln(e)==="html"?e:e.assignedSlot||e.parentNode||(s0(e)?e.host:null)||Vo(e)}function Ub(e){return!Kr(e)||so(e).position==="fixed"?null:e.offsetParent}function t9(e){var t=/firefox/i.test(sv()),r=/Trident/i.test(sv());if(r&&Kr(e)){var n=so(e);if(n.position==="fixed")return null}var o=Nd(e);for(s0(o)&&(o=o.host);Kr(o)&&["html","body"].indexOf(Ln(o))<0;){var i=so(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 Yl(e){for(var t=rn(e),r=Ub(e);r&&e9(r)&&so(r).position==="static";)r=Ub(r);return r&&(Ln(r)==="html"||Ln(r)==="body"&&so(r).position==="static")?t:r||t9(e)||t}function u0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xs(e,t,r){return mi(e,mf(t,r))}function r9(e,t,r){var n=Xs(e,t,r);return n>r?r:n}function BP(){return{top:0,right:0,bottom:0,left:0}}function UP(e){return Object.assign({},BP(),e)}function HP(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var n9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,UP(typeof t!="number"?t:HP(t,Kl))};function o9(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Mn(r.placement),u=u0(s),c=[wr,Jr].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!a)){var d=n9(o.padding,r),p=l0(i),_=u==="y"?_r:wr,w=u==="y"?Xr:Jr,g=r.rects.reference[f]+r.rects.reference[u]-a[u]-r.rects.popper[f],R=a[u]-r.rects.reference[u],v=Yl(i),S=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-R/2,T=d[_],P=S-p[f]-d[w],E=S/2-p[f]/2+b,x=Xs(T,E,P),k=u;r.modifiersData[n]=(t={},t[k]=x,t.centerOffset=x-E,t)}}function i9(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)||WP(t.elements.popper,o)&&(t.elements.arrow=o))}var a9={name:"arrow",enabled:!0,phase:"main",fn:o9,effect:i9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wa(e){return e.split("-")[1]}var s9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l9(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Da(t*o)/o||0,y:Da(r*o)/o||0}}function Hb(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,_=p===void 0?0:p,w=a.y,g=w===void 0?0:w,R=typeof f=="function"?f({x:_,y:g}):{x:_,y:g};_=R.x,g=R.y;var v=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),b=wr,T=_r,P=window;if(c){var E=Yl(r),x="clientHeight",k="clientWidth";if(E===rn(r)&&(E=Vo(r),so(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",k="scrollWidth")),E=E,o===_r||(o===wr||o===Jr)&&i===Ol){T=Xr;var I=d&&E===P&&P.visualViewport?P.visualViewport.height:E[x];g-=I-n.height,g*=u?1:-1}if(o===wr||(o===_r||o===Xr)&&i===Ol){b=Jr;var j=d&&E===P&&P.visualViewport?P.visualViewport.width:E[k];_-=j-n.width,_*=u?1:-1}}var M=Object.assign({position:s},c&&s9),D=f===!0?l9({x:_,y:g}):{x:_,y:g};if(_=D.x,g=D.y,u){var U;return Object.assign({},M,(U={},U[T]=S?"0":"",U[b]=v?"0":"",U.transform=(P.devicePixelRatio||1)<=1?"translate("+_+"px, "+g+"px)":"translate3d("+_+"px, "+g+"px, 0)",U))}return Object.assign({},M,(t={},t[T]=S?g+"px":"",t[b]=v?_+"px":"",t.transform="",t))}function u9(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:Mn(t.placement),variation:Wa(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,Hb(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,Hb(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 c9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u9,data:{}},$u={passive:!0};function f9(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=rn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",r.update,$u)}),s&&u.addEventListener("resize",r.update,$u),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",r.update,$u)}),s&&u.removeEventListener("resize",r.update,$u)}}var d9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:f9,data:{}},h9={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(e){return e.replace(/left|right|bottom|top/g,function(t){return h9[t]})}var p9={start:"end",end:"start"};function qb(e){return e.replace(/start|end/g,function(t){return p9[t]})}function c0(e){var t=rn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function f0(e){return Fa(Vo(e)).left+c0(e).scrollLeft}function m9(e,t){var r=rn(e),n=Vo(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=FP();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+f0(e),y:u}}function v9(e){var t,r=Vo(e),n=c0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=mi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+f0(e),u=-n.scrollTop;return so(o||r).direction==="rtl"&&(s+=mi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function d0(e){var t=so(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function qP(e){return["html","body","#document"].indexOf(Ln(e))>=0?e.ownerDocument.body:Kr(e)&&d0(e)?e:qP(Nd(e))}function Js(e,t){var r;t===void 0&&(t=[]);var n=qP(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=rn(n),a=o?[i].concat(i.visualViewport||[],d0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Js(Nd(a)))}function lv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function g9(e,t){var r=Fa(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 Gb(e,t,r){return t===$P?lv(m9(e,r)):Ri(t)?g9(t,r):lv(v9(Vo(e)))}function y9(e){var t=Js(Nd(e)),r=["absolute","fixed"].indexOf(so(e).position)>=0,n=r&&Kr(e)?Yl(e):e;return Ri(n)?t.filter(function(o){return Ri(o)&&WP(o,n)&&Ln(o)!=="body"}):[]}function S9(e,t,r,n){var o=t==="clippingParents"?y9(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var f=Gb(e,c,n);return u.top=mi(f.top,u.top),u.right=mf(f.right,u.right),u.bottom=mf(f.bottom,u.bottom),u.left=mi(f.left,u.left),u},Gb(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 GP(e){var t=e.reference,r=e.element,n=e.placement,o=n?Mn(n):null,i=n?Wa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case _r:u={x:a,y:t.y-r.height};break;case Xr:u={x:a,y:t.y+t.height};break;case Jr:u={x:t.x+t.width,y:s};break;case wr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?u0(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case $a:u[c]=u[c]-(t[f]/2-r[f]/2);break;case Ol:u[c]=u[c]+(t[f]/2-r[f]/2);break}}return u}function Pl(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?D8:s,c=r.rootBoundary,f=c===void 0?$P:c,d=r.elementContext,p=d===void 0?Os:d,_=r.altBoundary,w=_===void 0?!1:_,g=r.padding,R=g===void 0?0:g,v=UP(typeof R!="number"?R:HP(R,Kl)),S=p===Os?F8:Os,b=e.rects.popper,T=e.elements[w?S:p],P=S9(Ri(T)?T:T.contextElement||Vo(e.elements.popper),u,f,a),E=Fa(e.elements.reference),x=GP({reference:E,element:b,strategy:"absolute",placement:o}),k=lv(Object.assign({},b,x)),I=p===Os?k:E,j={top:P.top-I.top+v.top,bottom:I.bottom-P.bottom+v.bottom,left:P.left-I.left+v.left,right:I.right-P.right+v.right},M=e.modifiersData.offset;if(p===Os&&M){var D=M[o];Object.keys(j).forEach(function(U){var H=[Jr,Xr].indexOf(U)>=0?1:-1,ie=[_r,Xr].indexOf(U)>=0?"y":"x";j[U]+=D[ie]*H})}return j}function _9(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?DP:u,f=Wa(n),d=f?s?Bb:Bb.filter(function(w){return Wa(w)===f}):Kl,p=d.filter(function(w){return c.indexOf(w)>=0});p.length===0&&(p=d);var _=p.reduce(function(w,g){return w[g]=Pl(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Mn(g)],w},{});return Object.keys(_).sort(function(w,g){return _[w]-_[g]})}function w9(e){if(Mn(e)===a0)return[];var t=cc(e);return[qb(e),t,qb(t)]}function b9(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,_=r.flipVariations,w=_===void 0?!0:_,g=r.allowedAutoPlacements,R=t.options.placement,v=Mn(R),S=v===R,b=u||(S||!w?[cc(R)]:w9(R)),T=[R].concat(b).reduce(function(Me,Se){return Me.concat(Mn(Se)===a0?_9(t,{placement:Se,boundary:f,rootBoundary:d,padding:c,flipVariations:w,allowedAutoPlacements:g}):Se)},[]),P=t.rects.reference,E=t.rects.popper,x=new Map,k=!0,I=T[0],j=0;j=0,ie=H?"width":"height",oe=Pl(t,{placement:M,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),ge=H?U?Jr:wr:U?Xr:_r;P[ie]>E[ie]&&(ge=cc(ge));var Z=cc(ge),se=[];if(i&&se.push(oe[D]<=0),s&&se.push(oe[ge]<=0,oe[Z]<=0),se.every(function(Me){return Me})){I=M,k=!1;break}x.set(M,se)}if(k)for(var ce=w?3:1,we=function(Se){var G=T.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"},Te=ce;Te>0;Te--){var bt=we(Te);if(bt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var x9={name:"flip",enabled:!0,phase:"main",fn:b9,requiresIfExists:["offset"],data:{_skip:!1}};function Vb(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 Kb(e){return[_r,Jr,Xr,wr].some(function(t){return e[t]>=0})}function C9(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pl(t,{elementContext:"reference"}),s=Pl(t,{altBoundary:!0}),u=Vb(a,n),c=Vb(s,o,i),f=Kb(u),d=Kb(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 R9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C9};function T9(e,t,r){var n=Mn(e),o=[wr,_r].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,[wr,Jr].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function O9(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=DP.reduce(function(f,d){return f[d]=T9(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 P9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O9};function E9(e){var t=e.state,r=e.name;t.modifiersData[r]=GP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var k9={name:"popperOffsets",enabled:!0,phase:"read",fn:E9,data:{}};function I9(e){return e==="x"?"y":"x"}function j9(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,_=p===void 0?!0:p,w=r.tetherOffset,g=w===void 0?0:w,R=Pl(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),v=Mn(t.placement),S=Wa(t.placement),b=!S,T=u0(v),P=I9(T),E=t.modifiersData.popperOffsets,x=t.rects.reference,k=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,D={x:0,y:0};if(E){if(i){var U,H=T==="y"?_r:wr,ie=T==="y"?Xr:Jr,oe=T==="y"?"height":"width",ge=E[T],Z=ge+R[H],se=ge-R[ie],ce=_?-k[oe]/2:0,we=S===$a?x[oe]:k[oe],Te=S===$a?-k[oe]:-x[oe],bt=t.elements.arrow,Me=_&&bt?l0(bt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:BP(),G=Se[H],V=Se[ie],q=Xs(0,x[oe],Me[oe]),J=b?x[oe]/2-ce-q-G-j.mainAxis:we-q-G-j.mainAxis,W=b?-x[oe]/2+ce+q+V+j.mainAxis:Te+q+V+j.mainAxis,fe=t.elements.arrow&&Yl(t.elements.arrow),ae=fe?T==="y"?fe.clientTop||0:fe.clientLeft||0:0,te=(U=M==null?void 0:M[T])!=null?U:0,re=ge+J-te-ae,K=ge+W-te,X=Xs(_?mf(Z,re):Z,ge,_?mi(se,K):se);E[T]=X,D[T]=X-ge}if(s){var le,pe=T==="x"?_r:wr,ve=T==="x"?Xr:Jr,ye=E[P],_e=P==="y"?"height":"width",Re=ye+R[pe],Ie=ye-R[ve],Le=[_r,wr].indexOf(v)!==-1,xt=(le=M==null?void 0:M[P])!=null?le:0,hr=Le?Re:ye-x[_e]-k[_e]-xt+j.altAxis,tr=Le?ye+x[_e]+k[_e]-xt-j.altAxis:Ie,Bt=_&&Le?r9(hr,ye,tr):Xs(_?hr:Re,ye,_?tr:Ie);E[P]=Bt,D[P]=Bt-ye}t.modifiersData[n]=D}}var z9={name:"preventOverflow",enabled:!0,phase:"main",fn:j9,requiresIfExists:["offset"]};function A9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N9(e){return e===rn(e)||!Kr(e)?c0(e):A9(e)}function M9(e){var t=e.getBoundingClientRect(),r=Da(t.width)/e.offsetWidth||1,n=Da(t.height)/e.offsetHeight||1;return r!==1||n!==1}function L9(e,t,r){r===void 0&&(r=!1);var n=Kr(t),o=Kr(t)&&M9(t),i=Vo(t),a=Fa(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Ln(t)!=="body"||d0(i))&&(s=N9(t)),Kr(t)?(u=Fa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=f0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function $9(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 D9(e){var t=$9(e);return Q8.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function F9(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W9(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 Yb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){for(var e=arguments.length,t=new Array(e),r=0;r"u")return!1;var t=rn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function X8(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];!Kr(i)||!Ln(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 J8(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},{});!Kr(o)||!Ln(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var Z8={name:"applyStyles",enabled:!0,phase:"write",fn:X8,effect:J8,requires:["computeStyles"]};function Mn(e){return e.split("-")[0]}var mi=Math.max,mf=Math.min,Da=Math.round;function lv(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function BE(){return!/^((?!chrome|android).)*safari/i.test(lv())}function Fa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Kr(e)&&(o=e.offsetWidth>0&&Da(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Da(n.height)/e.offsetHeight||1);var a=Ri(e)?rn(e):window,s=a.visualViewport,u=!BE()&&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 l0(e){var t=Fa(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 UE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&s0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function so(e){return rn(e).getComputedStyle(e)}function e9(e){return["table","td","th"].indexOf(Ln(e))>=0}function Vo(e){return((Ri(e)?e.ownerDocument:e.document)||window.document).documentElement}function Md(e){return Ln(e)==="html"?e:e.assignedSlot||e.parentNode||(s0(e)?e.host:null)||Vo(e)}function Uw(e){return!Kr(e)||so(e).position==="fixed"?null:e.offsetParent}function t9(e){var t=/firefox/i.test(lv()),r=/Trident/i.test(lv());if(r&&Kr(e)){var n=so(e);if(n.position==="fixed")return null}var o=Md(e);for(s0(o)&&(o=o.host);Kr(o)&&["html","body"].indexOf(Ln(o))<0;){var i=so(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 Ql(e){for(var t=rn(e),r=Uw(e);r&&e9(r)&&so(r).position==="static";)r=Uw(r);return r&&(Ln(r)==="html"||Ln(r)==="body"&&so(r).position==="static")?t:r||t9(e)||t}function u0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xs(e,t,r){return mi(e,mf(t,r))}function r9(e,t,r){var n=Xs(e,t,r);return n>r?r:n}function HE(){return{top:0,right:0,bottom:0,left:0}}function qE(e){return Object.assign({},HE(),e)}function GE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var n9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,qE(typeof t!="number"?t:GE(t,Yl))};function o9(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Mn(r.placement),u=u0(s),c=[br,Jr].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!a)){var d=n9(o.padding,r),p=l0(i),_=u==="y"?_r:br,b=u==="y"?Xr:Jr,g=r.rects.reference[f]+r.rects.reference[u]-a[u]-r.rects.popper[f],R=a[u]-r.rects.reference[u],v=Ql(i),S=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,w=g/2-R/2,T=d[_],E=S-p[f]-d[b],P=S/2-p[f]/2+w,x=Xs(T,P,E),k=u;r.modifiersData[n]=(t={},t[k]=x,t.centerOffset=x-P,t)}}function i9(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)||UE(t.elements.popper,o)&&(t.elements.arrow=o))}var a9={name:"arrow",enabled:!0,phase:"main",fn:o9,effect:i9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wa(e){return e.split("-")[1]}var s9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l9(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Da(t*o)/o||0,y:Da(r*o)/o||0}}function Hw(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,_=p===void 0?0:p,b=a.y,g=b===void 0?0:b,R=typeof f=="function"?f({x:_,y:g}):{x:_,y:g};_=R.x,g=R.y;var v=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),w=br,T=_r,E=window;if(c){var P=Ql(r),x="clientHeight",k="clientWidth";if(P===rn(r)&&(P=Vo(r),so(P).position!=="static"&&s==="absolute"&&(x="scrollHeight",k="scrollWidth")),P=P,o===_r||(o===br||o===Jr)&&i===El){T=Xr;var I=d&&P===E&&E.visualViewport?E.visualViewport.height:P[x];g-=I-n.height,g*=u?1:-1}if(o===br||(o===_r||o===Xr)&&i===El){w=Jr;var j=d&&P===E&&E.visualViewport?E.visualViewport.width:P[k];_-=j-n.width,_*=u?1:-1}}var M=Object.assign({position:s},c&&s9),D=f===!0?l9({x:_,y:g}):{x:_,y:g};if(_=D.x,g=D.y,u){var U;return Object.assign({},M,(U={},U[T]=S?"0":"",U[w]=v?"0":"",U.transform=(E.devicePixelRatio||1)<=1?"translate("+_+"px, "+g+"px)":"translate3d("+_+"px, "+g+"px, 0)",U))}return Object.assign({},M,(t={},t[T]=S?g+"px":"",t[w]=v?_+"px":"",t.transform="",t))}function u9(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:Mn(t.placement),variation:Wa(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,Hw(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,Hw(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 c9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u9,data:{}},Du={passive:!0};function f9(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=rn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",r.update,Du)}),s&&u.addEventListener("resize",r.update,Du),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",r.update,Du)}),s&&u.removeEventListener("resize",r.update,Du)}}var d9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:f9,data:{}},h9={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(e){return e.replace(/left|right|bottom|top/g,function(t){return h9[t]})}var p9={start:"end",end:"start"};function qw(e){return e.replace(/start|end/g,function(t){return p9[t]})}function c0(e){var t=rn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function f0(e){return Fa(Vo(e)).left+c0(e).scrollLeft}function m9(e,t){var r=rn(e),n=Vo(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=BE();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+f0(e),y:u}}function v9(e){var t,r=Vo(e),n=c0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=mi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+f0(e),u=-n.scrollTop;return so(o||r).direction==="rtl"&&(s+=mi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function d0(e){var t=so(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function VE(e){return["html","body","#document"].indexOf(Ln(e))>=0?e.ownerDocument.body:Kr(e)&&d0(e)?e:VE(Md(e))}function Js(e,t){var r;t===void 0&&(t=[]);var n=VE(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=rn(n),a=o?[i].concat(i.visualViewport||[],d0(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Js(Md(a)))}function uv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function g9(e,t){var r=Fa(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 Gw(e,t,r){return t===FE?uv(m9(e,r)):Ri(t)?g9(t,r):uv(v9(Vo(e)))}function y9(e){var t=Js(Md(e)),r=["absolute","fixed"].indexOf(so(e).position)>=0,n=r&&Kr(e)?Ql(e):e;return Ri(n)?t.filter(function(o){return Ri(o)&&UE(o,n)&&Ln(o)!=="body"}):[]}function S9(e,t,r,n){var o=t==="clippingParents"?y9(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var f=Gw(e,c,n);return u.top=mi(f.top,u.top),u.right=mf(f.right,u.right),u.bottom=mf(f.bottom,u.bottom),u.left=mi(f.left,u.left),u},Gw(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 KE(e){var t=e.reference,r=e.element,n=e.placement,o=n?Mn(n):null,i=n?Wa(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case _r:u={x:a,y:t.y-r.height};break;case Xr:u={x:a,y:t.y+t.height};break;case Jr:u={x:t.x+t.width,y:s};break;case br:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?u0(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case $a:u[c]=u[c]-(t[f]/2-r[f]/2);break;case El:u[c]=u[c]+(t[f]/2-r[f]/2);break}}return u}function Pl(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?D8:s,c=r.rootBoundary,f=c===void 0?FE:c,d=r.elementContext,p=d===void 0?Os:d,_=r.altBoundary,b=_===void 0?!1:_,g=r.padding,R=g===void 0?0:g,v=qE(typeof R!="number"?R:GE(R,Yl)),S=p===Os?F8:Os,w=e.rects.popper,T=e.elements[b?S:p],E=S9(Ri(T)?T:T.contextElement||Vo(e.elements.popper),u,f,a),P=Fa(e.elements.reference),x=KE({reference:P,element:w,strategy:"absolute",placement:o}),k=uv(Object.assign({},w,x)),I=p===Os?k:P,j={top:E.top-I.top+v.top,bottom:I.bottom-E.bottom+v.bottom,left:E.left-I.left+v.left,right:I.right-E.right+v.right},M=e.modifiersData.offset;if(p===Os&&M){var D=M[o];Object.keys(j).forEach(function(U){var H=[Jr,Xr].indexOf(U)>=0?1:-1,ie=[_r,Xr].indexOf(U)>=0?"y":"x";j[U]+=D[ie]*H})}return j}function _9(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?WE:u,f=Wa(n),d=f?s?Bw:Bw.filter(function(b){return Wa(b)===f}):Yl,p=d.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=d);var _=p.reduce(function(b,g){return b[g]=Pl(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Mn(g)],b},{});return Object.keys(_).sort(function(b,g){return _[b]-_[g]})}function b9(e){if(Mn(e)===a0)return[];var t=fc(e);return[qw(e),t,qw(t)]}function w9(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,_=r.flipVariations,b=_===void 0?!0:_,g=r.allowedAutoPlacements,R=t.options.placement,v=Mn(R),S=v===R,w=u||(S||!b?[fc(R)]:b9(R)),T=[R].concat(w).reduce(function(Me,Se){return Me.concat(Mn(Se)===a0?_9(t,{placement:Se,boundary:f,rootBoundary:d,padding:c,flipVariations:b,allowedAutoPlacements:g}):Se)},[]),E=t.rects.reference,P=t.rects.popper,x=new Map,k=!0,I=T[0],j=0;j=0,ie=H?"width":"height",oe=Pl(t,{placement:M,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),ge=H?U?Jr:br:U?Xr:_r;E[ie]>P[ie]&&(ge=fc(ge));var Z=fc(ge),se=[];if(i&&se.push(oe[D]<=0),s&&se.push(oe[ge]<=0,oe[Z]<=0),se.every(function(Me){return Me})){I=M,k=!1;break}x.set(M,se)}if(k)for(var ce=b?3:1,be=function(Se){var G=T.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"},Te=ce;Te>0;Te--){var wt=be(Te);if(wt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var x9={name:"flip",enabled:!0,phase:"main",fn:w9,requiresIfExists:["offset"],data:{_skip:!1}};function Vw(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 Kw(e){return[_r,Jr,Xr,br].some(function(t){return e[t]>=0})}function C9(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pl(t,{elementContext:"reference"}),s=Pl(t,{altBoundary:!0}),u=Vw(a,n),c=Vw(s,o,i),f=Kw(u),d=Kw(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 R9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C9};function T9(e,t,r){var n=Mn(e),o=[br,_r].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,[br,Jr].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function O9(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=WE.reduce(function(f,d){return f[d]=T9(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 E9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O9};function P9(e){var t=e.state,r=e.name;t.modifiersData[r]=KE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var k9={name:"popperOffsets",enabled:!0,phase:"read",fn:P9,data:{}};function I9(e){return e==="x"?"y":"x"}function j9(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,_=p===void 0?!0:p,b=r.tetherOffset,g=b===void 0?0:b,R=Pl(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),v=Mn(t.placement),S=Wa(t.placement),w=!S,T=u0(v),E=I9(T),P=t.modifiersData.popperOffsets,x=t.rects.reference,k=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,D={x:0,y:0};if(P){if(i){var U,H=T==="y"?_r:br,ie=T==="y"?Xr:Jr,oe=T==="y"?"height":"width",ge=P[T],Z=ge+R[H],se=ge-R[ie],ce=_?-k[oe]/2:0,be=S===$a?x[oe]:k[oe],Te=S===$a?-k[oe]:-x[oe],wt=t.elements.arrow,Me=_&&wt?l0(wt):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:HE(),G=Se[H],V=Se[ie],q=Xs(0,x[oe],Me[oe]),J=w?x[oe]/2-ce-q-G-j.mainAxis:be-q-G-j.mainAxis,W=w?-x[oe]/2+ce+q+V+j.mainAxis:Te+q+V+j.mainAxis,fe=t.elements.arrow&&Ql(t.elements.arrow),ae=fe?T==="y"?fe.clientTop||0:fe.clientLeft||0:0,te=(U=M==null?void 0:M[T])!=null?U:0,re=ge+J-te-ae,K=ge+W-te,X=Xs(_?mf(Z,re):Z,ge,_?mi(se,K):se);P[T]=X,D[T]=X-ge}if(s){var le,pe=T==="x"?_r:br,ve=T==="x"?Xr:Jr,ye=P[E],_e=E==="y"?"height":"width",Re=ye+R[pe],je=ye-R[ve],Le=[_r,br].indexOf(v)!==-1,xt=(le=M==null?void 0:M[E])!=null?le:0,hr=Le?Re:ye-x[_e]-k[_e]-xt+j.altAxis,tr=Le?ye+x[_e]+k[_e]-xt-j.altAxis:je,Bt=_&&Le?r9(hr,ye,tr):Xs(_?hr:Re,ye,_?tr:je);P[E]=Bt,D[E]=Bt-ye}t.modifiersData[n]=D}}var z9={name:"preventOverflow",enabled:!0,phase:"main",fn:j9,requiresIfExists:["offset"]};function A9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N9(e){return e===rn(e)||!Kr(e)?c0(e):A9(e)}function M9(e){var t=e.getBoundingClientRect(),r=Da(t.width)/e.offsetWidth||1,n=Da(t.height)/e.offsetHeight||1;return r!==1||n!==1}function L9(e,t,r){r===void 0&&(r=!1);var n=Kr(t),o=Kr(t)&&M9(t),i=Vo(t),a=Fa(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Ln(t)!=="body"||d0(i))&&(s=N9(t)),Kr(t)?(u=Fa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=f0(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function $9(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 D9(e){var t=$9(e);return Q8.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function F9(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W9(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 Yw={placement:"bottom",modifiers:[],strategy:"absolute"};function Qw(){for(var e=arguments.length,t=new Array(e),r=0;r"u"&&Z(!ge)}},ae=function(X){b==null||b(X),fe()},te=function(X){T==null||T(X),X.key==="Enter"&&fe()},re=function(X){if(H){var le={level:E,disabled:g,active:_,isSubmenu:!0,open:f??ge},pe=H.root,ve=H.button,ye=H.label,_e=H.icon,Re=H.prefix,Ie=H.suffix,Le=H.subMenuContent,xt=H.SubMenuExpandIcon;switch(X){case"root":return typeof pe=="function"?pe(le):pe;case"button":return typeof ve=="function"?ve(le):ve;case"label":return typeof ye=="function"?ye(le):ye;case"icon":return typeof _e=="function"?_e(le):_e;case"prefix":return typeof Re=="function"?Re(le):Re;case"suffix":return typeof Ie=="function"?Ie(le):Ie;case"SubMenuExpandIcon":return typeof xt=="function"?xt(le):xt;case"subMenuContent":return typeof Le=="function"?Le(le):Le;default:return}}};ne.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),k&&E===0&&we(!1)},[k,E,I,j,q]),ne.useEffect(function(){var X=function(ye){var _e,Re,Ie;!ce&&(!((_e=Se.current)===null||_e===void 0)&&_e.contains(ye))?we(!0):(U&&!(!((Re=ye.closest(".".concat(Fe.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Fe.subMenuRoot))||!(!((Ie=G.current)===null||Ie===void 0)&&Ie.contains(ye))&&ce)&&we(!1)},le=function(ye){X(ye.target)},pe=function(ye){ye.key==="Enter"?X(ye.target):ye.key==="Escape"&&we(!1)},ve=function(){document.removeEventListener("click",le),document.removeEventListener("keyup",pe)};return ve(),k&&E===0&&(document.addEventListener("click",le,!1),document.addEventListener("keyup",pe,!1)),function(){ve()}},[k,E,U,ce]),ne.useEffect(function(){Me(!0)},[]);var K=(r={},r[Fe.active]=_,r[Fe.disabled]=g,r[Fe.open]=f??ge,r);return ne.createElement(V9,{ref:t,className:Rt(Fe.menuItemRoot,Fe.subMenuRoot,K,o),menuItemStyles:re("root"),level:E,collapsed:k,rtl:I,disabled:g,active:_,buttonStyles:re("button"),rootStyles:R},ne.createElement(KP,Ir({"data-testid":"".concat(Fe.button,"-test-id"),ref:Se,title:s,className:Rt(Fe.button,K),onClick:ae,onKeyUp:te,component:v,tabIndex:0},P),a&&ne.createElement(NP,{rtl:I,className:Rt(Fe.icon,K),rootStyles:re("icon")},a),u&&ne.createElement(MP,{collapsed:k,transitionDuration:j,firstLevel:E===0,className:Rt(Fe.prefix,K),rtl:I,rootStyles:re("prefix")},u),ne.createElement(AP,{className:Rt(Fe.label,K),rootStyles:re("label")},i),c&&ne.createElement(LP,{collapsed:k,transitionDuration:j,firstLevel:E===0,className:Rt(Fe.suffix,K),rootStyles:re("suffix")},c),ne.createElement(M8,{rtl:I,className:Rt(Fe.SubMenuExpandIcon,K),collapsed:k,level:E,rootStyles:re("SubMenuExpandIcon")},D?D({level:E,disabled:g,active:_,open:f??ge}):k&&E===0?ne.createElement($8,null):ne.createElement(L8,{rtl:I,open:f??ge}))),ne.createElement(N8,{ref:G,openWhenCollapsed:ce,open:f??ge,firstLevel:E===0,collapsed:k,defaultOpen:f&&!bt||d,className:Rt(Fe.subMenuContent,K),rootStyles:re("subMenuContent")},ne.createElement(pf.Provider,{value:E+1},n)))},Y9=ne.forwardRef(K9),Xb,Q9=kt.li(Jb||(Jb=er([` +`])),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 YE({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),K9=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,_=p===void 0?!1:p,b=e.disabled,g=b===void 0?!1:b,R=e.rootStyles,v=e.component,S=e.onOpenChange,w=e.onClick,T=e.onKeyUp,E=Ci(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),P=ne.useContext(pf),x=ne.useContext(Nd),k=x.collapsed,I=x.rtl,j=x.transitionDuration,M=i0(),D=M.renderExpandIcon,U=M.closeOnClick,H=M.menuItemStyles,ie=M.transitionDuration,oe=ne.useState(!!d),ge=oe[0],Z=oe[1],se=ne.useState(!1),ce=se[0],be=se[1],Te=ne.useState(!1),wt=Te[0],Me=Te[1],Se=ne.useRef(null),G=ne.useRef(null),V=ne.useRef(),q=q9({level:P,buttonRef:Se,contentRef:G}).popperInstance,J=function(){var X=G.current;if(X){X.style.display="block",X.style.overflow="hidden",X.style.height="auto";var le=X.offsetHeight;X.style.height="0px",X.offsetHeight,X.style.height="".concat(le,"px"),V.current=setTimeout(function(){X.style.overflow="auto",X.style.height="auto"},ie)}},W=function(){var X=G.current;X&&(X.style.overflow="hidden",X.style.height="".concat(X.offsetHeight,"px"),X.offsetHeight,X.style.height="0px",V.current=setTimeout(function(){X.style.overflow="auto",X.style.display="none"},ie))},fe=function(){if(!(P===0&&k)){clearTimeout(Number(V.current));var X=f??ge;X?W():J(),S==null||S(!X),typeof f>"u"&&Z(!ge)}},ae=function(X){w==null||w(X),fe()},te=function(X){T==null||T(X),X.key==="Enter"&&fe()},re=function(X){if(H){var le={level:P,disabled:g,active:_,isSubmenu:!0,open:f??ge},pe=H.root,ve=H.button,ye=H.label,_e=H.icon,Re=H.prefix,je=H.suffix,Le=H.subMenuContent,xt=H.SubMenuExpandIcon;switch(X){case"root":return typeof pe=="function"?pe(le):pe;case"button":return typeof ve=="function"?ve(le):ve;case"label":return typeof ye=="function"?ye(le):ye;case"icon":return typeof _e=="function"?_e(le):_e;case"prefix":return typeof Re=="function"?Re(le):Re;case"suffix":return typeof je=="function"?je(le):je;case"SubMenuExpandIcon":return typeof xt=="function"?xt(le):xt;case"subMenuContent":return typeof Le=="function"?Le(le):Le;default:return}}};ne.useEffect(function(){setTimeout(function(){return q==null?void 0:q.update()},j),k&&P===0&&be(!1)},[k,P,I,j,q]),ne.useEffect(function(){var X=function(ye){var _e,Re,je;!ce&&(!((_e=Se.current)===null||_e===void 0)&&_e.contains(ye))?be(!0):(U&&!(!((Re=ye.closest(".".concat(Fe.menuItemRoot)))===null||Re===void 0)&&Re.classList.contains(Fe.subMenuRoot))||!(!((je=G.current)===null||je===void 0)&&je.contains(ye))&&ce)&&be(!1)},le=function(ye){X(ye.target)},pe=function(ye){ye.key==="Enter"?X(ye.target):ye.key==="Escape"&&be(!1)},ve=function(){document.removeEventListener("click",le),document.removeEventListener("keyup",pe)};return ve(),k&&P===0&&(document.addEventListener("click",le,!1),document.addEventListener("keyup",pe,!1)),function(){ve()}},[k,P,U,ce]),ne.useEffect(function(){Me(!0)},[]);var K=(r={},r[Fe.active]=_,r[Fe.disabled]=g,r[Fe.open]=f??ge,r);return ne.createElement(V9,{ref:t,className:Rt(Fe.menuItemRoot,Fe.subMenuRoot,K,o),menuItemStyles:re("root"),level:P,collapsed:k,rtl:I,disabled:g,active:_,buttonStyles:re("button"),rootStyles:R},ne.createElement(QE,Ir({"data-testid":"".concat(Fe.button,"-test-id"),ref:Se,title:s,className:Rt(Fe.button,K),onClick:ae,onKeyUp:te,component:v,tabIndex:0},E),a&&ne.createElement(LE,{rtl:I,className:Rt(Fe.icon,K),rootStyles:re("icon")},a),u&&ne.createElement($E,{collapsed:k,transitionDuration:j,firstLevel:P===0,className:Rt(Fe.prefix,K),rtl:I,rootStyles:re("prefix")},u),ne.createElement(ME,{className:Rt(Fe.label,K),rootStyles:re("label")},i),c&&ne.createElement(DE,{collapsed:k,transitionDuration:j,firstLevel:P===0,className:Rt(Fe.suffix,K),rootStyles:re("suffix")},c),ne.createElement(M8,{rtl:I,className:Rt(Fe.SubMenuExpandIcon,K),collapsed:k,level:P,rootStyles:re("SubMenuExpandIcon")},D?D({level:P,disabled:g,active:_,open:f??ge}):k&&P===0?ne.createElement($8,null):ne.createElement(L8,{rtl:I,open:f??ge}))),ne.createElement(N8,{ref:G,openWhenCollapsed:ce,open:f??ge,firstLevel:P===0,collapsed:k,defaultOpen:f&&!wt||d,className:Rt(Fe.subMenuContent,K),rootStyles:re("subMenuContent")},ne.createElement(pf.Provider,{value:P+1},n)))},Y9=ne.forwardRef(K9),Xw,Q9=kt.li(Jw||(Jw=er([` width: 100%; position: relative; @@ -772,4 +772,4 @@ PERFORMANCE OF THIS SOFTWARE. `,`; } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Fe.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return VP({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),X9=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,_=e.rootStyles,w=Ci(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),g=ne.useContext(pf),R=ne.useContext(Ad),v=R.collapsed,S=R.rtl,b=R.transitionDuration,T=i0().menuItemStyles,P=function(x){if(T){var k={level:g,disabled:d,active:c,isSubmenu:!1},I=T.root,j=T.button,M=T.label,D=T.icon,U=T.prefix,H=T.suffix;switch(x){case"root":return typeof I=="function"?I(k):I;case"button":return typeof j=="function"?j(k):j;case"label":return typeof M=="function"?M(k):M;case"icon":return typeof D=="function"?D(k):D;case"prefix":return typeof U=="function"?U(k):U;case"suffix":return typeof H=="function"?H(k):H;default:return}}},E=(r={},r[Fe.active]=c,r[Fe.disabled]=d,r);return ne.createElement(Q9,{ref:t,className:Rt(Fe.menuItemRoot,E,i),menuItemStyles:P("root"),level:g,collapsed:v,rtl:S,disabled:d,active:c,buttonStyles:P("button"),rootStyles:_},ne.createElement(KP,Ir({className:Rt(Fe.button,E),"data-testid":"".concat(Fe.button,"-test-id"),component:p,tabIndex:0},w),o&&ne.createElement(NP,{rtl:S,className:Rt(Fe.icon,E),rootStyles:P("icon")},o),a&&ne.createElement(MP,{collapsed:v,transitionDuration:b,firstLevel:g===0,className:Rt(Fe.prefix,E),rtl:S,rootStyles:P("prefix")},a),ne.createElement(AP,{className:Rt(Fe.label,E),rootStyles:P("label")},n),s&&ne.createElement(LP,{collapsed:v,transitionDuration:b,firstLevel:g===0,className:Rt(Fe.suffix,E),rootStyles:P("suffix")},s)))},Pr=ne.forwardRef(X9),Jb,h0={},J9=ut;Object.defineProperty(h0,"__esModule",{value:!0});var YP=h0.default=void 0,Z9=J9(ct()),eU=m,tU=(0,Z9.default)((0,eU.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuOutlined");YP=h0.default=tU;var p0={},rU=ut;Object.defineProperty(p0,"__esModule",{value:!0});var QP=p0.default=void 0,nU=rU(ct()),oU=m,iU=(0,nU.default)((0,oU.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.5zm3.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-.32l-1.07-.83zm-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.5z"}),"PermDataSetting");QP=p0.default=iU;var m0={},aU=ut;Object.defineProperty(m0,"__esModule",{value:!0});var XP=m0.default=void 0,sU=aU(ct()),lU=m,uU=(0,sU.default)((0,lU.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.97l-5.2 5.2z"}),"NetworkPing");XP=m0.default=uU;var v0={},cU=ut;Object.defineProperty(v0,"__esModule",{value:!0});var JP=v0.default=void 0,fU=cU(ct()),dU=m,hU=(0,fU.default)((0,dU.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-2zM7 8h10v2H7V8zm5 6H7v-2h5v2zm2 5.5V14h5.5L14 19.5z"}),"StickyNote2");JP=v0.default=hU;var g0={},pU=ut;Object.defineProperty(g0,"__esModule",{value:!0});var ZP=g0.default=void 0,mU=pU(ct()),vU=m,gU=(0,mU.default)((0,vU.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.1zM8 13h8v-2H8v2zm9-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-5z"}),"Link");ZP=g0.default=gU;var y0={},yU=ut;Object.defineProperty(y0,"__esModule",{value:!0});var eE=y0.default=void 0,SU=yU(ct()),_U=m,wU=(0,SU.default)((0,_U.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-4h4v4zm0-6h-4V7h4v4z"}),"Dataset");eE=y0.default=wU;var S0={},bU=ut;Object.defineProperty(S0,"__esModule",{value:!0});var tE=S0.default=void 0,xU=bU(ct()),CU=m,RU=(0,xU.default)((0,CU.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-6h2v6z"}),"PestControl");tE=S0.default=RU;var _0={},TU=ut;Object.defineProperty(_0,"__esModule",{value:!0});var rE=_0.default=void 0,OU=TU(ct()),Lp=m,PU=(0,OU.default)([(0,Lp.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 5v2H7z"},"0"),(0,Lp.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.35.56 1.54z"},"1"),(0,Lp.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");rE=_0.default=PU;var w0={},EU=ut;Object.defineProperty(w0,"__esModule",{value:!0});var nE=w0.default=void 0,kU=EU(ct()),IU=m,jU=(0,kU.default)((0,IU.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.83z"}),"Speed");nE=w0.default=jU;var b0={},zU=ut;Object.defineProperty(b0,"__esModule",{value:!0});var oE=b0.default=void 0,AU=zU(ct()),NU=m,MU=(0,AU.default)((0,NU.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-2V9l-6-6zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm6 1V4.5l5.5 5.5H14z"}),"Summarize");oE=b0.default=MU;var x0={},LU=ut;Object.defineProperty(x0,"__esModule",{value:!0});var iE=x0.default=void 0,$U=LU(ct()),Zb=m,DU=(0,$U.default)([(0,Zb.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-6z"},"0"),(0,Zb.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-4zm0 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.12zm0 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.17z"},"1")],"AdminPanelSettings");iE=x0.default=DU;var C0={},FU=ut;Object.defineProperty(C0,"__esModule",{value:!0});var aE=C0.default=void 0,WU=FU(ct()),BU=m,UU=(0,WU.default)((0,BU.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-8zm0 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-4v3z"}),"Sync");aE=C0.default=UU;var R0={},HU=ut;Object.defineProperty(R0,"__esModule",{value:!0});var uv=R0.default=void 0,qU=HU(ct()),GU=m,VU=(0,qU.default)((0,GU.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.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-1.75s5 1.21 5 1.75v1.25zm9 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.75v1.25zM7.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 12zm0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 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.5zm0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"}),"PeopleOutline");uv=R0.default=VU;const KU=()=>{const[e,t]=A.useState(!1);return m.jsx(E8,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(j8,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(Pr,{icon:m.jsx(YP,{}),onClick:()=>{t(!e)}}),m.jsx(Pr,{component:m.jsx(Er,{to:"/"}),icon:m.jsx(QP,{}),children:"Process"}),m.jsxs(Y9,{label:"Network",icon:m.jsx(XP,{}),children:[m.jsx(Pr,{component:m.jsx(Er,{to:"/sentry-network"}),icon:m.jsx(uv,{}),children:"eth/6x P2P"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/sentinel-network"}),icon:m.jsx(uv,{}),children:"Beacon chain P2P"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/downloader"}),icon:m.jsx(aE,{}),children:"Downloader"})]}),m.jsx(Pr,{component:m.jsx(Er,{to:"/logs"}),icon:m.jsx(JP,{}),children:"Logs"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/chain"}),icon:m.jsx(ZP,{}),children:"Chain"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/data"}),icon:m.jsx(eE,{}),children:"Data"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/debug"}),icon:m.jsx(tE,{}),children:"Debug"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/testing"}),icon:m.jsx(rE,{}),children:"Testing"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/performance"}),icon:m.jsx(nE,{}),children:"Performance"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/documentation"}),icon:m.jsx(oE,{}),children:"Documentation"}),m.jsx(Pr,{component:m.jsx(Er,{to:"/admin"}),icon:m.jsx(iE,{}),children:"Admin"})]})})},YU=({onClose:e})=>{const t=Ne(qg),[r,n]=A.useState(0),[o,i]=A.useState(0);return A.useEffect(()=>{let a=0,s=0;t.segments.forEach(u=>{a+=u.webseedsRate,s+=u.peersRate}),n(a),i(s)},[t]),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:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Segments List"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center 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.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",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Peers Count"}),m.jsx("th",{className:"px-4 py-2",children:"Peers Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Webseeds Count"}),m.jsx("th",{className:"px-4 py-2",children:"Webseeds Rate"})]})}),m.jsx("tbody",{children:t.segments.map(a=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:Jy(a.downloadedBytes,a.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:Xt(a.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:a.peersCount}),m.jsx("td",{className:"px-4 py-2",children:xo(a.peersRate)}),m.jsx("td",{className:"px-4 py-2",children:a.webseedsCount}),m.jsx("td",{className:"px-4 py-2",children:xo(a.webseedsRate)})]}))})]})}),m.jsx("p",{children:"total speed webseed:"}),m.jsx("p",{children:xo(r)}),m.jsx("p",{children:"total speed peers:"}),m.jsx("p",{children:xo(o)})]}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(mn,{backgroundColor:Pi,label:"Close",onClick:()=>e(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},QU=()=>{const e=Ne(qg),[t,r]=A.useState(!1),n=()=>!e.downloadFinished&&e.indexed<100&&e.torrentMetadataReady{r(!0)},children:[m.jsx("td",{className:"px-4 py-2",children:"Snapshots"}),m.jsx("td",{className:"px-4 py-2",children:n()}),m.jsx("td",{className:"px-4 py-2",children:Jy(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:Xt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:Xt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:u6(e.downloaded,e.total,e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:ff(e.totalTime)}),m.jsx("td",{className:"px-4 py-2",children:mb(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:mb(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:Xt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:Xt(e.sys)})]})})]}),t&&m.jsx(YU,{onClose:()=>{r(!1)}})]})},XU=()=>{const e=Ka(),t=Ne(d4),r=Ne(h4);A.useEffect(()=>{function s(){n()}return window.addEventListener("online",s),window.addEventListener("offline",s),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",s)}},[]);const n=()=>{fetch("https://www.google.com/",{mode:"no-cors"}).then(()=>{e(T_(!0))}).catch(()=>{e(T_(!1))})},o=()=>m.jsx("div",{className:"justify-center items-center flex top-0 left-0 right-0 z-50 absolute",children:m.jsx("div",{className:"absolute top-[50px] flex items-center w-fit h-fit",role:"alert",children:t?r?null:a():i()})}),i=()=>m.jsxs(Ym,{variant:"filled",severity:"warning",children:["Looks like we are offline - ",m.jsx("strong",{children:"Chek your internet connection"})]}),a=()=>m.jsxs(Ym,{variant:"filled",severity:"warning",children:["Looks like we aren't connected to Erigon Node - ",m.jsx("strong",{children:"Chek node connection and reload page"})]});return m.jsx(m.Fragment,{children:!t||!r?o():null})},JU=({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===xn.Active||o===xn.Static||o===xn.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(xn.Active),onClick:()=>r(xn.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(xn.Static),onClick:()=>r(xn.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(xn.Total),onClick:()=>r(xn.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:"Network In:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:Xt(t.totalInBytes)})]}),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:Xt(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:Xt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},$p=({peers:e,onPeerClicked:t})=>{const[r,n]=A.useState(e),[o,i]=A.useState({column:"Type",descending:!0});A.useEffect(()=>{a(e,o)},[e]);const a=(d,p)=>{let _=d.sort((w,g)=>p.column==="Id"?s(w.id,g.id,p.descending):p.column==="Type"?s(w.type,g.type,p.descending):p.column==="Status"?s(w.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(w.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(w.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(w.network.inRate,g.network.inRate,p.descending):u(w.network.outRate,g.network.outRate,p.descending));i(p),n(_)},s=(d,p,_)=>_?p.localeCompare(d):d.localeCompare(p),u=(d,p,_)=>(console.log("! currentSortState "+o.column+" "+o.descending),_?p-d:d-p),c=d=>o.column!==d?m.jsx(Ug,{className:"ml-2"}):o.descending?m.jsx(Dg,{}):m.jsx(Wg,{}),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:Xt(d.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:Xt(d.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:xo(d.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:xo(d.network.outRate)})]},p))})]})})},ZU=({peerId:e,onClose:t,...r})=>{const o=O4()(Qe.getState(),e),i=(d,p)=>{let _=Object.keys(d),w=Object.keys(p);const g=new Set([..._,...w]),R=Array.from(g);let v=[];return R.forEach(S=>{let b=d[S]|0,T=p[S]|0;v.push({key:S,bytesIn:b,bytesOut:T})}),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:Xt(p.bytesIn)}),m.jsx("td",{children:Xt(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",Xt(o.network.bytesIn)),f("Out",Xt(o.network.bytesOut)),f("In speed",xo(o.network.inRate)),f("Out speed",xo(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(mn,{backgroundColor:Pi,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var xn=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(xn||{});const ex=({type:e})=>{let t=[],r={activePeers:0,totalPeers:0,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0},n=[],o=[];e==="sentry"?(t=Ne(dd),r=Ne(j4),n=Ne(P4),o=Ne(k4)):(t=Ne(hd),r=Ne(z4),n=Ne(E4),o=Ne(I4));const[i,a]=A.useState(null),[s,u]=A.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(JU,{statistics:r,selectedStatistics:s,onRowClicked:f=>{u(f)}})]}),s==="active"&&m.jsx($p,{peers:n,onPeerClicked:f=>{a(f)}}),s==="static"&&m.jsx($p,{peers:o,onPeerClicked:f=>{a(f)}}),s==="total"&&m.jsx($p,{peers:t,onPeerClicked:f=>{a(f)}}),s==="errors"&&c(),i&&m.jsx(ZU,{peerId:i,onClose:()=>{a(null)}})]})},e7=()=>{const e=Ne(qg),t=Ne(A4),r=Ne(N4),n=r.stages.flatMap(d=>d.subStage?[d,{...d,name:d.name,subStage:!1}]:[d]),[o,i]=A.useState(0);A.useEffect(()=>{e.torrentMetadataReadys(d)+"/"+r.stages.length,s=d=>{for(let p=0;pd.name==="Snapshots"?d.subStage?e.torrentMetadataReadyd.name==="Snapshots"?d.subStage?Jy(e.downloaded,e.total):vP(t.progress):"0%",f=d=>d.name==="Snapshots"?d.subStage?ff(e.totalTime):ff(t.totalTime):"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(d=>m.jsxs("tr",{children:[m.jsx("td",{className:"px-4 py-2",children:a(d)}),m.jsx("td",{className:"px-4 py-2",children:d.name}),m.jsx("td",{className:"px-4 py-2",children:u(d)}),m.jsx("td",{className:"px-4 py-2",children:c(d)}),m.jsx("td",{className:"px-4 py-2",children:f(d)})]}))})]})})},t7=()=>m.jsx("div",{children:m.jsx(e7,{})});function r7(){return m.jsx("div",{children:m.jsx(Z2,{children:m.jsxs(or,{path:"/",element:m.jsx(n7,{}),children:[m.jsx(or,{index:!0,element:m.jsx(n$,{})}),m.jsx(or,{path:"sentry-network",element:m.jsx(ex,{type:"sentry"})}),m.jsx(or,{path:"sentinel-network",element:m.jsx(ex,{type:"sentinel"})}),m.jsx(or,{path:"downloader",element:m.jsx(QU,{})}),m.jsx(or,{path:"logs",element:m.jsx(f6,{})}),m.jsx(or,{path:"chain",element:m.jsx(o7,{})}),m.jsx(or,{path:"data",element:m.jsx(d6,{})}),m.jsx(or,{path:"debug",element:m.jsx(i7,{})}),m.jsx(or,{path:"testing",element:m.jsx(a7,{})}),m.jsx(or,{path:"performance",element:m.jsx(t7,{})}),m.jsx(or,{path:"documentation",element:m.jsx(s7,{})}),m.jsx(or,{path:"admin",element:m.jsx(m6,{})}),m.jsx(or,{path:"*",element:m.jsx(l7,{})})]})})})}function n7(){const e=Ka(),t=Ne(jt),r=Ne(ZR),n=Ne(Cg),[o,i]=A.useState(!1),[a,s]=A.useState(!1);return A.useEffect(()=>{},[]),A.useEffect(()=>{n!==""&&R$()},[n]),A.useEffect(()=>{t!==""&&n!==""&&(P$(),O$(),T$(),qT(),E$(),k$(),j$(),W_(),setInterval(()=>{W_()},5*tc.second),z$(),B_(),setInterval(()=>{B_()},20*tc.second),setInterval(()=>{e(_4({activeNodeId:t,countInterval:15}))},15*tc.second))},[t]),A.useEffect(()=>{t!==""&&r.length>0&&r.forEach(u=>{u.tables.length===0&&I$(u.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(KU,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(X2,{})}),m.jsx(C6,{onSessionClicked:()=>{i(!0)},onNodeClicked:()=>{s(!0)}}),m.jsx(R6,{open:o,onClose:()=>{i(!1)}}),m.jsx(O6,{open:a,onClose:()=>{s(!1)}}),m.jsx(XU,{})]})}function o7(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function i7(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function a7(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function s7(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function l7(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(Er,{to:"/",children:"Go to the home page"})})]})}function fc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fc=function(r){return typeof r}:fc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fc(e)}function u7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tx(e,t){for(var r=0;r{const[e,t]=A.useState(!1);return m.jsx(P8,{collapsed:e,style:{height:"100vh",backgroundColor:"#fff"},children:m.jsxs(j8,{menuItemStyles:{button:{color:"#2e67eb","&:hover":{backgroundColor:"#2e67eb",color:"#fff"}}},children:[m.jsx(Er,{icon:m.jsx(XE,{}),onClick:()=>{t(!e)}}),m.jsx(Er,{component:m.jsx(Pr,{to:"/"}),icon:m.jsx(JE,{}),children:"Process"}),m.jsxs(Y9,{label:"Network",icon:m.jsx(ZE,{}),children:[m.jsx(Er,{component:m.jsx(Pr,{to:"/sentry-network"}),icon:m.jsx(cv,{}),children:"eth/6x P2P"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/sentinel-network"}),icon:m.jsx(cv,{}),children:"Beacon chain P2P"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/downloader"}),icon:m.jsx(lP,{}),children:"Downloader"})]}),m.jsx(Er,{component:m.jsx(Pr,{to:"/logs"}),icon:m.jsx(eP,{}),children:"Logs"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/chain"}),icon:m.jsx(tP,{}),children:"Chain"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/data"}),icon:m.jsx(rP,{}),children:"Data"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/debug"}),icon:m.jsx(nP,{}),children:"Debug"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/testing"}),icon:m.jsx(oP,{}),children:"Testing"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/performance"}),icon:m.jsx(iP,{}),children:"Performance"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/documentation"}),icon:m.jsx(aP,{}),children:"Documentation"}),m.jsx(Er,{component:m.jsx(Pr,{to:"/admin"}),icon:m.jsx(sP,{}),children:"Admin"})]})})},YU=({onClose:e})=>{const t=ke(pd),[r,n]=A.useState(0),[o,i]=A.useState(0);return A.useEffect(()=>{let a=0,s=0;t.segments.forEach(u=>{a+=u.webseedsRate,s+=u.peersRate}),n(a),i(s)},[t]),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:[m.jsx("h3",{className:"text-3xl font-semibold mt-5",children:"Segments List"}),m.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center 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.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",children:"Name"}),m.jsx("th",{className:"px-4 py-2",children:"Progress"}),m.jsx("th",{className:"px-4 py-2",children:"Size"}),m.jsx("th",{className:"px-4 py-2",children:"Peers Count"}),m.jsx("th",{className:"px-4 py-2",children:"Peers Rate"}),m.jsx("th",{className:"px-4 py-2",children:"Webseeds Count"}),m.jsx("th",{className:"px-4 py-2",children:"Webseeds Rate"})]})}),m.jsx("tbody",{children:t.segments.map(a=>m.jsxs("tr",{className:"border-b",children:[m.jsx("td",{className:"px-4 py-2",children:a.name}),m.jsx("td",{className:"px-4 py-2",children:Jy(a.downloadedBytes,a.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:Xt(a.totalBytes)}),m.jsx("td",{className:"px-4 py-2",children:a.peersCount}),m.jsx("td",{className:"px-4 py-2",children:xo(a.peersRate)}),m.jsx("td",{className:"px-4 py-2",children:a.webseedsCount}),m.jsx("td",{className:"px-4 py-2",children:xo(a.webseedsRate)})]}))})]})}),m.jsx("p",{children:"total speed webseed:"}),m.jsx("p",{children:xo(r)}),m.jsx("p",{children:"total speed peers:"}),m.jsx("p",{children:xo(o)})]}),m.jsx("div",{className:"flex items-center justify-end p-6",children:m.jsx(mn,{backgroundColor:Ei,label:"Close",onClick:()=>e(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},QU=()=>{const e=ke(pd),[t,r]=A.useState(!1),n=()=>!e.downloadFinished&&e.indexed<100&&e.torrentMetadataReady{let i=0;return e.totalTime.forEach(a=>{i+=a}),Cl(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",children:n()}),m.jsx("td",{className:"px-4 py-2",children:Jy(e.downloaded,e.total)}),m.jsx("td",{className:"px-4 py-2",children:Xt(e.downloaded)}),m.jsx("td",{className:"px-4 py-2",children:Xt(e.total)}),m.jsx("td",{className:"px-4 py-2",children:u6(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:mw(e.downloadRate)}),m.jsx("td",{className:"px-4 py-2",children:mw(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:Xt(e.alloc)}),m.jsx("td",{className:"px-4 py-2",children:Xt(e.sys)})]})})]}),t&&m.jsx(YU,{onClose:()=>{r(!1)}})]})},XU=()=>{const e=Ka(),t=ke(p4),r=ke(m4);A.useEffect(()=>{function s(){n()}return window.addEventListener("online",s),window.addEventListener("offline",s),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",s)}},[]);const n=()=>{fetch("https://www.google.com/",{mode:"no-cors"}).then(()=>{e(T_(!0))}).catch(()=>{e(T_(!1))})},o=()=>m.jsx("div",{className:"justify-center items-center flex top-0 left-0 right-0 z-50 absolute",children:m.jsx("div",{className:"absolute top-[50px] flex items-center w-fit h-fit",role:"alert",children:t?r?null:a():i()})}),i=()=>m.jsxs(Qm,{variant:"filled",severity:"warning",children:["Looks like we are offline - ",m.jsx("strong",{children:"Chek your internet connection"})]}),a=()=>m.jsxs(Qm,{variant:"filled",severity:"warning",children:["Looks like we aren't connected to Erigon Node - ",m.jsx("strong",{children:"Chek node connection and reload page"})]});return m.jsx(m.Fragment,{children:!t||!r?o():null})},JU=({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===xn.Active||o===xn.Static||o===xn.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(xn.Active),onClick:()=>r(xn.Active),children:[m.jsx("span",{children:"Active:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.activePeers})]}),m.jsxs("td",{className:n(xn.Static),onClick:()=>r(xn.Static),children:[m.jsx("span",{children:"Static:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:t.staticPeers})]}),m.jsxs("td",{className:n(xn.Total),onClick:()=>r(xn.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:"Network In:"}),m.jsx("br",{}),m.jsx("span",{className:"font-bold",children:Xt(t.totalInBytes)})]}),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:Xt(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:Xt(t.totalInBytes+t.totalOutBytes)})]})]})})})})]})},Dp=({peers:e,onPeerClicked:t})=>{const[r,n]=A.useState(e),[o,i]=A.useState({column:"Type",descending:!0});A.useEffect(()=>{a(e,o)},[e]);const a=(d,p)=>{let _=d.sort((b,g)=>p.column==="Id"?s(b.id,g.id,p.descending):p.column==="Type"?s(b.type,g.type,p.descending):p.column==="Status"?s(b.active.toString(),g.active.toString(),p.descending):p.column==="TotalIn"?u(b.network.bytesIn,g.network.bytesIn,p.descending):p.column==="TotalOut"?u(b.network.bytesOut,g.network.bytesOut,p.descending):p.column==="InSpeed"?u(b.network.inRate,g.network.inRate,p.descending):u(b.network.outRate,g.network.outRate,p.descending));i(p),n(_)},s=(d,p,_)=>_?p.localeCompare(d):d.localeCompare(p),u=(d,p,_)=>(console.log("! currentSortState "+o.column+" "+o.descending),_?p-d:d-p),c=d=>o.column!==d?m.jsx(Hg,{className:"ml-2"}):o.descending?m.jsx(Fg,{}):m.jsx(Bg,{}),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:Xt(d.network.bytesIn)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:Xt(d.network.bytesOut)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:xo(d.network.inRate)}),m.jsx("td",{className:"px-4 py-2 overflow-hidden text-ellipsis",children:xo(d.network.outRate)})]},p))})]})})},ZU=({peerId:e,onClose:t,...r})=>{const o=P4()(Qe.getState(),e),i=(d,p)=>{let _=Object.keys(d),b=Object.keys(p);const g=new Set([..._,...b]),R=Array.from(g);let v=[];return R.forEach(S=>{let w=d[S]|0,T=p[S]|0;v.push({key:S,bytesIn:w,bytesOut:T})}),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:Xt(p.bytesIn)}),m.jsx("td",{children:Xt(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",Xt(o.network.bytesIn)),f("Out",Xt(o.network.bytesOut)),f("In speed",xo(o.network.inRate)),f("Out speed",xo(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(mn,{backgroundColor:Ei,label:"Close",onClick:()=>t(),primary:!0})})]})})}),m.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})};var xn=(e=>(e.Active="active",e.Static="static",e.Total="total",e.Errors="errors",e.Network="network",e.None="none",e))(xn||{});const ex=({type:e})=>{let t=[],r={activePeers:0,totalPeers:0,staticPeers:0,totalErrors:0,totalInBytes:0,totalOutBytes:0},n=[],o=[];e==="sentry"?(t=ke(dd),r=ke(A4),n=ke(k4),o=ke(j4)):(t=ke(hd),r=ke(N4),n=ke(I4),o=ke(z4));const[i,a]=A.useState(null),[s,u]=A.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(JU,{statistics:r,selectedStatistics:s,onRowClicked:f=>{u(f)}})]}),s==="active"&&m.jsx(Dp,{peers:n,onPeerClicked:f=>{a(f)}}),s==="static"&&m.jsx(Dp,{peers:o,onPeerClicked:f=>{a(f)}}),s==="total"&&m.jsx(Dp,{peers:t,onPeerClicked:f=>{a(f)}}),s==="errors"&&c(),i&&m.jsx(ZU,{peerId:i,onClose:()=>{a(null)}})]})},e7=()=>{const e=ke(pd),t=ke(MT),r=ke(LT),n=r.stages.flatMap(p=>p.subStage?[p,{...p,name:p.name,subStage:!1}]:[p]),[o,i]=A.useState(0);A.useEffect(()=>{e.torrentMetadataReadys(p)+"/"+r.stages.length,s=p=>{for(let _=0;_p.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?Jy(e.downloaded,e.total):yE(t.progress):"0%",d=p=>{if(p.name==="Snapshots")if(p.subStage){let _=0;return e.totalTime.forEach(b=>{_+=b}),Cl(_)}else{let _=0;return t.totalTime.forEach(b=>{_+=b}),Cl(_)}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)})]}))})]})})},t7=()=>{const e=ke(pd),t=ke(MT),r=ke(LT),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}),Cl(a)},o=()=>{let i=0;return r.currentStage>0&&r.currentStage{},[]),A.useEffect(()=>{n!==""&&R$()},[n]),A.useEffect(()=>{t!==""&&n!==""&&(E$(),O$(),T$(),VT(),P$(),k$(),j$(),W_(),setInterval(()=>{W_()},5*rc.second),z$(),B_(),setInterval(()=>{B_()},20*rc.second),setInterval(()=>{e(w4({activeNodeId:t,countInterval:15}))},15*rc.second))},[t]),A.useEffect(()=>{t!==""&&r.length>0&&r.forEach(u=>{u.tables.length===0&&I$(u.path)})},[r]),m.jsxs("div",{className:"flex overflow-clip",children:[m.jsx(KU,{}),m.jsx("div",{className:"flex flex-col w-full p-4 h-full overflow-scroll",children:m.jsx(Z2,{})}),m.jsx(C6,{onSessionClicked:()=>{i(!0)},onNodeClicked:()=>{s(!0)}}),m.jsx(R6,{open:o,onClose:()=>{i(!1)}}),m.jsx(O6,{open:a,onClose:()=>{s(!1)}}),m.jsx(XU,{})]})}function o7(){return m.jsx("div",{children:m.jsx("h2",{children:"Chain"})})}function i7(){return m.jsx("div",{children:m.jsx("h2",{children:"Debug"})})}function a7(){return m.jsx("div",{children:m.jsx("h2",{children:"Testing"})})}function s7(){return m.jsx("div",{children:m.jsx("h2",{children:"Documentation"})})}function l7(){return m.jsxs("div",{children:[m.jsx("h2",{children:"Nothing to see here!"}),m.jsx("p",{children:m.jsx(Pr,{to:"/",children:"Go to the home page"})})]})}function dc(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dc=function(r){return typeof r}:dc=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},dc(e)}function u7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tx(e,t){for(var r=0;r