samarthya-bot 2.2.1 → 2.3.0
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 +25 -0
- package/README.md +340 -353
- package/backend/bin/samarthya.js +29 -10
- package/backend/config/constants.js +4 -4
- package/backend/controllers/chatController.js +72 -0
- package/backend/controllers/telegramController.js +8 -0
- package/backend/package.json +1 -1
- package/backend/public/assets/index-DiMx9ERJ.css +1 -0
- package/backend/public/assets/index-Dn5WYZTH.js +32 -0
- package/backend/public/index.html +186 -16
- package/backend/public/robots.txt +32 -0
- package/backend/public/sitemap.xml +39 -0
- package/backend/services/agent/commandService.js +168 -0
- package/backend/services/llm/llmService.js +8 -0
- package/backend/services/planner/plannerService.js +17 -0
- package/backend/services/security/sandboxService.js +11 -4
- package/backend/services/system/platform.js +150 -0
- package/backend/services/tools/toolRegistry.js +521 -36
- package/backend/services/worker/workerClient.js +141 -29
- package/package.json +1 -1
- package/backend/public/assets/index-6PCzI3K2.js +0 -40
- package/backend/public/assets/index-6TF5jVRQ.js +0 -149
- package/backend/public/assets/index-B0U7rt6f.js +0 -46
- package/backend/public/assets/index-BF0RZh9i.js +0 -149
- package/backend/public/assets/index-BFRAq8Y1.js +0 -149
- package/backend/public/assets/index-CGw8cc8z.js +0 -149
- package/backend/public/assets/index-Ckf0GO1B.css +0 -1
- package/backend/public/assets/index-Cx0Ei-z7.js +0 -149
- package/backend/public/assets/index-DIPdcLv-.js +0 -25
- package/backend/public/assets/index-Da1E-MYB.js +0 -53
- package/backend/public/assets/index-DdCKkq38.js +0 -149
- package/backend/public/assets/index-Do4jNsZS.js +0 -19
- package/backend/public/assets/index-DyjpBYmS.js +0 -51
- package/backend/public/assets/index-DzlXcaXT.js +0 -149
- package/backend/public/assets/index-J7XSVHCz.css +0 -1
- package/backend/public/assets/index-Ui-pyZvK.js +0 -25
- package/backend/public/assets/index-kzffNwzo.js +0 -149
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function u(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(f){if(f.ep)return;f.ep=!0;const h=u(f);fetch(f.href,h)}})();function om(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Tu={exports:{}},ni={};var mp;function Ag(){if(mp)return ni;mp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function u(s,f,h){var p=null;if(h!==void 0&&(p=""+h),f.key!==void 0&&(p=""+f.key),"key"in f){h={};for(var g in f)g!=="key"&&(h[g]=f[g])}else h=f;return f=h.ref,{$$typeof:i,type:s,key:p,ref:f!==void 0?f:null,props:h}}return ni.Fragment=o,ni.jsx=u,ni.jsxs=u,ni}var yp;function Rg(){return yp||(yp=1,Tu.exports=Ag()),Tu.exports}var c=Rg(),Cu={exports:{}},ue={};var gp;function Tg(){if(gp)return ue;gp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),D=Symbol.iterator;function U(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function X(S,B,G){this.props=S,this.context=B,this.refs=C,this.updater=G||T}X.prototype.isReactComponent={},X.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,B,"setState")},X.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function P(){}P.prototype=X.prototype;function V(S,B,G){this.props=S,this.context=B,this.refs=C,this.updater=G||T}var ie=V.prototype=new P;ie.constructor=V,w(ie,X.prototype),ie.isPureReactComponent=!0;var ce=Array.isArray;function ye(){}var J={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function Be(S,B,G){var Y=G.ref;return{$$typeof:i,type:S,key:B,ref:Y!==void 0?Y:null,props:G}}function rt(S,B){return Be(S.type,B,S.props)}function $e(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function Z(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return B[G]})}var de=/\/+/g;function xe(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Z(""+S.key):B.toString(36)}function Oe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ye,ye):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function M(S,B,G,Y,I){var se=typeof S;(se==="undefined"||se==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(se){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case i:case o:Te=!0;break;case b:return Te=S._init,M(Te(S._payload),B,G,Y,I)}}if(Te)return I=I(S),Te=Y===""?"."+xe(S,0):Y,ce(I)?(G="",Te!=null&&(G=Te.replace(de,"$&/")+"/"),M(I,B,G,"",function(cl){return cl})):I!=null&&($e(I)&&(I=rt(I,G+(I.key==null||S&&S.key===I.key?"":(""+I.key).replace(de,"$&/")+"/")+Te)),B.push(I)),1;Te=0;var ot=Y===""?".":Y+":";if(ce(S))for(var Ke=0;Ke<S.length;Ke++)Y=S[Ke],se=ot+xe(Y,Ke),Te+=M(Y,B,G,se,I);else if(Ke=U(S),typeof Ke=="function")for(S=Ke.call(S),Ke=0;!(Y=S.next()).done;)Y=Y.value,se=ot+xe(Y,Ke++),Te+=M(Y,B,G,se,I);else if(se==="object"){if(typeof S.then=="function")return M(Oe(S),B,G,Y,I);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Te}function Q(S,B,G){if(S==null)return S;var Y=[],I=0;return M(S,Y,"","",function(se){return B.call(G,se,I++)}),Y}function ae(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var Re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},K={map:Q,forEach:function(S,B,G){Q(S,function(){B.apply(this,arguments)},G)},count:function(S){var B=0;return Q(S,function(){B++}),B},toArray:function(S){return Q(S,function(B){return B})||[]},only:function(S){if(!$e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ue.Activity=x,ue.Children=K,ue.Component=X,ue.Fragment=u,ue.Profiler=f,ue.PureComponent=V,ue.StrictMode=s,ue.Suspense=v,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,ue.__COMPILER_RUNTIME={__proto__:null,c:function(S){return J.H.useMemoCache(S)}},ue.cache=function(S){return function(){return S.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(S,B,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Y=w({},S.props),I=S.key;if(B!=null)for(se in B.key!==void 0&&(I=""+B.key),B)!we.call(B,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&B.ref===void 0||(Y[se]=B[se]);var se=arguments.length-2;if(se===1)Y.children=G;else if(1<se){for(var Te=Array(se),ot=0;ot<se;ot++)Te[ot]=arguments[ot+2];Y.children=Te}return Be(S.type,I,Y)},ue.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ue.createElement=function(S,B,G){var Y,I={},se=null;if(B!=null)for(Y in B.key!==void 0&&(se=""+B.key),B)we.call(B,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(I[Y]=B[Y]);var Te=arguments.length-2;if(Te===1)I.children=G;else if(1<Te){for(var ot=Array(Te),Ke=0;Ke<Te;Ke++)ot[Ke]=arguments[Ke+2];I.children=ot}if(S&&S.defaultProps)for(Y in Te=S.defaultProps,Te)I[Y]===void 0&&(I[Y]=Te[Y]);return Be(S,se,I)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(S){return{$$typeof:g,render:S}},ue.isValidElement=$e,ue.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ae}},ue.memo=function(S,B){return{$$typeof:y,type:S,compare:B===void 0?null:B}},ue.startTransition=function(S){var B=J.T,G={};J.T=G;try{var Y=S(),I=J.S;I!==null&&I(G,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(ye,Re)}catch(se){Re(se)}finally{B!==null&&G.types!==null&&(B.types=G.types),J.T=B}},ue.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},ue.use=function(S){return J.H.use(S)},ue.useActionState=function(S,B,G){return J.H.useActionState(S,B,G)},ue.useCallback=function(S,B){return J.H.useCallback(S,B)},ue.useContext=function(S){return J.H.useContext(S)},ue.useDebugValue=function(){},ue.useDeferredValue=function(S,B){return J.H.useDeferredValue(S,B)},ue.useEffect=function(S,B){return J.H.useEffect(S,B)},ue.useEffectEvent=function(S){return J.H.useEffectEvent(S)},ue.useId=function(){return J.H.useId()},ue.useImperativeHandle=function(S,B,G){return J.H.useImperativeHandle(S,B,G)},ue.useInsertionEffect=function(S,B){return J.H.useInsertionEffect(S,B)},ue.useLayoutEffect=function(S,B){return J.H.useLayoutEffect(S,B)},ue.useMemo=function(S,B){return J.H.useMemo(S,B)},ue.useOptimistic=function(S,B){return J.H.useOptimistic(S,B)},ue.useReducer=function(S,B,G){return J.H.useReducer(S,B,G)},ue.useRef=function(S){return J.H.useRef(S)},ue.useState=function(S){return J.H.useState(S)},ue.useSyncExternalStore=function(S,B,G){return J.H.useSyncExternalStore(S,B,G)},ue.useTransition=function(){return J.H.useTransition()},ue.version="19.2.4",ue}var vp;function $u(){return vp||(vp=1,Cu.exports=Tg()),Cu.exports}var A=$u();const $r=om(A);var zu={exports:{}},li={},_u={exports:{}},wu={};var xp;function Cg(){return xp||(xp=1,(function(i){function o(M,Q){var ae=M.length;M.push(Q);e:for(;0<ae;){var Re=ae-1>>>1,K=M[Re];if(0<f(K,Q))M[Re]=Q,M[ae]=K,ae=Re;else break e}}function u(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var Q=M[0],ae=M.pop();if(ae!==Q){M[0]=ae;e:for(var Re=0,K=M.length,S=K>>>1;Re<S;){var B=2*(Re+1)-1,G=M[B],Y=B+1,I=M[Y];if(0>f(G,ae))Y<K&&0>f(I,G)?(M[Re]=I,M[Y]=ae,Re=Y):(M[Re]=G,M[B]=ae,Re=B);else if(Y<K&&0>f(I,ae))M[Re]=I,M[Y]=ae,Re=Y;else break e}}return Q}function f(M,Q){var ae=M.sortIndex-Q.sortIndex;return ae!==0?ae:M.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();i.unstable_now=function(){return p.now()-g}}var v=[],y=[],b=1,x=null,D=3,U=!1,T=!1,w=!1,C=!1,X=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ie(M){for(var Q=u(y);Q!==null;){if(Q.callback===null)s(y);else if(Q.startTime<=M)s(y),Q.sortIndex=Q.expirationTime,o(v,Q);else break;Q=u(y)}}function ce(M){if(w=!1,ie(M),!T)if(u(v)!==null)T=!0,ye||(ye=!0,Z());else{var Q=u(y);Q!==null&&Oe(ce,Q.startTime-M)}}var ye=!1,J=-1,we=5,Be=-1;function rt(){return C?!0:!(i.unstable_now()-Be<we)}function $e(){if(C=!1,ye){var M=i.unstable_now();Be=M;var Q=!0;try{e:{T=!1,w&&(w=!1,P(J),J=-1),U=!0;var ae=D;try{t:{for(ie(M),x=u(v);x!==null&&!(x.expirationTime>M&&rt());){var Re=x.callback;if(typeof Re=="function"){x.callback=null,D=x.priorityLevel;var K=Re(x.expirationTime<=M);if(M=i.unstable_now(),typeof K=="function"){x.callback=K,ie(M),Q=!0;break t}x===u(v)&&s(v),ie(M)}else s(v);x=u(v)}if(x!==null)Q=!0;else{var S=u(y);S!==null&&Oe(ce,S.startTime-M),Q=!1}}break e}finally{x=null,D=ae,U=!1}Q=void 0}}finally{Q?Z():ye=!1}}}var Z;if(typeof V=="function")Z=function(){V($e)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,xe=de.port2;de.port1.onmessage=$e,Z=function(){xe.postMessage(null)}}else Z=function(){X($e,0)};function Oe(M,Q){J=X(function(){M(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return D},i.unstable_next=function(M){switch(D){case 1:case 2:case 3:var Q=3;break;default:Q=D}var ae=D;D=Q;try{return M()}finally{D=ae}},i.unstable_requestPaint=function(){C=!0},i.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ae=D;D=M;try{return Q()}finally{D=ae}},i.unstable_scheduleCallback=function(M,Q,ae){var Re=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Re+ae:Re):ae=Re,M){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ae+K,M={id:b++,callback:Q,priorityLevel:M,startTime:ae,expirationTime:K,sortIndex:-1},ae>Re?(M.sortIndex=ae,o(y,M),u(v)===null&&M===u(y)&&(w?(P(J),J=-1):w=!0,Oe(ce,ae-Re))):(M.sortIndex=K,o(v,M),T||U||(T=!0,ye||(ye=!0,Z()))),M},i.unstable_shouldYield=rt,i.unstable_wrapCallback=function(M){var Q=D;return function(){var ae=D;D=Q;try{return M.apply(this,arguments)}finally{D=ae}}}})(wu)),wu}var bp;function zg(){return bp||(bp=1,_u.exports=Cg()),_u.exports}var Ou={exports:{}},ht={};var Sp;function _g(){if(Sp)return ht;Sp=1;var i=$u();function o(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(o(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(v,y,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:x==null?null:""+x,children:v,containerInfo:y,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ht.createPortal=function(v,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return h(v,y,null,b)},ht.flushSync=function(v){var y=p.T,b=s.p;try{if(p.T=null,s.p=2,v)return v()}finally{p.T=y,s.p=b,s.d.f()}},ht.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},ht.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ht.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var b=y.as,x=g(b,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,U=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:D,fetchPriority:U}):b==="script"&&s.d.X(v,{crossOrigin:x,integrity:D,fetchPriority:U,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},ht.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,x=g(b,y.crossOrigin);s.d.L(v,b,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ht.preloadModule=function(v,y){if(typeof v=="string")if(y){var b=g(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},ht.requestFormReset=function(v){s.d.r(v)},ht.unstable_batchedUpdates=function(v,y){return v(y)},ht.useFormState=function(v,y,b){return p.H.useFormState(v,y,b)},ht.useFormStatus=function(){return p.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var Ep;function wg(){if(Ep)return Ou.exports;Ep=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Ou.exports=_g(),Ou.exports}var jp;function Og(){if(jp)return li;jp=1;var i=zg(),o=$u(),u=wg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(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 v(e){if(h(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return v(l),e;if(r===n)return v(l),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=l,n=r;else{for(var d=!1,m=l.child;m;){if(m===a){d=!0,a=l,n=r;break}if(m===n){d=!0,n=l,a=r;break}m=m.sibling}if(!d){for(m=r.child;m;){if(m===a){d=!0,a=r,n=l;break}if(m===n){d=!0,n=r,a=l;break}m=m.sibling}if(!d)throw Error(s(189))}}if(a.alternate!==n)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,D=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),$e=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=$e&&e[$e]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case X:return"Profiler";case C:return"StrictMode";case ce:return"Suspense";case ye:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case V:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var Oe=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Re=[],K=-1;function S(e){return{current:e}}function B(e){0>K||(e.current=Re[K],Re[K]=null,K--)}function G(e,t){K++,Re[K]=e.current,e.current=t}var Y=S(null),I=S(null),se=S(null),Te=S(null);function ot(e,t){switch(G(se,t),G(I,e),G(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Uh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Uh(t),e=Lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(Y),G(Y,e)}function Ke(){B(Y),B(I),B(se)}function cl(e){e.memoizedState!==null&&G(Te,e);var t=Y.current,a=Lh(t,e.type);t!==a&&(G(I,e),G(Y,a))}function vi(e){I.current===e&&(B(Y),B(I)),Te.current===e&&(B(Te),Pl._currentValue=ae)}var oo,hc;function Wa(e){if(oo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);oo=t&&t[1]||"",hc=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+oo+e+hc}var so=!1;function uo(e,t){if(!e||so)return"";so=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(k){var O=k}Reflect.construct(e,[],q)}else{try{q.call()}catch(k){O=k}e.call(q.prototype)}}else{try{throw Error()}catch(k){O=k}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(k){if(k&&O&&typeof k.stack=="string")return[k.stack,O.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],m=r[1];if(d&&m){var E=d.split(`
|
|
4
|
-
`),_=m.split(`
|
|
5
|
-
`);for(l=n=0;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;for(;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;if(n===E.length||l===_.length)for(n=E.length-1,l=_.length-1;1<=n&&0<=l&&E[n]!==_[l];)l--;for(;1<=n&&0<=l;n--,l--)if(E[n]!==_[l]){if(n!==1||l!==1)do if(n--,l--,0>l||E[n]!==_[l]){var H=`
|
|
6
|
-
`+E[n].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=n&&0<=l);break}}}finally{so=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function ty(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return uo(e.type,!1);case 11:return uo(e.type.render,!1);case 1:return uo(e.type,!0);case 31:return Wa("Activity");default:return""}}function pc(e){try{var t="",a=null;do t+=ty(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
7
|
-
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}}var co=Object.prototype.hasOwnProperty,fo=i.unstable_scheduleCallback,ho=i.unstable_cancelCallback,ay=i.unstable_shouldYield,ny=i.unstable_requestPaint,Rt=i.unstable_now,ly=i.unstable_getCurrentPriorityLevel,mc=i.unstable_ImmediatePriority,yc=i.unstable_UserBlockingPriority,xi=i.unstable_NormalPriority,iy=i.unstable_LowPriority,gc=i.unstable_IdlePriority,ry=i.log,oy=i.unstable_setDisableYieldValue,fl=null,Tt=null;function Ra(e){if(typeof ry=="function"&&oy(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(fl,e)}catch{}}var Ct=Math.clz32?Math.clz32:cy,sy=Math.log,uy=Math.LN2;function cy(e){return e>>>=0,e===0?32:31-(sy(e)/uy|0)|0}var bi=256,Si=262144,Ei=4194304;function $a(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&261888;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 ji(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?l=$a(n):(d&=m,d!==0?l=$a(d):a||(a=m&~e,a!==0&&(l=$a(a))))):(m=n&~r,m!==0?l=$a(m):d!==0?l=$a(d):a||(a=n&~e,a!==0&&(l=$a(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function dl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fy(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 vc(){var e=Ei;return Ei<<=1,(Ei&62914560)===0&&(Ei=4194304),e}function po(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dy(e,t,a,n,l,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,E=e.expirationTimes,_=e.hiddenUpdates;for(a=d&~a;0<a;){var H=31-Ct(a),q=1<<H;m[H]=0,E[H]=-1;var O=_[H];if(O!==null)for(_[H]=null,H=0;H<O.length;H++){var k=O[H];k!==null&&(k.lane&=-536870913)}a&=~q}n!==0&&xc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function xc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function bc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function Sc(e,t){var a=t&-t;return a=(a&42)!==0?1:mo(a),(a&(e.suspendedLanes|t))!==0?0:a}function mo(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 yo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ec(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:sp(e.type))}function jc(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Ta=Math.random().toString(36).slice(2),st="__reactFiber$"+Ta,yt="__reactProps$"+Ta,bn="__reactContainer$"+Ta,go="__reactEvents$"+Ta,hy="__reactListeners$"+Ta,py="__reactHandles$"+Ta,Ac="__reactResources$"+Ta,pl="__reactMarker$"+Ta;function vo(e){delete e[st],delete e[yt],delete e[go],delete e[hy],delete e[py]}function Sn(e){var t=e[st];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[st]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Zh(e);e!==null;){if(a=e[st])return a;e=Zh(e)}return t}e=a,a=e.parentNode}return null}function En(e){if(e=e[st]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ml(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function jn(e){var t=e[Ac];return t||(t=e[Ac]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[pl]=!0}var Rc=new Set,Tc={};function Ia(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Tc[e]=t,e=0;e<t.length;e++)Rc.add(t[e])}var my=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]*$"),Cc={},zc={};function yy(e){return co.call(zc,e)?!0:co.call(Cc,e)?!1:my.test(e)?zc[e]=!0:(Cc[e]=!0,!1)}function Ai(e,t,a){if(yy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ri(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ra(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gy(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xo(e){if(!e._valueTracker){var t=_c(e)?"checked":"value";e._valueTracker=gy(e,t,""+e[t])}}function wc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=_c(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ti(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}}var vy=/[\n"\\]/g;function Ht(e){return e.replace(vy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bo(e,t,a,n,l,r,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?So(e,d,kt(t)):a!=null?So(e,d,kt(a)):n!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+kt(m):e.removeAttribute("name")}function Oc(e,t,a,n,l,r,d,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){xo(e);return}a=a!=null?""+kt(a):"",t=t!=null?""+kt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),xo(e)}function So(e,t,a){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rn(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&n&&(e[a].defaultSelected=!0)}else{for(a=""+kt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Mc(e,t,a){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+kt(a):""}function Dc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(Oe(n)){if(1<n.length)throw Error(s(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=kt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),xo(e)}function Tn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var xy=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 Bc(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||xy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var l in t)n=t[l],t.hasOwnProperty(l)&&a[l]!==n&&Bc(e,l,n)}else for(var r in t)t.hasOwnProperty(r)&&Bc(e,r,t[r])}function Eo(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 by=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"],["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"]]),Sy=/^[\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 Ci(e){return Sy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var jo=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cn=null,zn=null;function kc(e){var t=En(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(bo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var l=n[yt]||null;if(!l)throw Error(s(90));bo(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&wc(n)}break e;case"textarea":Mc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Rn(e,!!a.multiple,t,!1)}}}var Ro=!1;function Hc(e,t,a){if(Ro)return e(t,a);Ro=!0;try{var n=e(t);return n}finally{if(Ro=!1,(Cn!==null||zn!==null)&&(pr(),Cn&&(t=Cn,e=zn,zn=Cn=null,kc(t),e)))for(t=0;t<e.length;t++)kc(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[yt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),To=!1;if(sa)try{var gl={};Object.defineProperty(gl,"passive",{get:function(){To=!0}}),window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{To=!1}var Ca=null,Co=null,zi=null;function Uc(){if(zi)return zi;var e,t=Co,a=t.length,n,l="value"in Ca?Ca.value:Ca.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===l[r-n];n++);return zi=l.slice(e,1<n?1-n:void 0)}function _i(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 wi(){return!0}function Lc(){return!1}function gt(e){function t(a,n,l,r,d){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?wi:Lc,this.isPropagationStopped=Lc,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oi=gt(Pa),vl=x({},Pa,{view:0,detail:0}),Ey=gt(vl),zo,_o,xl,Mi=x({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oo,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!==xl&&(xl&&e.type==="mousemove"?(zo=e.screenX-xl.screenX,_o=e.screenY-xl.screenY):_o=zo=0,xl=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),qc=gt(Mi),jy=x({},Mi,{dataTransfer:0}),Ay=gt(jy),Ry=x({},vl,{relatedTarget:0}),wo=gt(Ry),Ty=x({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),Cy=gt(Ty),zy=x({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_y=gt(zy),wy=x({},Pa,{data:0}),Gc=gt(wy),Oy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},My={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"},Dy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function By(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dy[e])?!!t[e]:!1}function Oo(){return By}var Ny=x({},vl,{key:function(e){if(e.key){var t=Oy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?My[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oo,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ky=gt(Ny),Hy=x({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yc=gt(Hy),Uy=x({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oo}),Ly=gt(Uy),qy=x({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gy=gt(qy),Yy=x({},Mi,{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}),Vy=gt(Yy),Xy=x({},Pa,{newState:0,oldState:0}),Qy=gt(Xy),Zy=[9,13,27,32],Mo=sa&&"CompositionEvent"in window,bl=null;sa&&"documentMode"in document&&(bl=document.documentMode);var Ky=sa&&"TextEvent"in window&&!bl,Vc=sa&&(!Mo||bl&&8<bl&&11>=bl),Xc=" ",Qc=!1;function Zc(e,t){switch(e){case"keyup":return Zy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function Jy(e,t){switch(e){case"compositionend":return Kc(t);case"keypress":return t.which!==32?null:(Qc=!0,Xc);case"textInput":return e=t.data,e===Xc&&Qc?null:e;default:return null}}function Fy(e,t){if(_n)return e==="compositionend"||!Mo&&Zc(e,t)?(e=Uc(),zi=Co=Ca=null,_n=!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 Vc&&t.locale!=="ko"?null:t.data;default:return null}}var Wy={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 Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wy[e.type]:t==="textarea"}function Fc(e,t,a,n){Cn?zn?zn.push(n):zn=[n]:Cn=n,t=Sr(t,"onChange"),0<t.length&&(a=new Oi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Sl=null,El=null;function $y(e){Mh(e,0)}function Di(e){var t=ml(e);if(wc(t))return e}function Wc(e,t){if(e==="change")return t}var $c=!1;if(sa){var Do;if(sa){var Bo="oninput"in document;if(!Bo){var Ic=document.createElement("div");Ic.setAttribute("oninput","return;"),Bo=typeof Ic.oninput=="function"}Do=Bo}else Do=!1;$c=Do&&(!document.documentMode||9<document.documentMode)}function Pc(){Sl&&(Sl.detachEvent("onpropertychange",ef),El=Sl=null)}function ef(e){if(e.propertyName==="value"&&Di(El)){var t=[];Fc(t,El,e,Ao(e)),Hc($y,t)}}function Iy(e,t,a){e==="focusin"?(Pc(),Sl=t,El=a,Sl.attachEvent("onpropertychange",ef)):e==="focusout"&&Pc()}function Py(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Di(El)}function e0(e,t){if(e==="click")return Di(t)}function t0(e,t){if(e==="input"||e==="change")return Di(t)}function a0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:a0;function jl(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!co.call(t,l)||!zt(e[l],t[l]))return!1}return!0}function tf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function af(e,t){var a=tf(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=tf(a)}}function nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ti(e.document)}return t}function No(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 n0=sa&&"documentMode"in document&&11>=document.documentMode,wn=null,ko=null,Al=null,Ho=!1;function rf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ho||wn==null||wn!==Ti(n)||(n=wn,"selectionStart"in n&&No(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Al&&jl(Al,n)||(Al=n,n=Sr(ko,"onSelect"),0<n.length&&(t=new Oi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=wn)))}function en(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var On={animationend:en("Animation","AnimationEnd"),animationiteration:en("Animation","AnimationIteration"),animationstart:en("Animation","AnimationStart"),transitionrun:en("Transition","TransitionRun"),transitionstart:en("Transition","TransitionStart"),transitioncancel:en("Transition","TransitionCancel"),transitionend:en("Transition","TransitionEnd")},Uo={},of={};sa&&(of=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function tn(e){if(Uo[e])return Uo[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in of)return Uo[e]=t[a];return e}var sf=tn("animationend"),uf=tn("animationiteration"),cf=tn("animationstart"),l0=tn("transitionrun"),i0=tn("transitionstart"),r0=tn("transitioncancel"),ff=tn("transitionend"),df=new Map,Lo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");Lo.push("scrollEnd");function Kt(e,t){df.set(e,t),Ia(t,[e])}var Bi=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)},Ut=[],Mn=0,qo=0;function Ni(){for(var e=Mn,t=qo=Mn=0;t<e;){var a=Ut[t];Ut[t++]=null;var n=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var r=Ut[t];if(Ut[t++]=null,n!==null&&l!==null){var d=n.pending;d===null?l.next=l:(l.next=d.next,d.next=l),n.pending=l}r!==0&&hf(a,l,r)}}function ki(e,t,a,n){Ut[Mn++]=e,Ut[Mn++]=t,Ut[Mn++]=a,Ut[Mn++]=n,qo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Go(e,t,a,n){return ki(e,t,a,n),Hi(e)}function an(e,t){return ki(e,null,null,t),Hi(e)}function hf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-Ct(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Hi(e){if(50<Zl)throw Zl=0,Ws=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dn={};function o0(e,t,a,n){this.tag=e,this.key=a,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,a,n){return new o0(e,t,a,n)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=_t(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function pf(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ui(e,t,a,n,l,r){var d=0;if(n=e,typeof e=="function")Yo(e)&&(d=1);else if(typeof e=="string")d=dg(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=_t(31,a,t,l),e.elementType=Be,e.lanes=r,e;case w:return nn(a.children,l,r,t);case C:d=8,l|=24;break;case X:return e=_t(12,a,t,l|2),e.elementType=X,e.lanes=r,e;case ce:return e=_t(13,a,t,l),e.elementType=ce,e.lanes=r,e;case ye:return e=_t(19,a,t,l),e.elementType=ye,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:d=10;break e;case P:d=9;break e;case ie:d=11;break e;case J:d=14;break e;case we:d=16,n=null;break e}d=29,a=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=_t(d,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=_t(7,e,n,t),e.lanes=a,e}function Vo(e,t,a){return e=_t(6,e,null,t),e.lanes=a,e}function mf(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Xo(e,t,a){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yf=new WeakMap;function Lt(e,t){if(typeof e=="object"&&e!==null){var a=yf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:pc(t)},yf.set(e,t),t)}return{value:e,source:t,stack:pc(t)}}var Bn=[],Nn=0,Li=null,Rl=0,qt=[],Gt=0,za=null,Pt=1,ea="";function ca(e,t){Bn[Nn++]=Rl,Bn[Nn++]=Li,Li=e,Rl=t}function gf(e,t,a){qt[Gt++]=Pt,qt[Gt++]=ea,qt[Gt++]=za,za=e;var n=Pt;e=ea;var l=32-Ct(n)-1;n&=~(1<<l),a+=1;var r=32-Ct(t)+l;if(30<r){var d=l-l%5;r=(n&(1<<d)-1).toString(32),n>>=d,l-=d,Pt=1<<32-Ct(t)+l|a<<l|n,ea=r+e}else Pt=1<<r|a<<l|n,ea=e}function Qo(e){e.return!==null&&(ca(e,1),gf(e,1,0))}function Zo(e){for(;e===Li;)Li=Bn[--Nn],Bn[Nn]=null,Rl=Bn[--Nn],Bn[Nn]=null;for(;e===za;)za=qt[--Gt],qt[Gt]=null,ea=qt[--Gt],qt[Gt]=null,Pt=qt[--Gt],qt[Gt]=null}function vf(e,t){qt[Gt++]=Pt,qt[Gt++]=ea,qt[Gt++]=za,Pt=t.id,ea=t.overflow,za=e}var ut=null,Ge=null,Ae=!1,_a=null,Yt=!1,Ko=Error(s(519));function wa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Lt(t,e)),Ko}function xf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[st]=e,t[yt]=n,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)ve(Jl[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),Oc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Dc(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||kh(t.textContent,a)?(n.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),n.onScroll!=null&&ve("scroll",t),n.onScrollEnd!=null&&ve("scrollend",t),n.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||wa(e,!0)}function bf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ut=ut.return}}function kn(e){if(e!==ut)return!1;if(!Ae)return bf(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||fu(e.type,e.memoizedProps)),a=!a),a&&Ge&&wa(e),bf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Qh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Qh(e)}else t===27?(t=Ge,Xa(e.type)?(e=yu,yu=null,Ge=e):Ge=t):Ge=ut?Xt(e.stateNode.nextSibling):null;return!0}function ln(){Ge=ut=null,Ae=!1}function Jo(){var e=_a;return e!==null&&(St===null?St=e:St.push.apply(St,e),_a=null),e}function Tl(e){_a===null?_a=[e]:_a.push(e)}var Fo=S(null),rn=null,fa=null;function Oa(e,t,a){G(Fo,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Fo.current,B(Fo)}function Wo(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function $o(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var d=l.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=l;for(var E=0;E<t.length;E++)if(m.context===t[E]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),Wo(r.return,a,e),n||(d=null);break e}r=m.next}}else if(l.tag===18){if(d=l.return,d===null)throw Error(s(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),Wo(d,a,e),d=null}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===e){d=null;break}if(l=d.sibling,l!==null){l.return=d.return,d=l;break}d=d.return}l=d}}function Hn(e,t,a,n){e=null;for(var l=t,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var d=l.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var m=l.type;zt(l.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(l===Te.current){if(d=l.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}l=l.return}e!==null&&$o(t,e,a,n),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){rn=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Sf(rn,e)}function Gi(e,t){return rn===null&&on(e),Sf(e,t)}function Sf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fa===null){if(e===null)throw Error(s(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return a}var s0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},u0=i.unstable_scheduleCallback,c0=i.unstable_NormalPriority,Ie={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new s0,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&u0(c0,function(){e.controller.abort()})}var zl=null,Po=0,Un=0,Ln=null;function f0(e,t){if(zl===null){var a=zl=[];Po=0,Un=au(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Po++,t.then(Ef,Ef),t}function Ef(){if(--Po===0&&zl!==null){Ln!==null&&(Ln.status="fulfilled");var e=zl;zl=null,Un=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function d0(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var jf=M.S;M.S=function(e,t){rh=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&f0(e,t),jf!==null&&jf(e,t)};var sn=S(null);function es(){var e=sn.current;return e!==null?e:Le.pooledCache}function Yi(e,t){t===null?G(sn,sn.current):G(sn,t.pool)}function Af(){var e=es();return e===null?null:{parent:Ie._currentValue,pool:e}}var qn=Error(s(460)),ts=Error(s(474)),Vi=Error(s(542)),Xi={then:function(){}};function Rf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(oa,oa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zf(e),e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zf(e),e}throw cn=t,qn}}function un(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(cn=a,qn):a}}var cn=null;function Cf(){if(cn===null)throw Error(s(459));var e=cn;return cn=null,e}function zf(e){if(e===qn||e===Vi)throw Error(s(483))}var Gn=null,_l=0;function Qi(e){var t=_l;return _l+=1,Gn===null&&(Gn=[]),Tf(Gn,e,t)}function wl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zi(e,t){throw t.$$typeof===D?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _f(e){function t(R,j){if(e){var z=R.deletions;z===null?(R.deletions=[j],R.flags|=16):z.push(j)}}function a(R,j){if(!e)return null;for(;j!==null;)t(R,j),j=j.sibling;return null}function n(R){for(var j=new Map;R!==null;)R.key!==null?j.set(R.key,R):j.set(R.index,R),R=R.sibling;return j}function l(R,j){return R=ua(R,j),R.index=0,R.sibling=null,R}function r(R,j,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<j?(R.flags|=67108866,j):z):(R.flags|=67108866,j)):(R.flags|=1048576,j)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function m(R,j,z,L){return j===null||j.tag!==6?(j=Vo(z,R.mode,L),j.return=R,j):(j=l(j,z),j.return=R,j)}function E(R,j,z,L){var ne=z.type;return ne===w?H(R,j,z.props.children,L,z.key):j!==null&&(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===j.type)?(j=l(j,z.props),wl(j,z),j.return=R,j):(j=Ui(z.type,z.key,z.props,null,R.mode,L),wl(j,z),j.return=R,j)}function _(R,j,z,L){return j===null||j.tag!==4||j.stateNode.containerInfo!==z.containerInfo||j.stateNode.implementation!==z.implementation?(j=Xo(z,R.mode,L),j.return=R,j):(j=l(j,z.children||[]),j.return=R,j)}function H(R,j,z,L,ne){return j===null||j.tag!==7?(j=nn(z,R.mode,L,ne),j.return=R,j):(j=l(j,z),j.return=R,j)}function q(R,j,z){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Vo(""+j,R.mode,z),j.return=R,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return z=Ui(j.type,j.key,j.props,null,R.mode,z),wl(z,j),z.return=R,z;case T:return j=Xo(j,R.mode,z),j.return=R,j;case we:return j=un(j),q(R,j,z)}if(Oe(j)||Z(j))return j=nn(j,R.mode,z,null),j.return=R,j;if(typeof j.then=="function")return q(R,Qi(j),z);if(j.$$typeof===V)return q(R,Gi(R,j),z);Zi(R,j)}return null}function O(R,j,z,L){var ne=j!==null?j.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ne!==null?null:m(R,j,""+z,L);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case U:return z.key===ne?E(R,j,z,L):null;case T:return z.key===ne?_(R,j,z,L):null;case we:return z=un(z),O(R,j,z,L)}if(Oe(z)||Z(z))return ne!==null?null:H(R,j,z,L,null);if(typeof z.then=="function")return O(R,j,Qi(z),L);if(z.$$typeof===V)return O(R,j,Gi(R,z),L);Zi(R,z)}return null}function k(R,j,z,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return R=R.get(z)||null,m(j,R,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case U:return R=R.get(L.key===null?z:L.key)||null,E(j,R,L,ne);case T:return R=R.get(L.key===null?z:L.key)||null,_(j,R,L,ne);case we:return L=un(L),k(R,j,z,L,ne)}if(Oe(L)||Z(L))return R=R.get(z)||null,H(j,R,L,ne,null);if(typeof L.then=="function")return k(R,j,z,Qi(L),ne);if(L.$$typeof===V)return k(R,j,z,Gi(j,L),ne);Zi(j,L)}return null}function W(R,j,z,L){for(var ne=null,Ce=null,te=j,he=j=0,Se=null;te!==null&&he<z.length;he++){te.index>he?(Se=te,te=null):Se=te.sibling;var ze=O(R,te,z[he],L);if(ze===null){te===null&&(te=Se);break}e&&te&&ze.alternate===null&&t(R,te),j=r(ze,j,he),Ce===null?ne=ze:Ce.sibling=ze,Ce=ze,te=Se}if(he===z.length)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;he<z.length;he++)te=q(R,z[he],L),te!==null&&(j=r(te,j,he),Ce===null?ne=te:Ce.sibling=te,Ce=te);return Ae&&ca(R,he),ne}for(te=n(te);he<z.length;he++)Se=k(te,R,he,z[he],L),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?he:Se.key),j=r(Se,j,he),Ce===null?ne=Se:Ce.sibling=Se,Ce=Se);return e&&te.forEach(function(Fa){return t(R,Fa)}),Ae&&ca(R,he),ne}function re(R,j,z,L){if(z==null)throw Error(s(151));for(var ne=null,Ce=null,te=j,he=j=0,Se=null,ze=z.next();te!==null&&!ze.done;he++,ze=z.next()){te.index>he?(Se=te,te=null):Se=te.sibling;var Fa=O(R,te,ze.value,L);if(Fa===null){te===null&&(te=Se);break}e&&te&&Fa.alternate===null&&t(R,te),j=r(Fa,j,he),Ce===null?ne=Fa:Ce.sibling=Fa,Ce=Fa,te=Se}if(ze.done)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;!ze.done;he++,ze=z.next())ze=q(R,ze.value,L),ze!==null&&(j=r(ze,j,he),Ce===null?ne=ze:Ce.sibling=ze,Ce=ze);return Ae&&ca(R,he),ne}for(te=n(te);!ze.done;he++,ze=z.next())ze=k(te,R,he,ze.value,L),ze!==null&&(e&&ze.alternate!==null&&te.delete(ze.key===null?he:ze.key),j=r(ze,j,he),Ce===null?ne=ze:Ce.sibling=ze,Ce=ze);return e&&te.forEach(function(jg){return t(R,jg)}),Ae&&ca(R,he),ne}function He(R,j,z,L){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case U:e:{for(var ne=z.key;j!==null;){if(j.key===ne){if(ne=z.type,ne===w){if(j.tag===7){a(R,j.sibling),L=l(j,z.props.children),L.return=R,R=L;break e}}else if(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===j.type){a(R,j.sibling),L=l(j,z.props),wl(L,z),L.return=R,R=L;break e}a(R,j);break}else t(R,j);j=j.sibling}z.type===w?(L=nn(z.props.children,R.mode,L,z.key),L.return=R,R=L):(L=Ui(z.type,z.key,z.props,null,R.mode,L),wl(L,z),L.return=R,R=L)}return d(R);case T:e:{for(ne=z.key;j!==null;){if(j.key===ne)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){a(R,j.sibling),L=l(j,z.children||[]),L.return=R,R=L;break e}else{a(R,j);break}else t(R,j);j=j.sibling}L=Xo(z,R.mode,L),L.return=R,R=L}return d(R);case we:return z=un(z),He(R,j,z,L)}if(Oe(z))return W(R,j,z,L);if(Z(z)){if(ne=Z(z),typeof ne!="function")throw Error(s(150));return z=ne.call(z),re(R,j,z,L)}if(typeof z.then=="function")return He(R,j,Qi(z),L);if(z.$$typeof===V)return He(R,j,Gi(R,z),L);Zi(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,j!==null&&j.tag===6?(a(R,j.sibling),L=l(j,z),L.return=R,R=L):(a(R,j),L=Vo(z,R.mode,L),L.return=R,R=L),d(R)):a(R,j)}return function(R,j,z,L){try{_l=0;var ne=He(R,j,z,L);return Gn=null,ne}catch(te){if(te===qn||te===Vi)throw te;var Ce=_t(29,te,null,R.mode);return Ce.lanes=L,Ce.return=R,Ce}}}var fn=_f(!0),wf=_f(!1),Ma=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ns(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 Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(_e&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Hi(e),hf(e,null,a),t}return ki(e,n,t,a),Hi(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,bc(e,a)}}function ls(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var is=!1;function Ml(){if(is){var e=Ln;if(e!==null)throw e}}function Dl(e,t,a,n){is=!1;var l=e.updateQueue;Ma=!1;var r=l.firstBaseUpdate,d=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var E=m,_=E.next;E.next=null,d===null?r=_:d.next=_,d=E;var H=e.alternate;H!==null&&(H=H.updateQueue,m=H.lastBaseUpdate,m!==d&&(m===null?H.firstBaseUpdate=_:m.next=_,H.lastBaseUpdate=E))}if(r!==null){var q=l.baseState;d=0,H=_=E=null,m=r;do{var O=m.lane&-536870913,k=O!==m.lane;if(k?(be&O)===O:(n&O)===O){O!==0&&O===Un&&(is=!0),H!==null&&(H=H.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var W=e,re=m;O=t;var He=a;switch(re.tag){case 1:if(W=re.payload,typeof W=="function"){q=W.call(He,q,O);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=re.payload,O=typeof W=="function"?W.call(He,q,O):W,O==null)break e;q=x({},q,O);break e;case 2:Ma=!0}}O=m.callback,O!==null&&(e.flags|=64,k&&(e.flags|=8192),k=l.callbacks,k===null?l.callbacks=[O]:k.push(O))}else k={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},H===null?(_=H=k,E=q):H=H.next=k,d|=O;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;k=m,m=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);H===null&&(E=q),l.baseState=E,l.firstBaseUpdate=_,l.lastBaseUpdate=H,r===null&&(l.shared.lanes=0),La|=d,e.lanes=d,e.memoizedState=q}}function Of(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Mf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Of(a[e],t)}var Yn=S(null),Ki=S(0);function Df(e,t){e=Sa,G(Ki,e),G(Yn,t),Sa=e|t.baseLanes}function rs(){G(Ki,Sa),G(Yn,Yn.current)}function os(){Sa=Ki.current,B(Yn),B(Ki)}var wt=S(null),Vt=null;function Na(e){var t=e.alternate;G(Je,Je.current&1),G(wt,e),Vt===null&&(t===null||Yn.current!==null||t.memoizedState!==null)&&(Vt=e)}function ss(e){G(Je,Je.current),G(wt,e),Vt===null&&(Vt=e)}function Bf(e){e.tag===22?(G(Je,Je.current),G(wt,e),Vt===null&&(Vt=e)):ka()}function ka(){G(Je,Je.current),G(wt,wt.current)}function Ot(e){B(wt),Vt===e&&(Vt=null),B(Je)}var Je=S(0);function Ji(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||pu(a)||mu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 ha=0,fe=null,Ne=null,Pe=null,Fi=!1,Vn=!1,dn=!1,Wi=0,Bl=0,Xn=null,h0=0;function Qe(){throw Error(s(321))}function us(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!zt(e[a],t[a]))return!1;return!0}function cs(e,t,a,n,l,r){return ha=r,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?gd:Rs,dn=!1,r=a(n,l),dn=!1,Vn&&(r=kf(t,a,n,l)),Nf(e),r}function Nf(e){M.H=Hl;var t=Ne!==null&&Ne.next!==null;if(ha=0,Pe=Ne=fe=null,Fi=!1,Bl=0,Xn=null,t)throw Error(s(300));e===null||et||(e=e.dependencies,e!==null&&qi(e)&&(et=!0))}function kf(e,t,a,n){fe=e;var l=0;do{if(Vn&&(Xn=null),Bl=0,Vn=!1,25<=l)throw Error(s(301));if(l+=1,Pe=Ne=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}M.H=vd,r=t(a,n)}while(Vn);return r}function p0(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Nl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(fe.flags|=1024),t}function fs(){var e=Wi!==0;return Wi=0,e}function ds(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function hs(e){if(Fi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fi=!1}ha=0,Pe=Ne=fe=null,Vn=!1,Bl=Wi=0,Xn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?fe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Fe(){if(Ne===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Pe===null?fe.memoizedState:Pe.next;if(t!==null)Pe=t,Ne=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Pe===null?fe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function $i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(e){var t=Bl;return Bl+=1,Xn===null&&(Xn=[]),e=Tf(Xn,e,t),t=fe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?gd:Rs),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nl(e);if(e.$$typeof===V)return ct(e)}throw Error(s(438,String(e)))}function ps(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=fe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=$i(),fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=rt;return t.index++,a}function pa(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=Fe();return ms(t,Ne,e)}function ms(e,t,a){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=a;var l=e.baseQueue,r=n.pending;if(r!==null){if(l!==null){var d=l.next;l.next=r.next,r.next=d}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var m=d=null,E=null,_=t,H=!1;do{var q=_.lane&-536870913;if(q!==_.lane?(be&q)===q:(ha&q)===q){var O=_.revertLane;if(O===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),q===Un&&(H=!0);else if((ha&O)===O){_=_.next,O===Un&&(H=!0);continue}else q={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},E===null?(m=E=q,d=r):E=E.next=q,fe.lanes|=O,La|=O;q=_.action,dn&&a(r,q),r=_.hasEagerState?_.eagerState:a(r,q)}else O={lane:q,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},E===null?(m=E=O,d=r):E=E.next=O,fe.lanes|=q,La|=q;_=_.next}while(_!==null&&_!==t);if(E===null?d=r:E.next=m,!zt(r,e.memoizedState)&&(et=!0,H&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=E,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function ys(e){var t=Fe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,r=t.memoizedState;if(l!==null){a.pending=null;var d=l=l.next;do r=e(r,d.action),d=d.next;while(d!==l);zt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Hf(e,t,a){var n=fe,l=Fe(),r=Ae;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!zt((Ne||l).memoizedState,a);if(d&&(l.memoizedState=a,et=!0),l=l.queue,xs(qf.bind(null,n,l,e),[e]),l.getSnapshot!==t||d||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},Lf.bind(null,n,l,a,t),null),Le===null)throw Error(s(349));r||(ha&127)!==0||Uf(n,t,a)}return a}function Uf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=$i(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Lf(e,t,a,n){t.value=a,t.getSnapshot=n,Gf(t)&&Yf(e)}function qf(e,t,a){return a(function(){Gf(t)&&Yf(e)})}function Gf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zt(e,a)}catch{return!0}}function Yf(e){var t=an(e,2);t!==null&&Et(t,e,2)}function gs(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),dn){Ra(!0);try{a()}finally{Ra(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function Vf(e,t,a,n){return e.baseState=a,ms(e,Ne,typeof n=="function"?n:pa)}function m0(e,t,a,n,l){if(ar(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};M.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Xf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Xf(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=M.T,d={};M.T=d;try{var m=a(l,n),E=M.S;E!==null&&E(d,m),Qf(e,t,m)}catch(_){vs(e,t,_)}finally{r!==null&&d.types!==null&&(r.types=d.types),M.T=r}}else try{r=a(l,n),Qf(e,t,r)}catch(_){vs(e,t,_)}}function Qf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Zf(e,t,n)},function(n){return vs(e,t,n)}):Zf(e,t,a)}function Zf(e,t,a){t.status="fulfilled",t.value=a,Kf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Xf(e,a)))}function vs(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Kf(t),t=t.next;while(t!==n)}e.action=null}function Kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jf(e,t){return t}function Ff(e,t){if(Ae){var a=Le.formState;if(a!==null){e:{var n=fe;if(Ae){if(Ge){t:{for(var l=Ge,r=Yt;l.nodeType!==8;){if(!r){l=null;break t}if(l=Xt(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){Ge=Xt(l.nextSibling),n=l.data==="F!";break e}}wa(n)}n=!1}n&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jf,lastRenderedState:t},a.queue=n,a=pd.bind(null,fe,n),n.dispatch=a,n=gs(!1),r=As.bind(null,fe,!1,n.queue),n=mt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=m0.bind(null,fe,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function Wf(e){var t=Fe();return $f(t,Ne,e)}function $f(e,t,a){if(t=ms(e,t,Jf)[0],e=Pi(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nl(t)}catch(d){throw d===qn?Vi:d}else n=t;t=Fe();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,Qn(9,{destroy:void 0},y0.bind(null,l,a),null)),[n,r,e]}function y0(e,t){e.action=t}function If(e){var t=Fe(),a=Ne;if(a!==null)return $f(t,a,e);Fe(),t=t.memoizedState,a=Fe();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Qn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=fe.updateQueue,t===null&&(t=$i(),fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Pf(){return Fe().memoizedState}function er(e,t,a,n){var l=mt();fe.flags|=e,l.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function tr(e,t,a,n){var l=Fe();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&us(n,Ne.memoizedState.deps)?l.memoizedState=Qn(t,r,a,n):(fe.flags|=e,l.memoizedState=Qn(1|t,r,a,n))}function ed(e,t){er(8390656,8,e,t)}function xs(e,t){tr(2048,8,e,t)}function g0(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=$i(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function td(e){var t=Fe().memoizedState;return g0({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function ad(e,t){return tr(4,2,e,t)}function nd(e,t){return tr(4,4,e,t)}function ld(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function id(e,t,a){a=a!=null?a.concat([e]):null,tr(4,4,ld.bind(null,t,e),a)}function bs(){}function rd(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&us(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function od(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&us(t,n[1]))return n[0];if(n=e(),dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n}function Ss(e,t,a){return a===void 0||(ha&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=sh(),fe.lanes|=e,La|=e,a)}function sd(e,t,a,n){return zt(a,t)?a:Yn.current!==null?(e=Ss(e,a,n),zt(e,t)||(et=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(be&261930)===0?(et=!0,e.memoizedState=a):(e=sh(),fe.lanes|=e,La|=e,t)}function ud(e,t,a,n,l){var r=Q.p;Q.p=r!==0&&8>r?r:8;var d=M.T,m={};M.T=m,As(e,!1,t,a);try{var E=l(),_=M.S;if(_!==null&&_(m,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var H=d0(E,n);kl(e,t,H,Bt(e))}else kl(e,t,n,Bt(e))}catch(q){kl(e,t,{then:function(){},status:"rejected",reason:q},Bt())}finally{Q.p=r,d!==null&&m.types!==null&&(d.types=m.types),M.T=d}}function v0(){}function Es(e,t,a,n){if(e.tag!==5)throw Error(s(476));var l=cd(e).queue;ud(e,l,t,ae,a===null?v0:function(){return fd(e),a(n)})}function cd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fd(e){var t=cd(e);t.next===null&&(t=e.alternate.memoizedState),kl(e,t.next.queue,{},Bt())}function js(){return ct(Pl)}function dd(){return Fe().memoizedState}function hd(){return Fe().memoizedState}function x0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Bt();e=Da(a);var n=Ba(t,e,a);n!==null&&(Et(n,t,a),Ol(n,t,a)),t={cache:Io()},e.payload=t;return}t=t.return}}function b0(e,t,a){var n=Bt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ar(e)?md(t,a):(a=Go(e,t,a,n),a!==null&&(Et(a,e,n),yd(a,t,n)))}function pd(e,t,a){var n=Bt();kl(e,t,a,n)}function kl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ar(e))md(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,m=r(d,a);if(l.hasEagerState=!0,l.eagerState=m,zt(m,d))return ki(e,t,l,0),Le===null&&Ni(),!1}catch{}if(a=Go(e,t,l,n),a!==null)return Et(a,e,n),yd(a,t,n),!0}return!1}function As(e,t,a,n){if(n={lane:2,revertLane:au(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(t)throw Error(s(479))}else t=Go(e,a,n,2),t!==null&&Et(t,e,2)}function ar(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function md(e,t){Vn=Fi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function yd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,bc(e,a)}}var Hl={readContext:ct,use:Ii,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Hl.useEffectEvent=Qe;var gd={readContext:ct,use:Ii,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:ed,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,er(4194308,4,ld.bind(null,t,e),a)},useLayoutEffect:function(e,t){return er(4194308,4,e,t)},useInsertionEffect:function(e,t){er(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();if(dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var l=a(t);if(dn){Ra(!0);try{a(t)}finally{Ra(!1)}}}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=b0.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=gs(e);var t=e.queue,a=pd.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:bs,useDeferredValue:function(e,t){var a=mt();return Ss(a,e,t)},useTransition:function(){var e=gs(!1);return e=ud.bind(null,fe,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=fe,l=mt();if(Ae){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Le===null)throw Error(s(349));(be&127)!==0||Uf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,ed(qf.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},Lf.bind(null,n,r,a,t),null),a},useId:function(){var e=mt(),t=Le.identifierPrefix;if(Ae){var a=ea,n=Pt;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=h0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:js,useFormState:Ff,useActionState:Ff,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=As.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:ps,useCacheRefresh:function(){return mt().memoizedState=x0.bind(null,fe)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((_e&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Rs={readContext:ct,use:Ii,useCallback:rd,useContext:ct,useEffect:xs,useImperativeHandle:id,useInsertionEffect:ad,useLayoutEffect:nd,useMemo:od,useReducer:Pi,useRef:Pf,useState:function(){return Pi(pa)},useDebugValue:bs,useDeferredValue:function(e,t){var a=Fe();return sd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Pi(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Hf,useId:dd,useHostTransitionStatus:js,useFormState:Wf,useActionState:Wf,useOptimistic:function(e,t){var a=Fe();return Vf(a,Ne,e,t)},useMemoCache:ps,useCacheRefresh:hd};Rs.useEffectEvent=td;var vd={readContext:ct,use:Ii,useCallback:rd,useContext:ct,useEffect:xs,useImperativeHandle:id,useInsertionEffect:ad,useLayoutEffect:nd,useMemo:od,useReducer:ys,useRef:Pf,useState:function(){return ys(pa)},useDebugValue:bs,useDeferredValue:function(e,t){var a=Fe();return Ne===null?Ss(a,e,t):sd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=ys(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Hf,useId:dd,useHostTransitionStatus:js,useFormState:If,useActionState:If,useOptimistic:function(e,t){var a=Fe();return Ne!==null?Vf(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ps,useCacheRefresh:hd};vd.useEffectEvent=td;function Ts(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Bt(),l=Da(n);l.payload=t,a!=null&&(l.callback=a),t=Ba(e,l,n),t!==null&&(Et(t,e,n),Ol(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Bt(),l=Da(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Ba(e,l,n),t!==null&&(Et(t,e,n),Ol(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Bt(),n=Da(a);n.tag=2,t!=null&&(n.callback=t),t=Ba(e,n,a),t!==null&&(Et(t,e,a),Ol(t,e,a))}};function xd(e,t,a,n,l,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!jl(a,n)||!jl(l,r):!0}function bd(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function hn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Sd(e){Bi(e)}function Ed(e){console.error(e)}function jd(e){Bi(e)}function nr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ad(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function zs(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){nr(e,t)},a}function Rd(e){return e=Da(e),e.tag=3,e}function Td(e,t,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var r=n.value;e.payload=function(){return l(r)},e.callback=function(){Ad(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Ad(t,a,n),typeof l!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function S0(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Hn(t,a,l,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?mr():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Xi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Ps(e,n,l)),!1;case 22:return a.flags|=65536,n===Xi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Ps(e,n,l)),!1}throw Error(s(435,a.tag))}return Ps(e,n,l),mr(),!1}if(Ae)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Ko&&(e=Error(s(422),{cause:n}),Tl(Lt(e,a)))):(n!==Ko&&(t=Error(s(423),{cause:n}),Tl(Lt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Lt(n,a),l=zs(e.stateNode,n,l),ls(e,l),Ze!==4&&(Ze=2)),!1;var r=Error(s(520),{cause:n});if(r=Lt(r,a),Ql===null?Ql=[r]:Ql.push(r),Ze!==4&&(Ze=2),t===null)return!0;n=Lt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=zs(a.stateNode,n,e),ls(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(qa===null||!qa.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Rd(l),Td(l,e,a,n),ls(a,l),!1}a=a.return}while(a!==null);return!1}var _s=Error(s(461)),et=!1;function ft(e,t,a,n){t.child=e===null?wf(t,null,a,n):fn(t,e.child,a,n)}function Cd(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return on(t),n=cs(e,t,a,d,r,l),m=fs(),e!==null&&!et?(ds(e,t,l),ma(e,t,l)):(Ae&&m&&Qo(t),t.flags|=1,ft(e,t,n,l),t.child)}function zd(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Yo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,_d(e,t,r,n,l)):(e=Ui(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Hs(e,l)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:jl,a(d,n)&&e.ref===t.ref)return ma(e,t,l)}return t.flags|=1,e=ua(r,n),e.ref=t.ref,e.return=t,t.child=e}function _d(e,t,a,n,l){if(e!==null){var r=e.memoizedProps;if(jl(r,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=r,Hs(e,l))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,ma(e,t,l)}return ws(e,t,a,n,l)}function wd(e,t,a,n){var l=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~r}else n=0,t.child=null;return Od(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(t,r!==null?r.cachePool:null),r!==null?Df(t,r):rs(),Bf(t);else return n=t.lanes=536870912,Od(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Yi(t,r.cachePool),Df(t,r),ka(),t.memoizedState=null):(e!==null&&Yi(t,null),rs(),ka());return ft(e,t,l,a),t.child}function Ul(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Od(e,t,a,n,l){var r=es();return r=r===null?null:{parent:Ie._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yi(t,null),rs(),Bf(t),e!==null&&Hn(e,t,n,!0),t.childLanes=l,null}function lr(e,t){return t=rr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Md(e,t,a){return fn(t,e.child,null,a),e=lr(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function E0(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(n.mode==="hidden")return e=lr(t,n),t.lanes=536870912,Ul(null,e);if(ss(t),(e=Ge)?(e=Xh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=mf(e),a.return=t,t.child=a,ut=t,Ge=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return lr(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(ss(t),l)if(t.flags&256)t.flags&=-257,t=Md(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(et||Hn(e,t,a,!1),l=(a&e.childLanes)!==0,et||l){if(n=Le,n!==null&&(d=Sc(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,an(e,d),Et(n,e,d),_s;mr(),t=Md(e,t,a)}else e=r.treeContext,Ge=Xt(d.nextSibling),ut=t,Ae=!0,_a=null,Yt=!1,e!==null&&vf(t,e),t=lr(t,n),t.flags|=4096;return t}return e=ua(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ir(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ws(e,t,a,n,l){return on(t),a=cs(e,t,a,n,void 0,l),n=fs(),e!==null&&!et?(ds(e,t,l),ma(e,t,l)):(Ae&&n&&Qo(t),t.flags|=1,ft(e,t,a,l),t.child)}function Dd(e,t,a,n,l,r){return on(t),t.updateQueue=null,a=kf(t,n,a,l),Nf(e),n=fs(),e!==null&&!et?(ds(e,t,r),ma(e,t,r)):(Ae&&n&&Qo(t),t.flags|=1,ft(e,t,a,r),t.child)}function Bd(e,t,a,n,l){if(on(t),t.stateNode===null){var r=Dn,d=a.contextType;typeof d=="object"&&d!==null&&(r=ct(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Cs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},as(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ct(d):Dn,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Ts(t,a,d,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&Cs.enqueueReplaceState(r,r.state,null),Dl(t,n,r,l),Ml(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,E=hn(a,m);r.props=E;var _=r.context,H=a.contextType;d=Dn,typeof H=="object"&&H!==null&&(d=ct(H));var q=a.getDerivedStateFromProps;H=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,H||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||_!==d)&&bd(t,r,n,d),Ma=!1;var O=t.memoizedState;r.state=O,Dl(t,n,r,l),Ml(),_=t.memoizedState,m||O!==_||Ma?(typeof q=="function"&&(Ts(t,a,q,n),_=t.memoizedState),(E=Ma||xd(t,a,E,n,O,_,d))?(H||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=_),r.props=n,r.state=_,r.context=d,n=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,ns(e,t),d=t.memoizedProps,H=hn(a,d),r.props=H,q=t.pendingProps,O=r.context,_=a.contextType,E=Dn,typeof _=="object"&&_!==null&&(E=ct(_)),m=a.getDerivedStateFromProps,(_=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||O!==E)&&bd(t,r,n,E),Ma=!1,O=t.memoizedState,r.state=O,Dl(t,n,r,l),Ml();var k=t.memoizedState;d!==q||O!==k||Ma||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof m=="function"&&(Ts(t,a,m,n),k=t.memoizedState),(H=Ma||xd(t,a,H,n,O,k,E)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(_||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,k,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,k,E)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=k),r.props=n,r.state=k,r.context=E,n=H):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,ir(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=fn(t,e.child,null,l),t.child=fn(t,null,a,l)):ft(e,t,a,l),t.memoizedState=r.state,e=t.child):e=ma(e,t,l),e}function Nd(e,t,a,n){return ln(),t.flags|=256,ft(e,t,a,n),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ms(e){return{baseLanes:e,cachePool:Af()}}function Ds(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Dt),e}function kd(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),d&&(l=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(l?Na(t):ka(),(e=Ge)?(e=Xh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=mf(e),a.return=t,t.child=a,ut=t,Ge=null)):e=null,e===null)throw wa(t);return mu(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(ka(),l=t.mode,m=rr({mode:"hidden",children:m},l),n=nn(n,l,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Ms(a),n.childLanes=Ds(e,d,a),t.memoizedState=Os,Ul(null,n)):(Na(t),Bs(t,m))}var E=e.memoizedState;if(E!==null&&(m=E.dehydrated,m!==null)){if(r)t.flags&256?(Na(t),t.flags&=-257,t=Ns(e,t,a)):t.memoizedState!==null?(ka(),t.child=e.child,t.flags|=128,t=null):(ka(),m=n.fallback,l=t.mode,n=rr({mode:"visible",children:n.children},l),m=nn(m,l,a,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,fn(t,e.child,null,a),n=t.child,n.memoizedState=Ms(a),n.childLanes=Ds(e,d,a),t.memoizedState=Os,t=Ul(null,n));else if(Na(t),mu(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var _=d.dgst;d=_,n=Error(s(419)),n.stack="",n.digest=d,Tl({value:n,source:null,stack:null}),t=Ns(e,t,a)}else if(et||Hn(e,t,a,!1),d=(a&e.childLanes)!==0,et||d){if(d=Le,d!==null&&(n=Sc(d,a),n!==0&&n!==E.retryLane))throw E.retryLane=n,an(e,n),Et(d,e,n),_s;pu(m)||mr(),t=Ns(e,t,a)}else pu(m)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ge=Xt(m.nextSibling),ut=t,Ae=!0,_a=null,Yt=!1,e!==null&&vf(t,e),t=Bs(t,n.children),t.flags|=4096);return t}return l?(ka(),m=n.fallback,l=t.mode,E=e.child,_=E.sibling,n=ua(E,{mode:"hidden",children:n.children}),n.subtreeFlags=E.subtreeFlags&65011712,_!==null?m=ua(_,m):(m=nn(m,l,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Ul(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ms(a):(l=m.cachePool,l!==null?(E=Ie._currentValue,l=l.parent!==E?{parent:E,pool:E}:l):l=Af(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=Ds(e,d,a),t.memoizedState=Os,Ul(e.child,n)):(Na(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Bs(e,t){return t=rr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rr(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Ns(e,t,a){return fn(t,e.child,null,a),e=Bs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Wo(e.return,t,a)}function ks(e,t,a,n,l,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=l,d.treeForkCount=r)}function Ud(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var d=Je.current,m=(d&2)!==0;if(m?(d=d&1|2,t.flags|=128):d&=1,G(Je,d),ft(e,t,n,a),n=Ae?Rl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hd(e,a,t);else if(e.tag===19)Hd(e,a,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(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Ji(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),ks(t,!1,l,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ji(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}ks(t,!0,a,null,r,n);break;case"together":ks(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Hn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Hs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qi(e)))}function j0(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),Oa(t,Ie,e.memoizedState.cache),ln();break;case 27:case 5:cl(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:Oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ss(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?kd(e,t,a):(Na(t),e=ma(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Hn(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Ud(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),G(Je,Je.current),n)break;return null;case 22:return t.lanes=0,wd(e,t,a,t.pendingProps);case 24:Oa(t,Ie,e.memoizedState.cache)}return ma(e,t,a)}function Ld(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Hs(e,a)&&(t.flags&128)===0)return et=!1,j0(e,t,a);et=(e.flags&131072)!==0}else et=!1,Ae&&(t.flags&1048576)!==0&&gf(t,Rl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=un(t.elementType),t.type=e,typeof e=="function")Yo(e)?(n=hn(e,n),t.tag=1,t=Bd(null,t,e,n,a)):(t.tag=0,t=ws(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===ie){t.tag=11,t=Cd(null,t,e,n,a);break e}else if(l===J){t.tag=14,t=zd(null,t,e,n,a);break e}}throw t=xe(e)||e,Error(s(306,t,""))}}return t;case 0:return ws(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=hn(n,t.pendingProps),Bd(e,t,n,l,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,ns(e,t),Dl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Oa(t,Ie,n),n!==r.cache&&$o(t,[Ie],a,!0),Ml(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Nd(e,t,n,a);break e}else if(n!==l){l=Lt(Error(s(424)),t),Tl(l),t=Nd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=Xt(e.firstChild),ut=t,Ae=!0,_a=null,Yt=!0,a=wf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===l){t=ma(e,t,a);break e}ft(e,t,n,a)}t=t.child}return t;case 26:return ir(e,t),e===null?(a=Wh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,n=Er(se.current).createElement(a),n[st]=t,n[yt]=e,dt(n,a,e),lt(n),t.stateNode=n):t.memoizedState=Wh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return cl(t),e===null&&Ae&&(n=t.stateNode=Kh(t.type,t.pendingProps,se.current),ut=t,Yt=!0,l=Ge,Xa(t.type)?(yu=l,Ge=Xt(n.firstChild)):Ge=l),ft(e,t,t.pendingProps.children,a),ir(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((l=n=Ge)&&(n=P0(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ut=t,Ge=Xt(n.firstChild),Yt=!1,l=!0):l=!1),l||wa(t)),cl(t),l=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,fu(l,r)?n=null:d!==null&&fu(l,d)&&(t.flags|=32),t.memoizedState!==null&&(l=cs(e,t,p0,null,null,a),Pl._currentValue=l),ir(e,t),ft(e,t,n,a),t.child;case 6:return e===null&&Ae&&((e=a=Ge)&&(a=eg(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ut=t,Ge=null,e=!0):e=!1),e||wa(t)),null;case 13:return kd(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fn(t,null,n,a):ft(e,t,n,a),t.child;case 11:return Cd(e,t,t.type,t.pendingProps,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Oa(t,t.type,n.value),ft(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,on(t),l=ct(l),n=n(l),t.flags|=1,ft(e,t,n,a),t.child;case 14:return zd(e,t,t.type,t.pendingProps,a);case 15:return _d(e,t,t.type,t.pendingProps,a);case 19:return Ud(e,t,a);case 31:return E0(e,t,a);case 22:return wd(e,t,a,t.pendingProps);case 24:return on(t),n=ct(Ie),e===null?(l=es(),l===null&&(l=Le,r=Io(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},as(t),Oa(t,Ie,l)):((e.lanes&a)!==0&&(ns(e,t),Dl(t,null,null,a),Ml()),l=e.memoizedState,r=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Oa(t,Ie,n)):(n=r.cache,Oa(t,Ie,n),n!==l.cache&&$o(t,[Ie],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ya(e){e.flags|=4}function Us(e,t,a,n,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(dh())e.flags|=8192;else throw cn=Xi,ts}else e.flags&=-16777217}function qd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tp(t))if(dh())e.flags|=8192;else throw cn=Xi,ts}function or(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?vc():536870912,e.lanes|=t,Fn|=t)}function Ll(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function A0(e,t,a){var n=t.pendingProps;switch(Zo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),da(Ie),Ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(kn(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ye(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ya(t),r!==null?(Ye(t),qd(t,r)):(Ye(t),Us(t,l,null,n,a))):r?r!==e.memoizedState?(ya(t),Ye(t),qd(t,r)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ya(t),Ye(t),Us(t,l,e,n,a)),null;case 27:if(vi(t),a=se.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=Y.current,kn(t)?xf(t):(e=Kh(l,n,a),t.stateNode=e,ya(t))}return Ye(t),null;case 5:if(vi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(r=Y.current,kn(t))xf(t);else{var d=Er(se.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(l,{is:n.is}):d.createElement(l)}}r[st]=t,r[yt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(dt(r,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ya(t)}}return Ye(t),Us(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=se.current,kn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ut,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[st]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||kh(e.nodeValue,a)),e||wa(t,!0)}else e=Er(e).createTextNode(n),e[st]=t,t.stateNode=e}return Ye(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=kn(t),a!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else a=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=kn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(s(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));l[st]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),l=!1}else l=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==l&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),or(t,t.updateQueue),Ye(t),null);case 4:return Ke(),e===null&&ru(t.stateNode.containerInfo),Ye(t),null;case 10:return da(t.type),Ye(t),null;case 19:if(B(Je),n=t.memoizedState,n===null)return Ye(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)Ll(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ji(e),r!==null){for(t.flags|=128,Ll(n,!1),e=r.updateQueue,t.updateQueue=e,or(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)pf(a,e),a=a.sibling;return G(Je,Je.current&1|2),Ae&&ca(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Rt()>dr&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304)}else{if(!l)if(e=Ji(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,or(t,e),Ll(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Ae)return Ye(t),null}else 2*Rt()-n.renderingStartTime>dr&&a!==536870912&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Rt(),e.sibling=null,a=Je.current,G(Je,l?a&1|2:a&1),Ae&&ca(t,n.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ot(t),os(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),a=t.updateQueue,a!==null&&or(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(Ie),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function R0(e,t){switch(Zo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(Ie),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vi(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Je),null;case 4:return Ke(),null;case 10:return da(t.type),null;case 22:case 23:return Ot(t),os(),e!==null&&B(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(Ie),null;case 25:return null;default:return null}}function Gd(e,t){switch(Zo(t),t.tag){case 3:da(Ie),Ke();break;case 26:case 27:case 5:vi(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:B(Je);break;case 10:da(t.type);break;case 22:case 23:Ot(t),os(),e!==null&&B(sn);break;case 24:da(Ie)}}function ql(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==l)}}catch(m){De(t,t.return,m)}}function Ha(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){var d=n.inst,m=d.destroy;if(m!==void 0){d.destroy=void 0,l=t;var E=a,_=m;try{_()}catch(H){De(l,E,H)}}}n=n.next}while(n!==r)}}catch(H){De(t,t.return,H)}}function Yd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Mf(t,a)}catch(n){De(e,e.return,n)}}}function Vd(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){De(e,t,n)}}function Gl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){De(e,t,l)}}function ta(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){De(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){De(e,t,l)}else a.current=null}function Xd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){De(e,e.return,l)}}function Ls(e,t,a){try{var n=e.stateNode;K0(n,e.type,a,t),n[yt]=t}catch(l){De(e,e.return,l)}}function Qd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qd(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&&Xa(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 Gs(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=oa));else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Gs(e,t,a),e=e.sibling;e!==null;)Gs(e,t,a),e=e.sibling}function sr(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(sr(e,t,a),e=e.sibling;e!==null;)sr(e,t,a),e=e.sibling}function Zd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,n,a),t[st]=e,t[yt]=a}catch(r){De(e,e.return,r)}}var ga=!1,tt=!1,Ys=!1,Kd=typeof WeakSet=="function"?WeakSet:Set,it=null;function T0(e,t){if(e=e.containerInfo,uu=_r,e=lf(e),No(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,m=-1,E=-1,_=0,H=0,q=e,O=null;t:for(;;){for(var k;q!==a||l!==0&&q.nodeType!==3||(m=d+l),q!==r||n!==0&&q.nodeType!==3||(E=d+n),q.nodeType===3&&(d+=q.nodeValue.length),(k=q.firstChild)!==null;)O=q,q=k;for(;;){if(q===e)break t;if(O===a&&++_===l&&(m=d),O===r&&++H===n&&(E=d),(k=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=k}a=m===-1||E===-1?null:{start:m,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(cu={focusedElem:e,selectionRange:a},_r=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,l=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var W=hn(a.type,l);e=n.getSnapshotBeforeUpdate(W,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(re){De(a,a.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)hu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function Jd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),n&4&&ql(5,a);break;case 1:if(xa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){De(a,a.return,d)}else{var l=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){De(a,a.return,d)}}n&64&&Yd(a),n&512&&Gl(a,a.return);break;case 3:if(xa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Mf(e,t)}catch(d){De(a,a.return,d)}}break;case 27:t===null&&n&4&&Zd(a);case 26:case 5:xa(e,a),t===null&&n&4&&Xd(a),n&512&&Gl(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&$d(e,a);break;case 13:xa(e,a),n&4&&Id(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=N0.bind(null,a),tg(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||tt,l=ga;var r=tt;ga=n,(tt=t)&&!r?ba(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ga=l,tt=r}break;case 30:break;default:xa(e,a)}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vo(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 Ve=null,vt=!1;function va(e,t,a){for(a=a.child;a!==null;)Wd(e,t,a),a=a.sibling}function Wd(e,t,a){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:tt||ta(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:tt||ta(a,t);var n=Ve,l=vt;Xa(a.type)&&(Ve=a.stateNode,vt=!1),va(e,t,a),Wl(a.stateNode),Ve=n,vt=l;break;case 5:tt||ta(a,t);case 6:if(n=Ve,l=vt,Ve=null,va(e,t,a),Ve=n,vt=l,Ve!==null)if(vt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode)}catch(r){De(a,t,r)}else try{Ve.removeChild(a.stateNode)}catch(r){De(a,t,r)}break;case 18:Ve!==null&&(vt?(e=Ve,Yh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):Yh(Ve,a.stateNode));break;case 4:n=Ve,l=vt,Ve=a.stateNode.containerInfo,vt=!0,va(e,t,a),Ve=n,vt=l;break;case 0:case 11:case 14:case 15:Ha(2,a,t),tt||Ha(4,a,t),va(e,t,a);break;case 1:tt||(ta(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Vd(a,t,n)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:tt=(n=tt)||a.memoizedState!==null,va(e,t,a),tt=n;break;default:va(e,t,a)}}function $d(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nl(e)}catch(a){De(t,t.return,a)}}}function Id(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nl(e)}catch(a){De(t,t.return,a)}}function C0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kd),t;default:throw Error(s(435,e.tag))}}function ur(e,t){var a=C0(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=k0.bind(null,e,n);n.then(l,l)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 27:if(Xa(m.type)){Ve=m.stateNode,vt=!1;break e}break;case 5:Ve=m.stateNode,vt=!1;break e;case 3:case 4:Ve=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(Ve===null)throw Error(s(160));Wd(r,d,l),Ve=null,vt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pd(t,e),t=t.sibling}var Jt=null;function Pd(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),bt(e),n&4&&(Ha(3,e,e.return),ql(3,e),Ha(5,e,e.return));break;case 1:xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),n&64&&ga&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=Jt;if(xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":r=l.getElementsByTagName("title")[0],(!r||r[pl]||r[st]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(n),l.head.insertBefore(r,l.querySelector("head > title"))),dt(r,n,a),r[st]=e,lt(r),n=r;break e;case"link":var d=Ph("link","href",l).get(n+(a.href||""));if(d){for(var m=0;m<d.length;m++)if(r=d[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(m,1);break t}}r=l.createElement(n),dt(r,n,a),l.head.appendChild(r);break;case"meta":if(d=Ph("meta","content",l).get(n+(a.content||""))){for(m=0;m<d.length;m++)if(r=d[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(m,1);break t}}r=l.createElement(n),dt(r,n,a),l.head.appendChild(r);break;default:throw Error(s(468,n))}r[st]=e,lt(r),n=r}e.stateNode=n}else ep(l,e.type,e.stateNode);else e.stateNode=Ih(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?ep(l,e.type,e.stateNode):Ih(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ls(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),a!==null&&n&4&&Ls(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),e.flags&32){l=e.stateNode;try{Tn(l,"")}catch(W){De(e,e.return,W)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,Ls(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Ys=!0);break;case 6:if(xt(t,e),bt(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(W){De(e,e.return,W)}}break;case 3:if(Rr=null,l=Jt,Jt=jr(t.containerInfo),xt(t,e),Jt=l,bt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(W){De(e,e.return,W)}Ys&&(Ys=!1,eh(e));break;case 4:n=Jt,Jt=jr(e.stateNode.containerInfo),xt(t,e),bt(e),Jt=n;break;case 12:xt(t,e),bt(e);break;case 31:xt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 13:xt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(fr=Rt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 22:l=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,_=ga,H=tt;if(ga=_||l,tt=H||E,xt(t,e),tt=H,ga=_,bt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||E||ga||tt||pn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(r=E.stateNode,l)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=E.stateNode;var q=E.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(W){De(E,E.return,W)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=l?"":E.memoizedProps}catch(W){De(E,E.return,W)}}}else if(t.tag===18){if(a===null){E=t;try{var k=E.stateNode;l?Vh(k,!0):Vh(E.stateNode,!1)}catch(W){De(E,E.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ur(e,a))));break;case 19:xt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 30:break;case 21:break;default:xt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Qd(n)){a=n;break}n=n.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var l=a.stateNode,r=qs(e);sr(e,r,l);break;case 5:var d=a.stateNode;a.flags&32&&(Tn(d,""),a.flags&=-33);var m=qs(e);sr(e,m,d);break;case 3:case 4:var E=a.stateNode.containerInfo,_=qs(e);Gs(e,_,E);break;default:throw Error(s(161))}}catch(H){De(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jd(e,t.alternate,t),t=t.sibling}function pn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ha(4,t,t.return),pn(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Vd(t,t.return,a),pn(t);break;case 27:Wl(t.stateNode);case 26:case 5:ta(t,t.return),pn(t);break;case 22:t.memoizedState===null&&pn(t);break;case 30:pn(t);break;default:pn(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:ba(l,r,a),ql(4,r);break;case 1:if(ba(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(_){De(n,n.return,_)}if(n=r,l=n.updateQueue,l!==null){var m=n.stateNode;try{var E=l.shared.hiddenCallbacks;if(E!==null)for(l.shared.hiddenCallbacks=null,l=0;l<E.length;l++)Of(E[l],m)}catch(_){De(n,n.return,_)}}a&&d&64&&Yd(r),Gl(r,r.return);break;case 27:Zd(r);case 26:case 5:ba(l,r,a),a&&n===null&&d&4&&Xd(r),Gl(r,r.return);break;case 12:ba(l,r,a);break;case 31:ba(l,r,a),a&&d&4&&$d(l,r);break;case 13:ba(l,r,a),a&&d&4&&Id(l,r);break;case 22:r.memoizedState===null&&ba(l,r,a),Gl(r,r.return);break;case 30:break;default:ba(l,r,a)}t=t.sibling}}function Vs(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Cl(a))}function Xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e))}function Ft(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)th(e,t,a,n),t=t.sibling}function th(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,a,n),l&2048&&ql(9,t);break;case 1:Ft(e,t,a,n);break;case 3:Ft(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e)));break;case 12:if(l&2048){Ft(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,m=r.onPostCommit;typeof m=="function"&&m(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){De(t,t.return,E)}}else Ft(e,t,a,n);break;case 31:Ft(e,t,a,n);break;case 13:Ft(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Ft(e,t,a,n):Yl(e,t):r._visibility&2?Ft(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Vs(d,t);break;case 24:Ft(e,t,a,n),l&2048&&Xs(t.alternate,t);break;default:Ft(e,t,a,n)}}function Zn(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,m=a,E=n,_=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(r,d,m,E,l),ql(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?Zn(r,d,m,E,l):Yl(r,d):(H._visibility|=2,Zn(r,d,m,E,l)),l&&_&2048&&Vs(d.alternate,d);break;case 24:Zn(r,d,m,E,l),l&&_&2048&&Xs(d.alternate,d);break;default:Zn(r,d,m,E,l)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:Yl(a,n),l&2048&&Vs(n.alternate,n);break;case 24:Yl(a,n),l&2048&&Xs(n.alternate,n);break;default:Yl(a,n)}t=t.sibling}}var Vl=8192;function Kn(e,t,a){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)ah(e,t,a),e=e.sibling}function ah(e,t,a){switch(e.tag){case 26:Kn(e,t,a),e.flags&Vl&&e.memoizedState!==null&&hg(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:Kn(e,t,a);break;case 3:case 4:var n=Jt;Jt=jr(e.stateNode.containerInfo),Kn(e,t,a),Jt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Vl,Vl=16777216,Kn(e,t,a),Vl=n):Kn(e,t,a));break;default:Kn(e,t,a)}}function nh(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 Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,ih(n,e)}nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lh(e),e=e.sibling}function lh(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Ha(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cr(e)):Xl(e);break;default:Xl(e)}}function cr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,ih(n,e)}nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ha(8,t,t.return),cr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cr(t));break;default:cr(t)}e=e.sibling}}function ih(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:Ha(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,it=n;else e:for(a=e;it!==null;){n=it;var l=n.sibling,r=n.return;if(Fd(n),n===a){it=null;break e}if(l!==null){l.return=r,it=l;break e}it=r}}}var z0={getCacheForType:function(e){var t=ct(Ie),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct(Ie).controller.signal}},_0=typeof WeakMap=="function"?WeakMap:Map,_e=0,Le=null,ge=null,be=0,Me=0,Mt=null,Ua=!1,Jn=!1,Qs=!1,Sa=0,Ze=0,La=0,mn=0,Zs=0,Dt=0,Fn=0,Ql=null,St=null,Ks=!1,fr=0,rh=0,dr=1/0,hr=null,qa=null,at=0,Ga=null,Wn=null,Ea=0,Js=0,Fs=null,oh=null,Zl=0,Ws=null;function Bt(){return(_e&2)!==0&&be!==0?be&-be:M.T!==null?au():Ec()}function sh(){if(Dt===0)if((be&536870912)===0||Ae){var e=Si;Si<<=1,(Si&3932160)===0&&(Si=262144),Dt=e}else Dt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Dt}function Et(e,t,a){(e===Le&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ya(e,be,Dt,!1)),hl(e,a),((_e&2)===0||e!==Le)&&(e===Le&&((_e&2)===0&&(mn|=a),Ze===4&&Ya(e,be,Dt,!1)),aa(e))}function uh(e,t,a){if((_e&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dl(e,t),l=n?M0(e,t):Is(e,t,!0),r=n;do{if(l===0){Jn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!w0(a)){l=Is(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var m=e;l=Ql;var E=m.current.memoizedState.isDehydrated;if(E&&($n(m,d).flags|=256),d=Is(m,d,!1),d!==2){if(Qs&&!E){m.errorRecoveryDisabledLanes|=r,mn|=r,l=4;break e}r=St,St=l,r!==null&&(St===null?St=r:St.push.apply(St,r))}l=d}if(r=!1,l!==2)continue}}if(l===1){$n(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,r=l,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,Dt,!Ua);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(l=fr+300-Rt(),10<l)){if(Ya(n,t,Dt,!Ua),ji(n,0,!0)!==0)break e;Ea=t,n.timeoutHandle=qh(ch.bind(null,n,a,St,hr,Ks,t,Dt,mn,Fn,Ua,r,"Throttled",-0,0),l);break e}ch(n,a,St,hr,Ks,t,Dt,mn,Fn,Ua,r,null,-0,0)}}break}while(!0);aa(e)}function ch(e,t,a,n,l,r,d,m,E,_,H,q,O,k){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},ah(t,r,q);var W=(r&62914560)===r?fr-Rt():(r&4194048)===r?rh-Rt():0;if(W=pg(q,W),W!==null){Ea=r,e.cancelPendingCommit=W(vh.bind(null,e,t,r,a,n,l,d,m,E,H,q,null,O,k)),Ya(e,r,d,!_);return}}vh(e,t,r,a,n,l,d,m,E)}function w0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],r=l.getSnapshot;l=l.value;try{if(!zt(r(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ya(e,t,a,n){t&=~Zs,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-Ct(l),d=1<<r;n[r]=-1,l&=~d}a!==0&&xc(e,a,t)}function pr(){return(_e&6)===0?(Kl(0),!1):!0}function $s(){if(ge!==null){if(Me===0)var e=ge.return;else e=ge,fa=rn=null,hs(e),Gn=null,_l=0,e=ge;for(;e!==null;)Gd(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,W0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ea=0,$s(),Le=e,ge=a=ua(e.current,null),be=t,Me=0,Mt=null,Ua=!1,Jn=dl(e,t),Qs=!1,Fn=Dt=Zs=mn=La=Ze=0,St=Ql=null,Ks=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-Ct(n),r=1<<l;t|=e[l],n&=~r}return Sa=t,Ni(),a}function fh(e,t){fe=null,M.H=Hl,t===qn||t===Vi?(t=Cf(),Me=3):t===ts?(t=Cf(),Me=4):Me=t===_s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,ge===null&&(Ze=1,nr(e,Lt(t,e.current)))}function dh(){var e=wt.current;return e===null?!0:(be&4194048)===be?Vt===null:(be&62914560)===be||(be&536870912)!==0?e===Vt:!1}function hh(){var e=M.H;return M.H=Hl,e===null?Hl:e}function ph(){var e=M.A;return M.A=z0,e}function mr(){Ze=4,Ua||(be&4194048)!==be&&wt.current!==null||(Jn=!0),(La&134217727)===0&&(mn&134217727)===0||Le===null||Ya(Le,be,Dt,!1)}function Is(e,t,a){var n=_e;_e|=2;var l=hh(),r=ph();(Le!==e||be!==t)&&(hr=null,$n(e,t)),t=!1;var d=Ze;e:do try{if(Me!==0&&ge!==null){var m=ge,E=Mt;switch(Me){case 8:$s(),d=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var _=Me;if(Me=0,Mt=null,In(e,m,E,_),a&&Jn){d=0;break e}break;default:_=Me,Me=0,Mt=null,In(e,m,E,_)}}O0(),d=Ze;break}catch(H){fh(e,H)}while(!0);return t&&e.shellSuspendCounter++,fa=rn=null,_e=n,M.H=l,M.A=r,ge===null&&(Le=null,be=0,Ni()),d}function O0(){for(;ge!==null;)mh(ge)}function M0(e,t){var a=_e;_e|=2;var n=hh(),l=ph();Le!==e||be!==t?(hr=null,dr=Rt()+500,$n(e,t)):Jn=dl(e,t);e:do try{if(Me!==0&&ge!==null){t=ge;var r=Mt;t:switch(Me){case 1:Me=0,Mt=null,In(e,t,r,1);break;case 2:case 9:if(Rf(r)){Me=0,Mt=null,yh(t);break}t=function(){Me!==2&&Me!==9||Le!==e||(Me=7),aa(e)},r.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Rf(r)?(Me=0,Mt=null,yh(t)):(Me=0,Mt=null,In(e,t,r,7));break;case 5:var d=null;switch(ge.tag){case 26:d=ge.memoizedState;case 5:case 27:var m=ge;if(d?tp(d):m.stateNode.complete){Me=0,Mt=null;var E=m.sibling;if(E!==null)ge=E;else{var _=m.return;_!==null?(ge=_,yr(_)):ge=null}break t}}Me=0,Mt=null,In(e,t,r,5);break;case 6:Me=0,Mt=null,In(e,t,r,6);break;case 8:$s(),Ze=6;break e;default:throw Error(s(462))}}D0();break}catch(H){fh(e,H)}while(!0);return fa=rn=null,M.H=n,M.A=l,_e=a,ge!==null?0:(Le=null,be=0,Ni(),Ze)}function D0(){for(;ge!==null&&!ay();)mh(ge)}function mh(e){var t=Ld(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function yh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Dd(a,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Dd(a,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:hs(t);default:Gd(a,t),t=ge=pf(t,Sa),t=Ld(a,t,Sa)}e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function In(e,t,a,n){fa=rn=null,hs(t),Gn=null,_l=0;var l=t.return;try{if(S0(e,l,t,a,be)){Ze=1,nr(e,Lt(a,e.current)),ge=null;return}}catch(r){if(l!==null)throw ge=l,r;Ze=1,nr(e,Lt(a,e.current)),ge=null;return}t.flags&32768?(Ae||n===1?e=!0:Jn||(be&536870912)!==0?e=!1:(Ua=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),gh(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){gh(t,Ua);return}e=t.return;var a=A0(t.alternate,t,Sa);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function gh(e,t){do{var a=R0(e.alternate,e);if(a!==null){a.flags&=32767,ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=a}while(e!==null);Ze=6,ge=null}function vh(e,t,a,n,l,r,d,m,E){e.cancelPendingCommit=null;do gr();while(at!==0);if((_e&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=qo,dy(e,a,r,d,m,E),e===Le&&(ge=Le=null,be=0),Wn=t,Ga=e,Ea=a,Js=r,Fs=l,oh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,H0(xi,function(){return jh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,l=Q.p,Q.p=2,d=_e,_e|=4;try{T0(e,t,a)}finally{_e=d,Q.p=l,M.T=n}}at=1,xh(),bh(),Sh()}}function xh(){if(at===1){at=0;var e=Ga,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var n=Q.p;Q.p=2;var l=_e;_e|=4;try{Pd(t,e);var r=cu,d=lf(e.containerInfo),m=r.focusedElem,E=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&nf(m.ownerDocument.documentElement,m)){if(E!==null&&No(m)){var _=E.start,H=E.end;if(H===void 0&&(H=_),"selectionStart"in m)m.selectionStart=_,m.selectionEnd=Math.min(H,m.value.length);else{var q=m.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var k=O.getSelection(),W=m.textContent.length,re=Math.min(E.start,W),He=E.end===void 0?re:Math.min(E.end,W);!k.extend&&re>He&&(d=He,He=re,re=d);var R=af(m,re),j=af(m,He);if(R&&j&&(k.rangeCount!==1||k.anchorNode!==R.node||k.anchorOffset!==R.offset||k.focusNode!==j.node||k.focusOffset!==j.offset)){var z=q.createRange();z.setStart(R.node,R.offset),k.removeAllRanges(),re>He?(k.addRange(z),k.extend(j.node,j.offset)):(z.setEnd(j.node,j.offset),k.addRange(z))}}}}for(q=[],k=m;k=k.parentNode;)k.nodeType===1&&q.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<q.length;m++){var L=q[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}_r=!!uu,cu=uu=null}finally{_e=l,Q.p=n,M.T=a}}e.current=t,at=2}}function bh(){if(at===2){at=0;var e=Ga,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var n=Q.p;Q.p=2;var l=_e;_e|=4;try{Jd(e,t.alternate,t)}finally{_e=l,Q.p=n,M.T=a}}at=3}}function Sh(){if(at===4||at===3){at=0,ny();var e=Ga,t=Wn,a=Ea,n=oh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Wn=Ga=null,Eh(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qa=null),yo(a),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(fl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=M.T,l=Q.p,Q.p=2,M.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var m=n[d];r(m.value,{componentStack:m.stack})}}finally{M.T=t,Q.p=l}}(Ea&3)!==0&&gr(),aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Ws?Zl++:(Zl=0,Ws=e):Zl=0,Kl(0)}}function Eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function gr(){return xh(),bh(),Sh(),jh()}function jh(){if(at!==5)return!1;var e=Ga,t=Js;Js=0;var a=yo(Ea),n=M.T,l=Q.p;try{Q.p=32>a?32:a,M.T=null,a=Fs,Fs=null;var r=Ga,d=Ea;if(at=0,Wn=Ga=null,Ea=0,(_e&6)!==0)throw Error(s(331));var m=_e;if(_e|=4,lh(r.current),th(r,r.current,d,a),_e=m,Kl(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(fl,r)}catch{}return!0}finally{Q.p=l,M.T=n,Eh(e,t)}}function Ah(e,t,a){t=Lt(a,t),t=zs(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(hl(e,2),aa(e))}function De(e,t,a){if(e.tag===3)Ah(e,e,a);else for(;t!==null;){if(t.tag===3){Ah(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qa===null||!qa.has(n))){e=Lt(a,e),a=Rd(2),n=Ba(t,a,2),n!==null&&(Td(a,n,t,e),hl(n,2),aa(n));break}}t=t.return}}function Ps(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new _0;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(Qs=!0,l.add(a),e=B0.bind(null,e,t,a),t.then(e,e))}function B0(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(be&a)===a&&(Ze===4||Ze===3&&(be&62914560)===be&&300>Rt()-fr?(_e&2)===0&&$n(e,0):Zs|=a,Fn===be&&(Fn=0)),aa(e)}function Rh(e,t){t===0&&(t=vc()),e=an(e,t),e!==null&&(hl(e,t),aa(e))}function N0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Rh(e,a)}function k0(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),Rh(e,a)}function H0(e,t){return fo(e,t)}var vr=null,Pn=null,eu=!1,xr=!1,tu=!1,Va=0;function aa(e){e!==Pn&&e.next===null&&(Pn===null?vr=Pn=e:Pn=Pn.next=e),xr=!0,eu||(eu=!0,L0())}function Kl(e,t){if(!tu&&xr){tu=!0;do for(var a=!1,n=vr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var d=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-Ct(42|e)+1)-1,r&=l&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,_h(n,r))}else r=be,r=ji(n,n===Le?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||dl(n,r)||(a=!0,_h(n,r));n=n.next}while(a);tu=!1}}function U0(){Th()}function Th(){xr=eu=!1;var e=0;Va!==0&&F0()&&(e=Va);for(var t=Rt(),a=null,n=vr;n!==null;){var l=n.next,r=Ch(n,t);r===0?(n.next=null,a===null?vr=l:a.next=l,l===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(xr=!0)),n=l}at!==0&&at!==5||Kl(e),Va!==0&&(Va=0)}function Ch(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-Ct(r),m=1<<d,E=l[d];E===-1?((m&a)===0||(m&n)!==0)&&(l[d]=fy(m,t)):E<=t&&(e.expiredLanes|=m),r&=~m}if(t=Le,a=be,a=ji(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ho(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&ho(n),yo(a)){case 2:case 8:a=yc;break;case 32:a=xi;break;case 268435456:a=gc;break;default:a=xi}return n=zh.bind(null,e),a=fo(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ho(n),e.callbackPriority=2,e.callbackNode=null,2}function zh(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(gr()&&e.callbackNode!==a)return null;var n=be;return n=ji(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(uh(e,n,t),Ch(e,Rt()),e.callbackNode!=null&&e.callbackNode===a?zh.bind(null,e):null)}function _h(e,t){if(gr())return null;uh(e,t,!0)}function L0(){$0(function(){(_e&6)!==0?fo(mc,U0):Th()})}function au(){if(Va===0){var e=Un;e===0&&(e=bi,bi<<=1,(bi&261888)===0&&(bi=256)),Va=e}return Va}function wh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function Oh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function q0(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=wh((l[yt]||null).action),d=n.submitter;d&&(t=(t=d[yt]||null)?wh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var m=new Oi("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Va!==0){var E=d?Oh(l,d):new FormData(l);Es(a,{pending:!0,data:E,method:l.method,action:r},null,E)}}else typeof r=="function"&&(m.preventDefault(),E=d?Oh(l,d):new FormData(l),Es(a,{pending:!0,data:E,method:l.method,action:r},r,E))},currentTarget:l}]})}}for(var nu=0;nu<Lo.length;nu++){var lu=Lo[nu],G0=lu.toLowerCase(),Y0=lu[0].toUpperCase()+lu.slice(1);Kt(G0,"on"+Y0)}Kt(sf,"onAnimationEnd"),Kt(uf,"onAnimationIteration"),Kt(cf,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(l0,"onTransitionRun"),Kt(i0,"onTransitionStart"),Kt(r0,"onTransitionCancel"),Kt(ff,"onTransitionEnd"),An("onMouseEnter",["mouseout","mouseover"]),An("onMouseLeave",["mouseout","mouseover"]),An("onPointerEnter",["pointerout","pointerover"]),An("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="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(" "),V0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function Mh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var m=n[d],E=m.instance,_=m.currentTarget;if(m=m.listener,E!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=_;try{r(l)}catch(H){Bi(H)}l.currentTarget=null,r=E}else for(d=0;d<n.length;d++){if(m=n[d],E=m.instance,_=m.currentTarget,m=m.listener,E!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=_;try{r(l)}catch(H){Bi(H)}l.currentTarget=null,r=E}}}}function ve(e,t){var a=t[go];a===void 0&&(a=t[go]=new Set);var n=e+"__bubble";a.has(n)||(Dh(t,e,2,!1),a.add(n))}function iu(e,t,a){var n=0;t&&(n|=4),Dh(a,e,n,t)}var br="_reactListening"+Math.random().toString(36).slice(2);function ru(e){if(!e[br]){e[br]=!0,Rc.forEach(function(a){a!=="selectionchange"&&(V0.has(a)||iu(a,!1,e),iu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[br]||(t[br]=!0,iu("selectionchange",!1,t))}}function Dh(e,t,a,n){switch(sp(t)){case 2:var l=gg;break;case 8:l=vg;break;default:l=Su}a=l.bind(null,t,a,e),l=void 0,!To||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function ou(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var m=n.stateNode.containerInfo;if(m===l)break;if(d===4)for(d=n.return;d!==null;){var E=d.tag;if((E===3||E===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;m!==null;){if(d=Sn(m),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){n=r=d;continue e}m=m.parentNode}}n=n.return}Hc(function(){var _=r,H=Ao(a),q=[];e:{var O=df.get(e);if(O!==void 0){var k=Oi,W=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":k=ky;break;case"focusin":W="focus",k=wo;break;case"focusout":W="blur",k=wo;break;case"beforeblur":case"afterblur":k=wo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Ly;break;case sf:case uf:case cf:k=Cy;break;case ff:k=Gy;break;case"scroll":case"scrollend":k=Ey;break;case"wheel":k=Vy;break;case"copy":case"cut":case"paste":k=_y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Yc;break;case"toggle":case"beforetoggle":k=Qy}var re=(t&4)!==0,He=!re&&(e==="scroll"||e==="scrollend"),R=re?O!==null?O+"Capture":null:O;re=[];for(var j=_,z;j!==null;){var L=j;if(z=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||z===null||R===null||(L=yl(j,R),L!=null&&re.push(Fl(j,L,z))),He)break;j=j.return}0<re.length&&(O=new k(O,W,null,a,H),q.push({event:O,listeners:re}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",O&&a!==jo&&(W=a.relatedTarget||a.fromElement)&&(Sn(W)||W[bn]))break e;if((k||O)&&(O=H.window===H?H:(O=H.ownerDocument)?O.defaultView||O.parentWindow:window,k?(W=a.relatedTarget||a.toElement,k=_,W=W?Sn(W):null,W!==null&&(He=h(W),re=W.tag,W!==He||re!==5&&re!==27&&re!==6)&&(W=null)):(k=null,W=_),k!==W)){if(re=qc,L="onMouseLeave",R="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(re=Yc,L="onPointerLeave",R="onPointerEnter",j="pointer"),He=k==null?O:ml(k),z=W==null?O:ml(W),O=new re(L,j+"leave",k,a,H),O.target=He,O.relatedTarget=z,L=null,Sn(H)===_&&(re=new re(R,j+"enter",W,a,H),re.target=z,re.relatedTarget=He,L=re),He=L,k&&W)t:{for(re=X0,R=k,j=W,z=0,L=R;L;L=re(L))z++;L=0;for(var ne=j;ne;ne=re(ne))L++;for(;0<z-L;)R=re(R),z--;for(;0<L-z;)j=re(j),L--;for(;z--;){if(R===j||j!==null&&R===j.alternate){re=R;break t}R=re(R),j=re(j)}re=null}else re=null;k!==null&&Bh(q,O,k,re,!1),W!==null&&He!==null&&Bh(q,He,W,re,!0)}}e:{if(O=_?ml(_):window,k=O.nodeName&&O.nodeName.toLowerCase(),k==="select"||k==="input"&&O.type==="file")var Ce=Wc;else if(Jc(O))if($c)Ce=t0;else{Ce=Py;var te=Iy}else k=O.nodeName,!k||k.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?_&&Eo(_.elementType)&&(Ce=Wc):Ce=e0;if(Ce&&(Ce=Ce(e,_))){Fc(q,Ce,a,H);break e}te&&te(e,O,_),e==="focusout"&&_&&O.type==="number"&&_.memoizedProps.value!=null&&So(O,"number",O.value)}switch(te=_?ml(_):window,e){case"focusin":(Jc(te)||te.contentEditable==="true")&&(wn=te,ko=_,Al=null);break;case"focusout":Al=ko=wn=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,rf(q,a,H);break;case"selectionchange":if(n0)break;case"keydown":case"keyup":rf(q,a,H)}var he;if(Mo)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else _n?Zc(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Vc&&a.locale!=="ko"&&(_n||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&_n&&(he=Uc()):(Ca=H,Co="value"in Ca?Ca.value:Ca.textContent,_n=!0)),te=Sr(_,Se),0<te.length&&(Se=new Gc(Se,e,null,a,H),q.push({event:Se,listeners:te}),he?Se.data=he:(he=Kc(a),he!==null&&(Se.data=he)))),(he=Ky?Jy(e,a):Fy(e,a))&&(Se=Sr(_,"onBeforeInput"),0<Se.length&&(te=new Gc("onBeforeInput","beforeinput",null,a,H),q.push({event:te,listeners:Se}),te.data=he)),q0(q,e,_,a,H)}Mh(q,t)})}function Fl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Sr(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=yl(e,a),l!=null&&n.unshift(Fl(e,l,r)),l=yl(e,t),l!=null&&n.push(Fl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function X0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bh(e,t,a,n,l){for(var r=t._reactName,d=[];a!==null&&a!==n;){var m=a,E=m.alternate,_=m.stateNode;if(m=m.tag,E!==null&&E===n)break;m!==5&&m!==26&&m!==27||_===null||(E=_,l?(_=yl(a,r),_!=null&&d.unshift(Fl(a,_,E))):l||(_=yl(a,r),_!=null&&d.push(Fl(a,_,E)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Q0=/\r\n?/g,Z0=/\u0000|\uFFFD/g;function Nh(e){return(typeof e=="string"?e:""+e).replace(Q0,`
|
|
9
|
-
`).replace(Z0,"")}function kh(e,t){return t=Nh(t),Nh(e)===t}function ke(e,t,a,n,l,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Tn(e,""+n);break;case"className":Ri(e,"class",n);break;case"tabIndex":Ri(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ri(e,a,n);break;case"style":Nc(e,n,r);break;case"data":if(t!=="object"){Ri(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ci(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 r=="function"&&(a==="formAction"?(t!=="input"&&ke(e,t,"name",l.name,l,null),ke(e,t,"formEncType",l.formEncType,l,null),ke(e,t,"formMethod",l.formMethod,l,null),ke(e,t,"formTarget",l.formTarget,l,null)):(ke(e,t,"encType",l.encType,l,null),ke(e,t,"method",l.method,l,null),ke(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ci(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=oa);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Ci(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ve("beforetoggle",e),ve("toggle",e),Ai(e,"popover",n);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ai(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=by.get(a)||a,Ai(e,a,n))}}function su(e,t,a,n,l,r){switch(a){case"style":Nc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&Tn(e,""+n);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"onClick":n!=null&&(e.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),r=e[yt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,l),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ai(e,a,n)}}}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var n=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,r,d,a,null)}}l&&ke(e,t,"srcSet",a.srcSet,a,null),n&&ke(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var m=r=d=l=null,E=null,_=null;for(n in a)if(a.hasOwnProperty(n)){var H=a[n];if(H!=null)switch(n){case"name":l=H;break;case"type":d=H;break;case"checked":E=H;break;case"defaultChecked":_=H;break;case"value":r=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:ke(e,t,n,H,a,null)}}Oc(e,r,m,E,_,d,l,!1);return;case"select":ve("invalid",e),n=d=r=null;for(l in a)if(a.hasOwnProperty(l)&&(m=a[l],m!=null))switch(l){case"value":r=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:ke(e,t,l,m,a,null)}t=r,a=d,e.multiple=!!n,t!=null?Rn(e,!!n,t,!1):a!=null&&Rn(e,!!n,a,!0);return;case"textarea":ve("invalid",e),r=l=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":l=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:ke(e,t,d,m,a,null)}Dc(e,n,l,r);return;case"option":for(E in a)a.hasOwnProperty(E)&&(n=a[E],n!=null)&&(E==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":ke(e,t,E,n,a,null));return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(n=0;n<Jl.length;n++)ve(Jl[n],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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(_ in a)if(a.hasOwnProperty(_)&&(n=a[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,_,n,a,null)}return;default:if(Eo(t)){for(H in a)a.hasOwnProperty(H)&&(n=a[H],n!==void 0&&su(e,t,H,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&ke(e,t,m,n,a,null))}function K0(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,d=null,m=null,E=null,_=null,H=null;for(k in a){var q=a[k];if(a.hasOwnProperty(k)&&q!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=q;default:n.hasOwnProperty(k)||ke(e,t,k,null,n,q)}}for(var O in n){var k=n[O];if(q=a[O],n.hasOwnProperty(O)&&(k!=null||q!=null))switch(O){case"type":r=k;break;case"name":l=k;break;case"checked":_=k;break;case"defaultChecked":H=k;break;case"value":d=k;break;case"defaultValue":m=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==q&&ke(e,t,O,k,n,q)}}bo(e,d,m,E,_,H,r,l);return;case"select":k=d=m=O=null;for(r in a)if(E=a[r],a.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":k=E;default:n.hasOwnProperty(r)||ke(e,t,r,null,n,E)}for(l in n)if(r=n[l],E=a[l],n.hasOwnProperty(l)&&(r!=null||E!=null))switch(l){case"value":O=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==E&&ke(e,t,l,r,n,E)}t=m,a=d,n=k,O!=null?Rn(e,!!a,O,!1):!!n!=!!a&&(t!=null?Rn(e,!!a,t,!0):Rn(e,!!a,a?[]:"",!1));return;case"textarea":k=O=null;for(m in a)if(l=a[m],a.hasOwnProperty(m)&&l!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:ke(e,t,m,null,n,l)}for(d in n)if(l=n[d],r=a[d],n.hasOwnProperty(d)&&(l!=null||r!=null))switch(d){case"value":O=l;break;case"defaultValue":k=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(s(91));break;default:l!==r&&ke(e,t,d,l,n,r)}Mc(e,O,k);return;case"option":for(var W in a)O=a[W],a.hasOwnProperty(W)&&O!=null&&!n.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:ke(e,t,W,null,n,O));for(E in n)O=n[E],k=a[E],n.hasOwnProperty(E)&&O!==k&&(O!=null||k!=null)&&(E==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":ke(e,t,E,O,n,k));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 re in a)O=a[re],a.hasOwnProperty(re)&&O!=null&&!n.hasOwnProperty(re)&&ke(e,t,re,null,n,O);for(_ in n)if(O=n[_],k=a[_],n.hasOwnProperty(_)&&O!==k&&(O!=null||k!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:ke(e,t,_,O,n,k)}return;default:if(Eo(t)){for(var He in a)O=a[He],a.hasOwnProperty(He)&&O!==void 0&&!n.hasOwnProperty(He)&&su(e,t,He,void 0,n,O);for(H in n)O=n[H],k=a[H],!n.hasOwnProperty(H)||O===k||O===void 0&&k===void 0||su(e,t,H,O,n,k);return}}for(var R in a)O=a[R],a.hasOwnProperty(R)&&O!=null&&!n.hasOwnProperty(R)&&ke(e,t,R,null,n,O);for(q in n)O=n[q],k=a[q],!n.hasOwnProperty(q)||O===k||O==null&&k==null||ke(e,t,q,O,n,k)}function Hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function J0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],r=l.transferSize,d=l.initiatorType,m=l.duration;if(r&&m&&Hh(d)){for(d=0,m=l.responseEnd,n+=1;n<a.length;n++){var E=a[n],_=E.startTime;if(_>m)break;var H=E.transferSize,q=E.initiatorType;H&&Hh(q)&&(E=E.responseEnd,d+=H*(E<m?1:(m-_)/(E-_)))}if(--n,t+=8*(r+d)/(l.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 uu=null,cu=null;function Er(e){return e.nodeType===9?e:e.ownerDocument}function Uh(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 Lh(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 fu(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 du=null;function F0(){var e=window.event;return e&&e.type==="popstate"?e===du?!1:(du=e,!0):(du=null,!1)}var qh=typeof setTimeout=="function"?setTimeout:void 0,W0=typeof clearTimeout=="function"?clearTimeout:void 0,Gh=typeof Promise=="function"?Promise:void 0,$0=typeof queueMicrotask=="function"?queueMicrotask:typeof Gh<"u"?function(e){return Gh.resolve(null).then(e).catch(I0)}:qh;function I0(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Yh(e,t){var a=t,n=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(l),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Wl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wl(a);for(var r=a.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[pl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&Wl(e.ownerDocument.body);a=l}while(a);nl(t)}function Vh(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function hu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":hu(a),vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function P0(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function eg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Xt(e.nextSibling),e===null))return null;return e}function Xh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function pu(e){return e.data==="$?"||e.data==="$~"}function mu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Xt(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 yu=null;function Qh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Xt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Kh(e,t,a){switch(t=Er(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Wl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var Qt=new Map,Jh=new Set;function jr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Q.d;Q.d={f:ag,r:ng,D:lg,C:ig,L:rg,m:og,X:ug,S:sg,M:cg};function ag(){var e=ja.f(),t=pr();return e||t}function ng(e){var t=En(e);t!==null&&t.tag===5&&t.type==="form"?fd(t):ja.r(e)}var el=typeof document>"u"?null:document;function Fh(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var l=Ht(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Jh.has(l)||(Jh.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function lg(e){ja.D(e),Fh("dns-prefetch",e,null)}function ig(e,t){ja.C(e,t),Fh("preconnect",e,t)}function rg(e,t,a){ja.L(e,t,a);var n=el;if(n&&e&&t){var l='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ht(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ht(a.imageSizes)+'"]')):l+='[href="'+Ht(e)+'"]';var r=l;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Qt.has(r)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qt.set(r,e),n.querySelector(l)!==null||t==="style"&&n.querySelector($l(r))||t==="script"&&n.querySelector(Il(r))||(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function og(e,t){ja.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ht(n)+'"][href="'+Ht(e)+'"]',r=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Qt.has(r)&&(e=x({rel:"modulepreload",href:e},t),Qt.set(r,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Il(r)))return}n=a.createElement("link"),dt(n,"link",e),lt(n),a.head.appendChild(n)}}}function sg(e,t,a){ja.S(e,t,a);var n=el;if(n&&e){var l=jn(n).hoistableStyles,r=tl(e);t=t||"default";var d=l.get(r);if(!d){var m={loading:0,preload:null};if(d=n.querySelector($l(r)))m.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(r))&&gu(e,a);var E=d=n.createElement("link");lt(E),dt(E,"link",e),E._p=new Promise(function(_,H){E.onload=_,E.onerror=H}),E.addEventListener("load",function(){m.loading|=1}),E.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Ar(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},l.set(r,d)}}}function ug(e,t){ja.X(e,t);var a=el;if(a&&e){var n=jn(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=x({src:e,async:!0},t),(t=Qt.get(l))&&vu(e,t),r=a.createElement("script"),lt(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function cg(e,t){ja.M(e,t);var a=el;if(a&&e){var n=jn(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=x({src:e,async:!0,type:"module"},t),(t=Qt.get(l))&&vu(e,t),r=a.createElement("script"),lt(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function Wh(e,t,a,n){var l=(l=se.current)?jr(l):null;if(!l)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tl(a.href),a=jn(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tl(a.href);var r=jn(l).hoistableStyles,d=r.get(e);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=l.querySelector($l(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Qt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Qt.set(e,a),r||fg(l,e,a,d.state))),t&&n===null)throw Error(s(528,""));return d}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(a),a=jn(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function tl(e){return'href="'+Ht(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function $h(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function fg(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),dt(t,"link",a),lt(t),e.head.appendChild(t))}function al(e){return'[src="'+Ht(e)+'"]'}function Il(e){return"script[async]"+e}function Ih(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ht(a.href)+'"]');if(n)return t.instance=n,lt(n),n;var l=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),lt(n),dt(n,"style",l),Ar(n,a.precedence,e),t.instance=n;case"stylesheet":l=tl(a.href);var r=e.querySelector($l(l));if(r)return t.state.loading|=4,t.instance=r,lt(r),r;n=$h(a),(l=Qt.get(l))&&gu(n,l),r=(e.ownerDocument||e).createElement("link"),lt(r);var d=r;return d._p=new Promise(function(m,E){d.onload=m,d.onerror=E}),dt(r,"link",n),t.state.loading|=4,Ar(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(l=e.querySelector(Il(r)))?(t.instance=l,lt(l),l):(n=a,(l=Qt.get(r))&&(n=x({},a),vu(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),lt(l),dt(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Ar(n,a.precedence,e));return t.instance}function Ar(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,r=l,d=0;d<n.length;d++){var m=n[d];if(m.dataset.precedence===t)r=m;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rr=null;function Ph(e,t,a){if(Rr===null){var n=new Map,l=Rr=new Map;l.set(a,n)}else l=Rr,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var r=a[l];if(!(r[pl]||r[st]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var m=n.get(d);m?m.push(r):n.set(d,[r])}}return n}function ep(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function dg(e,t,a){if(a===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function hg(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=tl(n.href),r=t.querySelector($l(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Tr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,lt(r);return}r=t.ownerDocument||t,n=$h(n),(l=Qt.get(l))&&gu(n,l),r=r.createElement("link"),lt(r);var d=r;d._p=new Promise(function(m,E){d.onload=m,d.onerror=E}),dt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Tr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var xu=0;function pg(e,t){return e.stylesheets&&e.count===0&&zr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&zr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&xu===0&&(xu=62500*J0());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>xu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cr=null;function zr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cr=new Map,t.forEach(mg,e),Cr=null,Tr.call(e))}function mg(e,t){if(!(t.state.loading&4)){var a=Cr.get(e);if(a)var n=a.get(null);else{a=new Map,Cr.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var d=l[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}l=t.instance,d=l.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,l),a.set(d,l),this.count++,n=Tr.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:V,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function yg(e,t,a,n,l,r,d,m,E){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=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function ap(e,t,a,n,l,r,d,m,E,_,H,q){return e=new yg(e,t,a,d,E,_,H,q,m),t=1,r===!0&&(t|=24),r=_t(3,null,null,t),e.current=r,r.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},as(r),e}function np(e){return e?(e=Dn,e):Dn}function lp(e,t,a,n,l,r){l=np(l),n.context===null?n.context=l:n.pendingContext=l,n=Da(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ba(e,n,t),a!==null&&(Et(a,e,t),Ol(a,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bu(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function rp(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&Et(t,e,67108864),bu(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=Bt();t=mo(t);var a=an(e,t);a!==null&&Et(a,e,t),bu(e,t)}}var _r=!0;function gg(e,t,a,n){var l=M.T;M.T=null;var r=Q.p;try{Q.p=2,Su(e,t,a,n)}finally{Q.p=r,M.T=l}}function vg(e,t,a,n){var l=M.T;M.T=null;var r=Q.p;try{Q.p=8,Su(e,t,a,n)}finally{Q.p=r,M.T=l}}function Su(e,t,a,n){if(_r){var l=Eu(n);if(l===null)ou(e,t,n,wr,a),up(e,n);else if(bg(l,e,t,a,n))n.stopPropagation();else if(up(e,n),t&4&&-1<xg.indexOf(e)){for(;l!==null;){var r=En(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=$a(r.pendingLanes);if(d!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var E=1<<31-Ct(d);m.entanglements[1]|=E,d&=~E}aa(r),(_e&6)===0&&(dr=Rt()+500,Kl(0))}}break;case 31:case 13:m=an(r,2),m!==null&&Et(m,r,2),pr(),bu(r,2)}if(r=Eu(n),r===null&&ou(e,t,n,wr,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else ou(e,t,n,null,a)}}function Eu(e){return e=Ao(e),ju(e)}var wr=null;function ju(e){if(wr=null,e=Sn(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wr=e,null}function sp(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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ly()){case mc:return 2;case yc:return 8;case xi:case iy:return 32;case gc:return 268435456;default:return 32}default:return 32}}var Au=!1,Qa=null,Za=null,Ka=null,ei=new Map,ti=new Map,Ja=[],xg="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 up(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,n,l,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[l]},t!==null&&(t=En(t),t!==null&&rp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function bg(e,t,a,n,l){switch(t){case"focusin":return Qa=ai(Qa,e,t,a,n,l),!0;case"dragenter":return Za=ai(Za,e,t,a,n,l),!0;case"mouseover":return Ka=ai(Ka,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return ei.set(r,ai(ei.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ti.set(r,ai(ti.get(r)||null,e,t,a,n,l)),!0}return!1}function cp(e){var t=Sn(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,jc(e.priority,function(){op(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,jc(e.priority,function(){op(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Or(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Eu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);jo=n,a.target.dispatchEvent(n),jo=null}else return t=En(a),t!==null&&rp(t),e.blockedOn=a,!1;t.shift()}return!0}function fp(e,t,a){Or(e)&&a.delete(t)}function Sg(){Au=!1,Qa!==null&&Or(Qa)&&(Qa=null),Za!==null&&Or(Za)&&(Za=null),Ka!==null&&Or(Ka)&&(Ka=null),ei.forEach(fp),ti.forEach(fp)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Au||(Au=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sg)))}var Dr=null;function dp(e){Dr!==e&&(Dr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Dr===e&&(Dr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(ju(n||a)===null)continue;break}var r=En(a);r!==null&&(e.splice(t,3),t-=3,Es(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function nl(e){function t(E){return Mr(E,e)}Qa!==null&&Mr(Qa,e),Za!==null&&Mr(Za,e),Ka!==null&&Mr(Ka,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Ja.length;a++){var n=Ja[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)cp(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],r=a[n+1],d=l[yt]||null;if(typeof r=="function")d||dp(a);else if(d){var m=null;if(r&&r.hasAttribute("formAction")){if(l=r,d=r[yt]||null)m=d.formAction;else if(ju(l)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),dp(a)}}}function hp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return l=d})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Ru(e){this._internalRoot=e}Br.prototype.render=Ru.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=Bt();lp(a,n,e,t,null,null)},Br.prototype.unmount=Ru.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),pr(),t[bn]=null}};function Br(e){this._internalRoot=e}Br.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&cp(e)}};var pp=o.version;if(pp!=="19.2.4")throw Error(s(527,pp,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Eg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{fl=Nr.inject(Eg),Tt=Nr}catch{}}return li.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,n="",l=Sd,r=Ed,d=jd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=ap(e,1,!1,null,null,a,n,null,l,r,d,hp),e[bn]=t.current,ru(e),new Ru(t)},li.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var n=!1,l="",r=Sd,d=Ed,m=jd,E=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),t=ap(e,1,!0,t,a??null,n,l,E,r,d,m,hp),t.context=np(null),a=t.current,n=Bt(),n=mo(n),l=Da(n),l.callback=null,Ba(a,l,n),a=n,t.current.lanes=a,hl(t,a),aa(t),e[bn]=t.current,ru(e),new Br(t)},li.version="19.2.4",li}var Ap;function Mg(){if(Ap)return zu.exports;Ap=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),zu.exports=Og(),zu.exports}var Dg=Mg();const Bg=om(Dg);var Rp="popstate";function Tp(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ng(i={}){function o(s,f){let h=f.state?.masked,{pathname:p,search:g,hash:v}=h||s.location;return Vu("",{pathname:p,search:g,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function u(s,f){return typeof f=="string"?f:si(f)}return Hg(o,u,null,i)}function Xe(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Wt(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function kg(){return Math.random().toString(36).substring(2,10)}function Cp(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Vu(i,o,u=null,s,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?rl(o):o,state:u,key:o&&o.key||s||kg(),unstable_mask:f}}function si({pathname:i="/",search:o="",hash:u=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(i+=u.charAt(0)==="#"?u:"#"+u),i}function rl(i){let o={};if(i){let u=i.indexOf("#");u>=0&&(o.hash=i.substring(u),i=i.substring(0,u));let s=i.indexOf("?");s>=0&&(o.search=i.substring(s),i=i.substring(0,s)),i&&(o.pathname=i)}return o}function Hg(i,o,u,s={}){let{window:f=document.defaultView,v5Compat:h=!1}=s,p=f.history,g="POP",v=null,y=b();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function b(){return(p.state||{idx:null}).idx}function x(){g="POP";let C=b(),X=C==null?null:C-y;y=C,v&&v({action:g,location:w.location,delta:X})}function D(C,X){g="PUSH";let P=Tp(C)?C:Vu(w.location,C,X);y=b()+1;let V=Cp(P,y),ie=w.createHref(P.unstable_mask||P);try{p.pushState(V,"",ie)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;f.location.assign(ie)}h&&v&&v({action:g,location:w.location,delta:1})}function U(C,X){g="REPLACE";let P=Tp(C)?C:Vu(w.location,C,X);y=b();let V=Cp(P,y),ie=w.createHref(P.unstable_mask||P);p.replaceState(V,"",ie),h&&v&&v({action:g,location:w.location,delta:0})}function T(C){return Ug(C)}let w={get action(){return g},get location(){return i(f,p)},listen(C){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Rp,x),v=C,()=>{f.removeEventListener(Rp,x),v=null}},createHref(C){return o(f,C)},createURL:T,encodeLocation(C){let X=T(C);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:D,replace:U,go(C){return p.go(C)}};return w}function Ug(i,o=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(u,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:si(i);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=u+s),new URL(s,u)}function sm(i,o,u="/"){return Lg(i,o,u,!1)}function Lg(i,o,u,s){let f=typeof o=="string"?rl(o):o,h=Aa(f.pathname||"/",u);if(h==null)return null;let p=um(i);qg(p);let g=null;for(let v=0;g==null&&v<p.length;++v){let y=$g(h);g=Fg(p[v],y,s)}return g}function um(i,o=[],u=[],s="",f=!1){let h=(p,g,v=f,y)=>{let b={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:g,route:p};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&v)return;Xe(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let x=la([s,b.relativePath]),D=u.concat(b);p.children&&p.children.length>0&&(Xe(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),um(p.children,o,D,x,v)),!(p.path==null&&!p.index)&&o.push({path:x,score:Kg(x,p.index),routesMeta:D})};return i.forEach((p,g)=>{if(p.path===""||!p.path?.includes("?"))h(p,g);else for(let v of cm(p.path))h(p,g,!0,v)}),o}function cm(i){let o=i.split("/");if(o.length===0)return[];let[u,...s]=o,f=u.endsWith("?"),h=u.replace(/\?$/,"");if(s.length===0)return f?[h,""]:[h];let p=cm(s.join("/")),g=[];return g.push(...p.map(v=>v===""?h:[h,v].join("/"))),f&&g.push(...p),g.map(v=>i.startsWith("/")&&v===""?"/":v)}function qg(i){i.sort((o,u)=>o.score!==u.score?u.score-o.score:Jg(o.routesMeta.map(s=>s.childrenIndex),u.routesMeta.map(s=>s.childrenIndex)))}var Gg=/^:[\w-]+$/,Yg=3,Vg=2,Xg=1,Qg=10,Zg=-2,zp=i=>i==="*";function Kg(i,o){let u=i.split("/"),s=u.length;return u.some(zp)&&(s+=Zg),o&&(s+=Vg),u.filter(f=>!zp(f)).reduce((f,h)=>f+(Gg.test(h)?Yg:h===""?Xg:Qg),s)}function Jg(i,o){return i.length===o.length&&i.slice(0,-1).every((s,f)=>s===o[f])?i[i.length-1]-o[o.length-1]:0}function Fg(i,o,u=!1){let{routesMeta:s}=i,f={},h="/",p=[];for(let g=0;g<s.length;++g){let v=s[g],y=g===s.length-1,b=h==="/"?o:o.slice(h.length)||"/",x=Kr({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},b),D=v.route;if(!x&&y&&u&&!s[s.length-1].route.index&&(x=Kr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!x)return null;Object.assign(f,x.params),p.push({params:f,pathname:la([h,x.pathname]),pathnameBase:t1(la([h,x.pathnameBase])),route:D}),x.pathnameBase!=="/"&&(h=la([h,x.pathnameBase]))}return p}function Kr(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[u,s]=Wg(i.path,i.caseSensitive,i.end),f=o.match(u);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:s.reduce((y,{paramName:b,isOptional:x},D)=>{if(b==="*"){let T=g[D]||"";p=h.slice(0,h.length-T.length).replace(/(.)\/+$/,"$1")}const U=g[D];return x&&!U?y[b]=void 0:y[b]=(U||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:p,pattern:i}}function Wg(i,o=!1,u=!0){Wt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,v,y,b)=>{if(s.push({paramName:g,isOptional:v!=null}),v){let x=b.charAt(y+p.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),s]}function $g(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Wt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function Aa(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let u=o.endsWith("/")?o.length-1:o.length,s=i.charAt(u);return s&&s!=="/"?null:i.slice(u)||"/"}var Ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Pg(i,o="/"){let{pathname:u,search:s="",hash:f=""}=typeof i=="string"?rl(i):i,h;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?h=_p(u.substring(1),"/"):h=_p(u,o)):h=o,{pathname:h,search:a1(s),hash:n1(f)}}function _p(i,o){let u=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?u.length>1&&u.pop():f!=="."&&u.push(f)}),u.length>1?u.join("/"):"/"}function Mu(i,o,u,s){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function e1(i){return i.filter((o,u)=>u===0||o.route.path&&o.route.path.length>0)}function Iu(i){let o=e1(i);return o.map((u,s)=>s===o.length-1?u.pathname:u.pathnameBase)}function Ir(i,o,u,s=!1){let f;typeof i=="string"?f=rl(i):(f={...i},Xe(!f.pathname||!f.pathname.includes("?"),Mu("?","pathname","search",f)),Xe(!f.pathname||!f.pathname.includes("#"),Mu("#","pathname","hash",f)),Xe(!f.search||!f.search.includes("#"),Mu("#","search","hash",f)));let h=i===""||f.pathname==="",p=h?"/":f.pathname,g;if(p==null)g=u;else{let x=o.length-1;if(!s&&p.startsWith("..")){let D=p.split("/");for(;D[0]==="..";)D.shift(),x-=1;f.pathname=D.join("/")}g=x>=0?o[x]:"/"}let v=Pg(f,g),y=p&&p!=="/"&&p.endsWith("/"),b=(h||p===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var la=i=>i.join("/").replace(/\/\/+/g,"/"),t1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),a1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,n1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,l1=class{constructor(i,o,u,s=!1){this.status=i,this.statusText=o||"",this.internal=s,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function i1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function r1(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var fm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dm(i,o){let u=i;if(typeof u!="string"||!Ig.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let s=u,f=!1;if(fm)try{let h=new URL(window.location.href),p=u.startsWith("//")?new URL(h.protocol+u):new URL(u),g=Aa(p.pathname,o);p.origin===h.origin&&g!=null?u=g+p.search+p.hash:f=!0}catch{Wt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hm=["POST","PUT","PATCH","DELETE"];new Set(hm);var o1=["GET",...hm];new Set(o1);var ol=A.createContext(null);ol.displayName="DataRouter";var Pr=A.createContext(null);Pr.displayName="DataRouterState";var s1=A.createContext(!1),pm=A.createContext({isTransitioning:!1});pm.displayName="ViewTransition";var u1=A.createContext(new Map);u1.displayName="Fetchers";var c1=A.createContext(null);c1.displayName="Await";var Nt=A.createContext(null);Nt.displayName="Navigation";var ci=A.createContext(null);ci.displayName="Location";var ia=A.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var Pu=A.createContext(null);Pu.displayName="RouteError";var mm="REACT_ROUTER_ERROR",f1="REDIRECT",d1="ROUTE_ERROR_RESPONSE";function h1(i){if(i.startsWith(`${mm}:${f1}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function p1(i){if(i.startsWith(`${mm}:${d1}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new l1(o.status,o.statusText,o.data)}catch{}}function m1(i,{relative:o}={}){Xe(sl(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:s}=A.useContext(Nt),{hash:f,pathname:h,search:p}=fi(i,{relative:o}),g=h;return u!=="/"&&(g=h==="/"?u:la([u,h])),s.createHref({pathname:g,search:p,hash:f})}function sl(){return A.useContext(ci)!=null}function $t(){return Xe(sl(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(ci).location}var ym="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gm(i){A.useContext(Nt).static||A.useLayoutEffect(i)}function eo(){let{isDataRoute:i}=A.useContext(ia);return i?z1():y1()}function y1(){Xe(sl(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(ol),{basename:o,navigator:u}=A.useContext(Nt),{matches:s}=A.useContext(ia),{pathname:f}=$t(),h=JSON.stringify(Iu(s)),p=A.useRef(!1);return gm(()=>{p.current=!0}),A.useCallback((v,y={})=>{if(Wt(p.current,ym),!p.current)return;if(typeof v=="number"){u.go(v);return}let b=Ir(v,JSON.parse(h),f,y.relative==="path");i==null&&o!=="/"&&(b.pathname=b.pathname==="/"?o:la([o,b.pathname])),(y.replace?u.replace:u.push)(b,y.state,y)},[o,u,h,f,i])}A.createContext(null);function fi(i,{relative:o}={}){let{matches:u}=A.useContext(ia),{pathname:s}=$t(),f=JSON.stringify(Iu(u));return A.useMemo(()=>Ir(i,JSON.parse(f),s,o==="path"),[i,f,s,o])}function g1(i,o){return vm(i,o)}function vm(i,o,u){Xe(sl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=A.useContext(Nt),{matches:f}=A.useContext(ia),h=f[f.length-1],p=h?h.params:{},g=h?h.pathname:"/",v=h?h.pathnameBase:"/",y=h&&h.route;{let C=y&&y.path||"";bm(g,!y||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
-
|
|
11
|
-
Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let b=$t(),x;if(o){let C=typeof o=="string"?rl(o):o;Xe(v==="/"||C.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=b;let D=x.pathname||"/",U=D;if(v!=="/"){let C=v.replace(/^\//,"").split("/");U="/"+D.replace(/^\//,"").split("/").slice(C.length).join("/")}let T=sm(i,{pathname:U});Wt(y||T!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Wt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=E1(T&&T.map(C=>Object.assign({},C,{params:Object.assign({},p,C.params),pathname:la([v,s.encodeLocation?s.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?v:la([v,s.encodeLocation?s.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),f,u);return o&&w?A.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},w):w}function v1(){let i=C1(),o=i1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),u=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:h},"ErrorBoundary")," or"," ",A.createElement("code",{style:h},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),u?A.createElement("pre",{style:f},u):null,p)}var x1=A.createElement(v1,null),xm=class extends A.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const u=p1(i.digest);u&&(i=u)}let o=i!==void 0?A.createElement(ia.Provider,{value:this.props.routeContext},A.createElement(Pu.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?A.createElement(b1,{error:i},o):o}};xm.contextType=s1;var Du=new WeakMap;function b1({children:i,error:o}){let{basename:u}=A.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=h1(o.digest);if(s){let f=Du.get(o);if(f)throw f;let h=dm(s.location,u);if(fm&&!Du.get(o))if(h.isExternal||s.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw Du.set(o,p),p}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function S1({routeContext:i,match:o,children:u}){let s=A.useContext(ol);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(ia.Provider,{value:i},u)}function E1(i,o=[],u){let s=u?.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let f=i,h=s?.errors;if(h!=null){let b=f.findIndex(x=>x.route.id&&h?.[x.route.id]!==void 0);Xe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(u&&s){p=s.renderFallback;for(let b=0;b<f.length;b++){let x=f[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=b),x.route.id){let{loaderData:D,errors:U}=s,T=x.route.loader&&!D.hasOwnProperty(x.route.id)&&(!U||U[x.route.id]===void 0);if(x.route.lazy||T){u.isStatic&&(p=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let v=u?.onError,y=s&&v?(b,x)=>{v(b,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:r1(s.matches),errorInfo:x})}:void 0;return f.reduceRight((b,x,D)=>{let U,T=!1,w=null,C=null;s&&(U=h&&x.route.id?h[x.route.id]:void 0,w=x.route.errorElement||x1,p&&(g<0&&D===0?(bm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,C=null):g===D&&(T=!0,C=x.route.hydrateFallbackElement||null)));let X=o.concat(f.slice(0,D+1)),P=()=>{let V;return U?V=w:T?V=C:x.route.Component?V=A.createElement(x.route.Component,null):x.route.element?V=x.route.element:V=b,A.createElement(S1,{match:x,routeContext:{outlet:b,matches:X,isDataRoute:s!=null},children:V})};return s&&(x.route.ErrorBoundary||x.route.errorElement||D===0)?A.createElement(xm,{location:s.location,revalidation:s.revalidation,component:w,error:U,children:P(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:y}):P()},null)}function ec(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j1(i){let o=A.useContext(ol);return Xe(o,ec(i)),o}function A1(i){let o=A.useContext(Pr);return Xe(o,ec(i)),o}function R1(i){let o=A.useContext(ia);return Xe(o,ec(i)),o}function tc(i){let o=R1(i),u=o.matches[o.matches.length-1];return Xe(u.route.id,`${i} can only be used on routes that contain a unique "id"`),u.route.id}function T1(){return tc("useRouteId")}function C1(){let i=A.useContext(Pu),o=A1("useRouteError"),u=tc("useRouteError");return i!==void 0?i:o.errors?.[u]}function z1(){let{router:i}=j1("useNavigate"),o=tc("useNavigate"),u=A.useRef(!1);return gm(()=>{u.current=!0}),A.useCallback(async(f,h={})=>{Wt(u.current,ym),u.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:o,...h}))},[i,o])}var wp={};function bm(i,o,u){!o&&!wp[i]&&(wp[i]=!0,Wt(!1,u))}A.memo(_1);function _1({routes:i,future:o,state:u,isStatic:s,onError:f}){return vm(i,void 0,{state:u,isStatic:s,onError:f})}function w1({to:i,replace:o,state:u,relative:s}){Xe(sl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=A.useContext(Nt);Wt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=A.useContext(ia),{pathname:p}=$t(),g=eo(),v=Ir(i,Iu(h),p,s==="path"),y=JSON.stringify(v);return A.useEffect(()=>{g(JSON.parse(y),{replace:o,state:u,relative:s})},[g,y,s,o,u]),null}function na(i){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function O1({basename:i="/",children:o=null,location:u,navigationType:s="POP",navigator:f,static:h=!1,unstable_useTransitions:p}){Xe(!sl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),v=A.useMemo(()=>({basename:g,navigator:f,static:h,unstable_useTransitions:p,future:{}}),[g,f,h,p]);typeof u=="string"&&(u=rl(u));let{pathname:y="/",search:b="",hash:x="",state:D=null,key:U="default",unstable_mask:T}=u,w=A.useMemo(()=>{let C=Aa(y,g);return C==null?null:{location:{pathname:C,search:b,hash:x,state:D,key:U,unstable_mask:T},navigationType:s}},[g,y,b,x,D,U,s,T]);return Wt(w!=null,`<Router basename="${g}"> is not able to match the URL "${y}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:A.createElement(Nt.Provider,{value:v},A.createElement(ci.Provider,{children:o,value:w}))}function M1({children:i,location:o}){return g1(Xu(i),o)}function Xu(i,o=[]){let u=[];return A.Children.forEach(i,(s,f)=>{if(!A.isValidElement(s))return;let h=[...o,f];if(s.type===A.Fragment){u.push.apply(u,Xu(s.props.children,h));return}Xe(s.type===na,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Xu(s.props.children,h)),u.push(p)}),u}var qr="get",Gr="application/x-www-form-urlencoded";function to(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function D1(i){return to(i)&&i.tagName.toLowerCase()==="button"}function B1(i){return to(i)&&i.tagName.toLowerCase()==="form"}function N1(i){return to(i)&&i.tagName.toLowerCase()==="input"}function k1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function H1(i,o){return i.button===0&&(!o||o==="_self")&&!k1(i)}var kr=null;function U1(){if(kr===null)try{new FormData(document.createElement("form"),0),kr=!1}catch{kr=!0}return kr}var L1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bu(i){return i!=null&&!L1.has(i)?(Wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gr}"`),null):i}function q1(i,o){let u,s,f,h,p;if(B1(i)){let g=i.getAttribute("action");s=g?Aa(g,o):null,u=i.getAttribute("method")||qr,f=Bu(i.getAttribute("enctype"))||Gr,h=new FormData(i)}else if(D1(i)||N1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||g.getAttribute("action");if(s=v?Aa(v,o):null,u=i.getAttribute("formmethod")||g.getAttribute("method")||qr,f=Bu(i.getAttribute("formenctype"))||Bu(g.getAttribute("enctype"))||Gr,h=new FormData(g,i),!U1()){let{name:y,type:b,value:x}=i;if(b==="image"){let D=y?`${y}.`:"";h.append(`${D}x`,"0"),h.append(`${D}y`,"0")}else y&&h.append(y,x)}}else{if(to(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=qr,s=null,f=Gr,p=i}return h&&f==="text/plain"&&(p=h,h=void 0),{action:s,method:u.toLowerCase(),encType:f,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ac(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function G1(i,o,u,s){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return u?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:o&&Aa(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function Y1(i,o){if(i.id in o)return o[i.id];try{let u=await import(i.module);return o[i.id]=u,u}catch(u){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function V1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function X1(i,o,u){let s=await Promise.all(i.map(async f=>{let h=o.routes[f.route.id];if(h){let p=await Y1(h,u);return p.links?p.links():[]}return[]}));return J1(s.flat(1).filter(V1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Op(i,o,u,s,f,h){let p=(v,y)=>u[y]?v.route.id!==u[y].route.id:!0,g=(v,y)=>u[y].pathname!==v.pathname||u[y].route.path?.endsWith("*")&&u[y].params["*"]!==v.params["*"];return h==="assets"?o.filter((v,y)=>p(v,y)||g(v,y)):h==="data"?o.filter((v,y)=>{let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(p(v,y)||g(v,y))return!0;if(v.route.shouldRevalidate){let x=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Q1(i,o,{includeHydrateFallback:u}={}){return Z1(i.map(s=>{let f=o.routes[s.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),u&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function Z1(i){return[...new Set(i)]}function K1(i){let o={},u=Object.keys(i).sort();for(let s of u)o[s]=i[s];return o}function J1(i,o){let u=new Set;return new Set(o),i.reduce((s,f)=>{let h=JSON.stringify(K1(f));return u.has(h)||(u.add(h),s.push({key:h,link:f})),s},[])}function Sm(){let i=A.useContext(ol);return ac(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function F1(){let i=A.useContext(Pr);return ac(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var nc=A.createContext(void 0);nc.displayName="FrameworkContext";function Em(){let i=A.useContext(nc);return ac(i,"You must render this element inside a <HydratedRouter> element"),i}function W1(i,o){let u=A.useContext(nc),[s,f]=A.useState(!1),[h,p]=A.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:y,onMouseLeave:b,onTouchStart:x}=o,D=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let w=X=>{X.forEach(P=>{p(P.isIntersecting)})},C=new IntersectionObserver(w,{threshold:.5});return D.current&&C.observe(D.current),()=>{C.disconnect()}}},[i]),A.useEffect(()=>{if(s){let w=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(w)}}},[s]);let U=()=>{f(!0)},T=()=>{f(!1),p(!1)};return u?i!=="intent"?[h,D,{}]:[h,D,{onFocus:ii(g,U),onBlur:ii(v,T),onMouseEnter:ii(y,U),onMouseLeave:ii(b,T),onTouchStart:ii(x,U)}]:[!1,D,{}]}function ii(i,o){return u=>{i&&i(u),u.defaultPrevented||o(u)}}function $1({page:i,...o}){let{router:u}=Sm(),s=A.useMemo(()=>sm(u.routes,i,u.basename),[u.routes,i,u.basename]);return s?A.createElement(P1,{page:i,matches:s,...o}):null}function I1(i){let{manifest:o,routeModules:u}=Em(),[s,f]=A.useState([]);return A.useEffect(()=>{let h=!1;return X1(i,o,u).then(p=>{h||f(p)}),()=>{h=!0}},[i,o,u]),s}function P1({page:i,matches:o,...u}){let s=$t(),{future:f,manifest:h,routeModules:p}=Em(),{basename:g}=Sm(),{loaderData:v,matches:y}=F1(),b=A.useMemo(()=>Op(i,o,y,h,s,"data"),[i,o,y,h,s]),x=A.useMemo(()=>Op(i,o,y,h,s,"assets"),[i,o,y,h,s]),D=A.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let w=new Set,C=!1;if(o.forEach(P=>{let V=h.routes[P.route.id];!V||!V.hasLoader||(!b.some(ie=>ie.route.id===P.route.id)&&P.route.id in v&&p[P.route.id]?.shouldRevalidate||V.hasClientLoader?C=!0:w.add(P.route.id))}),w.size===0)return[];let X=G1(i,g,f.unstable_trailingSlashAwareDataRequests,"data");return C&&w.size>0&&X.searchParams.set("_routes",o.filter(P=>w.has(P.route.id)).map(P=>P.route.id).join(",")),[X.pathname+X.search]},[g,f.unstable_trailingSlashAwareDataRequests,v,s,h,b,o,i,p]),U=A.useMemo(()=>Q1(x,h),[x,h]),T=I1(x);return A.createElement(A.Fragment,null,D.map(w=>A.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...u})),U.map(w=>A.createElement("link",{key:w,rel:"modulepreload",href:w,...u})),T.map(({key:w,link:C})=>A.createElement("link",{key:w,nonce:u.nonce,...C,crossOrigin:C.crossOrigin??u.crossOrigin})))}function ev(...i){return o=>{i.forEach(u=>{typeof u=="function"?u(o):u!=null&&(u.current=o)})}}var tv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tv&&(window.__reactRouterVersion="7.13.1")}catch{}function av({basename:i,children:o,unstable_useTransitions:u,window:s}){let f=A.useRef();f.current==null&&(f.current=Ng({window:s,v5Compat:!0}));let h=f.current,[p,g]=A.useState({action:h.action,location:h.location}),v=A.useCallback(y=>{u===!1?g(y):A.startTransition(()=>g(y))},[u]);return A.useLayoutEffect(()=>h.listen(v),[h,v]),A.createElement(O1,{basename:i,children:o,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:u})}var jm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lc=A.forwardRef(function({onClick:o,discover:u="render",prefetch:s="none",relative:f,reloadDocument:h,replace:p,unstable_mask:g,state:v,target:y,to:b,preventScrollReset:x,viewTransition:D,unstable_defaultShouldRevalidate:U,...T},w){let{basename:C,navigator:X,unstable_useTransitions:P}=A.useContext(Nt),V=typeof b=="string"&&jm.test(b),ie=dm(b,C);b=ie.to;let ce=m1(b,{relative:f}),ye=$t(),J=null;if(g){let Oe=Ir(g,[],ye.unstable_mask?ye.unstable_mask.pathname:"/",!0);C!=="/"&&(Oe.pathname=Oe.pathname==="/"?C:la([C,Oe.pathname])),J=X.createHref(Oe)}let[we,Be,rt]=W1(s,T),$e=rv(b,{replace:p,unstable_mask:g,state:v,target:y,preventScrollReset:x,relative:f,viewTransition:D,unstable_defaultShouldRevalidate:U,unstable_useTransitions:P});function Z(Oe){o&&o(Oe),Oe.defaultPrevented||$e(Oe)}let de=!(ie.isExternal||h),xe=A.createElement("a",{...T,...rt,href:(de?J:void 0)||ie.absoluteURL||ce,onClick:de?Z:o,ref:ev(w,Be),target:y,"data-discover":!V&&u==="render"?"true":void 0});return we&&!V?A.createElement(A.Fragment,null,xe,A.createElement($1,{page:ce})):xe});lc.displayName="Link";var nv=A.forwardRef(function({"aria-current":o="page",caseSensitive:u=!1,className:s="",end:f=!1,style:h,to:p,viewTransition:g,children:v,...y},b){let x=fi(p,{relative:y.relative}),D=$t(),U=A.useContext(Pr),{navigator:T,basename:w}=A.useContext(Nt),C=U!=null&&fv(x)&&g===!0,X=T.encodeLocation?T.encodeLocation(x).pathname:x.pathname,P=D.pathname,V=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;u||(P=P.toLowerCase(),V=V?V.toLowerCase():null,X=X.toLowerCase()),V&&w&&(V=Aa(V,w)||V);const ie=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let ce=P===X||!f&&P.startsWith(X)&&P.charAt(ie)==="/",ye=V!=null&&(V===X||!f&&V.startsWith(X)&&V.charAt(X.length)==="/"),J={isActive:ce,isPending:ye,isTransitioning:C},we=ce?o:void 0,Be;typeof s=="function"?Be=s(J):Be=[s,ce?"active":null,ye?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let rt=typeof h=="function"?h(J):h;return A.createElement(lc,{...y,"aria-current":we,className:Be,ref:b,style:rt,to:p,viewTransition:g},typeof v=="function"?v(J):v)});nv.displayName="NavLink";var lv=A.forwardRef(({discover:i="render",fetcherKey:o,navigate:u,reloadDocument:s,replace:f,state:h,method:p=qr,action:g,onSubmit:v,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:D,...U},T)=>{let{unstable_useTransitions:w}=A.useContext(Nt),C=uv(),X=cv(g,{relative:y}),P=p.toLowerCase()==="get"?"get":"post",V=typeof g=="string"&&jm.test(g),ie=ce=>{if(v&&v(ce),ce.defaultPrevented)return;ce.preventDefault();let ye=ce.nativeEvent.submitter,J=ye?.getAttribute("formmethod")||p,we=()=>C(ye||ce.currentTarget,{fetcherKey:o,method:J,navigate:u,replace:f,state:h,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:D});w&&u!==!1?A.startTransition(()=>we()):we()};return A.createElement("form",{ref:T,method:P,action:X,onSubmit:s?v:ie,...U,"data-discover":!V&&i==="render"?"true":void 0})});lv.displayName="Form";function iv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Am(i){let o=A.useContext(ol);return Xe(o,iv(i)),o}function rv(i,{target:o,replace:u,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let b=eo(),x=$t(),D=fi(i,{relative:p});return A.useCallback(U=>{if(H1(U,o)){U.preventDefault();let T=u!==void 0?u:si(x)===si(D),w=()=>b(i,{replace:T,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:v});y?A.startTransition(()=>w()):w()}},[x,b,D,u,s,f,o,i,h,p,g,v,y])}var ov=0,sv=()=>`__${String(++ov)}__`;function uv(){let{router:i}=Am("useSubmit"),{basename:o}=A.useContext(Nt),u=T1(),s=i.fetch,f=i.navigate;return A.useCallback(async(h,p={})=>{let{action:g,method:v,encType:y,formData:b,body:x}=q1(h,o);if(p.navigate===!1){let D=p.fetcherKey||sv();await s(D,u,p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:x,formMethod:p.method||v,formEncType:p.encType||y,flushSync:p.flushSync})}else await f(p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:x,formMethod:p.method||v,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:u,flushSync:p.flushSync,viewTransition:p.viewTransition})},[s,f,o,u])}function cv(i,{relative:o}={}){let{basename:u}=A.useContext(Nt),s=A.useContext(ia);Xe(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),h={...fi(i||".",{relative:o})},p=$t();if(i==null){h.search=p.search;let g=new URLSearchParams(h.search),v=g.getAll("index");if(v.some(b=>b==="")){g.delete("index"),v.filter(x=>x).forEach(x=>g.append("index",x));let b=g.toString();h.search=b?`?${b}`:""}}return(!i||i===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(h.pathname=h.pathname==="/"?u:la([u,h.pathname])),si(h)}function fv(i,{relative:o}={}){let u=A.useContext(pm);Xe(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Am("useViewTransitionState"),f=fi(i,{relative:o});if(!u.isTransitioning)return!1;let h=Aa(u.currentLocation.pathname,s)||u.currentLocation.pathname,p=Aa(u.nextLocation.pathname,s)||u.nextLocation.pathname;return Kr(f.pathname,p)!=null||Kr(f.pathname,h)!=null}const Rm=(...i)=>i.filter((o,u,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===u).join(" ").trim();const dv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,u,s)=>s?s.toUpperCase():u.toLowerCase());const Mp=i=>{const o=hv(i);return o.charAt(0).toUpperCase()+o.slice(1)};var pv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const mv=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const yv=A.forwardRef(({color:i="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:s,className:f="",children:h,iconNode:p,...g},v)=>A.createElement("svg",{ref:v,...pv,width:o,height:o,stroke:i,strokeWidth:s?Number(u)*24/Number(o):u,className:Rm("lucide",f),...!h&&!mv(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,b])=>A.createElement(y,b)),...Array.isArray(h)?h:[h]]));const le=(i,o)=>{const u=A.forwardRef(({className:s,...f},h)=>A.createElement(yv,{ref:h,iconNode:o,className:Rm(`lucide-${dv(Mp(i))}`,`lucide-${i}`,s),...f}));return u.displayName=Mp(i),u};const gv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Yr=le("activity",gv);const vv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xv=le("arrow-left",vv);const bv=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Dp=le("bot",bv);const Sv=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Ev=le("camera",Sv);const jv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jr=le("check",jv);const Av=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rv=le("chevron-down",Av);const Tv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cv=le("chevron-left",Tv);const zv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ui=le("chevron-right",zv);const _v=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wv=le("chevron-up",_v);const Ov=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mv=le("circle-play",Ov);const Dv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Qu=le("clock",Dv);const Bv=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Nv=le("copy",Bv);const kv=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Hv=le("cpu",kv);const Uv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Lv=le("database",Uv);const qv=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Gv=le("download",qv);const Yv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Vv=le("external-link",Yv);const Xv=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Qv=le("eye",Xv);const Zv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Hr=le("file-code",Zv);const Kv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Nu=le("file-image",Kv);const Jv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Zu=le("file-text",Jv);const Fv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Bp=le("file",Fv);const Wv=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Np=le("folder-plus",Wv);const $v=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Tm=le("folder",$v);const Iv=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Pv=le("funnel",Iv);const ex=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Cm=le("globe",ex);const tx=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],ic=le("hard-drive",tx);const ax=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],nx=le("layout-dashboard",ax);const lx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ix=le("loader-circle",lx);const rx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],zm=le("message-square",rx);const ox=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],sx=le("mic-off",ox);const ux=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],kp=le("mic",ux);const cx=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],fx=le("moon",cx);const dx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],hx=le("panels-top-left",dx);const px=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mx=le("plus",px);const yx=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Hp=le("power",yx);const gx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],vx=le("refresh-cw",gx);const xx=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Up=le("rotate-ccw",xx);const bx=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Sx=le("save",bx);const Ex=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],jx=le("send",Ex);const Ax=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Rx=le("server",Ax);const Tx=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Cx=le("settings",Tx);const zx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ll=le("shield",zx);const _x=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],wx=le("sun",_x);const Ox=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Mx=le("terminal",Ox);const Dx=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],_m=le("trash-2",Dx);const Bx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wm=le("triangle-alert",Bx);const Nx=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],kx=le("upload",Nx);const Hx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Om=le("user",Hx);const Ux=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Lx=le("workflow",Ux);const qx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Fr=le("wrench",qx);const Gx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lp=le("x",Gx);const Yx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],di=le("zap",Yx),Vx=[{icon:nx,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:zm,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:ic,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Fr,label:"Modules",path:"/tools"},{icon:di,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:ll,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Cx,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function Xx({user:i,isOpen:o,onToggle:u,onLogout:s}){const f=eo(),h=$t();return c.jsxs("aside",{style:{...nt.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[c.jsxs("div",{style:nt.header,children:[c.jsxs("div",{style:nt.brand,onClick:()=>f("/"),children:[c.jsx("div",{style:nt.logoWrap,children:c.jsx("span",{style:nt.logoChar,children:"स"})}),o&&c.jsxs("div",{style:nt.brandText,children:[c.jsx("span",{style:nt.brandName,children:"SamarthyaBot"}),c.jsx("span",{style:nt.brandSub,children:"v1.0.0"})]})]}),c.jsx("button",{onClick:u,style:nt.toggleBtn,children:o?c.jsx(Cv,{size:18}):c.jsx(ui,{size:18})})]}),c.jsx("nav",{style:nt.nav,children:Vx.map(p=>{const g=p.icon,v=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return c.jsxs("button",{onClick:()=>f(p.path),style:{...nt.navItem,...v?nt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:p.label,children:[c.jsx(g,{size:20,style:{minWidth:"20px"}}),o&&c.jsx("span",{children:p.label}),v&&c.jsx("div",{style:nt.activeIndicator})]},p.path)})}),c.jsx("div",{style:nt.footer,children:o&&c.jsxs("div",{style:nt.userInfo,children:[c.jsx("div",{style:nt.avatar,children:(i?.name||"U").charAt(0).toUpperCase()}),c.jsxs("div",{style:nt.userText,children:[c.jsx("div",{style:nt.userName,children:i?.name||"Local Admin"}),c.jsx("div",{style:nt.userStatus,children:"AI Agent Operator"})]})]})})]})}const nt={sidebar:{position:"sticky",top:0,height:"100vh",background:"rgba(10, 10, 26, 0.95)",backdropFilter:"blur(20px)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",zIndex:100,overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)",minHeight:"72px"},brand:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer",overflow:"hidden"},logoWrap:{width:"38px",height:"38px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},logoChar:{fontSize:"1.3rem",color:"#0D0D0D",fontFamily:"var(--font-hindi)",fontWeight:700},brandText:{display:"flex",flexDirection:"column",whiteSpace:"nowrap"},brandName:{fontWeight:700,fontSize:"1.1rem",color:"var(--text-primary)"},brandSub:{fontSize:"0.7rem",color:"var(--text-muted)"},toggleBtn:{background:"var(--bg-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)",width:"30px",height:"30px",borderRadius:"var(--radius-sm)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all var(--transition-fast)",flexShrink:0},nav:{flex:1,padding:"16px 12px",display:"flex",flexDirection:"column",gap:"4px"},navItem:{display:"flex",alignItems:"center",gap:"12px",padding:"12px 14px",borderRadius:"var(--radius-md)",background:"transparent",border:"none",color:"var(--text-secondary)",fontSize:"0.9rem",fontWeight:500,cursor:"pointer",transition:"all var(--transition-fast)",position:"relative",fontFamily:"var(--font-primary)",whiteSpace:"nowrap",width:"100%"},navItemActive:{background:"rgba(255, 153, 51, 0.12)",color:"var(--accent-primary)"},activeIndicator:{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"3px",height:"60%",borderRadius:"0 4px 4px 0",background:"var(--accent-primary)"},footer:{padding:"16px",borderTop:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",gap:"12px"},userInfo:{display:"flex",alignItems:"center",gap:"10px",overflow:"hidden"},avatar:{width:"36px",height:"36px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:700,fontSize:"0.9rem",flexShrink:0},userText:{overflow:"hidden",whiteSpace:"nowrap"},userName:{fontWeight:600,fontSize:"0.85rem",color:"var(--text-primary)"},userStatus:{fontSize:"0.75rem",color:"var(--text-muted)"}};function Mm(i,o){return function(){return i.apply(o,arguments)}}const{toString:Qx}=Object.prototype,{getPrototypeOf:rc}=Object,{iterator:ao,toStringTag:Dm}=Symbol,no=(i=>o=>{const u=Qx.call(o);return i[u]||(i[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),It=i=>(i=i.toLowerCase(),o=>no(o)===i),lo=i=>o=>typeof o===i,{isArray:ul}=Array,il=lo("undefined");function hi(i){return i!==null&&!il(i)&&i.constructor!==null&&!il(i.constructor)&&jt(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const Bm=It("ArrayBuffer");function Zx(i){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(i):o=i&&i.buffer&&Bm(i.buffer),o}const Kx=lo("string"),jt=lo("function"),Nm=lo("number"),pi=i=>i!==null&&typeof i=="object",Jx=i=>i===!0||i===!1,Vr=i=>{if(no(i)!=="object")return!1;const o=rc(i);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Dm in i)&&!(ao in i)},Fx=i=>{if(!pi(i)||hi(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},Wx=It("Date"),$x=It("File"),Ix=It("Blob"),Px=It("FileList"),eb=i=>pi(i)&&jt(i.pipe),tb=i=>{let o;return i&&(typeof FormData=="function"&&i instanceof FormData||jt(i.append)&&((o=no(i))==="formdata"||o==="object"&&jt(i.toString)&&i.toString()==="[object FormData]"))},ab=It("URLSearchParams"),[nb,lb,ib,rb]=["ReadableStream","Request","Response","Headers"].map(It),ob=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mi(i,o,{allOwnKeys:u=!1}={}){if(i===null||typeof i>"u")return;let s,f;if(typeof i!="object"&&(i=[i]),ul(i))for(s=0,f=i.length;s<f;s++)o.call(null,i[s],s,i);else{if(hi(i))return;const h=u?Object.getOwnPropertyNames(i):Object.keys(i),p=h.length;let g;for(s=0;s<p;s++)g=h[s],o.call(null,i[g],g,i)}}function km(i,o){if(hi(i))return null;o=o.toLowerCase();const u=Object.keys(i);let s=u.length,f;for(;s-- >0;)if(f=u[s],o===f.toLowerCase())return f;return null}const gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hm=i=>!il(i)&&i!==gn;function Ku(){const{caseless:i,skipUndefined:o}=Hm(this)&&this||{},u={},s=(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=i&&km(u,h)||h;Vr(u[p])&&Vr(f)?u[p]=Ku(u[p],f):Vr(f)?u[p]=Ku({},f):ul(f)?u[p]=f.slice():(!o||!il(f))&&(u[p]=f)};for(let f=0,h=arguments.length;f<h;f++)arguments[f]&&mi(arguments[f],s);return u}const sb=(i,o,u,{allOwnKeys:s}={})=>(mi(o,(f,h)=>{u&&jt(f)?Object.defineProperty(i,h,{value:Mm(f,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,h,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),i),ub=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),cb=(i,o,u,s)=>{i.prototype=Object.create(o.prototype,s),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(i,"super",{value:o.prototype}),u&&Object.assign(i.prototype,u)},fb=(i,o,u,s)=>{let f,h,p;const g={};if(o=o||{},i==null)return o;do{for(f=Object.getOwnPropertyNames(i),h=f.length;h-- >0;)p=f[h],(!s||s(p,i,o))&&!g[p]&&(o[p]=i[p],g[p]=!0);i=u!==!1&&rc(i)}while(i&&(!u||u(i,o))&&i!==Object.prototype);return o},db=(i,o,u)=>{i=String(i),(u===void 0||u>i.length)&&(u=i.length),u-=o.length;const s=i.indexOf(o,u);return s!==-1&&s===u},hb=i=>{if(!i)return null;if(ul(i))return i;let o=i.length;if(!Nm(o))return null;const u=new Array(o);for(;o-- >0;)u[o]=i[o];return u},pb=(i=>o=>i&&o instanceof i)(typeof Uint8Array<"u"&&rc(Uint8Array)),mb=(i,o)=>{const s=(i&&i[ao]).call(i);let f;for(;(f=s.next())&&!f.done;){const h=f.value;o.call(i,h[0],h[1])}},yb=(i,o)=>{let u;const s=[];for(;(u=i.exec(o))!==null;)s.push(u);return s},gb=It("HTMLFormElement"),vb=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,s,f){return s.toUpperCase()+f}),qp=(({hasOwnProperty:i})=>(o,u)=>i.call(o,u))(Object.prototype),xb=It("RegExp"),Um=(i,o)=>{const u=Object.getOwnPropertyDescriptors(i),s={};mi(u,(f,h)=>{let p;(p=o(f,h,i))!==!1&&(s[h]=p||f)}),Object.defineProperties(i,s)},bb=i=>{Um(i,(o,u)=>{if(jt(i)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const s=i[u];if(jt(s)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},Sb=(i,o)=>{const u={},s=f=>{f.forEach(h=>{u[h]=!0})};return ul(i)?s(i):s(String(i).split(o)),u},Eb=()=>{},jb=(i,o)=>i!=null&&Number.isFinite(i=+i)?i:o;function Ab(i){return!!(i&&jt(i.append)&&i[Dm]==="FormData"&&i[ao])}const Rb=i=>{const o=new Array(10),u=(s,f)=>{if(pi(s)){if(o.indexOf(s)>=0)return;if(hi(s))return s;if(!("toJSON"in s)){o[f]=s;const h=ul(s)?[]:{};return mi(s,(p,g)=>{const v=u(p,f+1);!il(v)&&(h[g]=v)}),o[f]=void 0,h}}return s};return u(i,0)},Tb=It("AsyncFunction"),Cb=i=>i&&(pi(i)||jt(i))&&jt(i.then)&&jt(i.catch),Lm=((i,o)=>i?setImmediate:o?((u,s)=>(gn.addEventListener("message",({source:f,data:h})=>{f===gn&&h===u&&s.length&&s.shift()()},!1),f=>{s.push(f),gn.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",jt(gn.postMessage)),zb=typeof queueMicrotask<"u"?queueMicrotask.bind(gn):typeof process<"u"&&process.nextTick||Lm,_b=i=>i!=null&&jt(i[ao]),N={isArray:ul,isArrayBuffer:Bm,isBuffer:hi,isFormData:tb,isArrayBufferView:Zx,isString:Kx,isNumber:Nm,isBoolean:Jx,isObject:pi,isPlainObject:Vr,isEmptyObject:Fx,isReadableStream:nb,isRequest:lb,isResponse:ib,isHeaders:rb,isUndefined:il,isDate:Wx,isFile:$x,isBlob:Ix,isRegExp:xb,isFunction:jt,isStream:eb,isURLSearchParams:ab,isTypedArray:pb,isFileList:Px,forEach:mi,merge:Ku,extend:sb,trim:ob,stripBOM:ub,inherits:cb,toFlatObject:fb,kindOf:no,kindOfTest:It,endsWith:db,toArray:hb,forEachEntry:mb,matchAll:yb,isHTMLForm:gb,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Um,freezeMethods:bb,toObjectSet:Sb,toCamelCase:vb,noop:Eb,toFiniteNumber:jb,findKey:km,global:gn,isContextDefined:Hm,isSpecCompliantForm:Ab,toJSONObject:Rb,isAsyncFn:Tb,isThenable:Cb,setImmediate:Lm,asap:zb,isIterable:_b};let oe=class qm extends Error{static from(o,u,s,f,h,p){const g=new qm(o.message,u||o.code,s,f,h);return g.cause=o,g.name=o.name,p&&Object.assign(g,p),g}constructor(o,u,s,f,h){super(o),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),s&&(this.config=s),f&&(this.request=f),h&&(this.response=h,this.status=h.status)}toJSON(){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:N.toJSONObject(this.config),code:this.code,status:this.status}}};oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";oe.ERR_BAD_OPTION="ERR_BAD_OPTION";oe.ECONNABORTED="ECONNABORTED";oe.ETIMEDOUT="ETIMEDOUT";oe.ERR_NETWORK="ERR_NETWORK";oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";oe.ERR_DEPRECATED="ERR_DEPRECATED";oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";oe.ERR_CANCELED="ERR_CANCELED";oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";oe.ERR_INVALID_URL="ERR_INVALID_URL";const wb=null;function Ju(i){return N.isPlainObject(i)||N.isArray(i)}function Gm(i){return N.endsWith(i,"[]")?i.slice(0,-2):i}function Gp(i,o,u){return i?i.concat(o).map(function(f,h){return f=Gm(f),!u&&h?"["+f+"]":f}).join(u?".":""):o}function Ob(i){return N.isArray(i)&&!i.some(Ju)}const Mb=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function io(i,o,u){if(!N.isObject(i))throw new TypeError("target must be an object");o=o||new FormData,u=N.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,C){return!N.isUndefined(C[w])});const s=u.metaTokens,f=u.visitor||b,h=u.dots,p=u.indexes,v=(u.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(f))throw new TypeError("visitor must be a function");function y(T){if(T===null)return"";if(N.isDate(T))return T.toISOString();if(N.isBoolean(T))return T.toString();if(!v&&N.isBlob(T))throw new oe("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(T)||N.isTypedArray(T)?v&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function b(T,w,C){let X=T;if(T&&!C&&typeof T=="object"){if(N.endsWith(w,"{}"))w=s?w:w.slice(0,-2),T=JSON.stringify(T);else if(N.isArray(T)&&Ob(T)||(N.isFileList(T)||N.endsWith(w,"[]"))&&(X=N.toArray(T)))return w=Gm(w),X.forEach(function(V,ie){!(N.isUndefined(V)||V===null)&&o.append(p===!0?Gp([w],ie,h):p===null?w:w+"[]",y(V))}),!1}return Ju(T)?!0:(o.append(Gp(C,w,h),y(T)),!1)}const x=[],D=Object.assign(Mb,{defaultVisitor:b,convertValue:y,isVisitable:Ju});function U(T,w){if(!N.isUndefined(T)){if(x.indexOf(T)!==-1)throw Error("Circular reference detected in "+w.join("."));x.push(T),N.forEach(T,function(X,P){(!(N.isUndefined(X)||X===null)&&f.call(o,X,N.isString(P)?P.trim():P,w,D))===!0&&U(X,w?w.concat(P):[P])}),x.pop()}}if(!N.isObject(i))throw new TypeError("data must be an object");return U(i),o}function Yp(i){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function oc(i,o){this._pairs=[],i&&io(i,this,o)}const Ym=oc.prototype;Ym.append=function(o,u){this._pairs.push([o,u])};Ym.toString=function(o){const u=o?function(s){return o.call(this,s,Yp)}:Yp;return this._pairs.map(function(f){return u(f[0])+"="+u(f[1])},"").join("&")};function Db(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vm(i,o,u){if(!o)return i;const s=u&&u.encode||Db,f=N.isFunction(u)?{serialize:u}:u,h=f&&f.serialize;let p;if(h?p=h(o,f):p=N.isURLSearchParams(o)?o.toString():new oc(o,f).toString(s),p){const g=i.indexOf("#");g!==-1&&(i=i.slice(0,g)),i+=(i.indexOf("?")===-1?"?":"&")+p}return i}class Vp{constructor(){this.handlers=[]}use(o,u,s){return this.handlers.push({fulfilled:o,rejected:u,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){N.forEach(this.handlers,function(s){s!==null&&o(s)})}}const sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Bb=typeof URLSearchParams<"u"?URLSearchParams:oc,Nb=typeof FormData<"u"?FormData:null,kb=typeof Blob<"u"?Blob:null,Hb={isBrowser:!0,classes:{URLSearchParams:Bb,FormData:Nb,Blob:kb},protocols:["http","https","file","blob","url","data"]},uc=typeof window<"u"&&typeof document<"u",Fu=typeof navigator=="object"&&navigator||void 0,Ub=uc&&(!Fu||["ReactNative","NativeScript","NS"].indexOf(Fu.product)<0),Lb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qb=uc&&window.location.href||"http://localhost",Gb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uc,hasStandardBrowserEnv:Ub,hasStandardBrowserWebWorkerEnv:Lb,navigator:Fu,origin:qb},Symbol.toStringTag,{value:"Module"})),pt={...Gb,...Hb};function Yb(i,o){return io(i,new pt.classes.URLSearchParams,{visitor:function(u,s,f,h){return pt.isNode&&N.isBuffer(u)?(this.append(s,u.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...o})}function Vb(i){return N.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Xb(i){const o={},u=Object.keys(i);let s;const f=u.length;let h;for(s=0;s<f;s++)h=u[s],o[h]=i[h];return o}function Xm(i){function o(u,s,f,h){let p=u[h++];if(p==="__proto__")return!0;const g=Number.isFinite(+p),v=h>=u.length;return p=!p&&N.isArray(f)?f.length:p,v?(N.hasOwnProp(f,p)?f[p]=[f[p],s]:f[p]=s,!g):((!f[p]||!N.isObject(f[p]))&&(f[p]=[]),o(u,s,f[p],h)&&N.isArray(f[p])&&(f[p]=Xb(f[p])),!g)}if(N.isFormData(i)&&N.isFunction(i.entries)){const u={};return N.forEachEntry(i,(s,f)=>{o(Vb(s),f,u,0)}),u}return null}function Qb(i,o,u){if(N.isString(i))try{return(o||JSON.parse)(i),N.trim(i)}catch(s){if(s.name!=="SyntaxError")throw s}return(u||JSON.stringify)(i)}const yi={transitional:sc,adapter:["xhr","http","fetch"],transformRequest:[function(o,u){const s=u.getContentType()||"",f=s.indexOf("application/json")>-1,h=N.isObject(o);if(h&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return f?JSON.stringify(Xm(o)):o;if(N.isArrayBuffer(o)||N.isBuffer(o)||N.isStream(o)||N.isFile(o)||N.isBlob(o)||N.isReadableStream(o))return o;if(N.isArrayBufferView(o))return o.buffer;if(N.isURLSearchParams(o))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let g;if(h){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Yb(o,this.formSerializer).toString();if((g=N.isFileList(o))||s.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return io(g?{"files[]":o}:o,v&&new v,this.formSerializer)}}return h||f?(u.setContentType("application/json",!1),Qb(o)):o}],transformResponse:[function(o){const u=this.transitional||yi.transitional,s=u&&u.forcedJSONParsing,f=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(s&&!this.responseType||f)){const p=!(u&&u.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(g){if(p)throw g.name==="SyntaxError"?oe.from(g,oe.ERR_BAD_RESPONSE,this,null,this.response):g}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],i=>{yi.headers[i]={}});const Zb=N.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"]),Kb=i=>{const o={};let u,s,f;return i&&i.split(`
|
|
12
|
-
`).forEach(function(p){f=p.indexOf(":"),u=p.substring(0,f).trim().toLowerCase(),s=p.substring(f+1).trim(),!(!u||o[u]&&Zb[u])&&(u==="set-cookie"?o[u]?o[u].push(s):o[u]=[s]:o[u]=o[u]?o[u]+", "+s:s)}),o},Xp=Symbol("internals");function ri(i){return i&&String(i).trim().toLowerCase()}function Xr(i){return i===!1||i==null?i:N.isArray(i)?i.map(Xr):String(i)}function Jb(i){const o=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=u.exec(i);)o[s[1]]=s[2];return o}const Fb=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function ku(i,o,u,s,f){if(N.isFunction(s))return s.call(this,o,u);if(f&&(o=u),!!N.isString(o)){if(N.isString(s))return o.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(o)}}function Wb(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,u,s)=>u.toUpperCase()+s)}function $b(i,o){const u=N.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(i,s+u,{value:function(f,h,p){return this[s].call(this,o,f,h,p)},configurable:!0})})}let At=class{constructor(o){o&&this.set(o)}set(o,u,s){const f=this;function h(g,v,y){const b=ri(v);if(!b)throw new Error("header name must be a non-empty string");const x=N.findKey(f,b);(!x||f[x]===void 0||y===!0||y===void 0&&f[x]!==!1)&&(f[x||v]=Xr(g))}const p=(g,v)=>N.forEach(g,(y,b)=>h(y,b,v));if(N.isPlainObject(o)||o instanceof this.constructor)p(o,u);else if(N.isString(o)&&(o=o.trim())&&!Fb(o))p(Kb(o),u);else if(N.isObject(o)&&N.isIterable(o)){let g={},v,y;for(const b of o){if(!N.isArray(b))throw TypeError("Object iterator must return a key-value pair");g[y=b[0]]=(v=g[y])?N.isArray(v)?[...v,b[1]]:[v,b[1]]:b[1]}p(g,u)}else o!=null&&h(u,o,s);return this}get(o,u){if(o=ri(o),o){const s=N.findKey(this,o);if(s){const f=this[s];if(!u)return f;if(u===!0)return Jb(f);if(N.isFunction(u))return u.call(this,f,s);if(N.isRegExp(u))return u.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,u){if(o=ri(o),o){const s=N.findKey(this,o);return!!(s&&this[s]!==void 0&&(!u||ku(this,this[s],s,u)))}return!1}delete(o,u){const s=this;let f=!1;function h(p){if(p=ri(p),p){const g=N.findKey(s,p);g&&(!u||ku(s,s[g],g,u))&&(delete s[g],f=!0)}}return N.isArray(o)?o.forEach(h):h(o),f}clear(o){const u=Object.keys(this);let s=u.length,f=!1;for(;s--;){const h=u[s];(!o||ku(this,this[h],h,o,!0))&&(delete this[h],f=!0)}return f}normalize(o){const u=this,s={};return N.forEach(this,(f,h)=>{const p=N.findKey(s,h);if(p){u[p]=Xr(f),delete u[h];return}const g=o?Wb(h):String(h).trim();g!==h&&delete u[h],u[g]=Xr(f),s[g]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const u=Object.create(null);return N.forEach(this,(s,f)=>{s!=null&&s!==!1&&(u[f]=o&&N.isArray(s)?s.join(", "):s)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,u])=>o+": "+u).join(`
|
|
13
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...u){const s=new this(o);return u.forEach(f=>s.set(f)),s}static accessor(o){const s=(this[Xp]=this[Xp]={accessors:{}}).accessors,f=this.prototype;function h(p){const g=ri(p);s[g]||($b(f,p),s[g]=!0)}return N.isArray(o)?o.forEach(h):h(o),this}};At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(At.prototype,({value:i},o)=>{let u=o[0].toUpperCase()+o.slice(1);return{get:()=>i,set(s){this[u]=s}}});N.freezeMethods(At);function Hu(i,o){const u=this||yi,s=o||u,f=At.from(s.headers);let h=s.data;return N.forEach(i,function(g){h=g.call(u,h,f.normalize(),o?o.status:void 0)}),f.normalize(),h}function Qm(i){return!!(i&&i.__CANCEL__)}let gi=class extends oe{constructor(o,u,s){super(o??"canceled",oe.ERR_CANCELED,u,s),this.name="CanceledError",this.__CANCEL__=!0}};function Zm(i,o,u){const s=u.config.validateStatus;!u.status||!s||s(u.status)?i(u):o(new oe("Request failed with status code "+u.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function Ib(i){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return o&&o[1]||""}function Pb(i,o){i=i||10;const u=new Array(i),s=new Array(i);let f=0,h=0,p;return o=o!==void 0?o:1e3,function(v){const y=Date.now(),b=s[h];p||(p=y),u[f]=v,s[f]=y;let x=h,D=0;for(;x!==f;)D+=u[x++],x=x%i;if(f=(f+1)%i,f===h&&(h=(h+1)%i),y-p<o)return;const U=b&&y-b;return U?Math.round(D*1e3/U):void 0}}function e2(i,o){let u=0,s=1e3/o,f,h;const p=(y,b=Date.now())=>{u=b,f=null,h&&(clearTimeout(h),h=null),i(...y)};return[(...y)=>{const b=Date.now(),x=b-u;x>=s?p(y,b):(f=y,h||(h=setTimeout(()=>{h=null,p(f)},s-x)))},()=>f&&p(f)]}const Wr=(i,o,u=3)=>{let s=0;const f=Pb(50,250);return e2(h=>{const p=h.loaded,g=h.lengthComputable?h.total:void 0,v=p-s,y=f(v),b=p<=g;s=p;const x={loaded:p,total:g,progress:g?p/g:void 0,bytes:v,rate:y||void 0,estimated:y&&g&&b?(g-p)/y:void 0,event:h,lengthComputable:g!=null,[o?"download":"upload"]:!0};i(x)},u)},Qp=(i,o)=>{const u=i!=null;return[s=>o[0]({lengthComputable:u,total:i,loaded:s}),o[1]]},Zp=i=>(...o)=>N.asap(()=>i(...o)),t2=pt.hasStandardBrowserEnv?((i,o)=>u=>(u=new URL(u,pt.origin),i.protocol===u.protocol&&i.host===u.host&&(o||i.port===u.port)))(new URL(pt.origin),pt.navigator&&/(msie|trident)/i.test(pt.navigator.userAgent)):()=>!0,a2=pt.hasStandardBrowserEnv?{write(i,o,u,s,f,h,p){if(typeof document>"u")return;const g=[`${i}=${encodeURIComponent(o)}`];N.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),N.isString(s)&&g.push(`path=${s}`),N.isString(f)&&g.push(`domain=${f}`),h===!0&&g.push("secure"),N.isString(p)&&g.push(`SameSite=${p}`),document.cookie=g.join("; ")},read(i){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function n2(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function l2(i,o){return o?i.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):i}function Km(i,o,u){let s=!n2(o);return i&&(s||u==!1)?l2(i,o):o}const Kp=i=>i instanceof At?{...i}:i;function xn(i,o){o=o||{};const u={};function s(y,b,x,D){return N.isPlainObject(y)&&N.isPlainObject(b)?N.merge.call({caseless:D},y,b):N.isPlainObject(b)?N.merge({},b):N.isArray(b)?b.slice():b}function f(y,b,x,D){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y,x,D)}else return s(y,b,x,D)}function h(y,b){if(!N.isUndefined(b))return s(void 0,b)}function p(y,b){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y)}else return s(void 0,b)}function g(y,b,x){if(x in o)return s(y,b);if(x in i)return s(void 0,y)}const v={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(y,b,x)=>f(Kp(y),Kp(b),x,!0)};return N.forEach(Object.keys({...i,...o}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const x=N.hasOwnProp(v,b)?v[b]:f,D=x(i[b],o[b],b);N.isUndefined(D)&&x!==g||(u[b]=D)}),u}const Jm=i=>{const o=xn({},i);let{data:u,withXSRFToken:s,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:g}=o;if(o.headers=p=At.from(p),o.url=Vm(Km(o.baseURL,o.url,o.allowAbsoluteUrls),i.params,i.paramsSerializer),g&&p.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),N.isFormData(u)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(N.isFunction(u.getHeaders)){const v=u.getHeaders(),y=["content-type","content-length"];Object.entries(v).forEach(([b,x])=>{y.includes(b.toLowerCase())&&p.set(b,x)})}}if(pt.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(o)),s||s!==!1&&t2(o.url))){const v=f&&h&&a2.read(h);v&&p.set(f,v)}return o},i2=typeof XMLHttpRequest<"u",r2=i2&&function(i){return new Promise(function(u,s){const f=Jm(i);let h=f.data;const p=At.from(f.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:y}=f,b,x,D,U,T;function w(){U&&U(),T&&T(),f.cancelToken&&f.cancelToken.unsubscribe(b),f.signal&&f.signal.removeEventListener("abort",b)}let C=new XMLHttpRequest;C.open(f.method.toUpperCase(),f.url,!0),C.timeout=f.timeout;function X(){if(!C)return;const V=At.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),ce={data:!g||g==="text"||g==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:V,config:i,request:C};Zm(function(J){u(J),w()},function(J){s(J),w()},ce),C=null}"onloadend"in C?C.onloadend=X:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(X)},C.onabort=function(){C&&(s(new oe("Request aborted",oe.ECONNABORTED,i,C)),C=null)},C.onerror=function(ie){const ce=ie&&ie.message?ie.message:"Network Error",ye=new oe(ce,oe.ERR_NETWORK,i,C);ye.event=ie||null,s(ye),C=null},C.ontimeout=function(){let ie=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const ce=f.transitional||sc;f.timeoutErrorMessage&&(ie=f.timeoutErrorMessage),s(new oe(ie,ce.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,i,C)),C=null},h===void 0&&p.setContentType(null),"setRequestHeader"in C&&N.forEach(p.toJSON(),function(ie,ce){C.setRequestHeader(ce,ie)}),N.isUndefined(f.withCredentials)||(C.withCredentials=!!f.withCredentials),g&&g!=="json"&&(C.responseType=f.responseType),y&&([D,T]=Wr(y,!0),C.addEventListener("progress",D)),v&&C.upload&&([x,U]=Wr(v),C.upload.addEventListener("progress",x),C.upload.addEventListener("loadend",U)),(f.cancelToken||f.signal)&&(b=V=>{C&&(s(!V||V.type?new gi(null,i,C):V),C.abort(),C=null)},f.cancelToken&&f.cancelToken.subscribe(b),f.signal&&(f.signal.aborted?b():f.signal.addEventListener("abort",b)));const P=Ib(f.url);if(P&&pt.protocols.indexOf(P)===-1){s(new oe("Unsupported protocol "+P+":",oe.ERR_BAD_REQUEST,i));return}C.send(h||null)})},o2=(i,o)=>{const{length:u}=i=i?i.filter(Boolean):[];if(o||u){let s=new AbortController,f;const h=function(y){if(!f){f=!0,g();const b=y instanceof Error?y:this.reason;s.abort(b instanceof oe?b:new gi(b instanceof Error?b.message:b))}};let p=o&&setTimeout(()=>{p=null,h(new oe(`timeout of ${o}ms exceeded`,oe.ETIMEDOUT))},o);const g=()=>{i&&(p&&clearTimeout(p),p=null,i.forEach(y=>{y.unsubscribe?y.unsubscribe(h):y.removeEventListener("abort",h)}),i=null)};i.forEach(y=>y.addEventListener("abort",h));const{signal:v}=s;return v.unsubscribe=()=>N.asap(g),v}},s2=function*(i,o){let u=i.byteLength;if(u<o){yield i;return}let s=0,f;for(;s<u;)f=s+o,yield i.slice(s,f),s=f},u2=async function*(i,o){for await(const u of c2(i))yield*s2(u,o)},c2=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const o=i.getReader();try{for(;;){const{done:u,value:s}=await o.read();if(u)break;yield s}}finally{await o.cancel()}},Jp=(i,o,u,s)=>{const f=u2(i,o);let h=0,p,g=v=>{p||(p=!0,s&&s(v))};return new ReadableStream({async pull(v){try{const{done:y,value:b}=await f.next();if(y){g(),v.close();return}let x=b.byteLength;if(u){let D=h+=x;u(D)}v.enqueue(new Uint8Array(b))}catch(y){throw g(y),y}},cancel(v){return g(v),f.return()}},{highWaterMark:2})},Fp=64*1024,{isFunction:Ur}=N,f2=(({Request:i,Response:o})=>({Request:i,Response:o}))(N.global),{ReadableStream:Wp,TextEncoder:$p}=N.global,Ip=(i,...o)=>{try{return!!i(...o)}catch{return!1}},d2=i=>{i=N.merge.call({skipUndefined:!0},f2,i);const{fetch:o,Request:u,Response:s}=i,f=o?Ur(o):typeof fetch=="function",h=Ur(u),p=Ur(s);if(!f)return!1;const g=f&&Ur(Wp),v=f&&(typeof $p=="function"?(T=>w=>T.encode(w))(new $p):async T=>new Uint8Array(await new u(T).arrayBuffer())),y=h&&g&&Ip(()=>{let T=!1;const w=new u(pt.origin,{body:new Wp,method:"POST",get duplex(){return T=!0,"half"}}).headers.has("Content-Type");return T&&!w}),b=p&&g&&Ip(()=>N.isReadableStream(new s("").body)),x={stream:b&&(T=>T.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!x[T]&&(x[T]=(w,C)=>{let X=w&&w[T];if(X)return X.call(w);throw new oe(`Response type '${T}' is not supported`,oe.ERR_NOT_SUPPORT,C)})});const D=async T=>{if(T==null)return 0;if(N.isBlob(T))return T.size;if(N.isSpecCompliantForm(T))return(await new u(pt.origin,{method:"POST",body:T}).arrayBuffer()).byteLength;if(N.isArrayBufferView(T)||N.isArrayBuffer(T))return T.byteLength;if(N.isURLSearchParams(T)&&(T=T+""),N.isString(T))return(await v(T)).byteLength},U=async(T,w)=>{const C=N.toFiniteNumber(T.getContentLength());return C??D(w)};return async T=>{let{url:w,method:C,data:X,signal:P,cancelToken:V,timeout:ie,onDownloadProgress:ce,onUploadProgress:ye,responseType:J,headers:we,withCredentials:Be="same-origin",fetchOptions:rt}=Jm(T),$e=o||fetch;J=J?(J+"").toLowerCase():"text";let Z=o2([P,V&&V.toAbortSignal()],ie),de=null;const xe=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let Oe;try{if(ye&&y&&C!=="get"&&C!=="head"&&(Oe=await U(we,X))!==0){let S=new u(w,{method:"POST",body:X,duplex:"half"}),B;if(N.isFormData(X)&&(B=S.headers.get("content-type"))&&we.setContentType(B),S.body){const[G,Y]=Qp(Oe,Wr(Zp(ye)));X=Jp(S.body,Fp,G,Y)}}N.isString(Be)||(Be=Be?"include":"omit");const M=h&&"credentials"in u.prototype,Q={...rt,signal:Z,method:C.toUpperCase(),headers:we.normalize().toJSON(),body:X,duplex:"half",credentials:M?Be:void 0};de=h&&new u(w,Q);let ae=await(h?$e(de,rt):$e(w,Q));const Re=b&&(J==="stream"||J==="response");if(b&&(ce||Re&&xe)){const S={};["status","statusText","headers"].forEach(I=>{S[I]=ae[I]});const B=N.toFiniteNumber(ae.headers.get("content-length")),[G,Y]=ce&&Qp(B,Wr(Zp(ce),!0))||[];ae=new s(Jp(ae.body,Fp,G,()=>{Y&&Y(),xe&&xe()}),S)}J=J||"text";let K=await x[N.findKey(x,J)||"text"](ae,T);return!Re&&xe&&xe(),await new Promise((S,B)=>{Zm(S,B,{data:K,headers:At.from(ae.headers),status:ae.status,statusText:ae.statusText,config:T,request:de})})}catch(M){throw xe&&xe(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,T,de,M&&M.response),{cause:M.cause||M}):oe.from(M,M&&M.code,T,de,M&&M.response)}}},h2=new Map,Fm=i=>{let o=i&&i.env||{};const{fetch:u,Request:s,Response:f}=o,h=[s,f,u];let p=h.length,g=p,v,y,b=h2;for(;g--;)v=h[g],y=b.get(v),y===void 0&&b.set(v,y=g?new Map:d2(o)),b=y;return y};Fm();const cc={http:wb,xhr:r2,fetch:{get:Fm}};N.forEach(cc,(i,o)=>{if(i){try{Object.defineProperty(i,"name",{value:o})}catch{}Object.defineProperty(i,"adapterName",{value:o})}});const Pp=i=>`- ${i}`,p2=i=>N.isFunction(i)||i===null||i===!1;function m2(i,o){i=N.isArray(i)?i:[i];const{length:u}=i;let s,f;const h={};for(let p=0;p<u;p++){s=i[p];let g;if(f=s,!p2(s)&&(f=cc[(g=String(s)).toLowerCase()],f===void 0))throw new oe(`Unknown adapter '${g}'`);if(f&&(N.isFunction(f)||(f=f.get(o))))break;h[g||"#"+p]=f}if(!f){const p=Object.entries(h).map(([v,y])=>`adapter ${v} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=u?p.length>1?`since :
|
|
14
|
-
`+p.map(Pp).join(`
|
|
15
|
-
`):" "+Pp(p[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return f}const Wm={getAdapter:m2,adapters:cc};function Uu(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new gi(null,i)}function em(i){return Uu(i),i.headers=At.from(i.headers),i.data=Hu.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),Wm.getAdapter(i.adapter||yi.adapter,i)(i).then(function(s){return Uu(i),s.data=Hu.call(i,i.transformResponse,s),s.headers=At.from(s.headers),s},function(s){return Qm(s)||(Uu(i),s&&s.response&&(s.response.data=Hu.call(i,i.transformResponse,s.response),s.response.headers=At.from(s.response.headers))),Promise.reject(s)})}const $m="1.13.5",ro={};["object","boolean","number","function","string","symbol"].forEach((i,o)=>{ro[i]=function(s){return typeof s===i||"a"+(o<1?"n ":" ")+i}});const tm={};ro.transitional=function(o,u,s){function f(h,p){return"[Axios v"+$m+"] Transitional option '"+h+"'"+p+(s?". "+s:"")}return(h,p,g)=>{if(o===!1)throw new oe(f(p," has been removed"+(u?" in "+u:"")),oe.ERR_DEPRECATED);return u&&!tm[p]&&(tm[p]=!0,console.warn(f(p," has been deprecated since v"+u+" and will be removed in the near future"))),o?o(h,p,g):!0}};ro.spelling=function(o){return(u,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function y2(i,o,u){if(typeof i!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(i);let f=s.length;for(;f-- >0;){const h=s[f],p=o[h];if(p){const g=i[h],v=g===void 0||p(g,h,i);if(v!==!0)throw new oe("option "+h+" must be "+v,oe.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new oe("Unknown option "+h,oe.ERR_BAD_OPTION)}}const Qr={assertOptions:y2,validators:ro},Zt=Qr.validators;let vn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Vp,response:new Vp}}async request(o,u){try{return await this._request(o,u)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{s.stack?h&&!String(s.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
16
|
-
`+h):s.stack=h}catch{}}throw s}}_request(o,u){typeof o=="string"?(u=u||{},u.url=o):u=o||{},u=xn(this.defaults,u);const{transitional:s,paramsSerializer:f,headers:h}=u;s!==void 0&&Qr.assertOptions(s,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean),legacyInterceptorReqResOrdering:Zt.transitional(Zt.boolean)},!1),f!=null&&(N.isFunction(f)?u.paramsSerializer={serialize:f}:Qr.assertOptions(f,{encode:Zt.function,serialize:Zt.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Qr.assertOptions(u,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let p=h&&N.merge(h.common,h[u.method]);h&&N.forEach(["delete","get","head","post","put","patch","common"],T=>{delete h[T]}),u.headers=At.concat(p,h);const g=[];let v=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(u)===!1)return;v=v&&w.synchronous;const C=u.transitional||sc;C&&C.legacyInterceptorReqResOrdering?g.unshift(w.fulfilled,w.rejected):g.push(w.fulfilled,w.rejected)});const y=[];this.interceptors.response.forEach(function(w){y.push(w.fulfilled,w.rejected)});let b,x=0,D;if(!v){const T=[em.bind(this),void 0];for(T.unshift(...g),T.push(...y),D=T.length,b=Promise.resolve(u);x<D;)b=b.then(T[x++],T[x++]);return b}D=g.length;let U=u;for(;x<D;){const T=g[x++],w=g[x++];try{U=T(U)}catch(C){w.call(this,C);break}}try{b=em.call(this,U)}catch(T){return Promise.reject(T)}for(x=0,D=y.length;x<D;)b=b.then(y[x++],y[x++]);return b}getUri(o){o=xn(this.defaults,o);const u=Km(o.baseURL,o.url,o.allowAbsoluteUrls);return Vm(u,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){vn.prototype[o]=function(u,s){return this.request(xn(s||{},{method:o,url:u,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(o){function u(s){return function(h,p,g){return this.request(xn(g||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}vn.prototype[o]=u(),vn.prototype[o+"Form"]=u(!0)});let g2=class Im{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(h){u=h});const s=this;this.promise.then(f=>{if(!s._listeners)return;let h=s._listeners.length;for(;h-- >0;)s._listeners[h](f);s._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(g=>{s.subscribe(g),h=g}).then(f);return p.cancel=function(){s.unsubscribe(h)},p},o(function(h,p,g){s.reason||(s.reason=new gi(h,p,g),u(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const u=this._listeners.indexOf(o);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const o=new AbortController,u=s=>{o.abort(s)};return this.subscribe(u),o.signal.unsubscribe=()=>this.unsubscribe(u),o.signal}static source(){let o;return{token:new Im(function(f){o=f}),cancel:o}}};function v2(i){return function(u){return i.apply(null,u)}}function x2(i){return N.isObject(i)&&i.isAxiosError===!0}const Wu={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Wu).forEach(([i,o])=>{Wu[o]=i});function Pm(i){const o=new vn(i),u=Mm(vn.prototype.request,o);return N.extend(u,vn.prototype,o,{allOwnKeys:!0}),N.extend(u,o,null,{allOwnKeys:!0}),u.create=function(f){return Pm(xn(i,f))},u}const We=Pm(yi);We.Axios=vn;We.CanceledError=gi;We.CancelToken=g2;We.isCancel=Qm;We.VERSION=$m;We.toFormData=io;We.AxiosError=oe;We.Cancel=We.CanceledError;We.all=function(o){return Promise.all(o)};We.spread=v2;We.isAxiosError=x2;We.mergeConfig=xn;We.AxiosHeaders=At;We.formToJSON=i=>Xm(N.isHTMLForm(i)?new FormData(i):i);We.getAdapter=Wm.getAdapter;We.HttpStatusCode=Wu;We.default=We;const{Axios:V2,AxiosError:X2,CanceledError:Q2,isCancel:Z2,CancelToken:K2,VERSION:J2,all:F2,Cancel:W2,isAxiosError:$2,spread:I2,toFormData:P2,AxiosHeaders:eS,HttpStatusCode:tS,formToJSON:aS,getAdapter:nS,mergeConfig:lS}=We,ey="/api",Ue=We.create({baseURL:ey,headers:{"Content-Type":"application/json"}});Ue.interceptors.request.use(i=>{const o=localStorage.getItem("samarthya_token");return o&&(i.headers.Authorization=`Bearer ${o}`),i});const fc={register:i=>Ue.post("/auth/register",i),login:i=>Ue.post("/auth/login",i),demoLogin:()=>Ue.post("/auth/demo"),getProfile:()=>Ue.get("/auth/profile"),updateProfile:i=>Ue.put("/auth/profile",i)},oi={sendMessage:i=>Ue.post("/chat/message",i),getConversations:()=>Ue.get("/chat/conversations"),getConversation:i=>Ue.get(`/chat/conversations/${i}`),deleteConversation:i=>Ue.delete(`/chat/conversations/${i}`),togglePin:i=>Ue.patch(`/chat/conversations/${i}/pin`)},Zr={getLogs:i=>Ue.get("/audit/logs",{params:i}),getStats:()=>Ue.get("/audit/stats"),rollback:i=>Ue.post(`/audit/rollback/${i}`)},Lu={getAll:()=>Ue.get("/tools"),getPacks:()=>Ue.get("/tools/packs"),getPackTools:i=>Ue.get(`/tools/packs/${i}`)},b2={analyze:(i,o)=>Ue.post("/screen/analyze",{image:i,prompt:o}),getSupported:()=>Ue.get("/screen/supported")},yn={list:i=>Ue.get("/files/list",{params:{path:i}}),read:i=>Ue.get("/files/read",{params:{path:i}}),download:i=>`${ey}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,o)=>Ue.post("/files/mkdir",{name:i,parentPath:o}),upload:(i,o,u)=>Ue.post("/files/upload",{filename:i,content:o,parentPath:u}),deleteFile:i=>Ue.delete("/files/delete",{params:{path:i}}),getStats:()=>Ue.get("/files/stats")},qu={getStatus:()=>Ue.get("/platform/status"),getJobs:()=>Ue.get("/platform/jobs"),emergencyStop:()=>Ue.post("/platform/emergency-stop")},S2=[{emoji:"🔍",text:"Web search karo",textEn:"Search the web"},{emoji:"📝",text:"Note likh do",textEn:"Take a note"},{emoji:"🧮",text:"Calculate karo",textEn:"Do a calculation"},{emoji:"⏰",text:"Reminder set karo",textEn:"Set a reminder"},{emoji:"📅",text:"Calendar mein add karo",textEn:"Add to calendar"},{emoji:"💳",text:"UPI link banao",textEn:"Generate UPI link"}],E2=i=>{if(!i)return"";const o=new Date(i);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},j2=i=>{const o={};return i.forEach(u=>{const s=u.createdAt?new Date(u.createdAt):new Date;if(isNaN(s))return;const f=new Date,h=new Date;h.setDate(f.getDate()-1);let p;s.toDateString()===f.toDateString()?p="Today":s.toDateString()===h.toDateString()?p="Yesterday":p=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[p]||(o[p]=[]),o[p].push(u)}),o},am=i=>i?i.split(`
|
|
17
|
-
`).map((o,u)=>{const s=[];let f=o;const h=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let p;for(;(p=h.exec(f))!==null;){if(p.index>0){const g=f.substring(0,p.index);s.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`t-${p.index}`))}s.push(c.jsx("a",{href:p[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:p[1].replace(/\*\*/g,"")},`l-${p.index}`)),f=f.substring(p.index+p[0].length)}if(f.length>0){let g=f;g.startsWith("- ")&&(g="• "+g.substring(2)),s.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`end-${u}`))}return c.jsxs($r.Fragment,{children:[s.length>0?s:c.jsx("span",{children:o.replace(/\*\*/g,"")}),c.jsx("br",{})]},u)}):null;function nm({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(null),[h,p]=A.useState([]),[g,v]=A.useState(""),[y,b]=A.useState(!1),[x,D]=A.useState(!1),[U,T]=A.useState(!1),[w,C]=A.useState(!1),[X,P]=A.useState(null),V=A.useRef(null),ie=A.useRef(null),[ce,ye]=A.useState(""),J=A.useRef(null),we=A.useRef(null),Be=A.useRef(null);A.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const rt=K=>{const S=K||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const B=window.AudioContext||window.webkitAudioContext;if(B){V.current=new B;const G=V.current.createOscillator(),Y=V.current.createGain();G.type="triangle",G.frequency.setValueAtTime(600,V.current.currentTime),setInterval(()=>{ie.current&&V.current&&(G.frequency.setValueAtTime(800,V.current.currentTime),G.frequency.exponentialRampToValueAtTime(400,V.current.currentTime+.3))},500),Y.gain.value=.1,G.connect(Y),Y.connect(V.current.destination),G.start(),ie.current=G}P(S)},$e=()=>{P(null),ie.current&&(ie.current.stop(),ie.current=null),V.current&&(V.current.close(),V.current=null)};A.useEffect(()=>(xe(),Z(),()=>{J.current&&J.current.abort()}),[]),A.useEffect(()=>{we.current?.scrollIntoView({behavior:"smooth"})},[h]);const Z=()=>{const K=window.SpeechRecognition||window.webkitSpeechRecognition;if(!K)return;C(!0);const S=new K;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=B=>{let G="";for(let Y=0;Y<B.results.length;Y++)G+=B.results[Y][0].transcript;ye(G),v(G),B.results[B.results.length-1].isFinal&&setTimeout(()=>{T(!1),G.trim()&&M(G.trim())},500)},S.onerror=B=>{console.error("Voice error:",B.error),T(!1)},S.onend=()=>{T(!1)},J.current=S},de=()=>{J.current&&(U?(J.current.stop(),T(!1)):(ye(""),J.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",J.current.start(),T(!0)))},xe=async()=>{try{const K=await oi.getConversations();u(K.data.conversations||[])}catch{console.error("Failed to load conversations")}},Oe=async K=>{try{const S=await oi.getConversation(K);f(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},M=async K=>{const S=K||g.trim();if(!S||y)return;v("");const B={role:"user",content:S,createdAt:new Date};p(G=>[...G,B]),b(!0),D(!0);try{const Y=(await oi.sendMessage({message:S,conversationId:s?._id})).data;s||(f({_id:Y.conversationId}),xe());const I={role:"assistant",content:Y.message.content,toolCalls:Y.message.toolCalls,sensitiveDataWarnings:Y.message.sensitiveDataWarnings,createdAt:new Date};p(se=>[...se,I]),I.toolCalls&&I.toolCalls.forEach(se=>{if(se.toolName==="reminder_set"&&se.notificationParams){const{delayMs:Te,message:ot}=se.notificationParams;setTimeout(()=>{rt(ot)},Te||5e3)}})}catch{p(Y=>[...Y,{role:"assistant",content:i?.language==="english"?"❌ Oops, an error occurred. Check the server or try again.":"❌ Arre, kuch error aa gaya. Server check karo ya dubara try karo.",createdAt:new Date}])}finally{b(!1),D(!1),Be.current?.focus()}},Q=()=>{f(null),p([]),Be.current?.focus()},ae=async(K,S)=>{S.stopPropagation();try{await oi.deleteConversation(K),s?._id===K&&Q(),xe()}catch{console.error("Delete failed")}},Re=K=>{K.key==="Enter"&&!K.shiftKey&&(K.preventDefault(),M())};return c.jsxs("div",{style:$.container,children:[X&&c.jsx("div",{style:$.alarmPopupLayer,children:c.jsxs("div",{style:$.alarmBox,children:[c.jsx("div",{style:$.alarmIcon,children:"⏰"}),c.jsxs("div",{style:$.alarmContent,children:[c.jsx("h4",{style:$.alarmTitle,children:"Reminder"}),c.jsx("p",{style:$.alarmMessage,children:X})]}),c.jsx("button",{onClick:$e,style:$.alarmStopBtn,children:"Stop Alarm"})]})}),c.jsxs("div",{style:$.convSidebar,children:[c.jsxs("div",{style:$.convHeader,children:[c.jsx("h3",{style:$.convTitle,children:"💬 Conversations"}),c.jsx("button",{onClick:Q,style:$.newBtn,title:"New Chat",children:c.jsx(mx,{size:18})})]}),c.jsxs("div",{style:$.convList,children:[o.map(K=>c.jsxs("button",{onClick:()=>Oe(K._id),style:{...$.convItem,...s?._id===K._id?$.convItemActive:{}},children:[c.jsx("span",{style:$.convItemTitle,children:K.title}),c.jsx("div",{style:$.convActions,children:c.jsx("button",{onClick:S=>ae(K._id,S),style:$.convDelBtn,children:c.jsx(_m,{size:14})})})]},K._id)),o.length===0&&c.jsx("p",{style:$.emptyConv,children:i?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),c.jsxs("div",{style:$.chatArea,children:[U&&c.jsxs("div",{style:$.voiceOverlay,children:[c.jsx("div",{style:$.voicePulseRing,children:c.jsx(kp,{size:36,color:"#FF9933"})}),c.jsx("p",{style:$.voiceText,children:ce||(i?.language==="hindi"?"बोलिए...":i?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),c.jsx("p",{style:$.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),c.jsxs("button",{onClick:de,style:$.voiceStopBtn,children:[c.jsx(sx,{size:18})," Stop Listening"]})]}),c.jsxs("div",{style:$.messages,children:[h.length===0&&c.jsxs("div",{style:$.welcome,children:[c.jsx("div",{style:$.welcomeLogo,children:"स"}),c.jsxs("h2",{style:$.welcomeTitle,children:[i?.language==="english"?"Hello":"Namaste",", ",i?.name||"User","! 🙏"]}),c.jsx("p",{style:$.welcomeSubtitle,children:i?.language==="english"?"I am SamarthyaBot, your personal AI assistant. How can I help you today?":"Main SamarthyaBot hoon, aapka personal AI assistant. Kaise madad kar sakta hoon?"}),c.jsx("div",{style:$.quickActions,children:S2.map((K,S)=>c.jsxs("button",{onClick:()=>M(i?.language==="english"?K.textEn:K.text),style:$.quickActionBtn,children:[c.jsx("span",{style:$.quickEmoji,children:K.emoji}),c.jsx("span",{children:i?.language==="english"?K.textEn:K.text})]},S))})]}),Object.entries(j2(h)).map(([K,S],B)=>c.jsxs($r.Fragment,{children:[c.jsx("div",{style:$.dateDivider,children:c.jsx("span",{style:$.dateBadge,children:K})}),S.map((G,Y)=>c.jsxs("div",{style:{...$.message,...G.role==="user"?$.userMessage:$.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[c.jsx("div",{style:G.role==="user"?$.userAvatar:$.assistantAvatar,children:G.role==="user"?c.jsx(Om,{size:16}):c.jsx(Dp,{size:16})}),c.jsxs("div",{style:$.messageContent,children:[G.sensitiveDataWarnings?.length>0&&c.jsxs("div",{style:$.warningBanner,children:[c.jsx(wm,{size:14}),c.jsxs("span",{children:["⚠️ Sensitive data detected: ",G.sensitiveDataWarnings.map(I=>I.type).join(", ")]})]}),c.jsx("div",{style:$.messageText,children:am(G.content)}),G.toolCalls?.length>0&&c.jsx("div",{style:$.toolCalls,children:G.toolCalls.map((I,se)=>c.jsxs("div",{style:$.toolCall,children:[c.jsxs("div",{style:$.toolCallHeader,children:[c.jsxs("span",{style:{...$.toolBadge,background:I.status==="completed"?"rgba(16,185,129,0.15)":I.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:I.status==="completed"?"#10b981":I.status==="blocked"?"#ef4444":"#f59e0b"},children:[I.status==="completed"?"✅":I.status==="blocked"?"🚫":"⏳"," ",I.toolName]}),c.jsxs("span",{style:$.toolRisk,children:["Risk: ",I.riskLevel]})]}),I.result&&c.jsx("div",{style:$.toolResult,children:am(I.result)})]},se))}),c.jsx("div",{style:{...$.msgTime,color:G.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:E2(G.createdAt)})]})]},`msg-${B}-${Y}`))]},`group-${B}`)),x&&c.jsxs("div",{style:{...$.message,...$.assistantMessage},children:[c.jsx("div",{style:$.assistantAvatar,children:c.jsx(Dp,{size:16})}),c.jsxs("div",{style:$.typingIndicator,children:[c.jsx("span",{style:{...$.typingDot,animationDelay:"0s"}}),c.jsx("span",{style:{...$.typingDot,animationDelay:"0.2s"}}),c.jsx("span",{style:{...$.typingDot,animationDelay:"0.4s"}})]})]}),c.jsx("div",{ref:we})]}),c.jsxs("div",{style:$.inputArea,children:[c.jsxs("div",{style:$.inputWrap,children:[c.jsx("textarea",{ref:Be,value:g,onChange:K=>v(K.target.value),onKeyDown:Re,placeholder:i?.language==="hindi"?"यहां टाइप करें...":i?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:$.textarea,rows:1,disabled:y}),c.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:K=>{K&&(K._screenInput=!0)},id:"screenInput",onChange:async K=>{const S=K.target.files?.[0];if(S){b(!0),p(B=>[...B,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),D(!0);try{const B=new FileReader;B.onload=async()=>{const G=B.result,Y=await b2.analyze(G,g.trim()||"Is screenshot mein kya hai? Next step batao.");p(I=>[...I,{role:"assistant",content:`👁️ **Screen Analysis:**
|
|
18
|
-
|
|
19
|
-
${Y.data.analysis.content}`,createdAt:new Date}]),v("")},B.readAsDataURL(S)}catch{p(G=>[...G,{role:"assistant",content:i?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{b(!1),D(!1),K.target.value=""}}}}),c.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:$.voiceBtn,title:"Screenshot upload for AI analysis",children:c.jsx(Ev,{size:20})}),w&&c.jsx("button",{onClick:de,style:{...$.voiceBtn,...U?$.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:c.jsx(kp,{size:20})}),c.jsx("button",{onClick:()=>M(),disabled:y||!g.trim(),style:{...$.sendBtn,opacity:y||!g.trim()?.5:1},children:y?c.jsx(ix,{size:20,style:{animation:"spin 1s linear infinite"}}):c.jsx(jx,{size:20})})]}),c.jsx("p",{style:$.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const $={container:{display:"flex",height:"100vh",background:"var(--bg-primary)"},alarmPopupLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},alarmBox:{background:"rgba(20, 20, 35, 0.95)",border:"2px solid rgba(255, 107, 0, 0.5)",borderRadius:"var(--radius-lg)",padding:"32px",boxShadow:"0 20px 50px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",maxWidth:"400px",textAlign:"center",animation:"pulseAlarm 1s infinite alternate"},alarmIcon:{fontSize:"4rem",animation:"ringAlarm 0.5s infinite alternate"},alarmTitle:{fontSize:"1.4rem",fontWeight:"bold",color:"var(--text-primary)",margin:0},alarmMessage:{fontSize:"1.1rem",color:"var(--text-secondary)",margin:0},alarmStopBtn:{background:"#ef4444",color:"white",border:"none",borderRadius:"var(--radius-md)",padding:"12px 24px",fontSize:"1rem",fontWeight:"bold",cursor:"pointer",boxShadow:"0 4px 15px rgba(239,68,68,0.3)",transition:"all 0.2s ease"},convSidebar:{width:"280px",minWidth:"200px",maxWidth:"500px",resize:"horizontal",overflowX:"hidden",background:"var(--bg-secondary)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",flexShrink:0},convHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)"},convTitle:{fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},newBtn:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)"},convList:{flex:1,overflow:"auto",padding:"8px"},convItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"12px",background:"transparent",border:"none",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",textAlign:"left",transition:"all var(--transition-fast)",marginBottom:"2px"},convItemActive:{background:"rgba(255, 153, 51, 0.1)",color:"var(--text-primary)"},convItemTitle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},convActions:{display:"flex",gap:"4px",flexShrink:0},convDelBtn:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",transition:"all var(--transition-fast)"},emptyConv:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem"},chatArea:{flex:1,display:"flex",flexDirection:"column",minWidth:0},messages:{flex:1,overflow:"auto",padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},welcome:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,textAlign:"center",padding:"40px 20px",animation:"fadeInUp 0.6s ease-out"},welcomeLogo:{fontSize:"4rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",marginBottom:"16px",animation:"float 4s ease-in-out infinite"},welcomeTitle:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},welcomeSubtitle:{fontSize:"1rem",color:"var(--text-muted)",marginBottom:"32px",maxWidth:"500px",fontFamily:"var(--font-primary)"},dateDivider:{display:"flex",justifyContent:"center",margin:"16px 0",width:"100%"},dateBadge:{backgroundColor:"var(--bg-card)",color:"var(--text-muted)",fontSize:"0.75rem",padding:"4px 12px",borderRadius:"16px",border:"1px solid var(--border-subtle)"},quickActions:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",maxWidth:"680px",width:"100%"},quickActionBtn:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",textAlign:"left"},quickEmoji:{fontSize:"1.2rem"},message:{display:"flex",gap:"12px",maxWidth:"85%",animation:"fadeIn 0.3s ease-out"},userMessage:{alignSelf:"flex-end",flexDirection:"row-reverse"},assistantMessage:{alignSelf:"flex-start"},userAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-saffron)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},assistantAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},messageContent:{maxWidth:"100%"},messageText:{padding:"14px 18px",borderRadius:"var(--radius-lg)",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)",fontSize:"0.9rem",lineHeight:1.7,wordBreak:"break-word"},warningBanner:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-sm)",color:"#f59e0b",fontSize:"0.8rem",marginBottom:"8px"},msgTime:{fontSize:"0.7rem",textAlign:"right",marginTop:"4px",fontWeight:"500"},toolCalls:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"6px"},toolCall:{padding:"10px 14px",background:"rgba(99, 102, 241, 0.06)",border:"1px solid rgba(99, 102, 241, 0.15)",borderRadius:"var(--radius-sm)",fontSize:"0.8rem"},toolCallHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"},toolBadge:{padding:"2px 8px",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:600},toolRisk:{fontSize:"0.7rem",color:"var(--text-muted)",textTransform:"uppercase"},toolResult:{color:"var(--text-secondary)",fontSize:"0.8rem",lineHeight:1.5,whiteSpace:"pre-wrap"},typingIndicator:{display:"flex",gap:"6px",padding:"14px 18px",background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)"},typingDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",animation:"typing 1.4s ease-in-out infinite",display:"inline-block"},inputArea:{padding:"16px 24px 20px",borderTop:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},inputWrap:{display:"flex",alignItems:"flex-end",gap:"12px",padding:"6px 6px 6px 18px",background:"var(--bg-input)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-lg)",transition:"all var(--transition-normal)"},textarea:{flex:1,background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.95rem",padding:"10px 0",resize:"none",outline:"none",maxHeight:"120px",lineHeight:1.5},sendBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"#0D0D0D",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"transparent",border:"1px solid var(--border-subtle)",color:"var(--text-muted)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"var(--accent-saffron)",color:"var(--accent-saffron)",animation:"voicePulse 1.5s infinite"},voiceOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(13, 13, 13, 0.92)",backdropFilter:"blur(20px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:50,animation:"fadeIn 0.3s ease-out",gap:"16px"},voicePulseRing:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255, 153, 51, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 1.5s infinite"},voiceText:{fontSize:"1.2rem",fontWeight:600,color:"var(--text-primary)",maxWidth:"400px",textAlign:"center"},voiceHint:{fontSize:"0.82rem",color:"var(--text-muted)"},voiceStopBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",color:"#ef4444",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)"},inputHint:{fontSize:"0.7rem",color:"var(--text-muted)",textAlign:"center",marginTop:"8px"}};function A2({user:i}){const o=eo(),[u,s]=A.useState(null),[f,h]=A.useState(null),[p,g]=A.useState([]),[v,y]=A.useState([]),[b,x]=A.useState(!0);A.useEffect(()=>{U();const w=setInterval(()=>{D()},15e3);return()=>clearInterval(w)},[]);const D=async()=>{try{const[w,C]=await Promise.all([qu.getStatus().catch(()=>({data:{status:null}})),qu.getJobs().catch(()=>({data:{jobs:[]}}))]);h(w.data.status),g(C.data.jobs||[])}catch{}},U=async()=>{x(!0);try{const[w,C]=await Promise.all([oi.getConversations().catch(()=>({data:{conversations:[]}})),Zr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);y(w.data.conversations?.slice(0,5)||[]),s(C.data.stats),await D()}catch(w){console.error("Dashboard load error:",w)}finally{x(!1)}},T=w=>{if(!w)return"0h 0m";const C=Math.floor(w/3600),X=Math.floor(w%3600/60);return`${C}h ${X}m`};return b?c.jsx("div",{style:{...ee.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:c.jsx(Yr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):c.jsxs("div",{style:ee.container,children:[c.jsxs("div",{style:ee.header,children:[c.jsxs("div",{children:[c.jsx("h1",{style:ee.title,children:"Control Center"}),c.jsxs("div",{style:ee.systemBadge,children:[c.jsx(Rx,{size:14})," System Online • OS: ",f?.osName||"SamarthyaOS"]})]}),c.jsxs("div",{style:ee.headerActions,children:[c.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await qu.emergencyStop(),D(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:ee.dangerBtn,title:"Emergency Kill Switch",children:[c.jsx(Hp,{size:18})," Kill Switch"]}),c.jsxs("button",{onClick:()=>o("/tools"),style:ee.secondaryBtn,children:[c.jsx(Fr,{size:18})," Modules"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.newChatBtn,children:[c.jsx(di,{size:18})," Spawn Agent"]})]})]}),c.jsx("h3",{style:ee.sectionTitle,children:"System Vitals"}),c.jsxs("div",{style:ee.statsGrid,children:[c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#6366f120",color:"#6366f1"},children:c.jsx(Qu,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:T(f?.uptime)}),c.jsx("div",{style:ee.statLabel,children:"Agent Uptime"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#14b8a620",color:"#14b8a6"},children:c.jsx(Hv,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsxs("div",{style:ee.statValue,children:[f?.ramUsage||0,"%"]}),c.jsx("div",{style:ee.statLabel,children:"Memory Load"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:c.jsx(hx,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsxs("div",{style:ee.statValue,children:[f?.totalTools||0," / ",f?.loadedPlugins||0]}),c.jsx("div",{style:ee.statLabel,children:"Core Tools / Plugins"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:c.jsx(Yr,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:u?.totalActions||0}),c.jsx("div",{style:ee.statLabel,children:"Tasks Executed"})]})]})]}),c.jsxs("div",{style:ee.mainGrid,children:[c.jsxs("div",{style:{...ee.card,gridColumn:"span 2"},children:[c.jsxs("div",{style:ee.cardHeader,children:[c.jsxs("h3",{style:ee.cardTitle,children:[c.jsx(Yr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),c.jsxs("span",{style:ee.liveBadge,children:[c.jsx("span",{style:ee.pulseDot})," LIVE"]})]}),c.jsx("div",{style:ee.cardBody,children:p.length>0?c.jsx("div",{style:ee.jobsList,children:p.map(w=>c.jsxs("div",{style:ee.jobCard,children:[c.jsxs("div",{style:ee.jobHeader,children:[c.jsx("span",{style:ee.jobName,children:w.taskName}),c.jsx("span",{style:w.isActive?ee.jobActive:ee.jobInactive,children:w.isActive?"RUNNING":"STOPPED"})]}),c.jsxs("div",{style:ee.jobPrompt,children:['"',w.prompt,'"']}),c.jsxs("div",{style:ee.jobMeta,children:[c.jsxs("span",{children:[c.jsx(Qu,{size:12})," Interval: ",w.intervalMinutes,"m"]}),c.jsxs("span",{children:[c.jsx(Mv,{size:12})," Next Run: ",new Date(w.nextRunAt).toLocaleTimeString()]})]})]},w._id))}):c.jsxs("div",{style:ee.emptyState,children:[c.jsx(ic,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),c.jsx("p",{children:"No autonomous background tasks running."}),c.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),c.jsxs("div",{style:ee.card,children:[c.jsxs("div",{style:ee.cardHeader,children:[c.jsxs("h3",{style:ee.cardTitle,children:[c.jsx(zm,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.viewAllBtn,children:["View All ",c.jsx(ui,{size:14})]})]}),c.jsx("div",{style:ee.cardBody,children:v.length>0?v.map(w=>c.jsxs("button",{onClick:()=>o(`/chat/${w._id}`),style:ee.convRow,children:[c.jsx("div",{style:ee.convDot}),c.jsxs("div",{style:ee.convInfo,children:[c.jsx("span",{style:ee.convName,children:w.title}),c.jsxs("span",{style:ee.convTime,children:[new Date(w.updatedAt).toLocaleDateString()," ",new Date(w.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),c.jsx(ui,{size:14,style:{color:"var(--text-muted)"}})]},w._id)):c.jsx("div",{style:ee.emptyState,children:c.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),c.jsxs("div",{style:ee.bannerGrid,children:[c.jsxs("div",{style:ee.vaultBanner,children:[c.jsx(ll,{size:24,style:{color:"#10b981"}}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),c.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),c.jsx("button",{onClick:()=>o("/settings"),style:ee.outlineBtn,children:"Configure"})]}),c.jsxs("div",{style:ee.pluginBanner,children:[c.jsx(Hp,{size:24,style:{color:"#f59e0b"}}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),c.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const ee={container:{padding:"28px 32px",maxWidth:"1200px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"32px",flexWrap:"wrap",gap:"16px"},title:{fontSize:"2rem",fontWeight:800,color:"var(--text-primary)",letterSpacing:"-0.5px"},systemBadge:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",background:"rgba(16, 185, 129, 0.15)",color:"#10b981",borderRadius:"4px",fontSize:"0.8rem",fontWeight:600,marginTop:"8px"},headerActions:{display:"flex",gap:"12px"},dangerBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s"},secondaryBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},newChatBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.95rem",fontWeight:600,cursor:"pointer",boxShadow:"0 4px 14px rgba(99,102,241,0.3)",transition:"all 0.2s"},sectionTitle:{fontSize:"1.2rem",fontWeight:600,marginBottom:"16px",color:"var(--text-secondary)"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"20px",marginBottom:"32px"},statCard:{padding:"20px",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",gap:"16px",boxShadow:"0 2px 10px rgba(0,0,0,0.02)"},statIcon:{width:"44px",height:"44px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},statInfo:{flex:1},statValue:{fontSize:"1.5rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.85rem",color:"var(--text-muted)",fontWeight:500},mainGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:"24px",marginBottom:"28px"},card:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid var(--border-subtle)",background:"rgba(0,0,0,0.02)"},cardTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},liveBadge:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",fontWeight:700,color:"#10b981",background:"rgba(16, 185, 129, 0.1)",padding:"4px 8px",borderRadius:"4px"},pulseDot:{width:"6px",height:"6px",backgroundColor:"#10b981",borderRadius:"50%",boxShadow:"0 0 0 0 rgba(16, 185, 129, 0.7)",animation:"pulse 1.5s infinite"},viewAllBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"var(--accent-primary)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer"},cardBody:{padding:"16px"},jobsList:{display:"flex",flexDirection:"column",gap:"12px"},jobCard:{background:"var(--bg-main)",border:"1px solid var(--border-subtle)",borderRadius:"8px",padding:"14px"},jobHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},jobName:{fontWeight:600,fontSize:"0.95rem",color:"var(--text-primary)"},jobActive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(16, 185, 129, 0.1)",color:"#10b981",borderRadius:"4px",fontWeight:700},jobInactive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"4px",fontWeight:700},jobPrompt:{fontSize:"0.85rem",color:"var(--text-secondary)",fontStyle:"italic",lineHeight:1.4,marginBottom:"10px"},jobMeta:{display:"flex",gap:"16px",fontSize:"0.75rem",color:"var(--text-muted)"},convRow:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",borderRadius:"8px",background:"transparent",border:"none",width:"100%",cursor:"pointer",textAlign:"left",color:"var(--text-primary)"},convDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",flexShrink:0},convInfo:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},convName:{fontSize:"0.9rem",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},convTime:{fontSize:"0.75rem",color:"var(--text-muted)"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"40px 16px",color:"var(--text-muted)",textAlign:"center"},bannerGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"20px"},vaultBanner:{background:"linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.05) 100%)",border:"1px solid rgba(16,185,129,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},pluginBanner:{background:"linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(217,119,6,0.05) 100%)",border:"1px solid rgba(245,158,11,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},outlineBtn:{padding:"6px 16px",fontSize:"0.8rem",background:"transparent",border:"1px solid #10b981",color:"#10b981",borderRadius:"4px",cursor:"pointer",fontWeight:600}},dc=document.createElement("style");dc.type="text/css";dc.innerText=`
|
|
20
|
-
@keyframes pulse {
|
|
21
|
-
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
|
|
22
|
-
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
|
|
23
|
-
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
|
|
24
|
-
}
|
|
25
|
-
`;document.head.appendChild(dc);function R2({user:i,onUpdate:o}){const[u,s]=A.useState({name:i?.name||"",language:i?.language||"hinglish",city:i?.city||"",permissions:i?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[f,h]=A.useState(!1),[p,g]=A.useState(!1),v=async()=>{h(!0);try{const x=await fc.updateProfile(u);o(x.data.user),g(!0),setTimeout(()=>g(!1),3e3)}catch{console.error("Save failed")}finally{h(!1)}},y=[{value:"ask",label:"🔔 Ask Every Time",labelHi:"हर बार पूछो"},{value:"allow_always",label:"✅ Always Allow",labelHi:"हमेशा अनुमति"},{value:"allow_once",label:"☑️ Allow Once",labelHi:"एक बार अनुमति"},{value:"never",label:"🚫 Never Allow",labelHi:"कभी नहीं"}],b=[{key:"fileAccess",label:"File Access",labelHi:"फ़ाइल एक्सेस",icon:"📁",desc:"Read, write, and delete files on your system"},{key:"emailAccess",label:"Email Access",labelHi:"ईमेल एक्सेस",icon:"📧",desc:"Send and read emails on your behalf"},{key:"browserAccess",label:"Browser Automation",labelHi:"ब्राउज़र ऑटोमेशन",icon:"🌐",desc:"Automate web browsing, form filling, scraping"},{key:"calendarAccess",label:"Calendar Access",labelHi:"कैलेंडर एक्सेस",icon:"📅",desc:"Schedule and manage calendar events"}];return c.jsxs("div",{style:Ee.container,children:[c.jsxs("div",{style:Ee.header,children:[c.jsx("h1",{style:Ee.title,children:"⚙️ Settings"}),c.jsx("button",{onClick:v,disabled:f,style:Ee.saveBtn,children:p?c.jsxs(c.Fragment,{children:[c.jsx(Jr,{size:18})," Saved!"]}):f?"Saving...":c.jsxs(c.Fragment,{children:[c.jsx(Sx,{size:18})," Save Changes"]})})]}),c.jsxs("div",{style:Ee.grid,children:[c.jsxs("div",{style:Ee.section,children:[c.jsxs("div",{style:Ee.sectionHeader,children:[c.jsx(Om,{size:20,style:{color:"var(--accent-primary)"}}),c.jsx("h2",{style:Ee.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),c.jsxs("div",{style:Ee.sectionBody,children:[c.jsxs("div",{style:Ee.field,children:[c.jsx("label",{style:Ee.label,children:"Name / नाम"}),c.jsx("input",{style:Ee.input,value:u.name,onChange:x=>s({...u,name:x.target.value}),placeholder:"Your name"})]}),c.jsxs("div",{style:Ee.field,children:[c.jsx("label",{style:Ee.label,children:"City / शहर"}),c.jsx("input",{style:Ee.input,value:u.city,onChange:x=>s({...u,city:x.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),c.jsxs("div",{style:Ee.section,children:[c.jsxs("div",{style:Ee.sectionHeader,children:[c.jsx(Cm,{size:20,style:{color:"var(--accent-saffron)"}}),c.jsx("h2",{style:Ee.sectionTitle,children:"Language / भाषा"})]}),c.jsx("div",{style:Ee.sectionBody,children:c.jsx("div",{style:Ee.langOptions,children:[{value:"hinglish",label:"Hinglish",desc:"Hindi + English mix",icon:"🗣️"},{value:"hindi",label:"हिंदी",desc:"Pure Hindi responses",icon:"🇮🇳"},{value:"english",label:"English",desc:"English only",icon:"🌍"}].map(x=>c.jsxs("button",{onClick:()=>s({...u,language:x.value}),style:{...Ee.langCard,...u.language===x.value?Ee.langCardActive:{}},children:[c.jsx("span",{style:Ee.langIcon,children:x.icon}),c.jsx("span",{style:Ee.langLabel,children:x.label}),c.jsx("span",{style:Ee.langDesc,children:x.desc}),u.language===x.value&&c.jsx(Jr,{size:16,style:Ee.langCheck})]},x.value))})})]}),c.jsxs("div",{style:Ee.section,children:[c.jsxs("div",{style:Ee.sectionHeader,children:[c.jsx(ll,{size:20,style:{color:"var(--accent-rose)"}}),c.jsx("h2",{style:Ee.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),c.jsx("div",{style:Ee.sectionBody,children:b.map(x=>c.jsxs("div",{style:Ee.permRow,children:[c.jsxs("div",{style:Ee.permInfo,children:[c.jsx("span",{style:Ee.permIcon,children:x.icon}),c.jsxs("div",{children:[c.jsx("div",{style:Ee.permLabel,children:x.label}),c.jsx("div",{style:Ee.permDesc,children:x.desc})]})]}),c.jsx("select",{style:Ee.permSelect,value:u.permissions[x.key],onChange:D=>s({...u,permissions:{...u.permissions,[x.key]:D.target.value}}),children:y.map(D=>c.jsx("option",{value:D.value,children:D.label},D.value))})]},x.key))})]})]})]})}const Ee={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},saveBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 22px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},grid:{display:"flex",flexDirection:"column",gap:"20px"},section:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:"10px",padding:"18px 22px",borderBottom:"1px solid var(--border-subtle)"},sectionTitle:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},sectionBody:{padding:"22px"},field:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"16px",flex:1},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"11px 16px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.9rem",outline:"none",transition:"all 0.2s"},langOptions:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},langCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"18px 14px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer",transition:"all var(--transition-fast)",fontFamily:"var(--font-primary)",position:"relative",color:"var(--text-primary)"},langCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},langIcon:{fontSize:"1.5rem"},langLabel:{fontWeight:600,fontSize:"0.9rem"},langDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},langCheck:{position:"absolute",top:"8px",right:"8px",color:"var(--accent-primary)"},permRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:"1px solid var(--border-subtle)",gap:"16px"},permInfo:{display:"flex",alignItems:"center",gap:"12px",flex:1},permIcon:{fontSize:"1.3rem"},permLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},permDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},permSelect:{padding:"8px 12px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.8rem",outline:"none",minWidth:"170px"}},Gu={file:{bg:"rgba(99,102,241,0.1)",color:"#6366f1",icon:"📁"},email:{bg:"rgba(14,165,233,0.1)",color:"#0ea5e9",icon:"📧"},browser:{bg:"rgba(245,158,11,0.1)",color:"#f59e0b",icon:"🌐"},calendar:{bg:"rgba(16,185,129,0.1)",color:"#10b981",icon:"📅"},search:{bg:"rgba(139,92,246,0.1)",color:"#8b5cf6",icon:"🔍"},system:{bg:"rgba(107,114,128,0.1)",color:"#6b7280",icon:"⚙️"},security:{bg:"rgba(244,63,94,0.1)",color:"#f43f5e",icon:"🔐"},tool:{bg:"rgba(20,184,166,0.1)",color:"#14b8a6",icon:"🛠️"}},lm={success:{bg:"rgba(16,185,129,0.15)",color:"#10b981"},failed:{bg:"rgba(239,68,68,0.15)",color:"#ef4444"},blocked:{bg:"rgba(245,158,11,0.15)",color:"#f59e0b"},rolled_back:{bg:"rgba(139,92,246,0.15)",color:"#8b5cf6"}};function T2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(null),[h,p]=A.useState(""),[g,v]=A.useState(!0);A.useEffect(()=>{y()},[h]);const y=async()=>{v(!0);try{const x={};h&&(x.category=h);const[D,U]=await Promise.all([Zr.getLogs(x),Zr.getStats()]);u(D.data.logs||[]),f(U.data.stats||null)}catch{console.error("Failed to load audit data"),u([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{v(!1)}},b=async x=>{try{await Zr.rollback(x),y()}catch{console.error("Rollback failed")}};return c.jsxs("div",{style:me.container,children:[c.jsx("div",{style:me.header,children:c.jsxs("div",{children:[c.jsx("h1",{style:me.title,children:"🔐 Audit Log / ऑडिट लॉग"}),c.jsx("p",{style:me.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),c.jsxs("div",{style:me.statsRow,children:[c.jsxs("div",{style:me.statCard,children:[c.jsx(Yr,{size:20,style:{color:"var(--accent-primary)"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.totalActions||0}),c.jsx("div",{style:me.statLabel,children:"Total Actions"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(ll,{size:20,style:{color:"#10b981"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.success||0}),c.jsx("div",{style:me.statLabel,children:"Successful"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(wm,{size:20,style:{color:"#f59e0b"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.blocked||0}),c.jsx("div",{style:me.statLabel,children:"Blocked"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(Up,{size:20,style:{color:"#8b5cf6"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.rolled_back||0}),c.jsx("div",{style:me.statLabel,children:"Rolled Back"})]})]})]}),c.jsxs("div",{style:me.filters,children:[c.jsx(Pv,{size:16,style:{color:"var(--text-muted)"}}),c.jsx("button",{onClick:()=>p(""),style:{...me.filterBtn,...h===""?me.filterBtnActive:{}},children:"All"}),Object.entries(Gu).map(([x,D])=>c.jsxs("button",{onClick:()=>p(x),style:{...me.filterBtn,...h===x?me.filterBtnActive:{}},children:[D.icon," ",x]},x))]}),c.jsx("div",{style:me.timeline,children:g?c.jsxs("div",{style:me.loadingState,children:[c.jsx("div",{style:me.spinner}),c.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?c.jsxs("div",{style:me.emptyState,children:[c.jsx(ll,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),c.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((x,D)=>{const U=Gu[x.category]||Gu.system,T=lm[x.status]||lm.success;return c.jsxs("div",{style:me.logEntry,children:[c.jsxs("div",{style:me.logTimeline,children:[c.jsx("div",{style:{...me.logDot,background:U.color}}),D<o.length-1&&c.jsx("div",{style:me.logLine})]}),c.jsxs("div",{style:me.logContent,children:[c.jsxs("div",{style:me.logHeader,children:[c.jsxs("span",{style:{...me.logCategory,background:U.bg,color:U.color},children:[U.icon," ",x.category]}),c.jsx("span",{style:{...me.logStatus,background:T.bg,color:T.color},children:x.status}),x.details?.riskLevel&&x.details.riskLevel!=="low"&&c.jsxs("span",{style:me.riskBadge,children:["⚠️ ",x.details.riskLevel," risk"]})]}),c.jsx("div",{style:me.logAction,children:x.action}),x.details?.toolName&&c.jsxs("div",{style:me.logDetail,children:["Tool: ",x.details.toolName]}),c.jsxs("div",{style:me.logTime,children:[c.jsx(Qu,{size:12}),new Date(x.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),x.canRollback&&x.status!=="rolled_back"&&c.jsxs("button",{onClick:()=>b(x._id),style:me.rollbackBtn,children:[c.jsx(Up,{size:14})," Undo / Rollback"]})]})]},x._id||D)})})]})}const me={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"24px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},statsRow:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"12px",marginBottom:"20px"},statCard:{display:"flex",alignItems:"center",gap:"14px",padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},statValue:{fontSize:"1.3rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.75rem",color:"var(--text-muted)"},filters:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 16px",background:"var(--bg-secondary)",borderRadius:"var(--radius-md)",marginBottom:"20px",flexWrap:"wrap",border:"1px solid var(--border-subtle)"},filterBtn:{padding:"6px 12px",background:"transparent",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-full)",color:"var(--text-muted)",fontSize:"0.78rem",cursor:"pointer",fontFamily:"var(--font-primary)",textTransform:"capitalize",transition:"all var(--transition-fast)",display:"flex",alignItems:"center",gap:"4px"},filterBtnActive:{background:"rgba(99, 102, 241, 0.15)",borderColor:"var(--accent-primary)",color:"var(--accent-primary)"},timeline:{display:"flex",flexDirection:"column"},logEntry:{display:"flex",gap:"16px"},logTimeline:{display:"flex",flexDirection:"column",alignItems:"center",width:"20px",flexShrink:0},logDot:{width:"12px",height:"12px",borderRadius:"50%",flexShrink:0},logLine:{width:"2px",flex:1,background:"var(--border-subtle)",marginTop:"4px",marginBottom:"4px"},logContent:{flex:1,padding:"14px 18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",marginBottom:"12px"},logHeader:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px",flexWrap:"wrap"},logCategory:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize",display:"inline-flex",alignItems:"center",gap:"4px"},logStatus:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize"},riskBadge:{fontSize:"0.72rem",color:"#f59e0b"},logAction:{fontSize:"0.9rem",fontWeight:500,color:"var(--text-primary)",marginBottom:"4px"},logDetail:{fontSize:"0.8rem",color:"var(--text-muted)",marginBottom:"4px"},logTime:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",color:"var(--text-muted)"},rollbackBtn:{display:"inline-flex",alignItems:"center",gap:"6px",marginTop:"8px",padding:"6px 14px",background:"rgba(139, 92, 246, 0.1)",border:"1px solid rgba(139, 92, 246, 0.3)",borderRadius:"var(--radius-sm)",color:"#8b5cf6",fontSize:"0.78rem",fontWeight:500,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},loadingState:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",padding:"60px 20px",color:"var(--text-muted)"},spinner:{width:"24px",height:"24px",border:"2px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"60px 20px",color:"var(--text-muted)",textAlign:"center",fontSize:"0.9rem"}},im={low:{bg:"rgba(16,185,129,0.12)",color:"#10b981",label:"🟢 Low Risk"},medium:{bg:"rgba(245,158,11,0.12)",color:"#f59e0b",label:"🟡 Medium Risk"},high:{bg:"rgba(239,68,68,0.12)",color:"#ef4444",label:"🔴 High Risk"}};function C2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState([]),[h,p]=A.useState(null),[g,v]=A.useState([]);A.useEffect(()=>{y()},[]);const y=async()=>{try{const[U,T]=await Promise.all([Lu.getPacks(),Lu.getAll()]);u(U.data.packs||[]),f(T.data.tools||[])}catch{console.error("Failed to load tools")}},b=async U=>{p(U);try{const T=await Lu.getPackTools(U);v(T.data.tools||[])}catch{v([])}},x=async U=>{try{await fc.updateProfile({activePack:U})}catch{console.error("Failed to activate pack")}},D=i?.language==="english";return c.jsxs("div",{style:qe.container,children:[c.jsx("div",{style:qe.header,children:c.jsxs("div",{children:[c.jsxs("h1",{style:qe.title,children:["🛠️ ",D?"Tool Packs":"टूल पैक्स"]}),c.jsx("p",{style:qe.subtitle,children:D?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),c.jsx("div",{style:qe.packsGrid,children:o.map((U,T)=>{const w=i?.activePack===U.id,C=h===U.id;return c.jsxs("div",{onClick:()=>b(U.id),style:{...qe.packCard,...w?qe.packCardActive:{},...C?qe.packCardSelected:{},animationDelay:`${T*.1}s`},children:[c.jsxs("div",{style:qe.packHeader,children:[c.jsx("span",{style:qe.packEmoji,children:U.id==="student"?"🎓":U.id==="business"?"🏢":U.id==="developer"?"👨💻":"🏠"}),w&&c.jsxs("span",{style:qe.activeBadge,children:[c.jsx(Jr,{size:12})," ",D?"Active":"सक्रिय"]})]}),c.jsx("h3",{style:qe.packName,children:D?U.name:U.nameHi||U.name}),c.jsx("p",{style:qe.packDesc,children:D?U.description:U.descriptionHi||U.description}),c.jsxs("div",{style:qe.packMeta,children:[c.jsxs("span",{style:qe.toolCount,children:[c.jsx(Fr,{size:14})," ",U.toolCount," tools"]}),c.jsx(ui,{size:16,style:{color:"var(--text-muted)"}})]}),!w&&c.jsxs("button",{onClick:X=>{X.stopPropagation(),x(U.id)},style:qe.activateBtn,children:[c.jsx(di,{size:14})," ",D?"Activate":"एक्टिवेट करें"]})]},U.id)})}),c.jsxs("div",{style:qe.section,children:[c.jsxs("h2",{style:qe.sectionTitle,children:[c.jsx(Fr,{size:20,style:{color:"var(--accent-primary)"}}),h?D?`Tools in ${h} pack`:`${h} पैक के टूल्स`:D?"All Available Tools":"सभी टूल्स"]}),c.jsx("div",{style:qe.toolsGrid,children:(h?g:s).map((U,T)=>{const w=im[U.riskLevel]||im.low;return c.jsxs("div",{style:{...qe.toolCard,animationDelay:`${T*.05}s`},children:[c.jsxs("div",{style:qe.toolHeader,children:[c.jsx("span",{style:qe.toolName,children:U.name}),c.jsx("span",{style:{...qe.riskBadge,background:w.bg,color:w.color},children:w.label})]}),c.jsx("p",{style:qe.toolDesc,children:D?U.description:U.descriptionHi||U.description}),c.jsx("div",{style:qe.toolMeta,children:c.jsxs("span",{style:qe.toolCategory,children:[U.category==="file"?"📁":U.category==="email"?"📧":U.category==="search"?"🔍":U.category==="calendar"?"📅":"🛠️"," ",U.category]})})]},U.name)})})]})]})}const qe={container:{padding:"28px 32px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},packsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"32px"},packCard:{padding:"22px",background:"var(--bg-secondary)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",cursor:"pointer",transition:"all var(--transition-normal)",animation:"fadeInUp 0.4s ease-out both"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.05)"},packCardSelected:{borderColor:"var(--accent-gold)",boxShadow:"0 0 16px rgba(245, 158, 11, 0.15)"},packHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},packEmoji:{fontSize:"2rem"},activeBadge:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600},packName:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px"},packDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"12px"},packMeta:{display:"flex",alignItems:"center",justifyContent:"space-between"},toolCount:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.8rem",color:"var(--text-muted)"},activateBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"10px",marginTop:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},section:{marginBottom:"20px"},sectionTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.1rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"16px",textTransform:"capitalize"},toolsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},toolCard:{padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",animation:"fadeIn 0.3s ease-out both",transition:"all var(--transition-fast)"},toolHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",flexWrap:"wrap",gap:"6px"},toolName:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)",fontFamily:"monospace"},riskBadge:{padding:"3px 8px",borderRadius:"var(--radius-full)",fontSize:"0.68rem",fontWeight:600},toolDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"4px"},toolMeta:{display:"flex",alignItems:"center",gap:"8px"},toolCategory:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"}},z2=[{name:"jonahships_",handle:"@jonahships_",text:"Setup @samarthya yesterday. All I have to say is, wow. The fact that it can just keep building upon itself just by talking to it is crazy. The future is already here.",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jonah"},{name:"markjaquith",handle:"@markjaquith",text:"SamarthyaBot feels like that kind of 'just had to glue all the parts together' leap forward. Incredible experience running locally.",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Mark"},{name:"danpeguine",handle:"@danpeguine",text:"Why this is nuts: your context and skills live on YOUR computer. Proactive AF: cron jobs, reminders, background tasks. Memory is amazing.",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Dan"},{name:"nateliason",handle:"@nateliason",text:"Managing Claude Code sessions I can kick off anywhere, autonomously running tests on my app and resolving them. The future of digital employees is here.",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Nate"}],_2=[{name:"WhatsApp",icon:"https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg"},{name:"Telegram",icon:"https://upload.wikimedia.org/wikipedia/commons/a/a7/Telegram_logo.svg"},{name:"Gmail",icon:"https://upload.wikimedia.org/wikipedia/commons/7/7e/Gmail_icon_%282020%29.svg"},{name:"Discord",icon:"https://upload.wikimedia.org/wikipedia/commons/7/73/Discord_Color_Text_Logo.svg"},{name:"Slack",icon:"https://upload.wikimedia.org/wikipedia/commons/d/d5/Slack_icon_2019.svg"},{name:"GitHub",icon:"https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg",invert:!0},{name:"UPI",icon:"https://upload.wikimedia.org/wikipedia/commons/e/e1/UPI-Logo-vector.svg"},{name:"IRCTC",icon:"https://upload.wikimedia.org/wikipedia/en/4/45/IRCTC_Logo.png"}],w2=[{title:"Autonomous Agentic Loops",desc:"Not just a chatbot. SamarthyaBot uses complex reasoning loops to break down goals into sub-tasks, execute them using tools, and verify the results.",icon:c.jsx(Lx,{size:24}),color:"#FF9933"},{title:"Full Local Sovereignty",desc:"Your data never leaves your machine. Connect to local LLMs via Ollama or use encrypted connections to cloud providers. You own the compute.",icon:c.jsx(ll,{size:24}),color:"#ffffff"},{title:"Indian Digital Highway",desc:"First AI OS with native support for Indian services. Manage GST filings, IRCTC bookings, and UPI payments through a single unified interface.",icon:c.jsx(Cm,{size:24}),color:"#138808"}],O2=[{title:"Vector Memory",desc:"Long-term semantic memory using local vector storage.",icon:c.jsx(Lv,{size:20})},{title:"Tool Orchestration",desc:"Execute shell scripts, JS code, and file system operations.",icon:c.jsx(Mx,{size:20})},{title:"Omnichannel Gateway",desc:"One gateway, many frontends: WhatsApp, Web, and more.",icon:c.jsx(Vv,{size:20})},{title:"Skill Extensibility",desc:"Build custom plugins to automate unique business logic.",icon:c.jsx(di,{size:20})}];function M2(){const[i,o]=A.useState(!0),[u,s]=A.useState(!1),f="npm install -g samarthya-bot && samarthya onboard",h=()=>{navigator.clipboard.writeText(f),s(!0),setTimeout(()=>s(!1),2e3)};A.useEffect(()=>{const g=document.createElement("style");return g.type="text/css",g.innerText=`
|
|
26
|
-
@keyframes indian-gradient {
|
|
27
|
-
0% { background-position: 0% 50%; }
|
|
28
|
-
50% { background-position: 100% 50%; }
|
|
29
|
-
100% { background-position: 0% 50%; }
|
|
30
|
-
}
|
|
31
|
-
.animated-flag-text {
|
|
32
|
-
background: linear-gradient(90deg, #FF9933, ${i?"#eee":"#666"}, #138808, #FF9933);
|
|
33
|
-
background-size: 300% 300%;
|
|
34
|
-
animation: indian-gradient 8s ease infinite;
|
|
35
|
-
-webkit-background-clip: text;
|
|
36
|
-
-webkit-text-fill-color: transparent;
|
|
37
|
-
}
|
|
38
|
-
.grid-bg {
|
|
39
|
-
background-image: radial-gradient(${i?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.05)"} 1px, transparent 1px);
|
|
40
|
-
background-size: 32px 32px;
|
|
41
|
-
}
|
|
42
|
-
.hero-logo-container {
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
padding: 12px;
|
|
45
|
-
border: 2px solid;
|
|
46
|
-
border-image: linear-gradient(to right, #FF9933, #ffffff, #138808) 1;
|
|
47
|
-
margin-bottom: 24px;
|
|
48
|
-
border-radius: 4px;
|
|
49
|
-
background: ${i?"rgba(0,0,0,0.5)":"rgba(255,255,255,0.5)"};
|
|
50
|
-
}
|
|
51
|
-
section { scroll-margin-top: 40px; }
|
|
52
|
-
* { transition: background-color 0.3s ease, border-color 0.3s ease; }
|
|
53
|
-
`,document.head.appendChild(g),()=>document.head.removeChild(g)},[i]);const p=i?F.dark:F.light;return c.jsxs("div",{style:{...F.page,...p.page},className:"grid-bg",children:[c.jsx("title",{children:"SamarthyaBot | Privacy-First Agentic OS | Local AI Assistant"}),c.jsx("meta",{name:"description",content:"The first Indian-origin Agentic OS for running powerful AI agents locally. Manage tasks, files, and more with SamarthyaBot."}),c.jsx("button",{onClick:()=>o(!i),style:{...F.themeToggle,...p.toggle},children:i?c.jsx(wx,{size:20,color:"#fff"}):c.jsx(fx,{size:20,color:"#000"})}),c.jsxs("div",{style:F.container,children:[c.jsxs("section",{style:F.hero,children:[c.jsx("div",{className:"hero-logo-container",children:c.jsx("span",{style:{fontSize:"2.5rem",fontWeight:"900",color:i?"#fff":"#000"},children:"स"})}),c.jsx("h1",{style:{...F.heroTitle,...p.textPrimary},children:"SamarthyaBot"}),c.jsx("p",{style:F.heroTagline,className:"animated-flag-text",children:"LOCAL AGENTIC OPERATING SYSTEM"}),c.jsxs("p",{style:{...F.heroSubtitle,...p.textSecondary},children:["Bypass cloud limits. Own your compute. The first local-first platform built for ",c.jsx("br",{}),c.jsx("strong",{children:"Autonomous Indian Workflows"})," and ",c.jsx("strong",{children:"Privacy-First Productivity"}),"."]}),c.jsxs("div",{style:{...F.newBadge,...p.badge},children:[c.jsx("span",{style:F.newTag,children:"BETA 1.1"}),c.jsx("span",{style:{...p.textSecondary,fontSize:"0.85rem"},children:"Vectorized Memory & Gateway Tunneling Live"})]})]}),c.jsxs("section",{style:F.section,children:[c.jsxs("div",{style:F.sectionHeader,children:[c.jsx("span",{style:F.bracket,children:"⟩"}),c.jsx("h2",{style:{...F.sectionTitle,...p.textPrimary},children:"Deploy in 60 Seconds"})]}),c.jsxs("div",{style:{...F.terminal,...p.terminal},children:[c.jsxs("div",{style:F.terminalHeader,children:[c.jsxs("div",{style:F.terminalDots,children:[c.jsx("div",{style:{...F.dot,background:"#ff5f56"}}),c.jsx("div",{style:{...F.dot,background:"#ffbd2e"}}),c.jsx("div",{style:{...F.dot,background:"#27c93f"}})]}),c.jsx("div",{style:{...F.terminalMeta,color:i?"#555":"#888"},children:"Bash / ZSH / Powershell"})]}),c.jsx("div",{style:F.terminalBody,children:c.jsxs("div",{style:F.codeLineWrap,children:[c.jsxs("div",{style:{...F.codeLine,color:i?"#fff":"#ccc"},children:[c.jsx("span",{style:{color:"#FF9933",marginRight:"10px"},children:"$"})," ",f]}),c.jsx("button",{onClick:h,style:F.copyBtn,children:u?c.jsx(Jr,{size:18,color:"#27c93f"}):c.jsx(Nv,{size:18,color:i?"#666":"#444"})})]})})]}),c.jsx("p",{style:{...F.terminalCaption,...p.textMuted},children:"Compatible with Node.js 18+. Requires minimal configuration for local LLMs via Ollama."})]}),c.jsx("section",{style:F.section,children:c.jsx("div",{style:F.featureGrid,children:w2.map((g,v)=>c.jsxs("div",{style:{...F.featureCard,...p.card},children:[c.jsx("div",{style:{...F.featureIcon,color:g.color},children:g.icon}),c.jsx("h3",{style:{...F.featureTitle,...p.textPrimary},children:g.title}),c.jsx("p",{style:{...F.featureDesc,...p.textSecondary},children:g.desc})]},v))})}),c.jsxs("section",{style:F.section,children:[c.jsxs("div",{style:F.sectionHeader,children:[c.jsx("span",{style:F.bracket,children:"⟩"}),c.jsx("h2",{style:{...F.sectionTitle,...p.textPrimary},children:"Omnichannel Connectivity"})]}),c.jsx("div",{style:F.integrationGrid,children:_2.map((g,v)=>c.jsxs("div",{style:{...F.integrationItem,...p.card},children:[c.jsx("img",{src:g.icon,style:{...F.intIcon,filter:g.invert&&i?"invert(1)":"none",opacity:i?.8:1},alt:g.name}),c.jsx("span",{style:{...F.intName,...p.textSecondary},children:g.name})]},v))})]}),c.jsx("section",{style:F.section,children:c.jsx("div",{style:F.specGrid,children:O2.map((g,v)=>c.jsxs("div",{style:{...F.specItem},children:[c.jsx("div",{style:{...F.specIcon,...p.specIcon},children:g.icon}),c.jsxs("div",{children:[c.jsx("div",{style:{...F.specTitle,...p.textPrimary},children:g.title}),c.jsx("div",{style:{...p.textMuted,fontSize:"0.8rem"},children:g.desc})]})]},v))})}),c.jsxs("section",{style:F.section,children:[c.jsxs("div",{style:F.sectionHeader,children:[c.jsx("span",{style:F.bracket,children:"⟩"}),c.jsx("h2",{style:{...F.sectionTitle,...p.textPrimary},children:"Global Community"})]}),c.jsx("div",{style:F.testimonialGrid,children:z2.map((g,v)=>c.jsxs("div",{style:{...F.testCard,...p.card},children:[c.jsxs("div",{style:F.testHeader,children:[c.jsx("img",{src:g.avatar,style:F.avatar,alt:g.name}),c.jsxs("div",{children:[c.jsx("div",{style:{...F.testName,...p.textPrimary},children:g.name}),c.jsx("div",{style:F.testHandle,children:g.handle})]})]}),c.jsxs("p",{style:{...F.testText,...p.textSecondary},children:['"',g.text,'"']})]},v))})]}),c.jsxs("section",{style:{...F.section,textAlign:"left"},children:[c.jsx("h2",{style:{...F.footerTitle,...p.textPrimary},children:"Why SamarthyaBot for AI Automation?"}),c.jsxs("p",{style:{...p.textSecondary,lineHeight:"1.8",maxWidth:"800px"},children:["SamarthyaBot is more than just an AI assistant; it is a full-scale ",c.jsx("strong",{children:"Agentic Operating System"})," designed for the next generation of digital labor. By combining local-first data security with autonomous planning capabilities, it allows developers and power users in India to automate complex workflows—from IRCTC travel management to GST portal data entry—without ever compromising sensitive information to third-party servers."]})]}),c.jsxs("footer",{style:{...F.footer,borderTop:i?"1px solid #222":"1px solid #ddd"},children:[c.jsxs("div",{style:F.footerInner,children:[c.jsxs("div",{style:F.footerCol,children:[c.jsx("div",{style:{fontWeight:"900",color:i?"#fff":"#000"},children:"स Samarthya"}),c.jsx("p",{style:{...p.textMuted,fontSize:"0.85rem"},children:"Built for India's digital future."})]}),c.jsxs("div",{style:F.footerCol,children:[c.jsx(lc,{to:"/dashboard",style:{...F.footerLink,...p.link},children:"Admin Console"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:{...F.footerLink,...p.link},children:"GitHub Repository"})]})]}),c.jsx("div",{style:{...F.footerCopyright,...p.textMuted},children:"© 2025 Samarthya Project. Not affiliated with OpenAI or Anthropic. 🇮🇳"})]})]})]})}const F={page:{width:"100%",minHeight:"100vh",fontFamily:"'Inter', sans-serif",transition:"all 0.4s ease"},container:{maxWidth:"900px",margin:"0 auto",padding:"0 24px"},themeToggle:{position:"fixed",top:"32px",right:"32px",zIndex:1e3,width:"44px",height:"44px",borderRadius:"50%",border:"1px solid",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},hero:{padding:"160px 0 80px",textAlign:"center"},heroTitle:{fontSize:"4.5rem",fontWeight:"950",letterSpacing:"-3px",lineHeight:"1",marginBottom:"10px"},heroTagline:{fontSize:"0.9rem",fontWeight:"900",letterSpacing:"4px",marginBottom:"32px"},heroSubtitle:{fontSize:"1.2rem",lineHeight:"1.6",maxWidth:"700px",margin:"0 auto 48px"},newBadge:{display:"inline-flex",alignItems:"center",gap:"12px",padding:"10px 20px",borderRadius:"100px",border:"1px solid"},newTag:{background:"#FF9933",color:"#000",fontSize:"0.7rem",fontWeight:"900",padding:"2px 8px",borderRadius:"4px"},section:{padding:"64px 0"},sectionHeader:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"28px"},bracket:{color:"#FF9933",fontSize:"1.4rem",fontWeight:"900"},sectionTitle:{fontSize:"1.6rem",fontWeight:"900",flex:1},terminal:{borderRadius:"12px",overflow:"hidden",border:"1px solid"},terminalHeader:{padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"rgba(0,0,0,0.1)",borderBottom:"1px solid rgba(128,128,128,0.1)"},terminalDots:{display:"flex",gap:"8px"},dot:{width:"10px",height:"10px",borderRadius:"50%"},terminalMeta:{fontSize:"0.65rem",fontWeight:"bold",textTransform:"uppercase"},terminalBody:{padding:"24px",fontFamily:"monospace"},codeLineWrap:{display:"flex",justifyContent:"space-between",alignItems:"center"},copyBtn:{background:"none",border:"none",cursor:"pointer"},terminalCaption:{textAlign:"center",marginTop:"16px",fontSize:"0.8rem"},featureGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(260px, 1fr))",gap:"24px"},featureCard:{padding:"40px 32px",borderRadius:"16px",border:"1px solid"},featureIcon:{marginBottom:"24px"},featureTitle:{fontSize:"1.25rem",fontWeight:"900",marginBottom:"16px"},featureDesc:{fontSize:"0.95rem",lineHeight:"1.7"},integrationGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(130px, 1fr))",gap:"16px"},integrationItem:{padding:"24px",borderRadius:"12px",border:"1px solid",display:"flex",flexDirection:"column",alignItems:"center",gap:"12px"},intIcon:{width:"32px",height:"32px"},intName:{fontSize:"0.8rem",fontWeight:"800"},specGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"40px"},specItem:{display:"flex",gap:"20px",alignItems:"center"},specIcon:{width:"40px",height:"40px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},specTitle:{fontWeight:"800",fontSize:"1rem",marginBottom:"4px"},testimonialGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"24px"},testCard:{padding:"24px",borderRadius:"16px",border:"1px solid"},testHeader:{display:"flex",gap:"12px",alignItems:"center",marginBottom:"16px"},avatar:{width:"40px",height:"40px",borderRadius:"50%"},testName:{fontWeight:"700",fontSize:"0.95rem"},testHandle:{color:"#666",fontSize:"0.8rem"},testText:{fontSize:"1.1rem",lineHeight:"1.6",fontStyle:"italic"},footerTitle:{fontSize:"1.8rem",fontWeight:"900",marginBottom:"24px"},footer:{marginTop:"80px",padding:"64px 0"},footerInner:{display:"flex",justifyContent:"space-between",marginBottom:"40px"},footerCol:{display:"flex",flexDirection:"column",gap:"8px"},footerLink:{textDecoration:"none",fontSize:"0.9rem",fontWeight:"700"},footerCopyright:{textAlign:"center",opacity:.5,fontSize:"0.75rem"},dark:{page:{backgroundColor:"#050505",color:"#fff"},toggle:{borderColor:"#222",backgroundColor:"#0d0d0f"},textPrimary:{color:"#fff"},textSecondary:{color:"#888"},textMuted:{color:"#555"},card:{backgroundColor:"#0d0d0f",borderColor:"#1a1a1e"},terminal:{backgroundColor:"#000",borderColor:"#1a1a1e"},badge:{backgroundColor:"rgba(255,255,255,0.02)",borderColor:"rgba(255,255,255,0.05)"},link:{color:"#666"},specIcon:{backgroundColor:"rgba(255,255,255,0.03)",color:"#fff"}},light:{page:{backgroundColor:"#ffffff",color:"#000"},toggle:{borderColor:"#eee",backgroundColor:"#fff"},textPrimary:{color:"#000"},textSecondary:{color:"#333"},textMuted:{color:"#999"},card:{backgroundColor:"#fafafa",borderColor:"#eee"},terminal:{backgroundColor:"#111",borderColor:"#222"},badge:{backgroundColor:"#fff",borderColor:"#eee"},link:{color:"#999"},specIcon:{backgroundColor:"#f0f0f0",color:"#000"}}},Lr=[{id:"chat",title:"⟩ Chat Providers",subtitle:"Message SamarthyaBot from any chat app — it responds right where you are.",items:[{name:"WhatsApp",nameHi:"व्हाट्सएप",icon:"📱",desc:"WhatsApp Business Cloud API",status:"live",tag:"🇮🇳 #1 in India"},{name:"Telegram",nameHi:"टेलीग्राम",icon:"✈️",desc:"Bot API integration",status:"coming",tag:""},{name:"WebChat",nameHi:"वेबचैट",icon:"💬",desc:"Browser-based UI (this app)",status:"live",tag:""},{name:"Discord",nameHi:"डिस्कॉर्ड",icon:"🎮",desc:"Servers, channels & DMs",status:"coming",tag:""},{name:"Slack",nameHi:"स्लैक",icon:"💼",desc:"Workspace integration",status:"coming",tag:""},{name:"Signal",nameHi:"सिग्नल",icon:"🔒",desc:"Privacy-focused messaging",status:"planned",tag:""}]},{id:"ai",title:"⟩ AI Models",subtitle:"Use any model you want — cloud or local. Your keys, your choice.",items:[{name:"Google Gemini",nameHi:"गूगल जेमिनी",icon:"✨",desc:"Gemini 2.5 Flash (Default)",status:"live",tag:"Default"},{name:"Ollama (Local)",nameHi:"ऑलामा",icon:"🏠",desc:"dolphin3:8b — offline mode",status:"live",tag:"Offline"},{name:"OpenAI",nameHi:"ओपनएआई",icon:"🤖",desc:"GPT-4o, GPT-5",status:"coming",tag:""},{name:"Anthropic",nameHi:"एंथ्रोपिक",icon:"🧠",desc:"Claude 4 Opus",status:"planned",tag:""},{name:"DeepSeek",nameHi:"डीपसीक",icon:"🔍",desc:"DeepSeek V3 & R1",status:"planned",tag:""},{name:"Gemini Vision",nameHi:"जेमिनी विज़न",icon:"👁️",desc:"Screen Understanding",status:"live",tag:"Vision"}]},{id:"tools",title:"⟩ Real Tools & Automation",subtitle:"Not simulations — these actually work. Files, emails, commands, and more.",items:[{name:"Email (Gmail)",nameHi:"ईमेल",icon:"📧",desc:"Real email via Nodemailer SMTP",status:"live",tag:"Real"},{name:"File System",nameHi:"फाइल सिस्टम",icon:"📁",desc:"Read/write/list files (sandboxed)",status:"live",tag:"Real"},{name:"Shell Commands",nameHi:"शेल कमांड",icon:"💻",desc:"Safe command execution (whitelisted)",status:"live",tag:"Real"},{name:"Web Search",nameHi:"वेब सर्च",icon:"🔍",desc:"DuckDuckGo instant search",status:"live",tag:"Real"},{name:"Weather",nameHi:"मौसम",icon:"🌤️",desc:"Open-Meteo (free, no API key)",status:"live",tag:"Real"},{name:"Calculator",nameHi:"कैलकुलेटर",icon:"🧮",desc:"Math + GST calculations",status:"live",tag:"Real"},{name:"System Info",nameHi:"सिस्टम जानकारी",icon:"🖥️",desc:"CPU, RAM, OS info",status:"live",tag:"Real"},{name:"Browser Open",nameHi:"ब्राउज़र",icon:"🌐",desc:"Open URLs in default browser",status:"live",tag:"Real"},{name:"Notes",nameHi:"नोट्स",icon:"📝",desc:"Save notes as Markdown files",status:"live",tag:"Real"},{name:"Reminders",nameHi:"रिमाइंडर",icon:"⏰",desc:"Persistent JSON reminders",status:"live",tag:"Real"},{name:"Calendar",nameHi:"कैलेंडर",icon:"📅",desc:"Event scheduling (local files)",status:"live",tag:"Real"}]},{id:"india",title:"⟩ Indian Workflows",subtitle:"Built specifically for Indian users — GST, UPI, IRCTC, and more.",items:[{name:"UPI Payments",nameHi:"यूपीआई",icon:"💳",desc:"Generate real UPI deep links",status:"live",tag:"🇮🇳 Real"},{name:"GST Reminders",nameHi:"जीएसटी",icon:"🏢",desc:"GSTR-1, 3B, 9 deadline tracking",status:"live",tag:"🇮🇳 Real"},{name:"IRCTC Helper",nameHi:"आईआरसीटीसी",icon:"🚂",desc:"Screen Understanding for booking",status:"live",tag:"Vision"},{name:"PAN/Aadhaar Masking",nameHi:"पैन/आधार",icon:"🔐",desc:"Auto-detect & mask sensitive data",status:"live",tag:"Security"},{name:"DigiLocker",nameHi:"डिजीलॉकर",icon:"📋",desc:"Screen Understanding support",status:"live",tag:"Vision"},{name:"Hindi/Hinglish",nameHi:"हिंदी/हिंग्लिश",icon:"🗣️",desc:"3 language support with auto-detect",status:"live",tag:"🇮🇳"}]},{id:"voice",title:"⟩ Voice & Vision",subtitle:"Talk to SamarthyaBot, send screenshots — it understands everything.",items:[{name:"Voice Input",nameHi:"वॉइस इनपुट",icon:"🎙️",desc:"Web Speech API (Hindi/English)",status:"live",tag:"Real"},{name:"Text-to-Speech",nameHi:"टेक्स्ट-टू-स्पीच",icon:"🔊",desc:"Bot reads responses aloud",status:"live",tag:"Real"},{name:"Screen Capture",nameHi:"स्क्रीन कैप्चर",icon:"📸",desc:"Upload screenshots for AI analysis",status:"live",tag:"Vision"},{name:"Whisper (Local)",nameHi:"व्हिस्पर",icon:"🎧",desc:"Offline voice-to-text",status:"planned",tag:""}]},{id:"security",title:"⟩ Privacy & Security",subtitle:"Your data stays yours. Privacy-first, always.",items:[{name:"Sensitive Data Detection",nameHi:"सेंसिटिव डेटा",icon:"🛡️",desc:"PAN, Aadhaar, bank auto-detect",status:"live",tag:"Always On"},{name:"Permission System",nameHi:"अनुमति सिस्टम",icon:"🔑",desc:"Ask before file/email/browser access",status:"live",tag:""},{name:"Audit Log",nameHi:"ऑडिट लॉग",icon:"📊",desc:"Full tool execution history",status:"live",tag:""},{name:"Sandbox Mode",nameHi:"सैंडबॉक्स",icon:"📦",desc:"Files restricted to ~/SamarthyaBot_Files",status:"live",tag:""},{name:"Local-First",nameHi:"लोकल-फर्स्ट",icon:"🏠",desc:"Ollama for offline private AI",status:"live",tag:""}]}],D2={live:{bg:"rgba(19, 136, 8, 0.2)",color:"#4ade80",label:"✅ Live"},coming:{bg:"rgba(255, 153, 51, 0.2)",color:"#FF9933",label:"🔜 Coming Soon"},planned:{bg:"rgba(100, 100, 100, 0.2)",color:"#888",label:"📋 Planned"}};function B2({user:i}){const[o,u]=A.useState(Lr.reduce((y,b)=>({...y,[b.id]:!0}),{})),[s,f]=A.useState("all"),h=y=>{u(b=>({...b,[y]:!b[y]}))},p=Lr.map(y=>({...y,items:s==="all"?y.items:y.items.filter(b=>b.status===s)})).filter(y=>y.items.length>0),g=Lr.flatMap(y=>y.items).filter(y=>y.status==="live").length,v=Lr.flatMap(y=>y.items).filter(y=>y.status==="coming").length;return c.jsxs("div",{style:je.container,children:[c.jsxs("div",{style:je.header,children:[c.jsxs("h1",{style:je.title,children:[c.jsx(di,{size:28,color:"#FF9933"}),"Integrations"]}),c.jsxs("p",{style:je.subtitle,children:[c.jsx("span",{style:je.countBadge,children:g})," live integrations with real tools & services.",c.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),c.jsx("div",{style:je.filterBar,children:[{key:"all",label:`All (${g+v})`},{key:"live",label:`✅ Live (${g})`},{key:"coming",label:`🔜 Coming (${v})`}].map(y=>c.jsx("button",{onClick:()=>f(y.key),style:{...je.filterBtn,...s===y.key?je.filterBtnActive:{}},children:y.label},y.key))}),p.map(y=>c.jsxs("div",{style:je.category,children:[c.jsxs("button",{onClick:()=>h(y.id),style:je.categoryHeader,children:[c.jsxs("div",{children:[c.jsx("h2",{style:je.categoryTitle,children:y.title}),c.jsx("p",{style:je.categorySubtitle,children:y.subtitle})]}),o[y.id]?c.jsx(wv,{size:20}):c.jsx(Rv,{size:20})]}),o[y.id]&&c.jsx("div",{style:je.grid,children:y.items.map((b,x)=>{const D=D2[b.status];return c.jsxs("div",{style:je.card,children:[c.jsxs("div",{style:je.cardTop,children:[c.jsx("span",{style:je.cardIcon,children:b.icon}),c.jsxs("div",{style:je.cardInfo,children:[c.jsx("h3",{style:je.cardName,children:b.name}),c.jsx("p",{style:je.cardNameHi,children:b.nameHi})]}),b.tag&&c.jsx("span",{style:{...je.tag,background:b.tag.includes("Real")?"rgba(19,136,8,0.3)":b.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:b.tag.includes("Real")?"#4ade80":b.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:b.tag})]}),c.jsx("p",{style:je.cardDesc,children:b.desc}),c.jsx("div",{style:{...je.statusBadge,background:D.bg,color:D.color},children:D.label})]},x)})})]},y.id)),c.jsxs("div",{style:je.footerCTA,children:[c.jsx("h2",{style:je.ctaTitle,children:"🔧 Want to add more integrations?"}),c.jsxs("p",{style:je.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",c.jsx("code",{style:je.code,children:"toolRegistry.js"})]}),c.jsxs("div",{style:je.ctaButtons,children:[c.jsxs("div",{style:je.ctaCard,children:[c.jsx("span",{style:je.ctaIcon,children:"📧"}),c.jsx("strong",{children:"Email Setup"}),c.jsx("p",{style:je.ctaSmall,children:"Add Gmail App Password to .env"})]}),c.jsxs("div",{style:je.ctaCard,children:[c.jsx("span",{style:je.ctaIcon,children:"📱"}),c.jsx("strong",{children:"WhatsApp Setup"}),c.jsx("p",{style:je.ctaSmall,children:"Meta Business API token"})]}),c.jsxs("div",{style:je.ctaCard,children:[c.jsx("span",{style:je.ctaIcon,children:"🏠"}),c.jsx("strong",{children:"Offline Mode"}),c.jsx("p",{style:je.ctaSmall,children:"Set USE_OLLAMA=true in .env"})]})]})]})]})}const je={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{textAlign:"center",marginBottom:"32px"},title:{fontSize:"28px",fontWeight:"700",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",marginBottom:"12px"},subtitle:{color:"#94a3b8",fontSize:"15px",lineHeight:"1.6"},countBadge:{background:"linear-gradient(135deg, #FF9933, #FF6600)",color:"#fff",padding:"2px 10px",borderRadius:"20px",fontWeight:"700",fontSize:"14px"},filterBar:{display:"flex",gap:"8px",justifyContent:"center",marginBottom:"24px"},filterBtn:{padding:"8px 20px",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px",background:"transparent",color:"#94a3b8",cursor:"pointer",fontSize:"13px",transition:"all 0.2s"},filterBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"#FF9933",color:"#FF9933"},category:{marginBottom:"24px",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"12px",overflow:"hidden",background:"rgba(255,255,255,0.02)"},categoryHeader:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 20px",background:"rgba(255,255,255,0.03)",border:"none",color:"#fff",cursor:"pointer",textAlign:"left"},categoryTitle:{fontSize:"18px",fontWeight:"600",margin:0,color:"#FF9933"},categorySubtitle:{fontSize:"13px",color:"#64748b",margin:"4px 0 0"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px",padding:"16px 20px"},card:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",padding:"14px",transition:"all 0.2s"},cardTop:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"8px"},cardIcon:{fontSize:"24px"},cardInfo:{flex:1},cardName:{fontSize:"14px",fontWeight:"600",color:"#e2e8f0",margin:0},cardNameHi:{fontSize:"11px",color:"#64748b",margin:0},tag:{fontSize:"10px",padding:"2px 8px",borderRadius:"10px",fontWeight:"600",whiteSpace:"nowrap"},cardDesc:{fontSize:"12px",color:"#94a3b8",margin:"0 0 8px",lineHeight:"1.4"},statusBadge:{display:"inline-block",fontSize:"11px",padding:"3px 10px",borderRadius:"12px",fontWeight:"500"},footerCTA:{textAlign:"center",padding:"32px 20px",marginTop:"24px",background:"linear-gradient(135deg, rgba(255,153,51,0.05), rgba(0,0,128,0.05))",borderRadius:"16px",border:"1px solid rgba(255,153,51,0.15)"},ctaTitle:{fontSize:"20px",color:"#fff",margin:"0 0 8px"},ctaText:{color:"#94a3b8",fontSize:"14px",marginBottom:"20px"},code:{background:"rgba(255,153,51,0.15)",padding:"2px 6px",borderRadius:"4px",color:"#FF9933",fontSize:"13px"},ctaButtons:{display:"flex",gap:"12px",justifyContent:"center",flexWrap:"wrap"},ctaCard:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"14px 20px",textAlign:"center",color:"#e2e8f0",fontSize:"14px",minWidth:"160px"},ctaIcon:{fontSize:"24px",display:"block",marginBottom:"6px"},ctaSmall:{fontSize:"11px",color:"#64748b",margin:"4px 0 0"}},Yu={folder:{icon:Tm,color:"#FF9933"},txt:{icon:Zu,color:"#94a3b8"},md:{icon:Zu,color:"#60a5fa"},json:{icon:Hr,color:"#fbbf24"},js:{icon:Hr,color:"#fbbf24"},html:{icon:Hr,color:"#f97316"},css:{icon:Hr,color:"#38bdf8"},png:{icon:Nu,color:"#a78bfa"},jpg:{icon:Nu,color:"#a78bfa"},jpeg:{icon:Nu,color:"#a78bfa"},pdf:{icon:Bp,color:"#ef4444"},default:{icon:Bp,color:"#64748b"}};function N2(i){return i.type==="folder"?Yu.folder:Yu[i.extension]||Yu.default}function rm(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function k2(i){return new Date(i).toLocaleString("en-IN",{timeZone:"Asia/Kolkata",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function H2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(""),[h,p]=A.useState(!1),[g,v]=A.useState(null),[y,b]=A.useState(null),[x,D]=A.useState(!1),[U,T]=A.useState(""),[w,C]=A.useState(""),X=A.useRef(null);A.useEffect(()=>{P(),V()},[s]);const P=async()=>{p(!0),C("");try{const Z=await yn.list(s);u(Z.data.items||[])}catch(Z){C(Z.response?.data?.error||"Failed to load files"),u([])}finally{p(!1)}},V=async()=>{try{const Z=await yn.getStats();v(Z.data.stats)}catch{}},ie=Z=>{Z.type==="folder"?f(Z.path):ye(Z)},ce=()=>{const Z=s.split("/");Z.pop(),f(Z.join("/"))},ye=async Z=>{try{const de=await yn.read(Z.path);b(de.data)}catch{C("Cannot preview this file")}},J=Z=>{const de=yn.download(Z.path);window.open(de,"_blank")},we=async Z=>{const de=Z.type==="folder"?`Delete folder "${Z.name}" and all its contents?`:`Delete file "${Z.name}"?`;if(window.confirm(de))try{await yn.deleteFile(Z.path),P(),V()}catch(xe){C(xe.response?.data?.error||"Delete failed")}},Be=async()=>{if(U.trim())try{await yn.mkdir(U.trim(),s),T(""),D(!1),P()}catch(Z){C(Z.response?.data?.error||"Failed to create folder")}},rt=async Z=>{const de=Z.target.files?.[0];if(!de)return;const xe=new FileReader;xe.onload=async()=>{try{await yn.upload(de.name,xe.result,s),P(),V()}catch(Oe){C(Oe.response?.data?.error||"Upload failed")}},de.type.startsWith("text/")||["application/json","application/javascript"].includes(de.type)?xe.readAsText(de):xe.readAsDataURL(de),Z.target.value=""},$e=["My Stuff",...s.split("/").filter(Boolean)];return c.jsxs("div",{style:pe.container,children:[c.jsxs("div",{style:pe.header,children:[c.jsxs("div",{style:pe.headerLeft,children:[c.jsx(ic,{size:24,color:"#FF9933"}),c.jsx("h1",{style:pe.title,children:"My Stuff"}),g&&c.jsxs("span",{style:pe.statsTag,children:[g.fileCount," files · ",g.folderCount," folders · ",g.totalSizeFormatted]})]}),c.jsxs("div",{style:pe.headerActions,children:[c.jsxs("button",{onClick:()=>D(!0),style:pe.actionBtn,children:[c.jsx(Np,{size:16})," New Folder"]}),c.jsxs("button",{onClick:()=>X.current?.click(),style:pe.actionBtn,children:[c.jsx(kx,{size:16})," Upload"]}),c.jsx("button",{onClick:P,style:pe.actionBtnIcon,children:c.jsx(vx,{size:16})}),c.jsx("input",{ref:X,type:"file",onChange:rt,style:{display:"none"}})]})]}),c.jsx("div",{style:pe.breadcrumb,children:$e.map((Z,de)=>c.jsxs($r.Fragment,{children:[de>0&&c.jsx(ui,{size:14,color:"#64748b"}),c.jsx("button",{onClick:()=>{if(de===0)f("");else{const xe=s.split("/").slice(0,de).join("/");f(xe)}},style:{...pe.crumbItem,color:de===$e.length-1?"#FF9933":"#94a3b8"},children:Z})]},de))}),x&&c.jsxs("div",{style:pe.newFolderRow,children:[c.jsx(Np,{size:18,color:"#FF9933"}),c.jsx("input",{type:"text",value:U,onChange:Z=>T(Z.target.value),onKeyDown:Z=>Z.key==="Enter"&&Be(),placeholder:"Folder name...",style:pe.newFolderInput,autoFocus:!0}),c.jsx("button",{onClick:Be,style:pe.newFolderOk,children:"Create"}),c.jsx("button",{onClick:()=>{D(!1),T("")},style:pe.newFolderCancel,children:c.jsx(Lp,{size:16})})]}),w&&c.jsxs("div",{style:pe.error,children:["❌ ",w,c.jsx("button",{onClick:()=>C(""),style:pe.errorClose,children:"×"})]}),s&&c.jsxs("button",{onClick:ce,style:pe.backBtn,children:[c.jsx(xv,{size:16})," Back"]}),h?c.jsx("div",{style:pe.loadingBox,children:"Loading..."}):o.length===0?c.jsxs("div",{style:pe.emptyBox,children:[c.jsx(Tm,{size:48,color:"#333"}),c.jsx("p",{style:pe.emptyText,children:"This folder is empty"}),c.jsx("p",{style:pe.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):c.jsx("div",{style:pe.fileGrid,children:o.map((Z,de)=>{const xe=N2(Z),Oe=xe.icon;return c.jsxs("div",{style:pe.fileCard,onDoubleClick:()=>ie(Z),children:[c.jsxs("div",{style:pe.fileCardTop,onClick:()=>ie(Z),children:[c.jsx(Oe,{size:32,color:xe.color}),c.jsxs("div",{style:pe.fileInfo,children:[c.jsx("span",{style:pe.fileName,children:Z.name}),c.jsxs("span",{style:pe.fileMeta,children:[Z.type==="folder"?"Folder":rm(Z.size),Z.modified&&` · ${k2(Z.modified)}`]})]})]}),c.jsxs("div",{style:pe.fileActions,children:[Z.type==="file"&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>ye(Z),style:pe.fileActionBtn,title:"Preview",children:c.jsx(Qv,{size:14})}),c.jsx("button",{onClick:()=>J(Z),style:pe.fileActionBtn,title:"Download",children:c.jsx(Gv,{size:14})})]}),c.jsx("button",{onClick:()=>we(Z),style:{...pe.fileActionBtn,...pe.deleteBtn},title:"Delete",children:c.jsx(_m,{size:14})})]})]},de)})}),y&&c.jsx("div",{style:pe.modalOverlay,onClick:()=>b(null),children:c.jsxs("div",{style:pe.modal,onClick:Z=>Z.stopPropagation(),children:[c.jsxs("div",{style:pe.modalHeader,children:[c.jsxs("h3",{style:pe.modalTitle,children:[c.jsx(Zu,{size:18,color:"#FF9933"}),y.name]}),c.jsxs("span",{style:pe.modalMeta,children:[rm(y.size)," · ",y.extension?.toUpperCase()]}),c.jsx("button",{onClick:()=>b(null),style:pe.modalClose,children:c.jsx(Lp,{size:20})})]}),c.jsx("pre",{style:pe.previewContent,children:y.content})]})})]})}const pe={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",flexWrap:"wrap",gap:"12px"},headerLeft:{display:"flex",alignItems:"center",gap:"10px"},title:{fontSize:"22px",fontWeight:"700",color:"#fff",margin:0},statsTag:{fontSize:"12px",color:"#94a3b8",background:"rgba(255,255,255,0.05)",padding:"4px 10px",borderRadius:"12px"},headerActions:{display:"flex",gap:"8px"},actionBtn:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 14px",background:"rgba(255,153,51,0.1)",border:"1px solid rgba(255,153,51,0.3)",borderRadius:"8px",color:"#FF9933",cursor:"pointer",fontSize:"13px",fontWeight:"500",transition:"all 0.2s"},actionBtnIcon:{display:"flex",alignItems:"center",padding:"8px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",transition:"all 0.2s"},breadcrumb:{display:"flex",alignItems:"center",gap:"4px",marginBottom:"16px",padding:"8px 12px",background:"rgba(255,255,255,0.03)",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.06)"},crumbItem:{background:"none",border:"none",cursor:"pointer",fontSize:"13px",padding:"2px 4px",borderRadius:"4px"},newFolderRow:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",padding:"10px 14px",background:"rgba(255,153,51,0.05)",border:"1px solid rgba(255,153,51,0.2)",borderRadius:"8px"},newFolderInput:{flex:1,background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"6px 10px",color:"#fff",fontSize:"13px",outline:"none"},newFolderOk:{padding:"6px 14px",background:"#FF9933",border:"none",borderRadius:"6px",color:"#000",fontWeight:"600",cursor:"pointer",fontSize:"12px"},newFolderCancel:{padding:"6px",background:"none",border:"none",color:"#94a3b8",cursor:"pointer"},error:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"8px",color:"#ef4444",fontSize:"13px",marginBottom:"12px"},errorClose:{background:"none",border:"none",color:"#ef4444",cursor:"pointer",fontSize:"16px"},backBtn:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"12px",padding:"6px 12px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",fontSize:"13px"},loadingBox:{textAlign:"center",color:"#64748b",padding:"60px 0",fontSize:"14px"},emptyBox:{textAlign:"center",padding:"60px 0"},emptyText:{color:"#64748b",fontSize:"16px",margin:"12px 0 4px"},emptyHint:{color:"#4a5568",fontSize:"13px"},fileGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"10px"},fileCard:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 14px",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",transition:"all 0.15s",cursor:"pointer"},fileCardTop:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},fileInfo:{display:"flex",flexDirection:"column",minWidth:0},fileName:{fontSize:"14px",color:"#e2e8f0",fontWeight:"500",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},fileMeta:{fontSize:"11px",color:"#64748b"},fileActions:{display:"flex",gap:"4px",flexShrink:0},fileActionBtn:{padding:"5px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",color:"#94a3b8",cursor:"pointer",transition:"all 0.15s"},deleteBtn:{color:"#ef4444"},modalOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{width:"90%",maxWidth:"800px",maxHeight:"80vh",background:"#1a1a2e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"16px",overflow:"hidden",display:"flex",flexDirection:"column"},modalHeader:{display:"flex",alignItems:"center",gap:"8px",padding:"14px 20px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.03)"},modalTitle:{display:"flex",alignItems:"center",gap:"8px",fontSize:"15px",color:"#fff",margin:0,flex:1},modalMeta:{fontSize:"12px",color:"#64748b"},modalClose:{background:"none",border:"none",color:"#94a3b8",cursor:"pointer",padding:"4px"},previewContent:{padding:"16px 20px",margin:0,overflow:"auto",flex:1,fontSize:"13px",lineHeight:"1.6",color:"#cbd5e1",fontFamily:"'JetBrains Mono', 'Fira Code', monospace',",whiteSpace:"pre-wrap",wordBreak:"break-word"}},U2=({user:i,loading:o,updateUser:u,sidebarOpen:s,setSidebarOpen:f})=>{const h=$t();return o&&h.pathname!=="/"?c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[c.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Loading SamarthyaBot..."})]}):h.pathname==="/"?c.jsx(M2,{}):c.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[c.jsx(Xx,{user:i,isOpen:s,onToggle:()=>f(!s)}),c.jsx("main",{style:{flex:1,minHeight:"100vh"},children:c.jsxs(M1,{children:[c.jsx(na,{path:"/dashboard",element:c.jsx(A2,{user:i})}),c.jsx(na,{path:"/chat",element:c.jsx(nm,{user:i})}),c.jsx(na,{path:"/chat/:id",element:c.jsx(nm,{user:i})}),c.jsx(na,{path:"/settings",element:c.jsx(R2,{user:i,onUpdate:u})}),c.jsx(na,{path:"/audit",element:c.jsx(T2,{user:i})}),c.jsx(na,{path:"/tools",element:c.jsx(C2,{user:i})}),c.jsx(na,{path:"/integrations",element:c.jsx(B2,{user:i})}),c.jsx(na,{path:"/my-stuff",element:c.jsx(H2,{user:i})}),c.jsx(na,{path:"*",element:c.jsx(w1,{to:"/dashboard"})})]})})]})};function L2(){const[i,o]=A.useState(null),[u,s]=A.useState(!0),[f,h]=A.useState(!0);A.useEffect(()=>{(async()=>{try{const v=await fc.getProfile();o(v.data.user)}catch(v){console.error(v)}s(!1)})()},[]);const p=g=>{o(g)};return c.jsx(av,{children:c.jsx(U2,{user:i,loading:u,updateUser:p,sidebarOpen:f,setSidebarOpen:h})})}Bg.createRoot(document.getElementById("root")).render(c.jsx($r.StrictMode,{children:c.jsx(L2,{})}));
|