@bmfk/api 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -0
- package/LICENSE +21 -0
- package/README.md +1293 -2
- package/dist/apiServer/APIService.d.ts +125 -0
- package/dist/apiServer/APIService.js +769 -0
- package/dist/apiServer/BaseEndpoint.d.ts +90 -0
- package/dist/apiServer/BaseEndpoint.js +314 -0
- package/dist/apiServer/BaseService.d.ts +17 -0
- package/dist/apiServer/BaseService.js +39 -0
- package/dist/apiServer/DBService.d.ts +131 -0
- package/dist/apiServer/DBService.js +290 -0
- package/dist/apiServer/DocumentService.d.ts +9 -0
- package/dist/apiServer/DocumentService.js +65 -0
- package/dist/apiServer/LocalRequest.d.ts +3 -0
- package/dist/apiServer/LocalRequest.js +6 -0
- package/dist/apiServer/LogService.d.ts +78 -0
- package/dist/apiServer/LogService.js +349 -0
- package/dist/apiServer/MonitorService.d.ts +102 -0
- package/dist/apiServer/MonitorService.js +615 -0
- package/dist/apiServer/StatService.d.ts +4 -0
- package/dist/apiServer/StatService.js +10 -0
- package/dist/apiServer/TimeframeService.d.ts +28 -0
- package/dist/apiServer/TimeframeService.js +97 -0
- package/dist/apiServer/WebSocketServer.d.ts +39 -0
- package/dist/apiServer/WebSocketServer.js +173 -0
- package/dist/apiServer/db/IDBAdapter.d.ts +14 -0
- package/dist/apiServer/db/IDBAdapter.js +2 -0
- package/dist/apiServer/db/MysqlAdapter.d.ts +72 -0
- package/dist/apiServer/db/MysqlAdapter.js +869 -0
- package/dist/apiServer/db/PostgresAdapter.d.ts +41 -0
- package/dist/apiServer/db/PostgresAdapter.js +73 -0
- package/dist/apiServer/deployment/AccessConfigWizard.d.ts +5 -0
- package/dist/apiServer/deployment/AccessConfigWizard.js +254 -0
- package/dist/apiServer/deployment/Activate.d.ts +4 -0
- package/dist/apiServer/deployment/Activate.js +124 -0
- package/dist/apiServer/deployment/BackupManager.d.ts +33 -0
- package/dist/apiServer/deployment/BackupManager.js +174 -0
- package/dist/apiServer/deployment/Backups.d.ts +2 -0
- package/dist/apiServer/deployment/Backups.js +44 -0
- package/dist/apiServer/deployment/BlueGreenState.d.ts +31 -0
- package/dist/apiServer/deployment/BlueGreenState.js +150 -0
- package/dist/apiServer/deployment/Bundler.d.ts +12 -0
- package/dist/apiServer/deployment/Bundler.js +178 -0
- package/dist/apiServer/deployment/ConfigService.d.ts +203 -0
- package/dist/apiServer/deployment/ConfigService.js +195 -0
- package/dist/apiServer/deployment/Deploy.d.ts +4 -0
- package/dist/apiServer/deployment/Deploy.js +404 -0
- package/dist/apiServer/deployment/DeployKeyWizard.d.ts +2 -0
- package/dist/apiServer/deployment/DeployKeyWizard.js +84 -0
- package/dist/apiServer/deployment/Deployer.d.ts +13 -0
- package/dist/apiServer/deployment/Deployer.js +96 -0
- package/dist/apiServer/deployment/DeployerInit.d.ts +25 -0
- package/dist/apiServer/deployment/DeployerInit.js +214 -0
- package/dist/apiServer/deployment/DeployerService.d.ts +378 -0
- package/dist/apiServer/deployment/DeployerService.js +1553 -0
- package/dist/apiServer/deployment/HashPassword.d.ts +3 -0
- package/dist/apiServer/deployment/HashPassword.js +126 -0
- package/dist/apiServer/deployment/MigrateConfigsWizard.d.ts +1 -0
- package/dist/apiServer/deployment/MigrateConfigsWizard.js +202 -0
- package/dist/apiServer/deployment/MigrateProject.d.ts +31 -0
- package/dist/apiServer/deployment/MigrateProject.js +335 -0
- package/dist/apiServer/deployment/NginxHelper.d.ts +10 -0
- package/dist/apiServer/deployment/NginxHelper.js +111 -0
- package/dist/apiServer/deployment/Notifier.d.ts +30 -0
- package/dist/apiServer/deployment/Notifier.js +82 -0
- package/dist/apiServer/deployment/ProjectConfigWizard.d.ts +1 -0
- package/dist/apiServer/deployment/ProjectConfigWizard.js +148 -0
- package/dist/apiServer/deployment/Restore.d.ts +2 -0
- package/dist/apiServer/deployment/Restore.js +89 -0
- package/dist/apiServer/deployment/ReviewStore.d.ts +62 -0
- package/dist/apiServer/deployment/ReviewStore.js +186 -0
- package/dist/apiServer/deployment/SecretsInjector.d.ts +21 -0
- package/dist/apiServer/deployment/SecretsInjector.js +189 -0
- package/dist/apiServer/deployment/SetupConfigWizard.d.ts +1 -0
- package/dist/apiServer/deployment/SetupConfigWizard.js +238 -0
- package/dist/apiServer/deployment/Status.d.ts +2 -0
- package/dist/apiServer/deployment/Status.js +83 -0
- package/dist/apiServer/deployment/TelegramNotifier.d.ts +8 -0
- package/dist/apiServer/deployment/TelegramNotifier.js +23 -0
- package/dist/apiServer/deployment/Watchdog.d.ts +15 -0
- package/dist/apiServer/deployment/Watchdog.js +65 -0
- package/dist/apiServer/deployment/Wizards.d.ts +1 -0
- package/dist/apiServer/deployment/Wizards.js +83 -0
- package/dist/apiServer/deployment/cli.d.ts +2 -0
- package/dist/apiServer/deployment/cli.js +224 -0
- package/dist/apiServer/deployment/cliCommon.d.ts +27 -0
- package/dist/apiServer/deployment/cliCommon.js +110 -0
- package/dist/apiServer/deployment/cliPrompt.d.ts +5 -0
- package/dist/apiServer/deployment/cliPrompt.js +38 -0
- package/dist/apiServer/deployment/resolveConfig.d.ts +19 -0
- package/dist/apiServer/deployment/resolveConfig.js +139 -0
- package/dist/apiServer/documentation/Documentation.d.ts +18 -0
- package/dist/apiServer/documentation/Documentation.js +143 -0
- package/dist/apiServer/documentation/index.html +460 -0
- package/dist/apiServer/external/MicroserviceClient.d.ts +28 -0
- package/dist/apiServer/external/MicroserviceClient.js +144 -0
- package/dist/apiServer/external/MicroserviceHost.d.ts +52 -0
- package/dist/apiServer/external/MicroserviceHost.js +183 -0
- package/dist/apiServer/external/MicroserviceHostController.d.ts +6 -0
- package/dist/apiServer/external/MicroserviceHostController.js +65 -0
- package/dist/apiServer/helper/AppDataPath.d.ts +9 -0
- package/dist/apiServer/helper/AppDataPath.js +81 -0
- package/dist/apiServer/helper/ClientIp.d.ts +3 -0
- package/dist/apiServer/helper/ClientIp.js +33 -0
- package/dist/apiServer/helper/DataProvider.d.ts +18 -0
- package/dist/apiServer/helper/DataProvider.js +57 -0
- package/dist/apiServer/helper/IpAllowList.d.ts +8 -0
- package/dist/apiServer/helper/IpAllowList.js +40 -0
- package/dist/apiServer/helper/JSONStableStringify.d.ts +1 -0
- package/dist/apiServer/helper/JSONStableStringify.js +15 -0
- package/dist/apiServer/helper/PasswordHash.d.ts +5 -0
- package/dist/apiServer/helper/PasswordHash.js +52 -0
- package/dist/apiServer/helper/Sleep.d.ts +1 -0
- package/dist/apiServer/helper/Sleep.js +5 -0
- package/dist/apiServer/helper/Trace.d.ts +8 -0
- package/dist/apiServer/helper/Trace.js +30 -0
- package/dist/apiServer/helper/UID.d.ts +16 -0
- package/dist/apiServer/helper/UID.js +98 -0
- package/dist/apiServer/helper/Validator.d.ts +86 -0
- package/dist/apiServer/helper/Validator.js +560 -0
- package/dist/apiServer/helper/YYYYMMDDHH.d.ts +2 -0
- package/dist/apiServer/helper/YYYYMMDDHH.js +31 -0
- package/dist/apiServer/helper/ZipUtils.d.ts +6 -0
- package/dist/apiServer/helper/ZipUtils.js +28 -0
- package/dist/apiServer/http/Http.d.ts +183 -0
- package/dist/apiServer/http/Http.js +627 -0
- package/dist/apiServer/interceptors/InterceptorPayAuth.d.ts +19 -0
- package/dist/apiServer/interceptors/InterceptorPayAuth.js +124 -0
- package/dist/apiServer/interceptors/InterceptorSignedAuth.d.ts +40 -0
- package/dist/apiServer/interceptors/InterceptorSignedAuth.js +150 -0
- package/dist/apiServer/monitor/AccessStore.d.ts +27 -0
- package/dist/apiServer/monitor/AccessStore.js +163 -0
- package/dist/apiServer/monitor/LogFiles.d.ts +34 -0
- package/dist/apiServer/monitor/LogFiles.js +109 -0
- package/dist/apiServer/monitor/Monitor.d.ts +54 -0
- package/dist/apiServer/monitor/Monitor.js +447 -0
- package/dist/apiServer/monitor/MonitorAuth.d.ts +87 -0
- package/dist/apiServer/monitor/MonitorAuth.js +474 -0
- package/dist/apiServer/monitor/ProcessMonitor.d.ts +177 -0
- package/dist/apiServer/monitor/ProcessMonitor.js +468 -0
- package/dist/apiServer/monitor/SystemInfo.d.ts +70 -0
- package/dist/apiServer/monitor/SystemInfo.js +217 -0
- package/dist/apiServer/monitor/ThreatMonitor.d.ts +73 -0
- package/dist/apiServer/monitor/ThreatMonitor.js +239 -0
- package/dist/apiServer/monitor/index.html +591 -0
- package/dist/apiServer/review/Review.d.ts +23 -0
- package/dist/apiServer/review/Review.js +149 -0
- package/dist/apiServer/review/ReviewAuth.d.ts +56 -0
- package/dist/apiServer/review/ReviewAuth.js +147 -0
- package/dist/apiServer/review/ReviewDiff.d.ts +43 -0
- package/dist/apiServer/review/ReviewDiff.js +175 -0
- package/dist/apiServer/review/index.html +501 -0
- package/dist/apiServer/routes/Liveness.d.ts +7 -0
- package/dist/apiServer/routes/Liveness.js +27 -0
- package/dist/apiServer/routes/Readiness.d.ts +13 -0
- package/dist/apiServer/routes/Readiness.js +20 -0
- package/dist/apiServer/security/BlockedIps.d.ts +46 -0
- package/dist/apiServer/security/BlockedIps.js +185 -0
- package/dist/apiServer/structures/DefaultErrors.d.ts +36 -0
- package/dist/apiServer/structures/DefaultErrors.js +52 -0
- package/dist/apiServer/structures/HTTPStatus.d.ts +7 -0
- package/dist/apiServer/structures/HTTPStatus.js +11 -0
- package/dist/apiServer/structures/Interfaces.d.ts +55 -0
- package/dist/apiServer/structures/Interfaces.js +2 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +110 -0
- package/dist/signal/Signal.d.ts +23 -0
- package/dist/signal/Signal.js +85 -0
- package/package.json +88 -4
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<!-- Build: 2026-11-23T22:33:01.950Z | Version: 1.0.0 -->
|
|
5
|
+
<script>var __ver = "1.0.0";</script>
|
|
6
|
+
<meta charset="UTF-8" />
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
9
|
+
<title>{{title}}</title>
|
|
10
|
+
<script>
|
|
11
|
+
var __host = "{{host}}";
|
|
12
|
+
var __title = "{{title}}";
|
|
13
|
+
</script>
|
|
14
|
+
<script type="module" crossorigin>var pS=Object.defineProperty;var gS=(l,r,u)=>r in l?pS(l,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[r]=u;var mn=(l,r,u)=>gS(l,typeof r!="symbol"?r+"":r,u);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function u(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=u(f);fetch(f.href,d)}})();function Zu(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Gd={exports:{}},es={};/**
|
|
15
|
+
* @license React
|
|
16
|
+
* react-jsx-runtime.production.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/var Yx;function mS(){if(Yx)return es;Yx=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function u(c,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:l,type:c,key:h,ref:f!==void 0?f:null,props:d}}return es.Fragment=r,es.jsx=u,es.jsxs=u,es}var Fx;function xS(){return Fx||(Fx=1,Gd.exports=mS()),Gd.exports}var s=xS(),Yd={exports:{}},Me={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var Vx;function yS(){if(Vx)return Me;Vx=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),v=Symbol.for("react.view_transition"),R=Symbol.iterator;function G(T){return T===null||typeof T!="object"?null:(T=R&&T[R]||T["@@iterator"],typeof T=="function"?T:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,ie={};function _(T,ce,ge){this.props=T,this.context=ce,this.refs=ie,this.updater=ge||J}_.prototype.isReactComponent={},_.prototype.setState=function(T,ce){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,ce,"setState")},_.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function F(){}F.prototype=_.prototype;function L(T,ce,ge){this.props=T,this.context=ce,this.refs=ie,this.updater=ge||J}var I=L.prototype=new F;I.constructor=L,$(I,_.prototype),I.isPureReactComponent=!0;var X=Array.isArray;function S(){}var O={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function N(T,ce,ge){var ve=ge.ref;return{$$typeof:l,type:T,key:ce,ref:ve!==void 0?ve:null,props:ge}}function j(T,ce){return N(T.type,ce,T.props)}function w(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function M(T){var ce={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ge){return ce[ge]})}var ee=/\/+/g;function te(T,ce){return typeof T=="object"&&T!==null&&T.key!=null?M(""+T.key):ce.toString(36)}function U(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(S,S):(T.status="pending",T.then(function(ce){T.status==="pending"&&(T.status="fulfilled",T.value=ce)},function(ce){T.status==="pending"&&(T.status="rejected",T.reason=ce)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function se(T,ce,ge,ve,K){var ae=typeof T;(ae==="undefined"||ae==="boolean")&&(T=null);var B=!1;if(T===null)B=!0;else switch(ae){case"bigint":case"string":case"number":B=!0;break;case"object":switch(T.$$typeof){case l:case r:B=!0;break;case E:return B=T._init,se(B(T._payload),ce,ge,ve,K)}}if(B)return K=K(T),B=ve===""?"."+te(T,0):ve,X(K)?(ge="",B!=null&&(ge=B.replace(ee,"$&/")+"/"),se(K,ce,ge,"",function(xe){return xe})):K!=null&&(w(K)&&(K=j(K,ge+(K.key==null||T&&T.key===K.key?"":(""+K.key).replace(ee,"$&/")+"/")+B)),ce.push(K)),1;B=0;var Y=ve===""?".":ve+":";if(X(T))for(var ne=0;ne<T.length;ne++)ve=T[ne],ae=Y+te(ve,ne),B+=se(ve,ce,ge,ae,K);else if(ne=G(T),typeof ne=="function")for(T=ne.call(T),ne=0;!(ve=T.next()).done;)ve=ve.value,ae=Y+te(ve,ne++),B+=se(ve,ce,ge,ae,K);else if(ae==="object"){if(typeof T.then=="function")return se(U(T),ce,ge,ve,K);throw ce=String(T),Error("Objects are not valid as a React child (found: "+(ce==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":ce)+"). If you meant to render a collection of children, use an array instead.")}return B}function he(T,ce,ge){if(T==null)return T;var ve=[],K=0;return se(T,ve,"","",function(ae){return ce.call(ge,ae,K++)}),ve}function Se(T){if(T._status===-1){var ce=T._result,ge=ce();ge.then(function(ve){(T._status===0||T._status===-1)&&(T._status=1,T._result=ve,ge.status===void 0&&(ge.status="fulfilled",ge.value=ve))},function(ve){(T._status===0||T._status===-1)&&(T._status=2,T._result=ve,ge.status===void 0&&(ge.status="rejected",ge.reason=ve))}),T._status===-1&&(T._status=0,T._result=ge)}if(T._status===1)return T._result.default;throw T._result}var je=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ce=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(ce))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Ne(T){var ce=O.T,ge={};ge.types=ce!==null?ce.types:null,O.T=ge;try{var ve=T(),K=O.S;K!==null&&K(ge,ve),typeof ve=="object"&&ve!==null&&typeof ve.then=="function"&&ve.then(S,je)}catch(ae){je(ae)}finally{ce!==null&&ge.types!==null&&(ce.types=ge.types),O.T=ce}}function re(T){var ce=O.T;if(ce!==null){var ge=ce.types;ge===null?ce.types=[T]:ge.indexOf(T)===-1&&ge.push(T)}else Ne(re.bind(null,T))}var Ee={map:he,forEach:function(T,ce,ge){he(T,function(){ce.apply(this,arguments)},ge)},count:function(T){var ce=0;return he(T,function(){ce++}),ce},toArray:function(T){return he(T,function(ce){return ce})||[]},only:function(T){if(!w(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Me.Activity=x,Me.Children=Ee,Me.Component=_,Me.Fragment=u,Me.Profiler=f,Me.PureComponent=L,Me.StrictMode=c,Me.Suspense=m,Me.ViewTransition=v,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Me.__COMPILER_RUNTIME={__proto__:null,c:function(T){return O.H.useMemoCache(T)}},Me.addTransitionType=re,Me.cache=function(T){return function(){return T.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(T,ce,ge){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ve=$({},T.props),K=T.key;if(ce!=null)for(ae in ce.key!==void 0&&(K=""+ce.key),ce)!z.call(ce,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&ce.ref===void 0||(ve[ae]=ce[ae]);var ae=arguments.length-2;if(ae===1)ve.children=ge;else if(1<ae){for(var B=Array(ae),Y=0;Y<ae;Y++)B[Y]=arguments[Y+2];ve.children=B}return N(T.type,K,ve)},Me.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},Me.createElement=function(T,ce,ge){var ve,K={},ae=null;if(ce!=null)for(ve in ce.key!==void 0&&(ae=""+ce.key),ce)z.call(ce,ve)&&ve!=="key"&&ve!=="__self"&&ve!=="__source"&&(K[ve]=ce[ve]);var B=arguments.length-2;if(B===1)K.children=ge;else if(1<B){for(var Y=Array(B),ne=0;ne<B;ne++)Y[ne]=arguments[ne+2];K.children=Y}if(T&&T.defaultProps)for(ve in B=T.defaultProps,B)K[ve]===void 0&&(K[ve]=B[ve]);return N(T,ae,K)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(T){return{$$typeof:g,render:T}},Me.isValidElement=w,Me.lazy=function(T){return{$$typeof:E,_payload:{_status:-1,_result:T},_init:Se}},Me.memo=function(T,ce){return{$$typeof:b,type:T,compare:ce===void 0?null:ce}},Me.startTransition=Ne,Me.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Me.use=function(T){return O.H.use(T)},Me.useActionState=function(T,ce,ge){return O.H.useActionState(T,ce,ge)},Me.useCallback=function(T,ce){return O.H.useCallback(T,ce)},Me.useContext=function(T){return O.H.useContext(T)},Me.useDebugValue=function(){},Me.useDeferredValue=function(T,ce){return O.H.useDeferredValue(T,ce)},Me.useEffect=function(T,ce){return O.H.useEffect(T,ce)},Me.useEffectEvent=function(T){return O.H.useEffectEvent(T)},Me.useId=function(){return O.H.useId()},Me.useImperativeHandle=function(T,ce,ge){return O.H.useImperativeHandle(T,ce,ge)},Me.useInsertionEffect=function(T,ce){return O.H.useInsertionEffect(T,ce)},Me.useLayoutEffect=function(T,ce){return O.H.useLayoutEffect(T,ce)},Me.useMemo=function(T,ce){return O.H.useMemo(T,ce)},Me.useOptimistic=function(T,ce){return O.H.useOptimistic(T,ce)},Me.useReducer=function(T,ce,ge){return O.H.useReducer(T,ce,ge)},Me.useRef=function(T){return O.H.useRef(T)},Me.useState=function(T){return O.H.useState(T)},Me.useSyncExternalStore=function(T,ce,ge){return O.H.useSyncExternalStore(T,ce,ge)},Me.useTransition=function(){return O.H.useTransition()},Me.version="19.3.1",Me}var Qx;function $h(){return Qx||(Qx=1,Yd.exports=yS()),Yd.exports}var Q=$h();const Gt=Zu(Q);var Fd={exports:{}},ts={},Vd={exports:{}},Qd={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* scheduler.production.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var $x;function bS(){return $x||($x=1,(function(l){function r(U,se){var he=U.length;U.push(se);e:for(;0<he;){var Se=he-1>>>1,je=U[Se];if(0<f(je,se))U[Se]=se,U[he]=je,he=Se;else break e}}function u(U){return U.length===0?null:U[0]}function c(U){if(U.length===0)return null;var se=U[0],he=U.pop();if(he!==se){U[0]=he;e:for(var Se=0,je=U.length,Ne=je>>>1;Se<Ne;){var re=2*(Se+1)-1,Ee=U[re],T=re+1,ce=U[T];if(0>f(Ee,he))T<je&&0>f(ce,Ee)?(U[Se]=ce,U[T]=he,Se=T):(U[Se]=Ee,U[re]=he,Se=re);else if(T<je&&0>f(ce,he))U[Se]=ce,U[T]=he,Se=T;else break e}}return se}function f(U,se){var he=U.sortIndex-se.sortIndex;return he!==0?he:U.id-se.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var m=[],b=[],E=1,x=null,v=3,R=!1,G=!1,J=!1,$=!1,ie=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function L(U){for(var se=u(b);se!==null;){if(se.callback===null)c(b);else if(se.startTime<=U)c(b),se.sortIndex=se.expirationTime,r(m,se);else break;se=u(b)}}function I(U){if(J=!1,L(U),!G)if(u(m)!==null)G=!0,X||(X=!0,w());else{var se=u(b);se!==null&&te(I,se.startTime-U)}}var X=!1,S=-1,O=5,z=-1;function N(){return $?!0:!(l.unstable_now()-z<O)}function j(){if($=!1,X){var U=l.unstable_now();z=U;var se=!0;try{e:{G=!1,J&&(J=!1,_(S),S=-1),R=!0;var he=v;try{t:{for(L(U),x=u(m);x!==null&&!(x.expirationTime>U&&N());){var Se=x.callback;if(typeof Se=="function"){x.callback=null,v=x.priorityLevel;var je=Se(x.expirationTime<=U);if(U=l.unstable_now(),typeof je=="function"){x.callback=je,L(U),se=!0;break t}x===u(m)&&c(m),L(U)}else c(m);x=u(m)}if(x!==null)se=!0;else{var Ne=u(b);Ne!==null&&te(I,Ne.startTime-U),se=!1}}break e}finally{x=null,v=he,R=!1}se=void 0}}finally{se?w():X=!1}}}var w;if(typeof F=="function")w=function(){F(j)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,ee=M.port2;M.port1.onmessage=j,w=function(){ee.postMessage(null)}}else w=function(){ie(j,0)};function te(U,se){S=ie(function(){U(l.unstable_now())},se)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return v},l.unstable_next=function(U){switch(v){case 1:case 2:case 3:var se=3;break;default:se=v}var he=v;v=se;try{return U()}finally{v=he}},l.unstable_requestPaint=function(){$=!0},l.unstable_runWithPriority=function(U,se){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var he=v;v=U;try{return se()}finally{v=he}},l.unstable_scheduleCallback=function(U,se,he){var Se=l.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?Se+he:Se):he=Se,U){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=he+je,U={id:E++,callback:se,priorityLevel:U,startTime:he,expirationTime:je,sortIndex:-1},he>Se?(U.sortIndex=he,r(b,U),u(m)===null&&U===u(b)&&(J?(_(S),S=-1):J=!0,te(I,he-Se))):(U.sortIndex=je,r(m,U),G||R||(G=!0,X||(X=!0,w()))),U},l.unstable_shouldYield=N,l.unstable_wrapCallback=function(U){var se=v;return function(){var he=v;v=se;try{return U.apply(this,arguments)}finally{v=he}}}})(Qd)),Qd}var Xx;function vS(){return Xx||(Xx=1,Vd.exports=bS()),Vd.exports}var $d={exports:{}},qt={};/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-dom.production.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var Zx;function SS(){if(Zx)return qt;Zx=1;var l=$h();function r(E){var x="https://react.dev/errors/"+E;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)x+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+E+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(r(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal"),d=Symbol.for("react.recoverable"),h=Symbol.for("react.optimistic_key");function g(E,x,v){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:R==null?null:R===h?h:""+R,children:E,containerInfo:x,implementation:v}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(E,x){if(E==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,qt.browser=function(E){return{$$typeof:d,_reason:E}},qt.createPortal=function(E,x){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(r(299));return g(E,x,null,v)},qt.flushSync=function(E){var x=m.T,v=c.p;try{if(m.T=null,c.p=2,E)return E()}finally{m.T=x,c.p=v,c.d.f()}},qt.preconnect=function(E,x){typeof E=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,c.d.C(E,x))},qt.prefetchDNS=function(E){typeof E=="string"&&c.d.D(E)},qt.preinit=function(E,x){if(typeof E=="string"&&x&&typeof x.as=="string"){var v=x.as,R=b(v,x.crossOrigin),G=typeof x.integrity=="string"?x.integrity:void 0,J=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;v==="style"?c.d.S(E,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:R,integrity:G,fetchPriority:J}):v==="script"&&c.d.X(E,{crossOrigin:R,integrity:G,fetchPriority:J,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},qt.preinitModule=function(E,x){if(typeof E=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var v=b(x.as,x.crossOrigin);c.d.M(E,{crossOrigin:v,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&c.d.M(E)},qt.preload=function(E,x){if(typeof E=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var v=x.as,R=b(v,x.crossOrigin);c.d.L(E,v,{crossOrigin:R,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},qt.preloadModule=function(E,x){if(typeof E=="string")if(x){var v=b(x.as,x.crossOrigin);c.d.m(E,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:v,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else c.d.m(E)},qt.requestFormReset=function(E){c.d.r(E)},qt.unstable_batchedUpdates=function(E,x){return E(x)},qt.useFormState=function(E,x,v){return m.H.useFormState(E,x,v)},qt.useFormStatus=function(){return m.H.useHostTransitionStatus()},qt.version="19.3.1",qt}var Kx;function Dy(){if(Kx)return $d.exports;Kx=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),$d.exports=SS(),$d.exports}/**
|
|
47
|
+
* @license React
|
|
48
|
+
* react-dom-client.production.js
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license found in the
|
|
53
|
+
* LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/var Ix;function jS(){if(Ix)return ts;Ix=1;var l=vS(),r=$h(),u=Dy();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(d(e)!==e)throw Error(c(188))}function b(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return m(i),e;if(o===a)return m(i),t;o=o.sibling}throw Error(c(188))}if(n.return!==a.return)n=i,a=o;else{for(var p=!1,y=i.child;y;){if(y===n){p=!0,n=i,a=o;break}if(y===a){p=!0,a=i,n=o;break}y=y.sibling}if(!p){for(y=o.child;y;){if(y===n){p=!0,n=o,a=i;break}if(y===a){p=!0,a=o,n=i;break}y=y.sibling}if(!p)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}function x(e,t,n,a,i,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,i,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,n,a,i,o))return!0;e=e.sibling}return!1}function v(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function R(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function G(e){var t=[null,null],n=v(e);return n===null||J(t,e,n.child,{foundSelf:!1}),t}function J(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&J(e,t,n.child,a))return!0;n=n.sibling}return!1}function $(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var ie=null,_=null;function F(e,t,n){return e===n?!0:e===t?(ie=e,!0):!1}function L(e,t,n){return e===n?(_=e,!1):e===t?(_!==null&&(ie=e),!0):!1}function I(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function X(e,t,n){for(var a=0,i=e;i;i=n(i))a++;i=0;for(var o=t;o;o=n(o))i++;for(;0<a-i;)e=n(e),a--;for(;0<i-a;)t=n(t),i--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var S=Object.assign,O=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),te=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),re=Symbol.for("react.legacy_hidden"),Ee=Symbol.for("react.memo_cache_sentinel"),T=Symbol.for("react.view_transition"),ce=Symbol.for("react.recoverable"),ge=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case M:return"Profiler";case w:return"StrictMode";case se:return"Suspense";case he:return"SuspenseList";case Ne:return"Activity";case T:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case te:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case je:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var B=Array.isArray,Y=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Ce=[],Oe=-1;function Ue(e){return{current:e}}function He(e){0>Oe||(e.current=Ce[Oe],Ce[Oe]=null,Oe--)}function ye(e,t){Oe++,Ce[Oe]=e.current,e.current=t}var $e=Ue(null),et=Ue(null),It=Ue(null),Mn=Ue(null);function Mt(e,t){switch(ye(It,t),ye(et,e),ye($e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jm(t),e=Pm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}He($e),ye($e,e)}function _e(){He($e),He(et),He(It)}function rt(e){var t=e.memoizedState;t!==null&&(Lr._currentValue=t.memoizedState,ye(Mn,e)),t=$e.current;var n=Pm(t,e.type);t!==n&&(ye(et,e),ye($e,n))}function Dn(e){et.current===e&&(He($e),He(et)),Mn.current===e&&(He(Mn),Lr._currentValue=xe)}var zn,ii;function Qn(e){if(zn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zn=t&&t[1]||"",ii=-1<n.stack.indexOf(`
|
|
55
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
56
|
+
`+zn+e+ii}var il=!1;function uc(e,t){if(!e||il)return"";il=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(be){var H=be}Reflect.construct(e,[],ue)}else{try{ue.call()}catch(be){H=be}ue=!1;try{var W=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),ue=!0,new e}finally{ue&&(W!==void 0?Object.defineProperty(e.prototype,"props",W):delete e.prototype.props)}}}else{try{throw Error()}catch(be){H=be}(ue=e())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(be){if(be&&H&&typeof be.stack=="string")return[be.stack,H.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),p=o[0],y=o[1];if(p&&y){var C=p.split(`
|
|
57
|
+
`),k=y.split(`
|
|
58
|
+
`);for(i=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;if(a===C.length||i===k.length)for(a=C.length-1,i=k.length-1;1<=a&&0<=i&&C[a]!==k[i];)i--;for(;1<=a&&0<=i;a--,i--)if(C[a]!==k[i]){if(a!==1||i!==1)do if(a--,i--,0>i||C[a]!==k[i]){var le=`
|
|
59
|
+
`+C[a].replace(" at new "," at ");return e.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",e.displayName)),le}while(1<=a&&0<=i);break}}}finally{il=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Qn(n):""}function yv(e,t){switch(e.tag){case 26:case 27:case 5:return Qn(e.type);case 16:return Qn("Lazy");case 13:return e.child!==t&&t!==null?Qn("Suspense Fallback"):Qn("Suspense");case 19:return Qn("SuspenseList");case 0:case 15:return uc(e.type,!1);case 11:return uc(e.type.render,!1);case 1:return uc(e.type,!0);case 31:return Qn("Activity");case 30:return Qn("ViewTransition");default:return""}}function bp(e){try{var t="",n=null;do t+=yv(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
60
|
+
Error generating stack: `+a.message+`
|
|
61
|
+
`+a.stack}}var cc=Object.prototype.hasOwnProperty,fc=l.unstable_scheduleCallback,dc=l.unstable_cancelCallback,bv=l.unstable_shouldYield,vv=l.unstable_requestPaint,an=l.unstable_now,Sv=l.unstable_getCurrentPriorityLevel,vp=l.unstable_ImmediatePriority,Sp=l.unstable_UserBlockingPriority,Ms=l.unstable_NormalPriority,jv=l.unstable_LowPriority,jp=l.unstable_IdlePriority,Ev=l.log,Tv=l.unstable_setDisableYieldValue,si=null,rn=null;function Cl(e){if(typeof Ev=="function"&&Tv(e),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(si,e)}catch{}}var sn=Math.clz32?Math.clz32:Cv,wv=Math.log,Ov=Math.LN2;function Cv(e){return e>>>=0,e===0?32:31-(wv(e)/Ov|0)|0}var Ds=256,zs=262144,Bs=4194304;function fa(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ls(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~o,a!==0?i=fa(a):(p&=y,p!==0?i=fa(p):n||(n=y&~e,n!==0&&(i=fa(n))))):(y=a&~o,y!==0?i=fa(y):p!==0?i=fa(p):n||(n=a&~e,n!==0&&(i=fa(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function oi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ep(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-sn(n),i=1<<a;t|=e[a],n&=~i}return t}function Av(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tp(){var e=Bs;return Bs<<=1,(Bs&62914560)===0&&(Bs=4194304),e}function hc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rv(e,t,n,a,i,o){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(n=p&~n;0<n;){var le=31-sn(n),ue=1<<le;y[le]=0,C[le]=-1;var H=k[le];if(H!==null)for(k[le]=null,le=0;le<H.length;le++){var W=H[le];W!==null&&(W.lane&=-536870913)}n&=~ue}a!==0&&wp(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(p&~t))}function wp(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-sn(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Op(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-sn(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Cp(e,t){var n=t&-t;return n=(n&42)!==0?1:pc(n),(n&(e.suspendedLanes|t))!==0?0:n}function pc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ap(){var e=ne.p;return e!==0?e:(e=window.event,e===void 0?32:Bx(e.type))}function Rp(e,t){var n=ne.p;try{return ne.p=e,t()}finally{ne.p=n}}var sl=Math.random().toString(36).slice(2),Dt="__reactFiber$"+sl,Jt="__reactProps$"+sl,Ia="__reactContainer$"+sl,_p="__reactEvents$"+sl,_v="__reactListeners$"+sl,Nv="__reactHandles$"+sl,Np="__reactResources$"+sl,ci="__reactMarker$"+sl,Us="__reactLoad$"+sl;function Hs(e){delete e[Dt],delete e[Jt],delete e[_v],delete e[Nv]}function da(e){var t;if(t=e[Dt])return t;for(var n=e.parentNode;n;){if(t=n[Ia]||n[Dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gx(e);e!==null;){if(n=e[Dt])return n;e=gx(e)}return t}e=n,n=e.parentNode}return null}function Ja(e){if(e=e[Dt]||e[Ia]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Pa(e){var t=e[Np];return t||(t=e[Np]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[ci]=!0}function Mp(e){e[Us]=void 0}var Dp=new Set,zp={};function ha(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(zp[e]=t,e=0;e<t.length;e++)Dp.add(t[e])}var Mv=RegExp("^[: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]*$"),Bp={},Lp={};function Dv(e){return cc.call(Lp,e)?!0:cc.call(Bp,e)?!1:Mv.test(e)?Lp[e]=!0:(Bp[e]=!0,!1)}var Xe=!1;function Up(){var e=Xe;return Xe=!1,e}function qs(e,t,n){if(Dv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function ks(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ol(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zv(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(p){n=""+p,o.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mc(e){if(!e._valueTracker){var t=Hp(e)?"checked":"value";e._valueTracker=zv(e,t,""+e[t])}}function qp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Hp(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var Bv=/[\n"\\]/g;function xn(e){return e.replace(Bv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xc(e,t,n,a,i,o,p,y){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?p==="number"&&e.value==t?yc(e,on(e.value)):yc(e,on(t)):n!=null?yc(e,on(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+on(y):e.removeAttribute("name")}function kp(e,t,n,a,i,o,p,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){mc(e);return}n=n!=null?""+on(n):"",t=t!=null?""+on(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),mc(e)}function yc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function er(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gp(e,t,n){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+on(n):""}function Yp(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(c(92));if(B(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=on(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),mc(e)}function tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fp(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Lv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vp(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",Xe=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&(Fp(e,i,a),Xe=!0)}else for(var o in t)t.hasOwnProperty(o)&&Fp(e,o,t[o])}function bc(e){if(e.indexOf("-")===-1)return!1;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 Uv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Gs(e){return Hv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $n(){}var vc=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nr=null,lr=null;function Qp(e){var t=Ja(e);if(t&&(e=t.stateNode)){var n=e[Jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(xc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+xn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[Jt]||null;if(!i)throw Error(c(90));xc(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&qp(a)}break e;case"textarea":Gp(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&er(e,!!n.multiple,t,!1)}}}var jc=!1;function $p(e,t,n){if(jc)return e(t,n);jc=!0;try{var a=e(t);return a}finally{if(jc=!1,(nr!==null||lr!==null)&&(Yo(),nr&&(t=nr,e=lr,lr=nr=null,Qp(t),e)))for(t=0;t<e.length;t++)Qp(e[t])}}function di(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Jt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var ul=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ec=!1;if(ul)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Ec=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Ec=!1}var Al=null,Tc=null,Ys=null;function Xp(){if(Ys)return Ys;var e,t=Tc,n=t.length,a,i="value"in Al?Al.value:Al.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var p=n-e;for(a=1;a<=p&&t[n-a]===i[o-a];a++);return Ys=i.slice(e,1<a?1-a:void 0)}function Fs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vs(){return!0}function Zp(){return!1}function Qt(e){function t(n,a,i,o,p){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=p,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(o):o[y]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vs:Zp,this.isPropagationStopped=Zp,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),t}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=Qt(Rl),pi=S({},Rl,{view:0,detail:0}),qv=Qt(pi),wc,Oc,gi,$s=S({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gi&&(gi&&e.type==="mousemove"?(wc=e.screenX-gi.screenX,Oc=e.screenY-gi.screenY):Oc=wc=0,gi=e),wc)},movementY:function(e){return"movementY"in e?e.movementY:Oc}}),Kp=Qt($s),kv=S({},$s,{dataTransfer:0}),Gv=Qt(kv),Yv=S({},pi,{relatedTarget:0}),Cc=Qt(Yv),Fv=S({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vv=Qt(Fv),Qv=S({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$v=Qt(Qv),Xv=S({},Rl,{data:0}),Ip=Qt(Xv),Zv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iv[e])?!!t[e]:!1}function Ac(){return Jv}var Pv=S({},pi,{key:function(e){if(e.key){var t=Zv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(e){return e.type==="keypress"?Fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wv=Qt(Pv),e2=S({},$s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jp=Qt(e2),t2=S({},Rl,{submitter:0}),n2=Qt(t2),l2=S({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),a2=Qt(l2),r2=S({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),i2=Qt(r2),s2=S({},$s,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),o2=Qt(s2),u2=S({},Rl,{newState:0,oldState:0,source:0}),c2=Qt(u2),f2=[9,13,27,32],Rc=ul&&"CompositionEvent"in window,mi=null;ul&&"documentMode"in document&&(mi=document.documentMode);var d2=ul&&"TextEvent"in window&&!mi,Pp=ul&&(!Rc||mi&&8<mi&&11>=mi),Wp=" ",e0=!1;function t0(e,t){switch(e){case"keyup":return f2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function n0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function h2(e,t){switch(e){case"compositionend":return n0(t);case"keypress":return t.which!==32?null:(e0=!0,Wp);case"textInput":return e=t.data,e===Wp&&e0?null:e;default:return null}}function p2(e,t){if(ar)return e==="compositionend"||!Rc&&t0(e,t)?(e=Xp(),Ys=Tc=Al=null,ar=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pp&&t.locale!=="ko"?null:t.data;default:return null}}var g2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function l0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g2[e.type]:t==="textarea"}function a0(e,t,n,a){nr?lr?lr.push(a):lr=[a]:nr=a,t=Zo(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var xi=null,yi=null;function m2(e){Qm(e,0)}function Xs(e){var t=fi(e);if(qp(t))return e}function r0(e,t){if(e==="change")return t}var i0=!1;if(ul){var _c;if(ul){var Nc="oninput"in document;if(!Nc){var s0=document.createElement("div");s0.setAttribute("oninput","return;"),Nc=typeof s0.oninput=="function"}_c=Nc}else _c=!1;i0=_c&&(!document.documentMode||9<document.documentMode)}function o0(){xi&&(xi.detachEvent("onpropertychange",u0),yi=xi=null)}function u0(e){if(e.propertyName==="value"&&Xs(yi)){var t=[];a0(t,yi,e,Sc(e)),$p(m2,t)}}function x2(e,t,n){e==="focusin"?(o0(),xi=t,yi=n,xi.attachEvent("onpropertychange",u0)):e==="focusout"&&o0()}function y2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xs(yi)}function b2(e,t){if(e==="click")return Xs(t)}function v2(e,t){if(e==="input"||e==="change")return Xs(t)}function S2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var un=typeof Object.is=="function"?Object.is:S2;function bi(e,t){if(un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!cc.call(t,i)||!un(e[i],t[i]))return!1}return!0}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 c0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function f0(e,t){var n=c0(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=c0(n)}}function d0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?d0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function h0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mc(e.document)}return t}function Dc(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")}var j2=ul&&"documentMode"in document&&11>=document.documentMode,rr=null,zc=null,vi=null,Bc=!1;function p0(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bc||rr==null||rr!==Mc(a)||(a=rr,"selectionStart"in a&&Dc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),vi&&bi(vi,a)||(vi=a,a=Zo(zc,"onSelect"),0<a.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=rr)))}function pa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ir={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},Lc={},g0={};ul&&(g0=document.createElement("div").style,"AnimationEvent"in window||(delete ir.animationend.animation,delete ir.animationiteration.animation,delete ir.animationstart.animation),"TransitionEvent"in window||delete ir.transitionend.transition);function ga(e){if(Lc[e])return Lc[e];if(!ir[e])return e;var t=ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in g0)return Lc[e]=t[n];return e}var m0=ga("animationend"),x0=ga("animationiteration"),y0=ga("animationstart"),E2=ga("transitionrun"),T2=ga("transitionstart"),w2=ga("transitioncancel"),b0=ga("transitionend"),v0=new Map,Uc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uc.push("scrollEnd");function Bn(e,t){v0.set(e,t),ha(t,[e])}var O2=0;function cl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=qn.identifierPrefix;var n=O2++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function S0(e){if(e==null||typeof e=="string")return e;var t=null,n=Or;if(n!==null)for(var a=0;a<n.length;a++){var i=e[n[a]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function fl(e,t){return e=S0(e),t=S0(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Zs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yn=[],sr=0,Hc=0;function Ks(){for(var e=sr,t=Hc=sr=0;t<e;){var n=yn[t];yn[t++]=null;var a=yn[t];yn[t++]=null;var i=yn[t];yn[t++]=null;var o=yn[t];if(yn[t++]=null,a!==null&&i!==null){var p=a.pending;p===null?i.next=i:(i.next=p.next,p.next=i),a.pending=i}o!==0&&j0(n,i,o)}}function Is(e,t,n,a){yn[sr++]=e,yn[sr++]=t,yn[sr++]=n,yn[sr++]=a,Hc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function qc(e,t,n,a){return Is(e,t,n,a),Js(e)}function ma(e,t){return Is(e,null,null,t),Js(e)}function j0(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-sn(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function Js(e){if(50<Yi)throw Yi=0,Go=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var or={};function C2(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new C2(e,t,n,a)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dl(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function E0(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ps(e,t,n,a,i,o){var p=0;if(a=e,typeof a=="function")kc(a)&&(p=1);else if(typeof a=="string")p=tS(e,n,$e.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Ne:return e=Pt(31,n,t,i),e.elementType=Ne,e.lanes=o,e;case j:return xa(n.children,i,o,t);case w:p=8,i|=24;break;case M:return e=Pt(12,n,t,i|2),e.elementType=M,e.lanes=o,e;case se:return e=Pt(13,n,t,i),e.elementType=se,e.lanes=o,e;case he:return e=Pt(19,n,t,i),e.elementType=he,e.lanes=o,e;case re:case T:return e=i|32,e=Pt(30,n,t,e),e.elementType=T,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case te:p=10;break e;case ee:p=9;break e;case U:p=11;break e;case Se:p=14;break e;case je:p=16,a=null;break e}p=29,n=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Pt(p,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function xa(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Gc(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function T0(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Yc(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var w0=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var n=w0.get(e);return n!==void 0?n:(t={value:e,source:t,stack:bp(t)},w0.set(e,t),t)}return{value:e,source:t,stack:bp(t)}}var ur=[],cr=0,Ws=null,Si=0,vn=[],Sn=0,_l=null,Xn=1,Zn="";function hl(e,t){ur[cr++]=Si,ur[cr++]=Ws,Ws=e,Si=t}function O0(e,t,n){vn[Sn++]=Xn,vn[Sn++]=Zn,vn[Sn++]=_l,_l=e;var a=Xn;e=Zn;var i=32-sn(a)-1;a&=~(1<<i),n+=1;var o=32-sn(t)+i;if(30<o){var p=i-i%5;o=(a&(1<<p)-1).toString(32),a>>=p,i-=p,Xn=1<<32-sn(t)+i|n<<i|a,Zn=o+e}else Xn=1<<o|n<<i|a,Zn=e}function eo(e){e.return!==null&&(hl(e,1),O0(e,1,0))}function Fc(e){for(;e===Ws;)Ws=ur[--cr],ur[cr]=null,Si=ur[--cr],ur[cr]=null;for(;e===_l;)_l=vn[--Sn],vn[Sn]=null,Zn=vn[--Sn],vn[Sn]=null,Xn=vn[--Sn],vn[Sn]=null}function C0(e,t){vn[Sn++]=Xn,vn[Sn++]=Zn,vn[Sn++]=_l,Xn=t.id,Zn=t.overflow,_l=e}var At=null,lt=null,qe=!1,Nl=null,jn=!1,Vc=Error(c(519));function Ml(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ji(bn(t,e)),Vc}function A0(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Dt]=e,t[Jt]=a,n){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(n=0;n<Vi.length;n++)Ge(Vi[n],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Ge("invalid",t),kp(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ge("invalid",t);break;case"textarea":Ge("invalid",t),Yp(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Km(t.textContent,n)?(a.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),a.onScroll!=null&&Ge("scroll",t),a.onScrollEnd!=null&&Ge("scrollend",t),a.onClick!=null&&(t.onclick=$n),t=!0):t=!1,t||Ml(e,!0)}function to(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:At=At.return}}function fr(e){if(e!==At)return!1;if(!qe)return to(e),qe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Sd(e.type,e.memoizedProps)),n=!n),n&<&&Ml(e),to(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));lt=px(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));lt=px(e)}else t===27?(t=lt,Zl(e.type)?(e=_d,_d=null,lt=e):lt=t):lt=At?Tn(e.stateNode.nextSibling):null;return!0}function ya(){lt=At=null,qe=!1}function Qc(){var e=Nl;return e!==null&&(tn===null?tn=e:tn.push.apply(tn,e),Nl=null),e}function ji(e){Nl===null?Nl=[e]:Nl.push(e)}var $c=Ue(null),ba=null,pl=null;function Dl(e,t,n){ye($c,t._currentValue),t._currentValue=n}function gl(e){e._currentValue=$c.current,He($c)}function no(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Xc(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var p=i.child;o=o.firstContext;e:for(;o!==null;){var y=o;o=i;for(var C=0;C<t.length;C++)if(y.context===t[C]){o.lanes|=n,y=o.alternate,y!==null&&(y.lanes|=n),no(o.return,n,e),a||(p=null);break e}o=y.next}}else if(i.tag===18){if(p=i.return,p===null)throw Error(c(341));p.lanes|=n,o=p.alternate,o!==null&&(o.lanes|=n),no(p,n,e),p=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,p=i.alternate,p!==null&&(p.lanes|=n),no(i.return,n,e),p=i.child,p=p!==null?p.sibling:null):p=i.child;if(p!==null)p.return=i;else for(p=i;p!==null;){if(p===e){p=null;break}if(i=p.sibling,i!==null){i.return=p.return,p=i;break}p=p.return}i=p}}function va(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var p=i.alternate;if(p===null)throw Error(c(387));if(p=p.memoizedProps,p!==null){var y=i.type;un(i.pendingProps.value,p.value)||(e!==null?e.push(y):e=[y])}}else if(i===Mn.current){if(p=i.alternate,p===null)throw Error(c(387));p.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Lr):e=[Lr])}i=i.return}return e!==null&&Xc(t,e,n,a),t.flags|=262144,e!==null}function lo(e){for(e=e.firstContext;e!==null;){if(!un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ba=e,pl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function zt(e){return R0(ba,e)}function ao(e,t){return ba===null&&Sa(e),R0(e,t)}function R0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},pl===null){if(e===null)throw Error(c(308));pl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else pl=pl.next=t;return n}var A2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},R2=l.unstable_scheduleCallback,_2=l.unstable_NormalPriority,gt={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zc(){return{controller:new A2,data:new Map,refCount:0}}function Ei(e){e.refCount--,e.refCount===0&&R2(_2,function(){e.controller.abort()})}function _0(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Ti=null;function N2(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var wi=null,Kc=0,ja=0,dr=null;function M2(e,t){if(wi===null){var n=wi=[];Kc=0,ja=dd(),dr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Kc++,t.then(N0,N0),t}function N0(){if(--Kc===0&&(Ti=null,wi!==null)){dr!==null&&(dr.status="fulfilled");var e=wi;wi=null,ja=0,dr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D2(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var M0=Y.S;Y.S=function(e,t){if(Tm=an(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&M2(e,t),Ti!==null)for(var n=_r;n!==null;)_0(n,Ti),n=n.next;if(n=e.types,n!==null){for(var a=_r;a!==null;)_0(a,n),a=a.next;if(ja!==0){a=Ti,a===null&&(a=Ti=[]);for(var i=0;i<n.length;i++){var o=n[i];a.indexOf(o)===-1&&a.push(o)}}}M0!==null&&M0(e,t)};var Ea=Ue(null);function Ic(){var e=Ea.current;return e!==null?e:nt.pooledCache}function ro(e,t){t===null?ye(Ea,Ea.current):ye(Ea,t.pool)}function D0(){var e=Ic();return e===null?null:{parent:gt._currentValue,pool:e}}var hr=Error(c(460)),Jc=Error(c(474)),io=Error(c(542)),so={then:function(){}};function z0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function B0(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($n,$n),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,U0(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then($n,$n);else{if(e=nt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,U0(e),e}throw wa=t,hr}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(wa=n,hr):n}}var wa=null;function L0(){if(wa===null)throw Error(c(459));var e=wa;return wa=null,e}function U0(e){if(e===hr||e===io)throw Error(c(483))}var pr=null,Oi=0;function oo(e){var t=Oi;return Oi+=1,pr===null&&(pr=[]),B0(pr,e,t)}function zl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function uo(e,t){throw t.$$typeof===O?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function H0(e){function t(q,D){if(e){var Z=q.deletions;Z===null?(q.deletions=[D],q.flags|=16):Z.push(D)}}function n(q,D){if(!e)return null;for(;D!==null;)t(q,D),D=D.sibling;return null}function a(q){for(var D=new Map;q!==null;)q.key===null?D.set(q.index,q):D.set(q.key,q),q=q.sibling;return D}function i(q,D){return q=dl(q,D),q.index=0,q.sibling=null,q}function o(q,D,Z){return q.index=Z,e?(Z=q.alternate,Z!==null?(Z=Z.index,Z<D?(q.flags|=2,D):Z):(q.flags|=134217730,D)):(q.flags|=1048576,D)}function p(q){return e&&q.alternate===null&&(q.flags|=134217730),q}function y(q,D,Z,oe){return D===null||D.tag!==6?(D=Gc(Z,q.mode,oe),D.return=q,D):(D=i(D,Z),D.return=q,D)}function C(q,D,Z,oe){var Te=Z.type;return Te===j?(q=le(q,D,Z.props.children,oe,Z.key),zl(q,Z),q):D!==null&&(D.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===je&&Ta(Te)===D.type)?(D=i(D,Z.props),zl(D,Z),D.return=q,D):(D=Ps(Z.type,Z.key,Z.props,null,q.mode,oe),zl(D,Z),D.return=q,D)}function k(q,D,Z,oe){return D===null||D.tag!==4||D.stateNode.containerInfo!==Z.containerInfo||D.stateNode.implementation!==Z.implementation?(D=Yc(Z,q.mode,oe),D.return=q,D):(D=i(D,Z.children||[]),D.return=q,D)}function le(q,D,Z,oe,Te){return D===null||D.tag!==7?(D=xa(Z,q.mode,oe,Te),D.return=q,D):(D=i(D,Z),D.return=q,D)}function ue(q,D,Z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Gc(""+D,q.mode,Z),D.return=q,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case z:return Z=Ps(D.type,D.key,D.props,null,q.mode,Z),zl(Z,D),Z.return=q,Z;case N:return D=Yc(D,q.mode,Z),D.return=q,D;case je:return D=Ta(D),ue(q,D,Z)}if(B(D)||ve(D))return D=xa(D,q.mode,Z,null),D.return=q,D;if(typeof D.then=="function")return ue(q,oo(D),Z);if(D.$$typeof===te)return ue(q,ao(q,D),Z);uo(q,D)}return null}function H(q,D,Z,oe){var Te=D!==null?D.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Te!==null?null:y(q,D,""+Z,oe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case z:return Z.key===Te?C(q,D,Z,oe):null;case N:return Z.key===Te?k(q,D,Z,oe):null;case je:return Z=Ta(Z),H(q,D,Z,oe)}if(B(Z)||ve(Z))return Te!==null?null:le(q,D,Z,oe,null);if(typeof Z.then=="function")return H(q,D,oo(Z),oe);if(Z.$$typeof===te)return H(q,D,ao(q,Z),oe);uo(q,Z)}return null}function W(q,D,Z,oe,Te){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return q=q.get(Z)||null,y(D,q,""+oe,Te);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case z:return q=q.get(oe.key===null?Z:oe.key)||null,C(D,q,oe,Te);case N:return q=q.get(oe.key===null?Z:oe.key)||null,k(D,q,oe,Te);case je:return oe=Ta(oe),W(q,D,Z,oe,Te)}if(B(oe)||ve(oe))return q=q.get(Z)||null,le(D,q,oe,Te,null);if(typeof oe.then=="function")return W(q,D,Z,oo(oe),Te);if(oe.$$typeof===te)return W(q,D,Z,ao(D,oe),Te);uo(D,oe)}return null}function be(q,D,Z,oe){for(var Te=null,Fe=null,Ae=D,Re=D=0,yt=null;Ae!==null&&Re<Z.length;Re++){Ae.index>Re?(yt=Ae,Ae=null):yt=Ae.sibling;var Ve=H(q,Ae,Z[Re],oe);if(Ve===null){Ae===null&&(Ae=yt);break}e&&Ae&&Ve.alternate===null&&t(q,Ae),D=o(Ve,D,Re),Fe===null?Te=Ve:Fe.sibling=Ve,Fe=Ve,Ae=yt}if(Re===Z.length)return n(q,Ae),qe&&hl(q,Re),Te;if(Ae===null){for(;Re<Z.length;Re++)Ae=ue(q,Z[Re],oe),Ae!==null&&(D=o(Ae,D,Re),Fe===null?Te=Ae:Fe.sibling=Ae,Fe=Ae);return qe&&hl(q,Re),Te}for(Ae=a(Ae);Re<Z.length;Re++)yt=W(Ae,q,Re,Z[Re],oe),yt!==null&&(e&&(Ve=yt.alternate,Ve!==null&&Ae.delete(Ve.key===null?Re:Ve.key)),D=o(yt,D,Re),Fe===null?Te=yt:Fe.sibling=yt,Fe=yt);return e&&Ae.forEach(function(Wl){return t(q,Wl)}),qe&&hl(q,Re),Te}function we(q,D,Z,oe){if(Z==null)throw Error(c(151));for(var Te=null,Fe=null,Ae=D,Re=D=0,yt=null,Ve=Z.next();Ae!==null&&!Ve.done;Re++,Ve=Z.next()){Ae.index>Re?(yt=Ae,Ae=null):yt=Ae.sibling;var Wl=H(q,Ae,Ve.value,oe);if(Wl===null){Ae===null&&(Ae=yt);break}e&&Ae&&Wl.alternate===null&&t(q,Ae),D=o(Wl,D,Re),Fe===null?Te=Wl:Fe.sibling=Wl,Fe=Wl,Ae=yt}if(Ve.done)return n(q,Ae),qe&&hl(q,Re),Te;if(Ae===null){for(;!Ve.done;Re++,Ve=Z.next())Ve=ue(q,Ve.value,oe),Ve!==null&&(D=o(Ve,D,Re),Fe===null?Te=Ve:Fe.sibling=Ve,Fe=Ve);return qe&&hl(q,Re),Te}for(Ae=a(Ae);!Ve.done;Re++,Ve=Z.next())Ve=W(Ae,q,Re,Ve.value,oe),Ve!==null&&(e&&(yt=Ve.alternate,yt!==null&&Ae.delete(yt.key===null?Re:yt.key)),D=o(Ve,D,Re),Fe===null?Te=Ve:Fe.sibling=Ve,Fe=Ve);return e&&Ae.forEach(function(hS){return t(q,hS)}),qe&&hl(q,Re),Te}function ze(q,D,Z,oe){if(typeof Z=="object"&&Z!==null&&Z.type===j&&Z.key===null&&Z.props.ref===void 0&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case z:e:{for(var Te=Z.key;D!==null;){if(D.key===Te){if(Te=Z.type,Te===j){if(D.tag===7){n(q,D.sibling),oe=i(D,Z.props.children),zl(oe,Z),oe.return=q,q=oe;break e}}else if(D.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===je&&Ta(Te)===D.type){n(q,D.sibling),oe=i(D,Z.props),zl(oe,Z),oe.return=q,q=oe;break e}n(q,D);break}else t(q,D);D=D.sibling}Z.type===j?(oe=xa(Z.props.children,q.mode,oe,Z.key),zl(oe,Z),oe.return=q,q=oe):(oe=Ps(Z.type,Z.key,Z.props,null,q.mode,oe),zl(oe,Z),oe.return=q,q=oe)}return p(q);case N:e:{for(Te=Z.key;D!==null;){if(D.key===Te)if(D.tag===4&&D.stateNode.containerInfo===Z.containerInfo&&D.stateNode.implementation===Z.implementation){n(q,D.sibling),oe=i(D,Z.children||[]),oe.return=q,q=oe;break e}else{n(q,D);break}else t(q,D);D=D.sibling}oe=Yc(Z,q.mode,oe),oe.return=q,q=oe}return p(q);case je:return Z=Ta(Z),ze(q,D,Z,oe)}if(B(Z))return be(q,D,Z,oe);if(ve(Z)){if(Te=ve(Z),typeof Te!="function")throw Error(c(150));return Z=Te.call(Z),we(q,D,Z,oe)}if(typeof Z.then=="function")return ze(q,D,oo(Z),oe);if(Z.$$typeof===te)return ze(q,D,ao(q,Z),oe);uo(q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,D!==null&&D.tag===6?(n(q,D.sibling),oe=i(D,Z),oe.return=q,q=oe):(n(q,D),oe=Gc(Z,q.mode,oe),oe.return=q,q=oe),p(q)):n(q,D)}return function(q,D,Z,oe){try{Oi=0;var Te=ze(q,D,Z,oe);return pr=null,Te}catch(Ae){if(Ae===hr||Ae===io)throw Ae;var Fe=Pt(29,Ae,null,q.mode);return Fe.lanes=oe,Fe.return=q,Fe}finally{}}}var Oa=H0(!0),q0=H0(!1),Bl=!1;function Pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ul(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ze&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Js(e),j0(e,null,n),t}return Is(e,a,t,n),Js(e)}function Ci(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Op(e,n)}}function ef(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=p:o=o.next=p,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var tf=!1;function Ai(){if(tf){var e=dr;if(e!==null)throw e}}function Ri(e,t,n,a){tf=!1;var i=e.updateQueue;Bl=!1;var o=i.firstBaseUpdate,p=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var C=y,k=C.next;C.next=null,p===null?o=k:p.next=k,p=C;var le=e.alternate;le!==null&&(le=le.updateQueue,y=le.lastBaseUpdate,y!==p&&(y===null?le.firstBaseUpdate=k:y.next=k,le.lastBaseUpdate=C))}if(o!==null){var ue=i.baseState;p=0,le=k=C=null,y=o;do{var H=y.lane&-536870913,W=H!==y.lane;if(W?(Ye&H)===H:(a&H)===H){H!==0&&H===ja&&(tf=!0),le!==null&&(le=le.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var be=e,we=y;H=t;var ze=n;switch(we.tag){case 1:if(be=we.payload,typeof be=="function"){ue=be.call(ze,ue,H);break e}ue=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=we.payload,H=typeof be=="function"?be.call(ze,ue,H):be,H==null)break e;ue=S({},ue,H);break e;case 2:Bl=!0}}H=y.callback,H!==null&&(e.flags|=64,W&&(e.flags|=8192),W=i.callbacks,W===null?i.callbacks=[H]:W.push(H))}else W={lane:H,tag:y.tag,payload:y.payload,callback:y.callback,next:null},le===null?(k=le=W,C=ue):le=le.next=W,p|=H;if(y=y.next,y===null){if(y=i.shared.pending,y===null)break;W=y,y=W.next,W.next=null,i.lastBaseUpdate=W,i.shared.pending=null}}while(!0);le===null&&(C=ue),i.baseState=C,i.firstBaseUpdate=k,i.lastBaseUpdate=le,o===null&&(i.shared.lanes=0),Vl|=p,e.lanes=p,e.memoizedState=ue}}function k0(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function G0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)k0(n[e],t)}var Hl=Ue(null),co=Ue(0);function Y0(e,t){e=vl,ye(co,e),ye(Hl,t),vl=e|t.baseLanes}function nf(){ye(co,vl),ye(Hl,Hl.current)}function lf(){vl=co.current,He(Hl),He(co)}var Bt=Ue(null),Ft=null;function ql(e){var t=e.alternate;ye(Lt,Lt.current&1),ye(Bt,e),Ft===null&&(t===null||Hl.current!==null||t.memoizedState!==null)&&(Ft=e)}function af(e){ye(Lt,Lt.current),ye(Bt,e),Ft===null&&(Ft=e)}function F0(e){e.tag===22?(ye(Lt,Lt.current),ye(Bt,e),Ft===null&&(Ft=e)):kl()}function kl(){ye(Lt,Lt.current),ye(Bt,Bt.current)}function cn(e){He(Bt),Ft===e&&(Ft=null),He(Lt)}var Lt=Ue(0);function _i(e,t){ye(Bt,Bt.current),ye(Lt,t)}function rf(e){He(Lt),He(Bt),Ft===e&&(Ft=null)}function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ad(n)||Rd(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)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 ml=0,De=null,tt=null,mt=null,ho=!1,gr=!1,Ca=!1,po=0,Ni=0,mr=null,z2=0;function ft(){throw Error(c(321))}function sf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!un(e[n],t[n]))return!1;return!0}function of(e,t,n,a,i,o){return ml=o,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e===null||e.memoizedState===null?Og:Cg,Ca=!1,o=n(a,i),Ca=!1,gr&&(o=Q0(t,n,a,i)),V0(e),o}function V0(e){Y.H=So;var t=tt!==null&&tt.next!==null;if(ml=0,mt=tt=De=null,ho=!1,Ni=0,mr=null,t)throw Error(c(300));e===null||xt||(e=e.dependencies,e!==null&&lo(e)&&(xt=!0))}function Q0(e,t,n,a){De=e;var i=0;do{if(gr&&(mr=null),Ni=0,gr=!1,25<=i)throw Error(c(301));if(i+=1,mt=tt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Y.H=Y2,o=t(n,a)}while(gr);return o}function B2(){var e=Y.H,t=e.useState()[0];return t=typeof t.then=="function"?Mi(t):t,e=e.useState()[0],(tt!==null?tt.memoizedState:null)!==e&&(De.flags|=1024),t}function uf(){var e=po!==0;return po=0,e}function cf(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ff(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}ml=0,mt=tt=De=null,gr=!1,Ni=po=0,mr=null}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?De.memoizedState=mt=e:mt=mt.next=e,mt}function ht(){if(tt===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=tt.next;var t=mt===null?De.memoizedState:mt.next;if(t!==null)mt=t,tt=e;else{if(e===null)throw De.alternate===null?Error(c(467)):Error(c(310));tt=e,e={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},mt===null?De.memoizedState=mt=e:mt=mt.next=e}return mt}function go(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mi(e){var t=Ni;return Ni+=1,mr===null&&(mr=[]),e=B0(mr,e,t),t=De,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,Y.H=t===null||t.memoizedState===null?Og:Cg),e}function mo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mi(e);if(e.$$typeof===ce)return;if(e.$$typeof===te)return zt(e)}throw Error(c(438,String(e)))}function df(e){var t=null,n=De.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=De.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=go(),De.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Ee;return t.index++,n}function xl(e,t){return typeof t=="function"?t(e):t}function xo(e){var t=ht();return hf(t,tt,e)}function hf(e,t,n){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var p=i.next;i.next=o.next,o.next=p}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var y=p=null,C=null,k=t,le=!1;do{var ue=k.lane&-536870913;if(ue!==k.lane?(Ye&ue)===ue:(ml&ue)===ue){var H=k.revertLane;if(H===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),ue===ja&&(le=!0);else if((ml&H)===H){k=k.next,H===ja&&(le=!0);continue}else ue={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(y=C=ue,p=o):C=C.next=ue,De.lanes|=H,Vl|=H;ue=k.action,Ca&&n(o,ue),o=k.hasEagerState?k.eagerState:n(o,ue)}else H={lane:ue,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(y=C=H,p=o):C=C.next=H,De.lanes|=ue,Vl|=ue;k=k.next}while(k!==null&&k!==t);if(C===null?p=o:C.next=y,!un(o,e.memoizedState)&&(xt=!0,le&&(n=dr,n!==null)))throw n;e.memoizedState=o,e.baseState=p,e.baseQueue=C,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function pf(e){var t=ht(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var p=i=i.next;do o=e(o,p.action),p=p.next;while(p!==i);un(o,t.memoizedState)||(xt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function $0(e,t,n){var a=De,i=ht(),o=qe;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=t();var p=!un((tt||i).memoizedState,n);if(p&&(i.memoizedState=n,xt=!0),i=i.queue,xf(K0.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||p||mt!==null&&(mt.memoizedState.tag&1)!==0,xr(e?9:8,{destroy:void 0},Z0.bind(null,a,i,n,t),null),e){if(a.flags|=2048,nt===null)throw Error(c(349));o||(ml&127)!==0||X0(a,t,n)}return n}function X0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t=go(),De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Z0(e,t,n,a){t.value=n,t.getSnapshot=a,I0(t)&&J0(e)}function K0(e,t,n){return n(function(){I0(t)&&J0(e)})}function I0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!un(e,n)}catch{return!0}}function J0(e){var t=ma(e,2);t!==null&&nn(t,e,2)}function gf(e){var t=$t();if(typeof e=="function"){var n=e;if(e=n(),Ca){Cl(!0);try{n()}finally{Cl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},t}function P0(e,t,n,a){return e.baseState=n,hf(e,tt,typeof a=="function"?a:xl)}function L2(e,t,n,a,i){if(vo(e))throw Error(c(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){o.listeners.push(p)}};Y.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,W0(t,o)):(o.next=n.next,t.pending=n.next=o)}}function W0(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=Y.T,p={};p.types=o!==null?o.types:null,Y.T=p;try{var y=n(i,a),C=Y.S;C!==null&&C(p,y),eg(e,t,y)}catch(k){mf(e,t,k)}finally{o!==null&&p.types!==null&&(o.types=p.types),Y.T=o}}else try{o=n(i,a),eg(e,t,o)}catch(k){mf(e,t,k)}}function eg(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){tg(e,t,a)},function(a){return mf(e,t,a)}):tg(e,t,n)}function tg(e,t,n){t.status="fulfilled",t.value=n,ng(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,W0(e,n)))}function mf(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ng(t),t=t.next;while(t!==a)}e.action=null}function ng(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lg(e,t){return t}function ag(e,t){if(qe){var n=nt.formState;if(n!==null){e:{var a=De;if(qe){if(lt){t:{for(var i=lt,o=jn;i.nodeType!==8;){if(!o){i=null;break t}if(i=Tn(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){lt=Tn(i.nextSibling),a=i.data==="F!";break e}}Ml(a)}a=!1}a&&(t=n[0])}}return n=$t(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lg,lastRenderedState:t},n.queue=a,n=Eg.bind(null,De,a),a.dispatch=n,a=gf(!1),o=jf.bind(null,De,!1,a.queue),a=$t(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=L2.bind(null,De,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function rg(e){var t=ht();return ig(t,tt,e)}function ig(e,t,n){if(t=hf(e,t,lg)[0],e=xo(xl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Mi(t)}catch(p){throw p===hr?io:p}else a=t;t=ht();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(De.flags|=2048,xr(9,{destroy:void 0},U2.bind(null,i,n),null)),[a,o,e]}function U2(e,t){e.action=t}function sg(e){var t=ht(),n=tt;if(n!==null)return ig(t,n,e);ht(),t=t.memoizedState,n=ht();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function xr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=De.updateQueue,t===null&&(t=go(),De.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function og(){return ht().memoizedState}function yo(e,t,n,a){var i=$t();De.flags|=e,i.memoizedState=xr(1|t,{destroy:void 0},n,a===void 0?null:a)}function bo(e,t,n,a){var i=ht();a=a===void 0?null:a;var o=i.memoizedState.inst;tt!==null&&a!==null&&sf(a,tt.memoizedState.deps)?i.memoizedState=xr(t,o,n,a):(De.flags|=e,i.memoizedState=xr(1|t,o,n,a))}function ug(e,t){yo(8390656,8,e,t)}function xf(e,t){bo(2048,8,e,t)}function H2(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=go(),De.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function cg(e){var t=ht().memoizedState;return H2({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function fg(e,t){return bo(4,2,e,t)}function dg(e,t){return bo(4,4,e,t)}function hg(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pg(e,t,n){n=n!=null?n.concat([e]):null,bo(4,4,hg.bind(null,t,e),n)}function yf(){}function gg(e,t){var n=ht();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&sf(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function mg(e,t){var n=ht();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&sf(t,a[1]))return a[0];if(a=e(),Ca){Cl(!0);try{e()}finally{Cl(!1)}}return n.memoizedState=[a,t],a}function bf(e,t,n){return n===void 0||(ml&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Om(),De.lanes|=e,Vl|=e,n)}function xg(e,t,n,a){return un(n,t)?n:Hl.current!==null?(e=bf(e,n,a),un(e,t)||(xt=!0),e):(ml&106)===0||(ml&1073741824)!==0&&(Ye&261930)===0?(xt=!0,e.memoizedState=n):(e=Om(),De.lanes|=e,Vl|=e,t)}function yg(e,t,n,a,i){var o=ne.p;ne.p=o!==0&&8>o?o:8;var p=Y.T,y={};y.types=p!==null?p.types:null,Y.T=y,jf(e,!1,t,n);try{var C=i(),k=Y.S;if(k!==null&&k(y,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var le=D2(C,a);Di(e,t,le,pn(e))}else Di(e,t,a,pn(e))}catch(ue){Di(e,t,{then:function(){},status:"rejected",reason:ue},pn())}finally{ne.p=o,p!==null&&y.types!==null&&(p.types=y.types),Y.T=p}}function q2(){}function vf(e,t,n,a){if(e.tag!==5)throw Error(c(476));var i=bg(e).queue;yg(e,i,t,xe,n===null?q2:function(){return vg(e),n(a)})}function bg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:xe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vg(e){var t=bg(e);t.next===null&&(t=e.alternate.memoizedState),Di(e,t.next.queue,{},pn())}function Sf(){return zt(Lr)}function Sg(){return ht().memoizedState}function jg(){return ht().memoizedState}function k2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pn();e=Ll(n);var a=Ul(t,e,n);a!==null&&(nn(a,t,n),Ci(a,t,n)),t={cache:Zc()},e.payload=t;return}t=t.return}}function G2(e,t,n){var a=pn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vo(e)?Tg(t,n):(n=qc(e,t,n,a),n!==null&&(nn(n,e,a),wg(n,t,a)))}function Eg(e,t,n){var a=pn();Di(e,t,n,a)}function Di(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vo(e))Tg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var p=t.lastRenderedState,y=o(p,n);if(i.hasEagerState=!0,i.eagerState=y,un(y,p))return Is(e,t,i,0),nt===null&&Ks(),!1}catch{}finally{}if(n=qc(e,t,i,a),n!==null)return nn(n,e,a),wg(n,t,a),!0}return!1}function jf(e,t,n,a){if(a={lane:2,revertLane:dd(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vo(e)){if(t)throw Error(c(479))}else t=qc(e,n,a,2),t!==null&&nn(t,e,2)}function vo(e){var t=e.alternate;return e===De||t!==null&&t===De}function Tg(e,t){gr=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wg(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Op(e,n)}}var So={readContext:zt,use:mo,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft,useEffectEvent:ft},Og={readContext:zt,use:mo,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:ug,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yo(4194308,4,hg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){yo(4,2,e,t)},useMemo:function(e,t){var n=$t();t=t===void 0?null:t;var a=e();if(Ca){Cl(!0);try{e()}finally{Cl(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=$t();if(n!==void 0){var i=n(t);if(Ca){Cl(!0);try{n(t)}finally{Cl(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=G2.bind(null,De,e),[a.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=gf(e);var t=e.queue,n=Eg.bind(null,De,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yf,useDeferredValue:function(e,t){var n=$t();return bf(n,e,t)},useTransition:function(){var e=gf(!1);return e=yg.bind(null,De,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=De,i=$t();if(qe){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),nt===null)throw Error(c(349));(Ye&127)!==0||X0(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ug(K0.bind(null,a,o,e),[e]),a.flags|=2048,xr(9,{destroy:void 0},Z0.bind(null,a,o,n,t),null),n},useId:function(){var e=$t(),t=nt.identifierPrefix;if(qe){var n=Zn,a=Xn;n=(a&~(1<<32-sn(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=po++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=z2++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Sf,useFormState:ag,useActionState:ag,useOptimistic:function(e){var t=$t();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=jf.bind(null,De,!0,n),n.dispatch=t,[e,t]},useMemoCache:df,useCacheRefresh:function(){return $t().memoizedState=k2.bind(null,De)},useEffectEvent:function(e){var t=$t(),n={impl:e};return t.memoizedState=n,function(){if((Ze&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Cg={readContext:zt,use:mo,useCallback:gg,useContext:zt,useEffect:xf,useImperativeHandle:pg,useInsertionEffect:fg,useLayoutEffect:dg,useMemo:mg,useReducer:xo,useRef:og,useState:function(){return xo(xl)},useDebugValue:yf,useDeferredValue:function(e,t){var n=ht();return xg(n,tt.memoizedState,e,t)},useTransition:function(){var e=xo(xl)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:$0,useId:Sg,useHostTransitionStatus:Sf,useFormState:rg,useActionState:rg,useOptimistic:function(e,t){var n=ht();return P0(n,tt,e,t)},useMemoCache:df,useCacheRefresh:jg,useEffectEvent:cg},Y2={readContext:zt,use:mo,useCallback:gg,useContext:zt,useEffect:xf,useImperativeHandle:pg,useInsertionEffect:fg,useLayoutEffect:dg,useMemo:mg,useReducer:pf,useRef:og,useState:function(){return pf(xl)},useDebugValue:yf,useDeferredValue:function(e,t){var n=ht();return tt===null?bf(n,e,t):xg(n,tt.memoizedState,e,t)},useTransition:function(){var e=pf(xl)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:$0,useId:Sg,useHostTransitionStatus:Sf,useFormState:sg,useActionState:sg,useOptimistic:function(e,t){var n=ht();return tt!==null?P0(n,tt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:df,useCacheRefresh:jg,useEffectEvent:cg};function Ef(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Tf={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=pn(),i=Ll(a);i.payload=t,n!=null&&(i.callback=n),t=Ul(e,i,a),t!==null&&(nn(t,e,a),Ci(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=pn(),i=Ll(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ul(e,i,a),t!==null&&(nn(t,e,a),Ci(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pn(),a=Ll(n);a.tag=2,t!=null&&(a.callback=t),t=Ul(e,a,n),t!==null&&(nn(t,e,n),Ci(t,e,n))}};function Ag(e,t,n,a,i,o,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,p):t.prototype&&t.prototype.isPureReactComponent?!bi(n,a)||!bi(i,o):!0}function Rg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Tf.enqueueReplaceState(t,t.state,null)}function Aa(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function _g(e){Zs(e)}function Ng(e){console.error(e)}function Mg(e){Zs(e)}function jo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Dg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function wf(e,t,n){return n=Ll(n),n.tag=3,n.payload={element:null},n.callback=function(){jo(e,t)},n}function zg(e){return e=Ll(e),e.tag=3,e}function Bg(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){Dg(t,n,a)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Dg(t,n,a),typeof i!="function"&&(Ql===null?Ql=new Set([this]):Ql.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function F2(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&va(t,n,i,!0),n=Bt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ft===null?Fo():n.alternate===null&&dt===0&&(dt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===so?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ud(e,a,i)),!1;case 22:return n.flags|=65536,a===so?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ud(e,a,i)),!1}throw Error(c(435,n.tag))}return ud(e,a,i),Fo(),!1}if(qe)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Vc&&(e=Error(c(422),{cause:a}),ji(bn(e,n)))):(a!==Vc&&(t=Error(c(423),{cause:a}),ji(bn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=bn(a,n),i=wf(e.stateNode,a,i),ef(e,i),dt!==4&&(dt=2)),!1;var o=Error(c(520),{cause:a});if(o=bn(o,n),Gi===null?Gi=[o]:Gi.push(o),dt!==4&&(dt=2),t===null)return!0;a=bn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=wf(n.stateNode,a,e),ef(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ql===null||!Ql.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=zg(i),Bg(i,e,n,a),ef(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Of=Error(c(461)),xt=!1;function jt(e,t,n,a){t.child=e===null?q0(t,null,n,a):Oa(t,e.child,n,a)}function Lg(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var p={};for(var y in a)y!=="ref"&&(p[y]=a[y])}else p=a;return Sa(t),a=of(e,t,n,p,o,i),y=uf(),e!==null&&!xt?(cf(e,t,i),yl(e,t,i)):(qe&&y&&eo(t),t.flags|=1,jt(e,t,a,i),t.child)}function Ug(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!kc(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Hg(e,t,o,a,i)):(e=Ps(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!zf(e,i)){var p=o.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(p,a)&&e.ref===t.ref)return yl(e,t,i)}return t.flags|=1,e=dl(o,a),e.ref=t.ref,e.return=t,t.child=e}function Hg(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(bi(o,a)&&e.ref===t.ref)if(xt=!1,t.pendingProps=a=o,zf(e,i))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,yl(e,t,i)}return Cf(e,t,n,a,i)}function qg(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return kg(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ro(t,o!==null?o.cachePool:null),o!==null?Y0(t,o):nf(),F0(t);else return a=t.lanes=536870912,kg(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(ro(t,o.cachePool),Y0(t,o),kl(),t.memoizedState=null):(e!==null&&ro(t,null),nf(),kl());return jt(e,t,i,n),t.child}function zi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kg(e,t,n,a,i){var o=Ic();return o=o===null?null:{parent:gt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&ro(t,null),nf(),F0(t),e!==null&&va(e,t,a,!0),t.childLanes=i,null}function Eo(e,t){return t=To({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gg(e,t,n){return Oa(t,e.child,null,n),e=Eo(t,t.pendingProps),e.flags|=2,cn(t),t.memoizedState=null,e}function V2(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(a.mode==="hidden")return e=Eo(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},zi(null,e);if(af(t),(e=lt)?(e=hx(e,jn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:Xn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=T0(e),n.return=t,t.child=n,At=t,lt=null)):e=null,e===null)throw Ml(t);return t.lanes=536870912,null}return Eo(t,a)}var o=e.memoizedState;if(o!==null){var p=o.dehydrated;if(af(t),i)if(t.flags&256)t.flags&=-257,t=Gg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(xt||va(e,t,n,!1),i=(n&e.childLanes)!==0,xt||i){if(Hl.current===null){if(a=nt,a!==null&&(p=Cp(a,n),p!==0&&p!==o.retryLane))throw o.retryLane=p,ma(e,p),nn(a,e,p),Of;Fo()}t=Gg(e,t,n)}else e=o.treeContext,lt=Tn(p.nextSibling),At=t,qe=!0,Nl=null,jn=!1,e!==null&&C0(t,e),t=Eo(t,a),t.flags|=134221824;return t}return e=dl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Cf(e,t,n,a,i){return Sa(t),n=of(e,t,n,a,void 0,i),a=uf(),e!==null&&!xt?(cf(e,t,i),yl(e,t,i)):(qe&&a&&eo(t),t.flags|=1,jt(e,t,n,i),t.child)}function Yg(e,t,n,a,i,o){return Sa(t),t.updateQueue=null,n=Q0(t,a,n,i),V0(e),a=uf(),e!==null&&!xt?(cf(e,t,o),yl(e,t,o)):(qe&&a&&eo(t),t.flags|=1,jt(e,t,n,o),t.child)}function Fg(e,t,n,a,i){if(Sa(t),t.stateNode===null){var o=or,p=n.contextType;typeof p=="object"&&p!==null&&(o=zt(p)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Tf,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Pc(t),p=n.contextType,o.context=typeof p=="object"&&p!==null?zt(p):or,o.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Ef(t,n,p,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(p=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),p!==o.state&&Tf.enqueueReplaceState(o,o.state,null),Ri(t,a,o,i),Ai(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var y=t.memoizedProps,C=Aa(n,y);o.props=C;var k=o.context,le=n.contextType;p=or,typeof le=="object"&&le!==null&&(p=zt(le));var ue=n.getDerivedStateFromProps;le=typeof ue=="function"||typeof o.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,le||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(y||k!==p)&&Rg(t,o,a,p),Bl=!1;var H=t.memoizedState;o.state=H,Ri(t,a,o,i),Ai(),k=t.memoizedState,y||H!==k||Bl?(typeof ue=="function"&&(Ef(t,n,ue,a),k=t.memoizedState),(C=Bl||Ag(t,n,C,a,H,k,p))?(le||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),o.props=a,o.state=k,o.context=p,a=C):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Wc(e,t),p=t.memoizedProps,le=Aa(n,p),o.props=le,ue=t.pendingProps,H=o.context,k=n.contextType,C=or,typeof k=="object"&&k!==null&&(C=zt(k)),y=n.getDerivedStateFromProps,(k=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(p!==ue||H!==C)&&Rg(t,o,a,C),Bl=!1,H=t.memoizedState,o.state=H,Ri(t,a,o,i),Ai();var W=t.memoizedState;p!==ue||H!==W||Bl||e!==null&&e.dependencies!==null&&lo(e.dependencies)?(typeof y=="function"&&(Ef(t,n,y,a),W=t.memoizedState),(le=Bl||Ag(t,n,le,a,H,W,C)||e!==null&&e.dependencies!==null&&lo(e.dependencies))?(k||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,W,C),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,W,C)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=W),o.props=a,o.state=W,o.context=C,a=le):(typeof o.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,yr(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=Oa(t,e.child,null,i),t.child=Oa(t,null,n,i)):jt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=yl(e,t,i),e}function Vg(e,t,n,a){return ya(),t.flags|=256,jt(e,t,n,a),t.child}var Af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rf(e){return{baseLanes:e,cachePool:D0()}}function _f(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=hn),e}function Qg(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,p;if((p=o)||(p=e!==null&&e.memoizedState===null?!1:(Lt.current&2)!==0),p&&(i=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(i?ql(t):kl(),(e=lt)?(e=hx(e,jn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:Xn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=T0(e),n.return=t,t.child=n,At=t,lt=null)):e=null,e===null)throw Ml(t);return Rd(e)?t.lanes=32:t.lanes=536870912,null}return o=a.children,a=a.fallback,i?(kl(),i=t.mode,o=To({mode:"hidden",children:o},i),a=xa(a,i,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=Rf(n),a.childLanes=_f(e,p,n),t.memoizedState=Af,zi(null,a)):(ql(t),Nf(t,o))}var y=e.memoizedState;if(y!==null){var C=y.dehydrated;if(C!==null)return Q2(e,t,o,p,a,C,y,n)}return i?(kl(),i=a.fallback,o=t.mode,y=e.child,C=y.sibling,a=dl(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&1206910976,C!==null?i=dl(C,i):(i=xa(i,o,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,zi(null,a),a=t.child,i=e.child.memoizedState,i===null?i=Rf(n):(o=i.cachePool,o!==null?(y=gt._currentValue,o=o.parent!==y?{parent:y,pool:y}:o):o=D0(),i={baseLanes:i.baseLanes|n,cachePool:o}),a.memoizedState=i,a.childLanes=_f(e,p,n),t.memoizedState=Af,zi(e.child,a)):(ql(t),n=e.child,e=n.sibling,n=dl(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Nf(e,t){return t=To({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function To(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function wo(e,t,n){return Oa(t,e.child,null,n),e=Nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q2(e,t,n,a,i,o,p,y){if(n)return t.flags&256?(ql(t),t.flags&=-257,wo(e,t,y)):t.memoizedState!==null?(kl(),t.child=e.child,t.flags|=128,null):(kl(),o=i.fallback,p=t.mode,i=To({mode:"visible",children:i.children},p),o=xa(o,p,y,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,Oa(t,e.child,null,y),i=t.child,i.memoizedState=Rf(y),i.childLanes=_f(e,a,y),t.memoizedState=Af,zi(null,i));if(ql(t),Rd(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var C=a.dgst;return a=C,a!==""&&(i=Error(c(419)),i.stack="",i.digest=a,ji({value:i,source:null,stack:null})),wo(e,t,y)}if(xt||va(e,t,y,!1),a=(y&e.childLanes)!==0,xt||a){if(Hl.current!==null)return wo(e,t,y);if(a=nt,a!==null&&(i=Cp(a,y),i!==0&&i!==p.retryLane))throw p.retryLane=i,ma(e,i),nn(a,e,i),Of;return Ad(o)||Fo(),wo(e,t,y)}return Ad(o)?(t.flags|=192,t.child=e.child,null):(e=p.treeContext,lt=Tn(o.nextSibling),At=t,qe=!0,Nl=null,jn=!1,e!==null&&C0(t,e),t=Nf(t,i.children),t.flags|=134221824,t)}function $g(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),no(e.return,t,n)}function Xg(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&fo(n)===null&&(t=e),e=e.sibling}return t}function Oo(e,t,n,a,i,o){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=n,p.tailMode=i,p.treeForkCount=o)}function Mf(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Df(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var p=Lt.current;if(t.flags&128)return _i(t,p),null;var y=(p&2)!==0;if(y?(p=p&1|2,t.flags|=128):p&=1,_i(t,p),i==="backwards"&&e!==null?(Mf(e),jt(e,t,a,n),Mf(e)):jt(e,t,a,n),a=qe?Si:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$g(e,n,t);else if(e.tag===19)$g(e,n,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}switch(i){case"backwards":n=Xg(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,Mf(t)),Oo(t,!0,i,null,o,a);break;case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,o,a);break;case"together":Oo(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=Xg(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(t,!1,i,n,o,a)}return t.child}function Zg(e,t,n){var a=t.pendingProps;return Dl(t,t.type,a.value),jt(e,t,a.children,n),t.child}function yl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(va(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=dl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lo(e)))}function $2(e,t,n){switch(t.tag){case 3:Mt(t,t.stateNode.containerInfo),Dl(t,gt,e.memoizedState.cache),ya();break;case 27:case 5:rt(t);break;case 4:Mt(t,t.stateNode.containerInfo);break;case 10:Dl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,af(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return ql(t),t.flags|=128,null;a=va(e,t,n,!1);var i=t.child.childLanes;return a||(n&i)!==0?Qg(e,t,n):(ql(t),e=yl(e,t,n),e!==null?e.sibling:null)}ql(t);break;case 19:if(t.flags&128)return Df(e,t,n);if(i=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(va(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Df(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_i(t,Lt.current),a)break;return null;case 22:return t.lanes=0,qg(e,t,n,t.pendingProps);case 24:Dl(t,gt,e.memoizedState.cache)}return yl(e,t,n)}function Kg(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!zf(e,n)&&(t.flags&128)===0)return xt=!1,$2(e,t,n);xt=(e.flags&131072)!==0}else xt=!1,qe&&(t.flags&1048576)!==0&&O0(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e=="function")kc(e)?(a=Aa(e,a),t.tag=1,t=Fg(null,t,e,a,n)):(t.tag=0,t=Cf(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===U){t.tag=11,t=Lg(null,t,e,a,n);break e}else if(i===Se){t.tag=14,t=Ug(null,t,e,a,n);break e}else if(i===te){t.tag=10,t.type=e,t=Zg(null,t,n);break e}}throw t=ae(e)||e,Error(c(306,t,""))}}return t;case 0:return Cf(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=Aa(a,t.pendingProps),Fg(e,t,a,i,n);case 3:e:{if(Mt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,Wc(e,t),Ri(t,a,null,n);var p=t.memoizedState;if(a=p.cache,Dl(t,gt,a),a!==o.cache&&Xc(t,[gt],n,!0),Ai(),a=p.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Vg(e,t,a,n);break e}else if(a!==i){i=bn(Error(c(424)),t),ji(i),t=Vg(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(lt=Tn(e.firstChild),At=t,qe=!0,Nl=null,jn=!0,n=q0(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ya(),a===i){t=yl(e,t,n);break e}jt(e,t,a,n)}t=t.child}return t;case 26:return yr(e,t),e===null?(n=vx(t.type,null,t.pendingProps,null))?t.memoizedState=n:qe||(t.stateNode=Wm(t.type,t.pendingProps,It.current,t)):t.memoizedState=vx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rt(t),e===null&&qe&&(a=t.stateNode=mx(t.type,t.pendingProps,It.current),At=t,jn=!0,i=lt,Zl(t.type)?(_d=i,lt=Tn(a.firstChild)):lt=i),jt(e,t,t.pendingProps.children,n),yr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((i=a=lt)&&(a=k5(a,t.type,t.pendingProps,jn),a!==null?(t.stateNode=a,At=t,lt=Tn(a.firstChild),jn=!1,i=!0):i=!1),i||Ml(t)),rt(t),i=t.type,o=t.pendingProps,p=e!==null?e.memoizedProps:null,a=o.children,Sd(i,o)?a=null:p!==null&&Sd(i,p)&&(t.flags|=32),t.memoizedState!==null&&(i=of(e,t,B2,null,null,n),Lr._currentValue=i),yr(e,t),jt(e,t,a,n),t.child;case 6:return e===null&&qe&&((e=n=lt)&&(n=G5(n,t.pendingProps,jn),n!==null?(t.stateNode=n,At=t,lt=null,e=!0):e=!1),e||Ml(t)),null;case 13:return Qg(e,t,n);case 4:return Mt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Oa(t,null,a,n):jt(e,t,a,n),t.child;case 11:return Lg(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,yr(e,t),jt(e,t,a,n),t.child;case 8:return jt(e,t,t.pendingProps.children,n),t.child;case 12:return jt(e,t,t.pendingProps.children,n),t.child;case 10:return Zg(e,t,n);case 9:return i=t.type._context,a=t.pendingProps.children,Sa(t),i=zt(i),a=a(i),t.flags|=1,jt(e,t,a,n),t.child;case 14:return Ug(e,t,t.type,t.pendingProps,n);case 15:return Hg(e,t,t.type,t.pendingProps,n);case 19:return Df(e,t,n);case 31:return V2(e,t,n);case 22:return qg(e,t,n,t.pendingProps);case 24:return Sa(t),a=zt(gt),e===null?(i=Ic(),i===null&&(i=nt,o=Zc(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},Pc(t),Dl(t,gt,i)):((e.lanes&n)!==0&&(Wc(e,t),Ri(t,null,null,n),Ai()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Dl(t,gt,a)):(a=o.cache,Dl(t,gt,a),a!==i.cache&&Xc(t,[gt],n,!0))),jt(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:qe&&eo(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:yr(e,t),jt(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function bl(e){e.flags|=4}function Bf(e,t,n,a,i){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Tx(t,a):Tx(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(_m())e.flags|=8192;else throw wa=so,Jc}else e.flags&=-16777217}function Ig(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wx(t))if(_m())e.flags|=8192;else throw wa=so,Jc}function Co(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tp():536870912,e.lanes|=t,Er|=t)}function Bi(e,t){if(!qe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&1206910976,a|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function X2(e,t,n){var a=t.pendingProps;switch(Fc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),gl(gt),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fr(t)?bl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qc())),at(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(bl(t),o!==null?(at(t),Ig(t,o)):(at(t),Bf(t,i,null,a,n))):o?o!==e.memoizedState?(bl(t),at(t),Ig(t,o)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&bl(t),at(t),Bf(t,i,e,a,n)),null;case 27:if(Dn(t),n=It.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return at(t),t.subtreeFlags&=-33554433,null}e=$e.current,fr(t)?A0(t):(e=mx(i,a,n),t.stateNode=e,bl(t))}return at(t),t.subtreeFlags&=-33554433,null;case 5:if(Dn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return at(t),t.subtreeFlags&=-33554433,null}if(o=$e.current,fr(t))A0(t);else{var p=$i(It.current);switch(o){case 1:o=p.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=p.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=p.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?p.createElement("select",{is:a.is}):p.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?p.createElement(i,{is:a.is}):p.createElement(i)}}o[Dt]=t,o[Jt]=a;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)o.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=o;e:switch(Ht(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&bl(t)}}return at(t),t.subtreeFlags&=-33554433,Bf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=It.current,fr(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=At,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Dt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Km(e.nodeValue,n)),e||Ml(t,!0)}else e=$i(e).createTextNode(a),e[Dt]=t,t.stateNode=e}return at(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=fr(t),n!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Dt]=t}else ya(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else n=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(cn(t),t):(cn(t),null);if((t.flags&128)!==0)throw Error(c(558))}return at(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=fr(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[Dt]=t}else ya(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),i=!1}else i=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(cn(t),t):(cn(t),null)}return cn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Co(t,t.updateQueue),at(t),null);case 4:return _e(),e===null&&md(t.stateNode.containerInfo),t.flags|=67108864,at(t),null;case 10:return gl(t.type),at(t),null;case 19:if(rf(t),a=t.memoizedState,a===null)return at(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)Bi(a,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Bi(a,!1),e=o.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)E0(n,e),n=n.sibling;return _i(t,Lt.current&1|2),qe&&hl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&an()>qo&&(t.flags|=128,i=!0,Bi(a,!1),t.lanes=4194304)}else{if(!i)if(e=fo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),Bi(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!o.alternate&&!qe)return at(t),null}else 2*an()-a.renderingStartTime>qo&&n!==536870912&&(t.flags|=128,i=!0,Bi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=an(),e.sibling=null,o=Lt.current,o=i?o&1|2:o&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||qe?_i(t,o):(n=o,ye(Bt,t),ye(Lt,n),Ft===null&&(Ft=t)),qe&&hl(t,a.treeForkCount),e}return at(t),null;case 22:case 23:return cn(t),lf(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),n=t.updateQueue,n!==null&&Co(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&He(Ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gl(gt),at(t),null;case 25:return null;case 30:return t.flags|=33554432,at(t),null}throw Error(c(156,t.tag))}function Z2(e,t){switch(Fc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gl(gt),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dn(t),null;case 31:if(t.memoizedState!==null){if(cn(t),t.alternate===null)throw Error(c(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rf(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return _e(),null;case 10:return gl(t.type),null;case 22:case 23:return cn(t),lf(),e!==null&&He(Ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gl(gt),null;case 25:return null;default:return null}}function Jg(e,t){switch(Fc(t),t.tag){case 3:gl(gt),_e();break;case 26:case 27:case 5:Dn(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&cn(t);break;case 13:cn(t);break;case 19:rf(t);break;case 10:gl(t.type);break;case 22:case 23:cn(t),lf(),e!==null&&He(Ea);break;case 24:gl(gt)}}function Li(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,p=n.inst;a=o(),p.destroy=a}n=n.next}while(n!==i)}}catch(y){Pe(t,t.return,y)}}function Gl(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var p=a.inst,y=p.destroy;if(y!==void 0){p.destroy=void 0,i=t;var C=n,k=y;try{k()}catch(le){Pe(i,C,le)}}}a=a.next}while(a!==o)}}catch(le){Pe(t,t.return,le)}}function Pg(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{G0(t,n)}catch(a){Pe(e,e.return,a)}}}function Wg(e,t,n){n.props=Aa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Pe(e,t,a)}}function Kn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var i=e.stateNode,o=cl(e.memoizedProps,i);(i.ref===null||i.ref.name!==o)&&(i.ref=ix(o)),a=i.ref;break;case 7:if(e.stateNode===null){var p=new gn(e);x(e.child,!1,H5,p,void 0,void 0),e.stateNode=p}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(y){Pe(e,t,y)}}function Ut(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Pe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Pe(e,t,i)}else n.current=null}function Ao(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)dx(e.stateNode,t[n])}function em(e){for(var t=e.return;t!==null&&(Uf(t)&&dx(e.stateNode,t.stateNode),!Lf(t));)t=t.return}function Ui(e){for(var t=e.return;t!==null&&(Uf(t)&&q5(e.stateNode,t.stateNode),!Lf(t));)t=t.return}function Lf(e){return e.tag===5||e.tag===3||e.tag===27}function Uf(e){return e&&e.tag===7&&e.stateNode!==null}function Hf(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Pe(e,e.return,i)}}function qf(e,t,n){try{var a=e.stateNode;v5(a,e.type,n,t),a[Jt]=t}catch(i){Pe(e,e.return,i)}}function tm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zl(e.type)||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(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.tag===27&&Zl(e.type)||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 Gf(e,t,n,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$n)),Ao(e,a),Xe=!0;else if(i!==4&&(i===27&&(Ao(e,a),a=null,Zl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Gf(e,t,n,a),e=e.sibling;e!==null;)Gf(e,t,n,a),e=e.sibling}function Ro(e,t,n,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ao(e,a),Xe=!0;else if(i!==4&&(i===27&&(Ao(e,a),a=null,Zl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ro(e,t,n,a),e=e.sibling;e!==null;)Ro(e,t,n,a),e=e.sibling}function nm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ht(t,a,n),t[Dt]=e,t[Jt]=n}catch(o){Pe(e,e.return,o)}}var _o=!1,fn=null;function lm(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(_o=!0)}var In=null;function am(){var e=In;return In=null,e}var Wt=0;function br(e,t,n,a,i){return Wt=0,rm(e.child,t,n,a,i)}function rm(e,t,n,a,i){for(var o=!1;e!==null;){if(e.tag===5){var p=e.stateNode;if(a!==null){var y=Td(p);a.push(y),y.view&&(o=!0)}else o||Td(p).view&&(o=!0);_o=!0,ax(p,Wt===0?t:t+"_"+Wt,n),Wt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||rm(e.child,t,n,a,i)&&(o=!0));e=e.sibling}return o}function Jn(e,t){for(;e!==null;)e.tag===5?rx(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Jn(e.child,t)),e=e.sibling}function No(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(No(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(c(544));var n=t.name;t=fl(t.default,t.share),t!=="none"&&(br(e,n,t,null,!1)||Jn(e.child,!1))}e=e.sibling}}function Yf(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,i=cl(a,n),o=fl(a.default,n.paired?a.share:a.enter);o!=="none"?br(e,i,o,null,!1)?(No(e),n.paired||t||Cr(e,a.onEnter)):Jn(e.child,!1):No(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Yf(e,t),e=e.sibling;else No(e)}function Ff(e){if(fn!==null&&fn.size!==0){var t=fn;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var i=t.get(a);if(i!==void 0){var o=fl(n.default,n.share);if(o!=="none"&&(br(e,a,o,null,!1)?(o=e.stateNode,i.paired=o,o.paired=i,Cr(e,n.onShare)):Jn(e.child,!1)),t.delete(a),t.size===0)break}}}Ff(e)}e=e.sibling}}}function Vf(e){if(e.tag===30){var t=e.memoizedProps,n=cl(t,e.stateNode),a=fn!==null?fn.get(n):void 0,i=fl(t.default,a!==void 0?t.share:t.exit);i!=="none"&&(br(e,n,i,null,!1)?a!==void 0?(i=e.stateNode,a.paired=i,i.paired=a,fn.delete(n),Cr(e,t.onShare)):Cr(e,t.onExit):Jn(e.child,!1)),fn!==null&&Ff(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Vf(e),e=e.sibling;else fn!==null&&Ff(e)}function im(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=cl(t,e.stateNode);t=fl(t.default,t.update),e.flags&=-5,t!=="none"&&br(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&im(e);e=e.sibling}}function Qf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Jn(e.child,!1))}Qf(e)}e=e.sibling}}function Mo(e){if(e.tag===30)e.stateNode.paired=null,Jn(e.child,!1),Qf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Mo(e),e=e.sibling;else Qf(e)}function sm(e){for(e=e.child;e!==null;)e.tag===30?Jn(e.child,!1):(e.subtreeFlags&33554432)!==0&&sm(e),e=e.sibling}function $f(e,t,n,a,i,o,p){for(var y=!1;t!==null;){if(t.tag===5){var C=t.stateNode;if(o!==null&&Wt<o.length){var k=o[Wt],le=Td(C);(k.view||le.view)&&(y=!0);var ue;if(ue=(e.flags&4)===0)if(le.clip)ue=!0;else{ue=k.rect;var H=le.rect;ue=ue.y!==H.y||ue.x!==H.x||ue.height!==H.height||ue.width!==H.width}ue&&(e.flags|=4),le.abs?le=!k.abs:(k=k.rect,le=le.rect,le=k.height!==le.height||k.width!==le.width),le&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&ax(C,Wt===0?n:n+"_"+Wt,i),y&&(e.flags&4)!==0||(In===null&&(In=[]),In.push(C,Wt===0?a:a+"_"+Wt,t.memoizedProps)),Wt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&p?e.flags|=t.flags&32:$f(e,t.child,n,a,i,o,p)&&(y=!0));t=t.sibling}return y}function om(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,i=cl(n,a),o=fl(n.default,n.update),p;p=e.memoizedState,e.memoizedState=null,a=e;var y=e.child;Wt=0,i=$f(a,y,i,i,o,p,!1),(e.flags&4)!==0&&i&&Cr(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&om(e);e=e.sibling}}var Rt=!1,Ie=!1,Pn=!1,Xf=!1,um=typeof WeakSet=="function"?WeakSet:Set,_t=null,Wn=!1,Hi=!1,Do=!1,Zf=!1;function K2(e,t,n){if(e=e.containerInfo,bd=Ur,e=h0(e),Dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,p=i.focusNode;i=i.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var y=0,C=-1,k=-1,le=0,ue=0,H=e,W=null;t:for(;;){for(var be;H!==a||o!==0&&H.nodeType!==3||(C=y+o),H!==p||i!==0&&H.nodeType!==3||(k=y+i),H.nodeType===3&&(y+=H.nodeValue.length),(be=H.firstChild)!==null;)W=H,H=be;for(;;){if(H===e)break t;if(W===a&&++le===o&&(C=y),W===p&&++ue===i&&(k=y),(be=H.nextSibling)!==null)break;H=W,W=H.parentNode}H=be}a=C===-1||k===-1?null:{start:C,end:k}}else a=null}a=a||{start:0,end:0}}else a=null;for(vd={focusedElem:e,selectionRange:a},Ur=!1,n=(n&335544064)===n,_t=t,t=n?9270:1024;_t!==null;){if(e=_t,n&&(a=e.deletions,a!==null))for(o=0;o<a.length;o++)n&&Vf(a[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&lm(e),zo(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&Vf(a),zo(n);continue}else if(a!==null&&a.memoizedState!==null){n&&lm(e),zo(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,_t=a):(n&&im(e),zo(n))}}fn=null}function zo(e){for(;_t!==null;){var t=_t,n=e,a=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&a!==null){n=void 0,i=a.memoizedProps,a=a.memoizedState;var o=t.stateNode;try{var p=Aa(t.type,i);n=o.getSnapshotBeforeUpdate(p,a),o.__reactInternalSnapshotBeforeUpdate=n}catch(y){Pe(t,t.return,y)}}break;case 3:if((i&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)Cd(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Cd(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=cl(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=fl(i.default,i.update),i!=="none"&&br(a,n,i,a.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(a=t.sibling,a!==null){a.return=t.return,_t=a;break}_t=t.return}}function cm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:el(e,n),a&4&&Li(5,n);break;case 1:if(el(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Pe(n,n.return,p)}else{var i=Aa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Pe(n,n.return,p)}}a&64&&Pg(n),a&512&&Kn(n,n.return);break;case 3:if(el(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{G0(e,t)}catch(p){Pe(n,n.return,p)}}break;case 27:t===null&&a&4&&nm(n);case 26:case 5:el(e,n),t===null&&a&4&&Hf(n),a&512&&Kn(n,n.return);break;case 12:el(e,n);break;case 31:el(e,n),a&4&&pm(e,n);break;case 13:el(e,n),a&4&&gm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=s5.bind(null,n),Y5(e,n))));break;case 22:if(a=n.memoizedState!==null||Rt,!a){var o=t!==null&&t.memoizedState!==null||Ie;t=Rt,i=Ie,Rt=a,(Ie=o)&&!i?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),Hn(e,n,a)):el(e,n),Rt=t,Ie=i}break;case 30:el(e,n),a&512&&Kn(n,n.return);break;case 7:a&512&&Kn(n,n.return);default:el(e,n)}}function Kf(e,t){for(e=e.child;e!==null;)fm(e,t),e=e.sibling}function fm(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var i=e.stateNode,o=e.memoizedProps.style,p=o!=null&&o.hasOwnProperty("display")?o.display:null;i.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(C){Pe(e,e.return,C)}If(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Xe=!0}catch(C){Pe(e,e.return,C)}break;case 18:try{var y=e.stateNode;t?lx(y,!0):lx(e.stateNode,!1)}catch(C){Pe(e,e.return,C)}break;case 22:case 23:e.memoizedState===null&&Kf(e,t);break;default:Kf(e,t)}}function If(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:fm(n,a);break e;case 22:n.memoizedState===null&&If(n,a);break e;default:If(n,a)}}e=e.sibling}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Hs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ot=null,en=!1;function Ln(e,t,n){for(n=n.child;n!==null;)hm(e,t,n),n=n.sibling}function hm(e,t,n){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 26:Ie||Ut(n,t),Ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ie&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ie||Ut(n,t),Ui(n);var a=ot,i=en;Zl(n.type)&&(ot=n.stateNode,en=!1),Ln(e,t,n),xx(n.stateNode,n.type,n.memoizedProps),ot=a,en=i;break;case 5:Ie||Ut(n,t),Ui(n);case 6:if(n.tag===6&&Ui(n),a=ot,i=en,ot=null,Ln(e,t,n),ot=a,en=i,ot!==null)if(en)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(n.stateNode),Xe=!0}catch(o){Pe(n,t,o)}else try{ot.removeChild(n.stateNode),Xe=!0}catch(o){Pe(n,t,o)}break;case 18:ot!==null&&(en?(e=ot,nx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Hr(e)):nx(ot,n.stateNode));break;case 4:a=ot,i=en,ot=n.stateNode.containerInfo,en=!0,Ln(e,t,n),ot=a,en=i;break;case 0:case 11:case 14:case 15:Gl(2,n,t),Ie||Gl(4,n,t),Ln(e,t,n);break;case 1:Ie||(Ut(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Wg(n,t,a)),Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:Ie=(a=Ie)||n.memoizedState!==null,Ln(e,t,n),Ie=a;break;case 30:Ut(n,t),Ln(e,t,n);break;case 7:Ie||Ut(n,t),Ln(e,t,n);break;default:Ln(e,t,n)}}function pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hr(e)}catch(n){Pe(t,t.return,n)}}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hr(e)}catch(n){Pe(t,t.return,n)}}function I2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new um),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new um),t;default:throw Error(c(435,e.tag))}}function Bo(e,t){var n=I2(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=o5.bind(null,e,a);a.then(i,i)}})}function Xt(e,t,n){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],p=e,y=t,C=y;e:for(;C!==null;){switch(C.tag){case 27:if(Zl(C.type)){ot=C.stateNode,en=!1;break e}break;case 5:ot=C.stateNode,en=!1;break e;case 3:case 4:ot=C.stateNode.containerInfo,en=!0;break e}C=C.return}if(ot===null)throw Error(c(160));hm(p,y,o),ot=null,en=!1,p=o.alternate,p!==null&&(p.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)mm(t,e,n),t=t.sibling}var Un=null;function mm(e,t,n){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var o=0;o<a.length;o++){var p=a[o];p.ref.impl=p.nextImpl}Xt(t,e,n),Zt(e),i&4&&(Gl(3,e,e.return),Li(3,e),Gl(5,e,e.return));break;case 1:Xt(t,e,n),Zt(e),i&512&&(Ie||a===null||Ut(a,a.return)),i&64&&Rt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Un,Xt(t,e,n),Zt(e),i&512&&(Ie||a===null||Ut(a,a.return)),i&4)if(i=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(Rt)e.stateNode=Wm(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,i=o.ownerDocument||o;t:switch(t){case"title":a=i.getElementsByTagName("title")[0],(!a||a[ci]||a[Dt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(t),i.head.insertBefore(a,i.querySelector("head > title"))),Ht(a,t,n),a[Dt]=e,Ct(a),t=a;break e;case"link":if(o=Ex("link","href",i).get(t+(n.href||""))){for(p=0;p<o.length;p++)if(a=o[p],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(p,1);break t}}a=i.createElement(t),Ht(a,t,n),i.head.appendChild(a);break;case"meta":if(o=Ex("meta","content",i).get(t+(n.content||""))){for(p=0;p<o.length;p++)if(a=o[p],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(p,1);break t}}a=i.createElement(t),Ht(a,t,n),i.head.appendChild(a);break;default:throw Error(c(468,t))}a[Dt]=e,Ct(a),t=a}e.stateNode=t}else Rt||zd(o,e.type,e.stateNode);else e.stateNode=jx(o,n,e.memoizedProps);else i!==n?(i===null?(t=a.stateNode,t===null||Ie||t.parentNode.removeChild(t)):i.count--,n===null?Rt||zd(o,e.type,e.stateNode):jx(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&qf(e,e.memoizedProps,a.memoizedProps);break;case 27:Xt(t,e,n),Zt(e),i&512&&(Ie||a===null||Ut(a,a.return)),a!==null&&i&4&&qf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(o=Pn,Pn=!1,Xt(t,e,n),Pn=o,Zt(e),i&512&&(Ie||a===null||Ut(a,a.return)),e.flags&32){t=e.stateNode;try{tr(t,""),Xe=!0}catch(le){Pe(e,e.return,le)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,qf(e,t,a!==null?a.memoizedProps:t)),i&1024&&(Xf=!0);break;case 6:if(Xt(t,e,n),Zt(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Xe=!0}catch(le){Pe(e,e.return,le)}}break;case 3:if(Xe=!1,Io=null,o=Un,Un=Xi(t.containerInfo),Xt(t,e,n),Un=o,Zt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(le){Pe(e,e.return,le)}Xf&&(Xf=!1,xm(e)),Xe=!1;break;case 4:i=Pn,Pn=Rt,a=Up(),o=Un,Un=Xi(e.stateNode.containerInfo),Xt(t,e,n),Zt(e),Un=o,Xe&&Hi&&(Do=!0),Xe=a,Pn=i;break;case 12:Xt(t,e,n),Zt(e);break;case 31:Xt(t,e,n),Zt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Bo(e,t)));break;case 13:Xt(t,e,n),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ho=an()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Bo(e,t)));break;case 22:o=e.memoizedState!==null,p=a!==null&&a.memoizedState!==null;var y=Rt,C=Ie,k=Pn;Rt=y||o,Pn=k||o,Ie=C||p,Xt(t,e,n),Ie=C,Pn=k,Rt=y,Zt(e),i&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||a===null||p||Rt||Ie||(t=p||Ie,n=Rt,a=Ie,Rt=o||Rt,Ie=t,Yl(e,2),Rt=n,Ie=a),!o&&Pn||Kf(e,o)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Bo(e,n))));break;case 19:Xt(t,e,n),Zt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Bo(e,t)));break;case 30:i&512&&(Ie||a===null||Ut(a,a.return)),i=Up(),o=Hi,p=(n&335544064)===n,y=e.memoizedProps,Hi=p&&fl(y.default,y.update)!=="none",Xt(t,e,n),Zt(e),p&&a!==null&&Xe&&(e.flags|=4),Hi=o,Xe=i;break;case 21:break;case 7:i&512&&(Ie||a===null||Ut(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:Xt(t,e,n),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(tm(a)){n=a;break}a=a.return}a=null;for(var i=e.return;i!==null;){if(Uf(i)){var o=i.stateNode;a===null?a=[o]:a.push(o)}if(Lf(i))break;i=i.return}var p=a;if(n==null)throw Error(c(160));switch(n.tag){case 27:var y=n.stateNode,C=kf(e);Ro(e,C,y,p);break;case 5:var k=n.stateNode;n.flags&32&&(tr(k,""),n.flags&=-33);var le=kf(e);Ro(e,le,k,p);break;case 3:case 4:var ue=n.stateNode.containerInfo,H=kf(e);Gf(e,H,ue,p);break;default:throw Error(c(161))}}catch(W){Pe(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ur=!0,t.reset(),Ur=!1),e=e.sibling}}function vr(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ym(t,e),t=t.sibling;else om(t)}function ym(e,t){var n=e.alternate;if(n===null)Yf(e,!1);else switch(e.tag){case 3:if(Zf=Wn=!1,am(),vr(t,e),!Wn&&!Do){if(e=In,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var i=e[a+1];rx(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Zf=!0}In=null;break;case 5:vr(t,e);break;case 4:a=Wn,Wn=!1,vr(t,e),Wn&&(Do=!0),Wn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Yf(e,!1):vr(t,e));break;case 30:a=Wn,i=am(),Wn=!1,vr(t,e),Wn&&(e.flags|=4);var o=e.memoizedProps,p=e.stateNode;t=cl(o,p),p=cl(n.memoizedProps,p);var y=fl(o.default,o.update);y==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,Wt=0,t=$f(e,n,t,p,y,o,!0),Wt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Cr(e,e.memoizedProps.onUpdate),In=i):i!==null&&(i.push.apply(i,In),In=i),Wn=(e.flags&32)!==0?!0:a;break;default:vr(t,e)}}function el(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cm(e,t.alternate,t),t=t.sibling}function Yl(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Gl(4,n,n.return),Yl(n,a);break;case 1:Ut(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Wg(n,n.return,i),Yl(n,a);break;case 27:(a&2)!==0&&xx(n.stateNode,n.type,n.memoizedProps);case 5:Ut(n,n.return),n.tag!==5&&n.tag!==27||Ui(n),Yl(n,a);break;case 6:Ui(n);break;case 26:Ut(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||Ie||i.parentNode.removeChild(i),Yl(n,a);break;case 22:n.memoizedState===null&&Yl(n,a);break;case 30:Ut(n,n.return),Yl(n,a);break;case 7:Ut(n,n.return);default:Yl(n,a)}e=e.sibling}}function Hn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,p=o.flags,y=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:Hn(i,o,n),Li(4,o);break;case 1:if(Hn(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(le){Pe(a,a.return,le)}if(a=o,i=a.updateQueue,i!==null){var C=a.stateNode;try{var k=i.shared.hiddenCallbacks;if(k!==null)for(i.shared.hiddenCallbacks=null,i=0;i<k.length;i++)k0(k[i],C)}catch(le){Pe(a,a.return,le)}}y&&p&64&&Pg(o),Kn(o,o.return);break;case 27:(n&2)!==0&&nm(o);case 5:o.tag!==5&&o.tag!==27||em(o),Hn(i,o,n),y&&a===null&&p&4&&Hf(o),Kn(o,o.return);break;case 6:em(o);break;case 26:C=o.stateNode,o.memoizedState!==null||C===null||Rt||zd(Xi(C.ownerDocument),o.type,C),Hn(i,o,n),y&&a===null&&p&4&&Hf(o),Kn(o,o.return);break;case 12:Hn(i,o,n);break;case 31:Hn(i,o,n),y&&p&4&&pm(i,o);break;case 13:Hn(i,o,n),y&&p&4&&gm(i,o);break;case 22:o.memoizedState===null&&Hn(i,o,n),Kn(o,o.return);break;case 30:Hn(i,o,n),Kn(o,o.return);break;case 7:Kn(o,o.return);default:Hn(i,o,n)}t=t.sibling}}function Jf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ei(n))}function Pf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ei(e))}function En(e,t,n,a){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)bm(e,t,n,a),t=t.sibling;else i&&sm(t)}function bm(e,t,n,a){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Mo(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:En(e,t,n,a),o&2048&&Li(9,t);break;case 1:En(e,t,n,a);break;case 3:En(e,t,n,a),i&&Zf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Ei(o)));break;case 12:if(o&2048){En(e,t,n,a),o=t.stateNode;try{var p=t.memoizedProps,y=p.id,C=p.onPostCommit;typeof C=="function"&&C(y,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(k){Pe(t,t.return,k)}}else En(e,t,n,a);break;case 31:En(e,t,n,a);break;case 13:En(e,t,n,a);break;case 23:break;case 22:p=t.stateNode,y=t.alternate,t.memoizedState!==null?(i&&y!==null&&y.memoizedState===null&&Mo(y),p._visibility&2?En(e,t,n,a):qi(e,t)):(i&&y!==null&&y.memoizedState!==null&&Mo(t),p._visibility&2?En(e,t,n,a):(p._visibility|=2,Sr(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Jf(y,t);break;case 24:En(e,t,n,a),o&2048&&Pf(t.alternate,t);break;case 30:i&&(o=t.alternate,o!==null&&(Jn(o.child,!0),Jn(t.child,!0))),En(e,t,n,a);break;default:En(e,t,n,a)}}function Sr(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,p=t,y=n,C=a,k=p.flags;switch(p.tag){case 0:case 11:case 15:Sr(o,p,y,C,i),Li(8,p);break;case 23:break;case 22:var le=p.stateNode;p.memoizedState!==null?le._visibility&2?Sr(o,p,y,C,i):qi(o,p):(le._visibility|=2,Sr(o,p,y,C,i)),i&&k&2048&&Jf(p.alternate,p);break;case 24:Sr(o,p,y,C,i),i&&k&2048&&Pf(p.alternate,p);break;default:Sr(o,p,y,C,i)}t=t.sibling}}function qi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:qi(n,a),i&2048&&Jf(a.alternate,a);break;case 24:qi(n,a),i&2048&&Pf(a.alternate,a);break;default:qi(n,a)}t=t.sibling}}var Ra=8192;function _a(e,t,n){if(e.subtreeFlags&Ra)for(e=e.child;e!==null;)vm(e,t,n),e=e.sibling}function vm(e,t,n){switch(e.tag){case 26:_a(e,t,n),e.flags&Ra&&(e.memoizedState!==null?nS(n,Un,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Cx(n,e)));break;case 5:_a(e,t,n),e.flags&Ra&&(e=e.stateNode,(t&335544128)===t&&Cx(n,e));break;case 3:case 4:var a=Un;Un=Xi(e.stateNode.containerInfo),_a(e,t,n),Un=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ra,Ra=16777216,_a(e,t,n),Ra=a):_a(e,t,n));break;case 30:if((e.flags&Ra)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var i=e.stateNode;i.paired=null,fn===null&&(fn=new Map),fn.set(a,i)}_a(e,t,n);break;default:_a(e,t,n)}}function Sm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];_t=a,Em(a,e)}Sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jm(e),e=e.sibling}function jm(e){switch(e.tag){case 0:case 11:case 15:ki(e),e.flags&2048&&Gl(9,e,e.return);break;case 3:ki(e);break;case 12:ki(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lo(e)):ki(e);break;default:ki(e)}}function Lo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];_t=a,Em(a,e)}Sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gl(8,t,t.return),Lo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Lo(t));break;default:Lo(t)}e=e.sibling}}function Em(e,t){for(;_t!==null;){var n=_t;switch(n.tag){case 0:case 11:case 15:Gl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ei(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,_t=a;else e:for(n=e;_t!==null;){a=_t;var i=a.sibling,o=a.return;if(dm(a),a===n){_t=null;break e}if(i!==null){i.return=o,_t=i;break e}_t=o}}}var J2={getCacheForType:function(e){var t=zt(gt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return zt(gt).controller.signal}},P2=typeof WeakMap=="function"?WeakMap:Map,Ze=0,nt=null,ke=null,Ye=0,Je=0,dn=null,Fl=!1,jr=!1,Wf=!1,vl=0,dt=0,Vl=0,Na=0,Uo=0,hn=0,Er=0,Gi=null,tn=null,ed=!1,Ho=0,Tm=0,qo=1/0,ko=null,Ql=null,ct=0,qn=null,Ma=null,tl=0,td=0,nd=null,wm=null,Tr=null,wr=null,Or=null,Yi=0,Go=null;function pn(){return(Ze&2)!==0&&Ye!==0?Ye&-Ye:Y.T!==null?dd():Ap()}function Om(){if(hn===0)if((Ye&536870912)===0||qe){var e=zs;zs<<=1,(zs&3932160)===0&&(zs=262144),hn=e}else hn=536870912;return e=Bt.current,e!==null&&(e.flags|=32),hn}function Cr(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=ix(cl(e.memoizedProps,n))),wr===null&&(wr=[]),wr.push(t.bind(null,a))}}function nn(e,t,n){(e===nt&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Ar(e,0),$l(e,Ye,hn,!1)),ui(e,n),((Ze&2)===0||e!==nt)&&(e===nt&&((Ze&2)===0&&(Na|=n),dt===4&&$l(e,Ye,hn,!1)),nl(e))}function Cm(e,t,n){if((Ze&6)!==0)throw Error(c(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||oi(e,t),i=a?t5(e,t):ad(e,t,!0),o=a;do{if(i===0){jr&&!a&&$l(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!W2(n)){i=ad(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var y=e;i=Gi;var C=y.current.memoizedState.isDehydrated;if(C&&(Ar(y,p).flags|=256),p=ad(y,p,!1),p!==2&&p!==6){if(Wf&&!C){y.errorRecoveryDisabledLanes|=o,Na|=o,i=4;break e}o=tn,tn=i,o!==null&&(tn===null?tn=o:tn.push.apply(tn,o))}i=p}if(o=!1,i!==2)continue}}if(i===1){Ar(e,0),$l(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:$l(a,t,hn,!Fl);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Ho+300-an(),10<i)){if($l(a,t,hn,!Fl),Ls(a,0,!0)!==0)break e;tl=t,a.timeoutHandle=Ed(Am.bind(null,a,n,tn,ko,ed,t,hn,Na,Er,Fl,o,"Throttled",-0,0),i);break e}Am(a,n,tn,ko,ed,t,hn,Na,Er,Fl,o,null,-0,0)}}break}while(!0);nl(e)}function Am(e,t,n,a,i,o,p,y,C,k,le,ue,H,W){e.timeoutHandle=-1;var be=t.subtreeFlags,we=(o&335544064)===o;if(ue=null,(we||be&8192||(be&16785408)===16785408)&&(ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$n},fn=null,vm(t,o,ue),we&&(be=ue,we=e.containerInfo,we=(we.nodeType===9?we:we.ownerDocument).__reactViewTransition,we!=null&&(be.count++,be.waitingForViewTransition=!0,be=Ii.bind(be),we.finished.then(be,be))),be=(o&62914560)===o?Ho-an():(o&4194048)===o?Tm-an():0,be=lS(ue,be),be!==null)){tl=o,e.cancelPendingCommit=be(Lm.bind(null,e,t,o,n,a,i,p,y,C,k,le,ue,null,H,W)),$l(e,o,p,!k);return}Lm(e,t,o,n,a,i,p,y,C,k,le,ue)}function W2(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!un(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $l(e,t,n,a){t=Ep(e,t),t&=~Uo,t&=~Na,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-sn(i),p=1<<o;a[o]=-1,i&=~p}n!==0&&wp(e,n,t)}function Yo(){return(Ze&6)===0?(Fi(0),!1):!0}function ld(){if(ke!==null){if(Je===0)var e=ke.return;else e=ke,pl=ba=null,ff(e),pr=null,Oi=0,e=ke;for(;e!==null;)Jg(e.alternate,e),e=e.return;ke=null}}function Ar(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,E5(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),tl=0,ld(),nt=e,ke=n=dl(e.current,null),Ye=t,Je=0,dn=null,Fl=!1,jr=oi(e,t),Wf=!1,Er=hn=Uo=Na=Vl=dt=0,tn=Gi=null,ed=!1,vl=Ep(e,t),Ks(),n}function Rm(e,t){De=null,Y.H=So,t===hr||t===io?(t=L0(),Je=3):t===Jc?(t=L0(),Je=4):Je=t===Of?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dn=t,ke===null&&(dt=1,jo(e,bn(t,e.current)))}function _m(){var e=Bt.current;return e===null?!0:(Ye&4194048)===Ye?Ft===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===Ft:!1}function Nm(){var e=Y.H;return Y.H=So,e===null?So:e}function Mm(){var e=Y.A;return Y.A=J2,e}function Fo(){dt=4,Fl||(Ye&4194048)!==Ye&&Bt.current!==null||(jr=!0),(Vl&134217727)===0&&(Na&134217727)===0||nt===null||$l(nt,Ye,hn,!1)}function ad(e,t,n){var a=Ze;Ze|=2;var i=Nm(),o=Mm();(nt!==e||Ye!==t)&&(ko=null,Ar(e,t)),t=!1;var p=dt;e:do try{if(Je!==0&&ke!==null){var y=ke,C=dn;switch(Je){case 8:ld(),p=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var k=Je;if(Je=0,dn=null,Rr(e,y,C,k),n&&jr){p=0;break e}break;default:k=Je,Je=0,dn=null,Rr(e,y,C,k)}}e5(),p=dt;break}catch(le){Rm(e,le)}while(!0);return t&&e.shellSuspendCounter++,pl=ba=null,Ze=a,Y.H=i,Y.A=o,ke===null&&(nt=null,Ye=0,Ks()),p}function e5(){for(;ke!==null;)Dm(ke)}function t5(e,t){var n=Ze;Ze|=2;var a=Nm(),i=Mm();nt!==e||Ye!==t?(ko=null,qo=an()+500,Ar(e,t)):jr=oi(e,t);e:do try{if(Je!==0&&ke!==null){t=ke;var o=dn;t:switch(Je){case 1:Je=0,dn=null,Rr(e,t,o,1);break;case 2:case 9:if(z0(o)){Je=0,dn=null,zm(t);break}t=function(){Je!==2&&Je!==9||nt!==e||(Je=7),nl(e)},o.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:z0(o)?(Je=0,dn=null,zm(t)):(Je=0,dn=null,Rr(e,t,o,7));break;case 5:var p=null;switch(ke.tag){case 26:p=ke.memoizedState;case 5:case 27:var y=ke;if(p?wx(p):y.stateNode.complete){Je=0,dn=null;var C=y.sibling;if(C!==null)ke=C;else{var k=y.return;k!==null?(ke=k,Vo(k)):ke=null}break t}}Je=0,dn=null,Rr(e,t,o,5);break;case 6:Je=0,dn=null,Rr(e,t,o,6);break;case 8:ld(),dt=6;break e;default:throw Error(c(462))}}n5();break}catch(le){Rm(e,le)}while(!0);return pl=ba=null,Y.H=a,Y.A=i,Ze=n,ke!==null?0:(nt=null,Ye=0,Ks(),dt)}function n5(){for(;ke!==null&&!bv();)Dm(ke)}function Dm(e){var t=Kg(e.alternate,e,vl);e.memoizedProps=e.pendingProps,t===null?Vo(e):ke=t}function zm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yg(n,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=Yg(n,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:ff(t);var a=t;a===At&&(qe?(to(a),a.tag===5&&a.stateNode!=null&&(lt=a.stateNode)):(to(a),qe=!0));default:Jg(n,t),t=ke=E0(t,vl),t=Kg(n,t,vl)}e.memoizedProps=e.pendingProps,t===null?Vo(e):ke=t}function Rr(e,t,n,a){pl=ba=null,ff(t),pr=null,Oi=0;var i=t.return;try{if(F2(e,i,t,n,Ye)){dt=1,jo(e,bn(n,e.current)),ke=null;return}}catch(o){if(i!==null)throw ke=i,o;dt=1,jo(e,bn(n,e.current)),ke=null;return}t.flags&32768?(qe||a===1?e=!0:jr||(Ye&536870912)!==0?e=!1:(Fl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Bm(t,e)):Vo(t)}function Vo(e){var t=e;do{if((t.flags&32768)!==0){Bm(t,Fl);return}e=t.return;var n=X2(t.alternate,t,vl);if(n!==null){ke=n;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);dt===0&&(dt=5)}function Bm(e,t){do{var n=Z2(e.alternate,e);if(n!==null){n.flags&=32767,ke=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=n}while(e!==null);dt=6,ke=null}function Lm(e,t,n,a,i,o,p,y,C,k,le,ue){e.cancelPendingCommit=null;do Qo();while(ct!==0);if((Ze&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===nt&&(ke=nt=null,Ye=0),Ma=t,qn=e,tl=n,nd=i,wm=a,l5(e,t,n,p,y,C,ue)}}function l5(e,t,n,a,i,o,p){var y=t.lanes|t.childLanes;if(td=y,y|=Hc,Rv(e,n,y,a,i,o),wr=null,(n&335544064)===n?(Or=N2(e),a=10262):(Or=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,u5(Ms,function(){return od(),null})):(e.callbackNode=null,e.callbackPriority=0),_o=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=Y.T,Y.T=null,i=ne.p,ne.p=2,o=Ze,Ze|=4;try{K2(e,t,n)}finally{Ze=o,ne.p=i,Y.T=a}}ct=1,_o?Tr=R5(p,e.containerInfo,Or,rd,id,r5,sd,od,a5):(rd(),id(),sd())}function a5(e){if(ct!==0){var t=qn.onRecoverableError;t(e,{componentStack:null})}}function r5(){ct===3&&(ct=0,ym(Ma,qn),ct=4)}function rd(){if(ct===1){ct=0;var e=qn,t=Ma,n=tl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Y.T,Y.T=null;var i=ne.p;ne.p=2;var o=Ze;Ze|=4;try{Hi=Do=!1,mm(t,e,n),n=vd;var p=h0(e.containerInfo),y=n.focusedElem,C=n.selectionRange;if(p!==y&&y&&y.ownerDocument&&d0(y.ownerDocument.documentElement,y)){if(C!==null&&Dc(y)){var k=C.start,le=C.end;if(le===void 0&&(le=k),"selectionStart"in y)y.selectionStart=k,y.selectionEnd=Math.min(le,y.value.length);else{var ue=y.ownerDocument||document,H=ue&&ue.defaultView||window;if(H.getSelection){var W=H.getSelection(),be=y.textContent.length,we=Math.min(C.start,be),ze=C.end===void 0?we:Math.min(C.end,be);!W.extend&&we>ze&&(p=ze,ze=we,we=p);var q=f0(y,we),D=f0(y,ze);if(q&&D&&(W.rangeCount!==1||W.anchorNode!==q.node||W.anchorOffset!==q.offset||W.focusNode!==D.node||W.focusOffset!==D.offset)){var Z=ue.createRange();Z.setStart(q.node,q.offset),W.removeAllRanges(),we>ze?(W.addRange(Z),W.extend(D.node,D.offset)):(Z.setEnd(D.node,D.offset),W.addRange(Z))}}}}for(ue=[],W=y;W=W.parentNode;)W.nodeType===1&&ue.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<ue.length;y++){var oe=ue[y];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Ur=!!bd,vd=bd=null}finally{Ze=o,ne.p=i,Y.T=a}}e.current=t,ct=2}}function id(){if(ct===2){ct=0;var e=qn,t=Ma,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Y.T,Y.T=null;var a=ne.p;ne.p=2;var i=Ze;Ze|=4;try{cm(e,t.alternate,t)}finally{Ze=i,ne.p=a,Y.T=n}}ct=3}}function sd(){if(ct===4||ct===3){ct=0;var e=Tr;Tr=null,vv();var t=qn,n=Ma,a=tl,i=wm,o=(a&335544064)===a?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?ct=5:(ct=0,Ma=qn=null,Um(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Ql=null),gc(a),n=n.stateNode,rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(si,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=Y.T,o=ne.p,ne.p=2,Y.T=null;try{for(var p=t.onRecoverableError,y=0;y<i.length;y++){var C=i[y];p(C.value,{componentStack:C.stack})}}finally{Y.T=n,ne.p=o}}if(i=wr,p=Or,Or=null,i!==null&&(wr=null,p===null&&(p=[]),e!==null))for(C=0;C<i.length;C++)n=(0,i[C])(p),n!==void 0&&e.finished.finally(n);(tl&3)!==0&&Qo(),nl(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Go?Yi++:(Yi=0,Go=t):(Yi=0,Go=null),Fi(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ei(t)))}function Qo(){return Tr!==null&&(Tr.skipTransition(),Tr=null),rd(),id(),sd(),od()}function od(){if(ct!==5)return!1;var e=qn,t=td;td=0;var n=gc(tl),a=Y.T,i=ne.p;try{ne.p=32>n?32:n,Y.T=null,n=nd,nd=null;var o=qn,p=tl;if(ct=0,Ma=qn=null,tl=0,(Ze&6)!==0)throw Error(c(331));var y=Ze;if(Ze|=4,jm(o.current),bm(o,o.current,p,n),Ze=y,Fi(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(si,o)}catch{}return!0}finally{ne.p=i,Y.T=a,Um(e,t)}}function Hm(e,t,n){t=bn(n,t),t=wf(e.stateNode,t,2),e=Ul(e,t,2),e!==null&&(ui(e,2),nl(e))}function Pe(e,t,n){if(e.tag===3)Hm(e,e,n);else for(;t!==null;){if(t.tag===3){Hm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ql===null||!Ql.has(a))){e=bn(n,e),n=zg(2),a=Ul(t,n,2),a!==null&&(Bg(n,a,t,e),ui(a,2),nl(a));break}}t=t.return}}function ud(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new P2;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Wf=!0,i.add(n),e=i5.bind(null,e,t,n),t.then(e,e))}function i5(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nt===e&&(Ye&n)===n&&((dt===4||dt===3&&(Ye&62914560)===Ye&&300>an()-Ho)&&(Ze&2)===0?Ar(e,0):Uo|=n,Er===Ye&&(Er=0)),nl(e)}function qm(e,t){t===0&&(t=Tp()),e=ma(e,t),e!==null&&(ui(e,t),nl(e))}function s5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qm(e,n)}function o5(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),qm(e,n)}function u5(e,t){return fc(e,t)}var _r=null,Nr=null,cd=!1,$o=!1,fd=!1,Xl=0;function nl(e){e!==Nr&&e.next===null&&(Nr===null?_r=Nr=e:Nr=Nr.next=e),$o=!0,cd||(cd=!0,f5())}function Fi(e,t){if(!fd&&$o){fd=!0;do for(var n=!1,a=_r;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var p=a.suspendedLanes,y=a.pingedLanes;o=(1<<31-sn(42|e)+1)-1,o&=i&~(p&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Fm(a,o))}else o=Ye,o=Ls(a,a===nt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||oi(a,o)||(n=!0,Fm(a,o));a=a.next}while(n);fd=!1}}function c5(){km()}function km(){$o=cd=!1;var e=0;Xl!==0&&j5()&&(e=Xl);for(var t=an(),n=null,a=_r;a!==null;){var i=a.next,o=Gm(a,t);o===0?(a.next=null,n===null?_r=i:n.next=i,i===null&&(Nr=n)):(n=a,(e!==0||(o&3)!==0)&&($o=!0)),a=i}ct!==0&&ct!==5||Fi(e),Xl!==0&&(Xl=0)}function Gm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var p=31-sn(o),y=1<<p,C=i[p];C===-1?((y&n)===0||(y&a)!==0)&&(i[p]=Av(y,t)):C<=t&&(e.expiredLanes|=y),o&=~y}if(t=nt,n=Ye,n=Ls(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&dc(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||oi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&dc(a),gc(n)){case 2:case 8:n=Sp;break;case 32:n=Ms;break;case 268435456:n=jp;break;default:n=Ms}return a=Ym.bind(null,e),n=fc(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&dc(a),e.callbackPriority=2,e.callbackNode=null,2}function Ym(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qo()&&e.callbackNode!==n)return null;var a=Ye;return a=Ls(e,e===nt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Cm(e,a,t),Gm(e,an()),e.callbackNode!=null&&e.callbackNode===n?Ym.bind(null,e):null)}function Fm(e,t){if(Qo())return null;Cm(e,t,!0)}function f5(){T5(function(){(Ze&6)!==0?fc(vp,c5):km()})}function dd(){if(Xl===0){var e=ja;e===0&&(e=Ds,Ds<<=1,(Ds&261888)===0&&(Ds=256)),Xl=e}return Xl}function Vm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gs(e)}function d5(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=Vm((i[Jt]||null).action),p=a.submitter;p&&(t=(t=p[Jt]||null)?Vm(t.formAction):p.getAttribute("formAction"),t!==null&&(o=t,p=null));var y=new Qs("action","action",null,a,i);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Xl!==0){var C=new FormData(i,p);vf(n,{pending:!0,data:C,method:i.method,action:o},null,C)}}else typeof o=="function"&&(y.preventDefault(),C=new FormData(i,p),vf(n,{pending:!0,data:C,method:i.method,action:o},o,C))},currentTarget:i}]})}}for(var hd=0;hd<Uc.length;hd++){var pd=Uc[hd],h5=pd.toLowerCase(),p5=pd[0].toUpperCase()+pd.slice(1);Bn(h5,"on"+p5)}Bn(m0,"onAnimationEnd"),Bn(x0,"onAnimationIteration"),Bn(y0,"onAnimationStart"),Bn("dblclick","onDoubleClick"),Bn("focusin","onFocus"),Bn("focusout","onBlur"),Bn(E2,"onTransitionRun"),Bn(T2,"onTransitionStart"),Bn(w2,"onTransitionCancel"),Bn(b0,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ha("onBeforeInput",["compositionend","keypress","textInput","paste"]),ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),g5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vi));function Qm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var p=a.length-1;0<=p;p--){var y=a[p],C=y.instance,k=y.currentTarget;if(y=y.listener,C!==o&&i.isPropagationStopped())break e;o=y,i.currentTarget=k;try{o(i)}catch(le){Zs(le)}i.currentTarget=null,o=C}else for(p=0;p<a.length;p++){if(y=a[p],C=y.instance,k=y.currentTarget,y=y.listener,C!==o&&i.isPropagationStopped())break e;o=y,i.currentTarget=k;try{o(i)}catch(le){Zs(le)}i.currentTarget=null,o=C}}}}function Ge(e,t){var n=t[_p];n===void 0&&(n=t[_p]=new Set);var a=e+"__bubble";n.has(a)||($m(t,e,2,!1),n.add(a))}function gd(e,t,n){var a=0;t&&(a|=4),$m(n,e,a,t)}var Xo="_reactListening"+Math.random().toString(36).slice(2);function md(e){if(!e[Xo]){e[Xo]=!0,Dp.forEach(function(n){n!=="selectionchange"&&(g5.has(n)||gd(n,!1,e),gd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xo]||(t[Xo]=!0,gd("selectionchange",!1,t))}}function $m(e,t,n,a){switch(Bx(t)){case 2:var i=sS;break;case 8:i=oS;break;default:i=Ld}n=i.bind(null,t,n,e),i=void 0,!Ec||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function xd(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var p=a.tag;if(p===3||p===4){var y=a.stateNode.containerInfo;if(y===i)break;if(p===4)for(p=a.return;p!==null;){var C=p.tag;if((C===3||C===4)&&p.stateNode.containerInfo===i)return;p=p.return}for(;y!==null;){if(p=da(y),p===null)return;if(C=p.tag,C===5||C===6||C===26||C===27){a=o=p;continue e}y=y.parentNode}}a=a.return}$p(function(){var k=o,le=Sc(n),ue=[];e:{var H=v0.get(e);if(H!==void 0){var W=Qs,be=e;switch(e){case"keypress":if(Fs(n)===0)break e;case"keydown":case"keyup":W=Wv;break;case"focusin":be="focus",W=Cc;break;case"focusout":be="blur",W=Cc;break;case"beforeblur":case"afterblur":W=Cc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Kp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=a2;break;case m0:case x0:case y0:W=Vv;break;case b0:W=i2;break;case"scroll":case"scrollend":W=qv;break;case"wheel":W=o2;break;case"copy":case"cut":case"paste":W=$v;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Jp;break;case"submit":W=n2;break;case"toggle":case"beforetoggle":W=c2}var we=(t&4)!==0,ze=!we&&(e==="scroll"||e==="scrollend"),q=we?H!==null?H+"Capture":null:H;we=[];for(var D=k,Z;D!==null;){var oe=D;if(Z=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||Z===null||q===null||(oe=di(D,q),oe!=null&&we.push(Qi(D,oe,Z))),ze)break;D=D.return}0<we.length&&(H=new W(H,be,null,n,le),ue.push({event:H,listeners:we}))}}if((t&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",W&&n!==vc&&(be=n.relatedTarget||n.fromElement)&&(da(be)||be[Ia]))break e;(H||W)&&(be=le.window===le?le:(W=le.ownerDocument)?W.defaultView||W.parentWindow:window,H?(W=n.relatedTarget||n.toElement,H=k,W=W?da(W):null,W!==null&&(ze=d(W),we=W.tag,W!==ze||we!==5&&we!==27&&we!==6)&&(W=null)):(H=null,W=k),H!==W&&(we=Kp,oe="onMouseLeave",q="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(we=Jp,oe="onPointerLeave",q="onPointerEnter",D="pointer"),ze=H==null?be:fi(H),Z=W==null?be:fi(W),be=new we(oe,D+"leave",H,n,le),be.target=ze,be.relatedTarget=Z,oe=null,da(le)===k&&(we=new we(q,D+"enter",W,n,le),we.target=Z,we.relatedTarget=ze,oe=we),ze=oe,we=H&&W?X(H,W,m5):null,H!==null&&Xm(ue,be,H,we,!1),W!==null&&ze!==null&&Xm(ue,ze,W,we,!0)))}e:{if(H=k?fi(k):window,W=H.nodeName&&H.nodeName.toLowerCase(),W==="select"||W==="input"&&H.type==="file")var Te=r0;else if(l0(H))if(i0)Te=v2;else{Te=y2;var Fe=x2}else W=H.nodeName,!W||W.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?k&&bc(k.elementType)&&(Te=r0):Te=b2;if(Te&&(Te=Te(e,k))){a0(ue,Te,n,le);break e}Fe&&Fe(e,H,k)}switch(Fe=k?fi(k):window,e){case"focusin":(l0(Fe)||Fe.contentEditable==="true")&&(rr=Fe,zc=k,vi=null);break;case"focusout":vi=zc=rr=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,p0(ue,n,le);break;case"selectionchange":if(j2)break;case"keydown":case"keyup":p0(ue,n,le)}var Ae;if(Rc)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ar?t0(e,n)&&(Re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Re="onCompositionStart");Re&&(Pp&&n.locale!=="ko"&&(ar||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ar&&(Ae=Xp()):(Al=le,Tc="value"in Al?Al.value:Al.textContent,ar=!0)),Fe=Zo(k,Re),0<Fe.length&&(Re=new Ip(Re,e,null,n,le),ue.push({event:Re,listeners:Fe}),Ae?Re.data=Ae:(Ae=n0(n),Ae!==null&&(Re.data=Ae)))),(Ae=d2?h2(e,n):p2(e,n))&&(Re=Zo(k,"onBeforeInput"),0<Re.length&&(Fe=new Ip("onBeforeInput","beforeinput",null,n,le),ue.push({event:Fe,listeners:Re}),Fe.data=Ae)),d5(ue,e,k,n,le)}Qm(ue,t)})}function Qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zo(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=di(e,n),i!=null&&a.unshift(Qi(e,i,o)),i=di(e,t),i!=null&&a.push(Qi(e,i,o))),e.tag===3)return a;e=e.return}return[]}function m5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xm(e,t,n,a,i){for(var o=t._reactName,p=[];n!==null&&n!==a;){var y=n,C=y.alternate,k=y.stateNode;if(y=y.tag,C!==null&&C===a)break;y!==5&&y!==26&&y!==27||k===null||(C=k,i?(k=di(n,o),k!=null&&p.unshift(Qi(n,k,C))):i||(k=di(n,o),k!=null&&p.push(Qi(n,k,C)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var x5=/\r\n?/g,y5=/\u0000|\uFFFD/g;function Zm(e){return(typeof e=="string"?e:""+e).replace(x5,`
|
|
62
|
+
`).replace(y5,"")}function Km(e,t){return t=Zm(t),Zm(e)===t}function We(e,t,n,a,i,o){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||tr(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&tr(e,""+a);else return;break;case"className":ks(e,"class",a);break;case"tabIndex":ks(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ks(e,n,a);break;case"style":Vp(e,a,o);return;case"data":if(t!=="object"){ks(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gs(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&We(e,t,"name",i.name,i,null),We(e,t,"formEncType",i.formEncType,i,null),We(e,t,"formMethod",i.formMethod,i,null),We(e,t,"formTarget",i.formTarget,i,null)):(We(e,t,"encType",i.encType,i,null),We(e,t,"method",i.method,i,null),We(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gs(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=$n);return;case"onScroll":a!=null&&Ge("scroll",e);return;case"onScrollEnd":a!=null&&Ge("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));(o!=null?o.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Gs(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),qs(e,"popover",a);break;case"xlinkActuate":ol(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ol(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ol(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ol(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ol(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ol(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ol(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ol(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ol(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qs(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=Uv.get(n)||n,qs(e,n,a);else return}Xe=!0}function yd(e,t,n,a,i,o){switch(n){case"style":Vp(e,a,o);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));(o!=null?o.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")tr(e,a);else if(typeof a=="number"||typeof a=="bigint")tr(e,""+a);else return;break;case"onScroll":a!=null&&Ge("scroll",e);return;case"onScrollEnd":a!=null&&Ge("scrollend",e);return;case"onClick":a!=null&&(e.onclick=$n);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!zp.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),o=n.slice(2,i?n.length-7:void 0),t=e[Jt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,i),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,a,i);break e}Xe=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):qs(e,n,a)}return}Xe=!0}function Ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var p=n[o];if(p!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:We(e,t,o,p,n,null)}}i&&We(e,t,"srcSet",n.srcSet,n,null),a&&We(e,t,"src",n.src,n,null);return;case"input":Ge("invalid",e);var y=o=p=i=null,C=null,k=null;for(a in n)if(n.hasOwnProperty(a)){var le=n[a];if(le!=null)switch(a){case"name":i=le;break;case"type":p=le;break;case"checked":C=le;break;case"defaultChecked":k=le;break;case"value":o=le;break;case"defaultValue":y=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(c(137,t));break;default:We(e,t,a,le,n,null)}}kp(e,o,y,C,k,p,i,!1);return;case"select":Ge("invalid",e),a=p=o=null;for(i in n)if(n.hasOwnProperty(i)&&(y=n[i],y!=null))switch(i){case"value":o=y;break;case"defaultValue":p=y;break;case"multiple":a=y;default:We(e,t,i,y,n,null)}t=o,n=p,e.multiple=!!a,t!=null?er(e,!!a,t,!1):n!=null&&er(e,!!a,n,!0);return;case"textarea":Ge("invalid",e),o=i=a=null;for(p in n)if(n.hasOwnProperty(p)&&(y=n[p],y!=null))switch(p){case"value":a=y;break;case"defaultValue":i=y;break;case"children":o=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:We(e,t,p,y,n,null)}Yp(e,a,i,o);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:We(e,t,C,a,n,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(a=0;a<Vi.length;a++)Ge(Vi[a],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:We(e,t,k,a,n,null)}return;default:if(bc(t)){for(le in n)n.hasOwnProperty(le)&&(a=n[le],a!==void 0&&yd(e,t,le,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&We(e,t,y,a,n,null))}var b5={};function v5(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,p=null,y=null,C=null,k=null,le=null;for(W in n){var ue=n[W];if(n.hasOwnProperty(W)&&ue!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":C=ue;default:a.hasOwnProperty(W)||We(e,t,W,null,a,ue)}}for(var H in a){var W=a[H];if(ue=n[H],a.hasOwnProperty(H)&&(W!=null||ue!=null))switch(H){case"type":W!==ue&&(Xe=!0),o=W;break;case"name":W!==ue&&(Xe=!0),i=W;break;case"checked":W!==ue&&(Xe=!0),k=W;break;case"defaultChecked":W!==ue&&(Xe=!0),le=W;break;case"value":W!==ue&&(Xe=!0),p=W;break;case"defaultValue":W!==ue&&(Xe=!0),y=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(c(137,t));break;default:W!==ue&&We(e,t,H,W,a,ue)}}xc(e,p,y,C,k,le,o,i);return;case"select":W=p=y=H=null;for(o in n)if(C=n[o],n.hasOwnProperty(o)&&C!=null)switch(o){case"value":break;case"multiple":W=C;default:a.hasOwnProperty(o)||We(e,t,o,null,a,C)}for(i in a)if(o=a[i],C=n[i],a.hasOwnProperty(i)&&(o!=null||C!=null))switch(i){case"value":o!==C&&(Xe=!0),H=o;break;case"defaultValue":o!==C&&(Xe=!0),y=o;break;case"multiple":o!==C&&(Xe=!0),p=o;default:o!==C&&We(e,t,i,o,a,C)}t=y,n=p,a=W,H!=null?er(e,!!n,H,!1):!!a!=!!n&&(t!=null?er(e,!!n,t,!0):er(e,!!n,n?[]:"",!1));return;case"textarea":W=H=null;for(y in n)if(i=n[y],n.hasOwnProperty(y)&&i!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:We(e,t,y,null,a,i)}for(p in a)if(i=a[p],o=n[p],a.hasOwnProperty(p)&&(i!=null||o!=null))switch(p){case"value":i!==o&&(Xe=!0),H=i;break;case"defaultValue":i!==o&&(Xe=!0),W=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==o&&We(e,t,p,i,a,o)}Gp(e,H,W);return;case"option":for(var be in n)if(H=n[be],n.hasOwnProperty(be)&&H!=null&&!a.hasOwnProperty(be))switch(be){case"selected":e.selected=!1;break;default:We(e,t,be,null,a,H)}for(C in a)if(H=a[C],W=n[C],a.hasOwnProperty(C)&&H!==W&&(H!=null||W!=null))switch(C){case"selected":H!==W&&(Xe=!0),e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:We(e,t,C,H,a,W)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in n)H=n[we],n.hasOwnProperty(we)&&H!=null&&!a.hasOwnProperty(we)&&We(e,t,we,null,a,H);for(k in a)if(H=a[k],W=n[k],a.hasOwnProperty(k)&&H!==W&&(H!=null||W!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:We(e,t,k,H,a,W)}return;default:if(bc(t)){for(var ze in n)H=n[ze],n.hasOwnProperty(ze)&&H!==void 0&&!a.hasOwnProperty(ze)&&yd(e,t,ze,void 0,a,H);for(le in a)H=a[le],W=n[le],!a.hasOwnProperty(le)||H===W||H===void 0&&W===void 0||yd(e,t,le,H,a,W);return}}for(var q in n)H=n[q],n.hasOwnProperty(q)&&H!=null&&!a.hasOwnProperty(q)&&We(e,t,q,null,a,H);for(ue in a)H=a[ue],W=n[ue],!a.hasOwnProperty(ue)||H===W||H==null&&W==null||We(e,t,ue,H,a,W)}function Im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,p=i.initiatorType,y=i.duration;if(o&&y&&Im(p)){for(p=0,y=i.responseEnd,a+=1;a<n.length;a++){var C=n[a],k=C.startTime;if(k>y)break;var le=C.transferSize,ue=C.initiatorType;le&&Im(ue)&&(C=C.responseEnd,p+=le*(C<y?1:(y-k)/(C-k)))}if(--a,t+=8*(o+p)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var bd=null,vd=null;function $i(e){return e.nodeType===9?e:e.ownerDocument}function Jm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Wm(e,t,n,a){return n=$i(n).createElement(e),n[Dt]=a,n[Jt]=t,Ht(n,e,t),Ct(n),n}function Sd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jd=null;function j5(){var e=window.event;return e&&e.type==="popstate"?e===jd?!1:(jd=e,!0):(jd=null,!1)}var Ed=typeof setTimeout=="function"?setTimeout:void 0,E5=typeof clearTimeout=="function"?clearTimeout:void 0,ex=typeof Promise=="function"?Promise:void 0,tx=typeof requestAnimationFrame=="function"?requestAnimationFrame:Ed,T5=typeof queueMicrotask=="function"?queueMicrotask:typeof ex<"u"?function(e){return ex.resolve(null).then(e).catch(w5)}:Ed;function w5(e){setTimeout(function(){throw e})}function Zl(e){return e==="head"}function nx(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),Hr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Nd(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Nd(n);for(var o=n.firstChild;o;){var p=o.nextSibling,y=o.nodeName;o[ci]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=p}}else n==="body"&&Nd(e.ownerDocument.body);n=i}while(n);Hr(t)}function lx(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function ax(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var i=a=0;i<t.length;i++){var o=t[i];0<o.width&&0<o.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function rx(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function O5(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Td(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return O5(t,n,e)}function C5(e){return e.documentElement.clientHeight}function A5(e){this.addEventListener("load",e),this.addEventListener("error",e)}function R5(e,t,n,a,i,o,p,y,C){var k=t.nodeType===9?t:t.ownerDocument;try{var le=k.startViewTransition({update:function(){var H=k.defaultView,W=H.navigation&&H.navigation.transition,be=k.fonts.status;a();var we=[];if(be==="loaded"&&(C5(k),k.fonts.status==="loading"&&we.push(k.fonts.ready)),be=we.length,e!==null)for(var ze=e.suspenseyImages,q=0,D=0;D<ze.length;D++){var Z=ze[D];if(!Z.complete){var oe=Z.getBoundingClientRect();if(0<oe.bottom&&0<oe.right&&oe.top<H.innerHeight&&oe.left<H.innerWidth){if(q+=Ox(Z),q>Jo){we.length=be;break}Z=new Promise(A5.bind(Z)),we.push(Z)}}}if(0<we.length)return H=Promise.race([Promise.all(we),new Promise(function(Te){return setTimeout(Te,500)})]).then(i,i),(W?Promise.allSettled([W.finished,H]):H).then(o,o);if(i(),W)return W.finished.then(o,o);o()},types:n});k.__reactViewTransition=le;var ue=[];return le.ready.then(function(){for(var H=k.documentElement.getAnimations({subtree:!0}),W=0;W<H.length;W++){var be=H[W],we=be.effect,ze=we.pseudoElement;if(ze!=null&&ze.startsWith("::view-transition")){ue.push(be),be=we.getKeyframes();for(var q=ze=void 0,D=!0,Z=0;Z<be.length;Z++){var oe=be[Z],Te=oe.width;if(ze===void 0)ze=Te;else if(ze!==Te){D=!1;break}if(Te=oe.height,q===void 0)q=Te;else if(q!==Te){D=!1;break}delete oe.width,delete oe.height,oe.transform==="none"&&delete oe.transform}D&&ze!==void 0&&q!==void 0&&(we.setKeyframes(be),D=getComputedStyle(we.target,we.pseudoElement),D.width!==ze||D.height!==q)&&(D=be[0],D.width=ze,D.height=q,D=be[be.length-1],D.width=ze,D.height=q,we.setKeyframes(be))}}p()},function(H){k.__reactViewTransition===le&&(k.__reactViewTransition=null);try{if(typeof H=="object"&&H!==null)switch(H.name){case"InvalidStateError":(H.message==="View transition was skipped because document visibility state is hidden."||H.message==="Skipping view transition because document visibility state has become hidden."||H.message==="Skipping view transition because viewport size changed."||H.message==="Transition was aborted because of invalid state")&&(H=null)}H!==null&&C(H)}finally{a(),i(),p()}}),le.finished.finally(function(){for(var H=0;H<ue.length;H++)ue[H].cancel();k.__reactViewTransition===le&&(k.__reactViewTransition=null),y()}),le}catch{return a(),i(),p(),null}}function Da(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Da.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:S({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Da.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],i=0;i<n.length;i++){var o=n[i].effect;o!==null&&o.target===e&&o.pseudoElement===t&&a.push(n[i])}return a},Da.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function ix(e){return{name:e,group:new Da("group",e),imagePair:new Da("image-pair",e),old:new Da("old",e),new:new Da("new",e)}}function gn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}gn.prototype.addEventListener=function(e,t,n){var a=null,i=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(ox(o,e,t,n)===-1){var p=this,y=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(y=function(C){p.removeEventListener(e,t,n),typeof t=="function"?t.call(this,C):t.handleEvent(C)}),a!==null&&(i=p.removeEventListener.bind(p,e,t,n),a.addEventListener("abort",i,{once:!0}),i=a.removeEventListener.bind(a,"abort",i)),a=Mr(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:y,cleanup:i}),x(this._fragmentFiber.child,!1,_5,e,y,a)}this._eventListeners=o}};function _5(e,t,n,a){return $(e).addEventListener(t,n,a),!1}gn.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=ox(a,e,t,n),t!==-1)){var i=a[t];n=i.attachedListener;var o=i.cleanup;i=Mr(i.optionsOrUseCapture),x(this._fragmentFiber.child,!1,N5,e,n,i),a.splice(t,1),o!==null&&o()}};function N5(e,t,n,a){return $(e).removeEventListener(t,n,a),!1}function Mr(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function sx(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function ox(e,t,n,a){if(e.length===0)return-1;a=sx(a);for(var i=0;i<e.length;i++){var o=e[i];if(o.type===t&&o.listener===n&&sx(o.optionsOrUseCapture)===a)return i}return-1}gn.prototype.dispatchEvent=function(e){var t=v(this._fragmentFiber);if(t===null)return!0;t=$(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var i=0;i<n.length;i++){var o=n[i];a.addEventListener(o.type,o.attachedListener,Mr(o.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(i=0;i<n.length;i++)o=n[i],a.removeEventListener(o.type,o.attachedListener,Mr(o.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},gn.prototype.focus=function(e){x(this._fragmentFiber.child,!0,ux,e,void 0,void 0)};function ux(e,t){return e.tag===6?!1:(e=$(e),F5(e,t))}gn.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,wd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!ux(t[n],e);n--);};function wd(e,t){return t.push(e),!1}gn.prototype.blur=function(){var e=v(this._fragmentFiber);e!==null&&(e=$(e),e=$i(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,M5,e,void 0,void 0))};function M5(e,t){return e.tag===6?!1:(e=$(e),e===t||e.contains(t)?(t.blur(),!0):!1)}gn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,D5,e,void 0,void 0)};function D5(e,t){return e.tag===6||(e=$(e),t.observe(e)),!1}gn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,z5,e,void 0,void 0);for(var n=t=0;n<kn.length;n++){var a=kn[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):kn[t++]=a}kn.length=t}};function z5(e,t){return e.tag===6||(e=$(e),t.unobserve(e)),!1}var kn=[],Od=!1;function B5(e,t,n){kn.push({fragmentInstance:e,observer:t,instance:n}),Od||(Od=!0,V5(function(){Od=!1;var a=kn;kn=[];for(var i=0;i<a.length;i++){var o=a[i];o.observer.unobserve(o.instance)}}))}gn.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,L5,e,void 0,void 0),e};function L5(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=$(e),t.push.apply(t,e.getClientRects());return!1}gn.prototype.getRootNode=function(e){var t=v(this._fragmentFiber);return t===null?this:$(t).getRootNode(e)},gn.prototype.compareDocumentPosition=function(e){var t=v(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];x(this._fragmentFiber.child,!1,wd,n,void 0,void 0);var a=$(t);if(n.length===0){if(n=a,R(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=a=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=G(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=$(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=$(n[0]),i=$(n[n.length-1]);var o=R(this._fragmentFiber)?t.parentElement:a;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var p=t.compareDocumentPosition(e),y=i.compareDocumentPosition(e),C=p&Node.DOCUMENT_POSITION_CONTAINED_BY||y&Node.DOCUMENT_POSITION_CONTAINED_BY;return y=a&&o&&p&Node.DOCUMENT_POSITION_FOLLOWING&&y&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||o&&i===e||C||y?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!o&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:p,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||U5(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function U5(e,t,n,a,i){var o=da(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=i.ownerDocument,i===o||i===o.documentElement||i===o.body;e:{for(o=t,t=v(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=X(n,o,I),t===null?t=!1:(x(t,!0,F,o,n),o=ie,ie=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===a)&&(t=X(a,o,I),t===null?t=!1:(x(t,!0,L,o,a),o=ie,_=ie=null,t=o!==null)),t):!1}function cx(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}gn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];x(this._fragmentFiber.child,!1,wd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=G(this._fragmentFiber);if(a=n?a[1]||a[0]||v(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=$(a),cx(e,n);return}if(a=$(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var i=t[a];i.tag===6?(i=$(i),cx(i,n)):$(i).scrollIntoView(e),a+=n?-1:1}};function H5(e,t){return e=$(e),fx(e,t),!1}function fx(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function dx(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a];e.addEventListener(i.type,i.attachedListener,Mr(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var p=0,y=0;y<kn.length;y++){var C=kn[y];(C.fragmentInstance!==t||C.observer!==o||C.instance!==e)&&(kn[p++]=C)}kn.length=p,o.observe(e)}),fx(e,t))}function q5(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a];e.removeEventListener(i.type,i.attachedListener,Mr(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?B5(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Cd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Cd(n),Hs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function k5(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ci])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Tn(e.nextSibling),e===null)break}return null}function G5(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Tn(e.nextSibling),e===null))return null;return e}function hx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tn(e.nextSibling),e===null))return null;return e}function Ad(e){return e.data==="$?"||e.data==="$~"}function Rd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y5(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var _d=null;function px(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Tn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function gx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function F5(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function V5(e){tx(function(){tx(function(t){return e(t)})})}function mx(e,t,n){switch(t=$i(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function xx(e,t,n){for(var a in n){var i=n[a];n.hasOwnProperty(a)&&i!=null&&We(e,t,a,null,b5,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===$n&&(e.onclick=null),Hs(e)}function Nd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Hs(e)}var wn=new Map,yx=new Set;function Xi(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Sl=ne.d;ne.d={f:Q5,r:$5,D:X5,C:Z5,L:K5,m:I5,X:P5,S:J5,M:W5};function Q5(){var e=Sl.f(),t=Yo();return e||t}function $5(e){var t=Ja(e);t!==null&&t.tag===5&&t.type==="form"?vg(t):Sl.r(e)}var Dr=typeof document>"u"?null:document;function bx(e,t,n){var a=Dr;if(a&&typeof t=="string"&&t){var i=xn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),yx.has(i)||(yx.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Ht(t,"link",e),Ct(t),a.head.appendChild(t)))}}function X5(e){Sl.D(e),bx("dns-prefetch",e,null)}function Z5(e,t){Sl.C(e,t),bx("preconnect",e,t)}function K5(e,t,n){Sl.L(e,t,n);var a=Dr;if(a&&e&&t){var i='link[rel="preload"][as="'+xn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+xn(n.imageSizes)+'"]')):i+='[href="'+xn(e)+'"]';var o=i;switch(t){case"style":o=zr(e);break;case"script":o=Br(e)}if(!(wn.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),wn.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Zi(o))||t==="script"&&a.querySelector(Ki(o))))){var p=a.createElement("link");Ht(p,"link",e),t==="style"&&(p[Us]=!0,p.onload=p.onerror=function(){Mp(p)}),Ct(p),a.head.appendChild(p)}}}function I5(e,t){Sl.m(e,t);var n=Dr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+xn(a)+'"][href="'+xn(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Br(e)}if(!wn.has(o)&&(e=S({rel:"modulepreload",href:e},t),wn.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ki(o)))return}a=n.createElement("link"),Ht(a,"link",e),Ct(a),n.head.appendChild(a)}}}function J5(e,t,n){Sl.S(e,t,n);var a=Dr;if(a&&e){var i=Pa(a).hoistableStyles,o=zr(e);t=t||"default";var p=i.get(o);if(!p){var y={loading:0,preload:null};if(p=a.querySelector(Zi(o)))y.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=wn.get(o))&&Md(e,n);var C=p=a.createElement("link");Ct(C),Ht(C,"link",e),C._p=new Promise(function(k,le){C.onload=k,C.onerror=le}),C.addEventListener("load",function(){y.loading|=1}),C.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ko(p,t,a)}p={type:"stylesheet",instance:p,count:1,state:y},i.set(o,p)}}}function P5(e,t){Sl.X(e,t);var n=Dr;if(n&&e){var a=Pa(n).hoistableScripts,i=Br(e),o=a.get(i);o||(o=n.querySelector(Ki(i)),o||(e=S({src:e,async:!0},t),(t=wn.get(i))&&Dd(e,t),o=n.createElement("script"),Ct(o),Ht(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function W5(e,t){Sl.M(e,t);var n=Dr;if(n&&e){var a=Pa(n).hoistableScripts,i=Br(e),o=a.get(i);o||(o=n.querySelector(Ki(i)),o||(e=S({src:e,async:!0,type:"module"},t),(t=wn.get(i))&&Dd(e,t),o=n.createElement("script"),Ct(o),Ht(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function vx(e,t,n,a){var i=(i=It.current)?Xi(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=zr(n.href),t=Pa(i).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=zr(n.href);var o=Pa(i).hoistableStyles,p=o.get(e);if(p||(i=i.ownerDocument||i,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,p),(o=i.querySelector(Zi(e)))?o._p||(p.instance=o,p.state.loading=5):(o=wn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wn.set(e,o)),eS(i,e,o,p.state))),t&&a===null)throw Error(c(528,""));return p}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Br(n),t=Pa(i).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function zr(e){return'href="'+xn(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function Sx(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function eS(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Us]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Us]=!0,t.onload=t.onerror=Mp.bind(null,t),Ht(t,"link",n),Ct(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Br(e){return'[src="'+xn(e)+'"]'}function Ki(e){return"script[async]"+e}function jx(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xn(n.href)+'"]');if(a)return t.instance=a,Ct(a),a;var i=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ct(a),Ht(a,"style",i),Ko(a,n.precedence,e),t.instance=a;case"stylesheet":i=zr(n.href);var o=e.querySelector(Zi(i));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;a=Sx(n),(i=wn.get(i))&&Md(a,i),o=(e.ownerDocument||e).createElement("link"),Ct(o);var p=o;return p._p=new Promise(function(y,C){p.onload=y,p.onerror=C}),Ht(o,"link",a),t.state.loading|=4,Ko(o,n.precedence,e),t.instance=o;case"script":return o=Br(n.src),(i=e.querySelector(Ki(o)))?(t.instance=i,Ct(i),i):(a=n,(i=wn.get(o))&&(a=S({},n),Dd(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ct(i),Ht(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ko(a,n.precedence,e));return t.instance}function Ko(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,p=0;p<a.length;p++){var y=a[p];if(y.dataset.precedence===t)o=y;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Md(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Dd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Io=null;function Ex(e,t,n){if(Io===null){var a=new Map,i=Io=new Map;i.set(n,a)}else i=Io,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[ci]||o[Dt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var p=o.getAttribute(t)||"";p=e+p;var y=a.get(p);y?y.push(o):a.set(p,[o])}}return a}function zd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function tS(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tx(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function wx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ox(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Cx(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Ox(t),e.suspenseyImages.push(t)),e=aS.bind(e),t.decode().then(e,e))}function nS(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=zr(a.href),o=t.querySelector(Zi(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Ct(o);return}o=t.ownerDocument||t,a=Sx(a),(i=wn.get(i))&&Md(a,i),o=o.createElement("link"),Ct(o);var p=o;p._p=new Promise(function(y,C){p.onload=y,p.onerror=C}),Ht(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ii.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Jo=0;function lS(e,t){return e.stylesheets&&e.count===0&&Wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Jo===0&&(Jo=62500*S5());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Jo?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ax(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Wo(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Ii(){this.count--,Ax(this)}function aS(){this.imgCount--,Ax(this)}var Po=null;function Wo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Po=new Map,t.forEach(rS,e),Po=null,Ii.call(e))}function rS(e,t){if(!(t.state.loading&4)){var n=Po.get(e);if(n)var a=n.get(null);else{n=new Map,Po.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var p=i[o];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),a=p)}a&&n.set(null,a)}i=t.instance,p=i.getAttribute("data-precedence"),o=n.get(p)||a,o===a&&n.set(null,i),n.set(p,i),this.count++,a=Ii.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Lr={$$typeof:te,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_threadCount:0};function iS(e,t,n,a,i,o,p,y,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hc(0),this.hiddenUpdates=hc(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.transitionTypes=null,this.incompleteTransitions=new Map}function Rx(e,t,n,a,i,o,p,y,C,k,le,ue){return e=new iS(e,t,n,p,C,k,le,ue,y),t=1,o===!0&&(t|=24),o=Pt(3,null,null,t),e.current=o,o.stateNode=e,t=Zc(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Pc(o),e}function _x(e){return e?(e=or,e):or}function Nx(e,t,n,a,i,o){i=_x(i),a.context===null?a.context=i:a.pendingContext=i,a=Ll(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Ul(e,a,t),n!==null&&(nn(n,e,t),Ci(n,e,t))}function Mx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bd(e,t){Mx(e,t),(e=e.alternate)&&Mx(e,t)}function Dx(e){if(e.tag===13||e.tag===31){var t=ma(e,67108864);t!==null&&nn(t,e,67108864),Bd(e,67108864)}}function zx(e){if(e.tag===13||e.tag===31){var t=pn();t=pc(t);var n=ma(e,t);n!==null&&nn(n,e,t),Bd(e,t)}}var Ur=!0;function sS(e,t,n,a){var i=Y.T;Y.T=null;var o=ne.p;try{ne.p=2,Ld(e,t,n,a)}finally{ne.p=o,Y.T=i}}function oS(e,t,n,a){var i=Y.T;Y.T=null;var o=ne.p;try{ne.p=8,Ld(e,t,n,a)}finally{ne.p=o,Y.T=i}}function Ld(e,t,n,a){if(Ur){var i=Ud(a);if(i===null)xd(e,t,a,eu,n),Lx(e,a);else if(cS(i,e,t,n,a))a.stopPropagation();else if(Lx(e,a),t&4&&-1<uS.indexOf(e)){for(;i!==null;){var o=Ja(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var p=fa(o.pendingLanes);if(p!==0){var y=o;for(y.pendingLanes|=2,y.entangledLanes|=2;p;){var C=1<<31-sn(p);y.entanglements[1]|=C,p&=~C}nl(o),(Ze&6)===0&&(qo=an()+500,Fi(0))}}break;case 31:case 13:y=ma(o,2),y!==null&&nn(y,o,2),Yo(),Bd(o,2)}if(o=Ud(a),o===null&&xd(e,t,a,eu,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else xd(e,t,a,null,n)}}function Ud(e){return e=Sc(e),Hd(e)}var eu=null;function Hd(e){if(eu=null,e=da(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return eu=e,null}function Bx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Sv()){case vp:return 2;case Sp:return 8;case Ms:case jv:return 32;case jp:return 268435456;default:return 32}default:return 32}}var qd=!1,Kl=null,Il=null,Jl=null,Ji=new Map,Pi=new Map,Pl=[],uS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Lx(e,t){switch(e){case"focusin":case"focusout":Kl=null;break;case"dragenter":case"dragleave":Il=null;break;case"mouseover":case"mouseout":Jl=null;break;case"pointerover":case"pointerout":Ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Wi(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ja(t),t!==null&&Dx(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cS(e,t,n,a,i){switch(t){case"focusin":return Kl=Wi(Kl,e,t,n,a,i),!0;case"dragenter":return Il=Wi(Il,e,t,n,a,i),!0;case"mouseover":return Jl=Wi(Jl,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Ji.set(o,Wi(Ji.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Pi.set(o,Wi(Pi.get(o)||null,e,t,n,a,i)),!0}return!1}function Ux(e){var t=da(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Rp(e.priority,function(){zx(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,Rp(e.priority,function(){zx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ud(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);vc=a,n.target.dispatchEvent(a),vc=null}else return t=Ja(n),t!==null&&Dx(t),e.blockedOn=n,!1;t.shift()}return!0}function Hx(e,t,n){tu(e)&&n.delete(t)}function fS(){qd=!1,Kl!==null&&tu(Kl)&&(Kl=null),Il!==null&&tu(Il)&&(Il=null),Jl!==null&&tu(Jl)&&(Jl=null),Ji.forEach(Hx),Pi.forEach(Hx)}function nu(e,t){e.blockedOn===t&&(e.blockedOn=null,qd||(qd=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,fS)))}var lu=null;function qx(e){lu!==e&&(lu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){lu===e&&(lu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Hd(a||n)===null)continue;break}var o=Ja(n);o!==null&&(e.splice(t,3),t-=3,vf(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Hr(e){function t(C){return nu(C,e)}Kl!==null&&nu(Kl,e),Il!==null&&nu(Il,e),Jl!==null&&nu(Jl,e),Ji.forEach(t),Pi.forEach(t);for(var n=0;n<Pl.length;n++){var a=Pl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Pl.length&&(n=Pl[0],n.blockedOn===null);)Ux(n),n.blockedOn===null&&Pl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],p=i[Jt]||null;if(typeof o=="function")p||qx(n);else if(p){var y=null;if(o&&o.hasAttribute("formAction")){if(i=o,p=o[Jt]||null)y=p.formAction;else if(Hd(i)!==null)continue}else y=p.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),qx(n)}}}function kx(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(p){return i=p})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function kd(e){this._internalRoot=e}au.prototype.render=kd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,a=pn();Nx(n,a,e,t,null,null)},au.prototype.unmount=kd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nx(e.current,2,null,e,null,null),Yo(),t[Ia]=null}};function au(e){this._internalRoot=e}au.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ap();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pl.length&&t!==0&&t<Pl[n].priority;n++);Pl.splice(n,0,e),n===0&&Ux(e)}};var Gx=r.version;if(Gx!=="19.3.1")throw Error(c(527,Gx,"19.3.1"));ne.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=b(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var dS={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{si=ru.inject(dS),rn=ru}catch{}}return ts.createRoot=function(e,t){if(!f(e))throw Error(c(299));var n=!1,a="",i=_g,o=Ng,p=Mg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Rx(e,1,!1,null,null,n,a,null,i,o,p,kx),e[Ia]=t.current,md(e),new kd(t)},ts.hydrateRoot=function(e,t,n){if(!f(e))throw Error(c(299));var a=!1,i="",o=_g,p=Ng,y=Mg,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Rx(e,1,!0,t,n??null,a,i,C,o,p,y,kx),t.context=_x(null),n=t.current,a=pn(),a=pc(a),i=Ll(a),i.callback=null,Ul(n,i,a),n=a,t.current.lanes=n,ui(t,n),nl(t),e[Ia]=t.current,md(e),new au(t)},ts.version="19.3.1",ts}var Jx;function ES(){if(Jx)return Fd.exports;Jx=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Fd.exports=jS(),Fd.exports}var TS=ES();const wS=Zu(TS);var al;let OS=(al=class{constructor(r){mn(this,"name");mn(this,"subscribers",[]);mn(this,"queue",[]);mn(this,"running",!1);this.name=r||"S_"+al.nextID++}subscribe(r,u){const c=this.subscribers.find(d=>d.cb===r);if(c)return c.id;const f={cb:r,id:u??""+al.nextID++};return this.subscribers=[...this.subscribers,f],f.id}unsubscribe(r){const u=this.subscribers.length;return this.subscribers=this.subscribers.filter(c=>c.id!==r),this.subscribers.length<u}removeAll(){this.subscribers=[]}get size(){return this.subscribers.length}invoke(r){if(this.queue.push(r),!this.running){this.running=!0;try{for(;this.queue.length;){const u=this.queue.shift();for(const c of this.subscribers)try{c.cb(u)}catch(f){try{al.onError(this,f)}catch{}}}}finally{this.running=!1}}}},mn(al,"nextID",0),mn(al,"onError",(r,u)=>{try{console.error(`Signal ${r.name}: a subscriber threw`,u)}catch{}}),al);var ka;let CS=(ka=class{constructor(r,u){mn(this,"name");mn(this,"worker");this.name=u||"Req_"+ka.nextID++,this.worker=r}set listener(r){this.worker=r}get hasListener(){return this.worker!==void 0}async request(r){if(!this.worker)throw new Error(`No worker registered in ${this.name}`);return this.worker(r)}},mn(ka,"nextID",1),ka);class Za extends OS{constructor(){super(...arguments);mn(this,"onSubscribe")}subscribe(u,c){var h;const f=this.size,d=super.subscribe(u,c);return this.size>f&&((h=this.onSubscribe)==null||h.call(this,u)),d}use(u=[],c){const[f,d]=Q.useState(null);return Q.useEffect(()=>{const h=this.subscribe(g=>{d(()=>g),c==null||c(g)});return()=>{this.unsubscribe(h)}},u),f}}class Vt extends CS{useRequest(r,u){const[c,f]=Q.useState({value:u}),[d,h]=Q.useState(null),[g,m]=Q.useState(!0);return Q.useEffect(()=>{let b=!0;return this.request(c.value).then(E=>{b&&(h(()=>E),m(!1),r==null||r(E))}).catch(E=>{b&&(m(!1),console.error(`${this.name} failed`,E))}),()=>{b=!1}},[c]),[d,b=>{m(!0),f({value:b})},b=>{h(()=>b),m(!1)},g]}}function zy(l,r){return function(){return l.apply(r,arguments)}}const{toString:AS}=Object.prototype,{getPrototypeOf:wl}=Object,{iterator:Cs,toStringTag:By}=Symbol,Ol=(({hasOwnProperty:l})=>(r,u)=>l.call(r,u))(Object.prototype),Ly=l=>typeof l=="string"&&(l==="__proto__"||l==="constructor"||l==="prototype"),Ku=(l,r,u)=>l===Object.prototype||!u&&r===null,RS=l=>{if(!Object.isExtensible(l))return!1;const r=Object.getOwnPropertyNames(l);return Object.getOwnPropertySymbols&&r.push(...Object.getOwnPropertySymbols(l)),r.every(u=>{if(Ly(u))return!1;const c=Object.getOwnPropertyDescriptor(l,u);return!!c&&c.configurable&&c.writable===!0})},Xh=(l,r)=>{let u=l;const c=[];for(;u!=null;){if(c.indexOf(u)!==-1)return!1;c.push(u);const f=wl(u);if(Ku(u,f,u===l))return!1;if(Ol(u,r))return!0;u=f}return!1},_S=(l,r)=>l!=null&&Xh(l,r)?l[r]:void 0,NS=l=>{if(l==null||typeof l!="object"&&typeof l!="function")return l;const r=wl(l);if(r===null&&RS(l))return l;const u=Object.create(null),c=Object.create(null),f=[];let d=l;for(;d!=null&&f.indexOf(d)===-1;){f.push(d);const h=d===l?r:wl(d);if(Ku(d,h,d===l))break;const g=Object.getOwnPropertyNames(d);Object.getOwnPropertySymbols&&g.push(...Object.getOwnPropertySymbols(d));for(const m of g)Ly(m)||Ol(c,m)||(u[m]=l[m],c[m]=!0);d=h}return u},Zh=(l=>r=>{const u=AS.call(r);return l[u]||(l[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),Nn=l=>(l=l.toLowerCase(),r=>Zh(r)===l),Iu=l=>r=>typeof r===l,{isArray:Va}=Array,Qa=Iu("undefined");function ni(l){return l!==null&&!Qa(l)&&l.constructor!==null&&!Qa(l.constructor)&&ln(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const Uy=Nn("ArrayBuffer");function MS(l){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(l):r=l&&l.buffer&&Uy(l.buffer),r}const DS=Iu("string"),ln=Iu("function"),zS=Iu("number"),li=l=>l!==null&&typeof l=="object",BS=l=>l===!0||l===!1,Eu=l=>{if(!li(l))return!1;const r=wl(l);return(r===null||r===Object.prototype||wl(r)===null)&&(Ku(l,r,!0)||!Ol(l,By)&&!Ol(l,Cs))},LS=l=>{if(!li(l)||ni(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},US=Nn("Date"),HS=Nn("File"),qS=l=>!!(l&&typeof l.uri<"u"),kS=l=>l&&typeof l.getParts<"u",GS=Nn("Blob"),YS=Nn("FileList"),FS=Nn("Set"),VS=l=>li(l)&&ln(l.pipe);function QS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Px=QS(),Wx=typeof Px.FormData<"u"?Px.FormData:void 0,$S=l=>{if(!l)return!1;if(Wx&&l instanceof Wx)return!0;const r=wl(l);if(!r||r===Object.prototype||!ln(l.append))return!1;const u=Zh(l);return u==="formdata"||u==="object"&&ln(l.toString)&&l.toString()==="[object FormData]"},XS=Nn("URLSearchParams"),[ZS,KS,IS,JS]=["ReadableStream","Request","Response","Headers"].map(Nn),PS=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function As(l,r,{allOwnKeys:u=!1}={}){if(l===null||typeof l>"u")return;let c,f;if(typeof l!="object"&&(l=[l]),Va(l))for(c=0,f=l.length;c<f;c++)r.call(null,l[c],c,l);else{if(ni(l))return;const d=u?Object.getOwnPropertyNames(l):Object.keys(l),h=d.length;let g;for(c=0;c<h;c++)g=d[c],r.call(null,l[g],g,l)}}function WS(l,r){if(ni(l))return null;r=r.toLowerCase();const u=Object.keys(l);let c=u.length,f;for(;c-- >0;)if(f=u[c],r===f.toLowerCase())return f;return null}const Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hy=l=>!Qa(l)&&l!==Ha;function Oh(...l){const{caseless:r,skipUndefined:u}=Hy(this)&&this||{},c={},f=r?Object.create(null):null,d=(h,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")return;let m=g;if(f&&typeof g=="string"){const E=g.toLowerCase(),x=f[E];x!==void 0&&Ol(c,x)?m=x:f[E]=g}const b=Ol(c,m)?c[m]:void 0;Eu(b)&&Eu(h)?c[m]=Oh(b,h):Eu(h)?c[m]=Oh({},h):Va(h)?c[m]=h.slice():(!u||!Qa(h))&&(c[m]=h)};for(let h=0,g=l.length;h<g;h++){const m=l[h];if(!m||ni(m)||(As(m,d),typeof m!="object"||Va(m)||!Object.getOwnPropertySymbols))continue;const b=Object.getOwnPropertySymbols(m);for(let E=0;E<b.length;E++){const x=b[E];fj.call(m,x)&&d(m[x],x)}}return c}const ej=(l,r,u,{allOwnKeys:c}={})=>(As(r,(f,d)=>{u&&ln(f)?Object.defineProperty(l,d,{__proto__:null,value:zy(f,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,d,{__proto__:null,value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:c}),l),tj=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),nj=(l,r,u,c)=>{l.prototype=Object.create(r.prototype,c),Object.defineProperty(l.prototype,"constructor",{__proto__:null,value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{__proto__:null,value:r.prototype}),u&&Object.assign(l.prototype,u)},lj=(l,r,u,c)=>{let f,d,h;const g={};if(r=r||{},l==null)return r;do{for(f=Object.getOwnPropertyNames(l),d=f.length;d-- >0;)h=f[d],(!c||c(h,l,r))&&!g[h]&&(r[h]=l[h],g[h]=!0);l=u!==!1&&wl(l)}while(l&&(!u||u(l,r))&&l!==Object.prototype);return r},aj=(l,r,u)=>{l=String(l),(u===void 0||u>l.length)&&(u=l.length),u-=r.length;const c=l.indexOf(r,u);return c!==-1&&c===u},rj=l=>{if(!l)return null;if(Va(l))return l;let r=l.length;if(!Number.isSafeInteger(r)||r<0||r>4294967295)return null;const u=new Set,c=new Set;let f=l;for(;f!=null&&u.size<r;){if(c.has(f))return null;c.add(f);const h=wl(f);if(Ku(f,h,f===l))break;Object.getOwnPropertyNames(f).forEach(g=>{const m=+g;Number.isInteger(m)&&m>=0&&m<r&&String(m)===g&&Ol(f,g)&&u.add(m)}),f=h}if(u.size!==r)return null;const d=new Array(r);for(;r-- >0;)d[r]=l[r];return d},ij=(l=>r=>l&&r instanceof l)(typeof Uint8Array<"u"&&wl(Uint8Array)),sj=(l,r)=>{const c=(l&&l[Cs]).call(l);let f;for(;(f=c.next())&&!f.done;){const d=f.value;r.call(l,d[0],d[1])}},oj=(l,r)=>{let u;const c=[];for(;(u=l.exec(r))!==null;)c.push(u);return c},uj=Nn("HTMLFormElement"),cj=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,c,f){return c.toUpperCase()+f}),{propertyIsEnumerable:fj}=Object.prototype,dj=Nn("RegExp"),qy=(l,r)=>{const u=Object.getOwnPropertyDescriptors(l),c={};As(u,(f,d)=>{let h;(h=r(f,d,l))!==!1&&(c[d]=h||f)}),Object.defineProperties(l,c)},hj=l=>{qy(l,(r,u)=>{if(ln(l)&&["arguments","caller","callee"].includes(u))return!1;const c=l[u];if(ln(c)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},pj=(l,r)=>{const u={},c=f=>{f.forEach(d=>{u[d]=!0})};return Va(l)?c(l):c(String(l).split(r)),u},gj=()=>{},mj=(l,r)=>l!=null&&Number.isFinite(l=+l)?l:r;function xj(l){return!!(l&&ln(l.append)&&l[By]==="FormData"&&l[Cs])}const yj=l=>{const r=new WeakSet,u=c=>{if(li(c)){if(r.has(c))return;if(ni(c))return c;if(!("toJSON"in c)){r.add(c);let f;if(FS(c)){f=[];for(const d of c){const h=u(d);!Qa(h)&&f.push(h)}}else f=Va(c)?[]:{},As(c,(d,h)=>{const g=u(d);!Qa(g)&&(f[h]=g)});return r.delete(c),f}}return c};return u(l)},bj=Nn("AsyncFunction"),vj=l=>l&&(li(l)||ln(l))&&ln(l.then)&&ln(l.catch),ky=((l,r)=>l?setImmediate:r?((u,c)=>(Ha.addEventListener("message",({source:f,data:d})=>{f===Ha&&d===u&&c.length&&c.shift()()},!1),f=>{c.push(f),Ha.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",ln(Ha.postMessage)),Sj=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||ky,Gy=l=>l!=null&&ln(l[Cs]),jj=l=>l!=null&&Xh(l,Cs)&&Gy(l),A={isArray:Va,isArrayBuffer:Uy,isBuffer:ni,isFormData:$S,isArrayBufferView:MS,isString:DS,isNumber:zS,isBoolean:BS,isObject:li,isPlainObject:Eu,isEmptyObject:LS,isReadableStream:ZS,isRequest:KS,isResponse:IS,isHeaders:JS,isUndefined:Qa,isDate:US,isFile:HS,isReactNativeBlob:qS,isReactNative:kS,isBlob:GS,isRegExp:dj,isFunction:ln,isStream:VS,isURLSearchParams:XS,isTypedArray:ij,isFileList:YS,forEach:As,merge:Oh,extend:ej,trim:PS,stripBOM:tj,inherits:nj,toFlatObject:lj,kindOf:Zh,kindOfTest:Nn,endsWith:aj,toArray:rj,forEachEntry:sj,matchAll:oj,isHTMLForm:uj,hasOwnProperty:Ol,hasOwnProp:Ol,hasOwnInPrototypeChain:Xh,getSafeProp:_S,toSafeFlatObject:NS,reduceDescriptors:qy,freezeMethods:hj,toObjectSet:pj,toCamelCase:cj,noop:gj,toFiniteNumber:mj,findKey:WS,global:Ha,isContextDefined:Hy,isSpecCompliantForm:xj,toJSONObject:yj,isAsyncFn:bj,isThenable:vj,setImmediate:ky,asap:Sj,isIterable:Gy,isSafeIterable:jj},Ej=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tj=l=>{const r=Object.create(null);let u,c,f;return l&&l.split(`
|
|
63
|
+
`).forEach(function(h){f=h.indexOf(":"),u=h.substring(0,f).trim().toLowerCase(),c=h.substring(f+1).trim();const g=A.hasOwnProp(r,u);!u||g&&A.hasOwnProp(Ej,u)||(u==="set-cookie"?g?r[u].push(c):r[u]=[c]:r[u]=g?r[u]+", "+c:c)}),r};function wj(l){let r=0,u=l.length;for(;r<u;){const c=l.charCodeAt(r);if(c!==9&&c!==32)break;r+=1}for(;u>r;){const c=l.charCodeAt(u-1);if(c!==9&&c!==32)break;u-=1}return r===0&&u===l.length?l:l.slice(r,u)}const Oj=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Cj=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Kh(l,r){return A.isArray(l)?l.map(u=>Kh(u,r)):wj(String(l).replace(r,""))}const Aj=l=>Kh(l,Oj),Rj=l=>Kh(l,Cj);function Yy(l){const r=Object.create(null);return A.forEach(l.toJSON(),(u,c)=>{r[c]=Rj(u)}),r}const e1=Symbol("internals");function ns(l){return l&&String(l).trim().toLowerCase()}function Tu(l){return l===!1||l==null?l:A.isArray(l)?l.map(Tu):Aj(String(l))}function _j(l){const r=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=u.exec(l);)r[c[1]]=c[2];return r}const Nj=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Xd(l){let r=0,u=l.length;for(;r<u;){const c=l.charCodeAt(r);if(c!==9&&c!==32)break;r+=1}for(;u>r;){const c=l.charCodeAt(u-1);if(c!==9&&c!==32)break;u-=1}return r===0&&u===l.length?l:l.slice(r,u)}function Mj(l){const r=l.length-1;if(r<1||l.charCodeAt(0)!==34||l.charCodeAt(r)!==34)return l;let u="";for(let c=1;c<r;c++){const f=l.charCodeAt(c);if(f===34||f===92&&(c+=1,c>=r))return l;u+=l[c]}return u}function Dj(l){const r=Object.create(null),u=String(l);let c=0,f=!1,d=!1;function h(g){const m=Xd(u.slice(c,g)),b=m.indexOf("=");if(b<1)return;const E=Xd(m.slice(0,b));if(!Nj.test(E))return;const x=E.toLowerCase();if(x==="__proto__"||x==="constructor"||x==="prototype")return;const v=Xd(m.slice(b+1));r[x]=Mj(v)}for(let g=0;g<u.length;g++){const m=u.charCodeAt(g);f?d?d=!1:m===92?d=!0:m===34&&(f=!1):m===34?f=!0:(m===44||m===59)&&(h(g),c=g+1)}return h(u.length),r}const zj=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim()),Bj="__Proto__",t1=l=>l==="__proto__"?Bj:l;function Zd(l,r,u,c,f){if(A.isFunction(c))return c.call(l,r,u);if(f&&(r=u),!!A.isString(r)){if(A.isString(c))return r.indexOf(c)!==-1;if(A.isRegExp(c))return c.test(r)}}function Lj(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,u,c)=>u.toUpperCase()+c)}function Uj(l,r){const u=A.toCamelCase(" "+r);["get","set","has"].forEach(c=>{Object.defineProperty(l,c+u,{__proto__:null,value:function(f,d,h){return this[c].call(this,r,f,d,h)},configurable:!0})})}let Ot=class{constructor(r){r&&this.set(r)}set(r,u,c){const f=this;function d(g,m,b){const E=ns(m);if(!E)return;const x=A.findKey(f,E);(!x||f[x]===void 0||b===!0||b===void 0&&f[x]!==!1)&&(f[t1(x||m)]=Tu(g))}const h=(g,m)=>A.forEach(g,(b,E)=>d(b,E,m));if(A.isPlainObject(r)||r instanceof this.constructor)h(r,u);else if(A.isString(r)&&(r=r.trim())&&!zj(r))h(Tj(r),u);else if(A.isObject(r)&&A.isSafeIterable(r)){let g=Object.create(null),m,b;for(const E of r){if(!A.isArray(E))throw new TypeError("Object iterator must return a key-value pair");b=E[0],A.hasOwnProp(g,b)?(m=g[b],g[b]=A.isArray(m)?[...m,E[1]]:[m,E[1]]):g[b]=E[1]}h(g,u)}else r!=null&&d(u,r,c);return this}get(r,u){if(r=ns(r),r){const c=A.findKey(this,r);if(c){const f=this[c];if(!u)return f;if(u===!0)return _j(f);if(A.isFunction(u))return u.call(this,f,c);if(A.isRegExp(u))return u.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,u){if(r=ns(r),r){const c=A.findKey(this,r);return!!(c&&this[c]!==void 0&&(!u||Zd(this,this[c],c,u)))}return!1}delete(r,u){const c=this;let f=!1;function d(h){if(h=ns(h),h){const g=A.findKey(c,h);g&&(!u||Zd(c,c[g],g,u))&&(delete c[g],f=!0)}}return A.isArray(r)?r.forEach(d):d(r),f}clear(r){const u=Object.keys(this);let c=u.length,f=!1;for(;c--;){const d=u[c];(!r||Zd(this,this[d],d,r,!0))&&(delete this[d],f=!0)}return f}normalize(r){const u=this,c=Object.create(null);return A.forEach(this,(f,d)=>{const h=A.findKey(c,d);if(h){u[h]=Tu(f),delete u[d];return}const g=t1(r?Lj(d):String(d).trim());g!==d&&delete u[d],u[g]=Tu(f),c[g]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const u=Object.create(null);return A.forEach(this,(c,f)=>{c!=null&&c!==!1&&(u[f]=r&&A.isArray(c)?c.join(", "):c)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,u])=>r+": "+u).join(`
|
|
64
|
+
`)}getSetCookie(){const r=this.get("set-cookie");return A.isArray(r)?r:r==null||r===!1?[]:[r]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static parseParameters(r){return Dj(r)}static concat(r,...u){const c=new this(r);return u.forEach(f=>c.set(f)),c}static accessor(r){const c=(this[e1]=this[e1]={accessors:{}}).accessors,f=this.prototype;function d(h){const g=ns(h);c[g]||(Uj(f,h),c[g]=!0)}return A.isArray(r)?r.forEach(d):d(r),this}};Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(Ot.prototype,({value:l},r)=>{let u=r[0].toUpperCase()+r.slice(1);return{get:()=>l,set(c){this[u]=c}}});A.freezeMethods(Ot);const qu="[REDACTED ****]";function Hj(l){if(A.hasOwnProp(l,"toJSON"))return!0;let r=Object.getPrototypeOf(l);for(;r&&r!==Object.prototype;){if(A.hasOwnProp(r,"toJSON"))return!0;r=Object.getPrototypeOf(r)}return!1}function qj(l,r){const u=new Set(r.map(d=>String(d).toLowerCase())),c=[],f=d=>{if(d===null||typeof d!="object"||A.isBuffer(d))return d;if(c.indexOf(d)!==-1)return;d instanceof Ot&&(d=d.toJSON()),c.push(d);let h;if(A.isArray(d))h=[],d.forEach((g,m)=>{const b=f(g);A.isUndefined(b)||(h[m]=b)});else{if(!A.isPlainObject(d)&&Hj(d))return c.pop(),d;h=Object.create(null);for(const[g,m]of Object.entries(d)){const b=u.has(g.toLowerCase())?qu:f(m);A.isUndefined(b)||(h[g]=b)}}return c.pop(),h};return f(l)}function n1(l){try{return String(l)}catch{return""}}function kj(l){return l.errors.map(u=>{try{return u&&u.message?n1(u.message):n1(u)}catch{return""}}).filter(Boolean).join("; ")||l.name||"AggregateError"}const Gj=`
|
|
65
|
+
Caused by: `,Ch=Symbol("causeStack");function Yj(l,r){const u=A.hasOwnProp(l,Ch)&&l[Ch];return u&&r.endsWith(u)?r.length-u.length:-1}function Fj(l,r){try{const u=r&&r.stack;if(typeof u!="string"||!u)return;const c=l.stack;if(typeof c!="string"||!c)return;const f=Gj+u;l.stack=c+f,Object.defineProperty(l,Ch,{__proto__:null,value:f})}catch{}}let me=class Fy extends Error{static from(r,u,c,f,d,h){let g=r.message;!g&&A.isArray(r.errors)&&r.errors.length&&(g=kj(r));const m=new Fy(g,u||r.code,c,f,d);return Object.defineProperty(m,"cause",{__proto__:null,value:r,writable:!0,enumerable:!1,configurable:!0}),m.name=r.name,Fj(m,r),r.status!=null&&m.status==null&&(m.status=r.status),h&&Object.assign(m,h),m}constructor(r,u,c,f,d){super(r),Object.defineProperty(this,"message",{__proto__:null,value:r,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),c&&(this.config=c),f&&(this.request=f),d&&(this.response=d,this.status=d.status)}toJSON(){const r=this.config,u=r&&A.hasOwnProp(r,"redact")?r.redact:void 0,c=A.isArray(u)&&u.length>0?qj(r,u):A.toJSONObject(r);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c,code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";me.ERR_BAD_OPTION="ERR_BAD_OPTION";me.ECONNABORTED="ECONNABORTED";me.ETIMEDOUT="ETIMEDOUT";me.ECONNREFUSED="ECONNREFUSED";me.ERR_NETWORK="ERR_NETWORK";me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";me.ERR_DEPRECATED="ERR_DEPRECATED";me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";me.ERR_BAD_REQUEST="ERR_BAD_REQUEST";me.ERR_CANCELED="ERR_CANCELED";me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";me.ERR_INVALID_URL="ERR_INVALID_URL";me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Vj=null,Vy=100;function Ah(l){return A.isPlainObject(l)||A.isArray(l)}function Qy(l){return A.endsWith(l,"[]")?l.slice(0,-2):l}function Kd(l,r,u){return l?l.concat(r).map(function(f,d){return f=Qy(f),!u&&d?"["+f+"]":f}).join(u?".":""):r}function Qj(l){return A.isArray(l)&&!l.some(Ah)}const $j=A.toFlatObject(A,{},null,function(r){return/^is[A-Z]/.test(r)});function Ju(l,r,u){if(!A.isObject(l))throw new TypeError("target must be an object");r=r||new FormData;const c=(_,F)=>{const L=A.getSafeProp(u,_);return A.isUndefined(L)?F:L},f=c("metaTokens",!0),d=c("visitor")||J,h=c("dots",!1),g=c("indexes",!1),m=c("Blob")||typeof Blob<"u"&&Blob,b=c("maxDepth",Vy),E=m&&A.isSpecCompliantForm(r),x=[];if(!A.isFunction(d))throw new TypeError("visitor must be a function");function v(_){if(_===null)return"";if(A.isDate(_))return _.toISOString();if(A.isBoolean(_))return _.toString();if(!E&&A.isBlob(_))throw new me("Blob is not supported. Use a Buffer instead.");if(A.isArrayBuffer(_)||A.isTypedArray(_)){if(E&&typeof m=="function")return new m([_]);throw new me("Blob is not supported. Use a Buffer instead.",me.ERR_NOT_SUPPORT)}return _}function R(_){if(_>b)throw new me("Object is too deeply nested ("+_+" levels). Max depth: "+b,me.ERR_FORM_DATA_DEPTH_EXCEEDED)}function G(_,F){if(b===1/0)return JSON.stringify(_);const L=[];return JSON.stringify(_,function(X,S){if(!A.isObject(S))return S;for(;L.length&&L[L.length-1]!==this;)L.pop();return L.push(S),R(F+L.length-1),S})}function J(_,F,L){let I=_;if(A.isReactNative(r)&&A.isReactNativeBlob(_))return r.append(Kd(L,F,h),v(_)),!1;if(_&&!L&&typeof _=="object"){if(A.endsWith(F,"{}"))F=f?F:F.slice(0,-2),_=G(_,1);else if(A.isArray(_)&&Qj(_)||(A.isFileList(_)||A.endsWith(F,"[]"))&&(I=A.toArray(_)))return F=Qy(F),I.forEach(function(S,O){!(A.isUndefined(S)||S===null)&&r.append(g===!0?Kd([F],O,h):g===null?F:F+"[]",v(S))}),!1}return Ah(_)?!0:(r.append(Kd(L,F,h),v(_)),!1)}const $=Object.assign($j,{defaultVisitor:J,convertValue:v,isVisitable:Ah});function ie(_,F,L=0){if(!A.isUndefined(_)){if(R(L),x.indexOf(_)!==-1)throw new Error("Circular reference detected in "+F.join("."));x.push(_),A.forEach(_,function(X,S){(!(A.isUndefined(X)||X===null)&&d.call(r,X,A.isString(S)?S.trim():S,F,$))===!0&&ie(X,F?F.concat(S):[S],L+1)}),x.pop()}}if(!A.isObject(l))throw new TypeError("data must be an object");return ie(l),r}function l1(l){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(l).replace(/[!'()~]|%20/g,function(c){return r[c]})}function Ih(l,r){this._pairs=[],l&&Ju(l,this,r)}const $y=Ih.prototype;$y.append=function(r,u){this._pairs.push([r,u])};$y.toString=function(r){const u=r?c=>r.call(this,c,l1):l1;return this._pairs.map(function(f){return u(f[0])+"="+u(f[1])},"").join("&")};function Xj(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xy(l,r,u){if(!r)return l;l=l||"";const c=A.isFunction(u)?{serialize:u}:u,f=A.getSafeProp(c,"encode")||Xj,d=A.getSafeProp(c,"serialize");let h;if(d?h=d(r,c):h=A.isURLSearchParams(r)?r.toString():new Ih(r,c).toString(f),h){const g=l.indexOf("#");g!==-1&&(l=l.slice(0,g)),l+=(l.indexOf("?")===-1?"?":"&")+h}return l}const ls=Symbol("internals");function Zy(l){return l?l.length:0}function a1(l){if(l)for(;l.length&&l[l.length-1]===null;)l.pop()}function Zj(l){return typeof l=="string"&&l!==""&&String(Number(l))===l?Number(l):l}function as(l,r){const u=l.handlers,c=Zy(u);u!==r.handlersRef?(r.handlersRef=u,r.handlerEntries.clear()):c!==r.handlersLength&&(c?r.handlerEntries.forEach(function(d,h){u[d.index]!==d.handler&&r.handlerEntries.delete(h)}):r.handlerEntries.clear()),r.handlersLength=c}class r1{constructor(){this.handlers=[],this[ls]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(r,u,c){const f={fulfilled:r,rejected:u,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null},d=this[ls];this.handlers==null&&(this.handlers=[]),as(this,d);const h=d.nextId++;return this.handlers.push(f),d.handlerEntries.set(h,{handler:f,index:this.handlers.length-1}),d.handlersLength=this.handlers.length,h}eject(r){const u=this[ls];as(this,u);const c=Zj(r),f=u.handlerEntries.get(c);if(f){if(u.handlerEntries.delete(c),this.handlers[f.index]!==f.handler)return;this.handlers[f.index]=null,u.iterationDepth||(a1(this.handlers),u.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],as(this,this[ls]))}forEach(r){const u=this[ls];as(this,u),u.iterationDepth++;try{A.forEach(this.handlers,function(f){f!==null&&r(f)})}finally{--u.iterationDepth||(as(this,u),a1(this.handlers),u.handlersLength=Zy(this.handlers))}}}const Jh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},Kj=typeof URLSearchParams<"u"?URLSearchParams:Ih,Ij=typeof FormData<"u"?FormData:null,Jj=typeof Blob<"u"?Blob:null,Pj={isBrowser:!0,classes:{URLSearchParams:Kj,FormData:Ij,Blob:Jj},protocols:["http","https","file","blob","url","data"]},Ph=typeof window<"u"&&typeof document<"u",Rh=typeof navigator=="object"&&navigator||void 0,Wj=Ph&&(!Rh||["ReactNative","NativeScript","NS"].indexOf(Rh.product)<0),e4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",t4=Ph&&window.location.href||"http://localhost",n4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ph,hasStandardBrowserEnv:Wj,hasStandardBrowserWebWorkerEnv:e4,navigator:Rh,origin:t4},Symbol.toStringTag,{value:"Module"})),St={...n4,...Pj};function l4(l,r){return Ju(l,new St.classes.URLSearchParams,{visitor:function(u,c,f,d){return St.isNode&&A.isBuffer(u)?(this.append(c,u.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)},...r})}const i1=Vy;function Ky(l){if(l>i1)throw new me("FormData field is too deeply nested ("+l+" levels). Max depth: "+i1,me.ERR_FORM_DATA_DEPTH_EXCEEDED)}function a4(l){const r=[],u=/[^.[\]]+|\[([^.[\]]*)]/g;let c;for(;(c=u.exec(l))!==null;)Ky(r.length),r.push(c[0]==="[]"?"":c[1]||c[0]);return r}function Iy(l){const r={},u=Object.keys(l);let c;const f=u.length;let d;for(c=0;c<f;c++)d=u[c],r[d]=l[d];return r}function Jy(l){if(!A.isArray(l))return l;const r=Object.keys(l);return r.length!==l.length||r.some((u,c)=>u!==String(c))?Iy(l):l}function r4(l){const r=[l];for(;r.length;){const u=r.pop();Object.keys(u).forEach(c=>{const f=u[c]=Jy(u[c]);(A.isArray(f)||A.isPlainObject(f))&&r.push(f)})}return l}function Py(l){function r(u,c,f,d){Ky(d);let h=u[d++];if(h==="__proto__")return!0;const g=Number.isFinite(+h),m=d>=u.length;return h=!h&&A.isArray(f)?f.length:h,m?(A.hasOwnProp(f,h)?(f[h]=Jy(f[h]),f[h]=A.isArray(f[h])?f[h].concat(c):[f[h],c]):f[h]=c,!g):((!A.hasOwnProp(f,h)||!A.isObject(f[h]))&&(f[h]=[]),r(u,c,f[h],d)&&A.isArray(f[h])&&(f[h]=Iy(f[h])),!g)}if(A.isFormData(l)&&A.isFunction(l.entries)){const u={};return A.forEachEntry(l,(c,f)=>{r(a4(c),f,u,0)}),r4(u)}return null}const Wy=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),qr=(l,r)=>l!=null&&A.hasOwnProp(l,r)?l[r]:void 0;function i4(l,r,u){if(A.isString(l))try{return(r||JSON.parse)(l),A.trim(l)}catch(c){if(c.name!=="SyntaxError")throw c}return(u||JSON.stringify)(l)}const Rs={transitional:Jh,adapter:["xhr","http","fetch"],transformRequest:[function(r,u){const c=u.getContentType()||"",f=c.indexOf("application/json")>-1,d=A.isObject(r);if(d&&A.isHTMLForm(r)&&(r=new FormData(r)),A.isFormData(r))return f?JSON.stringify(Py(r)):r;if(A.isArrayBuffer(r)||A.isBuffer(r)||A.isStream(r)||A.isFile(r)||A.isBlob(r)||A.isReadableStream(r))return r;if(A.isArrayBufferView(r))return r.buffer;if(A.isURLSearchParams(r))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let g;if(d){const m=qr(this,"formSerializer");if(c.indexOf("application/x-www-form-urlencoded")>-1)return l4(r,m).toString();if((g=A.isFileList(r))||c.indexOf("multipart/form-data")>-1){const b=qr(this,"env"),E=b&&b.FormData;return Ju(g?{"files[]":r}:r,E&&new E,m)}}return d||f?(u.setContentType("application/json",!1),i4(r)):r}],transformResponse:[function(r){const u=qr(this,"transitional")||Rs.transitional,c=u&&u.forcedJSONParsing,f=qr(this,"responseType"),d=f==="json";if(A.isResponse(r)||A.isReadableStream(r))return r;if(r&&A.isString(r)&&(c&&!f||d)){const g=!(u&&u.silentJSONParsing)&&d;try{return JSON.parse(r,qr(this,"parseReviver"))}catch(m){if(g)throw m.name==="SyntaxError"?me.from(m,me.ERR_BAD_RESPONSE,this,null,qr(this,"response")):m}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:St.classes.FormData,Blob:St.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(Wy,l=>{Rs.headers[l]={}});function Id(l,r){const u=this||Rs,c=r||u,f=Ot.from(c.headers);let d=c.data;return A.forEach(l,function(g){d=g.call(u,d,f.normalize(),r?r.status:void 0)}),f.normalize(),d}function eb(l){return!!(l&&l.__CANCEL__)}let _s=class extends me{constructor(r,u,c){super(r??"canceled",me.ERR_CANCELED,u,c),this.name="CanceledError",this.__CANCEL__=!0}};function tb(l,r,u){const c=u.config.validateStatus;!u.status||!c||c(u.status)?l(u):r(new me("Request failed with status code "+u.status,u.status>=400&&u.status<500?me.ERR_BAD_REQUEST:me.ERR_BAD_RESPONSE,u.config,u.request,u))}const s4=/[\t\n\r]/g;function nb(l){if(typeof l!="string")return l;let r=0;for(;r<l.length&&l.charCodeAt(r)<=32;)r++;return l.slice(r).replace(s4,"")}function Jd(l){const r=/^([-+\w]{1,25}):(?:\/\/)?/.exec(l);return r&&r[1].toLowerCase()||""}const s1=l=>{try{return decodeURIComponent(l)}catch{return l}},lb=St.hasStandardBrowserEnv?{write(l,r,u,c,f,d,h){if(typeof document>"u")return;const g=[`${l}=${encodeURIComponent(r)}`];A.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),A.isString(c)&&g.push(`path=${c}`),A.isString(f)&&g.push(`domain=${f}`),d===!0&&g.push("secure"),A.isString(h)&&g.push(`SameSite=${h}`),document.cookie=g.join("; ")},read(l){if(typeof document>"u")return null;const r=document.cookie;if(!r)return null;const u=r.split(";");for(let c=0;c<u.length;c++){const f=u[c].replace(/^\s+/,""),d=f.indexOf("=");if(d!==-1&&f.slice(0,d)===l)return s1(f.slice(d+1))}return null},async readAsync(l){try{const r=typeof window<"u"&&window.cookieStore;if(r&&A.isFunction(r.get)){const u=await r.get(l);return u?s1(u.value):null}}catch{}return this.read(l)},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},async readAsync(){return null},remove(){}};function o4(l,r){l=l||10;const u=new Array(l),c=new Array(l);let f=0,d=0,h;return r=r!==void 0?r:1e3,function(m){const b=Date.now(),E=c[d];h||(h=b),u[f]=m,c[f]=b;let x=d,v=0;for(;x!==f;)v+=u[x++],x=x%l;if(f=(f+1)%l,f===d&&(d=(d+1)%l),b-h<r)return;const R=E&&b-E;return R?Math.round(v*1e3/R):void 0}}function u4(l,r){let u=0,c=1e3/r,f,d;const h=(E,x=Date.now())=>{u=x,f=null,d&&(clearTimeout(d),d=null),l(...E)};return[(...E)=>{const x=Date.now(),v=x-u;v>=c?h(E,x):(f=E,d||(d=setTimeout(()=>{d=null,h(f)},c-v)))},()=>f&&h(f),(...E)=>h(E)]}const ku=(l,r,u=3)=>{let c=0;const f=o4(50,250);return u4(d=>{if(!d||!A.isNumber(d.loaded))return;const h=d.loaded,g=d.lengthComputable?d.total:void 0,m=Math.max(0,g!=null?Math.min(h,g):h),b=Math.max(0,m-c),E=f(b);c=Math.max(c,m);const x={loaded:m,total:g,progress:g?m/g:void 0,bytes:b,rate:E||void 0,estimated:E&&g?(g-m)/E:void 0,event:d,lengthComputable:g!=null,[r?"download":"upload"]:!0};l(x)},u)},o1=(l,r)=>{const u=l!=null;return[c=>r[0]({lengthComputable:u,total:l,loaded:c}),r[1]]},u1=(l,r=A.asap)=>(...u)=>r(()=>l(...u)),c4=St.hasStandardBrowserEnv?(l=>r=>(r=new URL(r,document.baseURI||St.origin),l.protocol===r.protocol&&l.host===r.host&&l.port===r.port))(new URL(St.origin)):()=>!0;function f4(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function d4(l,r){if(!r)return l;let u=l.length;for(;u>0&&l.charCodeAt(u-1)===47;)u--;return l.slice(0,u)+"/"+r.replace(/^\/+/,"")}const h4=/^https?:(?!\/\/)/i;function p4(l){return l&&l.replace(/(^|&)([^=&]*=)?[^&]+/g,(r,u,c="")=>`${u}${c}${qu}`)}function g4(l){const r=l.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${qu}@`),u=r.indexOf("#"),f=(u===-1?r:r.slice(0,u)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${qu}`);return u===-1?f:`${f}#${p4(r.slice(u+1))}`}function c1(l,r){if(typeof l=="string"){const u=nb(l);if(h4.test(u))throw new me(`Invalid URL ${JSON.stringify(g4(u))}: missing "//" after protocol`,me.ERR_INVALID_URL,r)}}function ab(l,r,u,c){c1(r,c);let f=!f4(r);return l&&(f||u===!1)?(c1(l,c),d4(l,r)):r}function m4(l){const r=[{value:l}],u=new WeakSet,c=new WeakSet;for(;r.length;){const{value:f,done:d}=r.pop();if(!A.isPlainObject(f)&&!A.isArray(f))continue;if(d){u.delete(f);continue}if(u.has(f))throw new me("Circular reference detected in params",me.ERR_BAD_OPTION_VALUE);if(c.has(f))continue;c.add(f),u.add(f),r.push({value:f,done:!0});const h=Object.keys(f);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(f).forEach(g=>{const m=Object.getOwnPropertyDescriptor(f,g);m&&m.enumerable&&h.push(g)}),h.forEach(g=>{if(g==="__proto__"||g==="constructor"||g==="prototype"){const m=Object.getOwnPropertyDescriptor(f,g);m&&A.hasOwnProp(m,"value")&&r.push({value:m.value})}else r.push({value:f[g]})})}}const f1=l=>l instanceof Ot?{...l}:l,_h=l=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(l).concat(Object.getOwnPropertySymbols(l).filter(r=>{const u=Object.getOwnPropertyDescriptor(l,r);return u&&u.enumerable})):Object.keys(l);function x4(l,r){const u=[],c=new WeakMap,f={};function d(g,m){if(!A.isPlainObject(m))return A.isArray(m)?m.slice():m;const b=A.isPlainObject(g)?g:f;let E=c.get(m);if(E||(E=new WeakMap,c.set(m,E)),E.has(b))return E.get(b);const x={};return E.set(b,x),u.push({base:b,source:m,result:x}),x}const h=A.isUndefined(r)?d(void 0,l):d(l,r);for(;u.length;){const{base:g,source:m,result:b}=u.pop(),E=new Set(_h(g)),x=new Set(_h(m));new Set([...E,...x]).forEach(R=>{if(R==="__proto__"||R==="constructor"||R==="prototype")return;const G=x.has(R),J=G?m[R]:void 0,$=(!G||A.isPlainObject(J))&&E.has(R)?g[R]:void 0;b[R]=G?d($,J):d(void 0,$)})}return m4(h),h}function ca(l,r,u,c){return A.isPlainObject(l)&&A.isPlainObject(r)?A.merge.call({caseless:c},l,r):A.isPlainObject(r)?A.merge({},r):A.isArray(r)?r.slice():r}function rb(l,r,u,c){if(A.isUndefined(r)){if(!A.isUndefined(l))return ca(void 0,l,u,c)}else return ca(l,r,u,c)}function Pd(l,r){if(!A.isUndefined(r))return ca(void 0,r)}function it(l,r){if(A.isUndefined(r)){if(!A.isUndefined(l))return ca(void 0,l)}else return ca(void 0,r)}function y4(l,r,u){const c=A.hasOwnProp(r,"transitional")?r.transitional:void 0;if(!A.isUndefined(c))if(A.isPlainObject(c)){if(A.hasOwnProp(c,u))return c[u]}else return;const f=A.hasOwnProp(l,"transitional")?l.transitional:void 0;if(A.isPlainObject(f)&&A.hasOwnProp(f,u))return f[u]}function Nh(l,r,u,c,f){if(A.hasOwnProp(f,u))return ca(l,r);if(A.hasOwnProp(c,u))return ca(void 0,l)}function b4(l,r,u){return rb(f1(l),f1(r),u,!0)}const v4=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),d1={url:Pd,method:Pd,data:Pd,baseURL:it,transformRequest:it,transformResponse:it,params:x4,paramsSerializer:it,timeout:it,timeoutErrorMessage:it,withCredentials:it,withXSRFToken:it,adapter:it,responseType:it,xsrfCookieName:it,xsrfHeaderName:it,onUploadProgress:it,onDownloadProgress:it,decompress:it,maxContentLength:it,maxBodyLength:it,beforeRedirect:it,transport:it,httpAgent:it,httpsAgent:it,cancelToken:it,socketPath:it,allowedSocketPaths:it,responseEncoding:it,validateStatus:Nh,headers:b4};function $a(l,r){l=l||{},r=r||{};const u=Object.create(null);Object.defineProperty(u,"hasOwnProperty",v4);const c=_h({...l,...r});for(let f=0,d=c.length;f<d;f++){const h=c[f];if(h==="__proto__"||h==="constructor"||h==="prototype")continue;const g=A.hasOwnProp(d1,h)?d1[h]:rb,m=A.hasOwnProp(l,h)?l[h]:void 0,b=A.hasOwnProp(r,h)?r[h]:void 0,E=g===Nh?g(m,b,h,l,r):g(m,b,h);A.isUndefined(E)&&g!==Nh||(u[h]=E)}return A.hasOwnProp(r,"validateStatus")&&A.isUndefined(r.validateStatus)&&y4(l,r,"validateStatusUndefinedResolves")===!1&&(A.hasOwnProp(l,"validateStatus")?u.validateStatus=ca(void 0,l.validateStatus):delete u.validateStatus),u}const S4=["content-type","content-length"];function j4(l,r,u){if(u!=="content-only"){l.set(r);return}Object.entries(r||{}).forEach(([c,f])=>{S4.includes(c.toLowerCase())&&l.set(c,f)})}const h1=l=>encodeURIComponent(l).replace(/%([0-9A-F]{2})/gi,(r,u)=>String.fromCharCode(parseInt(u,16))),E4=l=>lb.read(l);function ib(l,r=E4){const u=$a({},l),c=R=>A.hasOwnProp(u,R)?u[R]:void 0,f=c("data");let d=c("withXSRFToken");const h=c("xsrfHeaderName"),g=c("xsrfCookieName");let m=c("headers");const b=c("auth"),E=c("baseURL"),x=c("allowAbsoluteUrls"),v=c("url");if(u.headers=m=Ot.from(m),u.url=Xy(ab(E,v,x,u),c("params"),c("paramsSerializer")),b){const R=A.getSafeProp(b,"username")||"",G=A.getSafeProp(b,"password")||"",J=c("transitional"),$=J&&A.hasOwnProp(J,"encodeBasicAuthUsername")&&J.encodeBasicAuthUsername===!0;try{m.set("Authorization","Basic "+btoa(($?h1(R):R)+":"+(G?h1(G):"")))}catch(ie){throw me.from(ie,me.ERR_BAD_OPTION_VALUE,l)}}if(A.isFormData(f)){const R=A.getSafeProp(f,"getHeaders");St.hasStandardBrowserEnv||St.hasStandardBrowserWebWorkerEnv||A.isReactNative(f)?m.setContentType(void 0):A.isFunction(R)&&j4(m,R.call(f),c("formDataHeaderPolicy"))}if(St.hasStandardBrowserEnv&&(A.isFunction(d)&&(d=d(u)),d===!0||d==null&&c4(u.url))){const G=h&&g&&r(g);G&&m.set(h,G)}return u}const T4=typeof XMLHttpRequest<"u",w4=T4&&function(l){return new Promise(function(u,c){let f;try{const O=St.hasStandardBrowserEnv&&typeof window<"u"&&window.cookieStore;f=O&&A.isFunction(O.get)}catch{}let d;const h=ib(l,f?O=>(d=O,null):void 0);let g=h.data;const m=Ot.from(h.headers).normalize();let{responseType:b,onUploadProgress:E,onDownloadProgress:x}=h,v,R,G,J,$,ie,_;function F(){clearTimeout(R);try{$&&$()}catch(O){setTimeout(()=>{throw O})}try{ie&&ie()}catch(O){setTimeout(()=>{throw O})}L&&(J&&L.removeEventListener("progress",J),L.upload&&(G&&L.upload.removeEventListener("progress",G),$&&L.upload.removeEventListener("loadend",$))),h.cancelToken&&h.cancelToken.unsubscribe(v),h.signal&&h.signal.removeEventListener("abort",v)}let L=new XMLHttpRequest;L.open(h.method.toUpperCase(),h.url,!0),L.timeout=h.timeout;function I(O){if(!L)return;if(L.status===0&&(Jd(nb(h.url))||Jd(St.origin))!=="file"&&!(L.responseURL&&L.responseURL.startsWith("file:"))){c(new me("Request aborted",me.ECONNABORTED,l,L)),F(),L=null;return}try{O?_&&_(O):ie&&ie()}catch(w){setTimeout(()=>{throw w})}if(!L)return;const z=Ot.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),j={data:!b||b==="text"||b==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:z,config:l,request:L};tb(function(M){u(M),F()},function(M){c(M),F()},j),L=null}if("onloadend"in L?L.onloadend=I:L.onreadystatechange=function(){!L||L.readyState!==4||L.status===0&&!(L.responseURL&&L.responseURL.startsWith("file:"))||setTimeout(I)},L.onabort=function(){L&&(c(new me("Request aborted",me.ECONNABORTED,l,L)),F(),L=null)},L.onerror=function(z){const N=z&&z.message?z.message:"Network Error",j=new me(N,me.ERR_NETWORK,l,L);j.event=z||null,c(j),F(),L=null},L.ontimeout=function(){if(!L)return;let z=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded";const N=h.transitional||Jh;h.timeoutErrorMessage&&(z=h.timeoutErrorMessage),c(new me(z,N.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,l,L)),F(),L=null},g===void 0&&m.setContentType(null),A.isUndefined(h.withCredentials)||(L.withCredentials=!!h.withCredentials),b&&b!=="json"&&(L.responseType=h.responseType),x&&([J,ie,_]=ku(x,!0),L.addEventListener("progress",J)),E&&L.upload&&([G,$]=ku(E),L.upload.addEventListener("progress",G),L.upload.addEventListener("loadend",$)),h.cancelToken||h.signal){if(v=O=>{if(!L)return;c(!O||O.type?new _s(null,l,L):O);const z=L;F(),L=null,z.abort()},h.cancelToken&&h.cancelToken.subscribe(v),!L)return;h.signal&&(h.signal.aborted?v():h.signal.addEventListener("abort",v))}if(!L)return;const X=Jd(h.url);if(X&&!St.protocols.includes(X)){c(new me("Unsupported protocol "+X+":",me.ERR_BAD_REQUEST,l)),F();return}const S=()=>{L&&("setRequestHeader"in L&&A.forEach(Yy(m),function(z,N){L.setRequestHeader(N,z)}),L.send(g||null))};if(d){const O=typeof performance<"u"&&A.isFunction(performance.now)?()=>performance.now():Date.now,z=L.timeout>0?O()+Number(L.timeout):void 0,N=()=>{if(!L)return;const j=L;j.ontimeout(),j.abort()};if(z!==void 0){const j=()=>{const w=z-O();w>0?R=setTimeout(j,Math.min(w,2147483647)):N()};j()}lb.readAsync(d).then(j=>{if(L){if(z!==void 0&&O()>=z){N();return}if(j){const w=A.hasOwnProp(h,"xsrfHeaderName")&&h.xsrfHeaderName;m.set(w,j)}S()}}).catch(j=>{L&&(c(me.from(j,null,l,L)),F(),L=null)})}else S()})},O4=(l,r)=>{if(l=l?l.filter(Boolean):[],!r&&!l.length)return;const u=new AbortController;let c=!1;const f=function(m){if(!c){c=!0,h();const b=m instanceof Error?m:this.reason;u.abort(b instanceof me?b:new _s(b instanceof Error?b.message:b))}};let d=r&&setTimeout(()=>{d=null,f(new me(`timeout of ${r}ms exceeded`,me.ETIMEDOUT))},r);const h=()=>{l&&(d&&clearTimeout(d),d=null,l.forEach(m=>{const b=A.getSafeProp(m,"unsubscribe");A.isFunction(b)?b.call(m,f):m.removeEventListener("abort",f)}),l=null)};l.forEach(m=>{if(!c){if(m.aborted){f.call(m);return}m.addEventListener("abort",f,{once:!0})}});const{signal:g}=u;return g.unsubscribe=()=>A.asap(h),g},C4=function*(l,r){let u=l.byteLength;if(u<r){yield l;return}let c=0,f;for(;c<u;)f=c+r,yield l.slice(c,f),c=f},A4=async function*(l,r){for await(const u of R4(l))yield*C4(u,r)},R4=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const r=l.getReader();try{for(;;){const{done:u,value:c}=await r.read();if(u)break;yield c}}finally{await r.cancel()}},p1=(l,r,u,c)=>{const f=A4(l,r);let d=0,h,g=m=>{h||(h=!0,c&&c(m))};return new ReadableStream({async pull(m){try{const{done:b,value:E}=await f.next();if(b){g(),m.close();return}let x=E.byteLength;if(u){let v=d+=x;u(v)}m.enqueue(new Uint8Array(E))}catch(b){throw g(b),b}},cancel(m){return g(m),f.return()}},{highWaterMark:2})},ra=`\r
|
|
66
|
+
`,g1=l=>String(l).replace(/\r\n|\r|\n/g,ra),m1=l=>String(l).replace(/[\r\n"]/g,r=>r==="\r"?"%0D":r===`
|
|
67
|
+
`?"%0A":"%22"),rs=(l,r)=>{let u=0;for(let c=0;c<l.length;c++){const f=l.charCodeAt(c);r&&(f===13||f===10)?(f===13&&l.charCodeAt(c+1)===10&&c++,u+=2):f<128?u++:f<2048?u+=2:f>=55296&&f<=56319&&l.charCodeAt(c+1)>=56320&&l.charCodeAt(c+1)<=57343?(u+=4,c++):u+=3}return u};class wu extends TypeError{constructor(r,u){super(r),this.name="FormDataError",this.reason=u}}function _4(l,r,u,c,f){if(!A.isFunction(r))throw new wu("Blob is not supported","blob");if(!A.isString(f)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(f)||/ $/.test(f))throw new wu("Invalid multipart boundary","boundary");const d="--"+f+"--"+ra;let h=d.length;const g=[],m=E=>{if(h+E>u)throw c()};m(0);for(const[E,x]of l){const v=A.isString(x),R=v?rs(x,!0):x.size;if(!Number.isFinite(R)||R<0)throw new wu("Unsupported FormData part size","part");m(R+rs(E,!0)+(!v&&x.name?rs(x.name,!1):0)+(!v&&x.type?rs(x.type,!1):0));let G="--"+f+ra+'Content-Disposition: form-data; name="'+m1(g1(E))+'"';v||(G+='; filename="'+m1(A.isString(x.name)?x.name:"blob")+'"'+ra+"Content-Type: "+String(x.type||"application/octet-stream").replace(/[\r\n]/g,"")),G+=ra+ra;const J=rs(G,!1)+R+ra.length;m(J),h+=J,g.push({header:G,value:x,isString:v})}const b=[];for(const E of g)b.push(E.header,E.isString?g1(E.value):E.value,ra);return b.push(d),new r(b,{type:"multipart/form-data; boundary="+f})}function N4(l,r,u,c,f){if(!A.isFunction(r))throw new me("Blob is not supported",me.ERR_NOT_SUPPORT);if(f===void 0)if(A.isFunction(St.generateString))f="axios-"+St.generateString(36,"0123456789abcdef");else{const d=A.global.crypto;if(!d||!A.isFunction(d.getRandomValues))throw new me("Random byte generation is not supported",me.ERR_NOT_SUPPORT);const h=new Uint8Array(18);d.getRandomValues(h),f="axios-"+Array.from(h,g=>("0"+g.toString(16)).slice(-2)).join("")}try{return _4(l,r,u,c,f)}catch(d){if(d instanceof wu){const h=d.reason==="boundary"?me.ERR_BAD_OPTION_VALUE:me.ERR_BAD_REQUEST;throw new me(d.message,h)}throw d}}const x1=l=>l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102,sb=(l,r,u)=>r+2<u&&x1(l.charCodeAt(r+1))&&x1(l.charCodeAt(r+2)),y1=l=>l<=57?l-48:(l&223)-55,M4=l=>l>=65&&l<=90||l>=97&&l<=122||l>=48&&l<=57||l===43||l===47||l===45||l===95,D4=l=>l===9||l===10||l===12||l===13||l===32,z4=l=>{const r=Math.floor(l/4),u=l%4;return r*3+(u===2?1:u===3?2:0)},B4=l=>{const r=l.length;let u=0;return r>0&&l.charCodeAt(r-1)===61&&(u++,r>1&&l.charCodeAt(r-2)===61&&u++),Math.floor((r-u)*3/4)},L4=l=>{const r=l.length;let u=0,c=0,f=!1;for(let d=0;d<r;d++){let h=l.charCodeAt(d);if(h===37&&sb(l,d,r)&&(h=y1(l.charCodeAt(d+1))*16+y1(l.charCodeAt(d+2)),d+=2),!D4(h)){if(h===61){c++;continue}if(!M4(h)||c>0){f=!0;continue}u++}}return f||c>2||c>0&&(u+c)%4!==0||u%4===1?B4(l):z4(u)},U4=(l,r,u)=>{if(!l||typeof l!="string"||!/^data:/i.test(l))return 0;const c=l.indexOf(",");if(c<0)return 0;const f=l.slice(5,c),d=l.slice(c+1);if(u.test(f))return r(d);let g=0;for(let m=0,b=d.length;m<b;m++){const E=d.charCodeAt(m);if(E===37&&sb(d,m,b))g+=1,m+=2;else if(E<128)g+=1;else if(E<2048)g+=2;else if(E>=55296&&E<=56319&&m+1<b){const x=d.charCodeAt(m+1);x>=56320&&x<=57343?(g+=4,m++):g+=3}else g+=3}return g};function H4(l){const r=typeof l=="string"?l.indexOf("#"):-1;return U4(r===-1?l:l.slice(0,r),L4,/; *base64[\t\n\f\r ]*$/i)}const Wh="1.21.1",b1=64*1024,v1={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:iu}=A,q4=l=>encodeURIComponent(l).replace(/%([0-9A-F]{2})/gi,(r,u)=>String.fromCharCode(parseInt(u,16))),S1=l=>{if(!A.isString(l))return l;try{return decodeURIComponent(l)}catch{return l}},su=(l,...r)=>{try{return!!l(...r)}catch{return!1}},k4=l=>{const r=l.indexOf("://");let u=l;return r!==-1&&(u=u.slice(r+3)),u.includes("@")||u.includes(":")},G4=l=>{const r=A.global!==void 0&&A.global!==null?A.global:globalThis,{ReadableStream:u,TextEncoder:c}=r;l=A.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response,Blob:r.Blob},l);const f=A.hasOwnProp(l,"fetch")?l.fetch:void 0,{Request:d,Response:h,Blob:g}=l,m=f?iu(f):typeof fetch=="function",b=iu(d),E=iu(h);if(!m)return!1;const x=m&&iu(u),v=m&&(typeof c=="function"?(F=>L=>F.encode(L))(new c):async F=>new Uint8Array(await new d(F).arrayBuffer())),R=b&&x&&su(()=>{let F=!1;const L=new d(St.origin,{body:new u,method:"POST",get duplex(){return F=!0,"half"}}),I=L.headers.has("Content-Type");return L.body!=null&&L.body.cancel(),F&&!I}),G=E&&x&&su(()=>A.isReadableStream(new h("").body)),J=Object.assign(Object.create(null),v1);b&&!su(()=>new d(St.origin,J))&&(delete J.cache,su(()=>new d(St.origin,J))||(J.cache=v1.cache));const $={stream:G&&(F=>F.body)};m&&["text","arrayBuffer","blob","formData","stream"].forEach(F=>{!$[F]&&($[F]=(L,I)=>{let X=L&&L[F];if(X)return X.call(L);throw new me(`Response type '${F}' is not supported`,me.ERR_NOT_SUPPORT,I)})});const ie=async F=>{if(F==null)return 0;if(A.isBlob(F))return F.size;if(A.isArrayBufferView(F)||A.isArrayBuffer(F))return F.byteLength;if(A.isURLSearchParams(F)&&(F=F+""),A.isString(F))return(await v(F)).byteLength},_=async(F,L)=>{const I=A.toFiniteNumber(F.getContentLength());return I??ie(L)};return async F=>{let{url:L,method:I,data:X,signal:S,cancelToken:O,timeout:z,onDownloadProgress:N,onUploadProgress:j,responseType:w,headers:M,withCredentials:ee="same-origin",fetchOptions:te,maxContentLength:U,maxBodyLength:se,maxRedirects:he}=ib(F);const Se=A.isNumber(U)&&U>-1,je=A.isNumber(se)&&se>-1,Ne=B=>A.hasOwnProp(F,B)?F[B]:void 0;let re=f||fetch;w=w?(w+"").toLowerCase():"text";let Ee=O4([S,O&&O.toAbortSignal()],z),T=null;const ce=Ee&&Ee.unsubscribe&&(()=>{Ee.unsubscribe()});let ge,ve=null,K=null;const ae=()=>new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,F,T);try{let B;const Y=Ne("auth");if(Y){const _e=A.getSafeProp(Y,"username")||"",rt=A.getSafeProp(Y,"password")||"";B={username:_e,password:rt}}let ne;if(k4(L)){if(ne=new URL(L,St.origin),!B&&(ne.username||ne.password)){const _e=S1(ne.username),rt=S1(ne.password);B={username:_e,password:rt}}(ne.username||ne.password)&&(ne.username="",ne.password="",L=ne.href)}if(B&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(q4((B.username||"")+":"+(B.password||""))))),Se&&ne&&ne.protocol==="data:"&&H4(ne.href)>U)throw new me("maxContentLength size of "+U+" exceeded",me.ERR_BAD_RESPONSE,F,T);const xe=A.isSpecCompliantForm(X)&&Ot.from(Ne("headers")).getContentType();let Ce;if(A.isString(xe)&&/^multipart\/form-data(?:\s*;|$)/i.test(xe.trim())){const _e=Ot.parseParameters(xe);A.hasOwnProp(_e,"boundary")&&(Ce=_e.boundary)}if(A.isSpecCompliantForm(X)&&I!=="get"&&I!=="head"&&(je||j&&R||Ce!==void 0)&&(X=N4(X,g,je?se:1/0,ae,Ce),M.setContentType(Ce===void 0?X.type:xe),ge=X.size),je&&I!=="get"&&I!=="head"){const _e=await ie(X);if(typeof _e=="number"&&isFinite(_e)&&(ge=_e,_e>se))throw ae()}const Oe=je&&(A.isReadableStream(X)||A.isStream(X)),Ue=(_e,rt,Dn)=>p1(_e,b1,zn=>{if(je&&zn>se)throw ve=ae();rt&&rt(zn)},Dn);if(R&&I!=="get"&&I!=="head"&&(j||Oe)){if(ge=ge??await _(M,X),ge!==0||Oe){let _e=new d(L,{method:"POST",body:X,duplex:"half"}),rt;if(A.isFormData(X)&&(rt=_e.headers.get("content-type"))&&M.setContentType(rt),_e.body){const[Dn,zn]=j&&o1(ge,ku(u1(j)))||[];X=Ue(_e.body,Dn,zn)}}}else if(Oe&&!b&&x&&I!=="get"&&I!=="head")X=Ue(X);else if(Oe&&b&&!R&&I!=="get"&&I!=="head")throw new me("Stream request bodies are not supported by the current fetch implementation",me.ERR_NOT_SUPPORT,F,T);A.isString(ee)||(ee=ee?"include":"omit");const He=b&&"credentials"in d.prototype;if(A.isFormData(X)){const _e=M.getContentType();_e&&/^multipart\/form-data/i.test(_e)&&!/boundary=/i.test(_e)&&M.delete("content-type")}M.set("User-Agent","axios/"+Wh,!1);const ye=te==null?te:Object.assign(Object.create(null),te);ye&&(delete ye.body,delete ye.headers,delete ye.method,delete ye.signal,delete ye.duplex,delete ye.credentials);const $e=Object.assign(Object.create(null),ye,{signal:Ee,method:I.toUpperCase(),headers:Yy(M.normalize()),body:X,duplex:"half",credentials:He?ee:void 0});b&&(A.forEach(J,(_e,rt)=>{$e[rt]===void 0&&($e[rt]=_e)}),$e.signal===void 0&&($e.signal=null),$e.body===void 0&&($e.body=null)),he===0&&($e.redirect="manual",ye&&(ye.redirect="manual")),T=b&&new d(L,$e);let et=await(b?re(T,ye):re(L,$e));const It=Ot.from(et.headers);if(Se){const _e=A.toFiniteNumber(It.getContentLength());if(_e!=null&&_e>U)throw new me("maxContentLength size of "+U+" exceeded",me.ERR_BAD_RESPONSE,F,T)}const Mn=G&&(w==="stream"||w==="response");if(G&&et.body&&(N||Se||Mn&&ce)){const _e={};["status","statusText","headers"].forEach(il=>{_e[il]=et[il]});const rt=A.toFiniteNumber(It.getContentLength()),[Dn,zn]=N&&o1(rt,ku(u1(N),!0))||[];let ii=0;const Qn=il=>{if(Se&&(ii=il,ii>U))throw K=new me("maxContentLength size of "+U+" exceeded",me.ERR_BAD_RESPONSE,F,T);Dn&&Dn(il)};et=new h(p1(et.body,b1,Qn,()=>{zn&&zn(),ce&&ce()}),_e)}w=w||"text";let Mt=await $[A.findKey($,w)||"text"](et,F);if(Se&&!G&&!Mn){let _e;if(Mt!=null&&(typeof Mt.byteLength=="number"?_e=Mt.byteLength:typeof Mt.size=="number"?_e=Mt.size:typeof Mt=="string"&&(_e=typeof c=="function"?new c().encode(Mt).byteLength:Mt.length)),typeof _e=="number"&&_e>U)throw new me("maxContentLength size of "+U+" exceeded",me.ERR_BAD_RESPONSE,F,T)}return!Mn&&ce&&ce(),await new Promise((_e,rt)=>{tb(_e,rt,{data:Mt,headers:Ot.from(et.headers),status:et.status,statusText:et.statusText,config:F,request:T})})}catch(B){if(ce&&ce(),Ee&&Ee.aborted&&Ee.reason instanceof me){const Y=Ee.reason;throw Y.config=F,T&&(Y.request=T),B!==Y&&Object.defineProperty(Y,"cause",{__proto__:null,value:B,writable:!0,enumerable:!1,configurable:!0}),Y}if(ve)throw T&&!ve.request&&(ve.request=T),ve;if(K)throw K;if(B instanceof me)throw T&&!B.request&&(B.request=T),B;if(B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)){const Y=new me("Network Error",me.ERR_NETWORK,F,T,B&&B.response);throw Object.defineProperty(Y,"cause",{__proto__:null,value:B.cause||B,writable:!0,enumerable:!1,configurable:!0}),Y}throw me.from(B,B&&B.code,F,T,B&&B.response)}}},Y4=new Map,ob=l=>{const r=Object.create(null),u=l&&A.hasOwnProp(l,"env")&&l.env;["fetch","Request","Response","Blob"].forEach(R=>{u&&A.hasOwnProp(u,R)&&(r[R]=u[R])});const{fetch:c,Request:f,Response:d,Blob:h}=r,g=[f,d,c,h];let m=g.length,b=m,E,x,v=Y4;for(;b--;)E=g[b],x=v.get(E),x===void 0&&v.set(E,x=b?new Map:G4(r)),v=x;return x};ob();const ep={http:Vj,xhr:w4,fetch:{get:ob}};A.forEach(ep,(l,r)=>{if(l){try{Object.defineProperty(l,"name",{__proto__:null,value:r})}catch{}Object.defineProperty(l,"adapterName",{__proto__:null,value:r})}});const j1=l=>`- ${l}`,F4=l=>A.isFunction(l)||l===null||l===!1;function V4(l,r){l=A.isArray(l)?l:[l];const{length:u}=l;let c,f;const d={};for(let h=0;h<u;h++){c=l[h];let g;if(f=c,!F4(c)&&(f=ep[(g=String(c)).toLowerCase()],f===void 0))throw new me(`Unknown adapter '${g}'`);if(f&&(A.isFunction(f)||(f=f.get(r))))break;d[g||"#"+h]=f}if(!f){const h=Object.entries(d).map(([m,b])=>`adapter ${m} `+(b===!1?"is not supported by the environment":"is not available in the build"));let g=u?h.length>1?`since :
|
|
68
|
+
`+h.map(j1).join(`
|
|
69
|
+
`):" "+j1(h[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+g,me.ERR_NOT_SUPPORT)}return f}const ub={getAdapter:V4,adapters:ep};function Wd(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new _s(null,l)}function Q4(){return typeof performance<"u"&&A.isFunction(performance.now)?()=>performance.now():Date.now}function E1(l,r){return Math.max(0,Math.round(l()-r))}function eh(l){const r=A.toSafeFlatObject(l);Wd(r),r.headers=Ot.from(A.getSafeProp(r,"headers")),r.data=Id.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1);const u=ub.getAdapter(r.adapter||Rs.adapter,r),c=Q4(),f=c();return u(r).then(function(h){Wd(r),h.duration=E1(c,f),r.response=h;try{h.data=Id.call(r,r.transformResponse,h)}finally{delete r.response}return h.headers=Ot.from(h.headers),h},function(h){if(!eb(h)&&(Wd(r),h&&h.response)){h.response.duration=E1(c,f),r.response=h.response;try{h.response.data=Id.call(r,r.transformResponse,h.response)}finally{delete r.response}h.response.headers=Ot.from(h.response.headers)}return Promise.reject(h)})}const Pu={};["object","boolean","number","function","string","symbol"].forEach((l,r)=>{Pu[l]=function(c){return typeof c===l||"a"+(r<1?"n ":" ")+l}});const T1={};Pu.transitional=function(r,u,c){function f(d,h){return"[Axios v"+Wh+"] Transitional option '"+d+"'"+h+(c?". "+c:"")}return(d,h,g)=>{if(r===!1)throw new me(f(h," has been removed"+(u?" in "+u:"")),me.ERR_DEPRECATED);return u&&!T1[h]&&(T1[h]=!0,console.warn(f(h," has been deprecated since v"+u+" and will be removed in the near future"))),r?r(d,h,g):!0}};Pu.spelling=function(r){return(u,c)=>(console.warn(`${c} is likely a misspelling of ${r}`),!0)};function $4(l,r,u){if(typeof l!="object"||l===null)throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const c=Object.keys(l);let f=c.length;for(;f-- >0;){const d=c[f],h=Object.prototype.hasOwnProperty.call(r,d)?r[d]:void 0;if(h){const g=l[d],m=g===void 0||h(g,d,l);if(m!==!0)throw new me("option "+d+" must be "+m,me.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new me("Unknown option "+d,me.ERR_BAD_OPTION)}}const Ou={assertOptions:$4,validators:Pu},Nt=Ou.validators,th=l=>{if(l==null||A.isPlainObject(l)||l instanceof Ot)return!0;try{return A.isObject(l)&&A.getSafeProp(l,Symbol.toStringTag)==="AxiosHeaders"&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(r=>A.isFunction(A.getSafeProp(l,r)))}catch{return!1}};let Ga=class{constructor(r){this.defaults=r||{},this.interceptors={request:new r1,response:new r1}}async request(r,u){try{return await this._request(r,u)}catch(c){if(c instanceof Error)try{let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const d=f.stack;let h="";if(typeof d=="string"){const g=d.indexOf(`
|
|
70
|
+
`);h=g===-1?"":d.slice(g+1)}if(!c.stack)c.stack=h;else if(h){const g=h.indexOf(`
|
|
71
|
+
`),m=g===-1?-1:h.indexOf(`
|
|
72
|
+
`,g+1),b=m===-1?h:h.slice(m+1),E=String(c.stack),x=Yj(c,E),v=x===-1?E:E.slice(0,x),R=x===-1?"":E.slice(x);v.endsWith(b)||(c.stack=v+`
|
|
73
|
+
`+h+R)}}catch{}throw c}}_request(r,u){typeof r=="string"?(u=u||{},u.url=r):u=r||{},u=$a(this.defaults,u);const{transitional:c,paramsSerializer:f,headers:d}=u;c!==void 0&&Ou.assertOptions(c,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean),legacyInterceptorReqResOrdering:Nt.transitional(Nt.boolean),advertiseZstdAcceptEncoding:Nt.transitional(Nt.boolean),validateStatusUndefinedResolves:Nt.transitional(Nt.boolean),encodeBasicAuthUsername:Nt.transitional(Nt.boolean)},!1),f!=null&&(A.isFunction(f)?u.paramsSerializer={serialize:f}:Ou.assertOptions(f,{encode:Nt.function,serialize:Nt.function},!0)),u.allowAbsoluteUrls!==void 0||(A.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Ou.assertOptions(u,{baseUrl:Nt.spelling("baseURL"),withXsrfToken:Nt.spelling("withXSRFToken")},!0),u.method=(A.getSafeProp(u,"method")||A.getSafeProp(this.defaults,"method")||"get").toLowerCase();const h=A.getSafeProp(d,"common"),g=A.getSafeProp(d,u.method),m=d&&A.merge(th(h)?h:void 0,th(g)?g:void 0);d&&A.forEach(Wy.concat("common"),$=>{th(A.getSafeProp(d,$))&&delete d[$]}),u.headers=Ot.concat(m,d);const b=[];let E=!0;this.interceptors.request.forEach(function(ie){if(typeof ie.runWhen=="function"&&ie.runWhen(u)===!1)return;E=E&&ie.synchronous;const _=u.transitional||Jh;_&&_.legacyInterceptorReqResOrdering?b.unshift(ie.fulfilled,ie.rejected):b.push(ie.fulfilled,ie.rejected)});const x=[];this.interceptors.response.forEach(function(ie){x.push(ie.fulfilled,ie.rejected)});let v,R=0,G;if(!E){const $=[eh.bind(this),void 0];for($.unshift(...b),$.push(...x),G=$.length,v=Promise.resolve(u);R<G;)v=v.then($[R++],$[R++]);return v}G=b.length;let J=u;for(;R<G;){const $=b[R++],ie=b[R++];try{J=$?$(J):J}catch(_){if(!ie){v=Promise.reject(_);break}try{const F=ie.call(this,_);A.isThenable(F)&&(v=Promise.resolve(F).then(()=>eh.call(this,J)))}catch(F){v=Promise.reject(F)}break}}if(!v)try{v=eh.call(this,J)}catch($){v=Promise.reject($)}for(R=0,G=x.length;R<G;)v=v.then(x[R++],x[R++]);return v}getUri(r){r=$a(this.defaults,r);const u=ab(r.baseURL,r.url,r.allowAbsoluteUrls,r);return Xy(u,r.params,r.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(r){Ga.prototype[r]=async function(u,c){return this.request($a(c||{},{method:r,url:u,data:c&&A.hasOwnProp(c,"data")?c.data:void 0}))}});A.forEach(["post","put","patch","query"],function(r){function u(c){return async function(d,h,g){return this.request($a(g||{},{method:r,headers:c?{"Content-Type":"multipart/form-data"}:{},url:d,data:h}))}}Ga.prototype[r]=u(),r!=="query"&&(Ga.prototype[r+"Form"]=u(!0))});let X4=class cb{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(d){u=d});const c=this;this.promise.then(f=>{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const h=new Promise(g=>{c.subscribe(g),d=g}).then(f);return h.cancel=function(){c.unsubscribe(d)},h},r(function(d,h,g){c.reason||(c.reason=new _s(d,h,g),u(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const u=this._listeners.indexOf(r);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const r=new AbortController,u=c=>{r.abort(c)};return this.subscribe(u),r.signal.unsubscribe=()=>this.unsubscribe(u),r.signal}static source(){let r;return{token:new cb(function(f){r=f}),cancel:r}}};function Z4(l){return function(u){return l.apply(null,u)}}function K4(l){return A.isObject(l)&&l.isAxiosError===!0}const Cu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cu).forEach(([l,r])=>{Cu[r]===void 0&&(Cu[r]=l)});function fb(l){const r=new Ga(l),u=zy(Ga.prototype.request,r);return A.extend(u,Ga.prototype,r,{allOwnKeys:!0}),A.extend(u,r,null,{allOwnKeys:!0}),u.create=function(f){return fb($a(l,f))},u}const pt=fb(Rs);pt.Axios=Ga;pt.CanceledError=_s;pt.CancelToken=X4;pt.isCancel=eb;pt.VERSION=Wh;pt.toFormData=Ju;pt.AxiosError=me;pt.Cancel=pt.CanceledError;pt.all=function(r){return Promise.all(r)};pt.spread=Z4;pt.isAxiosError=K4;pt.mergeConfig=$a;pt.AxiosHeaders=Ot;pt.formToJSON=l=>Py(A.isHTMLForm(l)?new FormData(l):l);pt.getAdapter=ub.getAdapter;pt.HttpStatusCode=Cu;pt.default=pt;const{Axios:Lw,AxiosError:Uw,CanceledError:Hw,isCancel:qw,CancelToken:kw,VERSION:Gw,all:Yw,Cancel:Fw,isAxiosError:Vw,spread:Qw,toFormData:$w,AxiosHeaders:Xw,HttpStatusCode:Zw,formToJSON:Kw,getAdapter:Iw,mergeConfig:Jw,create:Pw}=pt,I4=l=>ut({method:"POST",endpoint:"login",data:l,ignoreToken:!0}),J4=l=>ut({method:"POST",endpoint:"enroll2fa",data:l,ignoreToken:!0}),P4=()=>ut({method:"POST",endpoint:"logout"});let Au=null;const W4=l=>{Au=l},e6=l=>ut({method:"POST",endpoint:"log",data:l}),t6=l=>ut({method:"POST",endpoint:"metrics",data:l}),n6=()=>ut({method:"POST",endpoint:"metricsWeeks"}),l6=l=>ut({method:"POST",endpoint:"metricsWeek",data:l}),a6=()=>ut({method:"GET",endpoint:"netlog"}),r6=()=>ut({method:"POST",endpoint:"connections"}),i6=l=>ut({method:"POST",endpoint:"db",data:l}),s6=()=>ut({method:"POST",endpoint:"outgoingnetlog"}),o6=()=>ut({method:"POST",endpoint:"sysinfo"}),u6=()=>ut({method:"POST",endpoint:"procinfo"}),c6=()=>ut({method:"POST",endpoint:"fdreport"}),f6=l=>ut({method:"POST",endpoint:"restart",data:l}),d6=()=>ut({method:"POST",endpoint:"inventory"}),h6=()=>ut({method:"POST",endpoint:"httpstats"}),p6=()=>ut({method:"POST",endpoint:"logfiles"}),w1=l=>ut({method:"POST",endpoint:"logtail",data:l}),db=l=>ut({method:"POST",endpoint:"threats",data:l}),g6=()=>ut({method:"POST",endpoint:"blocked"}),m6=l=>ut({method:"POST",endpoint:"block",data:l}),x6=l=>ut({method:"POST",endpoint:"unblock",data:l}),y6=l=>ut({method:"POST",endpoint:"changeLogLevel",data:{level:l}}),b6=()=>{const l=window.__host;let r="/";return l&&l.trim()&&!l.includes("{{")?r=l.trim():Kr.host&&Kr.host.trim()&&(r=Kr.host.trim()),r.endsWith("/")||(r+="/"),r};let hb=!1;const Ru=l=>{hb=l},v6="You don't have permission for this action.",ut=async l=>{var h,g,m;const r=b6()+l.endpoint+(l.params?"?"+l.params:""),u=(h=qa.current)==null?void 0:h.token,c={url:r,method:l.method,responseType:"json",headers:{"Content-Type":"application/json",Authorization:!l.ignoreToken&&u?"Bearer "+u:void 0},data:l.method!=="GET"?l.data:void 0};let f;try{const b=await pt(c);f=b.data??{},f.httpStatus||(f.httpStatus=b.status)}catch(b){const E=b,x=(g=E.response)==null?void 0:g.data,v=((m=E.response)==null?void 0:m.status)??0;x&&typeof x=="object"&&x.error?f={error:x.error,httpStatus:v}:x&&typeof x=="object"&&x.message?f={error:{code:999,message:x.message},httpStatus:v}:f={error:{code:-1,message:"Network error: "+E.message},httpStatus:v}}const d=f.error;if(d){const b=f.httpStatus||d.code;(b===401||b===403)&&(d.code=b),b===403&&!d.details&&(d.details=v6),b===401&&!l.ignoreToken&&!hb&&(Au==null||Au(d))}return f},tp="monitor.auth",S6=()=>{try{const l=localStorage.getItem(tp);if(!l)return null;const r=JSON.parse(l);return{host:r.host??"",login:r.login??""}}catch{return null}},j6=l=>{try{localStorage.setItem(tp,JSON.stringify({host:l.host,login:l.login}))}catch{}},E6=()=>{try{localStorage.removeItem(tp)}catch{}},Mh=window.PasswordCredential,T6=async(l,r)=>{if(!(!Mh||!navigator.credentials||!l||!r))try{await navigator.credentials.store(new Mh({id:l,password:r,name:l}))}catch{}},w6=async()=>{if(!Mh||!navigator.credentials)return null;try{const l=await navigator.credentials.get({password:!0,mediation:"optional"});return!l||!l.password?null:{login:l.id,password:l.password}}catch{return null}},Kr={login:"",password:"",totp:"",host:""},qa={current:null},pb=new Za("S_AUTH"),gb=new Za("S_ENROLL"),Wu=new Za("S_LOGOUT"),Gu=new Za("S_AUTH_STATUS"),sa=new Za("S_AUTH_ERROR"),Dh=new Za("S_ENROLLMENT"),ec=l=>{var r,u;return((u=(r=qa.current)==null?void 0:r.capabilities)==null?void 0:u.includes(l))??!1};class O6{constructor(){mn(this,"state","unauthorized");mn(this,"enrollment",null);Gu.onSubscribe=r=>r(this.state),Dh.onSubscribe=r=>r(this.enrollment),pb.subscribe(r=>this.signIn(r)),gb.subscribe(r=>this.enroll(r)),Wu.subscribe(()=>this.logout()),W4(r=>this.expire(r))}setState(r){this.state=r,Gu.invoke(r)}setEnrollment(r){this.enrollment=r,Dh.invoke(r)}startSession(r){qa.current=r,this.setEnrollment(null),this.setState("authorized")}applyRememberMe(r){if(!r.remember){E6();return}j6({host:r.host,login:r.login}),T6(r.login,r.password)}async signIn(r){if(!r)return;Kr.login=r.login,Kr.host=r.host,sa.invoke(null),this.setState("checking");const u=await I4({login:r.login,password:r.password,totp:r.totp.trim()||void 0});if(u.error||!u.data){sa.invoke(u.error??{code:-1,message:"Empty login response"}),this.setState("unauthorized");return}const c=u.data;if(this.applyRememberMe(r),"enrollmentRequired"in c){this.setEnrollment({enrollmentToken:c.enrollmentToken,secret:c.secret,otpauthUri:c.otpauthUri,expiresAt:Date.now()+c.expiresInMs}),this.setState("enroll");return}this.startSession(c)}async enroll(r){if(!this.enrollment)return;sa.invoke(null);const u=await J4({enrollmentToken:this.enrollment.enrollmentToken,totp:r.trim()});if(u.error||!u.data){sa.invoke(u.error??{code:-1,message:"Empty enrollment response"});return}this.startSession(u.data)}async logout(){qa.current&&await P4(),qa.current=null,Ru(!1),this.setEnrollment(null),this.setState("unauthorized")}expire(r){this.state==="authorized"&&(qa.current=null,sa.invoke({...r,message:"Session expired — please sign in again."}),this.setState("unauthorized"))}}var st="-ms-",js="-moz-",Ke="-webkit-",mb="comm",tc="rule",np="decl",C6="@import",A6="@namespace",xb="@keyframes",R6="@layer",yb=Math.abs,lp=String.fromCharCode,zh=Object.assign;function _6(l,r){return Tt(l,0)^45?(((r<<2^Tt(l,0))<<2^Tt(l,1))<<2^Tt(l,2))<<2^Tt(l,3):0}function bb(l){return l.trim()}function El(l,r){return(l=r.exec(l))?l[0]:l}function Be(l,r,u){return l.replace(r,u)}function _u(l,r,u){return l.indexOf(r,u)}function Tt(l,r){return l.charCodeAt(r)|0}function Xa(l,r,u){return l.slice(r,u)}function Yn(l){return l.length}function vb(l){return l.length}function gs(l,r){return r.push(l),l}function N6(l,r){return l.map(r).join("")}function O1(l,r){return l.filter(function(u){return!El(u,r)})}var nc=1,Jr=1,Sb=0,Rn=0,vt=0,ai="";function lc(l,r,u,c,f,d,h,g){return{value:l,root:r,parent:u,type:c,props:f,children:d,line:nc,column:Jr,length:h,return:"",siblings:g}}function ia(l,r){return zh(lc("",null,null,"",null,null,0,l.siblings),l,{length:-l.length},r)}function kr(l){for(;l.root;)l=ia(l.root,{children:[l]});gs(l,l.siblings)}function M6(){return vt}function D6(){return vt=Rn>0?Tt(ai,--Rn):0,Jr--,vt===10&&(Jr=1,nc--),vt}function Fn(){return vt=Rn<Sb?Tt(ai,Rn++):0,Jr++,vt===10&&(Jr=1,nc++),vt}function oa(){return Tt(ai,Rn)}function Nu(){return Rn}function ac(l,r){return Xa(ai,l,r)}function ws(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z6(l){return nc=Jr=1,Sb=Yn(ai=l),Rn=0,[]}function B6(l){return ai="",l}function nh(l){return bb(ac(Rn-1,Bh(l===91?l+2:l===40?l+1:l)))}function L6(l){for(;(vt=oa())&&vt<33;)Fn();return ws(l)>2||ws(vt)>3?"":" "}function U6(l,r){for(;--r&&Fn()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return ac(l,Nu()+(r<6&&oa()==32&&Fn()==32))}function Bh(l){for(;Fn();)switch(vt){case l:return Rn;case 34:case 39:l!==34&&l!==39&&Bh(vt);break;case 40:l===41&&Bh(l);break;case 92:Fn();break}return Rn}function H6(l,r){for(;Fn()&&l+vt!==57;)if(l+vt===84&&oa()===47)break;return"/*"+ac(r,Rn-1)+"*"+lp(l===47?l:Fn())}function q6(l){for(;!ws(oa());)Fn();return ac(l,Rn)}function k6(l){return B6(Mu("",null,null,null,[""],l=z6(l),0,[0],l))}function Mu(l,r,u,c,f,d,h,g,m){for(var b=0,E=0,x=h,v=0,R=0,G=0,J=1,$=1,ie=1,_=0,F="",L=f,I=d,X=c,S=F;$;)switch(G=_,_=Fn()){case 40:if(G!=108&&Tt(S,x-1)==58){_u(S+=Be(nh(_),"&","&\f"),"&\f",yb(b?g[b-1]:0))!=-1&&(ie=-1);break}case 34:case 39:case 91:S+=nh(_);break;case 9:case 10:case 13:case 32:S+=L6(G);break;case 92:S+=U6(Nu()-1,7);continue;case 47:switch(oa()){case 42:case 47:gs(G6(H6(Fn(),Nu()),r,u,m),m),(ws(G||1)==5||ws(oa()||1)==5)&&Yn(S)&&Xa(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*J:g[b++]=Yn(S)*ie;case 125*J:case 59:case 0:switch(_){case 0:case 125:$=0;case 59+E:ie==-1&&(S=Be(S,/\f/g,"")),R>0&&(Yn(S)-x||J===0&&G===47)&&gs(R>32?A1(S+";",c,u,x-1,m):A1(Be(S," ","")+";",c,u,x-2,m),m);break;case 59:S+=";";default:if(gs(X=C1(S,r,u,b,E,f,g,F,L=[],I=[],x,d),d),_===123)if(E===0)Mu(S,r,X,X,L,d,x,g,I);else{switch(v){case 99:if(Tt(S,3)===110)break;case 108:if(Tt(S,2)===97)break;default:E=0;case 100:case 109:case 115:}E?Mu(l,X,X,c&&gs(C1(l,X,X,0,0,f,g,F,f,L=[],x,I),I),f,I,x,g,c?L:I):Mu(S,X,X,X,[""],I,0,g,I)}}b=E=R=0,J=ie=1,F=S="",x=h;break;case 58:x=1+Yn(S),R=G;default:if(J<1){if(_==123)--J;else if(_==125&&J++==0&&D6()==125)continue}switch(S+=lp(_),_*J){case 38:ie=E>0?1:(S+="\f",-1);break;case 44:g[b++]=(Yn(S)-1)*ie,ie=1;break;case 64:oa()===45&&(S+=nh(Fn())),v=oa(),E=x=Yn(F=S+=q6(Nu())),_++;break;case 45:G===45&&Yn(S)==2&&(J=0)}}return d}function C1(l,r,u,c,f,d,h,g,m,b,E,x){for(var v=f-1,R=f===0?d:[""],G=vb(R),J=0,$=0,ie=0;J<c;++J)for(var _=0,F=Xa(l,v+1,v=yb($=h[J])),L=l;_<G;++_)(L=bb($>0?R[_]+" "+F:Be(F,/&\f/g,R[_])))&&(m[ie++]=L);return lc(l,r,u,f===0?tc:g,m,b,E,x)}function G6(l,r,u,c){return lc(l,r,u,mb,lp(M6()),Xa(l,2,-2),0,c)}function A1(l,r,u,c,f){return lc(l,r,u,np,Xa(l,0,c),Xa(l,c+1,-1),c,f)}function jb(l,r,u){switch(_6(l,r)){case 5103:return Ke+"print-"+l+l;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ke+l+l;case 4855:return Ke+l.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+l;case 4789:return js+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return Ke+l+js+l+st+l+l;case 5936:switch(Tt(l,r+11)){case 114:return Ke+l+st+Be(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return Ke+l+st+Be(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return Ke+l+st+Be(l,/[svh]\w+-[tblr]{2}/,"lr")+l}case 6828:case 4268:case 2903:return Ke+l+st+l+l;case 6165:return Ke+l+st+"flex-"+l+l;case 5187:return Ke+l+Be(l,/(\w+).+(:[^]+)/,Ke+"box-$1$2"+st+"flex-$1$2")+l;case 5443:return Ke+l+st+"flex-item-"+Be(l,/flex-|-self/g,"")+(El(l,/flex-|baseline/)?"":st+"grid-row-"+Be(l,/flex-|-self/g,""))+l;case 4675:return Ke+l+st+"flex-line-pack"+Be(l,/align-content|flex-|-self/g,"")+l;case 5548:return Ke+l+st+Be(l,"shrink","negative")+l;case 5292:return Ke+l+st+Be(l,"basis","preferred-size")+l;case 6060:return Ke+"box-"+Be(l,"-grow","")+Ke+l+st+Be(l,"grow","positive")+l;case 4554:return Ke+Be(l,/([^-])(transform)/g,"$1"+Ke+"$2")+l;case 6187:return Be(Be(Be(l,/(zoom-|grab)/,Ke+"$1"),/(image-set)/,Ke+"$1"),l,"")+l;case 5495:case 3959:return Be(l,/(image-set\([^]*)/,Ke+"$1$`$1");case 4968:return Be(Be(l,/(.+:)(flex-)?(.*)/,Ke+"box-pack:$3"+st+"flex-pack:$3"),/space-between/,"justify")+Ke+l+l;case 4200:if(!El(l,/flex-|baseline/))return st+"grid-column-align"+Xa(l,r)+l;break;case 2592:case 3360:return st+Be(l,"template-","")+l;case 4384:case 3616:return u&&u.some(function(c,f){return r=f,El(c.props,/grid-\w+-end/)})?~_u(l+(u=u[r].value),"span",0)?l:st+Be(l,"-start","")+l+st+"grid-row-span:"+(~_u(u,"span",0)?El(u,/\d+/):+El(u,/\d+/)-+El(l,/\d+/))+";":st+Be(l,"-start","")+l;case 4896:case 4128:return u&&u.some(function(c){return El(c.props,/grid-\w+-start/)})?l:st+Be(Be(l,"-end","-span"),"span ","")+l;case 4095:case 3583:case 4068:case 2532:return Be(l,/(.+)-inline(.+)/,Ke+"$1$2")+l;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Yn(l)-1-r>6)switch(Tt(l,r+1)){case 109:if(Tt(l,r+4)!==45)break;case 102:return Be(l,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+js+(Tt(l,r+3)==108?"$3":"$2-$3"))+l;case 115:return~_u(l,"stretch",0)?jb(Be(l,"stretch","fill-available"),r,u)+l:l}break;case 5152:case 5920:return Be(l,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(c,f,d,h,g,m,b){return st+f+":"+d+b+(h?st+f+"-span:"+(g?m:+m-+d)+b:"")+l});case 4949:if(Tt(l,r+6)===121)return Be(l,":",":"+Ke)+l;break;case 6444:switch(Tt(l,Tt(l,14)===45?18:11)){case 120:return Be(l,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ke+(Tt(l,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+st+"$2box$3")+l;case 100:return Be(l,":",":"+st)+l}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Be(l,"scroll-","scroll-snap-")+l}return l}function Yu(l,r){for(var u="",c=0;c<l.length;c++)u+=r(l[c],c,l,r)||"";return u}function Y6(l,r,u,c){switch(l.type){case R6:if(l.children.length)break;case C6:case A6:case np:return l.return=l.return||l.value;case mb:return"";case xb:return l.return=l.value+"{"+Yu(l.children,c)+"}";case tc:if(!Yn(l.value=l.props.join(",")))return""}return Yn(u=Yu(l.children,c))?l.return=l.value+"{"+u+"}":""}function F6(l){var r=vb(l);return function(u,c,f,d){for(var h="",g=0;g<r;g++)h+=l[g](u,c,f,d)||"";return h}}function V6(l){return function(r){r.root||(r=r.return)&&l(r)}}function Q6(l,r,u,c){if(l.length>-1&&!l.return)switch(l.type){case np:l.return=jb(l.value,l.length,u);return;case xb:return Yu([ia(l,{value:Be(l.value,"@","@"+Ke)})],c);case tc:if(l.length)return N6(u=l.props,function(f){switch(El(f,c=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kr(ia(l,{props:[Be(f,/:(read-\w+)/,":"+js+"$1")]})),kr(ia(l,{props:[f]})),zh(l,{props:O1(u,c)});break;case"::placeholder":kr(ia(l,{props:[Be(f,/:(plac\w+)/,":"+Ke+"input-$1")]})),kr(ia(l,{props:[Be(f,/:(plac\w+)/,":"+js+"$1")]})),kr(ia(l,{props:[Be(f,/:(plac\w+)/,st+"input-$1")]})),kr(ia(l,{props:[f]})),zh(l,{props:O1(u,c)});break}return""})}}var Ir={};function rl(l,...r){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${l} for more information.${r.length>0?` Args: ${r.join(", ")}`:""}`)}var lh,ah;const Pr=typeof process<"u"&&Ir!==void 0&&(Ir.REACT_APP_SC_ATTR||Ir.SC_ATTR)||"data-styled",Eb="active",Tb="data-styled-version",rc="6.6.0",ap=`/*!sc*/
|
|
74
|
+
`,Es=typeof window<"u"&&typeof document<"u";if(!Gt.createContext)throw rl(19);function R1(l){if(typeof process<"u"&&Ir!==void 0){const r=Ir[l];if(r!==void 0&&r!=="")return r!=="false"}}const $6=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(ah=(lh=R1("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&lh!==void 0?lh:R1("SC_DISABLE_SPEEDY"))!==null&&ah!==void 0?ah:typeof process<"u"&&Ir!==void 0&&!1),wb="sc-keyframes-",X6={};let Du=new Map,Fu=new Map,zu=1;const ms=l=>{if(Du.has(l))return Du.get(l);for(;Fu.has(zu);)zu++;const r=zu++;return Du.set(l,r),Fu.set(r,l),r},Z6=l=>Fu.get(l),K6=(l,r)=>{zu=r+1,Du.set(l,r),Fu.set(r,l)},rp=Object.freeze([]),Wr=Object.freeze({});function Ob(l,r,u=Wr){return l.theme!==u.theme&&l.theme||r||u.theme}const I6=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,J6=/(^-|-$)/g;function Cb(l){return l.replace(I6,"-").replace(J6,"")}const P6=/(a)(d)/gi,_1=l=>String.fromCharCode(l+(l>25?39:97));function ip(l){let r,u="";for(r=Math.abs(l);r>52;r=r/52|0)u=_1(r%52)+u;return(_1(r%52)+u).replace(P6,"$1-$2")}const Lh=5381,Ya=(l,r)=>{let u=r.length;for(;u;)l=33*l^r.charCodeAt(--u);return l},Ab=l=>Ya(Lh,l);function sp(l){return ip(Ab(l)>>>0)}function W6(l){return l.displayName||l.name||"Component"}function Uh(l){return typeof l=="string"&&!0}function eE(l){return Uh(l)?`styled.${l}`:`Styled(${W6(l)})`}const Rb=Symbol.for("react.memo"),tE=Symbol.for("react.forward_ref"),nE={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},lE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_b={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aE={[tE]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Rb]:_b};function N1(l){return("type"in(r=l)&&r.type.$$typeof)===Rb?_b:"$$typeof"in l?aE[l.$$typeof]:nE;var r}const rE=Object.defineProperty,iE=Object.getOwnPropertyNames,sE=Object.getOwnPropertySymbols,oE=Object.getOwnPropertyDescriptor,uE=Object.getPrototypeOf,cE=Object.prototype;function Nb(l,r,u){if(typeof r!="string"){const c=uE(r);c&&c!==cE&&Nb(l,c,u);const f=iE(r).concat(sE(r)),d=N1(l),h=N1(r);for(let g=0;g<f.length;++g){const m=f[g];if(!(m in lE||u&&u[m]||h&&m in h||d&&m in d)){const b=oE(r,m);try{rE(l,m,b)}catch{}}}}return l}function ri(l){return typeof l=="function"}const fE=Symbol.for("react.forward_ref");function op(l){return l!=null&&(typeof l=="object"||typeof l=="function")&&l.$$typeof===fE&&"styledComponentId"in l}function xs(l,r){return l&&r?l+" "+r:l||r||""}function Vu(l,r){return l.join("")}function Os(l){return l!==null&&typeof l=="object"&&l.constructor.name===Object.name&&!("props"in l&&l.$$typeof)}function Hh(l,r,u=!1){if(!u&&!Os(l)&&!Array.isArray(l))return r;if(Array.isArray(r))for(let c=0;c<r.length;c++)l[c]=Hh(l[c],r[c]);else if(Os(r))for(const c in r)l[c]=Hh(l[c],r[c]);return l}function up(l,r){Object.defineProperty(l,"toString",{value:r})}const dE=class{constructor(l){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=l,this._cGroup=0,this._cIndex=0}indexOfGroup(l){if(l===this._cGroup)return this._cIndex;let r=this._cIndex;if(l>this._cGroup)for(let u=this._cGroup;u<l;u++)r+=this.groupSizes[u];else for(let u=this._cGroup-1;u>=l;u--)r-=this.groupSizes[u];return this._cGroup=l,this._cIndex=r,r}insertRules(l,r){if(l>=this.groupSizes.length){const f=this.groupSizes,d=f.length;let h=d;for(;l>=h;)if(h<<=1,h<0)throw rl(16,`${l}`);this.groupSizes=new Uint32Array(h),this.groupSizes.set(f),this.length=h;for(let g=d;g<h;g++)this.groupSizes[g]=0}let u=this.indexOfGroup(l+1),c=0;for(let f=0,d=r.length;f<d;f++)this.tag.insertRule(u,r[f])&&(this.groupSizes[l]++,u++,c++);c>0&&this._cGroup>l&&(this._cIndex+=c)}clearGroup(l){if(l<this.length){const r=this.groupSizes[l],u=this.indexOfGroup(l),c=u+r;this.groupSizes[l]=0;for(let f=u;f<c;f++)this.tag.deleteRule(u);r>0&&this._cGroup>l&&(this._cIndex-=r)}}getGroup(l){let r="";if(l>=this.length||this.groupSizes[l]===0)return r;const u=this.groupSizes[l],c=this.indexOfGroup(l),f=c+u;for(let d=c;d<f;d++)r+=this.tag.getRule(d)+ap;return r}},hE=`style[${Pr}][${Tb}="${rc}"]`,pE=new RegExp(`^${Pr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),M1=l=>typeof ShadowRoot<"u"&&l instanceof ShadowRoot||"host"in l&&l.nodeType===11,qh=l=>{if(!l)return document;if(M1(l))return l;if("getRootNode"in l){const r=l.getRootNode();if(M1(r))return r}return document},gE=(l,r,u)=>{const c=u.split(",");let f;for(let d=0,h=c.length;d<h;d++)(f=c[d])&&l.registerName(r,f)},mE=(l,r)=>{var u;const c=((u=r.textContent)!==null&&u!==void 0?u:"").split(ap),f=[];for(let d=0,h=c.length;d<h;d++){const g=c[d].trim();if(!g)continue;const m=g.match(pE);if(m){const b=0|parseInt(m[1],10),E=m[2];b!==0&&(K6(E,b),gE(l,E,m[3]),l.getTag().insertRules(b,f)),f.length=0}else f.push(g)}},rh=l=>{const u=qh(l.options.target).querySelectorAll(hE);for(let c=0,f=u.length;c<f;c++){const d=u[c];d&&d.getAttribute(Pr)!==Eb&&(mE(l,d),d.parentNode&&d.parentNode.removeChild(d))}};let is=!1;function xE(){if(is!==!1)return is;if(typeof document<"u"){const l=document.head.querySelector('meta[property="csp-nonce"]');if(l)return is=l.nonce||l.getAttribute("content")||void 0;const r=document.head.querySelector('meta[name="sc-nonce"]');if(r)return is=r.getAttribute("content")||void 0}return is=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const Mb=(l,r)=>{if(typeof document>"u")throw rl(20);const u=document.head,c=l||u,f=document.createElement("style"),d=(m=>{const b=Array.from(m.querySelectorAll(`style[${Pr}]`));return b[b.length-1]})(c),h=d!==void 0?d.nextSibling:null;f.setAttribute(Pr,Eb),f.setAttribute(Tb,rc);const g=r||xE();return g&&f.setAttribute("nonce",g),c.insertBefore(f,h),f},yE=class{constructor(l,r){this.element=Mb(l,r),this.element.appendChild(document.createTextNode("")),this.sheet=(u=>{var c;if(u.sheet)return u.sheet;const f=(c=u.getRootNode().styleSheets)!==null&&c!==void 0?c:document.styleSheets;for(let d=0,h=f.length;d<h;d++){const g=f[d];if(g.ownerNode===u)return g}throw rl(17)})(this.element),this.length=0}insertRule(l,r){try{return this.sheet.insertRule(r,l),this.length++,!0}catch{return!1}}deleteRule(l){this.sheet.deleteRule(l),this.length--}getRule(l){const r=this.sheet.cssRules[l];return r&&r.cssText?r.cssText:""}},bE=class{constructor(l,r){this.element=Mb(l,r),this.nodes=this.element.childNodes,this.length=0}insertRule(l,r){if(l<=this.length&&l>=0){const u=document.createTextNode(r);return this.element.insertBefore(u,this.nodes[l]||null),this.length++,!0}return!1}deleteRule(l){this.element.removeChild(this.nodes[l]),this.length--}getRule(l){return l<this.length?this.nodes[l].textContent:""}};let D1=Es;const vE={isServer:!Es,useCSSOMInjection:!$6};class Ns{static registerId(r){return ms(r)}constructor(r=Wr,u={},c){this.options=Object.assign(Object.assign({},vE),r),this.gs=u,this.keyframeIds=new Set,this.names=new Map(c),this.server=!!r.isServer,!this.server&&Es&&D1&&(D1=!1,rh(this)),up(this,()=>(f=>{const d=f.getTag(),{length:h}=d;let g="";for(let m=0;m<h;m++){const b=Z6(m);if(b===void 0)continue;const E=f.names.get(b);if(E===void 0||!E.size)continue;const x=d.getGroup(m);if(x.length===0)continue;const v=Pr+".g"+m+'[id="'+b+'"]';let R="";for(const G of E)G.length>0&&(R+=G+",");g+=x+v+'{content:"'+R+'"}'+ap}return g})(this))}rehydrate(){!this.server&&Es&&rh(this)}reconstructWithOptions(r,u=!0){const c=new Ns(Object.assign(Object.assign({},this.options),r),this.gs,u&&this.names||void 0);return c.keyframeIds=new Set(this.keyframeIds),!this.server&&Es&&r.target!==this.options.target&&qh(this.options.target)!==qh(r.target)&&rh(c),c}allocateGSInstance(r){return this.gs[r]=(this.gs[r]||0)+1}getTag(){return this.tag||(this.tag=(r=(({useCSSOMInjection:u,target:c,nonce:f})=>u?new yE(c,f):new bE(c,f))(this.options),new dE(r)));var r}hasNameForId(r,u){var c,f;return(f=(c=this.names.get(r))===null||c===void 0?void 0:c.has(u))!==null&&f!==void 0&&f}registerName(r,u){ms(r),r.startsWith(wb)&&this.keyframeIds.add(r);const c=this.names.get(r);c?c.add(u):this.names.set(r,new Set([u]))}insertRules(r,u,c){this.registerName(r,u),this.getTag().insertRules(ms(r),c)}clearNames(r){this.names.has(r)&&this.names.get(r).clear()}clearRules(r){this.getTag().clearGroup(ms(r)),this.clearNames(r)}clearTag(){this.tag=void 0}}const Db=new WeakSet,SE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function jE(l,r){return r==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||l in SE||l.startsWith("--")?String(r).trim():r+"px"}const Ua=47;function z1(l){if(l.charCodeAt(0)===45&&l.charCodeAt(1)===45)return l;let r="";for(let u=0;u<l.length;u++){const c=l.charCodeAt(u);r+=c>=65&&c<=90?"-"+String.fromCharCode(c+32):l[u]}return r.startsWith("ms-")?"-"+r:r}const zb=Symbol.for("sc-keyframes");function EE(l){return typeof l=="object"&&l!==null&&zb in l}function Bb(l){return ri(l)&&!(l.prototype&&l.prototype.isReactComponent)}const Lb=l=>l==null||l===!1||l==="",TE=Symbol.for("react.client.reference");function B1(l){return l.$$typeof===TE}function Ub(l,r){for(const u in l){const c=l[u];l.hasOwnProperty(u)&&!Lb(c)&&(Array.isArray(c)&&Db.has(c)||ri(c)?r.push(z1(u)+":",c,";"):Os(c)?(r.push(u+" {"),Ub(c,r),r.push("}")):r.push(z1(u)+": "+jE(u,c)+";"))}}function ua(l,r,u,c,f=[]){if(Lb(l))return f;const d=typeof l;if(d==="string")return f.push(l),f;if(d==="function"){if(B1(l))return f;if(Bb(l)&&r){const h=l(r);return ua(h,r,u,c,f)}return f.push(l),f}if(Array.isArray(l)){for(let h=0;h<l.length;h++)ua(l[h],r,u,c,f);return f}return op(l)?(f.push(`.${l.styledComponentId}`),f):EE(l)?(u?(l.inject(u,c),f.push(l.getName(c))):f.push(l),f):B1(l)?f:Os(l)?l.toString!==Object.prototype.toString?(f.push(l.toString()),f):(Ub(l,f),f):(f.push(l.toString()),f)}const wE=Ab(rc);class OE{constructor(r,u,c){this.rules=r,this.componentId=u,this.baseHash=Ya(wE,u),this.baseStyle=c,Ns.registerId(u)}generateAndInjectStyles(r,u,c){let f=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,u,c):"";{let d="";for(let h=0;h<this.rules.length;h++){const g=this.rules[h];if(typeof g=="string")d+=g;else if(g)if(Bb(g)){const m=g(r);typeof m=="string"?d+=m:m!=null&&m!==!1&&(d+=Vu(ua(m,r,u,c)))}else d+=Vu(ua(g,r,u,c))}if(d){this.dynamicNameCache||(this.dynamicNameCache=new Map);const h=c.hash?c.hash+d:d;let g=this.dynamicNameCache.get(h);if(!g){if(g=ip(Ya(Ya(this.baseHash,c.hash),d)>>>0),this.dynamicNameCache.size>=200){const m=this.dynamicNameCache.keys().next().value;m!==void 0&&this.dynamicNameCache.delete(m)}this.dynamicNameCache.set(h,g)}if(!u.hasNameForId(this.componentId,g)){const m=c(d,"."+g,void 0,this.componentId);u.insertRules(this.componentId,g,m)}f=xs(f,g)}}return f}}const CE=/&/g;function Hb(l,r){let u=0;for(;--r>=0&&l.charCodeAt(r)===92;)u++;return!(1&~u)}function ih(l){const r=l.length;let u="",c=0,f=0,d=0,h=!1,g=!1;for(let m=0;m<r;m++){const b=l.charCodeAt(m);if(d!==0||h||b!==Ua||l.charCodeAt(m+1)!==42)if(h)b===42&&l.charCodeAt(m+1)===Ua&&(h=!1,m++);else if(b!==34&&b!==39||Hb(l,m)){if(d===0)if(b===123)f++;else if(b===125){if(f--,f<0){g=!0;let E=m+1;for(;E<r;){const x=l.charCodeAt(E);if(x===59||x===10)break;E++}E<r&&l.charCodeAt(E)===59&&E++,f=0,m=E-1,c=E;continue}f===0&&(u+=l.substring(c,m+1),c=m+1)}else b===59&&f===0&&(u+=l.substring(c,m+1),c=m+1)}else d===0?d=b:d===b&&(d=0);else h=!0,m++}return g||f!==0||d!==0?(c<r&&f===0&&d===0&&(u+=l.substring(c)),u):l}function qb(l,r){const u=r+" ",c=","+u;for(let f=0;f<l.length;f++){const d=l[f];if(d.type==="rule"){d.value=(u+d.value).replaceAll(",",c);const h=d.props,g=[];for(let m=0;m<h.length;m++)g[m]=u+h[m];d.props=g}Array.isArray(d.children)&&d.type!=="@keyframes"&&qb(d.children,r)}return l}function AE({options:l=Wr,plugins:r=rp}=Wr){let u,c,f;const d=(v,R,G)=>G.startsWith(c)&&G.endsWith(c)&&G.replaceAll(c,"").length>0?`.${u}`:v,h=r.slice();h.push(v=>{v.type===tc&&v.value.includes("&")&&(f||(f=new RegExp(`\\${c}\\b`,"g")),v.props[0]=v.props[0].replace(CE,c).replace(f,d))}),l.prefix&&h.push(Q6),h.push(Y6);let g=[];const m=F6(h.concat(V6(v=>g.push(v)))),b=(v,R="",G="",J="&")=>{u=J,c=R,f=void 0;const $=(function(_){const F=_.indexOf("//")!==-1,L=_.indexOf("}")!==-1;if(!F&&!L)return _;if(!F)return ih(_);const I=_.length;let X="",S=0,O=0,z=0,N=0,j=0,w=!1;for(;O<I;){const M=_.charCodeAt(O);if(M!==34&&M!==39||Hb(_,O))if(z===0)if(M===Ua&&O+1<I&&_.charCodeAt(O+1)===42){for(O+=2;O+1<I&&(_.charCodeAt(O)!==42||_.charCodeAt(O+1)!==Ua);)O++;O+=2}else if(M!==40)if(M!==41)if(N>0)O++;else if(M===42&&O+1<I&&_.charCodeAt(O+1)===Ua)X+=_.substring(S,O),O+=2,S=O,w=!0;else if(M===Ua&&O+1<I&&_.charCodeAt(O+1)===Ua){for(X+=_.substring(S,O);O<I&&_.charCodeAt(O)!==10;)O++;S=O,w=!0}else M===123?j++:M===125&&j--,O++;else N>0&&N--,O++;else N++,O++;else O++;else z===0?z=M:z===M&&(z=0),O++}return w?(S<I&&(X+=_.substring(S)),j===0?X:ih(X)):j===0?_:ih(_)})(v);let ie=k6(G||R?G+" "+R+" { "+$+" }":$);return l.namespace&&(ie=qb(ie,l.namespace)),g=[],Yu(ie,m),g},E=l;let x=Lh;for(let v=0;v<r.length;v++)r[v].name||rl(15),x=Ya(x,r[v].name);return E!=null&&E.namespace&&(x=Ya(x,E.namespace)),E!=null&&E.prefix&&(x=Ya(x,"p")),b.hash=x!==Lh?x.toString():"",b}const RE=new Ns,kh=AE(),kb=Gt.createContext({shouldForwardProp:void 0,styleSheet:RE,stylis:kh,stylisPlugins:void 0});kb.Consumer;function Gb(){return Gt.useContext(kb)}const ei=Gt.createContext(void 0);ei.Consumer;function ic(){const l=Gt.useContext(ei);if(!l)throw rl(18);return l}function _E(l){const r=Gt.useContext(ei),u=Gt.useMemo(()=>(function(c,f){if(!c)throw rl(14);if(ri(c))return c(f);if(Array.isArray(c)||typeof c!="object")throw rl(8);return f?Object.assign(Object.assign({},f),c):c})(l.theme,r),[l.theme,r]);return l.children?Gt.createElement(ei.Provider,{value:u},l.children):null}const sh={};function NE(l,r){const u=typeof l!="string"?"sc":Cb(l);sh[u]=(sh[u]||0)+1;const c=u+"-"+sp(rc+u+sh[u]);return r?r+"-"+c:c}function ME(l,r,u){const c=op(l),f=l,d=!Uh(l),{attrs:h=rp,componentId:g=NE(r.displayName,r.parentComponentId),displayName:m=eE(l)}=r,b=r.displayName&&r.componentId?Cb(r.displayName)+"-"+r.componentId:r.componentId||g,E=c&&f.attrs?f.attrs.concat(h).filter(Boolean):h;let{shouldForwardProp:x}=r;if(c&&f.shouldForwardProp){const J=f.shouldForwardProp;if(r.shouldForwardProp){const $=r.shouldForwardProp;x=(ie,_)=>J(ie,_)&&$(ie,_)}else x=J}const v=new OE(u,b,c?f.componentStyle:void 0);function R(J,$){return(function(ie,_,F){const{attrs:L,componentStyle:I,defaultProps:X,foldedComponentIds:S,styledComponentId:O,target:z}=ie,N=Gt.useContext(ei),j=Gb(),w=ie.shouldForwardProp||j.shouldForwardProp,M=Ob(_,N,X)||Wr,[ee,te]=(function(Ne,re,Ee){const T=Object.assign(Object.assign({},re),{className:void 0,theme:Ee});let ce=null;const ge=Ne.length>1;for(let ve=0;ve<Ne.length;ve++){const K=Ne[ve],ae=ri(K)?K(ge?Object.assign({},T):T):K;for(const B in ae)B==="className"?T.className=xs(T.className,ae[B]):B==="style"?T.style=Object.assign(Object.assign({},T.style),ae[B]):ae[B]===void 0?B in T&&(T[B]!==void 0&&(ce||(ce=[])).push(B),T[B]=void 0):T[B]=ae[B]}return"className"in re&&typeof re.className=="string"&&(T.className=xs(T.className,re.className)),[T,ce]})(L,_,M),U=I.generateAndInjectStyles(ee,j.styleSheet,j.stylis),se=ee.as||z,he=Uh(se),Se=(function(Ne,re,Ee,T,ce,ge){const ve={};for(const K in Ne)K[0]==="$"||K==="as"||K==="theme"&&Ne.theme===Ee||(K==="forwardedAs"?Ne.forwardedAs!==void 0&&(ve.as=Ne.forwardedAs):Ne[K]===void 0?K==="className"||ce||ge!==null&&ge.indexOf(K)!==-1||T&&!T(K,re)||(ve[K]=void 0):T&&!T(K,re)||(ve[K]=Ne[K]));return ve})(ee,se,M,w,he,te);let je=xs(S,O);return U&&(je+=" "+U),ee.className&&(je+=" "+ee.className),Se[he&&se.includes("-")?"class":"className"]=je,F&&(Se.ref=F),Q.createElement(se,Se)})(G,J,$)}R.displayName=m;let G=Gt.forwardRef(R);return G.attrs=E,G.componentStyle=v,G.displayName=m,G.shouldForwardProp=x,G.foldedComponentIds=c?xs(f.foldedComponentIds,f.styledComponentId):"",G.styledComponentId=b,G.target=c?f.target:l,Object.defineProperty(G,"defaultProps",{get(){return this._foldedDefaultProps},set(J){this._foldedDefaultProps=c?(function($,...ie){for(const _ of ie)Hh($,_,!0);return $})({},f.defaultProps,J):J}}),up(G,()=>`.${G.styledComponentId}`),d&&Nb(G,l,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),G}var DE=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function L1(l,r){const u=[l[0]];for(let c=0,f=r.length;c<f;c+=1)u.push(r[c],l[c+1]);return u}const U1=l=>(Db.add(l),l);function cp(l,...r){if(ri(l)||Os(l))return U1(ua(L1(rp,[l,...r])));const u=l;return r.length===0&&u.length===1&&typeof u[0]=="string"?ua(u):U1(ua(L1(u,r)))}function Gh(l,r,u=Wr){if(!r)throw rl(1,r);const c=(f,...d)=>l(r,u,cp(f,...d));return c.attrs=f=>Gh(l,r,Object.assign(Object.assign({},u),{attrs:Array.prototype.concat(u.attrs,f).filter(Boolean)})),c.withConfig=f=>Gh(l,r,Object.assign(Object.assign({},u),f)),c}const Yb=l=>Gh(ME,l),Le=Yb;DE.forEach(l=>{Le[l]=Yb(l)});class zE{constructor(r,u){this.instanceRules=new Map,this.rules=r,this.componentId=u,this.isStatic=(function(c){for(let f=0;f<c.length;f+=1){const d=c[f];if(ri(d)&&!op(d))return!1}return!0})(r),Ns.registerId(this.componentId)}removeStyles(r,u){this.instanceRules.delete(r),this.rebuildGroup(u)}renderStyles(r,u,c,f){const d=this.componentId;if(this.isStatic){if(c.hasNameForId(d,d+r))this.instanceRules.has(r)||this.computeRules(r,u,c,f);else{const g=this.computeRules(r,u,c,f);c.insertRules(d,g.name,g.rules)}return}const h=this.instanceRules.get(r);if(this.computeRules(r,u,c,f),!c.server&&h){const g=h.rules,m=this.instanceRules.get(r).rules;if(g.length===m.length){let b=!0;for(let E=0;E<g.length;E++)if(g[E]!==m[E]){b=!1;break}if(b)return}}this.rebuildGroup(c)}computeRules(r,u,c,f){const d=Vu(ua(this.rules,u,c,f)),h={name:this.componentId+r,rules:f(d,"")};return this.instanceRules.set(r,h),h}rebuildGroup(r){const u=this.componentId;r.clearRules(u);for(const c of this.instanceRules.values())r.insertRules(u,c.name,c.rules)}}function BE(l,...r){const u=cp(l,...r),c=`sc-global-${sp(JSON.stringify(u))}`,f=new zE(u,c),d=g=>{const m=Gb(),b=Gt.useContext(ei);let E;{const x=Gt.useRef(null);x.current===null&&(x.current=m.styleSheet.allocateGSInstance(c)),E=x.current}m.styleSheet.server&&h(E,g,m.styleSheet,b,m.stylis);{const x=f.isStatic?[E,m.styleSheet,f]:[E,g,m.styleSheet,b,m.stylis,f],v=Gt.useRef(f);Gt.useLayoutEffect(()=>{m.styleSheet.server||(v.current!==f&&(m.styleSheet.clearRules(c),v.current=f),h(E,g,m.styleSheet,b,m.stylis))},x),Gt.useLayoutEffect(()=>()=>{m.styleSheet.server||f.removeStyles(E,m.styleSheet)},[E,m.styleSheet,f])}return m.styleSheet.server&&f.instanceRules.delete(E),null};function h(g,m,b,E,x){if(f.isStatic)f.renderStyles(g,X6,b,x);else{const v=Object.assign(Object.assign({},m),{theme:Ob(m,E,d.defaultProps)});f.renderStyles(g,v,b,x)}}return Gt.memo(d)}var Fb;class LE{constructor(r,u){this[Fb]=!0,this.inject=(c,f=kh)=>{const d=this.getName(f);if(!c.hasNameForId(this.id,d)){const h=f(this.rules,d,"@keyframes");c.insertRules(this.id,d,h)}},this.name=r,this.id=wb+r,this.rules=u,ms(this.id),up(this,()=>{throw rl(12,String(this.name))})}getName(r=kh){return r.hash?this.name+ip(+r.hash>>>0):this.name}}function Vb(l,...r){const u=Vu(cp(l,...r)),c=sp(u);return new LE(c,u)}Fb=zb;function fp(l){let r="";for(let u in l){if(!l[u])continue;const c=u.replaceAll(/([A-Z])/g,"-$1").toLowerCase(),f=l[u];typeof f=="object"?r+=`${c}{
|
|
75
|
+
`+fp(f)+`};
|
|
76
|
+
`:r+=`${c}: ${f};
|
|
77
|
+
`}return r}const UE=Vb`
|
|
78
|
+
0% {
|
|
79
|
+
opacity: .0;
|
|
80
|
+
transform: translate(0,50vh);
|
|
81
|
+
}
|
|
82
|
+
100% {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transform: translate(0,0);
|
|
85
|
+
}
|
|
86
|
+
`,HE=Le.div`
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
${({$sx:l})=>l?fp(l):""}
|
|
89
|
+
&[data-animate="true"] {
|
|
90
|
+
animation: ${UE} 0.3s cubic-bezier(0.5, 0, 0.5, 1);
|
|
91
|
+
}
|
|
92
|
+
`,qE=Le.input`
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
${({$sx:l})=>l?fp(l):""}
|
|
95
|
+
`,Qb=(l,r)=>{if(!(!r||!r.colors||!l))for(let u in l){const c=l[u];if(typeof c=="object"){Qb(c,r);continue}if(!(!c||typeof c!="string"))if(r.colors[c])l[u]=r.colors[c];else for(let f in r.colors)c.indexOf(f)>-1&&(l[u]=c.replace(f,r.colors[f]))}},pe=Q.forwardRef((l,r)=>{const u=ic(),{children:c,sx:f,title:d,style:h}=l,g={};for(let E in l)E.indexOf("data-")===0&&(g[E]=l[E]);let m=f;if(l.vflex&&(m||(m={}),m.display="flex",m.flexDirection="column"),l.cflex&&(m||(m={}),m.display="flex",m.flexDirection="column",m.alignItems="center",m.justifyContent="center"),Qb(m,u),l.element&&l.element==="input")return s.jsx(qE,{ref:r??null,id:l.id,...g,style:h,onClick:l.onClick,$sx:m,type:l.type,onChange:()=>{},value:l.value});let b=c;return l.scrollable&&(m||(m={}),m.position="relative",m.overflow="auto",b=s.jsx(pe,{sx:{},children:c})),s.jsx(HE,{"data-animate":l.animate,ref:r??null,id:l.id,title:d,style:h,...g,onClick:l.onClick,onMouseOver:E=>{l.onMouseOver&&l.index!==void 0&&l.onMouseOver(l.index)},$sx:m,children:b})}),fe=l=>{const r={...l};return r.sx={...r.sx,display:"flex"},r.gap&&(r.sx={...r.sx,gap:r.gap}),r.center&&(r.sx={...r.sx,justifyContent:"center",alignItems:"center"}),s.jsx(pe,{...r})},P=Q.forwardRef((l,r)=>{const u={...l};return u.sx={...u.sx,display:"flex",flexDirection:"column"},u.gap&&(u.sx={...u.sx,gap:u.gap}),u.center&&(u.sx={...u.sx,justifyContent:"center",alignItems:"center"}),s.jsx(pe,{ref:r,...u})}),de=Q.forwardRef(({onClick:l,bold:r,italic:u,children:c,variant:f,sx:d,block:h,capitalize:g,uppercase:m,align:b,weight:E,color:x,inline:v},R)=>{const G=ic();if(f&&G&&G.typo){const $=G.typo[f];if($){for(let ie in $){const _=$[ie];if((_+"").startsWith("--")){const F=(_+"").substring(2);F in G.colors&&($[ie]=G.colors[F])}}d={...$,...d}}}const J={...d};return h&&(J.display="block",J.textOverflow="ellipsis",J.overflow="hidden"),b&&(J.textAlign=b),E&&(J.fontWeight=E),x&&(J.color=x),g&&(J.textTransform="capitalize"),m&&(J.textTransform="uppercase"),u&&(J.fontStyle="italic"),r&&(J.fontWeight="700"),v&&(J.display="inline-block"),s.jsx(pe,{onClick:l,sx:J,ref:R,children:c})}),kE=l=>{let r=l.sx;return r||(r={}),r.fontSize="11px",r={...l.sx,...r},s.jsx(de,{...l,sx:r})},bt=l=>{let r=l.sx;return r||(r={}),r.fontSize="12px",r.color="#465264",l.color&&(r.color=l.color),r={...r,"@media (prefers-color-scheme: dark)":{}},r={...r,...l.sx},s.jsx(de,{...l,sx:r})},GE=l=>{let r=l.sx;return r||(r={}),r.fontSize="14px",r={...l.sx,...r},s.jsx(de,{...l,sx:r})},YE=l=>s.jsx(de,{...l,sx:{fontSize:"13px",color:"#8a0037",...l.sx}}),dp=({error:l,sx:r})=>{let u=null;if(l)if(typeof l=="object"&&"code"in l&&"message"in l)u=l;else if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")u={code:0,message:l};else if(typeof l=="object"&&("code"in l||"message"in l))u=l.error;else try{u={code:1,message:JSON.stringify(l)}}catch{u={code:2,message:"unknown error"}}return!u||u.code<=-100?null:s.jsxs(pe,{sx:{border:"1px dashed red",padding:"10px",borderRadius:"6px",backgroundColor:"rgba(255,0,0,0.1)",...r},children:[s.jsx(YE,{children:u.message}),u.details&&s.jsx(GE,{block:!0,children:u.details})]})},FE=Q.forwardRef(({size:l,grow:r,minHeight:u},c)=>s.jsx(pe,{ref:c,sx:{minWidth:l,minHeight:u||l,flexShrink:u?"0":"unset",maxWidth:l,maxHeight:l,width:l,height:u&&l,flexGrow:r?"1":void 0}})),Qr={padding:"16px 20px",borderRadius:"6px",cursor:"pointer",boxShadow:"0px 0px 10px rgba(0,0,0,.1)",transition:"background-color .2s, border .2s",display:"flex",alignItems:"center",position:"relative",gap:"10px",fontWeight:"400",userSelect:"none",fontSize:".95rem",justifyContent:"center",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",backgroundColor:"buttonBackgroundPrimary",color:"buttonTextPrimary","&:hover":{transition:"background-color .2s, border .2s",backgroundColor:"buttonBackgroundPrimaryHover"}},H1={...Qr,backgroundColor:"transparent",border:"1px solid rgba(127,116,116,.1)",boxShadow:"none",fontWeight:"400",color:"buttonTextSecondary","&:hover":{backgroundColor:"rgba(0,0,0,.02)"}},q1={fontSize:".8rem",padding:"10px 16px"},$b={primary:{...Qr},secondary:{...H1},empty:{...Qr,boxShadow:"none",backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"}},icon:{...Qr,border:"0px solid buttonBackgroundSecondary",boxShadow:"none",backgroundColor:"transparent",padding:"10px","&:hover":{backgroundColor:"transparent",border:"0px solid buttonBackgroundPrimary"}},primarySmall:{...Qr,...q1},secondarySmall:{...H1,...q1},emptySmall:{...Qr}},Qu=({onClick:l,icon:r,children:u,variant:c,sx:f,iconRight:d,disabled:h,title:g,center:m})=>{!c&&r&&!g&&!u&&(c="icon"),c||(c="primary");let b={};!u&&g&&(u=g);let E=u;const x=ic();return x&&x.buttons&&x.buttons[c]&&(b=x.buttons[c]),s.jsxs(pe,{sx:{...b,...f,pointerEvents:h?"none":"auto"},onClick:l,children:[h&&s.jsx(pe,{sx:{top:"0px",left:"0px",position:"absolute",backgroundColor:"rgba(0,0,0,.04)",backdropFilter:"saturate(0.1)",width:"100%",height:"100%",borderRadius:"6px",zIndex:1}}),r&&s.jsx(pe,{sx:{alignItems:"center",lineHeight:"0px"},children:r}),E,d&&s.jsxs(s.Fragment,{children:[!m&&s.jsx(FE,{grow:!0}),s.jsx(pe,{sx:{lineHeight:"0px"},children:d})]})]})},VE=()=>s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M8.00052 8.93385L4.73385 12.2005C4.61163 12.3227 4.45608 12.3839 4.26719 12.3839C4.0783 12.3839 3.92274 12.3227 3.80052 12.2005C3.6783 12.0783 3.61719 11.9227 3.61719 11.7339C3.61719 11.545 3.6783 11.3894 3.80052 11.2672L7.06719 8.00052L3.80052 4.73385C3.6783 4.61163 3.61719 4.45608 3.61719 4.26719C3.61719 4.0783 3.6783 3.92274 3.80052 3.80052C3.92274 3.6783 4.0783 3.61719 4.26719 3.61719C4.45608 3.61719 4.61163 3.6783 4.73385 3.80052L8.00052 7.06719L11.2672 3.80052C11.3894 3.6783 11.545 3.61719 11.7339 3.61719C11.9227 3.61719 12.0783 3.6783 12.2005 3.80052C12.3227 3.92274 12.3839 4.0783 12.3839 4.26719C12.3839 4.45608 12.3227 4.61163 12.2005 4.73385L8.93385 8.00052L12.2005 11.2672C12.3227 11.3894 12.3839 11.545 12.3839 11.7339C12.3839 11.9227 12.3227 12.0783 12.2005 12.2005C12.0783 12.3227 11.9227 12.3839 11.7339 12.3839C11.545 12.3839 11.3894 12.3227 11.2672 12.2005L8.00052 8.93385Z",fill:"#14171F",fillOpacity:"0.6"})}),QE=Vb`
|
|
96
|
+
0% {
|
|
97
|
+
transform: rotate(0deg);
|
|
98
|
+
}
|
|
99
|
+
100% {
|
|
100
|
+
transform: rotate(360deg);
|
|
101
|
+
}
|
|
102
|
+
`,$E=Le.div`
|
|
103
|
+
display: inline-block;
|
|
104
|
+
position: relative;
|
|
105
|
+
width: ${l=>l.$size}px;
|
|
106
|
+
height: ${l=>l.$size}px;
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
|
|
111
|
+
&>div{
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
display: block;
|
|
114
|
+
position: absolute;
|
|
115
|
+
width: 90%;
|
|
116
|
+
height: 90%;
|
|
117
|
+
border: ${l=>Math.round(l.$size*.1)}px solid ${l=>l.$color} ;
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
animation: ${QE} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
120
|
+
border-color: ${l=>l.$color} transparent transparent transparent;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&>div:nth-child(1) {
|
|
124
|
+
animation-delay: -0.45s;
|
|
125
|
+
}
|
|
126
|
+
&>div:nth-child(2) {
|
|
127
|
+
animation-delay: -0.3s;
|
|
128
|
+
}
|
|
129
|
+
&div:nth-child(3) {
|
|
130
|
+
animation-delay: -0.15s;
|
|
131
|
+
}
|
|
132
|
+
`,ti=({color:l,size:r=40})=>s.jsxs($E,{$size:r,$color:l||"#665374",children:[s.jsx("div",{}),s.jsx("div",{}),s.jsx("div",{}),s.jsx("div",{})]}),wt=({children:l,onClose:r,label:u,scrollable:c,decorator:f,busy:d,sx:h,contentPadding:g})=>{f==="absolute"&&c&&(l=s.jsx(pe,{sx:{display:f==="absolute"?"flex":void 0,flexDirection:f==="absolute"?"column":void 0,maxHeight:f==="absolute"?"80vh":void 0,zIndex:f==="absolute"?100:void 0,overflow:"auto"},children:l}));const m=u?s.jsx(pe,{sx:{padding:g??"30px",boxSizing:"border-box",overflowX:"hidden",overflowY:"auto",flexGrow:1},children:l}):l,b=s.jsxs(pe,{sx:{border:"1px solid rgba(255, 255, 255, 0.05)",padding:u?void 0:"30px",borderRadius:"6px",boxShadow:"0px 0px 100px rgba(0,0,0,.1)",pointerEvents:d?"none":"auto",userSelect:d?"none":"auto",display:"flex",position:"relative",flexDirection:"column",backgroundColor:"panelBackgroundPrimary",...h},children:[d&&s.jsxs(pe,{sx:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,.5)",zIndex:1e5,display:"flex",flexDirection:"column",gap:"10px",justifyContent:"center",alignItems:"center"},children:[s.jsx(ti,{color:"#ad1bf1"}),s.jsx(kE,{children:"Please wait..."})]}),u&&s.jsxs(s.Fragment,{children:[s.jsx(pe,{sx:{backgroundColor:f==="absolute"?"panelHeadBackgroundColor":void 0,padding:"20px",boxSizing:"border-box",width:"100%"},children:s.jsx(de,{variant:"head",sx:{display:"flex",paddingRight:"30px",overflowWrap:"break-word",wordBreak:"break-all",width:"100%",fontWeight:f==="absolute"?"200":"500",fontSize:f==="absolute"?"1.4rem":"1.2rem"},children:u})}),s.jsx(pe,{sx:{boxSizing:"border-box",background:"panelDividerBackgroundColor",height:"2px",maxHeight:"2px"}})]}),r&&s.jsx(Qu,{icon:s.jsx(VE,{}),sx:{position:"absolute",top:"20px",right:"20px"},onClick:r}),m,d&&s.jsx(pe,{sx:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",backdropFilter:"saturate(0.2)",zIndex:100001}})]});let E=s.jsx(s.Fragment,{children:b});return f==="absolute"&&(E=s.jsx(pe,{sx:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10,backgroundColor:"rgba(0,0,0,.6)"},children:b})),E},XE="#9a96ad",V=({children:l,sx:r})=>s.jsx(de,{variant:"caption",sx:{opacity:1,color:XE,letterSpacing:".02em",...r},children:l}),ZE=new Vt(l=>e6(l)),Xb=new Vt(l=>t6(l)),Zb=new Vt(()=>n6()),Kb=new Vt(l=>l!=null&&l.weekKey?l6({weekKey:l.weekKey}):Promise.resolve({httpStatus:0})),KE=new Vt(()=>a6()),IE=new Vt(l=>y6(l)),JE=new Vt(()=>r6()),PE=new Vt(l=>i6(l)),WE=new Vt(()=>s6()),e3=new Vt(()=>o6()),Ib=new Vt(()=>u6()),t3=new Vt(()=>d6()),n3=new Vt(()=>h6()),l3=new Vt(()=>c6()),a3=new Vt(l=>l!=null&&l.confirm?f6(l):Promise.resolve({httpStatus:0}));new Vt(l=>db(l??{}));const _n=(l,r,u=!0)=>{const c=Q.useRef(l);c.current=l,Q.useEffect(()=>{if(!u)return;c.current();const f=setInterval(()=>c.current(),r);return()=>clearInterval(f)},[r,u])},r3={top:16,right:16,bottom:26,left:48},k1=4,i3=l=>{if(l<=0)return 1;const r=Math.pow(10,Math.floor(Math.log10(l))),u=l/r;return(u<=1?1:u<=2?2:u<=5?5:10)*r},G1=(l,r,u,c)=>{if(r.length===0)return;const f=d=>Math.max(u,Math.min(c,d));if(l.moveTo(r[0].x,r[0].y),r.length<3){for(let d=1;d<r.length;d++)l.lineTo(r[d].x,r[d].y);return}for(let d=0;d<r.length-1;d++){const h=r[d-1]??r[d],g=r[d],m=r[d+1],b=r[d+2]??m,E=g.x+(m.x-h.x)/6,x=f(g.y+(m.y-h.y)/6),v=m.x-(b.x-g.x)/6,R=f(m.y-(b.y-g.y)/6);l.bezierCurveTo(E,x,v,R,m.x,m.y)}},Y1=(l,r)=>{const u=Math.max(0,Math.min(1,r));if(l.startsWith("#")){let c=l.slice(1);c.length===3&&(c=c.split("").map(g=>g+g).join(""));const f=parseInt(c.slice(0,2),16),d=parseInt(c.slice(2,4),16),h=parseInt(c.slice(4,6),16);return`rgba(${f},${d},${h},${u})`}if(l.startsWith("rgb")){const[c,f,d]=l.replace(/rgba?\(/,"").replace(/\)/,"").split(",");return`rgba(${c.trim()},${f.trim()},${d.trim()},${u})`}return l},Yt=({series:l,labels:r,height:u=200,unit:c="",yMax:f,formatValue:d,hover:h,onHoverChange:g,padding:m})=>{const b=ic(),E=Q.useRef(null),x=Q.useRef(null),[v,R]=Q.useState(600),[G,J]=Q.useState(null),$=h!==void 0,ie=$?h??null:G,_={...r3,...m??{}},F=Q.useCallback(N=>d?d(N):`${Math.round(N*100)/100}${c}`,[d,c]),L=r.length;Q.useLayoutEffect(()=>{const N=E.current;if(!N)return;const j=new ResizeObserver(w=>{var ee;const M=(ee=w[0])==null?void 0:ee.contentRect.width;M&&R(Math.max(160,Math.floor(M)))});return j.observe(N),()=>j.disconnect()},[]),Q.useEffect(()=>{const N=x.current,j=N==null?void 0:N.getContext("2d");if(!N||!j)return;const w=window.devicePixelRatio||1;N.width=v*w,N.height=u*w,N.style.width=v+"px",N.style.height=u+"px",j.setTransform(w,0,0,w,0,0),j.clearRect(0,0,v,u);const M=v-_.left-_.right,ee=u-_.top-_.bottom,te="rgba(255,255,255,.07)",U="rgba(255,255,255,.35)",se=l.flatMap(re=>re.values.filter(Ee=>Number.isFinite(Ee))),he=se.length?Math.max(...se):0,Se=f??i3(he||1),je=re=>_.left+(L<=1?M/2:M*re/(L-1)),Ne=re=>_.top+ee-ee*Math.min(re,Se)/Se;j.font="11px -apple-system, sans-serif",j.textBaseline="middle",j.textAlign="right";for(let re=0;re<=k1;re++){const Ee=Se/k1*re,T=Ne(Ee);j.strokeStyle=te,j.lineWidth=1,j.beginPath(),j.moveTo(_.left,T),j.lineTo(v-_.right,T),j.stroke(),j.fillStyle=U,j.fillText(F(Ee),_.left-8,T)}if(j.textAlign="center",j.textBaseline="top",L>0){const re=Math.max(2,Math.floor(M/90)),Ee=Math.max(1,Math.ceil(L/re));for(let T=0;T<L;T+=Ee)j.fillStyle=U,j.fillText(r[T],je(T),u-_.bottom+8)}for(const re of l){if(re.values.length===0)continue;const Ee=[];let T=[];for(let ge=0;ge<re.values.length;ge++){const ve=re.values[ge];Number.isFinite(ve)?T.push({x:je(ge),y:Ne(ve)}):T.length>0&&(Ee.push(T),T=[])}if(T.length>0&&Ee.push(T),Ee.length===0)continue;const ce=j.createLinearGradient(0,_.top,0,_.top+ee);ce.addColorStop(0,Y1(re.color,.33)),ce.addColorStop(1,Y1(re.color,0));for(const ge of Ee)j.save(),j.beginPath(),G1(j,ge,_.top,_.top+ee),j.lineTo(ge[ge.length-1].x,_.top+ee),j.lineTo(ge[0].x,_.top+ee),j.closePath(),j.fillStyle=ce,j.fill(),j.restore(),j.beginPath(),G1(j,ge,_.top,_.top+ee),j.strokeStyle=re.color,j.lineWidth=2,j.lineJoin="round",j.stroke()}if(ie!==null&&ie>=0&&ie<L){const re=je(ie);j.strokeStyle="rgba(255,255,255,.25)",j.lineWidth=1,j.beginPath(),j.moveTo(re,_.top),j.lineTo(re,_.top+ee),j.stroke();for(const Ee of l){const T=Ee.values[ie];Number.isFinite(T)&&(j.beginPath(),j.arc(re,Ne(T),3.5,0,Math.PI*2),j.fillStyle=Ee.color,j.fill(),j.strokeStyle=b.colors.panelBackgroundPrimary,j.lineWidth=2,j.stroke())}}},[l,r,v,u,f,ie,b,F,L,_.top,_.right,_.bottom,_.left]);const I=N=>{$?g==null||g(N):J(N)},X=N=>{if(L===0)return;const j=N.currentTarget.getBoundingClientRect(),w=v-_.left-_.right,M=(N.clientX-j.left-_.left)/w,ee=Math.round(M*(L-1));I(Math.max(0,Math.min(L-1,ee)))},S=()=>{$||J(null)},O=ie!==null?_.left+(v-_.left-_.right)*ie/Math.max(1,L-1):0,z=O>v/2;return s.jsxs(P,{sx:{gap:"10px",width:"100%"},children:[s.jsx(fe,{sx:{gap:"16px",flexWrap:"wrap"},children:l.map(N=>s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(pe,{sx:{width:"10px",height:"10px",borderRadius:"2px",backgroundColor:N.color}}),s.jsx(bt,{children:N.name})]},N.name))}),s.jsxs(pe,{ref:E,sx:{position:"relative",width:"100%"},children:[L===0?s.jsx(pe,{sx:{height:u+"px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px dashed rgba(255,255,255,.1)",borderRadius:"6px"},children:s.jsx(bt,{children:"No data for the selected range"})}):s.jsx("canvas",{ref:x,onMouseMove:X,onMouseLeave:S}),ie!==null&&L>0&&s.jsxs(pe,{sx:{position:"absolute",top:"0px",[z?"right":"left"]:(z?v-O+8:O+8)+"px",backgroundColor:"rgba(0,0,0,.85)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"6px",padding:"8px 10px",pointerEvents:"none",minWidth:"120px",zIndex:5},children:[s.jsx(bt,{children:r[ie]}),l.map(N=>s.jsxs(fe,{sx:{gap:"8px",justifyContent:"space-between",marginTop:"2px"},children:[s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(pe,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:N.color}}),s.jsx(bt,{children:N.name})]}),s.jsx(de,{variant:"medium",children:Number.isFinite(N.values[ie])?F(N.values[ie]):"—"})]},N.name))]})]})]})},sc=(l,r)=>{const u=new Date(l),c=String(u.getHours()).padStart(2,"0"),f=String(u.getMinutes()).padStart(2,"0");if(r==="hour")return`${c}:${f}`;const d=String(u.getDate()).padStart(2,"0"),h=String(u.getMonth()+1).padStart(2,"0");return`${d}.${h} ${c}:${f}`},s3=l=>{const r=String(l);return new Date(+r.slice(0,4),+r.slice(4,6)-1,+r.slice(6,8),+r.slice(8,10),+r.slice(10,12)).getTime()},Et=l=>{if(!Number.isFinite(l))return"—";const r=Math.abs(l);return r<1024?`${l} B`:r<1024**2?`${(l/1024).toFixed(1)} KB`:r<1024**3?`${(l/1024/1024).toFixed(1)} MB`:`${(l/1024/1024/1024).toFixed(2)} GB`},hp=l=>{if(!Number.isFinite(l)||l<0)return"—";const r=Math.floor(l),u=Math.floor(r/86400),c=Math.floor(r%86400/3600),f=Math.floor(r%3600/60),d=r%60;return u?`${u}d ${c}h`:c?`${c}h ${f}m`:f?`${f}m ${d}s`:`${d}s`},ou=l=>l>=1024?`${(l/1024).toFixed(1)} GB`:`${Math.round(l)} MB`,Jb=l=>{const r=new Map,u=f=>{let d=r.get(f);return d||(d={endpoint:f,success:0,fail:0,total:0},r.set(f,d)),d};for(const{slot:f}of l){for(const[d,h]of Object.entries(f.successEp))u(d).success+=h;for(const[d,h]of Object.entries(f.failEp))u(d).fail+=h}const c=[...r.values()];return c.forEach(f=>f.total=f.success+f.fail),c.sort((f,d)=>d.total-f.total),c},o3=l=>{const r=new Map;for(const{slot:u}of l)for(const[c,f]of Object.entries(u.http??{}))r.set(c,(r.get(c)??0)+f);return[...r.entries()].map(([u,c])=>({url:u,count:c})).sort((u,c)=>c.count-u.count)},Pb=l=>{const r=new Map,u=f=>{let d=r.get(f);return d||(d={query:f,success:0,fail:0,total:0},r.set(f,d)),d};for(const{slot:f}of l){for(const[d,h]of Object.entries(f.success_sql??{}))u(d).success+=h;for(const[d,h]of Object.entries(f.fail_sql??{}))u(d).fail+=h}const c=[...r.values()];return c.forEach(f=>f.total=f.success+f.fail),c.sort((f,d)=>d.total-f.total),c},ss="#bb5656",F1="#48BFE3",u3="#5390d9",c3="#c48af0",V1=l=>{const r=/^(\d{4})-W(\d{1,2})$/.exec(l);if(!r)return l;const u=+r[1],c=+r[2],d=new Date(u,0,4).getDay()||7,h=new Date(u,0,4-d+1+(c-1)*7);if(Number.isNaN(h.getTime()))return l;const g=String(h.getDate()).padStart(2,"0"),m=String(h.getMonth()+1).padStart(2,"0");return`${l} · ${g}.${m}`},f3=l=>l.length>96?l.slice(0,96)+"…":l,d3=()=>{const[l,r]=Q.useState([]),[u,c]=Q.useState(null),[f,d]=Q.useState(null),[h,g]=Q.useState([]),[m,b]=Q.useState(null),[,E,,x]=Zb.useRequest(S=>{if(S!=null&&S.error){c(S.error.details??S.error.message);return}c(null);const O=[...(S==null?void 0:S.data)??[]].sort().reverse();r(O),O.length>0&&!f&&d(O[0])}),[,v,,R]=Kb.useRequest(S=>{if(S!=null&&S.error){b(S.error.details??S.error.message),g([]);return}!S||!S.data&&S.httpStatus===0||(b(null),g(S.data??[]))});Q.useEffect(()=>{E()},[]),Q.useEffect(()=>{if(!f){g([]);return}v({weekKey:f})},[f]);const G=Q.useMemo(()=>[{name:"CPU %",color:c3,values:h.map(S=>S.slot.cpu)}],[h]),J=Q.useMemo(()=>[{name:"RSS",color:u3,values:h.map(S=>S.slot.memory.rss*1024*1024)},{name:"Heap used",color:F1,values:h.map(S=>S.slot.memory.heapUsed*1024*1024)}],[h]),$=Q.useMemo(()=>h.map(S=>sc(S.timestamp,"day")),[h]),ie=Q.useMemo(()=>Jb(h),[h]),_=Q.useMemo(()=>Pb(h),[h]),F=ie.slice(0,10),L=_.slice(0,10),I=ie.reduce((S,O)=>S+O.total,0),X=ie.reduce((S,O)=>S+O.fail,0);return s.jsxs(P,{sx:{gap:"20px"},children:[s.jsx(wt,{label:"Metrics archive",children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(fe,{sx:{gap:"12px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(V,{children:"Persisted weeks"}),x&&s.jsx(ti,{size:14}),u&&s.jsx(de,{variant:"medium",sx:{color:ss,fontSize:".8rem"},children:u})]}),!x&&l.length===0&&!u&&s.jsxs(V,{children:["No archived weeks yet — the backend either has no ",s.jsx("code",{children:"metricsDir"})," configured, or the current week hasn't been persisted to disk yet."]}),l.length>0&&s.jsx(fe,{sx:{gap:"8px",flexWrap:"wrap"},children:l.map(S=>{const O=S===f;return s.jsx(pe,{onClick:()=>d(S),sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".76rem",fontFamily:"monospace",color:O?"#fff":"rgba(255,255,255,.75)",backgroundColor:O?"#5390d9":"rgba(255,255,255,.05)",border:"1px solid "+(O?"#5390d9":"rgba(255,255,255,.08)"),"&:hover":O?void 0:{backgroundColor:"rgba(255,255,255,.09)"}},children:V1(S)},S)})})]})}),f&&s.jsx(wt,{label:`Week ${V1(f)}`,children:s.jsxs(P,{sx:{gap:"20px"},children:[s.jsxs(fe,{sx:{gap:"20px",alignItems:"baseline",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Samples"}),s.jsx(de,{variant:"headMedium",children:h.length})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Requests"}),s.jsx(de,{variant:"headMedium",sx:{color:F1},children:I})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Failed"}),s.jsx(de,{variant:"headMedium",sx:{color:X>0?ss:void 0},children:X})]}),R&&s.jsx(ti,{size:16})]}),m&&s.jsx(de,{variant:"medium",sx:{color:ss,fontSize:".85rem"},children:m}),!R&&!m&&h.length===0&&s.jsx(V,{children:"No samples in this week."}),h.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs(P,{sx:{gap:"10px"},children:[s.jsx(V,{children:"CPU %"}),s.jsx(Yt,{series:G,labels:$,height:180,yMax:100,formatValue:S=>`${Math.round(S*100)/100}%`})]}),s.jsxs(P,{sx:{gap:"10px"},children:[s.jsx(V,{children:"Memory"}),s.jsx(Yt,{series:J,labels:$,height:180,formatValue:Et})]}),F.length>0&&s.jsxs(P,{sx:{gap:"8px"},children:[s.jsx(V,{children:"Top endpoints"}),F.map(S=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"16px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:S.endpoint}),s.jsxs(fe,{sx:{gap:"12px",flexShrink:0},children:[s.jsx(bt,{children:S.total}),S.fail>0&&s.jsxs(de,{variant:"caption",sx:{color:ss,opacity:1},children:[S.fail," fail"]})]})]},S.endpoint))]}),L.length>0&&s.jsxs(P,{sx:{gap:"8px"},children:[s.jsx(V,{children:"Top SQL"}),L.map(S=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"16px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".76rem",opacity:.9,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f3(S.query)}),s.jsxs(fe,{sx:{gap:"12px",flexShrink:0},children:[s.jsxs(bt,{children:[S.success," ok"]}),S.fail>0&&s.jsxs(de,{variant:"caption",sx:{color:ss,opacity:1},children:[S.fail," fail"]})]})]},S.query))]})]})]})})]})},h3=45e3,Q1="#56bb56",oh="#bb5656",p3="#e9b61e",g3="#5390d9",m3="#c48af0",uu={left:56,right:16,top:12,bottom:26},cu=170,Kt="__all__",x3=l=>{const r=new Date(l);return`${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`},y3=l=>{const r=/^(\d{4})-W(\d{1,2})$/.exec(l);if(!r)return l;const u=+r[1],c=+r[2],d=new Date(u,0,4).getDay()||7,h=new Date(u,0,4-d+1+(c-1)*7);if(Number.isNaN(h.getTime()))return l;const g=String(h.getDate()).padStart(2,"0"),m=String(h.getMonth()+1).padStart(2,"0");return`${l} · ${g}.${m}`},ea=l=>!l||Object.keys(l).length===0,fu=(l,r)=>{if(!l)return 0;if(r!==void 0)return l[r]??0;let u=0;for(const c in l)u+=l[c];return u},b3=Le.select`
|
|
133
|
+
padding: 6px 10px;
|
|
134
|
+
border-radius: 6px;
|
|
135
|
+
font-size: 0.78rem;
|
|
136
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
137
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
138
|
+
color: ${({theme:l})=>l.colors.textPrimary};
|
|
139
|
+
outline: none;
|
|
140
|
+
max-width: 320px;
|
|
141
|
+
&:focus {
|
|
142
|
+
border-color: #5390d9;
|
|
143
|
+
}
|
|
144
|
+
`,os=({value:l,onChange:r,options:u,width:c})=>s.jsx(b3,{value:l,onChange:f=>r(f.target.value),style:{minWidth:c??"160px"},children:u.map(f=>s.jsx("option",{value:f.value,children:f.label},f.value))}),v3=Le.div`
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
gap: 20px;
|
|
148
|
+
`,S3=[{value:"hour",label:"Hour"},{value:"day",label:"Day"},{value:"week",label:"Week"}],du=({title:l,subtitle:r,children:u})=>s.jsxs(P,{sx:{gap:"8px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"12px",flexWrap:"wrap"},children:[s.jsx(de,{variant:"headMedium",children:l}),r&&s.jsx(bt,{children:r})]}),u]}),j3=()=>{const[l,r]=Q.useState("live"),[u,c]=Q.useState("day"),[f,d]=Q.useState(""),[h,g]=Q.useState([]),[m,b]=Q.useState([]),[E,x]=Q.useState(!1),[v,R]=Q.useState(null),[G,J]=Q.useState(null),[$,ie]=Q.useState(Kt),[_,F]=Q.useState(Kt),[L,I]=Q.useState(null),[,X]=Xb.useRequest(re=>{if(x(!1),re!=null&&re.error){R(re.error);return}R(null),b((re==null?void 0:re.data)??[]),J(Date.now())}),[,S]=Zb.useRequest(re=>{if(re!=null&&re.error)return;const Ee=[...(re==null?void 0:re.data)??[]].sort().reverse();g(Ee)}),[,O]=Kb.useRequest(re=>{if(x(!1),!(!re||re.httpStatus===0&&!re.data&&!re.error)){if(re.error){R(re.error);return}R(null),b(re.data??[]),J(Date.now())}});Q.useEffect(()=>{S()},[]),Q.useEffect(()=>{x(!0),l==="live"?X({range:u}):f?O({weekKey:f}):(x(!1),b([]))},[l,u,f]),Q.useEffect(()=>{if(l!=="live")return;const re=window.setInterval(()=>X({range:u}),h3);return()=>window.clearInterval(re)},[l,u]);const z=Q.useMemo(()=>{const re=new Set;for(const Ee of m){for(const T in Ee.slot.successEp)re.add(T);for(const T in Ee.slot.failEp)re.add(T)}return[...re].sort()},[m]),N=Q.useMemo(()=>{const re=new Set;for(const Ee of m){for(const T in Ee.slot.http_ok??{})re.add(T);for(const T in Ee.slot.http_fail??{})re.add(T);for(const T in Ee.slot.httpP95??{})re.add(T)}return[...re].sort()},[m]);Q.useEffect(()=>{$!==Kt&&!z.includes($)&&ie(Kt)},[z,$]),Q.useEffect(()=>{_!==Kt&&!N.includes(_)&&F(Kt)},[N,_]);const j=Q.useMemo(()=>m.map(re=>sc(re.timestamp,l==="live"?u:"day")),[m,l,u]),w=Q.useMemo(()=>{const re=$===Kt?void 0:$;return[{name:"OK",color:Q1,values:m.map(Ee=>fu(Ee.slot.successEp,re))},{name:"FAIL",color:oh,values:m.map(Ee=>fu(Ee.slot.failEp,re))}]},[m,$]),M=Q.useMemo(()=>{const re=_===Kt?void 0:_;return[{name:"OK",color:Q1,values:m.map(Ee=>ea(Ee.slot.http_ok)&&ea(Ee.slot.http_fail)?NaN:fu(Ee.slot.http_ok,re))},{name:"FAIL",color:oh,values:m.map(Ee=>ea(Ee.slot.http_ok)&&ea(Ee.slot.http_fail)?NaN:fu(Ee.slot.http_fail,re))}]},[m,_]),ee=Q.useMemo(()=>[{name:"rss",color:g3,values:m.map(re=>re.slot.memory.rss*1024*1024)},{name:"external",color:m3,values:m.map(re=>{const Ee=re.slot.memory.external;return typeof Ee!="number"||Ee<=0?NaN:Ee*1024*1024})}],[m]),te=Q.useMemo(()=>{const re=m.map(Ee=>{const T=Ee.slot.httpP95;if(ea(T))return NaN;if(_===Kt){let ge=0;for(const ve in T)T[ve]>ge&&(ge=T[ve]);return ge>0?ge:NaN}const ce=T[_];return typeof ce=="number"&&ce>0?ce:NaN});return[{name:_===Kt?"max p95 (all hosts)":"p95",color:p3,values:re}]},[m,_]),U=m.length===0,se=m.some(re=>!ea(re.slot.http_ok)||!ea(re.slot.http_fail)),he=m.some(re=>!ea(re.slot.httpP95)),Se=[{value:Kt,label:"All endpoints"},...z.map(re=>({value:re,label:re}))],je=[{value:Kt,label:"All hosts"},...N.map(re=>({value:re,label:re}))],Ne=[{value:"",label:h.length?"Pick a week…":"No archived weeks"},...h.map(re=>({value:re,label:y3(re)}))];return s.jsxs(P,{sx:{gap:"20px"},children:[s.jsx(wt,{label:"Correlations",children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(fe,{sx:{gap:"16px",flexWrap:"wrap",alignItems:"center"},children:[s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(V,{children:"Source"}),s.jsx(os,{value:l,onChange:re=>r(re),width:"120px",options:[{value:"live",label:"Live"},{value:"week",label:"Archive"}]})]}),l==="live"?s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(V,{children:"Range"}),s.jsx(os,{value:u,onChange:re=>c(re),width:"120px",options:S3})]}):s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(V,{children:"Week"}),s.jsx(os,{value:f,onChange:re=>d(re),width:"200px",options:Ne})]}),s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(V,{children:"Endpoint"}),s.jsx(os,{value:$,onChange:re=>ie(re),options:Se})]}),s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(V,{children:"Host"}),s.jsx(os,{value:_,onChange:re=>F(re),options:je})]}),s.jsxs(fe,{sx:{gap:"10px",alignItems:"center",marginLeft:"auto"},children:[E&&s.jsx(ti,{size:14}),G&&s.jsxs(bt,{children:["Updated ",new Date(G).toLocaleTimeString()]}),s.jsx(pe,{onClick:()=>{x(!0),l==="live"?X({range:u}):f&&O({weekKey:f})},sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#fff",backgroundColor:"#5390d9","&:hover":{backgroundColor:"#4b83c7"}},children:"Refresh"})]})]}),v&&s.jsx(pe,{sx:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"rgba(187,86,86,.12)",border:"1px solid rgba(187,86,86,.35)"},children:s.jsx(de,{variant:"medium",sx:{color:oh,fontSize:".85rem"},children:v.code===401?"No access — check monitor credentials.":v.details||v.message})}),!v&&U&&!E&&s.jsx(V,{children:"No metrics data for the current selection."})]})}),!U&&!v&&s.jsxs(v3,{onMouseLeave:()=>I(null),children:[s.jsx(wt,{children:s.jsx(du,{title:"Incoming requests",subtitle:$===Kt?"all endpoints, per slot":$,children:s.jsx(Yt,{series:w,labels:j,height:cu,padding:uu,hover:L,onHoverChange:I,formatValue:re=>Math.round(re).toString()})})}),s.jsx(wt,{children:s.jsx(du,{title:"Outgoing requests",subtitle:se?_===Kt?"all hosts, per slot":_:"Slots don't carry outgoing counters yet (backend older than the http_ok/http_fail upgrade).",children:s.jsx(Yt,{series:M,labels:j,height:cu,padding:uu,hover:L,onHoverChange:I,formatValue:re=>Math.round(re).toString()})})}),s.jsx(wt,{children:s.jsx(du,{title:"Memory",subtitle:"rss and external, MB",children:s.jsx(Yt,{series:ee,labels:j,height:cu,padding:uu,hover:L,onHoverChange:I,formatValue:Et})})}),s.jsx(wt,{children:s.jsx(du,{title:"Outgoing p95 (ms)",subtitle:he?_===Kt?"worst host per slot":_:"Slots don't carry per-slot p95 yet (backend older than the httpP95 upgrade).",children:s.jsx(Yt,{series:te,labels:j,height:cu,padding:uu,hover:L,onHoverChange:I,formatValue:re=>`${Math.round(re)} ms`})})}),L!==null&&m[L]&&s.jsxs(V,{sx:{fontSize:".72rem"},children:["Focused slot: ",s.jsx("b",{children:new Date(m[L].timestamp).toLocaleString()})," ·"," ",x3(m[L].timestamp)]})]})]})},Vn=Le.input`
|
|
149
|
+
width: 100%;
|
|
150
|
+
box-sizing: border-box;
|
|
151
|
+
padding: 13px 14px;
|
|
152
|
+
border-radius: 6px;
|
|
153
|
+
font-size: 0.9rem;
|
|
154
|
+
outline: none;
|
|
155
|
+
color: ${({theme:l})=>l.colors.textPrimary};
|
|
156
|
+
background-color: ${({theme:l})=>l.colors.inputBackgroundPrimary};
|
|
157
|
+
border: 1px solid ${({theme:l})=>l.colors.inputBorderPrimary};
|
|
158
|
+
transition: border-color 0.2s;
|
|
159
|
+
&:focus {
|
|
160
|
+
border-color: #5390d9;
|
|
161
|
+
}
|
|
162
|
+
&::placeholder {
|
|
163
|
+
color: rgba(255, 255, 255, 0.35);
|
|
164
|
+
}
|
|
165
|
+
`,E3=3e3,$1=5e3,T3=400,w3=[100,200,500,1e3,2e3],Yh="#bb5656",Fh="#e9b61e",Fa="#5390d9",O3="\0skip",C3=Le.div`
|
|
166
|
+
font-family: monospace;
|
|
167
|
+
font-size: 0.74rem;
|
|
168
|
+
line-height: 1.5;
|
|
169
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
170
|
+
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
171
|
+
border-radius: 6px;
|
|
172
|
+
padding: 10px 12px;
|
|
173
|
+
height: 65vh;
|
|
174
|
+
overflow: auto;
|
|
175
|
+
white-space: pre-wrap;
|
|
176
|
+
word-break: break-all;
|
|
177
|
+
`,A3=Le.select`
|
|
178
|
+
padding: 6px 8px;
|
|
179
|
+
border-radius: 6px;
|
|
180
|
+
font-size: 0.76rem;
|
|
181
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
182
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
183
|
+
color: inherit;
|
|
184
|
+
outline: none;
|
|
185
|
+
&:focus {
|
|
186
|
+
border-color: ${Fa};
|
|
187
|
+
}
|
|
188
|
+
`,R3=l=>{if(/\b(error|crit|fatal|emerg|alert)\b/i.test(l)||/"\s5\d\d\s/.test(l))return Yh;if(/\bwarn(ing)?\b/i.test(l)||/"\s4\d\d\s/.test(l))return Fh},uh=({active:l,onClick:r,children:u})=>s.jsx(pe,{onClick:r,sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".7rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:l?"#fff":"rgba(255,255,255,.7)",backgroundColor:l?Fa:"rgba(255,255,255,.05)",border:"1px solid "+(l?Fa:"rgba(255,255,255,.1)"),"&:hover":{backgroundColor:l?Fa:"rgba(255,255,255,.09)"}},children:u}),_3=()=>{const[l,r]=Q.useState(null),[u,c]=Q.useState(null),[f,d]=Q.useState(null),[h,g]=Q.useState([]),[m,b]=Q.useState(200),[E,x]=Q.useState(""),[v,R]=Q.useState(""),[G,J]=Q.useState(!0),[$,ie]=Q.useState(!1),[_,F]=Q.useState(null),[L,I]=Q.useState(null),X=Q.useRef(null),S=Q.useRef(!1),O=Q.useRef(0),z=Q.useRef(null),N=Q.useRef(!0),j=Q.useCallback(async()=>{const U=await p6();if(U.error){c(U.error.details||U.error.message);return}const se=U.data??[];c(null),r(se),d(he=>{var Se,je;return he??((Se=se.find(Ne=>Ne.readable))==null?void 0:Se.id)??((je=se[0])==null?void 0:je.id)??null})},[]);Q.useEffect(()=>{j()},[j]),Q.useEffect(()=>{const U=window.setTimeout(()=>R(E.trim()),T3);return()=>window.clearTimeout(U)},[E]);const w=(l==null?void 0:l.find(U=>U.id===f))??null,M=(w==null?void 0:w.readable)===!0,ee=Q.useCallback(async()=>{if(!f||!M)return;const U=++O.current;S.current=!0,ie(!0);const se=await w1({source:f,lines:m,filter:v||void 0});if(U!==O.current)return;if(S.current=!1,ie(!1),se.error){F(se.error.details||se.error.message);return}const he=se.data;F(null),X.current=he.cursor,I({path:he.path,size:he.size}),N.current=!0,g(he.lines.map(Se=>({text:Se})))},[f,M,m,v]);Q.useEffect(()=>{X.current=null,g([]),I(null),F(null),ee()},[ee]),Q.useEffect(()=>{if(!G||!f||!M)return;const U=async()=>{if(S.current||X.current===null||document.hidden)return;const he=O.current;S.current=!0;const Se=await w1({source:f,since:X.current,filter:v||void 0});if(he!==O.current)return;if(S.current=!1,Se.error){F(Se.error.details||Se.error.message);return}const je=Se.data;if(F(null),X.current=je.cursor,I({path:je.path,size:je.size}),je.rotated){g([{text:"— file rotated, showing fresh tail —",kind:"note"},...je.lines.map(Ne=>({text:Ne}))]);return}je.lines.length===0&&!je.truncated||g(Ne=>{const re=Ne.slice();je.truncated&&re.push({text:O3,kind:"sep"});for(const Ee of je.lines)re.push({text:Ee});return re.length>$1?re.slice(re.length-$1):re})},se=window.setInterval(U,E3);return()=>window.clearInterval(se)},[G,f,M,v]),Q.useLayoutEffect(()=>{const U=z.current;U&&N.current&&(U.scrollTop=U.scrollHeight)},[h]);const te=()=>{const U=z.current;U&&(N.current=U.scrollTop+U.clientHeight>=U.scrollHeight-24)};return u?s.jsx(de,{variant:"medium",sx:{color:Yh},children:u}):l?l.length===0?s.jsx(V,{children:"No file log sources reported by the backend."}):s.jsxs(P,{sx:{gap:"14px"},children:[s.jsx(fe,{sx:{gap:"8px",flexWrap:"wrap"},children:l.map(U=>{const se=U.id===f;return s.jsx(pe,{onClick:()=>d(U.id),title:U.readable?U.path??"":U.reason??"unavailable",sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".72rem",fontFamily:"monospace",opacity:U.readable?1:.45,color:se?"#fff":"rgba(255,255,255,.75)",backgroundColor:se?U.readable?Fa:"rgba(255,255,255,.12)":"rgba(255,255,255,.05)",border:"1px solid "+(se?U.readable?Fa:"rgba(255,255,255,.2)":"rgba(255,255,255,.08)")},children:U.id},U.id)})}),w&&!M&&s.jsxs(P,{sx:{gap:"6px",padding:"14px",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.2)"},children:[s.jsx(de,{variant:"medium",children:w.label}),w.path&&s.jsx(V,{sx:{fontFamily:"monospace"},children:w.path}),s.jsx(de,{variant:"medium",sx:{color:Fh,fontSize:".82rem"},children:w.reason??(w.configured?"Not readable":"Not configured on the backend")})]}),w&&M&&s.jsxs(s.Fragment,{children:[s.jsxs(fe,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(pe,{sx:{flex:"1 1 220px",minWidth:"180px",maxWidth:"360px"},children:s.jsx(Vn,{value:E,placeholder:"Filter (substring, case-insensitive)",onChange:U=>x(U.target.value),style:{padding:"7px 10px",fontSize:".78rem"}})}),s.jsx(V,{children:"Lines"}),s.jsx(A3,{value:m,onChange:U=>b(+U.target.value),children:w3.map(U=>s.jsx("option",{value:U,children:U},U))}),s.jsx(uh,{active:G,onClick:()=>J(U=>!U),children:G?"● Live":"Paused"}),s.jsx(uh,{onClick:()=>ee(),children:"Reload"}),s.jsx(uh,{onClick:()=>g([]),children:"Clear"}),$&&s.jsx(ti,{size:14}),s.jsx(pe,{sx:{marginLeft:"auto"},children:L&&s.jsxs(V,{sx:{fontFamily:"monospace",fontSize:".68rem"},children:[L.path," · ",Et(L.size)," · ",h.length," lines"]})})]}),_&&s.jsx(de,{variant:"medium",sx:{color:Yh,fontSize:".82rem"},children:_}),s.jsxs(C3,{ref:z,onScroll:te,children:[h.length===0&&!$&&s.jsx("span",{style:{opacity:.5},children:v?"No lines match the filter.":"Log is empty."}),h.map((U,se)=>U.kind==="sep"?s.jsx("div",{style:{color:Fh,opacity:.8,textAlign:"center"},children:"… more than 512 KB appended — lines skipped …"},se):U.kind==="note"?s.jsx("div",{style:{color:Fa,opacity:.8},children:U.text},se):s.jsx("div",{style:{color:R3(U.text)},children:U.text},se))]}),s.jsx(V,{sx:{fontSize:".68rem"},children:"Sensitive values (cards, CVV, passwords, tokens) are masked on the server, so filtering by them is not possible."})]})]}):s.jsx(V,{children:"Loading…"})};var N3=Dy();const M3=Zu(N3),Ka=({title:l,onClose:r,children:u,width:c="720px"})=>{Q.useEffect(()=>{const d=h=>h.key==="Escape"&&r();return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r]);const f=s.jsx(pe,{onClick:r,sx:{position:"fixed",inset:"0",backgroundColor:"rgba(0,0,0,.6)",backdropFilter:"blur(2px)",zIndex:1e4,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"60px 20px",overflowY:"auto"},children:s.jsxs(P,{onClick:d=>d==null?void 0:d.stopPropagation(),sx:{width:c,maxWidth:"100%",backgroundColor:"panelBackgroundPrimary",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",boxShadow:"0 20px 60px rgba(0,0,0,.5)",maxHeight:"calc(100vh - 120px)"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",alignItems:"center",padding:"16px 20px",borderBottom:"1px solid rgba(255,255,255,.08)"},children:[s.jsx(de,{variant:"headMedium",children:l??"Details"}),s.jsx(pe,{onClick:r,sx:{cursor:"pointer",padding:"4px 10px",borderRadius:"4px",opacity:.6,"&:hover":{opacity:1,backgroundColor:"rgba(255,255,255,.08)"}},children:"✕"})]}),s.jsx(pe,{sx:{padding:"20px",overflowY:"auto"},children:u})]})});return M3.createPortal(f,document.body)},$u="#bb5656",ch="#80FFDB",D3="#8a8699",Tl=Le.button`
|
|
189
|
+
padding: 4px 10px;
|
|
190
|
+
border-radius: 5px;
|
|
191
|
+
font-size: 0.66rem;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
letter-spacing: 0.06em;
|
|
194
|
+
text-transform: uppercase;
|
|
195
|
+
white-space: nowrap;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
color: ${({$tone:l})=>l==="danger"?"#fff":"rgba(255,255,255,.85)"};
|
|
198
|
+
background-color: ${({$tone:l})=>l==="danger"?$u:"transparent"};
|
|
199
|
+
border: 1px solid ${({$tone:l})=>l==="danger"?$u:"rgba(255,255,255,.18)"};
|
|
200
|
+
&:hover:not(:disabled) {
|
|
201
|
+
background-color: ${({$tone:l})=>l==="danger"?"#9c4a4a":"rgba(255,255,255,.06)"};
|
|
202
|
+
}
|
|
203
|
+
&:disabled {
|
|
204
|
+
cursor: not-allowed;
|
|
205
|
+
opacity: 0.4;
|
|
206
|
+
}
|
|
207
|
+
`,Wb=({error:l})=>s.jsx(pe,{sx:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"rgba(187,86,86,.14)",border:"1px solid rgba(187,86,86,.4)"},children:s.jsx(de,{variant:"medium",sx:{fontSize:".82rem",color:$u},children:l.details||l.message})}),X1=l=>l?new Date(l).toLocaleString():"",z3=({initialIp:l="",onClose:r,onDone:u})=>{const[c,f]=Q.useState(l),[d,h]=Q.useState(""),[g,m]=Q.useState("hours"),[b,E]=Q.useState("24"),[x,v]=Q.useState(!1),[R,G]=Q.useState(null),J=Number(b),$=c.trim().length>0&&(g==="forever"||Number.isFinite(J)&&J>0),ie=async()=>{if(!$||x)return;v(!0),G(null);const F=await m6({ip:c.trim(),reason:d.trim()||void 0,hours:g==="forever"?0:J});if(v(!1),F.error||!F.data){G(F.error??{code:-1,message:"Empty response"});return}u(F.data)},_=F=>{F.key==="Enter"&&ie()};return s.jsx(Ka,{title:"Block address",onClose:x?()=>{}:r,width:"480px",children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsx(V,{sx:{fontSize:".76rem"},children:"A blocked address gets 403 on every request to the service — API, WebSocket and this monitor."}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"IP address or subnet"}),s.jsx(Vn,{autoFocus:!0,value:c,disabled:x,placeholder:"203.0.113.7 or 10.0.0.0/24",style:{fontFamily:"monospace"},onChange:F=>f(F.target.value),onKeyDown:_})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Reason (optional, visible only in the monitor)"}),s.jsx(Vn,{value:d,disabled:x,placeholder:"brute force",maxLength:200,onChange:F=>h(F.target.value),onKeyDown:_})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Duration"}),s.jsxs(fe,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(Tl,{type:"button",$tone:g==="hours"?"danger":"plain",onClick:()=>m("hours"),children:"Hours"}),s.jsx(Tl,{type:"button",$tone:g==="forever"?"danger":"plain",onClick:()=>m("forever"),children:"Forever"}),g==="hours"&&s.jsx(pe,{sx:{width:"110px"},children:s.jsx(Vn,{inputMode:"numeric",value:b,disabled:x,onChange:F=>E(F.target.value.replace(/[^\d.]/g,"")),onKeyDown:_})})]})]}),R&&s.jsx(Wb,{error:R}),s.jsxs(fe,{sx:{gap:"10px",justifyContent:"flex-end"},children:[s.jsx(Tl,{type:"button",disabled:x,onClick:r,style:{padding:"9px 16px"},children:"Cancel"}),s.jsx(Tl,{type:"button",$tone:"danger",disabled:!$||x,onClick:ie,style:{padding:"9px 18px"},children:x?"Blocking…":"Block"})]})]})})},ev=Le.div`
|
|
208
|
+
display: grid;
|
|
209
|
+
grid-template-columns: minmax(130px, 1fr) minmax(140px, 2fr) 150px 90px 70px 100px;
|
|
210
|
+
gap: 10px;
|
|
211
|
+
align-items: center;
|
|
212
|
+
padding: 7px 12px;
|
|
213
|
+
font-size: 0.76rem;
|
|
214
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
215
|
+
opacity: ${({$inactive:l})=>l?.45:1};
|
|
216
|
+
`,B3=Le(ev)`
|
|
217
|
+
opacity: 0.55;
|
|
218
|
+
font-weight: 600;
|
|
219
|
+
font-size: 0.68rem;
|
|
220
|
+
letter-spacing: 0.06em;
|
|
221
|
+
`,On=Le.div`
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
text-overflow: ellipsis;
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
min-width: 0;
|
|
226
|
+
`,L3=Le.div`
|
|
227
|
+
overflow-x: auto;
|
|
228
|
+
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
229
|
+
border-radius: 8px;
|
|
230
|
+
> div {
|
|
231
|
+
min-width: 720px;
|
|
232
|
+
}
|
|
233
|
+
`,U3=({list:l,isAdmin:r,busyIp:u,onUnblock:c})=>{const[f,d]=Q.useState(!1);if(!l)return s.jsx(V,{children:"Loading…"});const h=l.entries.filter(b=>!b.active).length,g=f?l.entries:l.entries.filter(b=>b.active),m=b=>b.until?X1(b.until):"forever";return s.jsxs(P,{sx:{gap:"8px"},children:[h>0&&s.jsx(pe,{children:s.jsxs(Tl,{type:"button",onClick:()=>d(b=>!b),children:[f?"Hide":"Show"," ",h," expired"]})}),g.length===0?s.jsx(V,{children:"No blocked addresses."}):s.jsx(L3,{children:s.jsxs("div",{children:[s.jsxs(B3,{children:[s.jsx(On,{children:"ADDRESS"}),s.jsx(On,{children:"REASON"}),s.jsx(On,{children:"UNTIL"}),s.jsx(On,{children:"BY"}),s.jsx(On,{style:{textAlign:"right"},children:"REJECTED"}),s.jsx(On,{})]}),g.map(b=>s.jsxs(ev,{$inactive:!b.active,children:[s.jsx(On,{style:{fontFamily:"monospace",color:b.active?$u:D3},children:b.ip}),s.jsx(On,{title:b.reason,children:b.reason||"—"}),s.jsx(On,{title:b.at?`blocked ${X1(b.at)}`:void 0,children:b.active?m(b):"expired"}),s.jsx(On,{children:b.by||"—"}),s.jsx(On,{style:{textAlign:"right",fontVariantNumeric:"tabular-nums"},children:l.hits[b.ip]??0}),s.jsx(On,{style:{textAlign:"right"},children:r&&b.active&&s.jsx(Tl,{type:"button",disabled:u===b.ip,onClick:()=>c(b.ip),children:u===b.ip?"…":"Unblock"})})]},b.ip))]})}),l.file&&s.jsxs(V,{sx:{fontSize:".68rem"},children:["Stored in ",l.file,". Rejected counts reset on restart."]})]})},Z1=()=>s.jsx(pe,{sx:{display:"inline-block",padding:"2px 7px",borderRadius:"4px",fontSize:".64rem",fontWeight:600,letterSpacing:".04em",textTransform:"uppercase",color:ch,border:`1px solid ${ch}55`,backgroundColor:`${ch}1a`,whiteSpace:"nowrap"},children:"blocked"}),Xr=l=>l==="high"?"#bb5656":l==="suspicious"?"#e9b61e":"#8a8699",$r="#bb5656",Bu="#e9b61e",H3="#8a8699",tv={scanner:"scanner",injection:"injection",enumeration:"enumeration",method:"method",auth:"auth","not-found":"404"},Gr=l=>new Date(l).toLocaleString(),fh=l=>{const r=Math.max(0,Math.round((Date.now()-l)/1e3));return r<60?`${r}s ago`:r<3600?`${Math.round(r/60)}m ago`:r<86400?`${Math.round(r/3600)}h ago`:`${Math.round(r/86400)}d ago`},nv=Le.div`
|
|
234
|
+
display: grid;
|
|
235
|
+
grid-template-columns: 18px minmax(110px, 1.1fr) 82px 56px minmax(140px, 2fr) 90px 90px 96px;
|
|
236
|
+
gap: 10px;
|
|
237
|
+
align-items: center;
|
|
238
|
+
padding: 8px 12px;
|
|
239
|
+
font-size: 0.76rem;
|
|
240
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
background-color: ${({$open:l})=>l?"rgba(255,255,255,.04)":"transparent"};
|
|
243
|
+
&:hover {
|
|
244
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
245
|
+
}
|
|
246
|
+
`,q3=Le(nv)`
|
|
247
|
+
cursor: default;
|
|
248
|
+
opacity: 0.55;
|
|
249
|
+
font-weight: 600;
|
|
250
|
+
font-size: 0.68rem;
|
|
251
|
+
letter-spacing: 0.06em;
|
|
252
|
+
&:hover {
|
|
253
|
+
background-color: transparent;
|
|
254
|
+
}
|
|
255
|
+
`,k3=Le.div`
|
|
256
|
+
display: grid;
|
|
257
|
+
grid-template-columns: 140px 120px 56px 1fr 44px minmax(120px, auto);
|
|
258
|
+
gap: 10px;
|
|
259
|
+
align-items: center;
|
|
260
|
+
padding: 6px 12px;
|
|
261
|
+
font-size: 0.74rem;
|
|
262
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
263
|
+
`,kt=Le.div`
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
text-overflow: ellipsis;
|
|
266
|
+
white-space: nowrap;
|
|
267
|
+
min-width: 0;
|
|
268
|
+
`,ta=Le(kt)`
|
|
269
|
+
font-family: monospace;
|
|
270
|
+
`,K1=Le.div`
|
|
271
|
+
overflow-x: auto;
|
|
272
|
+
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
273
|
+
border-radius: 8px;
|
|
274
|
+
> div {
|
|
275
|
+
min-width: 820px;
|
|
276
|
+
}
|
|
277
|
+
`,lv=({color:l,children:r})=>s.jsx(pe,{sx:{display:"inline-block",padding:"2px 7px",borderRadius:"4px",fontSize:".64rem",fontWeight:600,letterSpacing:".04em",textTransform:"uppercase",color:l,border:`1px solid ${l}55`,backgroundColor:`${l}1a`,whiteSpace:"nowrap"},children:r}),I1=({list:l})=>s.jsx(fe,{sx:{gap:"4px",flexWrap:"wrap"},children:l.map(r=>s.jsx(lv,{color:r==="scanner"||r==="injection"?$r:r==="auth"||r==="not-found"?H3:Bu,children:tv[r]??r},r))}),dh=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"90px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u&&r>0?{color:u}:void 0,children:r})]}),G3=({data:l,error:r,updatedAt:u,onChanged:c})=>{const[f,d]=Q.useState(null),h=ec("admin"),[g,m]=Q.useState(null),[b,E]=Q.useState(null),[x,v]=Q.useState(null),[R,G]=Q.useState(null),[J,$]=Q.useState(null);Q.useEffect(()=>{let S=!1;return g6().then(O=>{if(!S){if(O.error){E(O.error.details||O.error.message);return}E(null),m(O.data??null)}}),()=>{S=!0}},[u]);const ie=S=>{m(S),$(null),c()},_=async S=>{if(R)return;G(S);const O=await x6({ip:S});if(G(null),O.error||!O.data){$(O.error??{code:-1,message:"Empty response"});return}ie(O.data)};if(r)return s.jsx(de,{variant:"medium",sx:{color:$r},children:r});if(!l)return s.jsx(V,{children:"Loading…"});const{settings:F,totals:L,offenders:I,recent:X}=l;return s.jsxs(P,{sx:{gap:"20px"},children:[s.jsxs(fe,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"flex-end"},children:[s.jsx(dh,{label:"Tracked IPs",value:L.tracked}),s.jsx(dh,{label:"Suspicious",value:L.suspicious,color:Bu}),s.jsx(dh,{label:"High",value:L.high,color:$r}),s.jsx(pe,{sx:{marginLeft:"auto"},children:s.jsxs(V,{sx:{fontSize:".7rem"},children:["Scoring never blocks by itself — blocking is manual. Suspicious from ",F.suspiciousAt,", high from"," ",F.highAt," points; scores halve every ",F.halfLifeMinutes," min without new hits.",u?` Updated ${new Date(u).toLocaleTimeString()}.`:""]})})]}),J&&s.jsx(Wb,{error:J}),s.jsxs(P,{sx:{gap:"8px"},children:[s.jsxs(V,{children:["Offenders (",I.length,")"]}),I.length===0?s.jsx(V,{children:"No probing activity right now."}):s.jsx(K1,{children:s.jsxs("div",{children:[s.jsxs(q3,{children:[s.jsx(kt,{}),s.jsx(kt,{children:"IP"}),s.jsx(kt,{children:"LEVEL"}),s.jsx(kt,{style:{textAlign:"right"},children:"SCORE"}),s.jsx(kt,{children:"CATEGORIES"}),s.jsx(kt,{children:"FIRST"}),s.jsx(kt,{children:"LAST"}),s.jsx(kt,{})]}),I.map(S=>{const O=f===S.ip,z=Object.entries(S.categories).sort((N,j)=>j[1]-N[1]);return s.jsxs(Q.Fragment,{children:[s.jsxs(nv,{$open:O,onClick:()=>d(O?null:S.ip),children:[s.jsx(kt,{style:{opacity:.6},children:O?"▾":"▸"}),s.jsxs(fe,{sx:{gap:"6px",alignItems:"center",minWidth:0},children:[s.jsx(ta,{children:S.ip}),S.blocked&&h&&s.jsx(Z1,{})]}),s.jsx(kt,{children:s.jsx(lv,{color:Xr(S.level),children:S.level==="none"?"low":S.level})}),s.jsx(kt,{style:{textAlign:"right",fontVariantNumeric:"tabular-nums",color:Xr(S.level),fontWeight:600},children:Math.round(S.score)}),s.jsx(kt,{children:z.map(([N,j])=>`${tv[N]??N}×${j}`).join(" ")}),s.jsx(kt,{title:Gr(S.firstSeen),style:{opacity:.8},children:fh(S.firstSeen)}),s.jsx(kt,{title:Gr(S.lastSeen),children:fh(S.lastSeen)}),s.jsx(kt,{style:{textAlign:"right"},onClick:N=>N.stopPropagation(),children:S.blocked?h?s.jsx(Tl,{type:"button",title:"Blocked — click to unblock",disabled:R===S.ip,onClick:()=>_(S.ip),children:R===S.ip?"…":"Unblock"}):s.jsx(Z1,{}):h&&s.jsx(Tl,{type:"button",$tone:"danger",onClick:()=>v(S.ip),children:"Block"})})]}),O&&s.jsxs(P,{sx:{gap:"8px",padding:"10px 12px 14px 40px",backgroundColor:"rgba(0,0,0,.18)",borderBottom:"1px solid rgba(255,255,255,.06)"},children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsxs(V,{children:["Hits: ",s.jsx("b",{children:S.hits})]}),s.jsxs(V,{children:["First: ",Gr(S.firstSeen)]}),s.jsxs(V,{children:["Last: ",Gr(S.lastSeen)]})]}),s.jsxs(V,{sx:{fontFamily:"monospace",wordBreak:"break-all"},children:["UA: ",S.userAgent||"—"]}),S.samples.map((N,j)=>s.jsxs(fe,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(V,{sx:{fontSize:".7rem",minWidth:"140px"},children:Gr(N.ts)}),s.jsx(ta,{style:{fontSize:".74rem",minWidth:"48px"},children:N.method}),s.jsx(ta,{style:{fontSize:".74rem",color:N.status>=500?$r:N.status>=400?Bu:void 0},children:N.status}),s.jsx(ta,{style:{fontSize:".74rem",flex:1,whiteSpace:"normal",wordBreak:"break-all"},children:N.url}),s.jsx(I1,{list:N.categories})]},j))]})]},S.ip)})]})})]}),s.jsxs(P,{sx:{gap:"8px"},children:[s.jsxs(fe,{sx:{gap:"12px",alignItems:"center"},children:[s.jsxs(V,{children:["Blocked addresses (",(g==null?void 0:g.entries.filter(S=>S.active).length)??0,")"]}),h&&s.jsx(Tl,{type:"button",onClick:()=>v(""),children:"Block address…"})]}),b?s.jsx(de,{variant:"medium",sx:{color:$r},children:b}):s.jsx(U3,{list:g,isAdmin:h,busyIp:R,onUnblock:_})]}),s.jsxs(P,{sx:{gap:"8px"},children:[s.jsxs(V,{children:["Recent events (",X.length,")"]}),X.length===0?s.jsx(V,{children:"No events."}):s.jsx(K1,{children:s.jsx("div",{children:X.map((S,O)=>s.jsxs(k3,{children:[s.jsxs(kt,{style:{opacity:.75},title:Gr(S.ts),children:[new Date(S.ts).toLocaleTimeString()," · ",fh(S.ts)]}),s.jsx(ta,{children:S.ip}),s.jsx(ta,{children:S.method}),s.jsx(ta,{title:S.url,children:S.url}),s.jsx(ta,{style:{color:S.status>=500?$r:S.status>=400?Bu:void 0},children:S.status}),s.jsx(I1,{list:S.categories})]},O))})}),s.jsx(V,{sx:{fontSize:".68rem"},children:"Only masked URLs are kept, never request bodies. Data lives in this process's memory: it resets on restart, and each blue-green process has its own."})]}),x!==null&&s.jsx(z3,{initialIp:x,onClose:()=>v(null),onDone:S=>{v(null),ie(S)}})]})},Y3=["ALL","API","INFO","DB","WARN","ERROR","CRIT"],F3=[{tab:0,label:"Log"},{tab:1,label:"Net log"},{tab:2,label:"Outgoing"}],Vh="#5390d9",V3=l=>l?l.split("-")[0].slice(0,8):"",pp=({traceId:l,onClick:r})=>l?s.jsx("div",{title:l,onClick:u=>{u.stopPropagation(),r(l)},style:{fontFamily:"monospace",color:Vh,opacity:.85,cursor:"pointer",overflow:"hidden"},children:V3(l)}):s.jsx("div",{style:{opacity:.3},children:"—"}),gp=({traceId:l,onOpen:r})=>{const[u,c]=Q.useState(!1);if(!l)return null;const f=()=>{var d;(d=navigator.clipboard)==null||d.writeText(l).then(()=>{c(!0),setTimeout(()=>c(!1),1200)},()=>{})};return s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Trace"}),s.jsxs(fe,{sx:{gap:"14px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",wordBreak:"break-all"},children:l}),s.jsx(de,{variant:"caption",sx:{color:Vh,cursor:"pointer",opacity:1},onClick:f,children:u?"copied":"copy"}),s.jsx(V,{children:"show in:"}),F3.map(d=>s.jsx(de,{variant:"caption",sx:{color:Vh,cursor:"pointer",opacity:1,textDecoration:"underline"},onClick:()=>r(l,d.tab),children:d.label},d.tab))]})]})},hu=32,Q3=15e3,$3=1e3,hh=200,oc={ALL:10,API:19,INFO:20,DB:25,WARN:30,ERROR:40,CRIT:50},Qh=l=>{const r=parseInt(l,10);return Number.isNaN(r)?oc[l==null?void 0:l.toUpperCase()]??20:r},av=l=>{var h,g;const r=parseInt(l,10),u=Qh(l),c=(h=Object.entries(oc).find(([,m])=>m===u))==null?void 0:h[0],f=((g=Number.isNaN(r)?l:c??l)==null?void 0:g.toUpperCase())??"LOG";let d="#8a8699";return u>=50?d="#e0457b":u>=40?d="#bb5656":u>=30?d="#e9b61e":u>=25?d="#56cfe1":u>=20&&(d="#5390d9"),{label:f,color:d}},X3=oc.ERROR,J1=l=>{let r=(l??"").trim();if(r.startsWith(",")&&(r=r.substring(1).trim()),!r.startsWith("{")&&!r.startsWith("["))return!1;try{const u=JSON.parse(r);return!!u&&typeof u=="object"&&u.error!=null&&u.data==null}catch{return!1}},Z3=l=>{let r=(l??"").trim();if(r.startsWith(",")&&(r=r.substring(1).trim()),r.startsWith("{")||r.startsWith("["))try{return{pretty:JSON.stringify(JSON.parse(r),null,2),isJson:!0}}catch{}return{pretty:r,isJson:!1}},P1=Le.div`
|
|
278
|
+
display: grid;
|
|
279
|
+
grid-template-columns: 64px 56px 150px 76px 1fr;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 12px;
|
|
282
|
+
padding: 7px 12px;
|
|
283
|
+
font-size: 0.76rem;
|
|
284
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
transition: background-color 0.15s;
|
|
287
|
+
background-color: ${({$error:l})=>l?"rgba(187,86,86,.12)":"transparent"};
|
|
288
|
+
box-shadow: ${({$error:l})=>l?"inset 3px 0 0 #bb5656":"none"};
|
|
289
|
+
&:hover {
|
|
290
|
+
background-color: ${({$error:l})=>l?"rgba(187,86,86,.2)":"rgba(255,255,255,.05)"};
|
|
291
|
+
}
|
|
292
|
+
`,na=Le.div`
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
text-overflow: ellipsis;
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
`,K3=Le.select`
|
|
297
|
+
padding: 8px 10px;
|
|
298
|
+
border-radius: 6px;
|
|
299
|
+
font-size: 0.8rem;
|
|
300
|
+
color: ${({theme:l})=>l.colors.textPrimary};
|
|
301
|
+
background-color: ${({theme:l})=>l.colors.inputBackgroundPrimary};
|
|
302
|
+
border: 1px solid ${({theme:l})=>l.colors.inputBorderPrimary};
|
|
303
|
+
outline: none;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
`,I3=Le.pre`
|
|
306
|
+
margin: 0;
|
|
307
|
+
white-space: pre-wrap;
|
|
308
|
+
word-break: break-word;
|
|
309
|
+
font-family: monospace;
|
|
310
|
+
font-size: 0.8rem;
|
|
311
|
+
line-height: 1.45;
|
|
312
|
+
color: #9ffe19;
|
|
313
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
314
|
+
border-radius: 6px;
|
|
315
|
+
padding: 14px;
|
|
316
|
+
max-height: 55vh;
|
|
317
|
+
overflow: auto;
|
|
318
|
+
`,W1=({level:l})=>{const{label:r,color:u}=av(l);return s.jsx(pe,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,letterSpacing:".03em",textAlign:"center",color:u,border:"1px solid "+u+"55",backgroundColor:u+"1a"},children:r})},J3=({trace:l,onTrace:r})=>{const[u,c]=Q.useState([]),[f,d]=Q.useState(l??""),[h,g]=Q.useState(null);Q.useEffect(()=>{l&&(d(l),g(null))},[l]);const[m,b]=Q.useState(""),[E,x]=Q.useState(!1),[,v]=ZE.useRequest(_=>{var L;const F=(L=_==null?void 0:_.data)==null?void 0:L.log;!Array.isArray(F)||F.length===0||c(I=>{const X=new Map(I.map(S=>[S.id,S]));for(const S of F)S&&typeof S.id=="number"&&X.set(S.id,S);return[...X.values()].sort((S,O)=>O.id-S.id).slice(0,$3)})});_n(()=>{const _=u.reduce((F,L)=>Math.max(F,L.id),0);v({lastID:_})},Q3);const R=Q.useMemo(()=>{const _=f.trim().toLowerCase(),F=m?oc[m]:null;return u.filter(L=>{var I,X,S;return!(F!==null&&Qh(String(L.level))<F||_&&!((I=L.text)!=null&&I.toLowerCase().includes(_)||(X=L.source)!=null&&X.toLowerCase().includes(_)||(S=L.traceId)!=null&&S.toLowerCase().includes(_)))})},[u,f,m]),G=Q.useMemo(()=>{const _={labels:[],series:[]},F=u.map(j=>({t:j.time||new Date(j.date).getTime(),v:J1(j.text)?X3:Qh(String(j.level))})).filter(j=>!Number.isNaN(j.t));if(F.length===0)return _;const L=Math.min(...F.map(j=>j.t)),I=Math.max(...F.map(j=>j.t)),X=Math.max(1,(I-L)/hu),S=[...new Set(F.map(j=>j.v))].sort((j,w)=>j-w),O=new Map(S.map(j=>[j,new Array(hu).fill(0)]));for(const{t:j,v:w}of F){const M=Math.min(hu-1,Math.floor((j-L)/X));O.get(w)[M]++}const z=Array.from({length:hu},(j,w)=>new Date(L+(w+.5)*X).toLocaleTimeString()),N=S.map(j=>{const w=av(String(j));return{name:w.label,color:w.color,values:O.get(j)}});return{labels:z,series:N}},[u]),J=ec("admin"),$=_=>{b(_),J&&IE.request(_)},ie=h?Z3(h.text):null;return s.jsxs(s.Fragment,{children:[s.jsxs(P,{sx:{gap:"16px"},children:[G.series.length>0&&s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Activity by level"}),s.jsx(Yt,{height:140,labels:G.labels,series:G.series})]}),s.jsxs(fe,{sx:{gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(pe,{sx:{flexGrow:1,minWidth:"200px"},children:s.jsx(Vn,{type:"search",value:f,placeholder:"Search by message, source or trace…",onChange:_=>d(_.target.value)})}),s.jsxs(fe,{sx:{gap:"8px",alignItems:"center"},children:[s.jsx(V,{children:J?"Level":"Show from"}),s.jsxs(K3,{value:m,onChange:_=>$(_.target.value),children:[s.jsx("option",{value:"",disabled:!0,children:"set…"}),Y3.map(_=>s.jsx("option",{value:_,children:_},_))]})]}),s.jsxs(V,{children:[R.length," / ",u.length]})]}),s.jsxs(P,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[s.jsxs(P1,{as:"div",style:{cursor:"default",opacity:.55,fontWeight:600},children:[s.jsx(na,{children:"LEVEL"}),s.jsx(na,{children:"ID"}),s.jsx(na,{children:"TIME"}),s.jsx(na,{children:"TRACE"}),s.jsx(na,{children:"MESSAGE"})]}),(E?R:R.slice(0,hh)).map(_=>s.jsxs(P1,{$error:J1(_.text),onClick:()=>g(_),children:[s.jsx(W1,{level:String(_.level)}),s.jsx(na,{style:{opacity:.6},children:_.id}),s.jsx(na,{style:{opacity:.8},children:new Date(_.time||_.date).toLocaleTimeString()}),s.jsx(pp,{traceId:_.traceId,onClick:d}),s.jsx(na,{style:{fontFamily:"monospace",opacity:.92},children:(_.text??"").trim()})]},_.id)),R.length===0&&s.jsx(pe,{sx:{padding:"16px"},children:s.jsx(V,{children:"No log entries"})}),R.length>hh&&s.jsx(pe,{onClick:()=>x(_=>!_),sx:{padding:"12px",textAlign:"center",cursor:"pointer",fontSize:".76rem",fontWeight:600,letterSpacing:".04em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:E?"Свернуть":`Развернуть (ещё ${R.length-hh})`})]})]}),h&&s.jsx(Ka,{title:`Log #${h.id}`,onClose:()=>g(null),children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(fe,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"center"},children:[s.jsx(W1,{level:String(h.level)}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Time"}),s.jsx(de,{variant:"medium",children:new Date(h.time||h.date).toLocaleString()})]}),h.source&&s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Source"}),s.jsx(de,{variant:"medium",children:h.source})]}),h.repeat?s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Repeat"}),s.jsxs(de,{variant:"medium",children:["×",h.repeat]})]}):null]}),s.jsx(gp,{traceId:h.traceId,onOpen:(_,F)=>{g(null),d(_),r(_,F)}}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:ie!=null&&ie.isJson?"Payload (JSON)":"Message"}),s.jsx(I3,{children:ie==null?void 0:ie.pretty})]})]})})]})},P3=15e3,pu=32,W3=8,ey=["#5390D9","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB","#5E60CE","#7400B8"],eT="#8a8699",tT={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656"},nT=l=>tT[(l??"").toUpperCase()]??"#8a8699",lT=1e3,aT="#bb5656",rT=l=>{let r=l;if(typeof r=="string")try{r=JSON.parse(r)}catch{return null}return r&&typeof r=="object"?r:null},iT=l=>{if(l.error)return!0;const r=rT(l.response);return!!r&&r.error!=null&&r.data==null},Yr=l=>{if(l==null)return"—";if(typeof l=="string"){const r=l.trim();if(r.startsWith("{")||r.startsWith("["))try{return JSON.stringify(JSON.parse(r),null,2)}catch{}return l}try{return JSON.stringify(l,null,2)}catch{return String(l)}},ty=Le.div`
|
|
319
|
+
display: grid;
|
|
320
|
+
grid-template-columns: 56px 1fr 76px 76px 68px 48px;
|
|
321
|
+
gap: 12px;
|
|
322
|
+
align-items: center;
|
|
323
|
+
padding: 7px 12px;
|
|
324
|
+
font-size: 0.76rem;
|
|
325
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
326
|
+
cursor: pointer;
|
|
327
|
+
transition: background-color 0.15s;
|
|
328
|
+
background-color: ${({$error:l})=>l?"rgba(187,86,86,.12)":"transparent"};
|
|
329
|
+
box-shadow: ${({$error:l})=>l?"inset 3px 0 0 #bb5656":"none"};
|
|
330
|
+
&:hover {
|
|
331
|
+
background-color: ${({$error:l})=>l?"rgba(187,86,86,.2)":"rgba(255,255,255,.05)"};
|
|
332
|
+
}
|
|
333
|
+
`,ll=Le.div`
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
text-overflow: ellipsis;
|
|
336
|
+
white-space: nowrap;
|
|
337
|
+
`,gu=Le.pre`
|
|
338
|
+
margin: 0;
|
|
339
|
+
white-space: pre-wrap;
|
|
340
|
+
word-break: break-word;
|
|
341
|
+
font-family: monospace;
|
|
342
|
+
font-size: 0.78rem;
|
|
343
|
+
line-height: 1.45;
|
|
344
|
+
color: #9ffe19;
|
|
345
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
346
|
+
border-radius: 6px;
|
|
347
|
+
padding: 12px;
|
|
348
|
+
max-height: 40vh;
|
|
349
|
+
overflow: auto;
|
|
350
|
+
`,ny=({method:l})=>{const r=nT(l);return s.jsx(pe,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:r,border:"1px solid "+r+"55",backgroundColor:r+"1a"},children:(l??"—").toUpperCase()})},ph=({label:l,children:r})=>s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:l}),r]}),sT=({trace:l,onTrace:r})=>{const[u,c]=Q.useState([]),[f,d]=Q.useState(l??""),[h,g]=Q.useState(null);Q.useEffect(()=>{l&&(d(l),g(null))},[l]);const[,m]=KE.useRequest(R=>{if(R!=null&&R.error)return;const G=R==null?void 0:R.data;c(Array.isArray(G)?[...G].reverse():[])});_n(()=>m(),P3);const b=Q.useMemo(()=>{const R=f.trim().toLowerCase();return R?u.filter(G=>{var J,$,ie;return(G.traceId??"").toLowerCase().includes(R)||(((J=G.request)==null?void 0:J.endpoint)??"").toLowerCase().includes(R)||((($=G.request)==null?void 0:$.method)??"").toLowerCase().includes(R)||Yr((ie=G.request)==null?void 0:ie.data).toLowerCase().includes(R)||Yr(G.response).toLowerCase().includes(R)}):u},[u,f]),E=Q.useMemo(()=>{const R={labels:[],series:[]},G=u.map(N=>{var j;return{t:N.created,ep:((j=N.request)==null?void 0:j.endpoint)??"unknown"}}).filter(N=>typeof N.t=="number"&&!Number.isNaN(N.t));if(G.length===0)return R;const J=new Map;for(const{ep:N}of G)J.set(N,(J.get(N)??0)+1);const $=[...J.entries()].sort((N,j)=>j[1]-N[1]).slice(0,W3).map(([N])=>N),ie=new Set($),F=J.size>$.length?[...$,"other"]:$,L=Math.min(...G.map(N=>N.t)),I=Math.max(...G.map(N=>N.t)),X=Math.max(1,(I-L)/pu),S=new Map(F.map(N=>[N,new Array(pu).fill(0)]));for(const{t:N,ep:j}of G){const w=ie.has(j)?j:"other",M=Math.min(pu-1,Math.floor((N-L)/X));S.get(w)[M]++}const O=Array.from({length:pu},(N,j)=>new Date(L+(j+.5)*X).toLocaleTimeString()),z=F.map((N,j)=>({name:N,color:N==="other"?eT:ey[j%ey.length],values:S.get(N)}));return{labels:O,series:z}},[u]),x=h==null?void 0:h.request,v=(x==null?void 0:x.params)&&Object.keys(x.params).length>0;return s.jsxs(s.Fragment,{children:[s.jsxs(P,{sx:{gap:"16px"},children:[E.series.length>0&&s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Calls by endpoint"}),s.jsx(Yt,{height:140,labels:E.labels,series:E.series})]}),s.jsxs(fe,{sx:{gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(pe,{sx:{flexGrow:1,minWidth:"200px"},children:s.jsx(Vn,{type:"search",value:f,placeholder:"Search by endpoint, method, payload or trace…",onChange:R=>d(R.target.value)})}),s.jsxs(V,{children:[b.length," / ",u.length]})]}),s.jsxs(P,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[s.jsxs(ty,{as:"div",style:{cursor:"default",opacity:.55,fontWeight:600},children:[s.jsx(ll,{children:"METHOD"}),s.jsx(ll,{children:"ENDPOINT"}),s.jsx(ll,{children:"TRACE"}),s.jsx(ll,{children:"TIME"}),s.jsx(ll,{children:"RESP"}),s.jsx(ll,{style:{textAlign:"right"},children:"ID"})]}),b.map(R=>{var J,$;const G=R.time>lT;return s.jsxs(ty,{$error:iT(R),onClick:()=>g(R),children:[s.jsx(ny,{method:(J=R.request)==null?void 0:J.method}),s.jsx(ll,{style:{fontFamily:"monospace",opacity:.92},children:(($=R.request)==null?void 0:$.endpoint)??"—"}),s.jsx(pp,{traceId:R.traceId,onClick:d}),s.jsx(ll,{style:{opacity:.7},children:new Date(R.created).toLocaleTimeString()}),s.jsxs(ll,{style:{color:G?aT:void 0,opacity:G?1:.7},children:[R.time," ms"]}),s.jsx(ll,{style:{opacity:.5,textAlign:"right"},children:R.id})]},R.id)}),b.length===0&&s.jsx(pe,{sx:{padding:"16px"},children:s.jsx(V,{children:"No HTTP requests recorded"})})]})]}),h&&s.jsx(Ka,{title:`Request #${h.id}`,onClose:()=>g(null),children:s.jsxs(P,{sx:{gap:"20px"},children:[s.jsxs(fe,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"center"},children:[s.jsx(ny,{method:x==null?void 0:x.method}),s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:(x==null?void 0:x.endpoint)??"—"}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Created"}),s.jsx(de,{variant:"medium",children:new Date(h.created).toLocaleString()})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Response time"}),s.jsxs(de,{variant:"medium",children:[h.time," ms"]})]})]}),s.jsx(gp,{traceId:h.traceId,onOpen:(R,G)=>{g(null),d(R),r(R,G)}}),h.error&&s.jsx(de,{variant:"medium",sx:{color:"#bb5656"},children:h.error}),s.jsxs(P,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[s.jsx(de,{variant:"headMedium",children:"Request"}),v&&s.jsx(ph,{label:"Params",children:s.jsx(gu,{children:Yr(x==null?void 0:x.params)})}),s.jsx(ph,{label:"Headers",children:s.jsx(gu,{children:Yr(x==null?void 0:x.headers)})}),s.jsx(ph,{label:"Body",children:s.jsx(gu,{children:Yr(x==null?void 0:x.data)})})]}),s.jsxs(P,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[s.jsx(de,{variant:"headMedium",children:"Response"}),s.jsx(gu,{children:Yr(h.response)})]})]})})]})},oT=15e3,mu=32,uT=8,ly=1e3,Lu="#bb5656",ay=["#5390D9","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB","#5E60CE","#7400B8"],cT="#8a8699",fT={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656"},ry=l=>fT[(l??"").toUpperCase()]??"#8a8699",iy=l=>{if(l!==void 0){if(l>=500)return"#e0457b";if(l>=400)return Lu;if(l>=300)return"#e9b61e";if(l>=200)return"#56bb56"}},dT=l=>{try{return new URL(l).host||l}catch{return l.split("/").slice(0,3).join("/")||l}},xu=l=>{if(l==null)return"—";if(typeof l=="string"){const r=l.trim();if(r.startsWith("{")||r.startsWith("["))try{return JSON.stringify(JSON.parse(r),null,2)}catch{}return l}try{return JSON.stringify(l,null,2)}catch{return String(l)}},hT=l=>!!l.error||l.ok===!1||typeof l.status=="number"&&l.status>=400,sy=Le.div`
|
|
351
|
+
display: grid;
|
|
352
|
+
grid-template-columns: 56px 1fr 76px 52px 76px 68px 48px;
|
|
353
|
+
gap: 12px;
|
|
354
|
+
align-items: center;
|
|
355
|
+
padding: 7px 12px;
|
|
356
|
+
font-size: 0.76rem;
|
|
357
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
transition: background-color 0.15s;
|
|
360
|
+
background-color: ${({$error:l})=>l?"rgba(187,86,86,.12)":"transparent"};
|
|
361
|
+
box-shadow: ${({$error:l})=>l?"inset 3px 0 0 #bb5656":"none"};
|
|
362
|
+
&:hover {
|
|
363
|
+
background-color: ${({$error:l})=>l?"rgba(187,86,86,.2)":"rgba(255,255,255,.05)"};
|
|
364
|
+
}
|
|
365
|
+
`,Cn=Le.div`
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
text-overflow: ellipsis;
|
|
368
|
+
white-space: nowrap;
|
|
369
|
+
`,oy=Le.pre`
|
|
370
|
+
margin: 0;
|
|
371
|
+
white-space: pre-wrap;
|
|
372
|
+
word-break: break-word;
|
|
373
|
+
font-family: monospace;
|
|
374
|
+
font-size: 0.78rem;
|
|
375
|
+
line-height: 1.45;
|
|
376
|
+
color: #9ffe19;
|
|
377
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
378
|
+
border-radius: 6px;
|
|
379
|
+
padding: 12px;
|
|
380
|
+
max-height: 40vh;
|
|
381
|
+
overflow: auto;
|
|
382
|
+
`,uy=({color:l,children:r})=>s.jsx(pe,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:l,border:"1px solid "+l+"55",backgroundColor:l+"1a"},children:r}),pT=({label:l,children:r})=>s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:l}),r]}),gT=({trace:l,onTrace:r})=>{const[u,c]=Q.useState([]),[f,d]=Q.useState(l??""),[h,g]=Q.useState(null);Q.useEffect(()=>{l&&(d(l),g(null))},[l]);const[,m]=WE.useRequest(v=>{if(v!=null&&v.error)return;const R=v==null?void 0:v.data;c(Array.isArray(R)?[...R].reverse():[])});_n(()=>m(),oT);const b=Q.useMemo(()=>{const v=f.trim().toLowerCase();return v?u.filter(R=>(R.traceId??"").toLowerCase().includes(v)||R.url.toLowerCase().includes(v)||(R.method??"").toLowerCase().includes(v)||String(R.status??"").includes(v)||xu(R.request).toLowerCase().includes(v)||xu(R.response).toLowerCase().includes(v)):u},[u,f]),E=Q.useMemo(()=>{const v={labels:[],series:[]},R=u.map(z=>({t:z.created,host:dT(z.url)})).filter(z=>typeof z.t=="number"&&!Number.isNaN(z.t));if(R.length===0)return v;const G=new Map;for(const{host:z}of R)G.set(z,(G.get(z)??0)+1);const J=[...G.entries()].sort((z,N)=>N[1]-z[1]).slice(0,uT).map(([z])=>z),$=new Set(J),_=G.size>J.length?[...J,"other"]:J,F=Math.min(...R.map(z=>z.t)),L=Math.max(...R.map(z=>z.t)),I=Math.max(1,(L-F)/mu),X=new Map(_.map(z=>[z,new Array(mu).fill(0)]));for(const{t:z,host:N}of R){const j=$.has(N)?N:"other",w=Math.min(mu-1,Math.floor((z-F)/I));X.get(j)[w]++}const S=Array.from({length:mu},(z,N)=>new Date(F+(N+.5)*I).toLocaleTimeString()),O=_.map((z,N)=>({name:z,color:z==="other"?cT:ay[N%ay.length],values:X.get(z)}));return{labels:S,series:O}},[u]),x=h;return s.jsxs(s.Fragment,{children:[s.jsxs(P,{sx:{gap:"16px"},children:[E.series.length>0&&s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Calls by host"}),s.jsx(Yt,{height:140,labels:E.labels,series:E.series})]}),s.jsxs(fe,{sx:{gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(pe,{sx:{flexGrow:1,minWidth:"200px"},children:s.jsx(Vn,{type:"search",value:f,placeholder:"Search by URL, method, status, payload or trace…",onChange:v=>d(v.target.value)})}),s.jsxs(V,{children:[b.length," / ",u.length]})]}),s.jsxs(P,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[s.jsxs(sy,{as:"div",style:{cursor:"default",opacity:.55,fontWeight:600},children:[s.jsx(Cn,{children:"METHOD"}),s.jsx(Cn,{children:"URL"}),s.jsx(Cn,{children:"TRACE"}),s.jsx(Cn,{children:"STAT"}),s.jsx(Cn,{children:"TIME"}),s.jsx(Cn,{children:"RESP"}),s.jsx(Cn,{style:{textAlign:"right"},children:"ID"})]}),b.map(v=>{const R=v.time>ly,G=iy(v.status);return s.jsxs(sy,{$error:hT(v),onClick:()=>g(v),children:[s.jsx(uy,{color:ry(v.method),children:(v.method??"—").toUpperCase()}),s.jsxs(Cn,{style:{fontFamily:"monospace",opacity:.92},children:[v.url,v.skipLogging&&s.jsx("span",{style:{opacity:.55},title:"Made with skipLogging: only the origin is kept",children:" · not logged"})]}),s.jsx(pp,{traceId:v.traceId,onClick:d}),s.jsx(Cn,{style:{color:G,fontWeight:G?600:void 0},children:v.status??"—"}),s.jsx(Cn,{style:{opacity:.7},children:new Date(v.created).toLocaleTimeString()}),s.jsxs(Cn,{style:{color:R?Lu:void 0,opacity:R?1:.7},children:[v.time," ms"]}),s.jsx(Cn,{style:{opacity:.5,textAlign:"right"},children:v.id})]},v.id)}),b.length===0&&s.jsx(pe,{sx:{padding:"16px"},children:s.jsx(V,{children:"No outgoing requests recorded"})})]})]}),x&&s.jsx(Ka,{title:`Outgoing #${x.id}`,onClose:()=>g(null),children:s.jsxs(P,{sx:{gap:"20px"},children:[s.jsxs(fe,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"center"},children:[s.jsx(uy,{color:ry(x.method),children:(x.method??"—").toUpperCase()}),s.jsxs(de,{variant:"medium",sx:{fontFamily:"monospace",wordBreak:"break-all"},children:[x.url,x.skipLogging&&" · not logged (skipLogging: path, query and bodies are not kept)"]})]}),s.jsxs(fe,{sx:{gap:"24px",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Status"}),s.jsx(de,{variant:"medium",sx:{color:iy(x.status)},children:x.status??"—"})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Created"}),s.jsx(de,{variant:"medium",children:new Date(x.created).toLocaleString()})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Response time"}),s.jsxs(de,{variant:"medium",sx:{color:x.time>ly?Lu:void 0},children:[x.time," ms"]})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Attempts"}),s.jsx(de,{variant:"medium",children:x.attempts})]})]}),s.jsx(gp,{traceId:x.traceId,onOpen:(v,R)=>{g(null),d(v),r(v,R)}}),x.error&&s.jsx(de,{variant:"medium",sx:{color:Lu},children:x.error}),s.jsxs(P,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[s.jsx(de,{variant:"headMedium",children:"Request"}),s.jsx(pT,{label:"Body",children:s.jsx(oy,{children:xu(x.request)})})]}),s.jsxs(P,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[s.jsx(de,{variant:"headMedium",children:"Response"}),s.jsx(oy,{children:xu(x.response)})]})]})})]})},yu=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),mT=({stats:l,range:r})=>{const u=l.map(h=>sc(h.timestamp,r)),c=l.length?l[l.length-1].slot:null,f=[{name:"CPU",color:"#48BFE3",values:l.map(h=>h.slot.cpu)}],d=[{name:"RSS",color:"#7400B8",values:l.map(h=>h.slot.memory.rss)},{name:"Heap used",color:"#56CFE1",values:l.map(h=>h.slot.memory.heapUsed)},{name:"Heap total",color:"#80FFDB",values:l.map(h=>h.slot.memory.heapTotal)}];return s.jsxs(fe,{sx:{gap:"30px",flexWrap:"wrap",alignItems:"stretch"},children:[s.jsx(wt,{label:"CPU",sx:{flex:"1 1 420px",minWidth:"320px"},children:s.jsxs(P,{sx:{gap:"18px"},children:[s.jsx(yu,{label:"Current load (per core)",value:`${c?c.cpu:0}%`,color:"#48BFE3"}),s.jsx(Yt,{series:f,labels:u,unit:"%",yMax:100})]})}),s.jsx(wt,{label:"Memory",sx:{flex:"1 1 420px",minWidth:"320px"},children:s.jsxs(P,{sx:{gap:"18px"},children:[s.jsxs(fe,{sx:{gap:"40px",flexWrap:"wrap"},children:[s.jsx(yu,{label:"RSS",value:ou((c==null?void 0:c.memory.rss)??0),color:"#7400B8"}),s.jsx(yu,{label:"Heap used",value:ou((c==null?void 0:c.memory.heapUsed)??0),color:"#56CFE1"}),s.jsx(yu,{label:"External",value:ou((c==null?void 0:c.memory.external)??0)})]}),s.jsx(Yt,{series:d,labels:u,formatValue:ou})]})})]})},gh=3e4,mh="#48BFE3",mp="#56bb56",Ts="#e9b61e",Gn="#bb5656",xp="#e0457b",xh=240,xT=5,cy=["#48BFE3","#80FFDB","#e9b61e","#c48af0","#e0457b","#5390d9","#80cbc4"],yT=l=>{const r=new Date(l);return String(r.getHours()).padStart(2,"0")+":"+String(r.getMinutes()).padStart(2,"0")},rv=[{key:"s2xx",label:"2xx",color:mp},{key:"s3xx",label:"3xx",color:"#5390d9"},{key:"s4xx",label:"4xx",color:Ts},{key:"s5xx",label:"5xx",color:Gn},{key:"networkErrors",label:"net err",color:xp},{key:"timeouts",label:"timeout",color:"#7400B8"},{key:"other",label:"other",color:"#8a8699"}],bT={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656"},fy=l=>bT[(l??"").toUpperCase()]??"#8a8699",dy=l=>{if(l==null)return"—";if(typeof l=="string"){const r=l.trim();if(r.startsWith("{")||r.startsWith("["))try{return JSON.stringify(JSON.parse(r),null,2)}catch{}return l}try{return JSON.stringify(l,null,2)}catch{return String(l)}},hy=l=>{if(l!==void 0){if(l>=500)return xp;if(l>=400)return Gn;if(l>=300)return Ts;if(l>=200)return mp}},py=Le.pre`
|
|
383
|
+
margin: 0;
|
|
384
|
+
white-space: pre-wrap;
|
|
385
|
+
word-break: break-word;
|
|
386
|
+
font-family: monospace;
|
|
387
|
+
font-size: 0.78rem;
|
|
388
|
+
line-height: 1.45;
|
|
389
|
+
color: #9ffe19;
|
|
390
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
391
|
+
border-radius: 6px;
|
|
392
|
+
padding: 12px;
|
|
393
|
+
max-height: 40vh;
|
|
394
|
+
overflow: auto;
|
|
395
|
+
`,us=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"90px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),bu=({title:l,children:r})=>s.jsxs(P,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[s.jsx(de,{variant:"headMedium",children:l}),r]}),gy=({dist:l,compact:r})=>{const u=rv.filter(f=>f.key!=="timeouts").map(f=>({...f,value:l[f.key]??0})),c=u.reduce((f,d)=>f+d.value,0);return c===0?s.jsx(V,{sx:{fontSize:".68rem"},children:"—"}):s.jsx(fe,{sx:{height:r?"6px":"8px",width:"100%",borderRadius:"3px",overflow:"hidden",backgroundColor:"rgba(255,255,255,.05)"},children:u.map(f=>f.value>0?s.jsx(pe,{title:`${f.label}: ${f.value}`,sx:{width:f.value/c*100+"%",backgroundColor:f.color}},f.key):null)})},vT=Le.div`
|
|
396
|
+
display: flex;
|
|
397
|
+
flex-direction: column;
|
|
398
|
+
gap: 8px;
|
|
399
|
+
padding: 10px 4px;
|
|
400
|
+
font-size: 0.76rem;
|
|
401
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
402
|
+
min-width: 0;
|
|
403
|
+
&:last-child {
|
|
404
|
+
border-bottom: none;
|
|
405
|
+
}
|
|
406
|
+
`,la=({label:l,value:r,sub:u,color:c})=>s.jsxs(P,{sx:{gap:"1px",minWidth:"auto"},children:[s.jsx(V,{sx:{fontSize:".6rem",letterSpacing:".04em",textTransform:"uppercase"},children:l}),s.jsxs(fe,{sx:{gap:"4px",alignItems:"baseline"},children:[s.jsx(de,{variant:"medium",sx:c?{color:c,fontVariantNumeric:"tabular-nums"}:{fontVariantNumeric:"tabular-nums"},children:r}),u&&s.jsx(V,{sx:{fontSize:".62rem"},children:u})]})]}),aa=Le.div`
|
|
407
|
+
overflow: hidden;
|
|
408
|
+
text-overflow: ellipsis;
|
|
409
|
+
white-space: nowrap;
|
|
410
|
+
`,my=Le.div`
|
|
411
|
+
display: grid;
|
|
412
|
+
grid-template-columns: 56px 1fr 52px 76px;
|
|
413
|
+
gap: 10px;
|
|
414
|
+
align-items: center;
|
|
415
|
+
padding: 7px 12px;
|
|
416
|
+
font-size: 0.76rem;
|
|
417
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
418
|
+
cursor: pointer;
|
|
419
|
+
transition: background-color 0.15s;
|
|
420
|
+
&:hover {
|
|
421
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
422
|
+
}
|
|
423
|
+
`,xy=({color:l,children:r})=>s.jsx(pe,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:l,border:"1px solid "+l+"55",backgroundColor:l+"1a"},children:r}),ST=()=>{const[l,r]=Q.useState(null),[u,c]=Q.useState(null),f=Q.useRef(new Map),[,d]=n3.useRequest(v=>{if(!(v!=null&&v.error)&&v!=null&&v.data){const R=Date.now(),G=f.current;for(const $ of v.data.perHost){if($.count===0)continue;let ie=G.get($.host);ie||(ie=[],G.set($.host,ie)),ie.push({ts:R,p50:$.p50Ms??0,p95:$.p95Ms??0,p99:$.p99Ms??0}),ie.length>xh&&ie.splice(0,ie.length-xh)}const J=new Set(v.data.perHost.map($=>$.host));for(const $ of[...G.keys()])J.has($)||G.delete($);r(v.data)}});if(_n(()=>d(),gh),!l)return s.jsx(V,{children:"Loading…"});const h=l.statusDistribution,g=h.s4xx+h.s5xx+h.networkErrors+h.other,m=l.totalRequests>0?g/l.totalRequests*100:0,b=[...l.perHost].filter(v=>{var R;return(((R=f.current.get(v.host))==null?void 0:R.length)??0)>=2}).sort((v,R)=>R.count-v.count).slice(0,xT);let E=[];const x=[];if(b.length>0){let v=[];for(const R of b){const G=f.current.get(R.host)??[];G.length>v.length&&(v=G)}E=v.map(R=>yT(R.ts)),b.forEach((R,G)=>{var F;const J=f.current.get(R.host)??[],$=Math.max(0,v.length-J.length),ie=((F=J[0])==null?void 0:F.p95)??0,_=[...Array.from({length:$},()=>ie),...J.map(L=>L.p95)];x.push({name:R.host.replace(/^https?:\/\//,"").slice(0,32),color:cy[G%cy.length],values:_})})}return s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(bu,{title:"HTTP outgoing overview",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(us,{label:"Total requests",value:l.totalRequests,color:mh}),s.jsx(us,{label:"In-flight",value:l.inFlight.current,color:l.inFlight.current>0?mh:void 0}),s.jsx(us,{label:"Peak in-flight",value:l.inFlight.peak}),s.jsx(us,{label:"Error rate",value:`${m.toFixed(1)}%`,color:m>=5?Gn:m>=1?Ts:mp}),s.jsx(us,{label:"Timeouts",value:h.timeouts,color:h.timeouts?Gn:void 0})]}),s.jsxs(P,{sx:{gap:"8px"},children:[s.jsx(V,{children:"Status distribution"}),s.jsx(gy,{dist:h}),s.jsx(fe,{sx:{gap:"12px",flexWrap:"wrap"},children:rv.map(v=>{const R=h[v.key]??0;return s.jsxs(fe,{sx:{gap:"6px",alignItems:"center"},children:[s.jsx(pe,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:v.color}}),s.jsxs(V,{sx:{fontSize:".68rem"},children:[v.label," · ",R]})]},v.key)})})]})]}),s.jsxs(bu,{title:`Per-host (${l.perHost.length})`,children:[l.perHost.length===0&&s.jsx(V,{children:"No requests recorded yet"}),l.perHost.length>0&&s.jsx(P,{sx:{gap:"0px"},children:l.perHost.map(v=>s.jsxs(vT,{children:[s.jsxs(fe,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"10px",minWidth:0},children:[s.jsx(aa,{style:{fontFamily:"monospace",opacity:.92,minWidth:0,flex:1},children:v.host}),s.jsxs(V,{sx:{fontSize:".62rem",whiteSpace:"nowrap"},children:["last ",new Date(v.lastRequestAt).toLocaleTimeString()]})]}),s.jsxs(fe,{sx:{gap:"16px",rowGap:"6px",flexWrap:"wrap",alignItems:"baseline"},children:[s.jsx(la,{label:"Req",value:v.count}),s.jsx(la,{label:"Err",value:v.errors,color:v.errors>0?Gn:void 0,sub:v.timeouts>0?s.jsxs("span",{style:{color:xp},children:["·",v.timeouts,"to"]}):null}),s.jsx(la,{label:"Retry",value:v.retries,color:v.retries>0?Ts:void 0}),s.jsx(la,{label:"In-flight",value:v.inFlight,color:v.inFlight>0?mh:void 0}),s.jsx(la,{label:"Avg",value:s.jsxs("span",{style:{color:v.avgMs>1e3?Gn:void 0},children:[Math.round(v.avgMs)," ms"]}),sub:`${Math.round(v.minMs)}-${Math.round(v.maxMs)}`}),s.jsx(la,{label:"p50",value:`${Math.round(v.p50Ms??0)} ms`}),s.jsx(la,{label:"p95",value:s.jsxs("span",{style:{color:(v.p95Ms??0)>1500?Gn:(v.p95Ms??0)>800?Ts:void 0},children:[Math.round(v.p95Ms??0)," ms"]})}),s.jsx(la,{label:"p99",value:s.jsxs("span",{style:{color:(v.p99Ms??0)>2e3?Gn:void 0},children:[Math.round(v.p99Ms??0)," ms"]})})]}),s.jsx(gy,{dist:v.byStatus,compact:!0})]},v.host))})]}),x.length>0&&s.jsx(bu,{title:`p95 trend (top ${b.length} by volume)`,children:s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(V,{sx:{fontSize:".7rem"},children:["Client-side history — one sample per poll (",Math.round(gh/1e3)," s), up to"," ",Math.round(xh*gh/6e4)," min. Resets on reload."]}),s.jsx(Yt,{series:x,labels:E,height:180,formatValue:v=>`${Math.round(v)} ms`})]})}),l.topSlow.length>0&&s.jsx(bu,{title:`Slowest requests (${l.topSlow.length})`,children:s.jsxs(P,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[s.jsxs(my,{style:{cursor:"default",opacity:.55,fontWeight:600},children:[s.jsx(aa,{children:"METHOD"}),s.jsx(aa,{children:"URL"}),s.jsx(aa,{children:"STAT"}),s.jsx(aa,{style:{textAlign:"right"},children:"TIME"})]}),l.topSlow.map(v=>{const R=hy(v.status);return s.jsxs(my,{onClick:()=>c(v),children:[s.jsx(xy,{color:fy(v.method),children:(v.method??"—").toUpperCase()}),s.jsx(aa,{style:{fontFamily:"monospace",opacity:.92},children:v.url}),s.jsx(aa,{style:{color:R,fontWeight:R?600:void 0},children:v.status??"—"}),s.jsxs(aa,{style:{textAlign:"right",color:v.time>1e3?Gn:void 0,opacity:v.time>1e3?1:.8},children:[v.time," ms"]})]},v.id)})]})}),u&&s.jsx(Ka,{title:`Slow #${u.id}`,onClose:()=>c(null),children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(fe,{sx:{gap:"16px",flexWrap:"wrap",alignItems:"center"},children:[s.jsx(xy,{color:fy(u.method),children:(u.method??"—").toUpperCase()}),s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",wordBreak:"break-all"},children:u.url})]}),s.jsxs(fe,{sx:{gap:"24px",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Status"}),s.jsx(de,{variant:"medium",sx:{color:hy(u.status)},children:u.status??"—"})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Duration"}),s.jsxs(de,{variant:"medium",sx:{color:u.time>1e3?Gn:void 0},children:[u.time," ms"]})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Attempts"}),s.jsx(de,{variant:"medium",children:u.attempts})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Created"}),s.jsx(de,{variant:"medium",children:new Date(u.created).toLocaleString()})]})]}),u.error&&s.jsx(de,{variant:"medium",sx:{color:Gn},children:u.error}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Request"}),s.jsx(py,{children:dy(u.request)})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Response"}),s.jsx(py,{children:dy(u.response)})]})]})})]})},jT=3e4,ET=()=>{const[l,r]=Q.useState(null),[,u]=JE.useRequest(d=>{d!=null&&d.error||d!=null&&d.data&&r(d.data)});_n(()=>u(),jT);const c=l?Object.entries(l.byHost).sort((d,h)=>h[1]-d[1]):[],f=c.reduce((d,[,h])=>Math.max(d,h),0)||1;return s.jsx(wt,{label:"Active outgoing connections",children:s.jsxs(P,{sx:{gap:"18px"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Total active"}),s.jsx(de,{variant:"head",sx:{color:"#48BFE3"},children:(l==null?void 0:l.total)??0})]}),c.length===0&&s.jsx(V,{children:"No active connections"}),s.jsx(P,{sx:{gap:"12px"},children:c.map(([d,h])=>s.jsxs(P,{sx:{gap:"5px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"16px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:d}),s.jsx(V,{children:h})]}),s.jsx(pe,{sx:{height:"6px",width:h/f*100+"%",minWidth:"4px",borderRadius:"3px",backgroundColor:"#48BFE3"}})]},d))})]})})},yy="#56bb56",yh="#bb5656",TT=({stats:l})=>{const r=Jb(l),u=r.reduce((d,h)=>Math.max(d,h.total),0)||1,c=r.reduce((d,h)=>d+h.success,0),f=r.reduce((d,h)=>d+h.fail,0);return s.jsx(wt,{label:"Endpoint statistics",children:s.jsxs(P,{sx:{gap:"20px"},children:[s.jsxs(fe,{sx:{gap:"40px",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Endpoints"}),s.jsx(de,{variant:"headMedium",children:r.length})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Success"}),s.jsx(de,{variant:"headMedium",sx:{color:yy},children:c})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Failed"}),s.jsx(de,{variant:"headMedium",sx:{color:yh},children:f})]})]}),r.length===0&&s.jsx(V,{children:"No endpoint activity for the selected range"}),s.jsx(P,{sx:{gap:"14px"},children:r.map(d=>{const h=d.success/u*100,g=d.fail/u*100;return s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"16px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:d.endpoint}),s.jsxs(fe,{sx:{gap:"12px"},children:[s.jsxs(V,{children:[d.total," req"]}),d.fail>0&&s.jsxs(de,{variant:"caption",sx:{color:yh,opacity:1},children:[d.fail," failed"]})]})]}),s.jsxs(fe,{sx:{height:"8px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"4px",overflow:"hidden"},children:[s.jsx(pe,{sx:{width:h+"%",backgroundColor:yy}}),s.jsx(pe,{sx:{width:g+"%",backgroundColor:yh}})]})]},d.endpoint)})})]})})},by=10,wT=({stats:l})=>{const r=o3(l),[u,c]=Q.useState(!1),f=u?r:r.slice(0,by),d=Math.max(0,r.length-by);return s.jsx(wt,{label:"Outgoing HTTP calls",children:s.jsxs(P,{sx:{gap:"12px"},children:[r.length===0&&s.jsx(V,{children:"No outgoing calls for the selected range"}),f.map(h=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"16px",alignItems:"baseline"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.92,wordBreak:"break-all"},children:h.url}),s.jsx(V,{sx:{whiteSpace:"nowrap"},children:h.count})]},h.url)),d>0&&s.jsx(pe,{onClick:()=>c(h=>!h),sx:{marginTop:"4px",padding:"8px",textAlign:"center",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:u?"Less":`More (${d})`})]})})},vy="#56bb56",bh="#bb5656",Sy=10,OT=l=>l.length>96?l.slice(0,96)+"…":l,CT=({stats:l})=>{const[r,u]=Q.useState(!1),[c,f]=Q.useState(null),d=Pb(l),h=d.reduce((x,v)=>Math.max(x,v.total),0)||1,g=d.reduce((x,v)=>x+v.success,0),m=d.reduce((x,v)=>x+v.fail,0),b=r?d:d.slice(0,Sy),E=Math.max(0,d.length-Sy);return s.jsx(wt,{label:"SQL queries",children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(fe,{sx:{gap:"40px",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Distinct queries"}),s.jsx(de,{variant:"headMedium",children:d.length})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Success"}),s.jsx(de,{variant:"headMedium",sx:{color:vy},children:g})]}),s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Failed"}),s.jsx(de,{variant:"headMedium",sx:{color:bh},children:m})]})]}),d.length===0&&s.jsx(V,{children:"No SQL activity for the selected range (backend may not surface SQL counters)."}),s.jsx(P,{sx:{gap:"12px"},children:b.map(x=>{const v=x.success/h*100,R=x.fail/h*100,G=c===x.query;return s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(fe,{onClick:()=>f(G?null:x.query),sx:{justifyContent:"space-between",gap:"16px",cursor:"pointer",alignItems:"baseline"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,wordBreak:"break-all",whiteSpace:G?"pre-wrap":"nowrap",overflow:G?void 0:"hidden",textOverflow:G?void 0:"ellipsis",maxWidth:G?"100%":"70%"},children:G?x.query:OT(x.query)}),s.jsxs(fe,{sx:{gap:"12px",flexShrink:0},children:[s.jsxs(V,{children:[x.total," q"]}),x.fail>0&&s.jsxs(de,{variant:"caption",sx:{color:bh,opacity:1},children:[x.fail," failed"]})]})]}),s.jsxs(fe,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"3px",overflow:"hidden"},children:[s.jsx(pe,{sx:{width:v+"%",backgroundColor:vy}}),s.jsx(pe,{sx:{width:R+"%",backgroundColor:bh}})]})]},x.query)})}),E>0&&s.jsx(pe,{onClick:()=>u(x=>!x),sx:{padding:"8px",textAlign:"center",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:r?"Less":`More (${E})`})]})})},AT=3e4,cs="#56bb56",jl="#bb5656",vu="#48BFE3",fs=l=>l>=1e3?(l/1e3).toFixed(2)+" s":Math.round(l)+" ms",RT=Le.pre`
|
|
424
|
+
margin: 0;
|
|
425
|
+
white-space: pre-wrap;
|
|
426
|
+
word-break: break-word;
|
|
427
|
+
font-family: monospace;
|
|
428
|
+
font-size: 0.8rem;
|
|
429
|
+
line-height: 1.5;
|
|
430
|
+
color: #9ffe19;
|
|
431
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
432
|
+
border-radius: 6px;
|
|
433
|
+
padding: 14px;
|
|
434
|
+
max-height: 60vh;
|
|
435
|
+
overflow: auto;
|
|
436
|
+
`,_T=Le.div`
|
|
437
|
+
display: grid;
|
|
438
|
+
grid-template-columns: 1fr auto;
|
|
439
|
+
gap: 12px;
|
|
440
|
+
align-items: baseline;
|
|
441
|
+
padding: 6px 0;
|
|
442
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
font-size: 0.76rem;
|
|
445
|
+
&:hover {
|
|
446
|
+
background-color: rgba(255, 255, 255, 0.04);
|
|
447
|
+
}
|
|
448
|
+
`,ds=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"70px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),NT=({db:l,range:r})=>{const[u,c]=Q.useState(null),f=l.stat??[],d=l.poolStatus!==null,h=f.map(J=>sc(s3(J.slot),r)),g=f.reduce((J,$)=>J+$.totalQueries,0),m=f.reduce((J,$)=>J+$.failedQueries,0),b=f.reduce((J,$)=>J+$.transactionsCount,0),E=g?f.reduce((J,$)=>J+$.averageQueryTime*$.totalQueries,0)/g:0,x=f.reduce((J,$)=>Math.max(J,$.maxQueryTime),0),v=f.flatMap(J=>J.longestQueries??[]).sort((J,$)=>$.execution-J.execution).slice(0,10),R=l.poolStatus,G=R&&R.poolConnections?R.acquiredPoolConnections/R.poolConnections*100:0;return s.jsxs(P,{sx:{gap:"18px",padding:"18px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",alignItems:"center",gap:"12px",flexWrap:"wrap"},children:[s.jsxs(fe,{sx:{gap:"10px",alignItems:"center"},children:[s.jsx(pe,{sx:{width:"9px",height:"9px",borderRadius:"50%",backgroundColor:d?cs:jl,boxShadow:`0 0 8px ${d?cs:jl}`}}),s.jsxs(P,{sx:{gap:"1px"},children:[s.jsxs(de,{variant:"medium",sx:{fontFamily:"monospace"},children:[l.host,":",l.port]}),s.jsx(V,{sx:{fontSize:".66rem"},children:l.id})]})]}),s.jsx(pe,{sx:{padding:"3px 9px",borderRadius:"4px",fontSize:".68rem",fontWeight:600,letterSpacing:".04em",color:d?cs:jl,border:`1px solid ${(d?cs:jl)+"55"}`,backgroundColor:(d?cs:jl)+"1a"},children:d?"ONLINE":"UNAVAILABLE"})]}),R&&s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"12px"},children:[s.jsx(V,{children:"Pool (acquired / total)"}),s.jsxs(de,{variant:"medium",children:[R.acquiredPoolConnections," / ",R.poolConnections]})]}),s.jsx(pe,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:s.jsx(pe,{sx:{height:"100%",width:Math.min(100,G)+"%",backgroundColor:G>85?jl:vu}})}),s.jsxs(V,{sx:{fontSize:".68rem"},children:["Last success: ",R.lastSuccessQueryTime||"—"]})]}),s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(ds,{label:"Queries",value:String(g)}),s.jsx(ds,{label:"Failed",value:String(m),color:m?jl:void 0}),s.jsx(ds,{label:"Transactions",value:String(b)}),s.jsx(ds,{label:"Avg time",value:fs(E),color:vu}),s.jsx(ds,{label:"Max time",value:fs(x)})]}),f.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Queries / failed"}),s.jsx(Yt,{height:150,labels:h,series:[{name:"Queries",color:vu,values:f.map(J=>J.totalQueries)},{name:"Failed",color:jl,values:f.map(J=>J.failedQueries)}]})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Avg query time"}),s.jsx(Yt,{height:150,labels:h,formatValue:fs,series:[{name:"Avg",color:"#80FFDB",values:f.map(J=>J.averageQueryTime)}]})]})]}),s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Longest queries"}),v.length===0&&s.jsx(V,{sx:{fontSize:".7rem"},children:"No slow queries recorded"}),v.map((J,$)=>s.jsxs(_T,{onClick:()=>c(J),children:[s.jsx(pe,{sx:{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",opacity:.9},children:J.query}),s.jsx(pe,{sx:{color:J.execution>=1e3?jl:vu,whiteSpace:"nowrap"},children:fs(J.execution)})]},$))]}),u&&s.jsx(Ka,{title:`Query · ${fs(u.execution)}`,onClose:()=>c(null),children:s.jsx(RT,{children:u.query})})]})},MT=({range:l})=>{const[r,u]=Q.useState([]),[,c]=PE.useRequest(f=>{f!=null&&f.error||u((f==null?void 0:f.data)??[])});return Q.useEffect(()=>{c({range:l})},[l]),_n(()=>c({range:l}),AT),s.jsx(wt,{label:"Database",children:s.jsxs(P,{sx:{gap:"20px"},children:[r.length===0&&s.jsx(V,{children:"No database instances"}),r.map(f=>s.jsx(NT,{db:f,range:l},f.id))]})})},DT=3e4,iv="#48BFE3",jy="#56bb56",ys="#bb5656",Uu=l=>l>=90?ys:l>=75?"#e9b61e":iv,vh=({pct:l,color:r})=>s.jsx(pe,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:s.jsx(pe,{sx:{height:"100%",width:Math.min(100,Math.max(0,l))+"%",backgroundColor:r??Uu(l),transition:"width .25s"}})}),An=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"90px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),Fr=({title:l,children:r})=>s.jsxs(P,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[s.jsx(de,{variant:"headMedium",children:l}),r]}),zT=()=>{const[l,r]=Q.useState(null),[,u]=e3.useRequest(b=>{b!=null&&b.error||b!=null&&b.data&&r(b.data)});if(_n(()=>u(),DT),!l)return s.jsx(V,{children:"Loading…"});const c=l.cpu,f=l.memory,d=l.disk??[],h=l.connections,g=l.nginx,m=l.pm2;return s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(Fr,{title:"CPU",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(An,{label:"Cores",value:c.count}),s.jsx(An,{label:"Platform",value:`${c.platform} / ${c.arch}`}),s.jsx(An,{label:"Uptime",value:hp(c.uptimeSec)}),s.jsx(An,{label:"Load avg",value:c.loadAvg.map(b=>b.toFixed(2)).join(" ")})]}),c.usage&&s.jsx(P,{sx:{gap:"10px"},children:[{label:"User",pct:c.usage.userPct},{label:"System",pct:c.usage.systemPct},{label:"I/O wait",pct:c.usage.iowaitPct},{label:"Idle",pct:c.usage.idlePct}].map(b=>s.jsxs(P,{sx:{gap:"4px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px"},children:[s.jsx(V,{children:b.label}),s.jsxs(de,{variant:"medium",children:[b.pct,"%"]})]}),s.jsx(vh,{pct:b.pct,color:b.label==="Idle"?"#80FFDB":void 0})]},b.label))}),Object.keys(c.models).length>0&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Models"}),Object.entries(c.models).map(([b,E])=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"16px"},children:[s.jsx(de,{variant:"medium",sx:{opacity:.9},children:b}),s.jsxs(V,{children:["×",E]})]},b))]})]}),s.jsxs(Fr,{title:"Memory",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(An,{label:"Total",value:Et(f.total)}),s.jsx(An,{label:"Used",value:Et(f.used),color:Uu(f.usedPct)}),s.jsx(An,{label:"Free",value:Et(f.free)}),s.jsx(An,{label:"Used %",value:`${f.usedPct}%`,color:Uu(f.usedPct)})]}),s.jsx(vh,{pct:f.usedPct})]}),d.length>0&&s.jsx(Fr,{title:"Disk",children:d.map(b=>{const E=parseInt(b.usePct,10)||(b.size?b.used/b.size*100:0);return s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:b.mount}),s.jsx(V,{sx:{fontSize:".66rem"},children:b.filesystem})]}),s.jsxs(de,{variant:"medium",children:[Et(b.used)," / ",Et(b.size),s.jsx("span",{style:{marginLeft:8,color:Uu(E)},children:b.usePct})]})]}),s.jsx(vh,{pct:E})]},b.mount+b.filesystem)})}),h&&s.jsxs(Fr,{title:`HTTP connections (${h.ports.join(", ")})`,children:[s.jsx(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:s.jsx(An,{label:"Total established",value:h.total,color:iv})}),h.topRemote.length>0&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Top remote IPs"}),h.topRemote.map(b=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:b.ip}),s.jsx(V,{children:b.count})]},b.ip))]})]}),s.jsxs(Fr,{title:"Nginx",children:[!g.installed&&s.jsx(V,{children:"Not installed"}),g.installed&&s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(An,{label:"Status",value:g.status??"—",color:g.status==="active"?jy:ys}),s.jsx(An,{label:"Workers",value:g.workerCount??0}),s.jsx(An,{label:"Version",value:g.version??"—"})]}),g.installed&&g.listening&&g.listening.length>0&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Listening"}),g.listening.map(b=>s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:b},b))]}),g.error&&s.jsx(V,{sx:{color:ys},children:g.error})]}),s.jsxs(Fr,{title:"PM2",children:[!m.installed&&s.jsx(V,{children:"Not installed"}),m.installed&&m.processes&&m.processes.length>0&&s.jsx(P,{sx:{gap:"10px"},children:m.processes.map(b=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:b.name}),s.jsxs(V,{sx:{fontSize:".66rem"},children:["pid ",b.pid," · ",b.exec_mode??"—"," · ",b.instances??1," inst"]})]}),s.jsxs(fe,{sx:{gap:"16px",alignItems:"baseline"},children:[s.jsx(V,{sx:{color:b.status==="online"?jy:ys},children:b.status??"—"}),s.jsxs(V,{children:[b.cpu??0,"%"]}),s.jsx(V,{children:Et(b.memory??0)}),s.jsxs(V,{children:["↻ ",b.restarts??0]})]})]},b.pm_id))}),m.error&&s.jsx(V,{sx:{color:ys},children:m.error})]})]})},Sh="#48BFE3",BT="#e9b61e",La="#bb5656",sv="#80FFDB",LT="#9a96ad",UT=2500,HT=2e3,Ey=45e3,qT=6e3,Vr=({tone:l,children:r})=>{const u=l==="ok"?sv:l==="warn"?BT:l==="fail"?La:LT;return s.jsxs(fe,{sx:{alignItems:"center",gap:"6px",padding:"3px 10px",borderRadius:"999px",border:`1px solid ${u}55`,backgroundColor:`${u}18`},children:[s.jsx(pe,{sx:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:u}}),s.jsx(de,{variant:"medium",sx:{fontSize:".72rem",color:u,letterSpacing:".04em",textTransform:"uppercase"},children:r})]})},Su=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"90px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),kT=({data:l})=>{const r=l.identity.pm2,u=(r==null?void 0:r.managed)===!0,c=(r==null?void 0:r.name)??"",f=l.identity.pid,d=l.identity.uptimeSec,h=ec("admin"),[g,m]=Q.useState("idle"),[b,E]=Q.useState(""),[x,v]=Q.useState(""),[R,G]=Q.useState(""),[J,$]=Q.useState(null),[ie,_]=Q.useState(null),[F,L]=Q.useState(!1),I=Q.useRef(null),X=()=>{v(""),G("")},[,S,,O]=a3.useRequest(te=>{var U;if(te!=null&&te.error){$(te.error),G(""),m("confirming");return}(U=te==null?void 0:te.data)!=null&&U.restarting&&(_(te.data.by),I.current={pid:f,uptimeSec:d},$(null),Ru(!0),m("waiting"),E(""),X())}),[,z]=Ib.useRequest(te=>{var he,Se;if(g!=="waiting")return;if(((he=te==null?void 0:te.error)==null?void 0:he.code)===401){L(!0),m("done");return}if(te!=null&&te.error)return;const U=(Se=te==null?void 0:te.data)==null?void 0:Se.identity;if(!U||!I.current)return;(U.pid!==I.current.pid||U.uptimeSec<I.current.uptimeSec)&&m("done")});Q.useEffect(()=>{(g==="timeout"||g==="idle")&&Ru(!1)},[g]),Q.useEffect(()=>()=>Ru(!1),[]),Q.useEffect(()=>{if(g!=="waiting")return;let te=!1;const U=window.setTimeout(()=>{te||z()},UT),se=window.setInterval(()=>{te||z()},HT),he=window.setTimeout(()=>{te||m("timeout")},Ey);return()=>{te=!0,window.clearTimeout(U),window.clearInterval(se),window.clearTimeout(he)}},[g,z]),Q.useEffect(()=>{if(g!=="done")return;const te=window.setTimeout(()=>{if(F){sa.invoke({code:401,message:"Process restarted — please sign in again."}),Wu.invoke();return}m("idle")},qT);return()=>window.clearTimeout(te)},[g,F]);const N=()=>{u&&($(null),E(""),X(),m("confirming"))},j=()=>{O||(m("idle"),E(""),X(),$(null))},M=u&&b===c&&c.length>0&&x.length>0&&/^\d{6}$/.test(R.trim()),ee=()=>{!M||O||($(null),m("restarting"),S({confirm:b,password:x,totp:R.trim()}))};return s.jsxs(P,{sx:{gap:"14px"},children:[s.jsxs(fe,{sx:{gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[s.jsx(de,{variant:"headMedium",children:"Process management"}),u?s.jsx(Vr,{tone:"ok",children:"pm2 managed"}):s.jsx(Vr,{tone:"warn",children:"not under pm2"}),g==="waiting"&&s.jsx(Vr,{tone:"muted",children:"restarting…"}),g==="restarting"&&s.jsx(Vr,{tone:"muted",children:"sending…"}),g==="done"&&s.jsx(Vr,{tone:"ok",children:"restarted ✓"}),g==="timeout"&&s.jsx(Vr,{tone:"fail",children:"timed out"})]}),u?s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Su,{label:"pm2 name",value:(r==null?void 0:r.name)??"—",color:Sh}),s.jsx(Su,{label:"pm2 id",value:(r==null?void 0:r.pmId)??"—"}),s.jsx(Su,{label:"instance",value:(r==null?void 0:r.instanceId)??"—"}),s.jsx(Su,{label:"pid",value:f})]}):s.jsx(V,{sx:{fontSize:".78rem"},children:"This process has no pm2 pm_id in its environment — restarting from the UI is disabled because nothing would bring it back up."}),!h&&s.jsx(V,{sx:{fontSize:".74rem"},children:"Restart is available to the admin role only."}),h&&s.jsxs(fe,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[s.jsx(pe,{onClick:u&&g==="idle"?N:void 0,sx:{padding:"9px 18px",borderRadius:"6px",cursor:u&&g==="idle"?"pointer":"not-allowed",fontSize:".78rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",color:u&&g==="idle"?"#fff":"rgba(255,255,255,.35)",backgroundColor:u&&g==="idle"?La:"rgba(255,255,255,.05)",border:`1px solid ${u&&g==="idle"?La:"rgba(255,255,255,.08)"}`,transition:"background-color .2s, border-color .2s","&:hover":u&&g==="idle"?{backgroundColor:"#9c4a4a"}:void 0},children:"Restart process"}),g==="waiting"&&s.jsx(V,{sx:{fontSize:".76rem"},children:"Waiting for process to come back up… (pm2 autorestart)"}),g==="done"&&ie&&s.jsxs(V,{sx:{fontSize:".76rem",color:sv},children:["Restart requested by ",s.jsx("b",{children:ie}),F&&" — session ended with the old process, signing out…"]}),g==="timeout"&&s.jsxs(V,{sx:{fontSize:".76rem",color:La},children:["Process didn't come back within ",Math.round(Ey/1e3)," s — check pm2 autorestart."]})]}),h&&s.jsx(V,{sx:{fontSize:".7rem",opacity:.8},children:"Relies on pm2 autorestart. Restart briefly interrupts traffic — for blue-green setups, prefer restarting the inactive slot."}),(g==="confirming"||g==="restarting")&&s.jsx(Ka,{title:"Restart process",onClose:j,width:"520px",children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(de,{variant:"medium",children:["You are about to restart the pm2 process"," ",s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",color:Sh,display:"inline"},children:c}),(r==null?void 0:r.pmId)!=null&&s.jsxs(de,{variant:"medium",sx:{opacity:.8,display:"inline"},children:[" ","(id ",r.pmId,")"]}),"."]}),s.jsx(V,{sx:{fontSize:".76rem"},children:"This will briefly interrupt in-flight requests. pm2 autorestart will bring the process back within a few seconds."})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsxs(V,{children:["To confirm, type the pm2 process name:"," ",s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",color:Sh,display:"inline"},children:c})]}),s.jsx(Vn,{autoFocus:!0,value:b,disabled:O,placeholder:c,onChange:te=>E(te.target.value),onKeyDown:te=>{te.key==="Enter"&&ee()}})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Re-enter your password and a fresh 2FA code"}),s.jsxs(fe,{sx:{gap:"10px",flexWrap:"wrap"},children:[s.jsx(pe,{sx:{flex:"1 1 200px"},children:s.jsx(Vn,{type:"password",autoComplete:"current-password",value:x,disabled:O,placeholder:"Password",onChange:te=>v(te.target.value),onKeyDown:te=>{te.key==="Enter"&&ee()}})}),s.jsx(pe,{sx:{flex:"0 0 140px"},children:s.jsx(Vn,{inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:R,disabled:O,placeholder:"2FA code",onChange:te=>G(te.target.value.replace(/\D/g,"")),onKeyDown:te=>{te.key==="Enter"&&ee()}})})]})]}),J&&s.jsx(pe,{sx:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"rgba(187,86,86,.14)",border:"1px solid rgba(187,86,86,.4)"},children:s.jsx(de,{variant:"medium",sx:{fontSize:".82rem",color:La},children:J.details||J.message||"Restart failed."})}),s.jsxs(fe,{sx:{gap:"10px",justifyContent:"flex-end",marginTop:"4px"},children:[s.jsx(pe,{onClick:O?void 0:j,sx:{padding:"9px 16px",borderRadius:"6px",cursor:O?"not-allowed":"pointer",fontSize:".78rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:O?"rgba(255,255,255,.35)":"rgba(255,255,255,.85)",border:"1px solid rgba(255,255,255,.12)","&:hover":O?void 0:{backgroundColor:"rgba(255,255,255,.06)"}},children:"Cancel"}),s.jsx(pe,{onClick:M&&!O?ee:void 0,sx:{padding:"9px 18px",borderRadius:"6px",cursor:M&&!O?"pointer":"not-allowed",fontSize:".78rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",color:M&&!O?"#fff":"rgba(255,255,255,.35)",backgroundColor:M&&!O?La:"rgba(255,255,255,.05)",border:`1px solid ${M&&!O?La:"rgba(255,255,255,.08)"}`,"&:hover":M&&!O?{backgroundColor:"#9c4a4a"}:void 0},children:O?"Sending…":"Restart"})]})]})})]})},GT=3e4,ov="#48BFE3",bs="#bb5656",vs="#e9b61e",Hu=l=>l>=90?bs:l>=75?vs:ov,jh=({pct:l,color:r})=>s.jsx(pe,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:s.jsx(pe,{sx:{height:"100%",width:Math.min(100,Math.max(0,l))+"%",backgroundColor:r??Hu(l),transition:"width .25s"}})}),Qe=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"90px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),za=({title:l,children:r})=>s.jsxs(P,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[s.jsx(de,{variant:"headMedium",children:l}),r]}),YT=()=>{const[l,r]=Q.useState(null),[,u]=Ib.useRequest(x=>{x!=null&&x.error||x!=null&&x.data&&r(x.data)});if(_n(()=>u(),GT),!l)return s.jsx(V,{children:"Loading…"});const c=l.identity,f=l.memory,d=l.cpu,h=l.eventLoop,g=l.gc,m=l.fileDescriptors,b=f.heap.sizeLimit?f.heapUsed/f.heap.sizeLimit*100:0,E=m.open!=null&&m.limitSoft?m.open/m.limitSoft*100:0;return s.jsxs(P,{sx:{gap:"16px"},children:[s.jsx(za,{title:"pm2",children:s.jsx(kT,{data:l})}),s.jsxs(za,{title:"Identity",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"PID",value:c.pid}),s.jsx(Qe,{label:"Host",value:c.hostname}),s.jsx(Qe,{label:"Node",value:c.nodeVersion}),s.jsx(Qe,{label:"V8",value:c.v8Version}),s.jsx(Qe,{label:"Platform",value:`${c.platform} / ${c.arch}`}),s.jsx(Qe,{label:"Cores",value:c.availableParallelism}),s.jsx(Qe,{label:"Uptime",value:hp(c.uptimeSec)})]}),c.execPath&&s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"Exec path"}),s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all"},children:c.execPath})]}),c.cwd&&s.jsxs(P,{sx:{gap:"2px"},children:[s.jsx(V,{children:"CWD"}),s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all"},children:c.cwd})]})]}),s.jsxs(za,{title:"Memory",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"RSS",value:Et(f.rss)}),s.jsx(Qe,{label:"Heap used",value:Et(f.heapUsed),color:Hu(b)}),s.jsx(Qe,{label:"Heap total",value:Et(f.heapTotal)}),s.jsx(Qe,{label:"Heap limit",value:Et(f.heap.sizeLimit)}),s.jsx(Qe,{label:"External",value:Et(f.external)}),s.jsx(Qe,{label:"ArrayBuffers",value:Et(f.arrayBuffers)})]}),s.jsxs(P,{sx:{gap:"4px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between"},children:[s.jsx(V,{children:"Heap used / limit"}),s.jsxs(de,{variant:"medium",children:[b.toFixed(1),"%"]})]}),s.jsx(jh,{pct:b})]}),f.heap.numberOfDetachedContexts>0&&s.jsxs(V,{sx:{color:bs},children:["Detached contexts: ",f.heap.numberOfDetachedContexts," (possible leak)"]}),f.heapSpaces.length>0&&s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(V,{children:"Heap spaces"}),f.heapSpaces.map(x=>{const v=x.size?x.used/x.size*100:0;return s.jsxs(P,{sx:{gap:"4px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:x.name}),s.jsxs(V,{children:[Et(x.used)," / ",Et(x.size)]})]}),s.jsx(jh,{pct:v})]},x.name)})]})]}),s.jsx(za,{title:"CPU",children:s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"User",value:`${d.userPct}%`,color:ov}),s.jsx(Qe,{label:"System",value:`${d.systemPct}%`,color:"#80FFDB"}),d.resource&&s.jsxs(s.Fragment,{children:[s.jsx(Qe,{label:"Max RSS",value:Et(d.resource.maxRSS*1024)}),s.jsx(Qe,{label:"Ctx (vol)",value:d.resource.voluntaryContextSwitches}),s.jsx(Qe,{label:"Ctx (invol)",value:d.resource.involuntaryContextSwitches}),s.jsx(Qe,{label:"FS read/write",value:`${d.resource.fsRead} / ${d.resource.fsWrite}`})]})]})}),h&&s.jsxs(za,{title:"Event loop",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"Utilization",value:`${h.utilizationPct}%`,color:Hu(h.utilizationPct)}),s.jsx(Qe,{label:"Spot lag",value:`${h.spotLagMs} ms`}),s.jsx(Qe,{label:"Active handles",value:h.activeHandles}),s.jsx(Qe,{label:"Active requests",value:h.activeRequests})]}),s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"Mean lag",value:`${h.meanMs.toFixed(2)} ms`}),s.jsx(Qe,{label:"p50",value:`${h.p50Ms.toFixed(2)} ms`}),s.jsx(Qe,{label:"p90",value:`${h.p90Ms.toFixed(2)} ms`,color:h.p90Ms>50?vs:void 0}),s.jsx(Qe,{label:"p99",value:`${h.p99Ms.toFixed(2)} ms`,color:h.p99Ms>100?bs:h.p99Ms>50?vs:void 0}),s.jsx(Qe,{label:"Max lag",value:`${h.maxMs.toFixed(2)} ms`})]})]}),s.jsxs(za,{title:"Garbage collection",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"Total collections",value:g.totalCount}),s.jsx(Qe,{label:"Total time",value:`${g.totalTimeMs.toFixed(1)} ms`}),s.jsx(Qe,{label:"Max pause",value:`${g.maxPauseMs.toFixed(1)} ms`,color:g.maxPauseMs>100?bs:g.maxPauseMs>30?vs:void 0})]}),Object.keys(g.byKind).length>0&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"By kind"}),Object.entries(g.byKind).map(([x,v])=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:x}),s.jsxs(V,{children:[v.count," · ",v.timeMs.toFixed(1)," ms"]})]},x))]}),g.lastPauses.length>0&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Recent pauses"}),g.lastPauses.slice().reverse().slice(0,10).map((x,v)=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px"},children:[s.jsxs(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:[new Date(x.timestamp).toLocaleTimeString()," · ",x.kind]}),s.jsxs(V,{sx:{color:x.ms>100?bs:x.ms>30?vs:void 0},children:[x.ms.toFixed(1)," ms"]})]},v))]})]}),s.jsxs(za,{title:"File descriptors",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(Qe,{label:"Open",value:m.open??"—",color:m.open!=null?Hu(E):void 0}),s.jsx(Qe,{label:"Soft limit",value:m.limitSoft??"—"}),s.jsx(Qe,{label:"Hard limit",value:m.limitHard??"—"})]}),m.open!=null&&m.limitSoft&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between"},children:[s.jsx(V,{children:"Open / soft limit"}),s.jsxs(de,{variant:"medium",children:[E.toFixed(1),"%"]})]}),s.jsx(jh,{pct:E})]})]})]})},FT=3e4,Xu="#48BFE3",uv="#e9b61e",yp="#bb5656",cv="#9a96ad",Ss={fdOpen:"#48BFE3",softLimit:"#bb5656",ESTABLISHED:"#80FFDB",CLOSE_WAIT:"#bb5656",TIME_WAIT:"#e9b61e",FIN_WAIT1:"#c48af0",FIN_WAIT2:"#c48af0",LISTEN:"#5390d9",total:"#c9c4dc",rss:"#9a96ad"},Ty=l=>{const r=new Date(l);return`${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`},VT=l=>l>=.9?yp:l>=.7?uv:Xu,QT=({pct:l,color:r})=>s.jsx(pe,{sx:{height:"8px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"4px",overflow:"hidden"},children:s.jsx(pe,{sx:{height:"100%",width:Math.min(100,Math.max(0,l))+"%",backgroundColor:r,transition:"width .25s, background-color .25s"}})}),hs=({title:l,children:r})=>s.jsxs(P,{sx:{gap:"12px",padding:"14px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[s.jsx(de,{variant:"headMedium",children:l}),r]}),ps=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"90px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u,fontVariantNumeric:"tabular-nums"}:{fontVariantNumeric:"tabular-nums"},children:r})]}),$T=({tone:l,text:r})=>s.jsxs(fe,{sx:{gap:"8px",alignItems:"flex-start",padding:"8px 10px",borderRadius:"6px",backgroundColor:l==="fail"?"rgba(187,86,86,.12)":l==="warn"?"rgba(233,182,30,.10)":"rgba(72,191,227,.10)",border:"1px solid "+(l==="fail"?"rgba(187,86,86,.35)":l==="warn"?"rgba(233,182,30,.35)":"rgba(72,191,227,.35)")},children:[s.jsx(pe,{sx:{width:"6px",height:"6px",borderRadius:"50%",marginTop:"6px",backgroundColor:l==="fail"?yp:l==="warn"?uv:Xu,flexShrink:0}}),s.jsx(de,{variant:"medium",sx:{opacity:.92,fontSize:".8rem"},children:r})]}),XT=({state:l,count:r,total:u,highlight:c})=>{const f=u>0?r/u*100:0,d=Ss[l]??cv;return s.jsxs(P,{sx:{gap:"4px",minWidth:"0"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"8px",alignItems:"baseline"},children:[s.jsxs(fe,{sx:{gap:"6px",alignItems:"center",minWidth:0},children:[s.jsx(pe,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:d,flexShrink:0}}),s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:c?1:.92,color:c?yp:void 0,fontWeight:c?600:void 0},children:l})]}),s.jsxs(fe,{sx:{gap:"6px",alignItems:"baseline"},children:[s.jsx(de,{variant:"medium",sx:{fontVariantNumeric:"tabular-nums"},children:r}),s.jsxs(V,{sx:{fontSize:".65rem"},children:[f.toFixed(0),"%"]})]})]}),s.jsx(pe,{sx:{height:"4px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"2px",overflow:"hidden"},children:s.jsx(pe,{sx:{height:"100%",width:f+"%",backgroundColor:d}})})]})},ZT=(l,r=4)=>{if(l.length<r)return{grew:!1,delta:0};const u=l.slice(-Math.max(r,Math.min(l.length,12))),c=u[0],f=u[u.length-1];if(f<=c)return{grew:!1,delta:0};const d=f-c;return{grew:d>=5&&f>=c*1.2,delta:d}},KT=({limit:l})=>{const[r,u]=Q.useState(null),[,c]=l3.useRequest(M=>{M!=null&&M.error||M!=null&&M.data&&u(M.data)});_n(()=>c(),FT);const f=Q.useMemo(()=>{var ee;if(!((ee=r==null?void 0:r.history)!=null&&ee.length))return[];const M=r.history;return typeof l=="number"&&l>0&&M.length>l?M.slice(-l):M},[r,l]);if(!r)return s.jsx(wt,{label:"File descriptors & sockets",children:s.jsx(V,{children:"Loading…"})});const d=r.now,h=d.sockets,g=d.limitSoft,m=g===-1,b=!m&&g!=null&&g>0,E=b?d.fdOpen/g:0,x=E*100,v=b?VT(E):Xu,R=(h==null?void 0:h.byState)??{},G=Object.entries(R).filter(([,M])=>typeof M=="number"&&M>0).sort((M,ee)=>ee[1]-M[1]),J=f.map(M=>Ty(M.ts)),$=[];if(f.length){$.push({name:"fdOpen",color:Ss.fdOpen,values:f.map(ee=>ee.fdOpen)});let M=0;for(const ee of f)typeof ee.fdSoftLimit=="number"&&ee.fdSoftLimit>0&&(M=ee.fdSoftLimit);M>0&&$.push({name:"soft limit",color:Ss.softLimit,values:f.map(()=>M)})}const ie=new Set;for(const M of f)for(const ee of Object.keys(M.byState??{}))(M.byState[ee]??0)>0&&ie.add(ee);const _=["ESTABLISHED","CLOSE_WAIT","TIME_WAIT","FIN_WAIT1","FIN_WAIT2","LISTEN"],L=_.filter(M=>ie.has(M)).concat([...ie].filter(M=>!_.includes(M)).sort()).map(M=>({name:M,color:Ss[M]??cv,values:f.map(ee=>{var te;return((te=ee.byState)==null?void 0:te[M])??0})})),I=[];b&&E>.9?I.push({tone:"fail",text:`fdOpen has reached ${x.toFixed(0)}% of the soft limit — descriptor exhaustion is imminent.`}):b&&E>.7&&I.push({tone:"warn",text:`fdOpen is at ${x.toFixed(0)}% of the soft limit — investigate what is holding open descriptors.`});const X=f.map(M=>{var ee;return((ee=M.byState)==null?void 0:ee.CLOSE_WAIT)??0}),S=ZT(X);S.grew&&I.push({tone:"warn",text:`CLOSE_WAIT sockets keep piling up (+${S.delta} over the recent window) — the peer (e.g. nginx) closed the connections but the app never released them.`});const O=(h==null?void 0:h.topRemotes)??[],z=R.ESTABLISHED??0;if(O.length>0&&z>0){const M=O[0];M.established>=10&&M.established/z>=.6&&I.push({tone:"info",text:`Host ${M.host} holds ${M.established} of ${z} ESTABLISHED sockets — check for stuck outgoing keep-alives.`})}const N=Math.round(r.sampleEveryMs/6e4),j=f.length===0,w=h===null;return s.jsx(wt,{label:"File descriptors & sockets",children:s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(hs,{title:"Current",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(ps,{label:"fd open",value:d.fdOpen,color:v}),s.jsx(ps,{label:"Soft limit",value:m?"∞":g??"—"}),s.jsx(ps,{label:"Hard limit",value:d.limitHard===-1?"∞":d.limitHard??"—"}),h&&s.jsx(ps,{label:"Sockets",value:h.total}),s.jsx(ps,{label:"Sampled",value:Ty(d.ts)})]}),b&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between"},children:[s.jsx(V,{children:"fd open / soft limit"}),s.jsxs(de,{variant:"medium",sx:{color:v,fontVariantNumeric:"tabular-nums"},children:[x.toFixed(1),"%"]})]}),s.jsx(QT,{pct:x,color:v})]}),m&&s.jsx(V,{sx:{fontSize:".72rem"},children:"Soft limit is unlimited — only the absolute fd count is shown."})]}),I.length>0&&s.jsx(P,{sx:{gap:"8px"},children:I.map((M,ee)=>s.jsx($T,{tone:M.tone,text:M.text},ee))}),w&&s.jsx(hs,{title:"Sockets",children:s.jsx(V,{children:"Socket state breakdown is only available on Linux (collected from /proc)."})}),h&&G.length>0&&s.jsx(hs,{title:"Sockets by state",children:s.jsx(P,{sx:{gap:"10px"},children:G.map(([M,ee])=>s.jsx(XT,{state:M,count:ee,total:h.total,highlight:M==="CLOSE_WAIT"},M))})}),h&&O.length>0&&s.jsx(hs,{title:"Top remote hosts (ESTABLISHED)",children:s.jsx(P,{sx:{gap:"6px"},children:O.map(M=>{const ee=z>0?M.established/z*100:0;return s.jsxs(P,{sx:{gap:"4px"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all",fontSize:".78rem"},children:M.host}),s.jsx(de,{variant:"medium",sx:{fontVariantNumeric:"tabular-nums"},children:M.established})]}),s.jsx(pe,{sx:{height:"4px",width:ee+"%",minWidth:"4px",borderRadius:"2px",backgroundColor:Xu}})]},M.host)})})}),s.jsx(hs,{title:`History (every ${N} min, up to ${r.historyMax} samples)`,children:j?s.jsxs(V,{children:["No history yet — the first sample is taken at startup, then every ",N," minutes."]}):s.jsxs(P,{sx:{gap:"18px"},children:[s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Open file descriptors"}),s.jsx(Yt,{series:$,labels:J,height:180,formatValue:M=>Math.round(M).toString()})]}),L.length>0&&s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Sockets by state"}),s.jsx(Yt,{series:L,labels:J,height:180,formatValue:M=>Math.round(M).toString()})]}),s.jsxs(P,{sx:{gap:"4px"},children:[s.jsx(V,{children:"Resident memory (RSS)"}),s.jsx(Yt,{series:[{name:"RSS",color:Ss.rss,values:f.map(M=>M.rss)}],labels:J,height:140,formatValue:Et})]})]})})]})})},IT=3e4,Eh="#48BFE3",fv="#56bb56",dv="#bb5656",JT={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656",ANY:"#8a8699"},PT=l=>JT[l.toUpperCase()]??"#8a8699",ju=({label:l,value:r,color:u})=>s.jsxs(P,{sx:{gap:"2px",minWidth:"80px"},children:[s.jsx(V,{children:l}),s.jsx(de,{variant:"headMedium",sx:u?{color:u}:void 0,children:r})]}),Th=({title:l,children:r})=>s.jsxs(P,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[s.jsx(de,{variant:"headMedium",children:l}),r]}),WT=({method:l})=>{const r=PT(l);return s.jsx(pe,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:r,border:"1px solid "+r+"55",backgroundColor:r+"1a"},children:l.toUpperCase()})},Ba=({label:l,active:r,color:u})=>{if(!r)return null;const c=u??"#9a96ad";return s.jsx(pe,{sx:{padding:"1px 6px",borderRadius:"3px",fontSize:".62rem",fontWeight:500,letterSpacing:".04em",textTransform:"uppercase",color:c,border:`1px solid ${c}44`,backgroundColor:`${c}12`},children:l})},ew=({svc:l})=>s.jsxs(fe,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsxs(fe,{sx:{gap:"10px",alignItems:"baseline"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:l.name}),s.jsx(V,{sx:{fontSize:".66rem"},children:l.className})]}),s.jsxs(V,{sx:{fontSize:".66rem"},children:["created ",new Date(l.createdAt).toLocaleTimeString(),l.initializedAt?` · init ${new Date(l.initializedAt).toLocaleTimeString()}`:"",l.applicationReadyAt?` · ready ${new Date(l.applicationReadyAt).toLocaleTimeString()}`:""]})]}),s.jsxs(fe,{sx:{gap:"12px",alignItems:"baseline"},children:[l.uptimeSec!==null&&s.jsx(V,{children:hp(l.uptimeSec)}),s.jsx(V,{sx:{color:l.initialized?fv:dv},children:l.initialized?"READY":"NOT INIT"})]})]}),tw=({h:l})=>s.jsxs(fe,{sx:{gap:"10px",alignItems:"baseline",padding:"6px 0",borderBottom:"1px solid rgba(255,255,255,.05)",flexWrap:"wrap"},children:[s.jsx(fe,{sx:{gap:"4px"},children:l.methods.map(r=>s.jsx(WT,{method:r},r))}),s.jsx(pe,{sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,flexGrow:1,minWidth:"160px"},children:l.path}),s.jsxs(fe,{sx:{gap:"4px",flexWrap:"wrap"},children:[s.jsx(Ba,{label:"validation",active:l.hasValidationModel,color:"#5390d9"}),s.jsx(Ba,{label:"result",active:l.hasResultModel,color:"#48BFE3"}),s.jsx(Ba,{label:"stream",active:l.asStream,color:"#80FFDB"}),s.jsx(Ba,{label:"no-doc",active:l.ignoreInDocumentation}),s.jsx(Ba,{label:"no-log",active:l.ignoreHttpLogging}),s.jsx(Ba,{label:"no-intercept",active:l.ignoreInterceptor}),s.jsx(Ba,{label:"independent",active:l.independed})]})]}),nw=({ep:l,defaultOpen:r})=>{const[u,c]=Q.useState(!!r);return s.jsxs(P,{sx:{gap:u?"12px":"0px",padding:"12px 14px",border:"1px solid rgba(255,255,255,.06)",borderRadius:"6px",backgroundColor:"rgba(0,0,0,.15)"},children:[s.jsxs(fe,{onClick:()=>c(f=>!f),sx:{cursor:"pointer",justifyContent:"space-between",gap:"12px",alignItems:"baseline",flexWrap:"wrap"},children:[s.jsxs(P,{sx:{gap:"2px"},children:[s.jsxs(fe,{sx:{gap:"10px",alignItems:"baseline"},children:[s.jsx(de,{variant:"medium",sx:{fontFamily:"monospace"},children:l.basePath||"/"}),s.jsx(V,{sx:{fontSize:".66rem"},children:l.className})]}),l.description&&s.jsx(V,{sx:{fontSize:".68rem",opacity:.85},children:l.description})]}),s.jsxs(fe,{sx:{gap:"12px",alignItems:"baseline"},children:[s.jsxs(V,{children:[l.handlerCount," handler",l.handlerCount===1?"":"s"]}),s.jsx(V,{sx:{color:l.initializedAt?fv:dv},children:l.initializedAt?"READY":"NOT INIT"}),s.jsx(pe,{sx:{opacity:.5,fontSize:".8rem"},children:u?"▾":"▸"})]})]}),u&&s.jsxs(P,{sx:{gap:"2px"},children:[l.handlers.length===0&&s.jsx(V,{children:"No handlers"}),l.handlers.map(f=>s.jsx(tw,{h:f},f.path+f.methods.join(",")))]})]})},lw=()=>{const[l,r]=Q.useState(null),[u,c]=Q.useState(""),[,f]=t3.useRequest(g=>{g!=null&&g.error||g!=null&&g.data&&r(g.data)});_n(()=>f(),IT);const d=Q.useMemo(()=>{if(!l)return[];const g=u.trim().toLowerCase();return g?l.endpoints.map(m=>{const b=m.basePath.toLowerCase().includes(g)||m.className.toLowerCase().includes(g)||(m.description??"").toLowerCase().includes(g),E=m.handlers.filter(x=>x.path.toLowerCase().includes(g)||(x.description??"").toLowerCase().includes(g)||(x.title??"").toLowerCase().includes(g)||x.methods.some(v=>v.toLowerCase().includes(g)));return b?m:E.length?{...m,handlers:E,handlerCount:E.length}:null}).filter(m=>m!==null):l.endpoints},[l,u]),h=Q.useMemo(()=>{if(!l)return[];const g=u.trim().toLowerCase();return g?l.services.filter(m=>m.name.toLowerCase().includes(g)||m.className.toLowerCase().includes(g)):l.services},[l,u]);return l?s.jsxs(P,{sx:{gap:"16px"},children:[s.jsxs(Th,{title:"Overview",children:[s.jsxs(fe,{sx:{gap:"20px",flexWrap:"wrap"},children:[s.jsx(ju,{label:"Services",value:l.counts.services,color:Eh}),s.jsx(ju,{label:"Endpoints",value:l.counts.endpoints,color:Eh}),s.jsx(ju,{label:"Handlers",value:l.counts.totalHandlers,color:Eh}),s.jsx(ju,{label:"Entrypoint",value:s.jsx("span",{style:{fontFamily:"monospace"},children:l.entrypoint||"/"})})]}),s.jsx(Vn,{type:"search",value:u,placeholder:"Filter by path, class, description or method…",onChange:g=>c(g.target.value)})]}),s.jsxs(Th,{title:`Services (${h.length})`,children:[h.length===0&&s.jsx(V,{children:"No matches"}),s.jsx(P,{sx:{gap:"10px"},children:h.map(g=>s.jsx(ew,{svc:g},g.className+g.name))})]}),s.jsxs(Th,{title:`Endpoints (${d.length})`,children:[d.length===0&&s.jsx(V,{children:"No matches"}),s.jsx(P,{sx:{gap:"10px"},children:d.map(g=>s.jsx(nw,{ep:g,defaultOpen:!!u.trim()},g.className+g.basePath))})]})]}):s.jsx(V,{children:"Loading…"})},hv=["CPU","NET","DB","MEM","PM2","APP","SYS"],aw=({active:l,onChange:r,counts:u})=>{const c=l.size===0,f=h=>{const g=new Set(l);g.has(h)?g.delete(h):g.add(h),r(g)},d=(h,g,m,b)=>s.jsxs(pe,{onClick:m,sx:{padding:"0 2px 12px",marginBottom:"-1px",cursor:"pointer",fontSize:".74rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",transition:"color .2s, border-color .2s",borderBottom:"2px solid "+(g?"#5390d9":"transparent"),color:g?"textPrimary":"rgba(255,255,255,.4)",display:"flex",alignItems:"center",gap:"6px","&:hover":{color:g?"textPrimary":"rgba(255,255,255,.7)"}},children:[s.jsx("span",{children:h}),b!==void 0&&b>0&&s.jsx(de,{variant:"caption",sx:{fontSize:".62rem",opacity:g?.9:.5,fontVariantNumeric:"tabular-nums"},children:b})]},h);return s.jsxs(fe,{sx:{gap:"26px",borderBottom:"1px solid rgba(255,255,255,.08)",marginBottom:"20px",flexWrap:"wrap"},children:[d("ALL",c,()=>r(new Set)),hv.map(h=>d(h,l.has(h),()=>f(h),u[h]))]})},rw=({stats:l,range:r})=>{const[u,c]=Q.useState(new Set),f=[{node:s.jsx(mT,{stats:l,range:r}),tags:["CPU","MEM","APP"]},{node:s.jsx(ST,{}),tags:["NET"]},{node:s.jsx(TT,{stats:l}),tags:["APP"]},{node:s.jsx(CT,{stats:l}),tags:["DB"]},{node:s.jsx(ET,{}),tags:["NET"]},{node:s.jsx(wT,{stats:l}),tags:["NET","APP"]},{node:s.jsx(MT,{range:r}),tags:["DB"]},{node:s.jsx(KT,{}),tags:["NET","SYS"]},{node:s.jsx(zT,{}),tags:["SYS","CPU","MEM"]},{node:s.jsx(YT,{}),tags:["PM2","MEM","APP"]},{node:s.jsx(lw,{}),tags:["APP"]}],d=hv.reduce((g,m)=>({...g,[m]:f.filter(b=>b.tags.includes(m)).length}),{}),h=u.size===0?f:f.filter(g=>g.tags.some(m=>u.has(m)));return s.jsxs(P,{sx:{gap:"0"},children:[s.jsx(aw,{active:u,onChange:c,counts:d}),h.length===0?s.jsx(pe,{sx:{padding:"40px",textAlign:"center",opacity:.6},children:"No panels match the selected filters."}):s.jsx(pe,{sx:{columnWidth:"440px",columnGap:"20px"},children:h.map((g,m)=>s.jsx(pe,{sx:{breakInside:"avoid",marginBottom:"20px",display:"block"},children:g.node},m))})]})},wy=window.__ver,iw=3e4,sw=45e3,Oy=4,ow=[{value:"hour",label:"Hour"},{value:"day",label:"Day"},{value:"week",label:"Week"}],Cy=[{value:"overview",label:"Overview"},{value:"logs",label:"Logs"},{value:"correlations",label:"Correlations"},{value:"archive",label:"Archive"}],Ay=({items:l,value:r,onChange:u})=>s.jsx(fe,{sx:{gap:"4px",padding:"4px",backgroundColor:"rgba(0,0,0,.2)",borderRadius:"8px"},children:l.map(c=>{const f=c.value===r;return s.jsx(pe,{onClick:()=>u(c.value),sx:{padding:"8px 18px",borderRadius:"6px",cursor:"pointer",fontSize:".85rem",transition:"background-color .2s",backgroundColor:f?"buttonBackgroundPrimary":"transparent",color:f?"buttonTextPrimary":"textPrimary","&:hover":{backgroundColor:f?"buttonBackgroundPrimary":"rgba(255,255,255,.06)"}},children:c.label},c.value)})}),uw=({tabs:l,value:r,onChange:u})=>s.jsx(fe,{sx:{gap:"26px",borderBottom:"1px solid rgba(255,255,255,.08)",marginBottom:"20px"},children:l.map((c,f)=>{const d=f===r;return s.jsx(pe,{onClick:()=>u(f),sx:{padding:"0 2px 12px",marginBottom:"-1px",cursor:"pointer",fontSize:".74rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",transition:"color .2s, border-color .2s",borderBottom:"2px solid "+(d?"#5390d9":"transparent"),color:d?"textPrimary":"rgba(255,255,255,.4)","&:hover":{color:d?"textPrimary":"rgba(255,255,255,.7)"}},children:c},c)})}),cw=()=>{const[l,r]=Q.useState("overview"),u=ec("logs"),c=u?Cy:Cy.filter(w=>w.value!=="logs"),f=qa.current,[d,h]=Q.useState("hour"),[g,m]=Q.useState(0),[b,E]=Q.useState(""),x=(w,M)=>{E(w),m(M)},[v,R]=Q.useState([]),[G,J]=Q.useState(null),[$,ie]=Q.useState(null),[,_,,F]=Xb.useRequest(w=>{if(w!=null&&w.error){J(w.error);return}J(null),R((w==null?void 0:w.data)??[]),ie(Date.now())});Q.useEffect(()=>{_({range:d})},[d]),_n(()=>_({range:d}),iw);const[L,I]=Q.useState(null),[X,S]=Q.useState(null),[O,z]=Q.useState(null),N=async()=>{const w=await db({limit:100});if(w.error){S(w.error.details||w.error.message);return}S(null),I(w.data??null),z(Date.now())};_n(N,sw,u);const j=L!=null&&L.totals.high?"high":L!=null&&L.totals.suspicious?"suspicious":"none";return s.jsxs(P,{sx:{padding:"30px",gap:"24px",maxWidth:"1800px",margin:"0 auto",width:"100%"},children:[s.jsxs(fe,{sx:{justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"16px"},children:[s.jsxs(fe,{sx:{alignItems:"baseline",gap:"12px",flexWrap:"wrap"},children:[s.jsx(de,{variant:"head",children:"Server Monitor"}),wy&&s.jsxs(V,{sx:{fontSize:".72rem"},children:["v.",wy]}),F&&s.jsx(ti,{size:18})]}),s.jsx(Ay,{items:c,value:l,onChange:r}),s.jsxs(fe,{sx:{alignItems:"center",gap:"16px"},children:[$&&s.jsxs(bt,{children:["Updated ",new Date($).toLocaleTimeString()]}),l==="overview"&&s.jsx(Ay,{items:ow,value:d,onChange:h}),u&&L&&s.jsxs(pe,{title:"Probing attempts — open the Threats tab",onClick:()=>{r("logs"),m(Oy)},sx:{display:"flex",alignItems:"center",gap:"6px",padding:"5px 10px",borderRadius:"999px",cursor:"pointer",fontSize:".68rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:j==="none"?"rgba(255,255,255,.55)":Xr(j),border:"1px solid "+(j==="none"?"rgba(255,255,255,.12)":Xr(j)+"66"),backgroundColor:j==="none"?"transparent":Xr(j)+"1a"},children:[s.jsx(pe,{sx:{width:"7px",height:"7px",borderRadius:"50%",backgroundColor:j==="none"?"#56bb56":Xr(j)}}),j==="none"?"Threats 0":`Threats ${L.totals.high} high · ${L.totals.suspicious} susp`]}),f&&s.jsxs(V,{sx:{fontSize:".72rem"},children:[f.login,f.role?` · ${f.role}`:""]}),s.jsx(pe,{onClick:()=>Wu.invoke(),sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".7rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"rgba(255,255,255,.75)",border:"1px solid rgba(255,255,255,.12)","&:hover":{backgroundColor:"rgba(255,255,255,.06)"}},children:"Sign out"})]})]}),G&&s.jsx(dp,{error:G}),l==="overview"&&s.jsx(rw,{stats:v,range:d}),l==="logs"&&u&&s.jsxs(wt,{children:[s.jsx(uw,{tabs:["Log","Net log","Outgoing","Files","Threats"],value:g,onChange:w=>{E(""),m(w)}}),g===0&&s.jsx(J3,{trace:b,onTrace:x}),g===1&&s.jsx(sT,{trace:b,onTrace:x}),g===2&&s.jsx(gT,{trace:b,onTrace:x}),g===3&&s.jsx(_3,{}),g===Oy&&s.jsx(G3,{data:L,error:X,updatedAt:O,onChanged:N})]}),l==="correlations"&&s.jsx(j3,{}),l==="archive"&&s.jsx(d3,{})]})};var wh={exports:{}},Ry;function fw(){return Ry||(Ry=1,(function(l,r){var u=(function(){var c=function(I,X){var S=236,O=17,z=I,N=d[X],j=null,w=0,M=null,ee=[],te={},U=function(K,ae){w=z*4+17,j=(function(B){for(var Y=new Array(B),ne=0;ne<B;ne+=1){Y[ne]=new Array(B);for(var xe=0;xe<B;xe+=1)Y[ne][xe]=null}return Y})(w),se(0,0),se(w-7,0),se(0,w-7),je(),Se(),re(K,ae),z>=7&&Ne(K),M==null&&(M=ce(z,N,ee)),Ee(M,ae)},se=function(K,ae){for(var B=-1;B<=7;B+=1)if(!(K+B<=-1||w<=K+B))for(var Y=-1;Y<=7;Y+=1)ae+Y<=-1||w<=ae+Y||(0<=B&&B<=6&&(Y==0||Y==6)||0<=Y&&Y<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=Y&&Y<=4?j[K+B][ae+Y]=!0:j[K+B][ae+Y]=!1)},he=function(){for(var K=0,ae=0,B=0;B<8;B+=1){U(!0,B);var Y=g.getLostPoint(te);(B==0||K>Y)&&(K=Y,ae=B)}return ae},Se=function(){for(var K=8;K<w-8;K+=1)j[K][6]==null&&(j[K][6]=K%2==0);for(var ae=8;ae<w-8;ae+=1)j[6][ae]==null&&(j[6][ae]=ae%2==0)},je=function(){for(var K=g.getPatternPosition(z),ae=0;ae<K.length;ae+=1)for(var B=0;B<K.length;B+=1){var Y=K[ae],ne=K[B];if(j[Y][ne]==null)for(var xe=-2;xe<=2;xe+=1)for(var Ce=-2;Ce<=2;Ce+=1)xe==-2||xe==2||Ce==-2||Ce==2||xe==0&&Ce==0?j[Y+xe][ne+Ce]=!0:j[Y+xe][ne+Ce]=!1}},Ne=function(K){for(var ae=g.getBCHTypeNumber(z),B=0;B<18;B+=1){var Y=!K&&(ae>>B&1)==1;j[Math.floor(B/3)][B%3+w-8-3]=Y}for(var B=0;B<18;B+=1){var Y=!K&&(ae>>B&1)==1;j[B%3+w-8-3][Math.floor(B/3)]=Y}},re=function(K,ae){for(var B=N<<3|ae,Y=g.getBCHTypeInfo(B),ne=0;ne<15;ne+=1){var xe=!K&&(Y>>ne&1)==1;ne<6?j[ne][8]=xe:ne<8?j[ne+1][8]=xe:j[w-15+ne][8]=xe}for(var ne=0;ne<15;ne+=1){var xe=!K&&(Y>>ne&1)==1;ne<8?j[8][w-ne-1]=xe:ne<9?j[8][15-ne-1+1]=xe:j[8][15-ne-1]=xe}j[w-8][8]=!K},Ee=function(K,ae){for(var B=-1,Y=w-1,ne=7,xe=0,Ce=g.getMaskFunction(ae),Oe=w-1;Oe>0;Oe-=2)for(Oe==6&&(Oe-=1);;){for(var Ue=0;Ue<2;Ue+=1)if(j[Y][Oe-Ue]==null){var He=!1;xe<K.length&&(He=(K[xe]>>>ne&1)==1);var ye=Ce(Y,Oe-Ue);ye&&(He=!He),j[Y][Oe-Ue]=He,ne-=1,ne==-1&&(xe+=1,ne=7)}if(Y+=B,Y<0||w<=Y){Y-=B,B=-B;break}}},T=function(K,ae){for(var B=0,Y=0,ne=0,xe=new Array(ae.length),Ce=new Array(ae.length),Oe=0;Oe<ae.length;Oe+=1){var Ue=ae[Oe].dataCount,He=ae[Oe].totalCount-Ue;Y=Math.max(Y,Ue),ne=Math.max(ne,He),xe[Oe]=new Array(Ue);for(var ye=0;ye<xe[Oe].length;ye+=1)xe[Oe][ye]=255&K.getBuffer()[ye+B];B+=Ue;var $e=g.getErrorCorrectPolynomial(He),et=b(xe[Oe],$e.getLength()-1),It=et.mod($e);Ce[Oe]=new Array($e.getLength()-1);for(var ye=0;ye<Ce[Oe].length;ye+=1){var Mn=ye+It.getLength()-Ce[Oe].length;Ce[Oe][ye]=Mn>=0?It.getAt(Mn):0}}for(var Mt=0,ye=0;ye<ae.length;ye+=1)Mt+=ae[ye].totalCount;for(var _e=new Array(Mt),rt=0,ye=0;ye<Y;ye+=1)for(var Oe=0;Oe<ae.length;Oe+=1)ye<xe[Oe].length&&(_e[rt]=xe[Oe][ye],rt+=1);for(var ye=0;ye<ne;ye+=1)for(var Oe=0;Oe<ae.length;Oe+=1)ye<Ce[Oe].length&&(_e[rt]=Ce[Oe][ye],rt+=1);return _e},ce=function(K,ae,B){for(var Y=E.getRSBlocks(K,ae),ne=x(),xe=0;xe<B.length;xe+=1){var Ce=B[xe];ne.put(Ce.getMode(),4),ne.put(Ce.getLength(),g.getLengthInBits(Ce.getMode(),K)),Ce.write(ne)}for(var Oe=0,xe=0;xe<Y.length;xe+=1)Oe+=Y[xe].dataCount;if(ne.getLengthInBits()>Oe*8)throw"code length overflow. ("+ne.getLengthInBits()+">"+Oe*8+")";for(ne.getLengthInBits()+4<=Oe*8&&ne.put(0,4);ne.getLengthInBits()%8!=0;)ne.putBit(!1);for(;!(ne.getLengthInBits()>=Oe*8||(ne.put(S,8),ne.getLengthInBits()>=Oe*8));)ne.put(O,8);return T(ne,Y)};te.addData=function(K,ae){ae=ae||"Byte";var B=null;switch(ae){case"Numeric":B=v(K);break;case"Alphanumeric":B=R(K);break;case"Byte":B=G(K);break;case"Kanji":B=J(K);break;default:throw"mode:"+ae}ee.push(B),M=null},te.isDark=function(K,ae){if(K<0||w<=K||ae<0||w<=ae)throw K+","+ae;return j[K][ae]},te.getModuleCount=function(){return w},te.make=function(){if(z<1){for(var K=1;K<40;K++){for(var ae=E.getRSBlocks(K,N),B=x(),Y=0;Y<ee.length;Y++){var ne=ee[Y];B.put(ne.getMode(),4),B.put(ne.getLength(),g.getLengthInBits(ne.getMode(),K)),ne.write(B)}for(var xe=0,Y=0;Y<ae.length;Y++)xe+=ae[Y].dataCount;if(B.getLengthInBits()<=xe*8)break}z=K}U(!1,he())},te.createTableTag=function(K,ae){K=K||2,ae=typeof ae>"u"?K*4:ae;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+ae+"px;",B+='">',B+="<tbody>";for(var Y=0;Y<te.getModuleCount();Y+=1){B+="<tr>";for(var ne=0;ne<te.getModuleCount();ne+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+K+"px;",B+=" height: "+K+"px;",B+=" background-color: ",B+=te.isDark(Y,ne)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},te.createSvgTag=function(K,ae,B,Y){var ne={};typeof arguments[0]=="object"&&(ne=arguments[0],K=ne.cellSize,ae=ne.margin,B=ne.alt,Y=ne.title),K=K||2,ae=typeof ae>"u"?K*4:ae,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-description":null,Y=typeof Y=="string"?{text:Y}:Y||{},Y.text=Y.text||null,Y.id=Y.text?Y.id||"qrcode-title":null;var xe=te.getModuleCount()*K+ae*2,Ce,Oe,Ue,He,ye="",$e;for($e="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",ye+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ye+=ne.scalable?"":' width="'+xe+'px" height="'+xe+'px"',ye+=' viewBox="0 0 '+xe+" "+xe+'" ',ye+=' preserveAspectRatio="xMinYMin meet"',ye+=Y.text||B.text?' role="img" aria-labelledby="'+ge([Y.id,B.id].join(" ").trim())+'"':"",ye+=">",ye+=Y.text?'<title id="'+ge(Y.id)+'">'+ge(Y.text)+"</title>":"",ye+=B.text?'<description id="'+ge(B.id)+'">'+ge(B.text)+"</description>":"",ye+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ye+='<path d="',Ue=0;Ue<te.getModuleCount();Ue+=1)for(He=Ue*K+ae,Ce=0;Ce<te.getModuleCount();Ce+=1)te.isDark(Ue,Ce)&&(Oe=Ce*K+ae,ye+="M"+Oe+","+He+$e);return ye+='" stroke="transparent" fill="black"/>',ye+="</svg>",ye},te.createDataURL=function(K,ae){K=K||2,ae=typeof ae>"u"?K*4:ae;var B=te.getModuleCount()*K+ae*2,Y=ae,ne=B-ae;return L(B,B,function(xe,Ce){if(Y<=xe&&xe<ne&&Y<=Ce&&Ce<ne){var Oe=Math.floor((xe-Y)/K),Ue=Math.floor((Ce-Y)/K);return te.isDark(Ue,Oe)?0:1}else return 1})},te.createImgTag=function(K,ae,B){K=K||2,ae=typeof ae>"u"?K*4:ae;var Y=te.getModuleCount()*K+ae*2,ne="";return ne+="<img",ne+=' src="',ne+=te.createDataURL(K,ae),ne+='"',ne+=' width="',ne+=Y,ne+='"',ne+=' height="',ne+=Y,ne+='"',B&&(ne+=' alt="',ne+=ge(B),ne+='"'),ne+="/>",ne};var ge=function(K){for(var ae="",B=0;B<K.length;B+=1){var Y=K.charAt(B);switch(Y){case"<":ae+="<";break;case">":ae+=">";break;case"&":ae+="&";break;case'"':ae+=""";break;default:ae+=Y;break}}return ae},ve=function(K){var ae=1;K=typeof K>"u"?ae*2:K;var B=te.getModuleCount()*ae+K*2,Y=K,ne=B-K,xe,Ce,Oe,Ue,He,ye={"██":"█","█ ":"▀"," █":"▄"," ":" "},$e={"██":"▀","█ ":"▀"," █":" "," ":" "},et="";for(xe=0;xe<B;xe+=2){for(Oe=Math.floor((xe-Y)/ae),Ue=Math.floor((xe+1-Y)/ae),Ce=0;Ce<B;Ce+=1)He="█",Y<=Ce&&Ce<ne&&Y<=xe&&xe<ne&&te.isDark(Oe,Math.floor((Ce-Y)/ae))&&(He=" "),Y<=Ce&&Ce<ne&&Y<=xe+1&&xe+1<ne&&te.isDark(Ue,Math.floor((Ce-Y)/ae))?He+=" ":He+="█",et+=K<1&&xe+1>=ne?$e[He]:ye[He];et+=`
|
|
449
|
+
`}return B%2&&K>0?et.substring(0,et.length-B-1)+Array(B+1).join("▀"):et.substring(0,et.length-1)};return te.createASCII=function(K,ae){if(K=K||1,K<2)return ve(ae);K-=1,ae=typeof ae>"u"?K*2:ae;var B=te.getModuleCount()*K+ae*2,Y=ae,ne=B-ae,xe,Ce,Oe,Ue,He=Array(K+1).join("██"),ye=Array(K+1).join(" "),$e="",et="";for(xe=0;xe<B;xe+=1){for(Oe=Math.floor((xe-Y)/K),et="",Ce=0;Ce<B;Ce+=1)Ue=1,Y<=Ce&&Ce<ne&&Y<=xe&&xe<ne&&te.isDark(Oe,Math.floor((Ce-Y)/K))&&(Ue=0),et+=Ue?He:ye;for(Oe=0;Oe<K;Oe+=1)$e+=et+`
|
|
450
|
+
`}return $e.substring(0,$e.length-1)},te.renderTo2dContext=function(K,ae){ae=ae||2;for(var B=te.getModuleCount(),Y=0;Y<B;Y++)for(var ne=0;ne<B;ne++)K.fillStyle=te.isDark(Y,ne)?"black":"white",K.fillRect(Y*ae,ne*ae,ae,ae)},te};c.stringToBytesFuncs={default:function(I){for(var X=[],S=0;S<I.length;S+=1){var O=I.charCodeAt(S);X.push(O&255)}return X}},c.stringToBytes=c.stringToBytesFuncs.default,c.createStringToBytes=function(I,X){var S=(function(){for(var z=_(I),N=function(){var Se=z.read();if(Se==-1)throw"eof";return Se},j=0,w={};;){var M=z.read();if(M==-1)break;var ee=N(),te=N(),U=N(),se=String.fromCharCode(M<<8|ee),he=te<<8|U;w[se]=he,j+=1}if(j!=X)throw j+" != "+X;return w})(),O=63;return function(z){for(var N=[],j=0;j<z.length;j+=1){var w=z.charCodeAt(j);if(w<128)N.push(w);else{var M=S[z.charAt(j)];typeof M=="number"?(M&255)==M?N.push(M):(N.push(M>>>8),N.push(M&255)):N.push(O)}}return N}};var f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},g=(function(){var I=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],X=1335,S=7973,O=21522,z={},N=function(j){for(var w=0;j!=0;)w+=1,j>>>=1;return w};return z.getBCHTypeInfo=function(j){for(var w=j<<10;N(w)-N(X)>=0;)w^=X<<N(w)-N(X);return(j<<10|w)^O},z.getBCHTypeNumber=function(j){for(var w=j<<12;N(w)-N(S)>=0;)w^=S<<N(w)-N(S);return j<<12|w},z.getPatternPosition=function(j){return I[j-1]},z.getMaskFunction=function(j){switch(j){case h.PATTERN000:return function(w,M){return(w+M)%2==0};case h.PATTERN001:return function(w,M){return w%2==0};case h.PATTERN010:return function(w,M){return M%3==0};case h.PATTERN011:return function(w,M){return(w+M)%3==0};case h.PATTERN100:return function(w,M){return(Math.floor(w/2)+Math.floor(M/3))%2==0};case h.PATTERN101:return function(w,M){return w*M%2+w*M%3==0};case h.PATTERN110:return function(w,M){return(w*M%2+w*M%3)%2==0};case h.PATTERN111:return function(w,M){return(w*M%3+(w+M)%2)%2==0};default:throw"bad maskPattern:"+j}},z.getErrorCorrectPolynomial=function(j){for(var w=b([1],0),M=0;M<j;M+=1)w=w.multiply(b([1,m.gexp(M)],0));return w},z.getLengthInBits=function(j,w){if(1<=w&&w<10)switch(j){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:return 8;case f.MODE_KANJI:return 8;default:throw"mode:"+j}else if(w<27)switch(j){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw"mode:"+j}else if(w<41)switch(j){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw"mode:"+j}else throw"type:"+w},z.getLostPoint=function(j){for(var w=j.getModuleCount(),M=0,ee=0;ee<w;ee+=1)for(var te=0;te<w;te+=1){for(var U=0,se=j.isDark(ee,te),he=-1;he<=1;he+=1)if(!(ee+he<0||w<=ee+he))for(var Se=-1;Se<=1;Se+=1)te+Se<0||w<=te+Se||he==0&&Se==0||se==j.isDark(ee+he,te+Se)&&(U+=1);U>5&&(M+=3+U-5)}for(var ee=0;ee<w-1;ee+=1)for(var te=0;te<w-1;te+=1){var je=0;j.isDark(ee,te)&&(je+=1),j.isDark(ee+1,te)&&(je+=1),j.isDark(ee,te+1)&&(je+=1),j.isDark(ee+1,te+1)&&(je+=1),(je==0||je==4)&&(M+=3)}for(var ee=0;ee<w;ee+=1)for(var te=0;te<w-6;te+=1)j.isDark(ee,te)&&!j.isDark(ee,te+1)&&j.isDark(ee,te+2)&&j.isDark(ee,te+3)&&j.isDark(ee,te+4)&&!j.isDark(ee,te+5)&&j.isDark(ee,te+6)&&(M+=40);for(var te=0;te<w;te+=1)for(var ee=0;ee<w-6;ee+=1)j.isDark(ee,te)&&!j.isDark(ee+1,te)&&j.isDark(ee+2,te)&&j.isDark(ee+3,te)&&j.isDark(ee+4,te)&&!j.isDark(ee+5,te)&&j.isDark(ee+6,te)&&(M+=40);for(var Ne=0,te=0;te<w;te+=1)for(var ee=0;ee<w;ee+=1)j.isDark(ee,te)&&(Ne+=1);var re=Math.abs(100*Ne/w/w-50)/5;return M+=re*10,M},z})(),m=(function(){for(var I=new Array(256),X=new Array(256),S=0;S<8;S+=1)I[S]=1<<S;for(var S=8;S<256;S+=1)I[S]=I[S-4]^I[S-5]^I[S-6]^I[S-8];for(var S=0;S<255;S+=1)X[I[S]]=S;var O={};return O.glog=function(z){if(z<1)throw"glog("+z+")";return X[z]},O.gexp=function(z){for(;z<0;)z+=255;for(;z>=256;)z-=255;return I[z]},O})();function b(I,X){if(typeof I.length>"u")throw I.length+"/"+X;var S=(function(){for(var z=0;z<I.length&&I[z]==0;)z+=1;for(var N=new Array(I.length-z+X),j=0;j<I.length-z;j+=1)N[j]=I[j+z];return N})(),O={};return O.getAt=function(z){return S[z]},O.getLength=function(){return S.length},O.multiply=function(z){for(var N=new Array(O.getLength()+z.getLength()-1),j=0;j<O.getLength();j+=1)for(var w=0;w<z.getLength();w+=1)N[j+w]^=m.gexp(m.glog(O.getAt(j))+m.glog(z.getAt(w)));return b(N,0)},O.mod=function(z){if(O.getLength()-z.getLength()<0)return O;for(var N=m.glog(O.getAt(0))-m.glog(z.getAt(0)),j=new Array(O.getLength()),w=0;w<O.getLength();w+=1)j[w]=O.getAt(w);for(var w=0;w<z.getLength();w+=1)j[w]^=m.gexp(m.glog(z.getAt(w))+N);return b(j,0).mod(z)},O}var E=(function(){var I=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],X=function(z,N){var j={};return j.totalCount=z,j.dataCount=N,j},S={},O=function(z,N){switch(N){case d.L:return I[(z-1)*4+0];case d.M:return I[(z-1)*4+1];case d.Q:return I[(z-1)*4+2];case d.H:return I[(z-1)*4+3];default:return}};return S.getRSBlocks=function(z,N){var j=O(z,N);if(typeof j>"u")throw"bad rs block @ typeNumber:"+z+"/errorCorrectionLevel:"+N;for(var w=j.length/3,M=[],ee=0;ee<w;ee+=1)for(var te=j[ee*3+0],U=j[ee*3+1],se=j[ee*3+2],he=0;he<te;he+=1)M.push(X(U,se));return M},S})(),x=function(){var I=[],X=0,S={};return S.getBuffer=function(){return I},S.getAt=function(O){var z=Math.floor(O/8);return(I[z]>>>7-O%8&1)==1},S.put=function(O,z){for(var N=0;N<z;N+=1)S.putBit((O>>>z-N-1&1)==1)},S.getLengthInBits=function(){return X},S.putBit=function(O){var z=Math.floor(X/8);I.length<=z&&I.push(0),O&&(I[z]|=128>>>X%8),X+=1},S},v=function(I){var X=f.MODE_NUMBER,S=I,O={};O.getMode=function(){return X},O.getLength=function(j){return S.length},O.write=function(j){for(var w=S,M=0;M+2<w.length;)j.put(z(w.substring(M,M+3)),10),M+=3;M<w.length&&(w.length-M==1?j.put(z(w.substring(M,M+1)),4):w.length-M==2&&j.put(z(w.substring(M,M+2)),7))};var z=function(j){for(var w=0,M=0;M<j.length;M+=1)w=w*10+N(j.charAt(M));return w},N=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-48;throw"illegal char :"+j};return O},R=function(I){var X=f.MODE_ALPHA_NUM,S=I,O={};O.getMode=function(){return X},O.getLength=function(N){return S.length},O.write=function(N){for(var j=S,w=0;w+1<j.length;)N.put(z(j.charAt(w))*45+z(j.charAt(w+1)),11),w+=2;w<j.length&&N.put(z(j.charAt(w)),6)};var z=function(N){if("0"<=N&&N<="9")return N.charCodeAt(0)-48;if("A"<=N&&N<="Z")return N.charCodeAt(0)-65+10;switch(N){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+N}};return O},G=function(I){var X=f.MODE_8BIT_BYTE,S=c.stringToBytes(I),O={};return O.getMode=function(){return X},O.getLength=function(z){return S.length},O.write=function(z){for(var N=0;N<S.length;N+=1)z.put(S[N],8)},O},J=function(I){var X=f.MODE_KANJI,S=c.stringToBytesFuncs.SJIS;if(!S)throw"sjis not supported.";(function(N,j){var w=S(N);if(w.length!=2||(w[0]<<8|w[1])!=j)throw"sjis not supported."})("友",38726);var O=S(I),z={};return z.getMode=function(){return X},z.getLength=function(N){return~~(O.length/2)},z.write=function(N){for(var j=O,w=0;w+1<j.length;){var M=(255&j[w])<<8|255&j[w+1];if(33088<=M&&M<=40956)M-=33088;else if(57408<=M&&M<=60351)M-=49472;else throw"illegal char at "+(w+1)+"/"+M;M=(M>>>8&255)*192+(M&255),N.put(M,13),w+=2}if(w<j.length)throw"illegal char at "+(w+1)},z},$=function(){var I=[],X={};return X.writeByte=function(S){I.push(S&255)},X.writeShort=function(S){X.writeByte(S),X.writeByte(S>>>8)},X.writeBytes=function(S,O,z){O=O||0,z=z||S.length;for(var N=0;N<z;N+=1)X.writeByte(S[N+O])},X.writeString=function(S){for(var O=0;O<S.length;O+=1)X.writeByte(S.charCodeAt(O))},X.toByteArray=function(){return I},X.toString=function(){var S="";S+="[";for(var O=0;O<I.length;O+=1)O>0&&(S+=","),S+=I[O];return S+="]",S},X},ie=function(){var I=0,X=0,S=0,O="",z={},N=function(w){O+=String.fromCharCode(j(w&63))},j=function(w){if(!(w<0)){if(w<26)return 65+w;if(w<52)return 97+(w-26);if(w<62)return 48+(w-52);if(w==62)return 43;if(w==63)return 47}throw"n:"+w};return z.writeByte=function(w){for(I=I<<8|w&255,X+=8,S+=1;X>=6;)N(I>>>X-6),X-=6},z.flush=function(){if(X>0&&(N(I<<6-X),I=0,X=0),S%3!=0)for(var w=3-S%3,M=0;M<w;M+=1)O+="="},z.toString=function(){return O},z},_=function(I){var X=I,S=0,O=0,z=0,N={};N.read=function(){for(;z<8;){if(S>=X.length){if(z==0)return-1;throw"unexpected end of file./"+z}var w=X.charAt(S);if(S+=1,w=="=")return z=0,-1;if(w.match(/^\s$/))continue;O=O<<6|j(w.charCodeAt(0)),z+=6}var M=O>>>z-8&255;return z-=8,M};var j=function(w){if(65<=w&&w<=90)return w-65;if(97<=w&&w<=122)return w-97+26;if(48<=w&&w<=57)return w-48+52;if(w==43)return 62;if(w==47)return 63;throw"c:"+w};return N},F=function(I,X){var S=I,O=X,z=new Array(I*X),N={};N.setPixel=function(ee,te,U){z[te*S+ee]=U},N.write=function(ee){ee.writeString("GIF87a"),ee.writeShort(S),ee.writeShort(O),ee.writeByte(128),ee.writeByte(0),ee.writeByte(0),ee.writeByte(0),ee.writeByte(0),ee.writeByte(0),ee.writeByte(255),ee.writeByte(255),ee.writeByte(255),ee.writeString(","),ee.writeShort(0),ee.writeShort(0),ee.writeShort(S),ee.writeShort(O),ee.writeByte(0);var te=2,U=w(te);ee.writeByte(te);for(var se=0;U.length-se>255;)ee.writeByte(255),ee.writeBytes(U,se,255),se+=255;ee.writeByte(U.length-se),ee.writeBytes(U,se,U.length-se),ee.writeByte(0),ee.writeString(";")};var j=function(ee){var te=ee,U=0,se=0,he={};return he.write=function(Se,je){if(Se>>>je)throw"length over";for(;U+je>=8;)te.writeByte(255&(Se<<U|se)),je-=8-U,Se>>>=8-U,se=0,U=0;se=Se<<U|se,U=U+je},he.flush=function(){U>0&&te.writeByte(se)},he},w=function(ee){for(var te=1<<ee,U=(1<<ee)+1,se=ee+1,he=M(),Se=0;Se<te;Se+=1)he.add(String.fromCharCode(Se));he.add(String.fromCharCode(te)),he.add(String.fromCharCode(U));var je=$(),Ne=j(je);Ne.write(te,se);var re=0,Ee=String.fromCharCode(z[re]);for(re+=1;re<z.length;){var T=String.fromCharCode(z[re]);re+=1,he.contains(Ee+T)?Ee=Ee+T:(Ne.write(he.indexOf(Ee),se),he.size()<4095&&(he.size()==1<<se&&(se+=1),he.add(Ee+T)),Ee=T)}return Ne.write(he.indexOf(Ee),se),Ne.write(U,se),Ne.flush(),je.toByteArray()},M=function(){var ee={},te=0,U={};return U.add=function(se){if(U.contains(se))throw"dup key:"+se;ee[se]=te,te+=1},U.size=function(){return te},U.indexOf=function(se){return ee[se]},U.contains=function(se){return typeof ee[se]<"u"},U};return N},L=function(I,X,S){for(var O=F(I,X),z=0;z<X;z+=1)for(var N=0;N<I;N+=1)O.setPixel(N,z,S(N,z));var j=$();O.write(j);for(var w=ie(),M=j.toByteArray(),ee=0;ee<M.length;ee+=1)w.writeByte(M[ee]);return w.flush(),"data:image/gif;base64,"+w};return c})();(function(){u.stringToBytesFuncs["UTF-8"]=function(c){function f(d){for(var h=[],g=0;g<d.length;g++){var m=d.charCodeAt(g);m<128?h.push(m):m<2048?h.push(192|m>>6,128|m&63):m<55296||m>=57344?h.push(224|m>>12,128|m>>6&63,128|m&63):(g++,m=65536+((m&1023)<<10|d.charCodeAt(g)&1023),h.push(240|m>>18,128|m>>12&63,128|m>>6&63,128|m&63))}return h}return f(c)}})(),(function(c){l.exports=c()})(function(){return u})})(wh)),wh.exports}var dw=fw();const hw=Zu(dw),pw=({value:l,size:r=200})=>{const u=Q.useMemo(()=>{const c=hw(0,"M");c.addData(l),c.make();const f=c.getModuleCount(),d=4,h=f+d*2;let g="";for(let m=0;m<f;m++)for(let b=0;b<f;b++)c.isDark(m,b)&&(g+=`M${b+d} ${m+d}h1v1h-1z`);return{total:h,path:g}},[l]);return s.jsx("svg",{width:r,height:r,viewBox:`0 0 ${u.total} ${u.total}`,shapeRendering:"crispEdges",role:"img","aria-label":"2FA enrollment QR code",style:{background:"#fff",borderRadius:"6px",display:"block"},children:s.jsx("path",{d:u.path,fill:"#000"})})},_y=window.__host,Ny=!!_y&&!_y.includes("{{"),gw=()=>{const l=S6();return l?{host:l.host,login:l.login,password:"",totp:""}:null},pv=Le.button`
|
|
451
|
+
position: absolute;
|
|
452
|
+
width: 1px;
|
|
453
|
+
height: 1px;
|
|
454
|
+
padding: 0;
|
|
455
|
+
border: 0;
|
|
456
|
+
opacity: 0;
|
|
457
|
+
pointer-events: none;
|
|
458
|
+
`,gv=Le.form`
|
|
459
|
+
position: relative;
|
|
460
|
+
display: flex;
|
|
461
|
+
flex-direction: column;
|
|
462
|
+
gap: 16px;
|
|
463
|
+
`,mw=Le.button`
|
|
464
|
+
flex: 0 0 auto;
|
|
465
|
+
position: relative;
|
|
466
|
+
width: 34px;
|
|
467
|
+
height: 19px;
|
|
468
|
+
padding: 0;
|
|
469
|
+
border: none;
|
|
470
|
+
border-radius: 19px;
|
|
471
|
+
cursor: pointer;
|
|
472
|
+
background-color: ${({$on:l})=>l?"#5390d9":"rgba(255,255,255,.16)"};
|
|
473
|
+
transition: background-color 0.2s;
|
|
474
|
+
&::after {
|
|
475
|
+
content: "";
|
|
476
|
+
position: absolute;
|
|
477
|
+
top: 2px;
|
|
478
|
+
left: 2px;
|
|
479
|
+
width: 15px;
|
|
480
|
+
height: 15px;
|
|
481
|
+
border-radius: 50%;
|
|
482
|
+
background-color: #fff;
|
|
483
|
+
transition: transform 0.2s;
|
|
484
|
+
transform: translateX(${({$on:l})=>l?"15px":"0"});
|
|
485
|
+
}
|
|
486
|
+
`,Zr=Le.input`
|
|
487
|
+
width: 100%;
|
|
488
|
+
box-sizing: border-box;
|
|
489
|
+
padding: 13px 14px;
|
|
490
|
+
border-radius: 6px;
|
|
491
|
+
font-size: 0.95rem;
|
|
492
|
+
outline: none;
|
|
493
|
+
color: ${({theme:l})=>l.colors.textPrimary};
|
|
494
|
+
background-color: ${({theme:l})=>l.colors.inputBackgroundPrimary};
|
|
495
|
+
border: 1px solid ${({theme:l})=>l.colors.inputBorderPrimary};
|
|
496
|
+
transition: border-color 0.2s;
|
|
497
|
+
&:focus {
|
|
498
|
+
border-color: #5390d9;
|
|
499
|
+
}
|
|
500
|
+
`,xw=()=>{const l=Gu.use([]),r=sa.use([]),u=l==="checking",c=Q.useState(gw)[0],f=Q.useRef(null),[d,h]=Q.useState(c??{...Kr}),[g,m]=Q.useState(!!c),b=v=>R=>h(G=>({...G,[v]:R.target.value})),E=d.login.trim().length>0&&d.password.length>0&&(Ny||d.host.trim().length>0)&&(d.totp===""||/^\d{6}$/.test(d.totp));Q.useEffect(()=>{if(!c)return;let v=!1;return w6().then(R=>{v||!R||h(G=>G.password||G.login&&G.login!==R.login?G:{...G,login:R.login,password:R.password})}),()=>{v=!0}},[c]);const x=()=>{!E||u||(pb.invoke({...d,remember:g}),h(v=>({...v,password:"",totp:""})))};return l==="enroll"?s.jsx(yw,{}):s.jsx(P,{sx:{minHeight:"100vh",alignItems:"center",justifyContent:"center",padding:"20px"},children:s.jsx(wt,{label:"Server Monitor",busy:u,sx:{minWidth:"340px",maxWidth:"380px"},children:s.jsxs(gv,{ref:f,method:"post",onSubmit:v=>{v.preventDefault(),x()},children:[s.jsx(pv,{type:"submit",tabIndex:-1,"aria-hidden":"true"}),!Ny&&s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(bt,{children:"API host"}),s.jsx(Zr,{value:d.host,onChange:b("host"),placeholder:"https://example.com/api/v1"})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(bt,{children:"Login"}),s.jsx(Zr,{name:"username",value:d.login,onChange:b("login"),autoComplete:"username"})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(bt,{children:"Password"}),s.jsx(Zr,{name:"password",type:"password",value:d.password,onChange:b("password"),autoComplete:"current-password"})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(bt,{children:"2FA code"}),s.jsx(Zr,{name:"totp",value:d.totp,onChange:v=>h(R=>({...R,totp:v.target.value.replace(/\D/g,"").slice(0,6)})),inputMode:"numeric",autoComplete:"one-time-code",placeholder:"6 digits from your authenticator"}),s.jsx(bt,{sx:{fontSize:".7rem"},children:"Leave empty only on your very first sign-in, before 2FA is set up."})]}),s.jsxs(fe,{sx:{gap:"10px",alignItems:"center"},children:[s.jsx(mw,{type:"button",$on:g,onClick:()=>m(v=>!v)}),s.jsx(bt,{children:"Remember me"}),s.jsx(bt,{sx:{fontSize:".66rem",opacity:.7},children:"(host and login; the password goes to your browser's password manager)"})]}),r&&s.jsx(dp,{error:r}),s.jsx(Qu,{onClick:()=>{var v;return(v=f.current)==null?void 0:v.requestSubmit()},disabled:!E||u,children:u?"Signing in…":"Sign in"})]})})})},yw=()=>{const l=Dh.use([]),r=sa.use([]),[u,c]=Q.useState(""),f=Q.useRef(null),[d,h]=Q.useState(!1),[g,m]=Q.useState(Date.now());if(Q.useEffect(()=>{const R=window.setInterval(()=>m(Date.now()),1e3);return()=>window.clearInterval(R)},[]),Q.useEffect(()=>{r&&h(!1)},[r]),!l)return null;const b=Math.max(0,Math.round((l.expiresAt-g)/1e3)),E=b===0,x=/^\d{6}$/.test(u),v=()=>{!x||d||E||(h(!0),gb.invoke(u),c(""))};return s.jsx(P,{sx:{minHeight:"100vh",alignItems:"center",justifyContent:"center",padding:"20px"},children:s.jsx(wt,{label:"Set up two-factor authentication",busy:d,sx:{minWidth:"340px",maxWidth:"420px"},children:s.jsxs(gv,{ref:f,onSubmit:R=>{R.preventDefault(),v()},children:[s.jsx(pv,{type:"submit",tabIndex:-1,"aria-hidden":"true"}),s.jsx(bt,{children:"Scan the code with Google Authenticator (or any TOTP app), then enter the 6-digit code it shows."}),s.jsx(P,{sx:{alignItems:"center",gap:"10px"},children:s.jsx(pw,{value:l.otpauthUri,size:208})}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(bt,{children:"No camera? Enter this key manually"}),s.jsx(Zr,{readOnly:!0,value:l.secret,onFocus:R=>R.currentTarget.select(),style:{fontFamily:"monospace",letterSpacing:".08em"}})]}),s.jsxs(P,{sx:{gap:"6px"},children:[s.jsx(bt,{children:"Code from the app"}),s.jsx(Zr,{autoFocus:!0,value:u,onChange:R=>c(R.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",placeholder:"123456"})]}),s.jsxs(bt,{sx:{fontSize:".7rem"},children:[E?"Enrollment expired — go back and sign in again.":`Expires in ${Math.floor(b/60)}:${String(b%60).padStart(2,"0")}`," · ","2FA can't be re-enrolled from the UI; if the phone is lost, an administrator has to reset it on the server."]}),r&&s.jsx(dp,{error:r}),s.jsxs(fe,{sx:{gap:"10px"},children:[s.jsx(Qu,{onClick:()=>Wu.invoke(),children:"Back"}),s.jsx(Qu,{onClick:()=>{var R;return(R=f.current)==null?void 0:R.requestSubmit()},disabled:!x||d||E,children:d?"Verifying…":"Enable 2FA"})]})]})})})},bw={cellBackground:"#FFFFFF",cellBackgroundHover:"rgb(249, 251, 255)",cellBackgroundExpanded:"#373948",cellColorExpanded:"#FFFFFF",headerBackground:"#f5f5f5",cellBorderBottom:"1px solid rgba(0,0,0,.1)",cellBorderTop:"1px solid transparent"},vw={cellBackground:"rgba(0,0,0,0)",cellBackgroundHover:"rgba(0,0,0,.1)",cellBackgroundExpanded:"#373948",cellColorExpanded:"#FFFFFF",headerBackground:"rgba(0,0,0,.4)",cellBorderBottom:"1px solid rgba(0,0,0,.6)",cellBorderTop:"1px solid rgba(255,255,255,.06)"};new Za;const Sw={background:"#a7a7a7",backgroundSelected:"#66bb6a",toggle:"#FFFFFF"};//!TODO: colors;
|
|
501
|
+
const jw={background:"#a7a7a7",backgroundSelected:"#66bb6a",toggle:"#FFFFFF"},Ew={backgroundPrimary:"#EEF0F2",panelBackgroundPrimary:"#FFFFFF",panelDividerBackgroundColor:"linear-gradient(0deg, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.1) 50%)",panelHeadBackgroundColor:"rgba(0, 0, 0, 0.05)",inputBackgroundPrimary:"#FFFFFF",inputBorderPrimary:"rgba(43, 33, 79, 0.3)",inputBorderSecondary:"#101A24",textPrimary:"#14171F",textSecondary:"#848799",textWarning:"#e91e63",buttonBackgroundPrimary:"#101A24",buttonBackgroundSecondary:"#848799",buttonTextPrimary:"#FFFFFF",buttonBackgroundPrimaryHover:"#1d2228",buttonTextSecondary:"#14171F",tabsHoverColor:"rgb(249, 251, 255)",chartPallete:["#7400B8","#6930C3","#5E60CE","#5390D9","#4EA8DE","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB"],chartForeground:"rgba(103, 123, 148, 1)",chartForegroundHover:"#88a4c5",chartLightForeground:"rgba(31, 194, 194, 1)",chartBackground:"rgba(242, 242, 242, 1)",success:"#56bb56",fail:"#bb5656",successText:"#48742f",failText:"#742f2f",divider:"#e2e2e2"},Tw={backgroundPrimary:"#19141f",inputBackgroundPrimary:"rgba(0,0,0,.1)",inputBorderPrimary:"rgba(255, 255, 255, 0.1)",inputBorderSecondary:"#0b6df5",panelBackgroundPrimary:"#231d2b",panelHeadBackgroundColor:"rgba(0, 0, 0, 0.1)",panelDividerBackgroundColor:"linear-gradient(0deg, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.8) 50%)",textPrimary:"#FFFFFF",textSecondary:"blue",textWarning:"#e91e63",buttonBackgroundPrimary:"#0b6df5",buttonBackgroundSecondary:"orange",buttonTextPrimary:"yellow",buttonBackgroundPrimaryHover:"purple",buttonTextSecondary:"pink",chartPallete:["#7400B8","#6930C3","#5E60CE","#5390D9","#4EA8DE","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB"],tabsHoverColor:"rgba(0,0,0,.1)",chartForeground:"rgba(103, 123, 148, 1)",chartForegroundHover:"#88a4c5",chartLightForeground:"rgba(31, 194, 194, 1)",chartBackground:"rgba(242, 242, 242, 1)",success:"#56bb56",fail:"#bb5656",successText:"#48742f",failText:"#742f2f",divider:"#e2e2e2"},mv={head:{fontSize:"1.7rem",fontWeight:600,color:"textPrimary",display:"inline"},headMedium:{fontSize:"1.15rem",fontWeight:500,color:"textPrimary",display:"inline"},text:{fontSize:"1rem",fontWeight:400,color:"textPrimary",display:"inline"},medium:{fontSize:".88rem",fontWeight:400,color:"textPrimary",display:"inline"},caption:{fontSize:".75rem",fontWeight:400,color:"textPrimary",display:"inline",opacity:.6},small:{fontSize:".6rem",fontWeight:400,color:"textPrimary",display:"inline"}},My=()=>({name:"light",colors:JSON.parse(JSON.stringify(Ew)),typo:JSON.parse(JSON.stringify(mv)),buttons:JSON.parse(JSON.stringify($b)),table:JSON.parse(JSON.stringify(bw)),toggle:JSON.parse(JSON.stringify(Sw))}),ww=()=>({name:"dark",colors:JSON.parse(JSON.stringify(Tw)),typo:JSON.parse(JSON.stringify(mv)),buttons:JSON.parse(JSON.stringify($b)),table:JSON.parse(JSON.stringify(vw)),toggle:JSON.parse(JSON.stringify(jw))}),Ow=BE`
|
|
502
|
+
@font-face {
|
|
503
|
+
font-family: 'Euclid';
|
|
504
|
+
src:
|
|
505
|
+
url('/Euclid Circular B Regular.woff2') format('woff2'),
|
|
506
|
+
url('/Euclid Circular B Regular.woff') format('woff');
|
|
507
|
+
font-weight: 400;
|
|
508
|
+
font-style: normal;
|
|
509
|
+
font-display: swap;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@font-face {
|
|
513
|
+
font-family: 'Euclid';
|
|
514
|
+
src:
|
|
515
|
+
url('/Euclid Circular B Bold.woff2') format('woff2'),
|
|
516
|
+
url('/Euclid Circular B Bold.woff') format('woff');
|
|
517
|
+
font-weight: 700;
|
|
518
|
+
font-style: normal;
|
|
519
|
+
font-display: swap;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
@font-face {
|
|
523
|
+
font-family: 'Euclid';
|
|
524
|
+
src:
|
|
525
|
+
url('/Euclid Circular B Light.woff2') format('woff2'),
|
|
526
|
+
url('/Euclid Circular B Light.woff') format('woff');
|
|
527
|
+
font-weight: 300;
|
|
528
|
+
font-style: normal;
|
|
529
|
+
font-display: swap;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
@font-face {
|
|
533
|
+
font-family: 'Euclid';
|
|
534
|
+
src:
|
|
535
|
+
url('/Euclid Circular B Medium.woff2') format('woff2'),
|
|
536
|
+
url('/Euclid Circular B Medium.woff') format('woff');
|
|
537
|
+
font-weight: 500;
|
|
538
|
+
font-style: normal;
|
|
539
|
+
font-display: swap;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
@font-face {
|
|
543
|
+
font-family: 'Euclid';
|
|
544
|
+
src:
|
|
545
|
+
url('/Euclid Circular B SemiBold.woff2') format('woff2'),
|
|
546
|
+
url('/Euclid Circular B SemiBold.woff') format('woff');
|
|
547
|
+
font-weight: 600;
|
|
548
|
+
font-style: normal;
|
|
549
|
+
font-display: swap;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
body{
|
|
553
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
|
|
554
|
+
'Helvetica Neue', sans-serif;
|
|
555
|
+
-webkit-font-smoothing: antialiased;
|
|
556
|
+
-moz-osx-font-smoothing: grayscale;
|
|
557
|
+
margin: 0;
|
|
558
|
+
padding: 0;
|
|
559
|
+
color:${({theme:l})=>l.colors.textPrimary};
|
|
560
|
+
background-color:${({theme:l})=>l.colors.backgroundPrimary};
|
|
561
|
+
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
*{
|
|
565
|
+
box-sizing: border-box;
|
|
566
|
+
}
|
|
567
|
+
::-webkit-scrollbar {
|
|
568
|
+
width: 6px;
|
|
569
|
+
height: 6px;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
::-webkit-scrollbar-track {
|
|
573
|
+
background-color:rgba(0,0,0,.2);
|
|
574
|
+
border-radius: 3px;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
::-webkit-scrollbar-thumb {
|
|
578
|
+
background-color:rgba(0,0,0,.3);
|
|
579
|
+
border-radius: 3px;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
::-webkit-scrollbar-thumb:hover {
|
|
583
|
+
background-color:rgba(0,0,0,1);
|
|
584
|
+
}
|
|
585
|
+
`,Cw=l=>{for(let r in l){const u=l[r];l[u]&&(l[r]=l[u])}},xv=(l,r)=>{for(let u in l)if(u!=="colors"){if(typeof l[u]=="object"){l[u]=xv(l[u],r);continue}if(typeof l[u]=="string"){const c=l[u];if(r[c])l[u]=r[c];else for(let f in r)c.indexOf(f)>-1&&(l[u]=c.replace(f,r[f]))}}return l},Aw=l=>(Cw(l.colors),xv(l,l.colors),l),Rw=({theme:l,children:r})=>s.jsxs(_E,{theme:Aw(l??My()),children:[s.jsx(Ow,{theme:l??My()}),r]}),_w=ww();function Nw(){const l=Gu.use([]);let r;switch(l){case"authorized":r=s.jsx(cw,{});break;case"unauthorized":case"checking":case"enroll":r=s.jsx(xw,{});break;default:r=s.jsxs(P,{sx:{padding:"20px"},children:["Unknown state: ",l]})}return s.jsx(Rw,{theme:_w,children:r})}new O6;wS.createRoot(document.getElementById("root")).render(s.jsx(Gt.StrictMode,{children:s.jsx(Nw,{})}));</script>
|
|
586
|
+
</head>
|
|
587
|
+
|
|
588
|
+
<body>
|
|
589
|
+
<div id="root"></div>
|
|
590
|
+
</body>
|
|
591
|
+
</html>
|