samarthya-bot 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +340 -353
  3. package/backend/bin/samarthya.js +29 -10
  4. package/backend/config/constants.js +4 -4
  5. package/backend/controllers/chatController.js +72 -0
  6. package/backend/controllers/telegramController.js +8 -0
  7. package/backend/package.json +1 -1
  8. package/backend/public/assets/index-DiMx9ERJ.css +1 -0
  9. package/backend/public/assets/index-Dn5WYZTH.js +32 -0
  10. package/backend/public/index.html +186 -16
  11. package/backend/public/robots.txt +32 -0
  12. package/backend/public/sitemap.xml +39 -0
  13. package/backend/services/agent/commandService.js +168 -0
  14. package/backend/services/llm/llmService.js +8 -0
  15. package/backend/services/planner/plannerService.js +17 -0
  16. package/backend/services/security/sandboxService.js +11 -4
  17. package/backend/services/system/platform.js +150 -0
  18. package/backend/services/tools/toolRegistry.js +521 -36
  19. package/backend/services/worker/workerClient.js +141 -29
  20. package/package.json +1 -1
  21. package/backend/public/assets/index-6PCzI3K2.js +0 -40
  22. package/backend/public/assets/index-6TF5jVRQ.js +0 -149
  23. package/backend/public/assets/index-B0U7rt6f.js +0 -46
  24. package/backend/public/assets/index-BF0RZh9i.js +0 -149
  25. package/backend/public/assets/index-BFRAq8Y1.js +0 -149
  26. package/backend/public/assets/index-CGw8cc8z.js +0 -149
  27. package/backend/public/assets/index-Ckf0GO1B.css +0 -1
  28. package/backend/public/assets/index-Cx0Ei-z7.js +0 -149
  29. package/backend/public/assets/index-DIPdcLv-.js +0 -25
  30. package/backend/public/assets/index-Da1E-MYB.js +0 -53
  31. package/backend/public/assets/index-DdCKkq38.js +0 -149
  32. package/backend/public/assets/index-Do4jNsZS.js +0 -19
  33. package/backend/public/assets/index-DyjpBYmS.js +0 -51
  34. package/backend/public/assets/index-DzlXcaXT.js +0 -149
  35. package/backend/public/assets/index-J7XSVHCz.css +0 -1
  36. package/backend/public/assets/index-Ui-pyZvK.js +0 -25
  37. package/backend/public/assets/index-kzffNwzo.js +0 -149
@@ -1,149 +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 p of f)if(p.type==="childList")for(const h of p.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function c(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function s(f){if(f.ep)return;f.ep=!0;const p=c(f);fetch(f.href,p)}})();function Sm(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Tu={exports:{}},li={};var jh;function Ly(){if(jh)return li;jh=1;var l=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(s,f,p){var h=null;if(p!==void 0&&(h=""+p),f.key!==void 0&&(h=""+f.key),"key"in f){p={};for(var x in f)x!=="key"&&(p[x]=f[x])}else p=f;return f=p.ref,{$$typeof:l,type:s,key:h,ref:f!==void 0?f:null,props:p}}return li.Fragment=o,li.jsx=c,li.jsxs=c,li}var Eh;function qy(){return Eh||(Eh=1,Tu.exports=Ly()),Tu.exports}var u=qy(),Cu={exports:{}},se={};var Rh;function Yy(){if(Rh)return se;Rh=1;var l=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),k=Symbol.iterator;function R(S){return S===null||typeof S!="object"?null:(S=k&&S[k]||S["@@iterator"],typeof S=="function"?S:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function G(S,N,Y){this.props=S,this.context=N,this.refs=w,this.updater=Y||z}G.prototype.isReactComponent={},G.prototype.setState=function(S,N){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,N,"setState")},G.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=G.prototype;function X(S,N,Y){this.props=S,this.context=N,this.refs=w,this.updater=Y||z}var le=X.prototype=new I;le.constructor=X,C(le,G.prototype),le.isPureReactComponent=!0;var ue=Array.isArray;function me(){}var F={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function ke(S,N,Y){var V=Y.ref;return{$$typeof:l,type:S,key:N,ref:V!==void 0?V:null,props:Y}}function it(S,N){return ke(S.type,N,S.props)}function We(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function Z(S){var N={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return N[Y]})}var fe=/\/+/g;function xe(S,N){return typeof S=="object"&&S!==null&&S.key!=null?Z(""+S.key):N.toString(36)}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(me,me):(S.status="pending",S.then(function(N){S.status==="pending"&&(S.status="fulfilled",S.value=N)},function(N){S.status==="pending"&&(S.status="rejected",S.reason=N)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function D(S,N,Y,V,$){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var ze=!1;if(S===null)ze=!0;else switch(oe){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(S.$$typeof){case l:case o:ze=!0;break;case v:return ze=S._init,D(ze(S._payload),N,Y,V,$)}}if(ze)return $=$(S),ze=V===""?"."+xe(S,0):V,ue($)?(Y="",ze!=null&&(Y=ze.replace(fe,"$&/")+"/"),D($,N,Y,"",function(fl){return fl})):$!=null&&(We($)&&($=it($,Y+($.key==null||S&&S.key===$.key?"":(""+$.key).replace(fe,"$&/")+"/")+ze)),N.push($)),1;ze=0;var rt=V===""?".":V+":";if(ue(S))for(var Ze=0;Ze<S.length;Ze++)V=S[Ze],oe=rt+xe(V,Ze),ze+=D(V,N,Y,oe,$);else if(Ze=R(S),typeof Ze=="function")for(S=Ze.call(S),Ze=0;!(V=S.next()).done;)V=V.value,oe=rt+xe(V,Ze++),ze+=D(V,N,Y,oe,$);else if(oe==="object"){if(typeof S.then=="function")return D(_e(S),N,Y,V,$);throw N=String(S),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Q(S,N,Y){if(S==null)return S;var V=[],$=0;return D(S,V,"","",function(oe){return N.call(Y,oe,$++)}),V}function te(S){if(S._status===-1){var N=S._result;N=N(),N.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=N)}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 N=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(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},K={map:Q,forEach:function(S,N,Y){Q(S,function(){N.apply(this,arguments)},Y)},count:function(S){var N=0;return Q(S,function(){N++}),N},toArray:function(S){return Q(S,function(N){return N})||[]},only:function(S){if(!We(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return se.Activity=y,se.Children=K,se.Component=G,se.Fragment=c,se.Profiler=f,se.PureComponent=X,se.StrictMode=s,se.Suspense=b,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},se.cache=function(S){return function(){return S.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(S,N,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=C({},S.props),$=S.key;if(N!=null)for(oe in N.key!==void 0&&($=""+N.key),N)!we.call(N,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&N.ref===void 0||(V[oe]=N[oe]);var oe=arguments.length-2;if(oe===1)V.children=Y;else if(1<oe){for(var ze=Array(oe),rt=0;rt<oe;rt++)ze[rt]=arguments[rt+2];V.children=ze}return ke(S.type,$,V)},se.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:p,_context:S},S},se.createElement=function(S,N,Y){var V,$={},oe=null;if(N!=null)for(V in N.key!==void 0&&(oe=""+N.key),N)we.call(N,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&($[V]=N[V]);var ze=arguments.length-2;if(ze===1)$.children=Y;else if(1<ze){for(var rt=Array(ze),Ze=0;Ze<ze;Ze++)rt[Ze]=arguments[Ze+2];$.children=rt}if(S&&S.defaultProps)for(V in ze=S.defaultProps,ze)$[V]===void 0&&($[V]=ze[V]);return ke(S,oe,$)},se.createRef=function(){return{current:null}},se.forwardRef=function(S){return{$$typeof:x,render:S}},se.isValidElement=We,se.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:te}},se.memo=function(S,N){return{$$typeof:m,type:S,compare:N===void 0?null:N}},se.startTransition=function(S){var N=F.T,Y={};F.T=Y;try{var V=S(),$=F.S;$!==null&&$(Y,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(me,Re)}catch(oe){Re(oe)}finally{N!==null&&Y.types!==null&&(N.types=Y.types),F.T=N}},se.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},se.use=function(S){return F.H.use(S)},se.useActionState=function(S,N,Y){return F.H.useActionState(S,N,Y)},se.useCallback=function(S,N){return F.H.useCallback(S,N)},se.useContext=function(S){return F.H.useContext(S)},se.useDebugValue=function(){},se.useDeferredValue=function(S,N){return F.H.useDeferredValue(S,N)},se.useEffect=function(S,N){return F.H.useEffect(S,N)},se.useEffectEvent=function(S){return F.H.useEffectEvent(S)},se.useId=function(){return F.H.useId()},se.useImperativeHandle=function(S,N,Y){return F.H.useImperativeHandle(S,N,Y)},se.useInsertionEffect=function(S,N){return F.H.useInsertionEffect(S,N)},se.useLayoutEffect=function(S,N){return F.H.useLayoutEffect(S,N)},se.useMemo=function(S,N){return F.H.useMemo(S,N)},se.useOptimistic=function(S,N){return F.H.useOptimistic(S,N)},se.useReducer=function(S,N,Y){return F.H.useReducer(S,N,Y)},se.useRef=function(S){return F.H.useRef(S)},se.useState=function(S){return F.H.useState(S)},se.useSyncExternalStore=function(S,N,Y){return F.H.useSyncExternalStore(S,N,Y)},se.useTransition=function(){return F.H.useTransition()},se.version="19.2.4",se}var zh;function ac(){return zh||(zh=1,Cu.exports=Yy()),Cu.exports}var A=ac();const Ir=Sm(A);var wu={exports:{}},ii={},_u={exports:{}},Ou={};var Ah;function Gy(){return Ah||(Ah=1,(function(l){function o(D,Q){var te=D.length;D.push(Q);e:for(;0<te;){var Re=te-1>>>1,K=D[Re];if(0<f(K,Q))D[Re]=Q,D[te]=K,te=Re;else break e}}function c(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var Q=D[0],te=D.pop();if(te!==Q){D[0]=te;e:for(var Re=0,K=D.length,S=K>>>1;Re<S;){var N=2*(Re+1)-1,Y=D[N],V=N+1,$=D[V];if(0>f(Y,te))V<K&&0>f($,Y)?(D[Re]=$,D[V]=te,Re=V):(D[Re]=Y,D[N]=te,Re=N);else if(V<K&&0>f($,te))D[Re]=$,D[V]=te,Re=V;else break e}}return Q}function f(D,Q){var te=D.sortIndex-Q.sortIndex;return te!==0?te:D.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;l.unstable_now=function(){return p.now()}}else{var h=Date,x=h.now();l.unstable_now=function(){return h.now()-x}}var b=[],m=[],v=1,y=null,k=3,R=!1,z=!1,C=!1,w=!1,G=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function le(D){for(var Q=c(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=D)s(m),Q.sortIndex=Q.expirationTime,o(b,Q);else break;Q=c(m)}}function ue(D){if(C=!1,le(D),!z)if(c(b)!==null)z=!0,me||(me=!0,Z());else{var Q=c(m);Q!==null&&_e(ue,Q.startTime-D)}}var me=!1,F=-1,we=5,ke=-1;function it(){return w?!0:!(l.unstable_now()-ke<we)}function We(){if(w=!1,me){var D=l.unstable_now();ke=D;var Q=!0;try{e:{z=!1,C&&(C=!1,I(F),F=-1),R=!0;var te=k;try{t:{for(le(D),y=c(b);y!==null&&!(y.expirationTime>D&&it());){var Re=y.callback;if(typeof Re=="function"){y.callback=null,k=y.priorityLevel;var K=Re(y.expirationTime<=D);if(D=l.unstable_now(),typeof K=="function"){y.callback=K,le(D),Q=!0;break t}y===c(b)&&s(b),le(D)}else s(b);y=c(b)}if(y!==null)Q=!0;else{var S=c(m);S!==null&&_e(ue,S.startTime-D),Q=!1}}break e}finally{y=null,k=te,R=!1}Q=void 0}}finally{Q?Z():me=!1}}}var Z;if(typeof X=="function")Z=function(){X(We)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,xe=fe.port2;fe.port1.onmessage=We,Z=function(){xe.postMessage(null)}}else Z=function(){G(We,0)};function _e(D,Q){F=G(function(){D(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return k},l.unstable_next=function(D){switch(k){case 1:case 2:case 3:var Q=3;break;default:Q=k}var te=k;k=Q;try{return D()}finally{k=te}},l.unstable_requestPaint=function(){w=!0},l.unstable_runWithPriority=function(D,Q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=k;k=D;try{return Q()}finally{k=te}},l.unstable_scheduleCallback=function(D,Q,te){var Re=l.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Re+te:Re):te=Re,D){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=te+K,D={id:v++,callback:Q,priorityLevel:D,startTime:te,expirationTime:K,sortIndex:-1},te>Re?(D.sortIndex=te,o(m,D),c(b)===null&&D===c(m)&&(C?(I(F),F=-1):C=!0,_e(ue,te-Re))):(D.sortIndex=K,o(b,D),z||R||(z=!0,me||(me=!0,Z()))),D},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(D){var Q=k;return function(){var te=k;k=Q;try{return D.apply(this,arguments)}finally{k=te}}}})(Ou)),Ou}var Th;function Vy(){return Th||(Th=1,_u.exports=Gy()),_u.exports}var Mu={exports:{}},dt={};var Ch;function Xy(){if(Ch)return dt;Ch=1;var l=ac();function o(b){var m="https://react.dev/errors/"+b;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+b+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(o(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function p(b,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:y==null?null:""+y,children:b,containerInfo:m,implementation:v}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(b,m){if(b==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,dt.createPortal=function(b,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return p(b,m,null,v)},dt.flushSync=function(b){var m=h.T,v=s.p;try{if(h.T=null,s.p=2,b)return b()}finally{h.T=m,s.p=v,s.d.f()}},dt.preconnect=function(b,m){typeof b=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(b,m))},dt.prefetchDNS=function(b){typeof b=="string"&&s.d.D(b)},dt.preinit=function(b,m){if(typeof b=="string"&&m&&typeof m.as=="string"){var v=m.as,y=x(v,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,R=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(b,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:k,fetchPriority:R}):v==="script"&&s.d.X(b,{crossOrigin:y,integrity:k,fetchPriority:R,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},dt.preinitModule=function(b,m){if(typeof b=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=x(m.as,m.crossOrigin);s.d.M(b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(b)},dt.preload=function(b,m){if(typeof b=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=x(v,m.crossOrigin);s.d.L(b,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},dt.preloadModule=function(b,m){if(typeof b=="string")if(m){var v=x(m.as,m.crossOrigin);s.d.m(b,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(b)},dt.requestFormReset=function(b){s.d.r(b)},dt.unstable_batchedUpdates=function(b,m){return b(m)},dt.useFormState=function(b,m,v){return h.H.useFormState(b,m,v)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var wh;function Qy(){if(wh)return Mu.exports;wh=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),Mu.exports=Xy(),Mu.exports}var _h;function Zy(){if(_h)return ii;_h=1;var l=Vy(),o=ac(),c=Qy();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 p(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 h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(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 b(e){if(p(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return b(i),e;if(r===n)return b(i),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=i,n=r;else{for(var d=!1,g=i.child;g;){if(g===a){d=!0,a=i,n=r;break}if(g===n){d=!0,n=i,a=r;break}g=g.sibling}if(!d){for(g=r.child;g;){if(g===a){d=!0,a=r,n=i;break}if(g===n){d=!0,n=r,a=i;break}g=g.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 v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,k=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),X=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),ke=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),We=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=We&&e[We]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case G:return"Profiler";case w:return"StrictMode";case ue:return"Suspense";case me:return"SuspenseList";case ke:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case X:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F: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 _e=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Re=[],K=-1;function S(e){return{current:e}}function N(e){0>K||(e.current=Re[K],Re[K]=null,K--)}function Y(e,t){K++,Re[K]=e.current,e.current=t}var V=S(null),$=S(null),oe=S(null),ze=S(null);function rt(e,t){switch(Y(oe,t),Y($,e),Y(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qp(t),e=Zp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}N(V),Y(V,e)}function Ze(){N(V),N($),N(oe)}function fl(e){e.memoizedState!==null&&Y(ze,e);var t=V.current,a=Zp(t,e.type);t!==a&&(Y($,e),Y(V,a))}function vi(e){$.current===e&&(N(V),N($)),ze.current===e&&(N(ze),ei._currentValue=te)}var so,bc;function Wa(e){if(so===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);so=t&&t[1]||"",bc=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+so+e+bc}var uo=!1;function co(e,t){if(!e||uo)return"";uo=!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(H){var M=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){M=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){M=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&M&&typeof H.stack=="string")return[H.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],g=r[1];if(d&&g){var j=d.split(`
4
- `),O=g.split(`
5
- `);for(i=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(n===j.length||i===O.length)for(n=j.length-1,i=O.length-1;1<=n&&0<=i&&j[n]!==O[i];)i--;for(;1<=n&&0<=i;n--,i--)if(j[n]!==O[i]){if(n!==1||i!==1)do if(n--,i--,0>i||j[n]!==O[i]){var U=`
6
- `+j[n].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=n&&0<=i);break}}}finally{uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function g0(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 co(e.type,!1);case 11:return co(e.type.render,!1);case 1:return co(e.type,!0);case 31:return Wa("Activity");default:return""}}function Sc(e){try{var t="",a=null;do t+=g0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
- Error generating stack: `+n.message+`
8
- `+n.stack}}var fo=Object.prototype.hasOwnProperty,po=l.unstable_scheduleCallback,ho=l.unstable_cancelCallback,y0=l.unstable_shouldYield,x0=l.unstable_requestPaint,Rt=l.unstable_now,v0=l.unstable_getCurrentPriorityLevel,jc=l.unstable_ImmediatePriority,Ec=l.unstable_UserBlockingPriority,bi=l.unstable_NormalPriority,b0=l.unstable_LowPriority,Rc=l.unstable_IdlePriority,S0=l.log,j0=l.unstable_setDisableYieldValue,dl=null,zt=null;function Ra(e){if(typeof S0=="function"&&j0(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(dl,e)}catch{}}var At=Math.clz32?Math.clz32:z0,E0=Math.log,R0=Math.LN2;function z0(e){return e>>>=0,e===0?32:31-(E0(e)/R0|0)|0}var Si=256,ji=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 Ri(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=n&134217727;return g!==0?(n=g&~r,n!==0?i=$a(n):(d&=g,d!==0?i=$a(d):a||(a=g&~e,a!==0&&(i=$a(a))))):(g=n&~r,g!==0?i=$a(g):d!==0?i=$a(d):a||(a=n&~e,a!==0&&(i=$a(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function pl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function A0(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 zc(){var e=Ei;return Ei<<=1,(Ei&62914560)===0&&(Ei=4194304),e}function mo(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 T0(e,t,a,n,i,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 g=e.entanglements,j=e.expirationTimes,O=e.hiddenUpdates;for(a=d&~a;0<a;){var U=31-At(a),q=1<<U;g[U]=0,j[U]=-1;var M=O[U];if(M!==null)for(O[U]=null,U=0;U<M.length;U++){var H=M[U];H!==null&&(H.lane&=-536870913)}a&=~q}n!==0&&Ac(e,n,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function Ac(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-At(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Tc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-At(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function Cc(e,t){var a=t&-t;return a=(a&42)!==0?1:go(a),(a&(e.suspendedLanes|t))!==0?0:a}function go(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 wc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:mh(e.type))}function _c(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var za=Math.random().toString(36).slice(2),ot="__reactFiber$"+za,mt="__reactProps$"+za,bn="__reactContainer$"+za,xo="__reactEvents$"+za,C0="__reactListeners$"+za,w0="__reactHandles$"+za,Oc="__reactResources$"+za,ml="__reactMarker$"+za;function vo(e){delete e[ot],delete e[mt],delete e[xo],delete e[C0],delete e[w0]}function Sn(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Pp(e);e!==null;){if(a=e[ot])return a;e=Pp(e)}return t}e=a,a=e.parentNode}return null}function jn(e){if(e=e[ot]||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 gl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function En(e){var t=e[Oc];return t||(t=e[Oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[ml]=!0}var Mc=new Set,kc={};function Ia(e,t){Rn(e,t),Rn(e+"Capture",t)}function Rn(e,t){for(kc[e]=t,e=0;e<t.length;e++)Mc.add(t[e])}var _0=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]*$"),Dc={},Nc={};function O0(e){return fo.call(Nc,e)?!0:fo.call(Dc,e)?!1:_0.test(e)?Nc[e]=!0:(Dc[e]=!0,!1)}function zi(e,t,a){if(O0(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 Ai(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 ia(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 Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M0(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 i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.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 bo(e){if(!e._valueTracker){var t=Bc(e)?"checked":"value";e._valueTracker=M0(e,t,""+e[t])}}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Bc(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 k0=/[\n"\\]/g;function Bt(e){return e.replace(k0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function So(e,t,a,n,i,r,d,g){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=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?jo(e,d,Nt(t)):a!=null?jo(e,d,Nt(a)):n!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Nt(g):e.removeAttribute("name")}function Uc(e,t,a,n,i,r,d,g){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)){bo(e);return}a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=g?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),bo(e)}function jo(e,t,a){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Nt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lc(e,t,a){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Nt(a):""}function qc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(_e(n)){if(1<n.length)throw Error(s(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Nt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),bo(e)}function An(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var D0=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 Yc(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||D0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Gc(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 i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Yc(e,i,n)}else for(var r in t)t.hasOwnProperty(r)&&Yc(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 N0=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"]]),B0=/^[\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 B0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var Ro=null;function zo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,Cn=null;function Vc(e){var t=jn(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(So(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="'+Bt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[mt]||null;if(!i)throw Error(s(90));So(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Hc(n)}break e;case"textarea":Lc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zn(e,!!a.multiple,t,!1)}}}var Ao=!1;function Xc(e,t,a){if(Ao)return e(t,a);Ao=!0;try{var n=e(t);return n}finally{if(Ao=!1,(Tn!==null||Cn!==null)&&(mr(),Tn&&(t=Tn,e=Cn,Cn=Tn=null,Vc(t),e)))for(t=0;t<e.length;t++)Vc(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[mt]||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 oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),To=!1;if(oa)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){To=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{To=!1}var Aa=null,Co=null,wi=null;function Qc(){if(wi)return wi;var e,t=Co,a=t.length,n,i="value"in Aa?Aa.value:Aa.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===i[r-n];n++);return wi=i.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 Oi(){return!0}function Zc(){return!1}function gt(e){function t(a,n,i,r,d){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Oi:Zc,this.isPropagationStopped=Zc,this}return y(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=Oi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=gt(Pa),vl=y({},Pa,{view:0,detail:0}),H0=gt(vl),wo,_o,bl,ki=y({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,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!==bl&&(bl&&e.type==="mousemove"?(wo=e.screenX-bl.screenX,_o=e.screenY-bl.screenY):_o=wo=0,bl=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Kc=gt(ki),U0=y({},ki,{dataTransfer:0}),L0=gt(U0),q0=y({},vl,{relatedTarget:0}),Oo=gt(q0),Y0=y({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),G0=gt(Y0),V0=y({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X0=gt(V0),Q0=y({},Pa,{data:0}),Fc=gt(Q0),Z0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K0={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"},F0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F0[e])?!!t[e]:!1}function Mo(){return J0}var W0=y({},vl,{key:function(e){if(e.key){var t=Z0[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"?K0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,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}}),$0=gt(W0),I0=y({},ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jc=gt(I0),P0=y({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),eg=gt(P0),tg=y({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ag=gt(tg),ng=y({},ki,{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}),lg=gt(ng),ig=y({},Pa,{newState:0,oldState:0}),rg=gt(ig),og=[9,13,27,32],ko=oa&&"CompositionEvent"in window,Sl=null;oa&&"documentMode"in document&&(Sl=document.documentMode);var sg=oa&&"TextEvent"in window&&!Sl,Wc=oa&&(!ko||Sl&&8<Sl&&11>=Sl),$c=" ",Ic=!1;function Pc(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function ug(e,t){switch(e){case"compositionend":return ef(t);case"keypress":return t.which!==32?null:(Ic=!0,$c);case"textInput":return e=t.data,e===$c&&Ic?null:e;default:return null}}function cg(e,t){if(wn)return e==="compositionend"||!ko&&Pc(e,t)?(e=Qc(),wi=Co=Aa=null,wn=!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 Wc&&t.locale!=="ko"?null:t.data;default:return null}}var fg={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 tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fg[e.type]:t==="textarea"}function af(e,t,a,n){Tn?Cn?Cn.push(n):Cn=[n]:Tn=n,t=jr(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var jl=null,El=null;function dg(e){Lp(e,0)}function Di(e){var t=gl(e);if(Hc(t))return e}function nf(e,t){if(e==="change")return t}var lf=!1;if(oa){var Do;if(oa){var No="oninput"in document;if(!No){var rf=document.createElement("div");rf.setAttribute("oninput","return;"),No=typeof rf.oninput=="function"}Do=No}else Do=!1;lf=Do&&(!document.documentMode||9<document.documentMode)}function of(){jl&&(jl.detachEvent("onpropertychange",sf),El=jl=null)}function sf(e){if(e.propertyName==="value"&&Di(El)){var t=[];af(t,El,e,zo(e)),Xc(dg,t)}}function pg(e,t,a){e==="focusin"?(of(),jl=t,El=a,jl.attachEvent("onpropertychange",sf)):e==="focusout"&&of()}function hg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Di(El)}function mg(e,t){if(e==="click")return Di(t)}function gg(e,t){if(e==="input"||e==="change")return Di(t)}function yg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:yg;function Rl(e,t){if(Tt(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 i=a[n];if(!fo.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function uf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cf(e,t){var a=uf(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=uf(a)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function df(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 Bo(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 xg=oa&&"documentMode"in document&&11>=document.documentMode,_n=null,Ho=null,zl=null,Uo=!1;function pf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uo||_n==null||_n!==Ti(n)||(n=_n,"selectionStart"in n&&Bo(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}),zl&&Rl(zl,n)||(zl=n,n=jr(Ho,"onSelect"),0<n.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=_n)))}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")},Lo={},hf={};oa&&(hf=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(Lo[e])return Lo[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in hf)return Lo[e]=t[a];return e}var mf=tn("animationend"),gf=tn("animationiteration"),yf=tn("animationstart"),vg=tn("transitionrun"),bg=tn("transitionstart"),Sg=tn("transitioncancel"),xf=tn("transitionend"),vf=new Map,qo="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(" ");qo.push("scrollEnd");function Zt(e,t){vf.set(e,t),Ia(t,[e])}var Ni=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)},Ht=[],Mn=0,Yo=0;function Bi(){for(var e=Mn,t=Yo=Mn=0;t<e;){var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var r=Ht[t];if(Ht[t++]=null,n!==null&&i!==null){var d=n.pending;d===null?i.next=i:(i.next=d.next,d.next=i),n.pending=i}r!==0&&bf(a,i,r)}}function Hi(e,t,a,n){Ht[Mn++]=e,Ht[Mn++]=t,Ht[Mn++]=a,Ht[Mn++]=n,Yo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Go(e,t,a,n){return Hi(e,t,a,n),Ui(e)}function an(e,t){return Hi(e,null,null,t),Ui(e)}function bf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!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||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-At(a),e=r.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),r):null}function Ui(e){if(50<Kl)throw Kl=0,$s=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var kn={};function jg(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 Ct(e,t,a,n){return new jg(e,t,a,n)}function Vo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=Ct(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 Sf(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 Li(e,t,a,n,i,r){var d=0;if(n=e,typeof e=="function")Vo(e)&&(d=1);else if(typeof e=="string")d=Ty(e,a,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ke:return e=Ct(31,a,t,i),e.elementType=ke,e.lanes=r,e;case C:return nn(a.children,i,r,t);case w:d=8,i|=24;break;case G:return e=Ct(12,a,t,i|2),e.elementType=G,e.lanes=r,e;case ue:return e=Ct(13,a,t,i),e.elementType=ue,e.lanes=r,e;case me:return e=Ct(19,a,t,i),e.elementType=me,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case I:d=9;break e;case le:d=11;break e;case F: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=Ct(d,a,t,i),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=Ct(7,e,n,t),e.lanes=a,e}function Xo(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function jf(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Qo(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ef=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=Ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Sc(t)},Ef.set(e,t),t)}return{value:e,source:t,stack:Sc(t)}}var Dn=[],Nn=0,qi=null,Al=0,Lt=[],qt=0,Ta=null,It=1,Pt="";function ua(e,t){Dn[Nn++]=Al,Dn[Nn++]=qi,qi=e,Al=t}function Rf(e,t,a){Lt[qt++]=It,Lt[qt++]=Pt,Lt[qt++]=Ta,Ta=e;var n=It;e=Pt;var i=32-At(n)-1;n&=~(1<<i),a+=1;var r=32-At(t)+i;if(30<r){var d=i-i%5;r=(n&(1<<d)-1).toString(32),n>>=d,i-=d,It=1<<32-At(t)+i|a<<i|n,Pt=r+e}else It=1<<r|a<<i|n,Pt=e}function Zo(e){e.return!==null&&(ua(e,1),Rf(e,1,0))}function Ko(e){for(;e===qi;)qi=Dn[--Nn],Dn[Nn]=null,Al=Dn[--Nn],Dn[Nn]=null;for(;e===Ta;)Ta=Lt[--qt],Lt[qt]=null,Pt=Lt[--qt],Lt[qt]=null,It=Lt[--qt],Lt[qt]=null}function zf(e,t){Lt[qt++]=It,Lt[qt++]=Pt,Lt[qt++]=Ta,It=t.id,Pt=t.overflow,Ta=e}var st=null,qe=null,Ee=!1,Ca=null,Yt=!1,Fo=Error(s(519));function wa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Ut(t,e)),Fo}function Af(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ot]=e,t[mt]=n,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)ye(Jl[a],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),Uc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),qc(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||Vp(t.textContent,a)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||wa(e,!0)}function Tf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:st=st.return}}function Bn(e){if(e!==st)return!1;if(!Ee)return Tf(e),Ee=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||du(e.type,e.memoizedProps)),a=!a),a&&qe&&wa(e),Tf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=Ip(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=Ip(e)}else t===27?(t=qe,Va(e.type)?(e=yu,yu=null,qe=e):qe=t):qe=st?Vt(e.stateNode.nextSibling):null;return!0}function ln(){qe=st=null,Ee=!1}function Jo(){var e=Ca;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Ca=null),e}function Tl(e){Ca===null?Ca=[e]:Ca.push(e)}var Wo=S(null),rn=null,ca=null;function _a(e,t,a){Y(Wo,t._currentValue),t._currentValue=a}function fa(e){e._currentValue=Wo.current,N(Wo)}function $o(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 Io(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var g=r;r=i;for(var j=0;j<t.length;j++)if(g.context===t[j]){r.lanes|=a,g=r.alternate,g!==null&&(g.lanes|=a),$o(r.return,a,e),n||(d=null);break e}r=g.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(s(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),$o(d,a,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Hn(e,t,a,n){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var g=i.type;Tt(i.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(i===ze.current){if(d=i.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}i=i.return}e!==null&&Io(t,e,a,n),t.flags|=262144}function Yi(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){rn=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return Cf(rn,e)}function Gi(e,t){return rn===null&&on(e),Cf(e,t)}function Cf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var Eg=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()})}},Rg=l.unstable_scheduleCallback,zg=l.unstable_NormalPriority,$e={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new Eg,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&Rg(zg,function(){e.controller.abort()})}var wl=null,es=0,Un=0,Ln=null;function Ag(e,t){if(wl===null){var a=wl=[];es=0,Un=nu(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return es++,t.then(wf,wf),t}function wf(){if(--es===0&&wl!==null){Ln!==null&&(Ln.status="fulfilled");var e=wl;wl=null,Un=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var _f=D.S;D.S=function(e,t){pp=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ag(e,t),_f!==null&&_f(e,t)};var sn=S(null);function ts(){var e=sn.current;return e!==null?e:Ue.pooledCache}function Vi(e,t){t===null?Y(sn,sn.current):Y(sn,t.pool)}function Of(){var e=ts();return e===null?null:{parent:$e._currentValue,pool:e}}var qn=Error(s(460)),as=Error(s(474)),Xi=Error(s(542)),Qi={then:function(){}};function Mf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ra,ra),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nf(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nf(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 Df(){if(cn===null)throw Error(s(459));var e=cn;return cn=null,e}function Nf(e){if(e===qn||e===Xi)throw Error(s(483))}var Yn=null,_l=0;function Zi(e){var t=_l;return _l+=1,Yn===null&&(Yn=[]),kf(Yn,e,t)}function Ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ki(e,t){throw t.$$typeof===k?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bf(e){function t(T,E){if(e){var _=T.deletions;_===null?(T.deletions=[E],T.flags|=16):_.push(E)}}function a(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function n(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function i(T,E){return T=sa(T,E),T.index=0,T.sibling=null,T}function r(T,E,_){return T.index=_,e?(_=T.alternate,_!==null?(_=_.index,_<E?(T.flags|=67108866,E):_):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function d(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function g(T,E,_,L){return E===null||E.tag!==6?(E=Xo(_,T.mode,L),E.return=T,E):(E=i(E,_),E.return=T,E)}function j(T,E,_,L){var ne=_.type;return ne===C?U(T,E,_.props.children,L,_.key):E!==null&&(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===E.type)?(E=i(E,_.props),Ol(E,_),E.return=T,E):(E=Li(_.type,_.key,_.props,null,T.mode,L),Ol(E,_),E.return=T,E)}function O(T,E,_,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=Qo(_,T.mode,L),E.return=T,E):(E=i(E,_.children||[]),E.return=T,E)}function U(T,E,_,L,ne){return E===null||E.tag!==7?(E=nn(_,T.mode,L,ne),E.return=T,E):(E=i(E,_),E.return=T,E)}function q(T,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Xo(""+E,T.mode,_),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return _=Li(E.type,E.key,E.props,null,T.mode,_),Ol(_,E),_.return=T,_;case z:return E=Qo(E,T.mode,_),E.return=T,E;case we:return E=un(E),q(T,E,_)}if(_e(E)||Z(E))return E=nn(E,T.mode,_,null),E.return=T,E;if(typeof E.then=="function")return q(T,Zi(E),_);if(E.$$typeof===X)return q(T,Gi(T,E),_);Ki(T,E)}return null}function M(T,E,_,L){var ne=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ne!==null?null:g(T,E,""+_,L);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case R:return _.key===ne?j(T,E,_,L):null;case z:return _.key===ne?O(T,E,_,L):null;case we:return _=un(_),M(T,E,_,L)}if(_e(_)||Z(_))return ne!==null?null:U(T,E,_,L,null);if(typeof _.then=="function")return M(T,E,Zi(_),L);if(_.$$typeof===X)return M(T,E,Gi(T,_),L);Ki(T,_)}return null}function H(T,E,_,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(_)||null,g(E,T,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case R:return T=T.get(L.key===null?_:L.key)||null,j(E,T,L,ne);case z:return T=T.get(L.key===null?_:L.key)||null,O(E,T,L,ne);case we:return L=un(L),H(T,E,_,L,ne)}if(_e(L)||Z(L))return T=T.get(_)||null,U(E,T,L,ne,null);if(typeof L.then=="function")return H(T,E,_,Zi(L),ne);if(L.$$typeof===X)return H(T,E,_,Gi(E,L),ne);Ki(E,L)}return null}function J(T,E,_,L){for(var ne=null,Ae=null,ee=E,de=E=0,be=null;ee!==null&&de<_.length;de++){ee.index>de?(be=ee,ee=null):be=ee.sibling;var Te=M(T,ee,_[de],L);if(Te===null){ee===null&&(ee=be);break}e&&ee&&Te.alternate===null&&t(T,ee),E=r(Te,E,de),Ae===null?ne=Te:Ae.sibling=Te,Ae=Te,ee=be}if(de===_.length)return a(T,ee),Ee&&ua(T,de),ne;if(ee===null){for(;de<_.length;de++)ee=q(T,_[de],L),ee!==null&&(E=r(ee,E,de),Ae===null?ne=ee:Ae.sibling=ee,Ae=ee);return Ee&&ua(T,de),ne}for(ee=n(ee);de<_.length;de++)be=H(ee,T,de,_[de],L),be!==null&&(e&&be.alternate!==null&&ee.delete(be.key===null?de:be.key),E=r(be,E,de),Ae===null?ne=be:Ae.sibling=be,Ae=be);return e&&ee.forEach(function(Fa){return t(T,Fa)}),Ee&&ua(T,de),ne}function ie(T,E,_,L){if(_==null)throw Error(s(151));for(var ne=null,Ae=null,ee=E,de=E=0,be=null,Te=_.next();ee!==null&&!Te.done;de++,Te=_.next()){ee.index>de?(be=ee,ee=null):be=ee.sibling;var Fa=M(T,ee,Te.value,L);if(Fa===null){ee===null&&(ee=be);break}e&&ee&&Fa.alternate===null&&t(T,ee),E=r(Fa,E,de),Ae===null?ne=Fa:Ae.sibling=Fa,Ae=Fa,ee=be}if(Te.done)return a(T,ee),Ee&&ua(T,de),ne;if(ee===null){for(;!Te.done;de++,Te=_.next())Te=q(T,Te.value,L),Te!==null&&(E=r(Te,E,de),Ae===null?ne=Te:Ae.sibling=Te,Ae=Te);return Ee&&ua(T,de),ne}for(ee=n(ee);!Te.done;de++,Te=_.next())Te=H(ee,T,de,Te.value,L),Te!==null&&(e&&Te.alternate!==null&&ee.delete(Te.key===null?de:Te.key),E=r(Te,E,de),Ae===null?ne=Te:Ae.sibling=Te,Ae=Te);return e&&ee.forEach(function(Uy){return t(T,Uy)}),Ee&&ua(T,de),ne}function Be(T,E,_,L){if(typeof _=="object"&&_!==null&&_.type===C&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case R:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===C){if(E.tag===7){a(T,E.sibling),L=i(E,_.props.children),L.return=T,T=L;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===E.type){a(T,E.sibling),L=i(E,_.props),Ol(L,_),L.return=T,T=L;break e}a(T,E);break}else t(T,E);E=E.sibling}_.type===C?(L=nn(_.props.children,T.mode,L,_.key),L.return=T,T=L):(L=Li(_.type,_.key,_.props,null,T.mode,L),Ol(L,_),L.return=T,T=L)}return d(T);case z:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){a(T,E.sibling),L=i(E,_.children||[]),L.return=T,T=L;break e}else{a(T,E);break}else t(T,E);E=E.sibling}L=Qo(_,T.mode,L),L.return=T,T=L}return d(T);case we:return _=un(_),Be(T,E,_,L)}if(_e(_))return J(T,E,_,L);if(Z(_)){if(ne=Z(_),typeof ne!="function")throw Error(s(150));return _=ne.call(_),ie(T,E,_,L)}if(typeof _.then=="function")return Be(T,E,Zi(_),L);if(_.$$typeof===X)return Be(T,E,Gi(T,_),L);Ki(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(a(T,E.sibling),L=i(E,_),L.return=T,T=L):(a(T,E),L=Xo(_,T.mode,L),L.return=T,T=L),d(T)):a(T,E)}return function(T,E,_,L){try{_l=0;var ne=Be(T,E,_,L);return Yn=null,ne}catch(ee){if(ee===qn||ee===Xi)throw ee;var Ae=Ct(29,ee,null,T.mode);return Ae.lanes=L,Ae.return=T,Ae}}}var fn=Bf(!0),Hf=Bf(!1),Oa=!1;function ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ls(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 Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ka(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Ui(e),bf(e,null,a),t}return Hi(e,n,t,a),Ui(e)}function Ml(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,Tc(e,a)}}function is(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=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?i=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:n.baseState,firstBaseUpdate:i,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 rs=!1;function kl(){if(rs){var e=Ln;if(e!==null)throw e}}function Dl(e,t,a,n){rs=!1;var i=e.updateQueue;Oa=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var j=g,O=j.next;j.next=null,d===null?r=O:d.next=O,d=j;var U=e.alternate;U!==null&&(U=U.updateQueue,g=U.lastBaseUpdate,g!==d&&(g===null?U.firstBaseUpdate=O:g.next=O,U.lastBaseUpdate=j))}if(r!==null){var q=i.baseState;d=0,U=O=j=null,g=r;do{var M=g.lane&-536870913,H=M!==g.lane;if(H?(ve&M)===M:(n&M)===M){M!==0&&M===Un&&(rs=!0),U!==null&&(U=U.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var J=e,ie=g;M=t;var Be=a;switch(ie.tag){case 1:if(J=ie.payload,typeof J=="function"){q=J.call(Be,q,M);break e}q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ie.payload,M=typeof J=="function"?J.call(Be,q,M):J,M==null)break e;q=y({},q,M);break e;case 2:Oa=!0}}M=g.callback,M!==null&&(e.flags|=64,H&&(e.flags|=8192),H=i.callbacks,H===null?i.callbacks=[M]:H.push(M))}else H={lane:M,tag:g.tag,payload:g.payload,callback:g.callback,next:null},U===null?(O=U=H,j=q):U=U.next=H,d|=M;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;H=g,g=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);U===null&&(j=q),i.baseState=j,i.firstBaseUpdate=O,i.lastBaseUpdate=U,r===null&&(i.shared.lanes=0),Ua|=d,e.lanes=d,e.memoizedState=q}}function Uf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Lf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Uf(a[e],t)}var Gn=S(null),Fi=S(0);function qf(e,t){e=ba,Y(Fi,e),Y(Gn,t),ba=e|t.baseLanes}function os(){Y(Fi,ba),Y(Gn,Gn.current)}function ss(){ba=Fi.current,N(Gn),N(Fi)}var wt=S(null),Gt=null;function Da(e){var t=e.alternate;Y(Ke,Ke.current&1),Y(wt,e),Gt===null&&(t===null||Gn.current!==null||t.memoizedState!==null)&&(Gt=e)}function us(e){Y(Ke,Ke.current),Y(wt,e),Gt===null&&(Gt=e)}function Yf(e){e.tag===22?(Y(Ke,Ke.current),Y(wt,e),Gt===null&&(Gt=e)):Na()}function Na(){Y(Ke,Ke.current),Y(wt,wt.current)}function _t(e){N(wt),Gt===e&&(Gt=null),N(Ke)}var Ke=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||mu(a)||gu(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 da=0,ce=null,De=null,Ie=null,Wi=!1,Vn=!1,dn=!1,$i=0,Nl=0,Xn=null,Cg=0;function Xe(){throw Error(s(321))}function cs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Tt(e[a],t[a]))return!1;return!0}function fs(e,t,a,n,i,r){return da=r,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Rd:As,dn=!1,r=a(n,i),dn=!1,Vn&&(r=Vf(t,a,n,i)),Gf(e),r}function Gf(e){D.H=Ul;var t=De!==null&&De.next!==null;if(da=0,Ie=De=ce=null,Wi=!1,Nl=0,Xn=null,t)throw Error(s(300));e===null||Pe||(e=e.dependencies,e!==null&&Yi(e)&&(Pe=!0))}function Vf(e,t,a,n){ce=e;var i=0;do{if(Vn&&(Xn=null),Nl=0,Vn=!1,25<=i)throw Error(s(301));if(i+=1,Ie=De=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=zd,r=t(a,n)}while(Vn);return r}function wg(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Bl(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ce.flags|=1024),t}function ds(){var e=$i!==0;return $i=0,e}function ps(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function hs(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}da=0,Ie=De=ce=null,Vn=!1,Nl=$i=0,Xn=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ce.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Fe(){if(De===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ie===null?ce.memoizedState:Ie.next;if(t!==null)Ie=t,De=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ie===null?ce.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Ii(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(e){var t=Nl;return Nl+=1,Xn===null&&(Xn=[]),e=kf(Xn,e,t),t=ce,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Rd:As),e}function Pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bl(e);if(e.$$typeof===X)return ut(e)}throw Error(s(438,String(e)))}function ms(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ce.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ii(),ce.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]=it;return t.index++,a}function pa(e,t){return typeof t=="function"?t(e):t}function er(e){var t=Fe();return gs(t,De,e)}function gs(e,t,a){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=a;var i=e.baseQueue,r=n.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,n.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var g=d=null,j=null,O=t,U=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(ve&q)===q:(da&q)===q){var M=O.revertLane;if(M===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===Un&&(U=!0);else if((da&M)===M){O=O.next,M===Un&&(U=!0);continue}else q={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(g=j=q,d=r):j=j.next=q,ce.lanes|=M,Ua|=M;q=O.action,dn&&a(r,q),r=O.hasEagerState?O.eagerState:a(r,q)}else M={lane:q,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(g=j=M,d=r):j=j.next=M,ce.lanes|=q,Ua|=q;O=O.next}while(O!==null&&O!==t);if(j===null?d=r:j.next=g,!Tt(r,e.memoizedState)&&(Pe=!0,U&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=j,n.lastRenderedState=r}return i===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,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);Tt(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Xf(e,t,a){var n=ce,i=Fe(),r=Ee;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!Tt((De||i).memoizedState,a);if(d&&(i.memoizedState=a,Pe=!0),i=i.queue,bs(Kf.bind(null,n,i,e),[e]),i.getSnapshot!==t||d||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},Zf.bind(null,n,i,a,t),null),Ue===null)throw Error(s(349));r||(da&127)!==0||Qf(n,t,a)}return a}function Qf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Ii(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Zf(e,t,a,n){t.value=a,t.getSnapshot=n,Ff(t)&&Jf(e)}function Kf(e,t,a){return a(function(){Ff(t)&&Jf(e)})}function Ff(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Tt(e,a)}catch{return!0}}function Jf(e){var t=an(e,2);t!==null&&St(t,e,2)}function xs(e){var t=ht();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 Wf(e,t,a,n){return e.baseState=a,gs(e,De,typeof n=="function"?n:pa)}function _g(e,t,a,n,i){if(nr(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};D.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,$f(t,r)):(r.next=a.next,t.pending=a.next=r)}}function $f(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var r=D.T,d={};D.T=d;try{var g=a(i,n),j=D.S;j!==null&&j(d,g),If(e,t,g)}catch(O){vs(e,t,O)}finally{r!==null&&d.types!==null&&(r.types=d.types),D.T=r}}else try{r=a(i,n),If(e,t,r)}catch(O){vs(e,t,O)}}function If(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Pf(e,t,n)},function(n){return vs(e,t,n)}):Pf(e,t,a)}function Pf(e,t,a){t.status="fulfilled",t.value=a,ed(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,$f(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,ed(t),t=t.next;while(t!==n)}e.action=null}function ed(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function td(e,t){return t}function ad(e,t){if(Ee){var a=Ue.formState;if(a!==null){e:{var n=ce;if(Ee){if(qe){t:{for(var i=qe,r=Yt;i.nodeType!==8;){if(!r){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){qe=Vt(i.nextSibling),n=i.data==="F!";break e}}wa(n)}n=!1}n&&(t=a[0])}}return a=ht(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:td,lastRenderedState:t},a.queue=n,a=Sd.bind(null,ce,n),n.dispatch=a,n=xs(!1),r=zs.bind(null,ce,!1,n.queue),n=ht(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=_g.bind(null,ce,i,r,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function nd(e){var t=Fe();return ld(t,De,e)}function ld(e,t,a){if(t=gs(e,t,td)[0],e=er(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Bl(t)}catch(d){throw d===qn?Xi:d}else n=t;t=Fe();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Qn(9,{destroy:void 0},Og.bind(null,i,a),null)),[n,r,e]}function Og(e,t){e.action=t}function id(e){var t=Fe(),a=De;if(a!==null)return ld(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=ce.updateQueue,t===null&&(t=Ii(),ce.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 rd(){return Fe().memoizedState}function tr(e,t,a,n){var i=ht();ce.flags|=e,i.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function ar(e,t,a,n){var i=Fe();n=n===void 0?null:n;var r=i.memoizedState.inst;De!==null&&n!==null&&cs(n,De.memoizedState.deps)?i.memoizedState=Qn(t,r,a,n):(ce.flags|=e,i.memoizedState=Qn(1|t,r,a,n))}function od(e,t){tr(8390656,8,e,t)}function bs(e,t){ar(2048,8,e,t)}function Mg(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Ii(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function sd(e){var t=Fe().memoizedState;return Mg({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function ud(e,t){return ar(4,2,e,t)}function cd(e,t){return ar(4,4,e,t)}function fd(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 dd(e,t,a){a=a!=null?a.concat([e]):null,ar(4,4,fd.bind(null,t,e),a)}function Ss(){}function pd(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&cs(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function hd(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&cs(t,n[1]))return n[0];if(n=e(),dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n}function js(e,t,a){return a===void 0||(da&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=mp(),ce.lanes|=e,Ua|=e,a)}function md(e,t,a,n){return Tt(a,t)?a:Gn.current!==null?(e=js(e,a,n),Tt(e,t)||(Pe=!0),e):(da&42)===0||(da&1073741824)!==0&&(ve&261930)===0?(Pe=!0,e.memoizedState=a):(e=mp(),ce.lanes|=e,Ua|=e,t)}function gd(e,t,a,n,i){var r=Q.p;Q.p=r!==0&&8>r?r:8;var d=D.T,g={};D.T=g,zs(e,!1,t,a);try{var j=i(),O=D.S;if(O!==null&&O(g,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var U=Tg(j,n);Hl(e,t,U,kt(e))}else Hl(e,t,n,kt(e))}catch(q){Hl(e,t,{then:function(){},status:"rejected",reason:q},kt())}finally{Q.p=r,d!==null&&g.types!==null&&(d.types=g.types),D.T=d}}function kg(){}function Es(e,t,a,n){if(e.tag!==5)throw Error(s(476));var i=yd(e).queue;gd(e,i,t,te,a===null?kg:function(){return xd(e),a(n)})}function yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:te},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 xd(e){var t=yd(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},kt())}function Rs(){return ut(ei)}function vd(){return Fe().memoizedState}function bd(){return Fe().memoizedState}function Dg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=kt();e=Ma(a);var n=ka(t,e,a);n!==null&&(St(n,t,a),Ml(n,t,a)),t={cache:Po()},e.payload=t;return}t=t.return}}function Ng(e,t,a){var n=kt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nr(e)?jd(t,a):(a=Go(e,t,a,n),a!==null&&(St(a,e,n),Ed(a,t,n)))}function Sd(e,t,a){var n=kt();Hl(e,t,a,n)}function Hl(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(nr(e))jd(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,g=r(d,a);if(i.hasEagerState=!0,i.eagerState=g,Tt(g,d))return Hi(e,t,i,0),Ue===null&&Bi(),!1}catch{}if(a=Go(e,t,i,n),a!==null)return St(a,e,n),Ed(a,t,n),!0}return!1}function zs(e,t,a,n){if(n={lane:2,revertLane:nu(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(s(479))}else t=Go(e,a,n,2),t!==null&&St(t,e,2)}function nr(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function jd(e,t){Vn=Wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ed(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Tc(e,a)}}var Ul={readContext:ut,use:Pi,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Ul.useEffectEvent=Xe;var Rd={readContext:ut,use:Pi,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:od,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,tr(4194308,4,fd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return tr(4194308,4,e,t)},useInsertionEffect:function(e,t){tr(4,2,e,t)},useMemo:function(e,t){var a=ht();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=ht();if(a!==void 0){var i=a(t);if(dn){Ra(!0);try{a(t)}finally{Ra(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Ng.bind(null,ce,e),[n.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,a=Sd.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ss,useDeferredValue:function(e,t){var a=ht();return js(a,e,t)},useTransition:function(){var e=xs(!1);return e=gd.bind(null,ce,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ce,i=ht();if(Ee){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ue===null)throw Error(s(349));(ve&127)!==0||Qf(n,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,od(Kf.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},Zf.bind(null,n,r,a,t),null),a},useId:function(){var e=ht(),t=Ue.identifierPrefix;if(Ee){var a=Pt,n=It;a=(n&~(1<<32-At(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$i++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Cg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rs,useFormState:ad,useActionState:ad,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=zs.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return ht().memoizedState=Dg.bind(null,ce)},useEffectEvent:function(e){var t=ht(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},As={readContext:ut,use:Pi,useCallback:pd,useContext:ut,useEffect:bs,useImperativeHandle:dd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:er,useRef:rd,useState:function(){return er(pa)},useDebugValue:Ss,useDeferredValue:function(e,t){var a=Fe();return md(a,De.memoizedState,e,t)},useTransition:function(){var e=er(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Xf,useId:vd,useHostTransitionStatus:Rs,useFormState:nd,useActionState:nd,useOptimistic:function(e,t){var a=Fe();return Wf(a,De,e,t)},useMemoCache:ms,useCacheRefresh:bd};As.useEffectEvent=sd;var zd={readContext:ut,use:Pi,useCallback:pd,useContext:ut,useEffect:bs,useImperativeHandle:dd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:ys,useRef:rd,useState:function(){return ys(pa)},useDebugValue:Ss,useDeferredValue:function(e,t){var a=Fe();return De===null?js(a,e,t):md(a,De.memoizedState,e,t)},useTransition:function(){var e=ys(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Xf,useId:vd,useHostTransitionStatus:Rs,useFormState:id,useActionState:id,useOptimistic:function(e,t){var a=Fe();return De!==null?Wf(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ms,useCacheRefresh:bd};zd.useEffectEvent=sd;function Ts(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=kt(),i=Ma(n);i.payload=t,a!=null&&(i.callback=a),t=ka(e,i,n),t!==null&&(St(t,e,n),Ml(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=kt(),i=Ma(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=ka(e,i,n),t!==null&&(St(t,e,n),Ml(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=kt(),n=Ma(a);n.tag=2,t!=null&&(n.callback=t),t=ka(e,n,a),t!==null&&(St(t,e,a),Ml(t,e,a))}};function Ad(e,t,a,n,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!Rl(a,n)||!Rl(i,r):!0}function Td(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 pn(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=y({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Cd(e){Ni(e)}function wd(e){console.error(e)}function _d(e){Ni(e)}function lr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Od(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ws(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){lr(e,t)},a}function Md(e){return e=Ma(e),e.tag=3,e}function kd(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=n.value;e.payload=function(){return i(r)},e.callback=function(){Od(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Od(t,a,n),typeof i!="function"&&(La===null?La=new Set([this]):La.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})})}function Bg(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Hn(t,a,i,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Gt===null?gr():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Qi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),eu(e,n,i)),!1;case 22:return a.flags|=65536,n===Qi?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)),eu(e,n,i)),!1}throw Error(s(435,a.tag))}return eu(e,n,i),gr(),!1}if(Ee)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Fo&&(e=Error(s(422),{cause:n}),Tl(Ut(e,a)))):(n!==Fo&&(t=Error(s(423),{cause:n}),Tl(Ut(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Ut(n,a),i=ws(e.stateNode,n,i),is(e,i),Qe!==4&&(Qe=2)),!1;var r=Error(s(520),{cause:n});if(r=Ut(r,a),Zl===null?Zl=[r]:Zl.push(r),Qe!==4&&(Qe=2),t===null)return!0;n=Ut(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=ws(a.stateNode,n,e),is(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"&&(La===null||!La.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Md(i),kd(i,e,a,n),is(a,i),!1}a=a.return}while(a!==null);return!1}var _s=Error(s(461)),Pe=!1;function ct(e,t,a,n){t.child=e===null?Hf(t,null,a,n):fn(t,e.child,a,n)}function Dd(e,t,a,n,i){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var g in n)g!=="ref"&&(d[g]=n[g])}else d=n;return on(t),n=fs(e,t,a,d,r,i),g=ds(),e!==null&&!Pe?(ps(e,t,i),ha(e,t,i)):(Ee&&g&&Zo(t),t.flags|=1,ct(e,t,n,i),t.child)}function Nd(e,t,a,n,i){if(e===null){var r=a.type;return typeof r=="function"&&!Vo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Bd(e,t,r,n,i)):(e=Li(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Us(e,i)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:Rl,a(d,n)&&e.ref===t.ref)return ha(e,t,i)}return t.flags|=1,e=sa(r,n),e.ref=t.ref,e.return=t,t.child=e}function Bd(e,t,a,n,i){if(e!==null){var r=e.memoizedProps;if(Rl(r,n)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=n=r,Us(e,i))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,ha(e,t,i)}return Os(e,t,a,n,i)}function Hd(e,t,a,n){var i=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,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~r}else n=0,t.child=null;return Ud(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vi(t,r!==null?r.cachePool:null),r!==null?qf(t,r):os(),Yf(t);else return n=t.lanes=536870912,Ud(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Vi(t,r.cachePool),qf(t,r),Na(),t.memoizedState=null):(e!==null&&Vi(t,null),os(),Na());return ct(e,t,i,a),t.child}function Ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ud(e,t,a,n,i){var r=ts();return r=r===null?null:{parent:$e._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Vi(t,null),os(),Yf(t),e!==null&&Hn(e,t,n,!0),t.childLanes=i,null}function ir(e,t){return t=or({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ld(e,t,a){return fn(t,e.child,null,a),e=ir(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function Hg(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(n.mode==="hidden")return e=ir(t,n),t.lanes=536870912,Ll(null,e);if(us(t),(e=qe)?(e=$p(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=jf(e),a.return=t,t.child=a,st=t,qe=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return ir(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(us(t),i)if(t.flags&256)t.flags&=-257,t=Ld(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Pe||Hn(e,t,a,!1),i=(a&e.childLanes)!==0,Pe||i){if(n=Ue,n!==null&&(d=Cc(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,an(e,d),St(n,e,d),_s;gr(),t=Ld(e,t,a)}else e=r.treeContext,qe=Vt(d.nextSibling),st=t,Ee=!0,Ca=null,Yt=!1,e!==null&&zf(t,e),t=ir(t,n),t.flags|=4096;return t}return e=sa(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rr(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 Os(e,t,a,n,i){return on(t),a=fs(e,t,a,n,void 0,i),n=ds(),e!==null&&!Pe?(ps(e,t,i),ha(e,t,i)):(Ee&&n&&Zo(t),t.flags|=1,ct(e,t,a,i),t.child)}function qd(e,t,a,n,i,r){return on(t),t.updateQueue=null,a=Vf(t,n,a,i),Gf(e),n=ds(),e!==null&&!Pe?(ps(e,t,r),ha(e,t,r)):(Ee&&n&&Zo(t),t.flags|=1,ct(e,t,a,r),t.child)}function Yd(e,t,a,n,i){if(on(t),t.stateNode===null){var r=kn,d=a.contextType;typeof d=="object"&&d!==null&&(r=ut(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={},ns(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ut(d):kn,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,i),kl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var g=t.memoizedProps,j=pn(a,g);r.props=j;var O=r.context,U=a.contextType;d=kn,typeof U=="object"&&U!==null&&(d=ut(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,U||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||O!==d)&&Td(t,r,n,d),Oa=!1;var M=t.memoizedState;r.state=M,Dl(t,n,r,i),kl(),O=t.memoizedState,g||M!==O||Oa?(typeof q=="function"&&(Ts(t,a,q,n),O=t.memoizedState),(j=Oa||Ad(t,a,j,n,M,O,d))?(U||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=O),r.props=n,r.state=O,r.context=d,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,ls(e,t),d=t.memoizedProps,U=pn(a,d),r.props=U,q=t.pendingProps,M=r.context,O=a.contextType,j=kn,typeof O=="object"&&O!==null&&(j=ut(O)),g=a.getDerivedStateFromProps,(O=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||M!==j)&&Td(t,r,n,j),Oa=!1,M=t.memoizedState,r.state=M,Dl(t,n,r,i),kl();var H=t.memoizedState;d!==q||M!==H||Oa||e!==null&&e.dependencies!==null&&Yi(e.dependencies)?(typeof g=="function"&&(Ts(t,a,g,n),H=t.memoizedState),(U=Oa||Ad(t,a,U,n,M,H,j)||e!==null&&e.dependencies!==null&&Yi(e.dependencies))?(O||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,H,j),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,H,j)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),r.props=n,r.state=H,r.context=j,n=U):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,rr(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,i),t.child=fn(t,null,a,i)):ct(e,t,a,i),t.memoizedState=r.state,e=t.child):e=ha(e,t,i),e}function Gd(e,t,a,n){return ln(),t.flags|=256,ct(e,t,a,n),t.child}var Ms={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ks(e){return{baseLanes:e,cachePool:Of()}}function Ds(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Vd(e,t,a){var n=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?Da(t):Na(),(e=qe)?(e=$p(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=jf(e),a.return=t,t.child=a,st=t,qe=null)):e=null,e===null)throw wa(t);return gu(e)?t.lanes=32:t.lanes=536870912,null}var g=n.children;return n=n.fallback,i?(Na(),i=t.mode,g=or({mode:"hidden",children:g},i),n=nn(n,i,a,null),g.return=t,n.return=t,g.sibling=n,t.child=g,n=t.child,n.memoizedState=ks(a),n.childLanes=Ds(e,d,a),t.memoizedState=Ms,Ll(null,n)):(Da(t),Ns(t,g))}var j=e.memoizedState;if(j!==null&&(g=j.dehydrated,g!==null)){if(r)t.flags&256?(Da(t),t.flags&=-257,t=Bs(e,t,a)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),g=n.fallback,i=t.mode,n=or({mode:"visible",children:n.children},i),g=nn(g,i,a,null),g.flags|=2,n.return=t,g.return=t,n.sibling=g,t.child=n,fn(t,e.child,null,a),n=t.child,n.memoizedState=ks(a),n.childLanes=Ds(e,d,a),t.memoizedState=Ms,t=Ll(null,n));else if(Da(t),gu(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var O=d.dgst;d=O,n=Error(s(419)),n.stack="",n.digest=d,Tl({value:n,source:null,stack:null}),t=Bs(e,t,a)}else if(Pe||Hn(e,t,a,!1),d=(a&e.childLanes)!==0,Pe||d){if(d=Ue,d!==null&&(n=Cc(d,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,an(e,n),St(d,e,n),_s;mu(g)||gr(),t=Bs(e,t,a)}else mu(g)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,qe=Vt(g.nextSibling),st=t,Ee=!0,Ca=null,Yt=!1,e!==null&&zf(t,e),t=Ns(t,n.children),t.flags|=4096);return t}return i?(Na(),g=n.fallback,i=t.mode,j=e.child,O=j.sibling,n=sa(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,O!==null?g=sa(O,g):(g=nn(g,i,a,null),g.flags|=2),g.return=t,n.return=t,n.sibling=g,t.child=n,Ll(null,n),n=t.child,g=e.child.memoizedState,g===null?g=ks(a):(i=g.cachePool,i!==null?(j=$e._currentValue,i=i.parent!==j?{parent:j,pool:j}:i):i=Of(),g={baseLanes:g.baseLanes|a,cachePool:i}),n.memoizedState=g,n.childLanes=Ds(e,d,a),t.memoizedState=Ms,Ll(e.child,n)):(Da(t),a=e.child,e=a.sibling,a=sa(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 Ns(e,t){return t=or({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function or(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Bs(e,t,a){return fn(t,e.child,null,a),e=Ns(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),$o(e.return,t,a)}function Hs(e,t,a,n,i,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=i,d.treeForkCount=r)}function Qd(e,t,a){var n=t.pendingProps,i=n.revealOrder,r=n.tail;n=n.children;var d=Ke.current,g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,Y(Ke,d),ct(e,t,n,a),n=Ee?Al:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xd(e,a,t);else if(e.tag===19)Xd(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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Ji(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Hs(t,!1,i,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ji(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Hs(t,!0,a,null,r,n);break;case"together":Hs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ha(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ua|=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=sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Us(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yi(e)))}function Ug(e,t,a){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),_a(t,$e,e.memoizedState.cache),ln();break;case 27:case 5:fl(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,us(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Da(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Vd(e,t,a):(Da(t),e=ha(e,t,a),e!==null?e.sibling:null);Da(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Hn(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return Qd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Ke,Ke.current),n)break;return null;case 22:return t.lanes=0,Hd(e,t,a,t.pendingProps);case 24:_a(t,$e,e.memoizedState.cache)}return ha(e,t,a)}function Zd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Us(e,a)&&(t.flags&128)===0)return Pe=!1,Ug(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,Ee&&(t.flags&1048576)!==0&&Rf(t,Al,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")Vo(e)?(n=pn(e,n),t.tag=1,t=Yd(null,t,e,n,a)):(t.tag=0,t=Os(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===le){t.tag=11,t=Dd(null,t,e,n,a);break e}else if(i===F){t.tag=14,t=Nd(null,t,e,n,a);break e}}throw t=xe(e)||e,Error(s(306,t,""))}}return t;case 0:return Os(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=pn(n,t.pendingProps),Yd(e,t,n,i,a);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var r=t.memoizedState;i=r.element,ls(e,t),Dl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,_a(t,$e,n),n!==r.cache&&Io(t,[$e],a,!0),kl(),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=Gd(e,t,n,a);break e}else if(n!==i){i=Ut(Error(s(424)),t),Tl(i),t=Gd(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,qe=Vt(e.firstChild),st=t,Ee=!0,Ca=null,Yt=!0,a=Hf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===i){t=ha(e,t,a);break e}ct(e,t,n,a)}t=t.child}return t;case 26:return rr(e,t),e===null?(a=nh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ee||(a=t.type,e=t.pendingProps,n=Er(oe.current).createElement(a),n[ot]=t,n[mt]=e,ft(n,a,e),nt(n),t.stateNode=n):t.memoizedState=nh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fl(t),e===null&&Ee&&(n=t.stateNode=eh(t.type,t.pendingProps,oe.current),st=t,Yt=!0,i=qe,Va(t.type)?(yu=i,qe=Vt(n.firstChild)):qe=i),ct(e,t,t.pendingProps.children,a),rr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=n=qe)&&(n=hy(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,st=t,qe=Vt(n.firstChild),Yt=!1,i=!0):i=!1),i||wa(t)),fl(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,du(i,r)?n=null:d!==null&&du(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=fs(e,t,wg,null,null,a),ei._currentValue=i),rr(e,t),ct(e,t,n,a),t.child;case 6:return e===null&&Ee&&((e=a=qe)&&(a=my(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,st=t,qe=null,e=!0):e=!1),e||wa(t)),null;case 13:return Vd(e,t,a);case 4:return rt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fn(t,null,n,a):ct(e,t,n,a),t.child;case 11:return Dd(e,t,t.type,t.pendingProps,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,_a(t,t.type,n.value),ct(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,on(t),i=ut(i),n=n(i),t.flags|=1,ct(e,t,n,a),t.child;case 14:return Nd(e,t,t.type,t.pendingProps,a);case 15:return Bd(e,t,t.type,t.pendingProps,a);case 19:return Qd(e,t,a);case 31:return Hg(e,t,a);case 22:return Hd(e,t,a,t.pendingProps);case 24:return on(t),n=ut($e),e===null?(i=ts(),i===null&&(i=Ue,r=Po(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:n,cache:i},ns(t),_a(t,$e,i)):((e.lanes&a)!==0&&(ls(e,t),Dl(t,null,null,a),kl()),i=e.memoizedState,r=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_a(t,$e,n)):(n=r.cache,_a(t,$e,n),n!==i.cache&&Io(t,[$e],a,!0))),ct(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function Ls(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(vp())e.flags|=8192;else throw cn=Qi,as}else e.flags&=-16777217}function Kd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sh(t))if(vp())e.flags|=8192;else throw cn=Qi,as}function sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zc():536870912,e.lanes|=t,Jn|=t)}function ql(e,t){if(!Ee)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 i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Lg(e,t,a){var n=t.pendingProps;switch(Ko(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),fa($e),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Bn(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ye(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(ma(t),r!==null?(Ye(t),Kd(t,r)):(Ye(t),Ls(t,i,null,n,a))):r?r!==e.memoizedState?(ma(t),Ye(t),Kd(t,r)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ma(t),Ye(t),Ls(t,i,e,n,a)),null;case 27:if(vi(t),a=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=V.current,Bn(t)?Af(t):(e=eh(i,n,a),t.stateNode=e,ma(t))}return Ye(t),null;case 5:if(vi(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(r=V.current,Bn(t))Af(t);else{var d=Er(oe.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);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(i,{is:n.is}):d.createElement(i)}}r[ot]=t,r[mt]=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(ft(r,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ma(t)}}return Ye(t),Ls(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=oe.current,Bn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=st,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Vp(e.nodeValue,a)),e||wa(t,!0)}else e=Er(e).createTextNode(n),e[ot]=t,t.stateNode=e}return Ye(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Bn(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[ot]=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?(_t(t),t):(_t(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(i=Bn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[ot]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),i=!1}else i=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),sr(t,t.updateQueue),Ye(t),null);case 4:return Ze(),e===null&&ou(t.stateNode.containerInfo),Ye(t),null;case 10:return fa(t.type),Ye(t),null;case 19:if(N(Ke),n=t.memoizedState,n===null)return Ye(t),null;if(i=(t.flags&128)!==0,r=n.rendering,r===null)if(i)ql(n,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ji(e),r!==null){for(t.flags|=128,ql(n,!1),e=r.updateQueue,t.updateQueue=e,sr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Sf(a,e),a=a.sibling;return Y(Ke,Ke.current&1|2),Ee&&ua(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Rt()>pr&&(t.flags|=128,i=!0,ql(n,!1),t.lanes=4194304)}else{if(!i)if(e=Ji(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,sr(t,e),ql(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Ee)return Ye(t),null}else 2*Rt()-n.renderingStartTime>pr&&a!==536870912&&(t.flags|=128,i=!0,ql(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=Ke.current,Y(Ke,i?a&1|2:a&1),Ee&&ua(t,n.treeForkCount),e):(Ye(t),null);case 22:case 23:return _t(t),ss(),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&&sr(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&&N(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa($e),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function qg(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa($e),Ze(),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(_t(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(_t(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 N(Ke),null;case 4:return Ze(),null;case 10:return fa(t.type),null;case 22:case 23:return _t(t),ss(),e!==null&&N(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa($e),null;case 25:return null;default:return null}}function Fd(e,t){switch(Ko(t),t.tag){case 3:fa($e),Ze();break;case 26:case 27:case 5:vi(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:N(Ke);break;case 10:fa(t.type);break;case 22:case 23:_t(t),ss(),e!==null&&N(sn);break;case 24:fa($e)}}function Yl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;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!==i)}}catch(g){Me(t,t.return,g)}}function Ba(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){var d=n.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,i=t;var j=a,O=g;try{O()}catch(U){Me(i,j,U)}}}n=n.next}while(n!==r)}}catch(U){Me(t,t.return,U)}}function Jd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Lf(t,a)}catch(n){Me(e,e.return,n)}}}function Wd(e,t,a){a.props=pn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(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(i){Me(e,t,i)}}function ea(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Me(e,t,i)}else a.current=null}function $d(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(i){Me(e,e.return,i)}}function qs(e,t,a){try{var n=e.stateNode;sy(n,e.type,a,t),n[mt]=t}catch(i){Me(e,e.return,i)}}function Id(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function Ys(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Id(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&&Va(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=ra));else if(n!==4&&(n===27&&Va(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 ur(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&&Va(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ur(e,t,a),e=e.sibling;e!==null;)ur(e,t,a),e=e.sibling}function Pd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ft(t,n,a),t[ot]=e,t[mt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,et=!1,Vs=!1,ep=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Yg(e,t){if(e=e.containerInfo,cu=_r,e=df(e),Bo(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 i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,g=-1,j=-1,O=0,U=0,q=e,M=null;t:for(;;){for(var H;q!==a||i!==0&&q.nodeType!==3||(g=d+i),q!==r||n!==0&&q.nodeType!==3||(j=d+n),q.nodeType===3&&(d+=q.nodeValue.length),(H=q.firstChild)!==null;)M=q,q=H;for(;;){if(q===e)break t;if(M===a&&++O===i&&(g=d),M===r&&++U===n&&(j=d),(H=q.nextSibling)!==null)break;q=M,M=q.parentNode}q=H}a=g===-1||j===-1?null:{start:g,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(fu={focusedElem:e,selectionRange:a},_r=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,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++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,i=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var J=pn(a.type,i);e=n.getSnapshotBeforeUpdate(J,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Me(a,a.return,ie)}}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,lt=e;break}lt=t.return}}function tp(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),n&4&&Yl(5,a);break;case 1:if(xa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Me(a,a.return,d)}else{var i=pn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Me(a,a.return,d)}}n&64&&Jd(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{Lf(e,t)}catch(d){Me(a,a.return,d)}}break;case 27:t===null&&n&4&&Pd(a);case 26:case 5:xa(e,a),t===null&&n&4&&$d(a),n&512&&Gl(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&lp(e,a);break;case 13:xa(e,a),n&4&&ip(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Wg.bind(null,a),gy(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||et,i=ga;var r=et;ga=n,(et=t)&&!r?va(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ga=i,et=r}break;case 30:break;default:xa(e,a)}}function ap(e){var t=e.alternate;t!==null&&(e.alternate=null,ap(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 Ge=null,yt=!1;function ya(e,t,a){for(a=a.child;a!==null;)np(e,t,a),a=a.sibling}function np(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(dl,a)}catch{}switch(a.tag){case 26:et||ea(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:et||ea(a,t);var n=Ge,i=yt;Va(a.type)&&(Ge=a.stateNode,yt=!1),ya(e,t,a),$l(a.stateNode),Ge=n,yt=i;break;case 5:et||ea(a,t);case 6:if(n=Ge,i=yt,Ge=null,ya(e,t,a),Ge=n,yt=i,Ge!==null)if(yt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Ge.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Ge!==null&&(yt?(e=Ge,Jp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):Jp(Ge,a.stateNode));break;case 4:n=Ge,i=yt,Ge=a.stateNode.containerInfo,yt=!0,ya(e,t,a),Ge=n,yt=i;break;case 0:case 11:case 14:case 15:Ba(2,a,t),et||Ba(4,a,t),ya(e,t,a);break;case 1:et||(ea(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Wd(a,t,n)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:et=(n=et)||a.memoizedState!==null,ya(e,t,a),et=n;break;default:ya(e,t,a)}}function lp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nl(e)}catch(a){Me(t,t.return,a)}}}function ip(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){Me(t,t.return,a)}}function Gg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ep),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ep),t;default:throw Error(s(435,e.tag))}}function cr(e,t){var a=Gg(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=$g.bind(null,e,n);n.then(i,i)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],r=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(Va(g.type)){Ge=g.stateNode,yt=!1;break e}break;case 5:Ge=g.stateNode,yt=!1;break e;case 3:case 4:Ge=g.stateNode.containerInfo,yt=!0;break e}g=g.return}if(Ge===null)throw Error(s(160));np(r,d,i),Ge=null,yt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rp(t,e),t=t.sibling}var Kt=null;function rp(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),vt(e),n&4&&(Ba(3,e,e.return),Yl(3,e),Ba(5,e,e.return));break;case 1:xt(t,e),vt(e),n&512&&(et||a===null||ea(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 i=Kt;if(xt(t,e),vt(e),n&512&&(et||a===null||ea(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,i=i.ownerDocument||i;t:switch(n){case"title":r=i.getElementsByTagName("title")[0],(!r||r[ml]||r[ot]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(n),i.head.insertBefore(r,i.querySelector("head > title"))),ft(r,n,a),r[ot]=e,nt(r),n=r;break e;case"link":var d=rh("link","href",i).get(n+(a.href||""));if(d){for(var g=0;g<d.length;g++)if(r=d[g],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(g,1);break t}}r=i.createElement(n),ft(r,n,a),i.head.appendChild(r);break;case"meta":if(d=rh("meta","content",i).get(n+(a.content||""))){for(g=0;g<d.length;g++)if(r=d[g],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(g,1);break t}}r=i.createElement(n),ft(r,n,a),i.head.appendChild(r);break;default:throw Error(s(468,n))}r[ot]=e,nt(r),n=r}e.stateNode=n}else oh(i,e.type,e.stateNode);else e.stateNode=ih(i,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?oh(i,e.type,e.stateNode):ih(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&qs(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),a!==null&&n&4&&qs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),e.flags&32){i=e.stateNode;try{An(i,"")}catch(J){Me(e,e.return,J)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,qs(e,i,a!==null?a.memoizedProps:i)),n&1024&&(Vs=!0);break;case 6:if(xt(t,e),vt(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(J){Me(e,e.return,J)}}break;case 3:if(Ar=null,i=Kt,Kt=Rr(t.containerInfo),xt(t,e),Kt=i,vt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(J){Me(e,e.return,J)}Vs&&(Vs=!1,op(e));break;case 4:n=Kt,Kt=Rr(e.stateNode.containerInfo),xt(t,e),vt(e),Kt=n;break;case 12:xt(t,e),vt(e);break;case 31:xt(t,e),vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 13:xt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(dr=Rt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,O=ga,U=et;if(ga=O||i,et=U||j,xt(t,e),et=U,ga=O,vt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||ga||et||hn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,i)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=j.stateNode;var q=j.memoizedProps.style,M=q!=null&&q.hasOwnProperty("display")?q.display:null;g.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(J){Me(j,j.return,J)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(J){Me(j,j.return,J)}}}else if(t.tag===18){if(a===null){j=t;try{var H=j.stateNode;i?Wp(H,!0):Wp(j.stateNode,!1)}catch(J){Me(j,j.return,J)}}}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,cr(e,a))));break;case 19:xt(t,e),vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 30:break;case 21:break;default:xt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Id(n)){a=n;break}n=n.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,r=Ys(e);ur(e,r,i);break;case 5:var d=a.stateNode;a.flags&32&&(An(d,""),a.flags&=-33);var g=Ys(e);ur(e,g,d);break;case 3:case 4:var j=a.stateNode.containerInfo,O=Ys(e);Gs(e,O,j);break;default:throw Error(s(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function op(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;op(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;)tp(e,t.alternate,t),t=t.sibling}function hn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ba(4,t,t.return),hn(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Wd(t,t.return,a),hn(t);break;case 27:$l(t.stateNode);case 26:case 5:ea(t,t.return),hn(t);break;case 22:t.memoizedState===null&&hn(t);break;case 30:hn(t);break;default:hn(t)}e=e.sibling}}function va(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:va(i,r,a),Yl(4,r);break;case 1:if(va(i,r,a),n=r,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(O){Me(n,n.return,O)}if(n=r,i=n.updateQueue,i!==null){var g=n.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)Uf(j[i],g)}catch(O){Me(n,n.return,O)}}a&&d&64&&Jd(r),Gl(r,r.return);break;case 27:Pd(r);case 26:case 5:va(i,r,a),a&&n===null&&d&4&&$d(r),Gl(r,r.return);break;case 12:va(i,r,a);break;case 31:va(i,r,a),a&&d&4&&lp(i,r);break;case 13:va(i,r,a),a&&d&4&&ip(i,r);break;case 22:r.memoizedState===null&&va(i,r,a),Gl(r,r.return);break;case 30:break;default:va(i,r,a)}t=t.sibling}}function Xs(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 Qs(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;)sp(e,t,a,n),t=t.sibling}function sp(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,a,n),i&2048&&Yl(9,t);break;case 1:Ft(e,t,a,n);break;case 3:Ft(e,t,a,n),i&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(i&2048){Ft(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,g=r.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Me(t,t.return,j)}}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):Vl(e,t):r._visibility&2?Ft(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Xs(d,t);break;case 24:Ft(e,t,a,n),i&2048&&Qs(t.alternate,t);break;default:Ft(e,t,a,n)}}function Zn(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,g=a,j=n,O=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(r,d,g,j,i),Yl(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?Zn(r,d,g,j,i):Vl(r,d):(U._visibility|=2,Zn(r,d,g,j,i)),i&&O&2048&&Xs(d.alternate,d);break;case 24:Zn(r,d,g,j,i),i&&O&2048&&Qs(d.alternate,d);break;default:Zn(r,d,g,j,i)}t=t.sibling}}function Vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:Vl(a,n),i&2048&&Xs(n.alternate,n);break;case 24:Vl(a,n),i&2048&&Qs(n.alternate,n);break;default:Vl(a,n)}t=t.sibling}}var Xl=8192;function Kn(e,t,a){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)up(e,t,a),e=e.sibling}function up(e,t,a){switch(e.tag){case 26:Kn(e,t,a),e.flags&Xl&&e.memoizedState!==null&&Cy(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:Kn(e,t,a);break;case 3:case 4:var n=Kt;Kt=Rr(e.stateNode.containerInfo),Kn(e,t,a),Kt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Xl,Xl=16777216,Kn(e,t,a),Xl=n):Kn(e,t,a));break;default:Kn(e,t,a)}}function cp(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 Ql(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];lt=n,dp(n,e)}cp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fp(e),e=e.sibling}function fp(e){switch(e.tag){case 0:case 11:case 15:Ql(e),e.flags&2048&&Ba(9,e,e.return);break;case 3:Ql(e);break;case 12:Ql(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fr(e)):Ql(e);break;default:Ql(e)}}function fr(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];lt=n,dp(n,e)}cp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ba(8,t,t.return),fr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fr(t));break;default:fr(t)}e=e.sibling}}function dp(e,t){for(;lt!==null;){var a=lt;switch(a.tag){case 0:case 11:case 15:Ba(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,lt=n;else e:for(a=e;lt!==null;){n=lt;var i=n.sibling,r=n.return;if(ap(n),n===a){lt=null;break e}if(i!==null){i.return=r,lt=i;break e}lt=r}}}var Vg={getCacheForType:function(e){var t=ut($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ut($e).controller.signal}},Xg=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Ue=null,ge=null,ve=0,Oe=0,Ot=null,Ha=!1,Fn=!1,Zs=!1,ba=0,Qe=0,Ua=0,mn=0,Ks=0,Mt=0,Jn=0,Zl=null,bt=null,Fs=!1,dr=0,pp=0,pr=1/0,hr=null,La=null,tt=0,qa=null,Wn=null,Sa=0,Js=0,Ws=null,hp=null,Kl=0,$s=null;function kt(){return(Ce&2)!==0&&ve!==0?ve&-ve:D.T!==null?nu():wc()}function mp(){if(Mt===0)if((ve&536870912)===0||Ee){var e=ji;ji<<=1,(ji&3932160)===0&&(ji=262144),Mt=e}else Mt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Mt}function St(e,t,a){(e===Ue&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ya(e,ve,Mt,!1)),hl(e,a),((Ce&2)===0||e!==Ue)&&(e===Ue&&((Ce&2)===0&&(mn|=a),Qe===4&&Ya(e,ve,Mt,!1)),ta(e))}function gp(e,t,a){if((Ce&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||pl(e,t),i=n?Kg(e,t):Ps(e,t,!0),r=n;do{if(i===0){Fn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Qg(a)){i=Ps(e,t,!1),r=!1;continue}if(i===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 g=e;i=Zl;var j=g.current.memoizedState.isDehydrated;if(j&&($n(g,d).flags|=256),d=Ps(g,d,!1),d!==2){if(Zs&&!j){g.errorRecoveryDisabledLanes|=r,mn|=r,i=4;break e}r=bt,bt=i,r!==null&&(bt===null?bt=r:bt.push.apply(bt,r))}i=d}if(r=!1,i!==2)continue}}if(i===1){$n(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,r=i,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,Mt,!Ha);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=dr+300-Rt(),10<i)){if(Ya(n,t,Mt,!Ha),Ri(n,0,!0)!==0)break e;Sa=t,n.timeoutHandle=Kp(yp.bind(null,n,a,bt,hr,Fs,t,Mt,mn,Jn,Ha,r,"Throttled",-0,0),i);break e}yp(n,a,bt,hr,Fs,t,Mt,mn,Jn,Ha,r,null,-0,0)}}break}while(!0);ta(e)}function yp(e,t,a,n,i,r,d,g,j,O,U,q,M,H){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:ra},up(t,r,q);var J=(r&62914560)===r?dr-Rt():(r&4194048)===r?pp-Rt():0;if(J=wy(q,J),J!==null){Sa=r,e.cancelPendingCommit=J(zp.bind(null,e,t,r,a,n,i,d,g,j,U,q,null,M,H)),Ya(e,r,d,!O);return}}zp(e,t,r,a,n,i,d,g,j)}function Qg(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 i=a[n],r=i.getSnapshot;i=i.value;try{if(!Tt(r(),i))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&=~Ks,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var r=31-At(i),d=1<<r;n[r]=-1,i&=~d}a!==0&&Ac(e,a,t)}function mr(){return(Ce&6)===0?(Fl(0),!1):!0}function Is(){if(ge!==null){if(Oe===0)var e=ge.return;else e=ge,ca=rn=null,hs(e),Yn=null,_l=0,e=ge;for(;e!==null;)Fd(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,fy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sa=0,Is(),Ue=e,ge=a=sa(e.current,null),ve=t,Oe=0,Ot=null,Ha=!1,Fn=pl(e,t),Zs=!1,Jn=Mt=Ks=mn=Ua=Qe=0,bt=Zl=null,Fs=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-At(n),r=1<<i;t|=e[i],n&=~r}return ba=t,Bi(),a}function xp(e,t){ce=null,D.H=Ul,t===qn||t===Xi?(t=Df(),Oe=3):t===as?(t=Df(),Oe=4):Oe=t===_s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ge===null&&(Qe=1,lr(e,Ut(t,e.current)))}function vp(){var e=wt.current;return e===null?!0:(ve&4194048)===ve?Gt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Gt:!1}function bp(){var e=D.H;return D.H=Ul,e===null?Ul:e}function Sp(){var e=D.A;return D.A=Vg,e}function gr(){Qe=4,Ha||(ve&4194048)!==ve&&wt.current!==null||(Fn=!0),(Ua&134217727)===0&&(mn&134217727)===0||Ue===null||Ya(Ue,ve,Mt,!1)}function Ps(e,t,a){var n=Ce;Ce|=2;var i=bp(),r=Sp();(Ue!==e||ve!==t)&&(hr=null,$n(e,t)),t=!1;var d=Qe;e:do try{if(Oe!==0&&ge!==null){var g=ge,j=Ot;switch(Oe){case 8:Is(),d=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var O=Oe;if(Oe=0,Ot=null,In(e,g,j,O),a&&Fn){d=0;break e}break;default:O=Oe,Oe=0,Ot=null,In(e,g,j,O)}}Zg(),d=Qe;break}catch(U){xp(e,U)}while(!0);return t&&e.shellSuspendCounter++,ca=rn=null,Ce=n,D.H=i,D.A=r,ge===null&&(Ue=null,ve=0,Bi()),d}function Zg(){for(;ge!==null;)jp(ge)}function Kg(e,t){var a=Ce;Ce|=2;var n=bp(),i=Sp();Ue!==e||ve!==t?(hr=null,pr=Rt()+500,$n(e,t)):Fn=pl(e,t);e:do try{if(Oe!==0&&ge!==null){t=ge;var r=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,In(e,t,r,1);break;case 2:case 9:if(Mf(r)){Oe=0,Ot=null,Ep(t);break}t=function(){Oe!==2&&Oe!==9||Ue!==e||(Oe=7),ta(e)},r.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Mf(r)?(Oe=0,Ot=null,Ep(t)):(Oe=0,Ot=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 g=ge;if(d?sh(d):g.stateNode.complete){Oe=0,Ot=null;var j=g.sibling;if(j!==null)ge=j;else{var O=g.return;O!==null?(ge=O,yr(O)):ge=null}break t}}Oe=0,Ot=null,In(e,t,r,5);break;case 6:Oe=0,Ot=null,In(e,t,r,6);break;case 8:Is(),Qe=6;break e;default:throw Error(s(462))}}Fg();break}catch(U){xp(e,U)}while(!0);return ca=rn=null,D.H=n,D.A=i,Ce=a,ge!==null?0:(Ue=null,ve=0,Bi(),Qe)}function Fg(){for(;ge!==null&&!y0();)jp(ge)}function jp(e){var t=Zd(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function Ep(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=qd(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=qd(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:hs(t);default:Fd(a,t),t=ge=Sf(t,ba),t=Zd(a,t,ba)}e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function In(e,t,a,n){ca=rn=null,hs(t),Yn=null,_l=0;var i=t.return;try{if(Bg(e,i,t,a,ve)){Qe=1,lr(e,Ut(a,e.current)),ge=null;return}}catch(r){if(i!==null)throw ge=i,r;Qe=1,lr(e,Ut(a,e.current)),ge=null;return}t.flags&32768?(Ee||n===1?e=!0:Fn||(ve&536870912)!==0?e=!1:(Ha=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Rp(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){Rp(t,Ha);return}e=t.return;var a=Lg(t.alternate,t,ba);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Qe===0&&(Qe=5)}function Rp(e,t){do{var a=qg(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);Qe=6,ge=null}function zp(e,t,a,n,i,r,d,g,j){e.cancelPendingCommit=null;do xr();while(tt!==0);if((Ce&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=Yo,T0(e,a,r,d,g,j),e===Ue&&(ge=Ue=null,ve=0),Wn=t,qa=e,Sa=a,Js=r,Ws=i,hp=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ig(bi,function(){return _p(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,i=Q.p,Q.p=2,d=Ce,Ce|=4;try{Yg(e,t,a)}finally{Ce=d,Q.p=i,D.T=n}}tt=1,Ap(),Tp(),Cp()}}function Ap(){if(tt===1){tt=0;var e=qa,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=Q.p;Q.p=2;var i=Ce;Ce|=4;try{rp(t,e);var r=fu,d=df(e.containerInfo),g=r.focusedElem,j=r.selectionRange;if(d!==g&&g&&g.ownerDocument&&ff(g.ownerDocument.documentElement,g)){if(j!==null&&Bo(g)){var O=j.start,U=j.end;if(U===void 0&&(U=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(U,g.value.length);else{var q=g.ownerDocument||document,M=q&&q.defaultView||window;if(M.getSelection){var H=M.getSelection(),J=g.textContent.length,ie=Math.min(j.start,J),Be=j.end===void 0?ie:Math.min(j.end,J);!H.extend&&ie>Be&&(d=Be,Be=ie,ie=d);var T=cf(g,ie),E=cf(g,Be);if(T&&E&&(H.rangeCount!==1||H.anchorNode!==T.node||H.anchorOffset!==T.offset||H.focusNode!==E.node||H.focusOffset!==E.offset)){var _=q.createRange();_.setStart(T.node,T.offset),H.removeAllRanges(),ie>Be?(H.addRange(_),H.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),H.addRange(_))}}}}for(q=[],H=g;H=H.parentNode;)H.nodeType===1&&q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<q.length;g++){var L=q[g];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}_r=!!cu,fu=cu=null}finally{Ce=i,Q.p=n,D.T=a}}e.current=t,tt=2}}function Tp(){if(tt===2){tt=0;var e=qa,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=Q.p;Q.p=2;var i=Ce;Ce|=4;try{tp(e,t.alternate,t)}finally{Ce=i,Q.p=n,D.T=a}}tt=3}}function Cp(){if(tt===4||tt===3){tt=0,x0();var e=qa,t=Wn,a=Sa,n=hp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,Wn=qa=null,wp(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(La=null),yo(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(dl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,i=Q.p,Q.p=2,D.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var g=n[d];r(g.value,{componentStack:g.stack})}}finally{D.T=t,Q.p=i}}(Sa&3)!==0&&xr(),ta(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===$s?Kl++:(Kl=0,$s=e):Kl=0,Fl(0)}}function wp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function xr(){return Ap(),Tp(),Cp(),_p()}function _p(){if(tt!==5)return!1;var e=qa,t=Js;Js=0;var a=yo(Sa),n=D.T,i=Q.p;try{Q.p=32>a?32:a,D.T=null,a=Ws,Ws=null;var r=qa,d=Sa;if(tt=0,Wn=qa=null,Sa=0,(Ce&6)!==0)throw Error(s(331));var g=Ce;if(Ce|=4,fp(r.current),sp(r,r.current,d,a),Ce=g,Fl(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(dl,r)}catch{}return!0}finally{Q.p=i,D.T=n,wp(e,t)}}function Op(e,t,a){t=Ut(a,t),t=ws(e.stateNode,t,2),e=ka(e,t,2),e!==null&&(hl(e,2),ta(e))}function Me(e,t,a){if(e.tag===3)Op(e,e,a);else for(;t!==null;){if(t.tag===3){Op(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(La===null||!La.has(n))){e=Ut(a,e),a=Md(2),n=ka(t,a,2),n!==null&&(kd(a,n,t,e),hl(n,2),ta(n));break}}t=t.return}}function eu(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Xg;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(Zs=!0,i.add(a),e=Jg.bind(null,e,t,a),t.then(e,e))}function Jg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ve&a)===a&&(Qe===4||Qe===3&&(ve&62914560)===ve&&300>Rt()-dr?(Ce&2)===0&&$n(e,0):Ks|=a,Jn===ve&&(Jn=0)),ta(e)}function Mp(e,t){t===0&&(t=zc()),e=an(e,t),e!==null&&(hl(e,t),ta(e))}function Wg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Mp(e,a)}function $g(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.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),Mp(e,a)}function Ig(e,t){return po(e,t)}var vr=null,Pn=null,tu=!1,br=!1,au=!1,Ga=0;function ta(e){e!==Pn&&e.next===null&&(Pn===null?vr=Pn=e:Pn=Pn.next=e),br=!0,tu||(tu=!0,ey())}function Fl(e,t){if(!au&&br){au=!0;do for(var a=!1,n=vr;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var r=0;else{var d=n.suspendedLanes,g=n.pingedLanes;r=(1<<31-At(42|e)+1)-1,r&=i&~(d&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Bp(n,r))}else r=ve,r=Ri(n,n===Ue?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||pl(n,r)||(a=!0,Bp(n,r));n=n.next}while(a);au=!1}}function Pg(){kp()}function kp(){br=tu=!1;var e=0;Ga!==0&&cy()&&(e=Ga);for(var t=Rt(),a=null,n=vr;n!==null;){var i=n.next,r=Dp(n,t);r===0?(n.next=null,a===null?vr=i:a.next=i,i===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(br=!0)),n=i}tt!==0&&tt!==5||Fl(e),Ga!==0&&(Ga=0)}function Dp(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-At(r),g=1<<d,j=i[d];j===-1?((g&a)===0||(g&n)!==0)&&(i[d]=A0(g,t)):j<=t&&(e.expiredLanes|=g),r&=~g}if(t=Ue,a=ve,a=Ri(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ho(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||pl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&ho(n),yo(a)){case 2:case 8:a=Ec;break;case 32:a=bi;break;case 268435456:a=Rc;break;default:a=bi}return n=Np.bind(null,e),a=po(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ho(n),e.callbackPriority=2,e.callbackNode=null,2}function Np(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xr()&&e.callbackNode!==a)return null;var n=ve;return n=Ri(e,e===Ue?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(gp(e,n,t),Dp(e,Rt()),e.callbackNode!=null&&e.callbackNode===a?Np.bind(null,e):null)}function Bp(e,t){if(xr())return null;gp(e,t,!0)}function ey(){dy(function(){(Ce&6)!==0?po(jc,Pg):kp()})}function nu(){if(Ga===0){var e=Un;e===0&&(e=Si,Si<<=1,(Si&261888)===0&&(Si=256)),Ga=e}return Ga}function Hp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function Up(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 ty(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var r=Hp((i[mt]||null).action),d=n.submitter;d&&(t=(t=d[mt]||null)?Hp(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var g=new Mi("action","action",null,n,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ga!==0){var j=d?Up(i,d):new FormData(i);Es(a,{pending:!0,data:j,method:i.method,action:r},null,j)}}else typeof r=="function"&&(g.preventDefault(),j=d?Up(i,d):new FormData(i),Es(a,{pending:!0,data:j,method:i.method,action:r},r,j))},currentTarget:i}]})}}for(var lu=0;lu<qo.length;lu++){var iu=qo[lu],ay=iu.toLowerCase(),ny=iu[0].toUpperCase()+iu.slice(1);Zt(ay,"on"+ny)}Zt(mf,"onAnimationEnd"),Zt(gf,"onAnimationIteration"),Zt(yf,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(vg,"onTransitionRun"),Zt(bg,"onTransitionStart"),Zt(Sg,"onTransitionCancel"),Zt(xf,"onTransitionEnd"),Rn("onMouseEnter",["mouseout","mouseover"]),Rn("onMouseLeave",["mouseout","mouseover"]),Rn("onPointerEnter",["pointerout","pointerover"]),Rn("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(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function Lp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var g=n[d],j=g.instance,O=g.currentTarget;if(g=g.listener,j!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=O;try{r(i)}catch(U){Ni(U)}i.currentTarget=null,r=j}else for(d=0;d<n.length;d++){if(g=n[d],j=g.instance,O=g.currentTarget,g=g.listener,j!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=O;try{r(i)}catch(U){Ni(U)}i.currentTarget=null,r=j}}}}function ye(e,t){var a=t[xo];a===void 0&&(a=t[xo]=new Set);var n=e+"__bubble";a.has(n)||(qp(t,e,2,!1),a.add(n))}function ru(e,t,a){var n=0;t&&(n|=4),qp(a,e,n,t)}var Sr="_reactListening"+Math.random().toString(36).slice(2);function ou(e){if(!e[Sr]){e[Sr]=!0,Mc.forEach(function(a){a!=="selectionchange"&&(ly.has(a)||ru(a,!1,e),ru(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sr]||(t[Sr]=!0,ru("selectionchange",!1,t))}}function qp(e,t,a,n){switch(mh(t)){case 2:var i=My;break;case 8:i=ky;break;default:i=ju}a=i.bind(null,t,a,e),i=void 0,!To||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function su(e,t,a,n,i){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 g=n.stateNode.containerInfo;if(g===i)break;if(d===4)for(d=n.return;d!==null;){var j=d.tag;if((j===3||j===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;g!==null;){if(d=Sn(g),d===null)return;if(j=d.tag,j===5||j===6||j===26||j===27){n=r=d;continue e}g=g.parentNode}}n=n.return}Xc(function(){var O=r,U=zo(a),q=[];e:{var M=vf.get(e);if(M!==void 0){var H=Mi,J=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":H=$0;break;case"focusin":J="focus",H=Oo;break;case"focusout":J="blur",H=Oo;break;case"beforeblur":case"afterblur":H=Oo;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":H=Kc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=L0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=eg;break;case mf:case gf:case yf:H=G0;break;case xf:H=ag;break;case"scroll":case"scrollend":H=H0;break;case"wheel":H=lg;break;case"copy":case"cut":case"paste":H=X0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Jc;break;case"toggle":case"beforetoggle":H=rg}var ie=(t&4)!==0,Be=!ie&&(e==="scroll"||e==="scrollend"),T=ie?M!==null?M+"Capture":null:M;ie=[];for(var E=O,_;E!==null;){var L=E;if(_=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||_===null||T===null||(L=yl(E,T),L!=null&&ie.push(Wl(E,L,_))),Be)break;E=E.return}0<ie.length&&(M=new H(M,J,null,a,U),q.push({event:M,listeners:ie}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",M&&a!==Ro&&(J=a.relatedTarget||a.fromElement)&&(Sn(J)||J[bn]))break e;if((H||M)&&(M=U.window===U?U:(M=U.ownerDocument)?M.defaultView||M.parentWindow:window,H?(J=a.relatedTarget||a.toElement,H=O,J=J?Sn(J):null,J!==null&&(Be=p(J),ie=J.tag,J!==Be||ie!==5&&ie!==27&&ie!==6)&&(J=null)):(H=null,J=O),H!==J)){if(ie=Kc,L="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Jc,L="onPointerLeave",T="onPointerEnter",E="pointer"),Be=H==null?M:gl(H),_=J==null?M:gl(J),M=new ie(L,E+"leave",H,a,U),M.target=Be,M.relatedTarget=_,L=null,Sn(U)===O&&(ie=new ie(T,E+"enter",J,a,U),ie.target=_,ie.relatedTarget=Be,L=ie),Be=L,H&&J)t:{for(ie=iy,T=H,E=J,_=0,L=T;L;L=ie(L))_++;L=0;for(var ne=E;ne;ne=ie(ne))L++;for(;0<_-L;)T=ie(T),_--;for(;0<L-_;)E=ie(E),L--;for(;_--;){if(T===E||E!==null&&T===E.alternate){ie=T;break t}T=ie(T),E=ie(E)}ie=null}else ie=null;H!==null&&Yp(q,M,H,ie,!1),J!==null&&Be!==null&&Yp(q,Be,J,ie,!0)}}e:{if(M=O?gl(O):window,H=M.nodeName&&M.nodeName.toLowerCase(),H==="select"||H==="input"&&M.type==="file")var Ae=nf;else if(tf(M))if(lf)Ae=gg;else{Ae=hg;var ee=pg}else H=M.nodeName,!H||H.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?O&&Eo(O.elementType)&&(Ae=nf):Ae=mg;if(Ae&&(Ae=Ae(e,O))){af(q,Ae,a,U);break e}ee&&ee(e,M,O),e==="focusout"&&O&&M.type==="number"&&O.memoizedProps.value!=null&&jo(M,"number",M.value)}switch(ee=O?gl(O):window,e){case"focusin":(tf(ee)||ee.contentEditable==="true")&&(_n=ee,Ho=O,zl=null);break;case"focusout":zl=Ho=_n=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,pf(q,a,U);break;case"selectionchange":if(xg)break;case"keydown":case"keyup":pf(q,a,U)}var de;if(ko)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else wn?Pc(e,a)&&(be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(be="onCompositionStart");be&&(Wc&&a.locale!=="ko"&&(wn||be!=="onCompositionStart"?be==="onCompositionEnd"&&wn&&(de=Qc()):(Aa=U,Co="value"in Aa?Aa.value:Aa.textContent,wn=!0)),ee=jr(O,be),0<ee.length&&(be=new Fc(be,e,null,a,U),q.push({event:be,listeners:ee}),de?be.data=de:(de=ef(a),de!==null&&(be.data=de)))),(de=sg?ug(e,a):cg(e,a))&&(be=jr(O,"onBeforeInput"),0<be.length&&(ee=new Fc("onBeforeInput","beforeinput",null,a,U),q.push({event:ee,listeners:be}),ee.data=de)),ty(q,e,O,a,U)}Lp(q,t)})}function Wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function jr(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=yl(e,a),i!=null&&n.unshift(Wl(e,i,r)),i=yl(e,t),i!=null&&n.push(Wl(e,i,r))),e.tag===3)return n;e=e.return}return[]}function iy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yp(e,t,a,n,i){for(var r=t._reactName,d=[];a!==null&&a!==n;){var g=a,j=g.alternate,O=g.stateNode;if(g=g.tag,j!==null&&j===n)break;g!==5&&g!==26&&g!==27||O===null||(j=O,i?(O=yl(a,r),O!=null&&d.unshift(Wl(a,O,j))):i||(O=yl(a,r),O!=null&&d.push(Wl(a,O,j)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var ry=/\r\n?/g,oy=/\u0000|\uFFFD/g;function Gp(e){return(typeof e=="string"?e:""+e).replace(ry,`
9
- `).replace(oy,"")}function Vp(e,t){return t=Gp(t),Gp(e)===t}function Ne(e,t,a,n,i,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||An(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&An(e,""+n);break;case"className":Ai(e,"class",n);break;case"tabIndex":Ai(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,a,n);break;case"style":Gc(e,n,r);break;case"data":if(t!=="object"){Ai(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"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,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=ra);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("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(i.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":ye("beforetoggle",e),ye("toggle",e),zi(e,"popover",n);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":zi(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=N0.get(a)||a,zi(e,a,n))}}function uu(e,t,a,n,i,r){switch(a){case"style":Gc(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(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof n=="string"?An(e,n):(typeof n=="number"||typeof n=="bigint")&&An(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),r=e[mt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):zi(e,a,n)}}}function ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var n=!1,i=!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":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ne(e,t,r,d,a,null)}}i&&Ne(e,t,"srcSet",a.srcSet,a,null),n&&Ne(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var g=r=d=i=null,j=null,O=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":i=U;break;case"type":d=U;break;case"checked":j=U;break;case"defaultChecked":O=U;break;case"value":r=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Ne(e,t,n,U,a,null)}}Uc(e,r,g,j,O,d,i,!1);return;case"select":ye("invalid",e),n=d=r=null;for(i in a)if(a.hasOwnProperty(i)&&(g=a[i],g!=null))switch(i){case"value":r=g;break;case"defaultValue":d=g;break;case"multiple":n=g;default:Ne(e,t,i,g,a,null)}t=r,a=d,e.multiple=!!n,t!=null?zn(e,!!n,t,!1):a!=null&&zn(e,!!n,a,!0);return;case"textarea":ye("invalid",e),r=i=n=null;for(d in a)if(a.hasOwnProperty(d)&&(g=a[d],g!=null))switch(d){case"value":n=g;break;case"defaultValue":i=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:Ne(e,t,d,g,a,null)}qc(e,n,i,r);return;case"option":for(j in a)a.hasOwnProperty(j)&&(n=a[j],n!=null)&&(j==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ne(e,t,j,n,a,null));return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(n=0;n<Jl.length;n++)ye(Jl[n],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("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(O in a)if(a.hasOwnProperty(O)&&(n=a[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ne(e,t,O,n,a,null)}return;default:if(Eo(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&uu(e,t,U,n,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(n=a[g],n!=null&&Ne(e,t,g,n,a,null))}function sy(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 i=null,r=null,d=null,g=null,j=null,O=null,U=null;for(H in a){var q=a[H];if(a.hasOwnProperty(H)&&q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":j=q;default:n.hasOwnProperty(H)||Ne(e,t,H,null,n,q)}}for(var M in n){var H=n[M];if(q=a[M],n.hasOwnProperty(M)&&(H!=null||q!=null))switch(M){case"type":r=H;break;case"name":i=H;break;case"checked":O=H;break;case"defaultChecked":U=H;break;case"value":d=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==q&&Ne(e,t,M,H,n,q)}}So(e,d,g,j,O,U,r,i);return;case"select":H=d=g=M=null;for(r in a)if(j=a[r],a.hasOwnProperty(r)&&j!=null)switch(r){case"value":break;case"multiple":H=j;default:n.hasOwnProperty(r)||Ne(e,t,r,null,n,j)}for(i in n)if(r=n[i],j=a[i],n.hasOwnProperty(i)&&(r!=null||j!=null))switch(i){case"value":M=r;break;case"defaultValue":g=r;break;case"multiple":d=r;default:r!==j&&Ne(e,t,i,r,n,j)}t=g,a=d,n=H,M!=null?zn(e,!!a,M,!1):!!n!=!!a&&(t!=null?zn(e,!!a,t,!0):zn(e,!!a,a?[]:"",!1));return;case"textarea":H=M=null;for(g in a)if(i=a[g],a.hasOwnProperty(g)&&i!=null&&!n.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ne(e,t,g,null,n,i)}for(d in n)if(i=n[d],r=a[d],n.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":M=i;break;case"defaultValue":H=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==r&&Ne(e,t,d,i,n,r)}Lc(e,M,H);return;case"option":for(var J in a)M=a[J],a.hasOwnProperty(J)&&M!=null&&!n.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Ne(e,t,J,null,n,M));for(j in n)M=n[j],H=a[j],n.hasOwnProperty(j)&&M!==H&&(M!=null||H!=null)&&(j==="selected"?e.selected=M&&typeof M!="function"&&typeof M!="symbol":Ne(e,t,j,M,n,H));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 ie in a)M=a[ie],a.hasOwnProperty(ie)&&M!=null&&!n.hasOwnProperty(ie)&&Ne(e,t,ie,null,n,M);for(O in n)if(M=n[O],H=a[O],n.hasOwnProperty(O)&&M!==H&&(M!=null||H!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:Ne(e,t,O,M,n,H)}return;default:if(Eo(t)){for(var Be in a)M=a[Be],a.hasOwnProperty(Be)&&M!==void 0&&!n.hasOwnProperty(Be)&&uu(e,t,Be,void 0,n,M);for(U in n)M=n[U],H=a[U],!n.hasOwnProperty(U)||M===H||M===void 0&&H===void 0||uu(e,t,U,M,n,H);return}}for(var T in a)M=a[T],a.hasOwnProperty(T)&&M!=null&&!n.hasOwnProperty(T)&&Ne(e,t,T,null,n,M);for(q in n)M=n[q],H=a[q],!n.hasOwnProperty(q)||M===H||M==null&&H==null||Ne(e,t,q,M,n,H)}function Xp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],r=i.transferSize,d=i.initiatorType,g=i.duration;if(r&&g&&Xp(d)){for(d=0,g=i.responseEnd,n+=1;n<a.length;n++){var j=a[n],O=j.startTime;if(O>g)break;var U=j.transferSize,q=j.initiatorType;U&&Xp(q)&&(j=j.responseEnd,d+=U*(j<g?1:(g-O)/(j-O)))}if(--n,t+=8*(r+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cu=null,fu=null;function Er(e){return e.nodeType===9?e:e.ownerDocument}function Qp(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 Zp(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 du(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 pu=null;function cy(){var e=window.event;return e&&e.type==="popstate"?e===pu?!1:(pu=e,!0):(pu=null,!1)}var Kp=typeof setTimeout=="function"?setTimeout:void 0,fy=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,dy=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(py)}:Kp;function py(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function Jp(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")$l(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$l(a);for(var r=a.firstChild;r;){var d=r.nextSibling,g=r.nodeName;r[ml]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&$l(e.ownerDocument.body);a=i}while(a);nl(t)}function Wp(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 hy(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[ml])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!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function my(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Vt(e.nextSibling),e===null))return null;return e}function $p(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function mu(e){return e.data==="$?"||e.data==="$~"}function gu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gy(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 Vt(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 Ip(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Vt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Pp(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 eh(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 $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var Xt=new Map,th=new Set;function Rr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Q.d;Q.d={f:yy,r:xy,D:vy,C:by,L:Sy,m:jy,X:Ry,S:Ey,M:zy};function yy(){var e=ja.f(),t=mr();return e||t}function xy(e){var t=jn(e);t!==null&&t.tag===5&&t.type==="form"?xd(t):ja.r(e)}var el=typeof document>"u"?null:document;function ah(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var i=Bt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),th.has(i)||(th.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),ft(t,"link",e),nt(t),n.head.appendChild(t)))}}function vy(e){ja.D(e),ah("dns-prefetch",e,null)}function by(e,t){ja.C(e,t),ah("preconnect",e,t)}function Sy(e,t,a){ja.L(e,t,a);var n=el;if(n&&e&&t){var i='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Bt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Bt(a.imageSizes)+'"]')):i+='[href="'+Bt(e)+'"]';var r=i;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Xt.has(r)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(r,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Il(r))||t==="script"&&n.querySelector(Pl(r))||(t=n.createElement("link"),ft(t,"link",e),nt(t),n.head.appendChild(t)))}}function jy(e,t){ja.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Bt(n)+'"][href="'+Bt(e)+'"]',r=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Xt.has(r)&&(e=y({rel:"modulepreload",href:e},t),Xt.set(r,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pl(r)))return}n=a.createElement("link"),ft(n,"link",e),nt(n),a.head.appendChild(n)}}}function Ey(e,t,a){ja.S(e,t,a);var n=el;if(n&&e){var i=En(n).hoistableStyles,r=tl(e);t=t||"default";var d=i.get(r);if(!d){var g={loading:0,preload:null};if(d=n.querySelector(Il(r)))g.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(r))&&xu(e,a);var j=d=n.createElement("link");nt(j),ft(j,"link",e),j._p=new Promise(function(O,U){j.onload=O,j.onerror=U}),j.addEventListener("load",function(){g.loading|=1}),j.addEventListener("error",function(){g.loading|=2}),g.loading|=4,zr(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:g},i.set(r,d)}}}function Ry(e,t){ja.X(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,i=al(e),r=n.get(i);r||(r=a.querySelector(Pl(i)),r||(e=y({src:e,async:!0},t),(t=Xt.get(i))&&vu(e,t),r=a.createElement("script"),nt(r),ft(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function zy(e,t){ja.M(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,i=al(e),r=n.get(i);r||(r=a.querySelector(Pl(i)),r||(e=y({src:e,async:!0,type:"module"},t),(t=Xt.get(i))&&vu(e,t),r=a.createElement("script"),nt(r),ft(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function nh(e,t,a,n){var i=(i=oe.current)?Rr(i):null;if(!i)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=En(i).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=En(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Il(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Xt.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},Xt.set(e,a),r||Ay(i,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=En(i).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="'+Bt(e)+'"'}function Il(e){return'link[rel="stylesheet"]['+e+"]"}function lh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Ay(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}),ft(t,"link",a),nt(t),e.head.appendChild(t))}function al(e){return'[src="'+Bt(e)+'"]'}function Pl(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~="'+Bt(a.href)+'"]');if(n)return t.instance=n,nt(n),n;var i=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),nt(n),ft(n,"style",i),zr(n,a.precedence,e),t.instance=n;case"stylesheet":i=tl(a.href);var r=e.querySelector(Il(i));if(r)return t.state.loading|=4,t.instance=r,nt(r),r;n=lh(a),(i=Xt.get(i))&&xu(n,i),r=(e.ownerDocument||e).createElement("link"),nt(r);var d=r;return d._p=new Promise(function(g,j){d.onload=g,d.onerror=j}),ft(r,"link",n),t.state.loading|=4,zr(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(i=e.querySelector(Pl(r)))?(t.instance=i,nt(i),i):(n=a,(i=Xt.get(r))&&(n=y({},a),vu(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),ft(i,"link",n),e.head.appendChild(i),t.instance=i);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,zr(n,a.precedence,e));return t.instance}function zr(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,r=i,d=0;d<n.length;d++){var g=n[d];if(g.dataset.precedence===t)r=g;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xu(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 Ar=null;function rh(e,t,a){if(Ar===null){var n=new Map,i=Ar=new Map;i.set(a,n)}else i=Ar,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[ml]||r[ot]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var g=n.get(d);g?g.push(r):n.set(d,[r])}}return n}function oh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ty(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 sh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cy(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 i=tl(n.href),r=t.querySelector(Il(i));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,nt(r);return}r=t.ownerDocument||t,n=lh(n),(i=Xt.get(i))&&xu(n,i),r=r.createElement("link"),nt(r);var d=r;d._p=new Promise(function(g,j){d.onload=g,d.onerror=j}),ft(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 bu=0;function wy(e,t){return e.stylesheets&&e.count===0&&wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*uy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cr=null;function wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cr=new Map,t.forEach(_y,e),Cr=null,Tr.call(e))}function _y(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 i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}i=t.instance,d=i.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,i),a.set(d,i),this.count++,n=Tr.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Oy(e,t,a,n,i,r,d,g,j){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=mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mo(0),this.hiddenUpdates=mo(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function uh(e,t,a,n,i,r,d,g,j,O,U,q){return e=new Oy(e,t,a,d,j,O,U,q,g),t=1,r===!0&&(t|=24),r=Ct(3,null,null,t),e.current=r,r.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},ns(r),e}function ch(e){return e?(e=kn,e):kn}function fh(e,t,a,n,i,r){i=ch(i),n.context===null?n.context=i:n.pendingContext=i,n=Ma(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=ka(e,n,t),a!==null&&(St(a,e,t),Ml(a,e,t))}function dh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Su(e,t){dh(e,t),(e=e.alternate)&&dh(e,t)}function ph(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&St(t,e,67108864),Su(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=kt();t=go(t);var a=an(e,t);a!==null&&St(a,e,t),Su(e,t)}}var _r=!0;function My(e,t,a,n){var i=D.T;D.T=null;var r=Q.p;try{Q.p=2,ju(e,t,a,n)}finally{Q.p=r,D.T=i}}function ky(e,t,a,n){var i=D.T;D.T=null;var r=Q.p;try{Q.p=8,ju(e,t,a,n)}finally{Q.p=r,D.T=i}}function ju(e,t,a,n){if(_r){var i=Eu(n);if(i===null)su(e,t,n,Or,a),gh(e,n);else if(Ny(i,e,t,a,n))n.stopPropagation();else if(gh(e,n),t&4&&-1<Dy.indexOf(e)){for(;i!==null;){var r=jn(i);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 g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var j=1<<31-At(d);g.entanglements[1]|=j,d&=~j}ta(r),(Ce&6)===0&&(pr=Rt()+500,Fl(0))}}break;case 31:case 13:g=an(r,2),g!==null&&St(g,r,2),mr(),Su(r,2)}if(r=Eu(n),r===null&&su(e,t,n,Or,a),r===i)break;i=r}i!==null&&n.stopPropagation()}else su(e,t,n,null,a)}}function Eu(e){return e=zo(e),Ru(e)}var Or=null;function Ru(e){if(Or=null,e=Sn(e),e!==null){var t=p(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=x(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 Or=e,null}function mh(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(v0()){case jc:return 2;case Ec:return 8;case bi:case b0:return 32;case Rc:return 268435456;default:return 32}default:return 32}}var zu=!1,Xa=null,Qa=null,Za=null,ti=new Map,ai=new Map,Ka=[],Dy="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 gh(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ni(e,t,a,n,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[i]},t!==null&&(t=jn(t),t!==null&&ph(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ny(e,t,a,n,i){switch(t){case"focusin":return Xa=ni(Xa,e,t,a,n,i),!0;case"dragenter":return Qa=ni(Qa,e,t,a,n,i),!0;case"mouseover":return Za=ni(Za,e,t,a,n,i),!0;case"pointerover":var r=i.pointerId;return ti.set(r,ni(ti.get(r)||null,e,t,a,n,i)),!0;case"gotpointercapture":return r=i.pointerId,ai.set(r,ni(ai.get(r)||null,e,t,a,n,i)),!0}return!1}function yh(e){var t=Sn(e.target);if(t!==null){var a=p(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,_c(e.priority,function(){hh(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,_c(e.priority,function(){hh(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 Mr(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);Ro=n,a.target.dispatchEvent(n),Ro=null}else return t=jn(a),t!==null&&ph(t),e.blockedOn=a,!1;t.shift()}return!0}function xh(e,t,a){Mr(e)&&a.delete(t)}function By(){zu=!1,Xa!==null&&Mr(Xa)&&(Xa=null),Qa!==null&&Mr(Qa)&&(Qa=null),Za!==null&&Mr(Za)&&(Za=null),ti.forEach(xh),ai.forEach(xh)}function kr(e,t){e.blockedOn===t&&(e.blockedOn=null,zu||(zu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,By)))}var Dr=null;function vh(e){Dr!==e&&(Dr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Dr===e&&(Dr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Ru(n||a)===null)continue;break}var r=jn(a);r!==null&&(e.splice(t,3),t-=3,Es(r,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function nl(e){function t(j){return kr(j,e)}Xa!==null&&kr(Xa,e),Qa!==null&&kr(Qa,e),Za!==null&&kr(Za,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<Ka.length;a++){var n=Ka[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ka.length&&(a=Ka[0],a.blockedOn===null);)yh(a),a.blockedOn===null&&Ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],r=a[n+1],d=i[mt]||null;if(typeof r=="function")d||vh(a);else if(d){var g=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[mt]||null)g=d.formAction;else if(Ru(i)!==null)continue}else g=d.action;typeof g=="function"?a[n+1]=g:(a.splice(n,3),n-=3),vh(a)}}}function bh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=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,i=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),i!==null&&(i(),i=null)}}}function Au(e){this._internalRoot=e}Nr.prototype.render=Au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=kt();fh(a,n,e,t,null,null)},Nr.prototype.unmount=Au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),mr(),t[bn]=null}};function Nr(e){this._internalRoot=e}Nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=wc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ka.length&&t!==0&&t<Ka[a].priority;a++);Ka.splice(a,0,e),a===0&&yh(e)}};var Sh=o.version;if(Sh!=="19.2.4")throw Error(s(527,Sh,"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=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Hy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Br.isDisabled&&Br.supportsFiber)try{dl=Br.inject(Hy),zt=Br}catch{}}return ii.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,n="",i=Cd,r=wd,d=_d;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=uh(e,1,!1,null,null,a,n,null,i,r,d,bh),e[bn]=t.current,ou(e),new Au(t)},ii.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var n=!1,i="",r=Cd,d=wd,g=_d,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=uh(e,1,!0,t,a??null,n,i,j,r,d,g,bh),t.context=ch(null),a=t.current,n=kt(),n=go(n),i=Ma(n),i.callback=null,ka(a,i,n),a=n,t.current.lanes=a,hl(t,a),ta(t),e[bn]=t.current,ou(e),new Nr(t)},ii.version="19.2.4",ii}var Oh;function Ky(){if(Oh)return wu.exports;Oh=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),wu.exports=Zy(),wu.exports}var Fy=Ky();const Jy=Sm(Fy);var Mh="popstate";function kh(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Wy(l={}){function o(s,f){let p=f.state?.masked,{pathname:h,search:x,hash:b}=p||s.location;return Ku("",{pathname:h,search:x,hash:b},f.state&&f.state.usr||null,f.state&&f.state.key||"default",p?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function c(s,f){return typeof f=="string"?f:ci(f)}return Iy(o,c,null,l)}function Ve(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function Jt(l,o){if(!l){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function $y(){return Math.random().toString(36).substring(2,10)}function Dh(l,o){return{usr:l.state,key:l.key,idx:o,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Ku(l,o,c=null,s,f){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof o=="string"?ol(o):o,state:c,key:o&&o.key||s||$y(),unstable_mask:f}}function ci({pathname:l="/",search:o="",hash:c=""}){return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function ol(l){let o={};if(l){let c=l.indexOf("#");c>=0&&(o.hash=l.substring(c),l=l.substring(0,c));let s=l.indexOf("?");s>=0&&(o.search=l.substring(s),l=l.substring(0,s)),l&&(o.pathname=l)}return o}function Iy(l,o,c,s={}){let{window:f=document.defaultView,v5Compat:p=!1}=s,h=f.history,x="POP",b=null,m=v();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function v(){return(h.state||{idx:null}).idx}function y(){x="POP";let w=v(),G=w==null?null:w-m;m=w,b&&b({action:x,location:C.location,delta:G})}function k(w,G){x="PUSH";let I=kh(w)?w:Ku(C.location,w,G);m=v()+1;let X=Dh(I,m),le=C.createHref(I.unstable_mask||I);try{h.pushState(X,"",le)}catch(ue){if(ue instanceof DOMException&&ue.name==="DataCloneError")throw ue;f.location.assign(le)}p&&b&&b({action:x,location:C.location,delta:1})}function R(w,G){x="REPLACE";let I=kh(w)?w:Ku(C.location,w,G);m=v();let X=Dh(I,m),le=C.createHref(I.unstable_mask||I);h.replaceState(X,"",le),p&&b&&b({action:x,location:C.location,delta:0})}function z(w){return Py(w)}let C={get action(){return x},get location(){return l(f,h)},listen(w){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(Mh,y),b=w,()=>{f.removeEventListener(Mh,y),b=null}},createHref(w){return o(f,w)},createURL:z,encodeLocation(w){let G=z(w);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:k,replace:R,go(w){return h.go(w)}};return C}function Py(l,o=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(c,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:ci(l);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=c+s),new URL(s,c)}function jm(l,o,c="/"){return e1(l,o,c,!1)}function e1(l,o,c,s){let f=typeof o=="string"?ol(o):o,p=Ea(f.pathname||"/",c);if(p==null)return null;let h=Em(l);t1(h);let x=null;for(let b=0;x==null&&b<h.length;++b){let m=d1(p);x=c1(h[b],m,s)}return x}function Em(l,o=[],c=[],s="",f=!1){let p=(h,x,b=f,m)=>{let v={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:x,route:h};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&b)return;Ve(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let y=na([s,v.relativePath]),k=c.concat(v);h.children&&h.children.length>0&&(Ve(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Em(h.children,o,k,y,b)),!(h.path==null&&!h.index)&&o.push({path:y,score:s1(y,h.index),routesMeta:k})};return l.forEach((h,x)=>{if(h.path===""||!h.path?.includes("?"))p(h,x);else for(let b of Rm(h.path))p(h,x,!0,b)}),o}function Rm(l){let o=l.split("/");if(o.length===0)return[];let[c,...s]=o,f=c.endsWith("?"),p=c.replace(/\?$/,"");if(s.length===0)return f?[p,""]:[p];let h=Rm(s.join("/")),x=[];return x.push(...h.map(b=>b===""?p:[p,b].join("/"))),f&&x.push(...h),x.map(b=>l.startsWith("/")&&b===""?"/":b)}function t1(l){l.sort((o,c)=>o.score!==c.score?c.score-o.score:u1(o.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var a1=/^:[\w-]+$/,n1=3,l1=2,i1=1,r1=10,o1=-2,Nh=l=>l==="*";function s1(l,o){let c=l.split("/"),s=c.length;return c.some(Nh)&&(s+=o1),o&&(s+=l1),c.filter(f=>!Nh(f)).reduce((f,p)=>f+(a1.test(p)?n1:p===""?i1:r1),s)}function u1(l,o){return l.length===o.length&&l.slice(0,-1).every((s,f)=>s===o[f])?l[l.length-1]-o[o.length-1]:0}function c1(l,o,c=!1){let{routesMeta:s}=l,f={},p="/",h=[];for(let x=0;x<s.length;++x){let b=s[x],m=x===s.length-1,v=p==="/"?o:o.slice(p.length)||"/",y=Fr({path:b.relativePath,caseSensitive:b.caseSensitive,end:m},v),k=b.route;if(!y&&m&&c&&!s[s.length-1].route.index&&(y=Fr({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},v)),!y)return null;Object.assign(f,y.params),h.push({params:f,pathname:na([p,y.pathname]),pathnameBase:g1(na([p,y.pathnameBase])),route:k}),y.pathnameBase!=="/"&&(p=na([p,y.pathnameBase]))}return h}function Fr(l,o){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,s]=f1(l.path,l.caseSensitive,l.end),f=o.match(c);if(!f)return null;let p=f[0],h=p.replace(/(.)\/+$/,"$1"),x=f.slice(1);return{params:s.reduce((m,{paramName:v,isOptional:y},k)=>{if(v==="*"){let z=x[k]||"";h=p.slice(0,p.length-z.length).replace(/(.)\/+$/,"$1")}const R=x[k];return y&&!R?m[v]=void 0:m[v]=(R||"").replace(/%2F/g,"/"),m},{}),pathname:p,pathnameBase:h,pattern:l}}function f1(l,o=!1,c=!0){Jt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,x,b,m,v)=>{if(s.push({paramName:x,isOptional:b!=null}),b){let y=v.charAt(m+h.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),s]}function d1(l){try{return l.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Jt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),l}}function Ea(l,o){if(o==="/")return l;if(!l.toLowerCase().startsWith(o.toLowerCase()))return null;let c=o.endsWith("/")?o.length-1:o.length,s=l.charAt(c);return s&&s!=="/"?null:l.slice(c)||"/"}var p1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function h1(l,o="/"){let{pathname:c,search:s="",hash:f=""}=typeof l=="string"?ol(l):l,p;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?p=Bh(c.substring(1),"/"):p=Bh(c,o)):p=o,{pathname:p,search:y1(s),hash:x1(f)}}function Bh(l,o){let c=o.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function ku(l,o,c,s){return`Cannot include a '${l}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function m1(l){return l.filter((o,c)=>c===0||o.route.path&&o.route.path.length>0)}function nc(l){let o=m1(l);return o.map((c,s)=>s===o.length-1?c.pathname:c.pathnameBase)}function Pr(l,o,c,s=!1){let f;typeof l=="string"?f=ol(l):(f={...l},Ve(!f.pathname||!f.pathname.includes("?"),ku("?","pathname","search",f)),Ve(!f.pathname||!f.pathname.includes("#"),ku("#","pathname","hash",f)),Ve(!f.search||!f.search.includes("#"),ku("#","search","hash",f)));let p=l===""||f.pathname==="",h=p?"/":f.pathname,x;if(h==null)x=c;else{let y=o.length-1;if(!s&&h.startsWith("..")){let k=h.split("/");for(;k[0]==="..";)k.shift(),y-=1;f.pathname=k.join("/")}x=y>=0?o[y]:"/"}let b=h1(f,x),m=h&&h!=="/"&&h.endsWith("/"),v=(p||h===".")&&c.endsWith("/");return!b.pathname.endsWith("/")&&(m||v)&&(b.pathname+="/"),b}var na=l=>l.join("/").replace(/\/\/+/g,"/"),g1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),y1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,x1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,v1=class{constructor(l,o,c,s=!1){this.status=l,this.statusText=o||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function b1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function S1(l){return l.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var zm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Am(l,o){let c=l;if(typeof c!="string"||!p1.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let s=c,f=!1;if(zm)try{let p=new URL(window.location.href),h=c.startsWith("//")?new URL(p.protocol+c):new URL(c),x=Ea(h.pathname,o);h.origin===p.origin&&x!=null?c=x+h.search+h.hash:f=!0}catch{Jt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Tm=["POST","PUT","PATCH","DELETE"];new Set(Tm);var j1=["GET",...Tm];new Set(j1);var sl=A.createContext(null);sl.displayName="DataRouter";var eo=A.createContext(null);eo.displayName="DataRouterState";var E1=A.createContext(!1),Cm=A.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var R1=A.createContext(new Map);R1.displayName="Fetchers";var z1=A.createContext(null);z1.displayName="Await";var Dt=A.createContext(null);Dt.displayName="Navigation";var fi=A.createContext(null);fi.displayName="Location";var la=A.createContext({outlet:null,matches:[],isDataRoute:!1});la.displayName="Route";var lc=A.createContext(null);lc.displayName="RouteError";var wm="REACT_ROUTER_ERROR",A1="REDIRECT",T1="ROUTE_ERROR_RESPONSE";function C1(l){if(l.startsWith(`${wm}:${A1}:{`))try{let o=JSON.parse(l.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 w1(l){if(l.startsWith(`${wm}:${T1}:{`))try{let o=JSON.parse(l.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new v1(o.status,o.statusText,o.data)}catch{}}function _1(l,{relative:o}={}){Ve(ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=A.useContext(Dt),{hash:f,pathname:p,search:h}=di(l,{relative:o}),x=p;return c!=="/"&&(x=p==="/"?c:na([c,p])),s.createHref({pathname:x,search:h,hash:f})}function ul(){return A.useContext(fi)!=null}function Wt(){return Ve(ul(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(fi).location}var _m="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Om(l){A.useContext(Dt).static||A.useLayoutEffect(l)}function to(){let{isDataRoute:l}=A.useContext(la);return l?V1():O1()}function O1(){Ve(ul(),"useNavigate() may be used only in the context of a <Router> component.");let l=A.useContext(sl),{basename:o,navigator:c}=A.useContext(Dt),{matches:s}=A.useContext(la),{pathname:f}=Wt(),p=JSON.stringify(nc(s)),h=A.useRef(!1);return Om(()=>{h.current=!0}),A.useCallback((b,m={})=>{if(Jt(h.current,_m),!h.current)return;if(typeof b=="number"){c.go(b);return}let v=Pr(b,JSON.parse(p),f,m.relative==="path");l==null&&o!=="/"&&(v.pathname=v.pathname==="/"?o:na([o,v.pathname])),(m.replace?c.replace:c.push)(v,m.state,m)},[o,c,p,f,l])}A.createContext(null);function di(l,{relative:o}={}){let{matches:c}=A.useContext(la),{pathname:s}=Wt(),f=JSON.stringify(nc(c));return A.useMemo(()=>Pr(l,JSON.parse(f),s,o==="path"),[l,f,s,o])}function M1(l,o){return Mm(l,o)}function Mm(l,o,c){Ve(ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=A.useContext(Dt),{matches:f}=A.useContext(la),p=f[f.length-1],h=p?p.params:{},x=p?p.pathname:"/",b=p?p.pathnameBase:"/",m=p&&p.route;{let w=m&&m.path||"";Dm(x,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${w}">) 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="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let v=Wt(),y;if(o){let w=typeof o=="string"?ol(o):o;Ve(b==="/"||w.pathname?.startsWith(b),`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 "${b}" but pathname "${w.pathname}" was given in the \`location\` prop.`),y=w}else y=v;let k=y.pathname||"/",R=k;if(b!=="/"){let w=b.replace(/^\//,"").split("/");R="/"+k.replace(/^\//,"").split("/").slice(w.length).join("/")}let z=jm(l,{pathname:R});Jt(m||z!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Jt(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 C=H1(z&&z.map(w=>Object.assign({},w,{params:Object.assign({},h,w.params),pathname:na([b,s.encodeLocation?s.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?b:na([b,s.encodeLocation?s.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),f,c);return o&&C?A.createElement(fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function k1(){let l=G1(),o=b1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},p={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=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:p},"ErrorBoundary")," or"," ",A.createElement("code",{style:p},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),c?A.createElement("pre",{style:f},c):null,h)}var D1=A.createElement(k1,null),km=class extends A.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){this.props.onError?this.props.onError(l,o):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const c=w1(l.digest);c&&(l=c)}let o=l!==void 0?A.createElement(la.Provider,{value:this.props.routeContext},A.createElement(lc.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?A.createElement(N1,{error:l},o):o}};km.contextType=E1;var Du=new WeakMap;function N1({children:l,error:o}){let{basename:c}=A.useContext(Dt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=C1(o.digest);if(s){let f=Du.get(o);if(f)throw f;let p=Am(s.location,c);if(zm&&!Du.get(o))if(p.isExternal||s.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:s.replace}));throw Du.set(o,h),h}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return l}function B1({routeContext:l,match:o,children:c}){let s=A.useContext(sl);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(la.Provider,{value:l},c)}function H1(l,o=[],c){let s=c?.state;if(l==null){if(!s)return null;if(s.errors)l=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)l=s.matches;else return null}let f=l,p=s?.errors;if(p!=null){let v=f.findIndex(y=>y.route.id&&p?.[y.route.id]!==void 0);Ve(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),f=f.slice(0,Math.min(f.length,v+1))}let h=!1,x=-1;if(c&&s){h=s.renderFallback;for(let v=0;v<f.length;v++){let y=f[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(x=v),y.route.id){let{loaderData:k,errors:R}=s,z=y.route.loader&&!k.hasOwnProperty(y.route.id)&&(!R||R[y.route.id]===void 0);if(y.route.lazy||z){c.isStatic&&(h=!0),x>=0?f=f.slice(0,x+1):f=[f[0]];break}}}}let b=c?.onError,m=s&&b?(v,y)=>{b(v,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:S1(s.matches),errorInfo:y})}:void 0;return f.reduceRight((v,y,k)=>{let R,z=!1,C=null,w=null;s&&(R=p&&y.route.id?p[y.route.id]:void 0,C=y.route.errorElement||D1,h&&(x<0&&k===0?(Dm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,w=null):x===k&&(z=!0,w=y.route.hydrateFallbackElement||null)));let G=o.concat(f.slice(0,k+1)),I=()=>{let X;return R?X=C:z?X=w:y.route.Component?X=A.createElement(y.route.Component,null):y.route.element?X=y.route.element:X=v,A.createElement(B1,{match:y,routeContext:{outlet:v,matches:G,isDataRoute:s!=null},children:X})};return s&&(y.route.ErrorBoundary||y.route.errorElement||k===0)?A.createElement(km,{location:s.location,revalidation:s.revalidation,component:C,error:R,children:I(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:m}):I()},null)}function ic(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U1(l){let o=A.useContext(sl);return Ve(o,ic(l)),o}function L1(l){let o=A.useContext(eo);return Ve(o,ic(l)),o}function q1(l){let o=A.useContext(la);return Ve(o,ic(l)),o}function rc(l){let o=q1(l),c=o.matches[o.matches.length-1];return Ve(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function Y1(){return rc("useRouteId")}function G1(){let l=A.useContext(lc),o=L1("useRouteError"),c=rc("useRouteError");return l!==void 0?l:o.errors?.[c]}function V1(){let{router:l}=U1("useNavigate"),o=rc("useNavigate"),c=A.useRef(!1);return Om(()=>{c.current=!0}),A.useCallback(async(f,p={})=>{Jt(c.current,_m),c.current&&(typeof f=="number"?await l.navigate(f):await l.navigate(f,{fromRouteId:o,...p}))},[l,o])}var Hh={};function Dm(l,o,c){!o&&!Hh[l]&&(Hh[l]=!0,Jt(!1,c))}A.memo(X1);function X1({routes:l,future:o,state:c,isStatic:s,onError:f}){return Mm(l,void 0,{state:c,isStatic:s,onError:f})}function Q1({to:l,replace:o,state:c,relative:s}){Ve(ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=A.useContext(Dt);Jt(!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:p}=A.useContext(la),{pathname:h}=Wt(),x=to(),b=Pr(l,nc(p),h,s==="path"),m=JSON.stringify(b);return A.useEffect(()=>{x(JSON.parse(m),{replace:o,state:c,relative:s})},[x,m,s,o,c]),null}function aa(l){Ve(!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 Z1({basename:l="/",children:o=null,location:c,navigationType:s="POP",navigator:f,static:p=!1,unstable_useTransitions:h}){Ve(!ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=l.replace(/^\/*/,"/"),b=A.useMemo(()=>({basename:x,navigator:f,static:p,unstable_useTransitions:h,future:{}}),[x,f,p,h]);typeof c=="string"&&(c=ol(c));let{pathname:m="/",search:v="",hash:y="",state:k=null,key:R="default",unstable_mask:z}=c,C=A.useMemo(()=>{let w=Ea(m,x);return w==null?null:{location:{pathname:w,search:v,hash:y,state:k,key:R,unstable_mask:z},navigationType:s}},[x,m,v,y,k,R,s,z]);return Jt(C!=null,`<Router basename="${x}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:A.createElement(Dt.Provider,{value:b},A.createElement(fi.Provider,{children:o,value:C}))}function K1({children:l,location:o}){return M1(Fu(l),o)}function Fu(l,o=[]){let c=[];return A.Children.forEach(l,(s,f)=>{if(!A.isValidElement(s))return;let p=[...o,f];if(s.type===A.Fragment){c.push.apply(c,Fu(s.props.children,p));return}Ve(s.type===aa,`[${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>`),Ve(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||p.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&&(h.children=Fu(s.props.children,p)),c.push(h)}),c}var Yr="get",Gr="application/x-www-form-urlencoded";function ao(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function F1(l){return ao(l)&&l.tagName.toLowerCase()==="button"}function J1(l){return ao(l)&&l.tagName.toLowerCase()==="form"}function W1(l){return ao(l)&&l.tagName.toLowerCase()==="input"}function $1(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function I1(l,o){return l.button===0&&(!o||o==="_self")&&!$1(l)}var Hr=null;function P1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var ex=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nu(l){return l!=null&&!ex.has(l)?(Jt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gr}"`),null):l}function tx(l,o){let c,s,f,p,h;if(J1(l)){let x=l.getAttribute("action");s=x?Ea(x,o):null,c=l.getAttribute("method")||Yr,f=Nu(l.getAttribute("enctype"))||Gr,p=new FormData(l)}else if(F1(l)||W1(l)&&(l.type==="submit"||l.type==="image")){let x=l.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=l.getAttribute("formaction")||x.getAttribute("action");if(s=b?Ea(b,o):null,c=l.getAttribute("formmethod")||x.getAttribute("method")||Yr,f=Nu(l.getAttribute("formenctype"))||Nu(x.getAttribute("enctype"))||Gr,p=new FormData(x,l),!P1()){let{name:m,type:v,value:y}=l;if(v==="image"){let k=m?`${m}.`:"";p.append(`${k}x`,"0"),p.append(`${k}y`,"0")}else m&&p.append(m,y)}}else{if(ao(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Yr,s=null,f=Gr,h=l}return p&&f==="text/plain"&&(h=p,p=void 0),{action:s,method:c.toLowerCase(),encType:f,formData:p,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oc(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function ax(l,o,c,s){let f=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:o&&Ea(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function nx(l,o){if(l.id in o)return o[l.id];try{let c=await import(l.module);return o[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function ix(l,o,c){let s=await Promise.all(l.map(async f=>{let p=o.routes[f.route.id];if(p){let h=await nx(p,c);return h.links?h.links():[]}return[]}));return ux(s.flat(1).filter(lx).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Uh(l,o,c,s,f,p){let h=(b,m)=>c[m]?b.route.id!==c[m].route.id:!0,x=(b,m)=>c[m].pathname!==b.pathname||c[m].route.path?.endsWith("*")&&c[m].params["*"]!==b.params["*"];return p==="assets"?o.filter((b,m)=>h(b,m)||x(b,m)):p==="data"?o.filter((b,m)=>{let v=s.routes[b.route.id];if(!v||!v.hasLoader)return!1;if(h(b,m)||x(b,m))return!0;if(b.route.shouldRevalidate){let y=b.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function rx(l,o,{includeHydrateFallback:c}={}){return ox(l.map(s=>{let f=o.routes[s.route.id];if(!f)return[];let p=[f.module];return f.clientActionModule&&(p=p.concat(f.clientActionModule)),f.clientLoaderModule&&(p=p.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(p=p.concat(f.hydrateFallbackModule)),f.imports&&(p=p.concat(f.imports)),p}).flat(1))}function ox(l){return[...new Set(l)]}function sx(l){let o={},c=Object.keys(l).sort();for(let s of c)o[s]=l[s];return o}function ux(l,o){let c=new Set;return new Set(o),l.reduce((s,f)=>{let p=JSON.stringify(sx(f));return c.has(p)||(c.add(p),s.push({key:p,link:f})),s},[])}function Nm(){let l=A.useContext(sl);return oc(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function cx(){let l=A.useContext(eo);return oc(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var sc=A.createContext(void 0);sc.displayName="FrameworkContext";function Bm(){let l=A.useContext(sc);return oc(l,"You must render this element inside a <HydratedRouter> element"),l}function fx(l,o){let c=A.useContext(sc),[s,f]=A.useState(!1),[p,h]=A.useState(!1),{onFocus:x,onBlur:b,onMouseEnter:m,onMouseLeave:v,onTouchStart:y}=o,k=A.useRef(null);A.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let C=G=>{G.forEach(I=>{h(I.isIntersecting)})},w=new IntersectionObserver(C,{threshold:.5});return k.current&&w.observe(k.current),()=>{w.disconnect()}}},[l]),A.useEffect(()=>{if(s){let C=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(C)}}},[s]);let R=()=>{f(!0)},z=()=>{f(!1),h(!1)};return c?l!=="intent"?[p,k,{}]:[p,k,{onFocus:ri(x,R),onBlur:ri(b,z),onMouseEnter:ri(m,R),onMouseLeave:ri(v,z),onTouchStart:ri(y,R)}]:[!1,k,{}]}function ri(l,o){return c=>{l&&l(c),c.defaultPrevented||o(c)}}function dx({page:l,...o}){let{router:c}=Nm(),s=A.useMemo(()=>jm(c.routes,l,c.basename),[c.routes,l,c.basename]);return s?A.createElement(hx,{page:l,matches:s,...o}):null}function px(l){let{manifest:o,routeModules:c}=Bm(),[s,f]=A.useState([]);return A.useEffect(()=>{let p=!1;return ix(l,o,c).then(h=>{p||f(h)}),()=>{p=!0}},[l,o,c]),s}function hx({page:l,matches:o,...c}){let s=Wt(),{future:f,manifest:p,routeModules:h}=Bm(),{basename:x}=Nm(),{loaderData:b,matches:m}=cx(),v=A.useMemo(()=>Uh(l,o,m,p,s,"data"),[l,o,m,p,s]),y=A.useMemo(()=>Uh(l,o,m,p,s,"assets"),[l,o,m,p,s]),k=A.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let C=new Set,w=!1;if(o.forEach(I=>{let X=p.routes[I.route.id];!X||!X.hasLoader||(!v.some(le=>le.route.id===I.route.id)&&I.route.id in b&&h[I.route.id]?.shouldRevalidate||X.hasClientLoader?w=!0:C.add(I.route.id))}),C.size===0)return[];let G=ax(l,x,f.unstable_trailingSlashAwareDataRequests,"data");return w&&C.size>0&&G.searchParams.set("_routes",o.filter(I=>C.has(I.route.id)).map(I=>I.route.id).join(",")),[G.pathname+G.search]},[x,f.unstable_trailingSlashAwareDataRequests,b,s,p,v,o,l,h]),R=A.useMemo(()=>rx(y,p),[y,p]),z=px(y);return A.createElement(A.Fragment,null,k.map(C=>A.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...c})),R.map(C=>A.createElement("link",{key:C,rel:"modulepreload",href:C,...c})),z.map(({key:C,link:w})=>A.createElement("link",{key:C,nonce:c.nonce,...w,crossOrigin:w.crossOrigin??c.crossOrigin})))}function mx(...l){return o=>{l.forEach(c=>{typeof c=="function"?c(o):c!=null&&(c.current=o)})}}var gx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gx&&(window.__reactRouterVersion="7.13.1")}catch{}function yx({basename:l,children:o,unstable_useTransitions:c,window:s}){let f=A.useRef();f.current==null&&(f.current=Wy({window:s,v5Compat:!0}));let p=f.current,[h,x]=A.useState({action:p.action,location:p.location}),b=A.useCallback(m=>{c===!1?x(m):A.startTransition(()=>x(m))},[c]);return A.useLayoutEffect(()=>p.listen(b),[p,b]),A.createElement(Z1,{basename:l,children:o,location:h.location,navigationType:h.action,navigator:p,unstable_useTransitions:c})}var Hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ui=A.forwardRef(function({onClick:o,discover:c="render",prefetch:s="none",relative:f,reloadDocument:p,replace:h,unstable_mask:x,state:b,target:m,to:v,preventScrollReset:y,viewTransition:k,unstable_defaultShouldRevalidate:R,...z},C){let{basename:w,navigator:G,unstable_useTransitions:I}=A.useContext(Dt),X=typeof v=="string"&&Hm.test(v),le=Am(v,w);v=le.to;let ue=_1(v,{relative:f}),me=Wt(),F=null;if(x){let _e=Pr(x,[],me.unstable_mask?me.unstable_mask.pathname:"/",!0);w!=="/"&&(_e.pathname=_e.pathname==="/"?w:na([w,_e.pathname])),F=G.createHref(_e)}let[we,ke,it]=fx(s,z),We=Sx(v,{replace:h,unstable_mask:x,state:b,target:m,preventScrollReset:y,relative:f,viewTransition:k,unstable_defaultShouldRevalidate:R,unstable_useTransitions:I});function Z(_e){o&&o(_e),_e.defaultPrevented||We(_e)}let fe=!(le.isExternal||p),xe=A.createElement("a",{...z,...it,href:(fe?F:void 0)||le.absoluteURL||ue,onClick:fe?Z:o,ref:mx(C,ke),target:m,"data-discover":!X&&c==="render"?"true":void 0});return we&&!X?A.createElement(A.Fragment,null,xe,A.createElement(dx,{page:ue})):xe});ui.displayName="Link";var xx=A.forwardRef(function({"aria-current":o="page",caseSensitive:c=!1,className:s="",end:f=!1,style:p,to:h,viewTransition:x,children:b,...m},v){let y=di(h,{relative:m.relative}),k=Wt(),R=A.useContext(eo),{navigator:z,basename:C}=A.useContext(Dt),w=R!=null&&Ax(y)&&x===!0,G=z.encodeLocation?z.encodeLocation(y).pathname:y.pathname,I=k.pathname,X=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;c||(I=I.toLowerCase(),X=X?X.toLowerCase():null,G=G.toLowerCase()),X&&C&&(X=Ea(X,C)||X);const le=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ue=I===G||!f&&I.startsWith(G)&&I.charAt(le)==="/",me=X!=null&&(X===G||!f&&X.startsWith(G)&&X.charAt(G.length)==="/"),F={isActive:ue,isPending:me,isTransitioning:w},we=ue?o:void 0,ke;typeof s=="function"?ke=s(F):ke=[s,ue?"active":null,me?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let it=typeof p=="function"?p(F):p;return A.createElement(ui,{...m,"aria-current":we,className:ke,ref:v,style:it,to:h,viewTransition:x},typeof b=="function"?b(F):b)});xx.displayName="NavLink";var vx=A.forwardRef(({discover:l="render",fetcherKey:o,navigate:c,reloadDocument:s,replace:f,state:p,method:h=Yr,action:x,onSubmit:b,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:k,...R},z)=>{let{unstable_useTransitions:C}=A.useContext(Dt),w=Rx(),G=zx(x,{relative:m}),I=h.toLowerCase()==="get"?"get":"post",X=typeof x=="string"&&Hm.test(x),le=ue=>{if(b&&b(ue),ue.defaultPrevented)return;ue.preventDefault();let me=ue.nativeEvent.submitter,F=me?.getAttribute("formmethod")||h,we=()=>w(me||ue.currentTarget,{fetcherKey:o,method:F,navigate:c,replace:f,state:p,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:k});C&&c!==!1?A.startTransition(()=>we()):we()};return A.createElement("form",{ref:z,method:I,action:G,onSubmit:s?b:le,...R,"data-discover":!X&&l==="render"?"true":void 0})});vx.displayName="Form";function bx(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Um(l){let o=A.useContext(sl);return Ve(o,bx(l)),o}function Sx(l,{target:o,replace:c,unstable_mask:s,state:f,preventScrollReset:p,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:b,unstable_useTransitions:m}={}){let v=to(),y=Wt(),k=di(l,{relative:h});return A.useCallback(R=>{if(I1(R,o)){R.preventDefault();let z=c!==void 0?c:ci(y)===ci(k),C=()=>v(l,{replace:z,unstable_mask:s,state:f,preventScrollReset:p,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:b});m?A.startTransition(()=>C()):C()}},[y,v,k,c,s,f,o,l,p,h,x,b,m])}var jx=0,Ex=()=>`__${String(++jx)}__`;function Rx(){let{router:l}=Um("useSubmit"),{basename:o}=A.useContext(Dt),c=Y1(),s=l.fetch,f=l.navigate;return A.useCallback(async(p,h={})=>{let{action:x,method:b,encType:m,formData:v,body:y}=tx(p,o);if(h.navigate===!1){let k=h.fetcherKey||Ex();await s(k,c,h.action||x,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:v,body:y,formMethod:h.method||b,formEncType:h.encType||m,flushSync:h.flushSync})}else await f(h.action||x,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:v,body:y,formMethod:h.method||b,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,f,o,c])}function zx(l,{relative:o}={}){let{basename:c}=A.useContext(Dt),s=A.useContext(la);Ve(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),p={...di(l||".",{relative:o})},h=Wt();if(l==null){p.search=h.search;let x=new URLSearchParams(p.search),b=x.getAll("index");if(b.some(v=>v==="")){x.delete("index"),b.filter(y=>y).forEach(y=>x.append("index",y));let v=x.toString();p.search=v?`?${v}`:""}}return(!l||l===".")&&f.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(p.pathname=p.pathname==="/"?c:na([c,p.pathname])),ci(p)}function Ax(l,{relative:o}={}){let c=A.useContext(Cm);Ve(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Um("useViewTransitionState"),f=di(l,{relative:o});if(!c.isTransitioning)return!1;let p=Ea(c.currentLocation.pathname,s)||c.currentLocation.pathname,h=Ea(c.nextLocation.pathname,s)||c.nextLocation.pathname;return Fr(f.pathname,h)!=null||Fr(f.pathname,p)!=null}const Lm=(...l)=>l.filter((o,c,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===c).join(" ").trim();const Tx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Cx=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,c,s)=>s?s.toUpperCase():c.toLowerCase());const Lh=l=>{const o=Cx(l);return o.charAt(0).toUpperCase()+o.slice(1)};var wx={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 _x=l=>{for(const o in l)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const Ox=A.forwardRef(({color:l="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:s,className:f="",children:p,iconNode:h,...x},b)=>A.createElement("svg",{ref:b,...wx,width:o,height:o,stroke:l,strokeWidth:s?Number(c)*24/Number(o):c,className:Lm("lucide",f),...!p&&!_x(x)&&{"aria-hidden":"true"},...x},[...h.map(([m,v])=>A.createElement(m,v)),...Array.isArray(p)?p:[p]]));const ae=(l,o)=>{const c=A.forwardRef(({className:s,...f},p)=>A.createElement(Ox,{ref:p,iconNode:o,className:Lm(`lucide-${Tx(Lh(l))}`,`lucide-${l}`,s),...f}));return c.displayName=Lh(l),c};const Mx=[["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"}]],Vr=ae("activity",Mx);const kx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dx=ae("arrow-left",kx);const Nx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Bx=ae("arrow-right",Nx);const Hx=[["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"}]],qh=ae("bot",Hx);const Ux=[["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"}]],Lx=ae("camera",Ux);const qx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jr=ae("check",qx);const Yx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gx=ae("chevron-down",Yx);const Vx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Xx=ae("chevron-left",Vx);const Qx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ll=ae("chevron-right",Qx);const Zx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Kx=ae("chevron-up",Zx);const Fx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jx=ae("circle-check",Fx);const Wx=[["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"}]],$x=ae("circle-play",Wx);const Ix=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Ju=ae("clock",Ix);const Px=[["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"}]],ev=ae("copy",Px);const tv=[["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"}]],Wu=ae("cpu",tv);const av=[["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"}]],qm=ae("database",av);const nv=[["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"}]],lv=ae("download",nv);const iv=[["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"}]],rv=ae("external-link",iv);const ov=[["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"}]],Ym=ae("eye",ov);const sv=[["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"}]],Ur=ae("file-code",sv);const uv=[["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"}]],Bu=ae("file-image",uv);const cv=[["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"}]],$u=ae("file-text",cv);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"}]],Yh=ae("file",fv);const dv=[["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"}]],Gh=ae("folder-plus",dv);const pv=[["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"}]],Gm=ae("folder",pv);const hv=[["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"}]],mv=ae("funnel",hv);const gv=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Hu=ae("github",gv);const yv=[["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"}]],uc=ae("globe",yv);const xv=[["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"}]],cc=ae("hard-drive",xv);const vv=[["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"}]],bv=ae("layout-dashboard",vv);const Sv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jv=ae("loader-circle",Sv);const Ev=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Rv=ae("lock",Ev);const zv=[["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"}]],fc=ae("message-square",zv);const Av=[["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"}]],Tv=ae("mic-off",Av);const Cv=[["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"}]],Vh=ae("mic",Cv);const wv=[["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"}]],_v=ae("moon",wv);const Ov=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Vm=ae("package",Ov);const Mv=[["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"}]],kv=ae("panels-top-left",Mv);const Dv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nv=ae("plus",Dv);const Bv=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Xh=ae("power",Bv);const Hv=[["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"}]],Uv=ae("refresh-cw",Hv);const Lv=[["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"}]],Qh=ae("rotate-ccw",Lv);const qv=[["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"}]],Yv=ae("save",qv);const Gv=[["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"}]],Vv=ae("send",Gv);const Xv=[["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"}]],Xm=ae("server",Xv);const Qv=[["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"}]],Zv=ae("settings",Qv);const Kv=[["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"}]],il=ae("shield",Kv);const Fv=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Zh=ae("star",Fv);const Jv=[["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"}]],Wv=ae("sun",Jv);const $v=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Iv=ae("terminal",$v);const Pv=[["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"}]],Qm=ae("trash-2",Pv);const eb=[["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"}]],dc=ae("triangle-alert",eb);const tb=[["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"}]],ab=ae("upload",tb);const nb=[["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"}]],Zm=ae("user",nb);const lb=[["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"}]],ib=ae("workflow",lb);const rb=[["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"}]],Wr=ae("wrench",rb);const ob=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kh=ae("x",ob);const sb=[["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"}]],pi=ae("zap",sb),ub=[{icon:bv,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:fc,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:cc,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Wr,label:"Modules",path:"/tools"},{icon:pi,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:il,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Zv,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function cb({user:l,isOpen:o,onToggle:c,onLogout:s}){const f=to(),p=Wt();return u.jsxs("aside",{style:{...at.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[u.jsxs("div",{style:at.header,children:[u.jsxs("div",{style:at.brand,onClick:()=>f("/"),children:[u.jsx("div",{style:at.logoWrap,children:u.jsx("span",{style:at.logoChar,children:"स"})}),o&&u.jsxs("div",{style:at.brandText,children:[u.jsx("span",{style:at.brandName,children:"SamarthyaBot"}),u.jsx("span",{style:at.brandSub,children:"v1.0.0"})]})]}),u.jsx("button",{onClick:c,style:at.toggleBtn,children:o?u.jsx(Xx,{size:18}):u.jsx(ll,{size:18})})]}),u.jsx("nav",{style:at.nav,children:ub.map(h=>{const x=h.icon,b=p.pathname===h.path||h.path!=="/"&&p.pathname.startsWith(h.path);return u.jsxs("button",{onClick:()=>f(h.path),style:{...at.navItem,...b?at.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:h.label,children:[u.jsx(x,{size:20,style:{minWidth:"20px"}}),o&&u.jsx("span",{children:h.label}),b&&u.jsx("div",{style:at.activeIndicator})]},h.path)})}),u.jsx("div",{style:at.footer,children:o&&u.jsxs("div",{style:at.userInfo,children:[u.jsx("div",{style:at.avatar,children:(l?.name||"U").charAt(0).toUpperCase()}),u.jsxs("div",{style:at.userText,children:[u.jsx("div",{style:at.userName,children:l?.name||"Local Admin"}),u.jsx("div",{style:at.userStatus,children:"AI Agent Operator"})]})]})})]})}const at={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 Km(l,o){return function(){return l.apply(o,arguments)}}const{toString:fb}=Object.prototype,{getPrototypeOf:pc}=Object,{iterator:no,toStringTag:Fm}=Symbol,lo=(l=>o=>{const c=fb.call(o);return l[c]||(l[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),$t=l=>(l=l.toLowerCase(),o=>lo(o)===l),io=l=>o=>typeof o===l,{isArray:cl}=Array,rl=io("undefined");function hi(l){return l!==null&&!rl(l)&&l.constructor!==null&&!rl(l.constructor)&&jt(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const Jm=$t("ArrayBuffer");function db(l){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(l):o=l&&l.buffer&&Jm(l.buffer),o}const pb=io("string"),jt=io("function"),Wm=io("number"),mi=l=>l!==null&&typeof l=="object",hb=l=>l===!0||l===!1,Xr=l=>{if(lo(l)!=="object")return!1;const o=pc(l);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Fm in l)&&!(no in l)},mb=l=>{if(!mi(l)||hi(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},gb=$t("Date"),yb=$t("File"),xb=$t("Blob"),vb=$t("FileList"),bb=l=>mi(l)&&jt(l.pipe),Sb=l=>{let o;return l&&(typeof FormData=="function"&&l instanceof FormData||jt(l.append)&&((o=lo(l))==="formdata"||o==="object"&&jt(l.toString)&&l.toString()==="[object FormData]"))},jb=$t("URLSearchParams"),[Eb,Rb,zb,Ab]=["ReadableStream","Request","Response","Headers"].map($t),Tb=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gi(l,o,{allOwnKeys:c=!1}={}){if(l===null||typeof l>"u")return;let s,f;if(typeof l!="object"&&(l=[l]),cl(l))for(s=0,f=l.length;s<f;s++)o.call(null,l[s],s,l);else{if(hi(l))return;const p=c?Object.getOwnPropertyNames(l):Object.keys(l),h=p.length;let x;for(s=0;s<h;s++)x=p[s],o.call(null,l[x],x,l)}}function $m(l,o){if(hi(l))return null;o=o.toLowerCase();const c=Object.keys(l);let s=c.length,f;for(;s-- >0;)if(f=c[s],o===f.toLowerCase())return f;return null}const yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Im=l=>!rl(l)&&l!==yn;function Iu(){const{caseless:l,skipUndefined:o}=Im(this)&&this||{},c={},s=(f,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const h=l&&$m(c,p)||p;Xr(c[h])&&Xr(f)?c[h]=Iu(c[h],f):Xr(f)?c[h]=Iu({},f):cl(f)?c[h]=f.slice():(!o||!rl(f))&&(c[h]=f)};for(let f=0,p=arguments.length;f<p;f++)arguments[f]&&gi(arguments[f],s);return c}const Cb=(l,o,c,{allOwnKeys:s}={})=>(gi(o,(f,p)=>{c&&jt(f)?Object.defineProperty(l,p,{value:Km(f,c),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,p,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),l),wb=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),_b=(l,o,c,s)=>{l.prototype=Object.create(o.prototype,s),Object.defineProperty(l.prototype,"constructor",{value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{value:o.prototype}),c&&Object.assign(l.prototype,c)},Ob=(l,o,c,s)=>{let f,p,h;const x={};if(o=o||{},l==null)return o;do{for(f=Object.getOwnPropertyNames(l),p=f.length;p-- >0;)h=f[p],(!s||s(h,l,o))&&!x[h]&&(o[h]=l[h],x[h]=!0);l=c!==!1&&pc(l)}while(l&&(!c||c(l,o))&&l!==Object.prototype);return o},Mb=(l,o,c)=>{l=String(l),(c===void 0||c>l.length)&&(c=l.length),c-=o.length;const s=l.indexOf(o,c);return s!==-1&&s===c},kb=l=>{if(!l)return null;if(cl(l))return l;let o=l.length;if(!Wm(o))return null;const c=new Array(o);for(;o-- >0;)c[o]=l[o];return c},Db=(l=>o=>l&&o instanceof l)(typeof Uint8Array<"u"&&pc(Uint8Array)),Nb=(l,o)=>{const s=(l&&l[no]).call(l);let f;for(;(f=s.next())&&!f.done;){const p=f.value;o.call(l,p[0],p[1])}},Bb=(l,o)=>{let c;const s=[];for(;(c=l.exec(o))!==null;)s.push(c);return s},Hb=$t("HTMLFormElement"),Ub=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,s,f){return s.toUpperCase()+f}),Fh=(({hasOwnProperty:l})=>(o,c)=>l.call(o,c))(Object.prototype),Lb=$t("RegExp"),Pm=(l,o)=>{const c=Object.getOwnPropertyDescriptors(l),s={};gi(c,(f,p)=>{let h;(h=o(f,p,l))!==!1&&(s[p]=h||f)}),Object.defineProperties(l,s)},qb=l=>{Pm(l,(o,c)=>{if(jt(l)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const s=l[c];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 '"+c+"'")})}})},Yb=(l,o)=>{const c={},s=f=>{f.forEach(p=>{c[p]=!0})};return cl(l)?s(l):s(String(l).split(o)),c},Gb=()=>{},Vb=(l,o)=>l!=null&&Number.isFinite(l=+l)?l:o;function Xb(l){return!!(l&&jt(l.append)&&l[Fm]==="FormData"&&l[no])}const Qb=l=>{const o=new Array(10),c=(s,f)=>{if(mi(s)){if(o.indexOf(s)>=0)return;if(hi(s))return s;if(!("toJSON"in s)){o[f]=s;const p=cl(s)?[]:{};return gi(s,(h,x)=>{const b=c(h,f+1);!rl(b)&&(p[x]=b)}),o[f]=void 0,p}}return s};return c(l,0)},Zb=$t("AsyncFunction"),Kb=l=>l&&(mi(l)||jt(l))&&jt(l.then)&&jt(l.catch),e0=((l,o)=>l?setImmediate:o?((c,s)=>(yn.addEventListener("message",({source:f,data:p})=>{f===yn&&p===c&&s.length&&s.shift()()},!1),f=>{s.push(f),yn.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",jt(yn.postMessage)),Fb=typeof queueMicrotask<"u"?queueMicrotask.bind(yn):typeof process<"u"&&process.nextTick||e0,Jb=l=>l!=null&&jt(l[no]),B={isArray:cl,isArrayBuffer:Jm,isBuffer:hi,isFormData:Sb,isArrayBufferView:db,isString:pb,isNumber:Wm,isBoolean:hb,isObject:mi,isPlainObject:Xr,isEmptyObject:mb,isReadableStream:Eb,isRequest:Rb,isResponse:zb,isHeaders:Ab,isUndefined:rl,isDate:gb,isFile:yb,isBlob:xb,isRegExp:Lb,isFunction:jt,isStream:bb,isURLSearchParams:jb,isTypedArray:Db,isFileList:vb,forEach:gi,merge:Iu,extend:Cb,trim:Tb,stripBOM:wb,inherits:_b,toFlatObject:Ob,kindOf:lo,kindOfTest:$t,endsWith:Mb,toArray:kb,forEachEntry:Nb,matchAll:Bb,isHTMLForm:Hb,hasOwnProperty:Fh,hasOwnProp:Fh,reduceDescriptors:Pm,freezeMethods:qb,toObjectSet:Yb,toCamelCase:Ub,noop:Gb,toFiniteNumber:Vb,findKey:$m,global:yn,isContextDefined:Im,isSpecCompliantForm:Xb,toJSONObject:Qb,isAsyncFn:Zb,isThenable:Kb,setImmediate:e0,asap:Fb,isIterable:Jb};let re=class t0 extends Error{static from(o,c,s,f,p,h){const x=new t0(o.message,c||o.code,s,f,p);return x.cause=o,x.name=o.name,h&&Object.assign(x,h),x}constructor(o,c,s,f,p){super(o),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),s&&(this.config=s),f&&(this.request=f),p&&(this.response=p,this.status=p.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:B.toJSONObject(this.config),code:this.code,status:this.status}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";const Wb=null;function Pu(l){return B.isPlainObject(l)||B.isArray(l)}function a0(l){return B.endsWith(l,"[]")?l.slice(0,-2):l}function Jh(l,o,c){return l?l.concat(o).map(function(f,p){return f=a0(f),!c&&p?"["+f+"]":f}).join(c?".":""):o}function $b(l){return B.isArray(l)&&!l.some(Pu)}const Ib=B.toFlatObject(B,{},null,function(o){return/^is[A-Z]/.test(o)});function ro(l,o,c){if(!B.isObject(l))throw new TypeError("target must be an object");o=o||new FormData,c=B.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,w){return!B.isUndefined(w[C])});const s=c.metaTokens,f=c.visitor||v,p=c.dots,h=c.indexes,b=(c.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(o);if(!B.isFunction(f))throw new TypeError("visitor must be a function");function m(z){if(z===null)return"";if(B.isDate(z))return z.toISOString();if(B.isBoolean(z))return z.toString();if(!b&&B.isBlob(z))throw new re("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(z)||B.isTypedArray(z)?b&&typeof Blob=="function"?new Blob([z]):Buffer.from(z):z}function v(z,C,w){let G=z;if(z&&!w&&typeof z=="object"){if(B.endsWith(C,"{}"))C=s?C:C.slice(0,-2),z=JSON.stringify(z);else if(B.isArray(z)&&$b(z)||(B.isFileList(z)||B.endsWith(C,"[]"))&&(G=B.toArray(z)))return C=a0(C),G.forEach(function(X,le){!(B.isUndefined(X)||X===null)&&o.append(h===!0?Jh([C],le,p):h===null?C:C+"[]",m(X))}),!1}return Pu(z)?!0:(o.append(Jh(w,C,p),m(z)),!1)}const y=[],k=Object.assign(Ib,{defaultVisitor:v,convertValue:m,isVisitable:Pu});function R(z,C){if(!B.isUndefined(z)){if(y.indexOf(z)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(z),B.forEach(z,function(G,I){(!(B.isUndefined(G)||G===null)&&f.call(o,G,B.isString(I)?I.trim():I,C,k))===!0&&R(G,C?C.concat(I):[I])}),y.pop()}}if(!B.isObject(l))throw new TypeError("data must be an object");return R(l),o}function Wh(l){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function hc(l,o){this._pairs=[],l&&ro(l,this,o)}const n0=hc.prototype;n0.append=function(o,c){this._pairs.push([o,c])};n0.toString=function(o){const c=o?function(s){return o.call(this,s,Wh)}:Wh;return this._pairs.map(function(f){return c(f[0])+"="+c(f[1])},"").join("&")};function Pb(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function l0(l,o,c){if(!o)return l;const s=c&&c.encode||Pb,f=B.isFunction(c)?{serialize:c}:c,p=f&&f.serialize;let h;if(p?h=p(o,f):h=B.isURLSearchParams(o)?o.toString():new hc(o,f).toString(s),h){const x=l.indexOf("#");x!==-1&&(l=l.slice(0,x)),l+=(l.indexOf("?")===-1?"?":"&")+h}return l}class $h{constructor(){this.handlers=[]}use(o,c,s){return this.handlers.push({fulfilled:o,rejected:c,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){B.forEach(this.handlers,function(s){s!==null&&o(s)})}}const mc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},e2=typeof URLSearchParams<"u"?URLSearchParams:hc,t2=typeof FormData<"u"?FormData:null,a2=typeof Blob<"u"?Blob:null,n2={isBrowser:!0,classes:{URLSearchParams:e2,FormData:t2,Blob:a2},protocols:["http","https","file","blob","url","data"]},gc=typeof window<"u"&&typeof document<"u",ec=typeof navigator=="object"&&navigator||void 0,l2=gc&&(!ec||["ReactNative","NativeScript","NS"].indexOf(ec.product)<0),i2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r2=gc&&window.location.href||"http://localhost",o2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gc,hasStandardBrowserEnv:l2,hasStandardBrowserWebWorkerEnv:i2,navigator:ec,origin:r2},Symbol.toStringTag,{value:"Module"})),pt={...o2,...n2};function s2(l,o){return ro(l,new pt.classes.URLSearchParams,{visitor:function(c,s,f,p){return pt.isNode&&B.isBuffer(c)?(this.append(s,c.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...o})}function u2(l){return B.matchAll(/\w+|\[(\w*)]/g,l).map(o=>o[0]==="[]"?"":o[1]||o[0])}function c2(l){const o={},c=Object.keys(l);let s;const f=c.length;let p;for(s=0;s<f;s++)p=c[s],o[p]=l[p];return o}function i0(l){function o(c,s,f,p){let h=c[p++];if(h==="__proto__")return!0;const x=Number.isFinite(+h),b=p>=c.length;return h=!h&&B.isArray(f)?f.length:h,b?(B.hasOwnProp(f,h)?f[h]=[f[h],s]:f[h]=s,!x):((!f[h]||!B.isObject(f[h]))&&(f[h]=[]),o(c,s,f[h],p)&&B.isArray(f[h])&&(f[h]=c2(f[h])),!x)}if(B.isFormData(l)&&B.isFunction(l.entries)){const c={};return B.forEachEntry(l,(s,f)=>{o(u2(s),f,c,0)}),c}return null}function f2(l,o,c){if(B.isString(l))try{return(o||JSON.parse)(l),B.trim(l)}catch(s){if(s.name!=="SyntaxError")throw s}return(c||JSON.stringify)(l)}const yi={transitional:mc,adapter:["xhr","http","fetch"],transformRequest:[function(o,c){const s=c.getContentType()||"",f=s.indexOf("application/json")>-1,p=B.isObject(o);if(p&&B.isHTMLForm(o)&&(o=new FormData(o)),B.isFormData(o))return f?JSON.stringify(i0(o)):o;if(B.isArrayBuffer(o)||B.isBuffer(o)||B.isStream(o)||B.isFile(o)||B.isBlob(o)||B.isReadableStream(o))return o;if(B.isArrayBufferView(o))return o.buffer;if(B.isURLSearchParams(o))return c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let x;if(p){if(s.indexOf("application/x-www-form-urlencoded")>-1)return s2(o,this.formSerializer).toString();if((x=B.isFileList(o))||s.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return ro(x?{"files[]":o}:o,b&&new b,this.formSerializer)}}return p||f?(c.setContentType("application/json",!1),f2(o)):o}],transformResponse:[function(o){const c=this.transitional||yi.transitional,s=c&&c.forcedJSONParsing,f=this.responseType==="json";if(B.isResponse(o)||B.isReadableStream(o))return o;if(o&&B.isString(o)&&(s&&!this.responseType||f)){const h=!(c&&c.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(x){if(h)throw x.name==="SyntaxError"?re.from(x,re.ERR_BAD_RESPONSE,this,null,this.response):x}}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}}};B.forEach(["delete","get","head","post","put","patch"],l=>{yi.headers[l]={}});const d2=B.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"]),p2=l=>{const o={};let c,s,f;return l&&l.split(`
12
- `).forEach(function(h){f=h.indexOf(":"),c=h.substring(0,f).trim().toLowerCase(),s=h.substring(f+1).trim(),!(!c||o[c]&&d2[c])&&(c==="set-cookie"?o[c]?o[c].push(s):o[c]=[s]:o[c]=o[c]?o[c]+", "+s:s)}),o},Ih=Symbol("internals");function oi(l){return l&&String(l).trim().toLowerCase()}function Qr(l){return l===!1||l==null?l:B.isArray(l)?l.map(Qr):String(l)}function h2(l){const o=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=c.exec(l);)o[s[1]]=s[2];return o}const m2=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function Uu(l,o,c,s,f){if(B.isFunction(s))return s.call(this,o,c);if(f&&(o=c),!!B.isString(o)){if(B.isString(s))return o.indexOf(s)!==-1;if(B.isRegExp(s))return s.test(o)}}function g2(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,c,s)=>c.toUpperCase()+s)}function y2(l,o){const c=B.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(l,s+c,{value:function(f,p,h){return this[s].call(this,o,f,p,h)},configurable:!0})})}let Et=class{constructor(o){o&&this.set(o)}set(o,c,s){const f=this;function p(x,b,m){const v=oi(b);if(!v)throw new Error("header name must be a non-empty string");const y=B.findKey(f,v);(!y||f[y]===void 0||m===!0||m===void 0&&f[y]!==!1)&&(f[y||b]=Qr(x))}const h=(x,b)=>B.forEach(x,(m,v)=>p(m,v,b));if(B.isPlainObject(o)||o instanceof this.constructor)h(o,c);else if(B.isString(o)&&(o=o.trim())&&!m2(o))h(p2(o),c);else if(B.isObject(o)&&B.isIterable(o)){let x={},b,m;for(const v of o){if(!B.isArray(v))throw TypeError("Object iterator must return a key-value pair");x[m=v[0]]=(b=x[m])?B.isArray(b)?[...b,v[1]]:[b,v[1]]:v[1]}h(x,c)}else o!=null&&p(c,o,s);return this}get(o,c){if(o=oi(o),o){const s=B.findKey(this,o);if(s){const f=this[s];if(!c)return f;if(c===!0)return h2(f);if(B.isFunction(c))return c.call(this,f,s);if(B.isRegExp(c))return c.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,c){if(o=oi(o),o){const s=B.findKey(this,o);return!!(s&&this[s]!==void 0&&(!c||Uu(this,this[s],s,c)))}return!1}delete(o,c){const s=this;let f=!1;function p(h){if(h=oi(h),h){const x=B.findKey(s,h);x&&(!c||Uu(s,s[x],x,c))&&(delete s[x],f=!0)}}return B.isArray(o)?o.forEach(p):p(o),f}clear(o){const c=Object.keys(this);let s=c.length,f=!1;for(;s--;){const p=c[s];(!o||Uu(this,this[p],p,o,!0))&&(delete this[p],f=!0)}return f}normalize(o){const c=this,s={};return B.forEach(this,(f,p)=>{const h=B.findKey(s,p);if(h){c[h]=Qr(f),delete c[p];return}const x=o?g2(p):String(p).trim();x!==p&&delete c[p],c[x]=Qr(f),s[x]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const c=Object.create(null);return B.forEach(this,(s,f)=>{s!=null&&s!==!1&&(c[f]=o&&B.isArray(s)?s.join(", "):s)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,c])=>o+": "+c).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,...c){const s=new this(o);return c.forEach(f=>s.set(f)),s}static accessor(o){const s=(this[Ih]=this[Ih]={accessors:{}}).accessors,f=this.prototype;function p(h){const x=oi(h);s[x]||(y2(f,h),s[x]=!0)}return B.isArray(o)?o.forEach(p):p(o),this}};Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(Et.prototype,({value:l},o)=>{let c=o[0].toUpperCase()+o.slice(1);return{get:()=>l,set(s){this[c]=s}}});B.freezeMethods(Et);function Lu(l,o){const c=this||yi,s=o||c,f=Et.from(s.headers);let p=s.data;return B.forEach(l,function(x){p=x.call(c,p,f.normalize(),o?o.status:void 0)}),f.normalize(),p}function r0(l){return!!(l&&l.__CANCEL__)}let xi=class extends re{constructor(o,c,s){super(o??"canceled",re.ERR_CANCELED,c,s),this.name="CanceledError",this.__CANCEL__=!0}};function o0(l,o,c){const s=c.config.validateStatus;!c.status||!s||s(c.status)?l(c):o(new re("Request failed with status code "+c.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function x2(l){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return o&&o[1]||""}function v2(l,o){l=l||10;const c=new Array(l),s=new Array(l);let f=0,p=0,h;return o=o!==void 0?o:1e3,function(b){const m=Date.now(),v=s[p];h||(h=m),c[f]=b,s[f]=m;let y=p,k=0;for(;y!==f;)k+=c[y++],y=y%l;if(f=(f+1)%l,f===p&&(p=(p+1)%l),m-h<o)return;const R=v&&m-v;return R?Math.round(k*1e3/R):void 0}}function b2(l,o){let c=0,s=1e3/o,f,p;const h=(m,v=Date.now())=>{c=v,f=null,p&&(clearTimeout(p),p=null),l(...m)};return[(...m)=>{const v=Date.now(),y=v-c;y>=s?h(m,v):(f=m,p||(p=setTimeout(()=>{p=null,h(f)},s-y)))},()=>f&&h(f)]}const $r=(l,o,c=3)=>{let s=0;const f=v2(50,250);return b2(p=>{const h=p.loaded,x=p.lengthComputable?p.total:void 0,b=h-s,m=f(b),v=h<=x;s=h;const y={loaded:h,total:x,progress:x?h/x:void 0,bytes:b,rate:m||void 0,estimated:m&&x&&v?(x-h)/m:void 0,event:p,lengthComputable:x!=null,[o?"download":"upload"]:!0};l(y)},c)},Ph=(l,o)=>{const c=l!=null;return[s=>o[0]({lengthComputable:c,total:l,loaded:s}),o[1]]},em=l=>(...o)=>B.asap(()=>l(...o)),S2=pt.hasStandardBrowserEnv?((l,o)=>c=>(c=new URL(c,pt.origin),l.protocol===c.protocol&&l.host===c.host&&(o||l.port===c.port)))(new URL(pt.origin),pt.navigator&&/(msie|trident)/i.test(pt.navigator.userAgent)):()=>!0,j2=pt.hasStandardBrowserEnv?{write(l,o,c,s,f,p,h){if(typeof document>"u")return;const x=[`${l}=${encodeURIComponent(o)}`];B.isNumber(c)&&x.push(`expires=${new Date(c).toUTCString()}`),B.isString(s)&&x.push(`path=${s}`),B.isString(f)&&x.push(`domain=${f}`),p===!0&&x.push("secure"),B.isString(h)&&x.push(`SameSite=${h}`),document.cookie=x.join("; ")},read(l){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function E2(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function R2(l,o){return o?l.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):l}function s0(l,o,c){let s=!E2(o);return l&&(s||c==!1)?R2(l,o):o}const tm=l=>l instanceof Et?{...l}:l;function vn(l,o){o=o||{};const c={};function s(m,v,y,k){return B.isPlainObject(m)&&B.isPlainObject(v)?B.merge.call({caseless:k},m,v):B.isPlainObject(v)?B.merge({},v):B.isArray(v)?v.slice():v}function f(m,v,y,k){if(B.isUndefined(v)){if(!B.isUndefined(m))return s(void 0,m,y,k)}else return s(m,v,y,k)}function p(m,v){if(!B.isUndefined(v))return s(void 0,v)}function h(m,v){if(B.isUndefined(v)){if(!B.isUndefined(m))return s(void 0,m)}else return s(void 0,v)}function x(m,v,y){if(y in o)return s(m,v);if(y in l)return s(void 0,m)}const b={url:p,method:p,data:p,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:x,headers:(m,v,y)=>f(tm(m),tm(v),y,!0)};return B.forEach(Object.keys({...l,...o}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const y=B.hasOwnProp(b,v)?b[v]:f,k=y(l[v],o[v],v);B.isUndefined(k)&&y!==x||(c[v]=k)}),c}const u0=l=>{const o=vn({},l);let{data:c,withXSRFToken:s,xsrfHeaderName:f,xsrfCookieName:p,headers:h,auth:x}=o;if(o.headers=h=Et.from(h),o.url=l0(s0(o.baseURL,o.url,o.allowAbsoluteUrls),l.params,l.paramsSerializer),x&&h.set("Authorization","Basic "+btoa((x.username||"")+":"+(x.password?unescape(encodeURIComponent(x.password)):""))),B.isFormData(c)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(B.isFunction(c.getHeaders)){const b=c.getHeaders(),m=["content-type","content-length"];Object.entries(b).forEach(([v,y])=>{m.includes(v.toLowerCase())&&h.set(v,y)})}}if(pt.hasStandardBrowserEnv&&(s&&B.isFunction(s)&&(s=s(o)),s||s!==!1&&S2(o.url))){const b=f&&p&&j2.read(p);b&&h.set(f,b)}return o},z2=typeof XMLHttpRequest<"u",A2=z2&&function(l){return new Promise(function(c,s){const f=u0(l);let p=f.data;const h=Et.from(f.headers).normalize();let{responseType:x,onUploadProgress:b,onDownloadProgress:m}=f,v,y,k,R,z;function C(){R&&R(),z&&z(),f.cancelToken&&f.cancelToken.unsubscribe(v),f.signal&&f.signal.removeEventListener("abort",v)}let w=new XMLHttpRequest;w.open(f.method.toUpperCase(),f.url,!0),w.timeout=f.timeout;function G(){if(!w)return;const X=Et.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),ue={data:!x||x==="text"||x==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:X,config:l,request:w};o0(function(F){c(F),C()},function(F){s(F),C()},ue),w=null}"onloadend"in w?w.onloadend=G:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(G)},w.onabort=function(){w&&(s(new re("Request aborted",re.ECONNABORTED,l,w)),w=null)},w.onerror=function(le){const ue=le&&le.message?le.message:"Network Error",me=new re(ue,re.ERR_NETWORK,l,w);me.event=le||null,s(me),w=null},w.ontimeout=function(){let le=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const ue=f.transitional||mc;f.timeoutErrorMessage&&(le=f.timeoutErrorMessage),s(new re(le,ue.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,l,w)),w=null},p===void 0&&h.setContentType(null),"setRequestHeader"in w&&B.forEach(h.toJSON(),function(le,ue){w.setRequestHeader(ue,le)}),B.isUndefined(f.withCredentials)||(w.withCredentials=!!f.withCredentials),x&&x!=="json"&&(w.responseType=f.responseType),m&&([k,z]=$r(m,!0),w.addEventListener("progress",k)),b&&w.upload&&([y,R]=$r(b),w.upload.addEventListener("progress",y),w.upload.addEventListener("loadend",R)),(f.cancelToken||f.signal)&&(v=X=>{w&&(s(!X||X.type?new xi(null,l,w):X),w.abort(),w=null)},f.cancelToken&&f.cancelToken.subscribe(v),f.signal&&(f.signal.aborted?v():f.signal.addEventListener("abort",v)));const I=x2(f.url);if(I&&pt.protocols.indexOf(I)===-1){s(new re("Unsupported protocol "+I+":",re.ERR_BAD_REQUEST,l));return}w.send(p||null)})},T2=(l,o)=>{const{length:c}=l=l?l.filter(Boolean):[];if(o||c){let s=new AbortController,f;const p=function(m){if(!f){f=!0,x();const v=m instanceof Error?m:this.reason;s.abort(v instanceof re?v:new xi(v instanceof Error?v.message:v))}};let h=o&&setTimeout(()=>{h=null,p(new re(`timeout of ${o}ms exceeded`,re.ETIMEDOUT))},o);const x=()=>{l&&(h&&clearTimeout(h),h=null,l.forEach(m=>{m.unsubscribe?m.unsubscribe(p):m.removeEventListener("abort",p)}),l=null)};l.forEach(m=>m.addEventListener("abort",p));const{signal:b}=s;return b.unsubscribe=()=>B.asap(x),b}},C2=function*(l,o){let c=l.byteLength;if(c<o){yield l;return}let s=0,f;for(;s<c;)f=s+o,yield l.slice(s,f),s=f},w2=async function*(l,o){for await(const c of _2(l))yield*C2(c,o)},_2=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const o=l.getReader();try{for(;;){const{done:c,value:s}=await o.read();if(c)break;yield s}}finally{await o.cancel()}},am=(l,o,c,s)=>{const f=w2(l,o);let p=0,h,x=b=>{h||(h=!0,s&&s(b))};return new ReadableStream({async pull(b){try{const{done:m,value:v}=await f.next();if(m){x(),b.close();return}let y=v.byteLength;if(c){let k=p+=y;c(k)}b.enqueue(new Uint8Array(v))}catch(m){throw x(m),m}},cancel(b){return x(b),f.return()}},{highWaterMark:2})},nm=64*1024,{isFunction:Lr}=B,O2=(({Request:l,Response:o})=>({Request:l,Response:o}))(B.global),{ReadableStream:lm,TextEncoder:im}=B.global,rm=(l,...o)=>{try{return!!l(...o)}catch{return!1}},M2=l=>{l=B.merge.call({skipUndefined:!0},O2,l);const{fetch:o,Request:c,Response:s}=l,f=o?Lr(o):typeof fetch=="function",p=Lr(c),h=Lr(s);if(!f)return!1;const x=f&&Lr(lm),b=f&&(typeof im=="function"?(z=>C=>z.encode(C))(new im):async z=>new Uint8Array(await new c(z).arrayBuffer())),m=p&&x&&rm(()=>{let z=!1;const C=new c(pt.origin,{body:new lm,method:"POST",get duplex(){return z=!0,"half"}}).headers.has("Content-Type");return z&&!C}),v=h&&x&&rm(()=>B.isReadableStream(new s("").body)),y={stream:v&&(z=>z.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(z=>{!y[z]&&(y[z]=(C,w)=>{let G=C&&C[z];if(G)return G.call(C);throw new re(`Response type '${z}' is not supported`,re.ERR_NOT_SUPPORT,w)})});const k=async z=>{if(z==null)return 0;if(B.isBlob(z))return z.size;if(B.isSpecCompliantForm(z))return(await new c(pt.origin,{method:"POST",body:z}).arrayBuffer()).byteLength;if(B.isArrayBufferView(z)||B.isArrayBuffer(z))return z.byteLength;if(B.isURLSearchParams(z)&&(z=z+""),B.isString(z))return(await b(z)).byteLength},R=async(z,C)=>{const w=B.toFiniteNumber(z.getContentLength());return w??k(C)};return async z=>{let{url:C,method:w,data:G,signal:I,cancelToken:X,timeout:le,onDownloadProgress:ue,onUploadProgress:me,responseType:F,headers:we,withCredentials:ke="same-origin",fetchOptions:it}=u0(z),We=o||fetch;F=F?(F+"").toLowerCase():"text";let Z=T2([I,X&&X.toAbortSignal()],le),fe=null;const xe=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let _e;try{if(me&&m&&w!=="get"&&w!=="head"&&(_e=await R(we,G))!==0){let S=new c(C,{method:"POST",body:G,duplex:"half"}),N;if(B.isFormData(G)&&(N=S.headers.get("content-type"))&&we.setContentType(N),S.body){const[Y,V]=Ph(_e,$r(em(me)));G=am(S.body,nm,Y,V)}}B.isString(ke)||(ke=ke?"include":"omit");const D=p&&"credentials"in c.prototype,Q={...it,signal:Z,method:w.toUpperCase(),headers:we.normalize().toJSON(),body:G,duplex:"half",credentials:D?ke:void 0};fe=p&&new c(C,Q);let te=await(p?We(fe,it):We(C,Q));const Re=v&&(F==="stream"||F==="response");if(v&&(ue||Re&&xe)){const S={};["status","statusText","headers"].forEach($=>{S[$]=te[$]});const N=B.toFiniteNumber(te.headers.get("content-length")),[Y,V]=ue&&Ph(N,$r(em(ue),!0))||[];te=new s(am(te.body,nm,Y,()=>{V&&V(),xe&&xe()}),S)}F=F||"text";let K=await y[B.findKey(y,F)||"text"](te,z);return!Re&&xe&&xe(),await new Promise((S,N)=>{o0(S,N,{data:K,headers:Et.from(te.headers),status:te.status,statusText:te.statusText,config:z,request:fe})})}catch(D){throw xe&&xe(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,z,fe,D&&D.response),{cause:D.cause||D}):re.from(D,D&&D.code,z,fe,D&&D.response)}}},k2=new Map,c0=l=>{let o=l&&l.env||{};const{fetch:c,Request:s,Response:f}=o,p=[s,f,c];let h=p.length,x=h,b,m,v=k2;for(;x--;)b=p[x],m=v.get(b),m===void 0&&v.set(b,m=x?new Map:M2(o)),v=m;return m};c0();const yc={http:Wb,xhr:A2,fetch:{get:c0}};B.forEach(yc,(l,o)=>{if(l){try{Object.defineProperty(l,"name",{value:o})}catch{}Object.defineProperty(l,"adapterName",{value:o})}});const om=l=>`- ${l}`,D2=l=>B.isFunction(l)||l===null||l===!1;function N2(l,o){l=B.isArray(l)?l:[l];const{length:c}=l;let s,f;const p={};for(let h=0;h<c;h++){s=l[h];let x;if(f=s,!D2(s)&&(f=yc[(x=String(s)).toLowerCase()],f===void 0))throw new re(`Unknown adapter '${x}'`);if(f&&(B.isFunction(f)||(f=f.get(o))))break;p[x||"#"+h]=f}if(!f){const h=Object.entries(p).map(([b,m])=>`adapter ${b} `+(m===!1?"is not supported by the environment":"is not available in the build"));let x=c?h.length>1?`since :
14
- `+h.map(om).join(`
15
- `):" "+om(h[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return f}const f0={getAdapter:N2,adapters:yc};function qu(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new xi(null,l)}function sm(l){return qu(l),l.headers=Et.from(l.headers),l.data=Lu.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),f0.getAdapter(l.adapter||yi.adapter,l)(l).then(function(s){return qu(l),s.data=Lu.call(l,l.transformResponse,s),s.headers=Et.from(s.headers),s},function(s){return r0(s)||(qu(l),s&&s.response&&(s.response.data=Lu.call(l,l.transformResponse,s.response),s.response.headers=Et.from(s.response.headers))),Promise.reject(s)})}const d0="1.13.5",oo={};["object","boolean","number","function","string","symbol"].forEach((l,o)=>{oo[l]=function(s){return typeof s===l||"a"+(o<1?"n ":" ")+l}});const um={};oo.transitional=function(o,c,s){function f(p,h){return"[Axios v"+d0+"] Transitional option '"+p+"'"+h+(s?". "+s:"")}return(p,h,x)=>{if(o===!1)throw new re(f(h," has been removed"+(c?" in "+c:"")),re.ERR_DEPRECATED);return c&&!um[h]&&(um[h]=!0,console.warn(f(h," has been deprecated since v"+c+" and will be removed in the near future"))),o?o(p,h,x):!0}};oo.spelling=function(o){return(c,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function B2(l,o,c){if(typeof l!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const s=Object.keys(l);let f=s.length;for(;f-- >0;){const p=s[f],h=o[p];if(h){const x=l[p],b=x===void 0||h(x,p,l);if(b!==!0)throw new re("option "+p+" must be "+b,re.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new re("Unknown option "+p,re.ERR_BAD_OPTION)}}const Zr={assertOptions:B2,validators:oo},Qt=Zr.validators;let xn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new $h,response:new $h}}async request(o,c){try{return await this._request(o,c)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=f.stack?f.stack.replace(/^.+\n/,""):"";try{s.stack?p&&!String(s.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(s.stack+=`
16
- `+p):s.stack=p}catch{}}throw s}}_request(o,c){typeof o=="string"?(c=c||{},c.url=o):c=o||{},c=vn(this.defaults,c);const{transitional:s,paramsSerializer:f,headers:p}=c;s!==void 0&&Zr.assertOptions(s,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean),legacyInterceptorReqResOrdering:Qt.transitional(Qt.boolean)},!1),f!=null&&(B.isFunction(f)?c.paramsSerializer={serialize:f}:Zr.assertOptions(f,{encode:Qt.function,serialize:Qt.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),Zr.assertOptions(c,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let h=p&&B.merge(p.common,p[c.method]);p&&B.forEach(["delete","get","head","post","put","patch","common"],z=>{delete p[z]}),c.headers=Et.concat(h,p);const x=[];let b=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(c)===!1)return;b=b&&C.synchronous;const w=c.transitional||mc;w&&w.legacyInterceptorReqResOrdering?x.unshift(C.fulfilled,C.rejected):x.push(C.fulfilled,C.rejected)});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let v,y=0,k;if(!b){const z=[sm.bind(this),void 0];for(z.unshift(...x),z.push(...m),k=z.length,v=Promise.resolve(c);y<k;)v=v.then(z[y++],z[y++]);return v}k=x.length;let R=c;for(;y<k;){const z=x[y++],C=x[y++];try{R=z(R)}catch(w){C.call(this,w);break}}try{v=sm.call(this,R)}catch(z){return Promise.reject(z)}for(y=0,k=m.length;y<k;)v=v.then(m[y++],m[y++]);return v}getUri(o){o=vn(this.defaults,o);const c=s0(o.baseURL,o.url,o.allowAbsoluteUrls);return l0(c,o.params,o.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(o){xn.prototype[o]=function(c,s){return this.request(vn(s||{},{method:o,url:c,data:(s||{}).data}))}});B.forEach(["post","put","patch"],function(o){function c(s){return function(p,h,x){return this.request(vn(x||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:p,data:h}))}}xn.prototype[o]=c(),xn.prototype[o+"Form"]=c(!0)});let H2=class p0{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(p){c=p});const s=this;this.promise.then(f=>{if(!s._listeners)return;let p=s._listeners.length;for(;p-- >0;)s._listeners[p](f);s._listeners=null}),this.promise.then=f=>{let p;const h=new Promise(x=>{s.subscribe(x),p=x}).then(f);return h.cancel=function(){s.unsubscribe(p)},h},o(function(p,h,x){s.reason||(s.reason=new xi(p,h,x),c(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 c=this._listeners.indexOf(o);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const o=new AbortController,c=s=>{o.abort(s)};return this.subscribe(c),o.signal.unsubscribe=()=>this.unsubscribe(c),o.signal}static source(){let o;return{token:new p0(function(f){o=f}),cancel:o}}};function U2(l){return function(c){return l.apply(null,c)}}function L2(l){return B.isObject(l)&&l.isAxiosError===!0}const tc={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(tc).forEach(([l,o])=>{tc[o]=l});function h0(l){const o=new xn(l),c=Km(xn.prototype.request,o);return B.extend(c,xn.prototype,o,{allOwnKeys:!0}),B.extend(c,o,null,{allOwnKeys:!0}),c.create=function(f){return h0(vn(l,f))},c}const Je=h0(yi);Je.Axios=xn;Je.CanceledError=xi;Je.CancelToken=H2;Je.isCancel=r0;Je.VERSION=d0;Je.toFormData=ro;Je.AxiosError=re;Je.Cancel=Je.CanceledError;Je.all=function(o){return Promise.all(o)};Je.spread=U2;Je.isAxiosError=L2;Je.mergeConfig=vn;Je.AxiosHeaders=Et;Je.formToJSON=l=>i0(B.isHTMLForm(l)?new FormData(l):l);Je.getAdapter=f0.getAdapter;Je.HttpStatusCode=tc;Je.default=Je;const{Axios:mS,AxiosError:gS,CanceledError:yS,isCancel:xS,CancelToken:vS,VERSION:bS,all:SS,Cancel:jS,isAxiosError:ES,spread:RS,toFormData:zS,AxiosHeaders:AS,HttpStatusCode:TS,formToJSON:CS,getAdapter:wS,mergeConfig:_S}=Je,m0="/api",He=Je.create({baseURL:m0,headers:{"Content-Type":"application/json"}});He.interceptors.request.use(l=>{const o=localStorage.getItem("samarthya_token");return o&&(l.headers.Authorization=`Bearer ${o}`),l});const xc={register:l=>He.post("/auth/register",l),login:l=>He.post("/auth/login",l),demoLogin:()=>He.post("/auth/demo"),getProfile:()=>He.get("/auth/profile"),updateProfile:l=>He.put("/auth/profile",l)},si={sendMessage:l=>He.post("/chat/message",l),getConversations:()=>He.get("/chat/conversations"),getConversation:l=>He.get(`/chat/conversations/${l}`),deleteConversation:l=>He.delete(`/chat/conversations/${l}`),togglePin:l=>He.patch(`/chat/conversations/${l}/pin`)},Kr={getLogs:l=>He.get("/audit/logs",{params:l}),getStats:()=>He.get("/audit/stats"),rollback:l=>He.post(`/audit/rollback/${l}`)},Yu={getAll:()=>He.get("/tools"),getPacks:()=>He.get("/tools/packs"),getPackTools:l=>He.get(`/tools/packs/${l}`)},q2={analyze:(l,o)=>He.post("/screen/analyze",{image:l,prompt:o}),getSupported:()=>He.get("/screen/supported")},gn={list:l=>He.get("/files/list",{params:{path:l}}),read:l=>He.get("/files/read",{params:{path:l}}),download:l=>`${m0}/files/download?path=${encodeURIComponent(l)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(l,o)=>He.post("/files/mkdir",{name:l,parentPath:o}),upload:(l,o,c)=>He.post("/files/upload",{filename:l,content:o,parentPath:c}),deleteFile:l=>He.delete("/files/delete",{params:{path:l}}),getStats:()=>He.get("/files/stats")},Gu={getStatus:()=>He.get("/platform/status"),getJobs:()=>He.get("/platform/jobs"),emergencyStop:()=>He.post("/platform/emergency-stop")},Y2=[{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"}],G2=l=>{if(!l)return"";const o=new Date(l);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},V2=l=>{const o={};return l.forEach(c=>{const s=c.createdAt?new Date(c.createdAt):new Date;if(isNaN(s))return;const f=new Date,p=new Date;p.setDate(f.getDate()-1);let h;s.toDateString()===f.toDateString()?h="Today":s.toDateString()===p.toDateString()?h="Yesterday":h=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[h]||(o[h]=[]),o[h].push(c)}),o},cm=l=>l?l.split(`
17
- `).map((o,c)=>{const s=[];let f=o;const p=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let h;for(;(h=p.exec(f))!==null;){if(h.index>0){const x=f.substring(0,h.index);s.push(u.jsx("span",{children:x.replace(/\*\*/g,"")},`t-${h.index}`))}s.push(u.jsx("a",{href:h[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:h[1].replace(/\*\*/g,"")},`l-${h.index}`)),f=f.substring(h.index+h[0].length)}if(f.length>0){let x=f;x.startsWith("- ")&&(x="• "+x.substring(2)),s.push(u.jsx("span",{children:x.replace(/\*\*/g,"")},`end-${c}`))}return u.jsxs(Ir.Fragment,{children:[s.length>0?s:u.jsx("span",{children:o.replace(/\*\*/g,"")}),u.jsx("br",{})]},c)}):null;function fm({user:l}){const[o,c]=A.useState([]),[s,f]=A.useState(null),[p,h]=A.useState([]),[x,b]=A.useState(""),[m,v]=A.useState(!1),[y,k]=A.useState(!1),[R,z]=A.useState(!1),[C,w]=A.useState(!1),[G,I]=A.useState(null),X=A.useRef(null),le=A.useRef(null),[ue,me]=A.useState(""),F=A.useRef(null),we=A.useRef(null),ke=A.useRef(null);A.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const it=K=>{const S=K||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const N=window.AudioContext||window.webkitAudioContext;if(N){X.current=new N;const Y=X.current.createOscillator(),V=X.current.createGain();Y.type="triangle",Y.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{le.current&&X.current&&(Y.frequency.setValueAtTime(800,X.current.currentTime),Y.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),V.gain.value=.1,Y.connect(V),V.connect(X.current.destination),Y.start(),le.current=Y}I(S)},We=()=>{I(null),le.current&&(le.current.stop(),le.current=null),X.current&&(X.current.close(),X.current=null)};A.useEffect(()=>(xe(),Z(),()=>{F.current&&F.current.abort()}),[]),A.useEffect(()=>{we.current?.scrollIntoView({behavior:"smooth"})},[p]);const Z=()=>{const K=window.SpeechRecognition||window.webkitSpeechRecognition;if(!K)return;w(!0);const S=new K;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=N=>{let Y="";for(let V=0;V<N.results.length;V++)Y+=N.results[V][0].transcript;me(Y),b(Y),N.results[N.results.length-1].isFinal&&setTimeout(()=>{z(!1),Y.trim()&&D(Y.trim())},500)},S.onerror=N=>{console.error("Voice error:",N.error),z(!1)},S.onend=()=>{z(!1)},F.current=S},fe=()=>{F.current&&(R?(F.current.stop(),z(!1)):(me(""),F.current.lang=l?.language==="hindi"?"hi-IN":l?.language==="english"?"en-IN":"hi-IN",F.current.start(),z(!0)))},xe=async()=>{try{const K=await si.getConversations();c(K.data.conversations||[])}catch{console.error("Failed to load conversations")}},_e=async K=>{try{const S=await si.getConversation(K);f(S.data.conversation),h(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},D=async K=>{const S=K||x.trim();if(!S||m)return;b("");const N={role:"user",content:S,createdAt:new Date};h(Y=>[...Y,N]),v(!0),k(!0);try{const V=(await si.sendMessage({message:S,conversationId:s?._id})).data;s||(f({_id:V.conversationId}),xe());const $={role:"assistant",content:V.message.content,toolCalls:V.message.toolCalls,sensitiveDataWarnings:V.message.sensitiveDataWarnings,createdAt:new Date};h(oe=>[...oe,$]),$.toolCalls&&$.toolCalls.forEach(oe=>{if(oe.toolName==="reminder_set"&&oe.notificationParams){const{delayMs:ze,message:rt}=oe.notificationParams;setTimeout(()=>{it(rt)},ze||5e3)}})}catch{h(V=>[...V,{role:"assistant",content:l?.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{v(!1),k(!1),ke.current?.focus()}},Q=()=>{f(null),h([]),ke.current?.focus()},te=async(K,S)=>{S.stopPropagation();try{await si.deleteConversation(K),s?._id===K&&Q(),xe()}catch{console.error("Delete failed")}},Re=K=>{K.key==="Enter"&&!K.shiftKey&&(K.preventDefault(),D())};return u.jsxs("div",{style:W.container,children:[G&&u.jsx("div",{style:W.alarmPopupLayer,children:u.jsxs("div",{style:W.alarmBox,children:[u.jsx("div",{style:W.alarmIcon,children:"⏰"}),u.jsxs("div",{style:W.alarmContent,children:[u.jsx("h4",{style:W.alarmTitle,children:"Reminder"}),u.jsx("p",{style:W.alarmMessage,children:G})]}),u.jsx("button",{onClick:We,style:W.alarmStopBtn,children:"Stop Alarm"})]})}),u.jsxs("div",{style:W.convSidebar,children:[u.jsxs("div",{style:W.convHeader,children:[u.jsx("h3",{style:W.convTitle,children:"💬 Conversations"}),u.jsx("button",{onClick:Q,style:W.newBtn,title:"New Chat",children:u.jsx(Nv,{size:18})})]}),u.jsxs("div",{style:W.convList,children:[o.map(K=>u.jsxs("button",{onClick:()=>_e(K._id),style:{...W.convItem,...s?._id===K._id?W.convItemActive:{}},children:[u.jsx("span",{style:W.convItemTitle,children:K.title}),u.jsx("div",{style:W.convActions,children:u.jsx("button",{onClick:S=>te(K._id,S),style:W.convDelBtn,children:u.jsx(Qm,{size:14})})})]},K._id)),o.length===0&&u.jsx("p",{style:W.emptyConv,children:l?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),u.jsxs("div",{style:W.chatArea,children:[R&&u.jsxs("div",{style:W.voiceOverlay,children:[u.jsx("div",{style:W.voicePulseRing,children:u.jsx(Vh,{size:36,color:"#FF9933"})}),u.jsx("p",{style:W.voiceText,children:ue||(l?.language==="hindi"?"बोलिए...":l?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),u.jsx("p",{style:W.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),u.jsxs("button",{onClick:fe,style:W.voiceStopBtn,children:[u.jsx(Tv,{size:18})," Stop Listening"]})]}),u.jsxs("div",{style:W.messages,children:[p.length===0&&u.jsxs("div",{style:W.welcome,children:[u.jsx("div",{style:W.welcomeLogo,children:"स"}),u.jsxs("h2",{style:W.welcomeTitle,children:[l?.language==="english"?"Hello":"Namaste",", ",l?.name||"User","! 🙏"]}),u.jsx("p",{style:W.welcomeSubtitle,children:l?.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?"}),u.jsx("div",{style:W.quickActions,children:Y2.map((K,S)=>u.jsxs("button",{onClick:()=>D(l?.language==="english"?K.textEn:K.text),style:W.quickActionBtn,children:[u.jsx("span",{style:W.quickEmoji,children:K.emoji}),u.jsx("span",{children:l?.language==="english"?K.textEn:K.text})]},S))})]}),Object.entries(V2(p)).map(([K,S],N)=>u.jsxs(Ir.Fragment,{children:[u.jsx("div",{style:W.dateDivider,children:u.jsx("span",{style:W.dateBadge,children:K})}),S.map((Y,V)=>u.jsxs("div",{style:{...W.message,...Y.role==="user"?W.userMessage:W.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[u.jsx("div",{style:Y.role==="user"?W.userAvatar:W.assistantAvatar,children:Y.role==="user"?u.jsx(Zm,{size:16}):u.jsx(qh,{size:16})}),u.jsxs("div",{style:W.messageContent,children:[Y.sensitiveDataWarnings?.length>0&&u.jsxs("div",{style:W.warningBanner,children:[u.jsx(dc,{size:14}),u.jsxs("span",{children:["⚠️ Sensitive data detected: ",Y.sensitiveDataWarnings.map($=>$.type).join(", ")]})]}),u.jsx("div",{style:W.messageText,children:cm(Y.content)}),Y.toolCalls?.length>0&&u.jsx("div",{style:W.toolCalls,children:Y.toolCalls.map(($,oe)=>u.jsxs("div",{style:W.toolCall,children:[u.jsxs("div",{style:W.toolCallHeader,children:[u.jsxs("span",{style:{...W.toolBadge,background:$.status==="completed"?"rgba(16,185,129,0.15)":$.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:$.status==="completed"?"#10b981":$.status==="blocked"?"#ef4444":"#f59e0b"},children:[$.status==="completed"?"✅":$.status==="blocked"?"🚫":"⏳"," ",$.toolName]}),u.jsxs("span",{style:W.toolRisk,children:["Risk: ",$.riskLevel]})]}),$.result&&u.jsx("div",{style:W.toolResult,children:cm($.result)})]},oe))}),u.jsx("div",{style:{...W.msgTime,color:Y.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:G2(Y.createdAt)})]})]},`msg-${N}-${V}`))]},`group-${N}`)),y&&u.jsxs("div",{style:{...W.message,...W.assistantMessage},children:[u.jsx("div",{style:W.assistantAvatar,children:u.jsx(qh,{size:16})}),u.jsxs("div",{style:W.typingIndicator,children:[u.jsx("span",{style:{...W.typingDot,animationDelay:"0s"}}),u.jsx("span",{style:{...W.typingDot,animationDelay:"0.2s"}}),u.jsx("span",{style:{...W.typingDot,animationDelay:"0.4s"}})]})]}),u.jsx("div",{ref:we})]}),u.jsxs("div",{style:W.inputArea,children:[u.jsxs("div",{style:W.inputWrap,children:[u.jsx("textarea",{ref:ke,value:x,onChange:K=>b(K.target.value),onKeyDown:Re,placeholder:l?.language==="hindi"?"यहां टाइप करें...":l?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:W.textarea,rows:1,disabled:m}),u.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){v(!0),h(N=>[...N,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),k(!0);try{const N=new FileReader;N.onload=async()=>{const Y=N.result,V=await q2.analyze(Y,x.trim()||"Is screenshot mein kya hai? Next step batao.");h($=>[...$,{role:"assistant",content:`👁️ **Screen Analysis:**
18
-
19
- ${V.data.analysis.content}`,createdAt:new Date}]),b("")},N.readAsDataURL(S)}catch{h(Y=>[...Y,{role:"assistant",content:l?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{v(!1),k(!1),K.target.value=""}}}}),u.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:W.voiceBtn,title:"Screenshot upload for AI analysis",children:u.jsx(Lx,{size:20})}),C&&u.jsx("button",{onClick:fe,style:{...W.voiceBtn,...R?W.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:u.jsx(Vh,{size:20})}),u.jsx("button",{onClick:()=>D(),disabled:m||!x.trim(),style:{...W.sendBtn,opacity:m||!x.trim()?.5:1},children:m?u.jsx(jv,{size:20,style:{animation:"spin 1s linear infinite"}}):u.jsx(Vv,{size:20})})]}),u.jsx("p",{style:W.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const W={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 X2({user:l}){const o=to(),[c,s]=A.useState(null),[f,p]=A.useState(null),[h,x]=A.useState([]),[b,m]=A.useState([]),[v,y]=A.useState(!0);A.useEffect(()=>{R();const C=setInterval(()=>{k()},15e3);return()=>clearInterval(C)},[]);const k=async()=>{try{const[C,w]=await Promise.all([Gu.getStatus().catch(()=>({data:{status:null}})),Gu.getJobs().catch(()=>({data:{jobs:[]}}))]);p(C.data.status),x(w.data.jobs||[])}catch{}},R=async()=>{y(!0);try{const[C,w]=await Promise.all([si.getConversations().catch(()=>({data:{conversations:[]}})),Kr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);m(C.data.conversations?.slice(0,5)||[]),s(w.data.stats),await k()}catch(C){console.error("Dashboard load error:",C)}finally{y(!1)}},z=C=>{if(!C)return"0h 0m";const w=Math.floor(C/3600),G=Math.floor(C%3600/60);return`${w}h ${G}m`};return v?u.jsx("div",{style:{...P.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:u.jsx(Vr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):u.jsxs("div",{style:P.container,children:[u.jsxs("div",{style:P.header,children:[u.jsxs("div",{children:[u.jsx("h1",{style:P.title,children:"Control Center"}),u.jsxs("div",{style:P.systemBadge,children:[u.jsx(Xm,{size:14})," System Online • OS: ",f?.osName||"SamarthyaOS"]})]}),u.jsxs("div",{style:P.headerActions,children:[u.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await Gu.emergencyStop(),k(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:P.dangerBtn,title:"Emergency Kill Switch",children:[u.jsx(Xh,{size:18})," Kill Switch"]}),u.jsxs("button",{onClick:()=>o("/tools"),style:P.secondaryBtn,children:[u.jsx(Wr,{size:18})," Modules"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:P.newChatBtn,children:[u.jsx(pi,{size:18})," Spawn Agent"]})]})]}),u.jsx("h3",{style:P.sectionTitle,children:"System Vitals"}),u.jsxs("div",{style:P.statsGrid,children:[u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[u.jsx("div",{style:{...P.statIcon,background:"#6366f120",color:"#6366f1"},children:u.jsx(Ju,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsx("div",{style:P.statValue,children:z(f?.uptime)}),u.jsx("div",{style:P.statLabel,children:"Agent Uptime"})]})]}),u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[u.jsx("div",{style:{...P.statIcon,background:"#14b8a620",color:"#14b8a6"},children:u.jsx(Wu,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsxs("div",{style:P.statValue,children:[f?.ramUsage||0,"%"]}),u.jsx("div",{style:P.statLabel,children:"Memory Load"})]})]}),u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[u.jsx("div",{style:{...P.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:u.jsx(kv,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsxs("div",{style:P.statValue,children:[f?.totalTools||0," / ",f?.loadedPlugins||0]}),u.jsx("div",{style:P.statLabel,children:"Core Tools / Plugins"})]})]}),u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[u.jsx("div",{style:{...P.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:u.jsx(Vr,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsx("div",{style:P.statValue,children:c?.totalActions||0}),u.jsx("div",{style:P.statLabel,children:"Tasks Executed"})]})]})]}),u.jsxs("div",{style:P.mainGrid,children:[u.jsxs("div",{style:{...P.card,gridColumn:"span 2"},children:[u.jsxs("div",{style:P.cardHeader,children:[u.jsxs("h3",{style:P.cardTitle,children:[u.jsx(Vr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),u.jsxs("span",{style:P.liveBadge,children:[u.jsx("span",{style:P.pulseDot})," LIVE"]})]}),u.jsx("div",{style:P.cardBody,children:h.length>0?u.jsx("div",{style:P.jobsList,children:h.map(C=>u.jsxs("div",{style:P.jobCard,children:[u.jsxs("div",{style:P.jobHeader,children:[u.jsx("span",{style:P.jobName,children:C.taskName}),u.jsx("span",{style:C.isActive?P.jobActive:P.jobInactive,children:C.isActive?"RUNNING":"STOPPED"})]}),u.jsxs("div",{style:P.jobPrompt,children:['"',C.prompt,'"']}),u.jsxs("div",{style:P.jobMeta,children:[u.jsxs("span",{children:[u.jsx(Ju,{size:12})," Interval: ",C.intervalMinutes,"m"]}),u.jsxs("span",{children:[u.jsx($x,{size:12})," Next Run: ",new Date(C.nextRunAt).toLocaleTimeString()]})]})]},C._id))}):u.jsxs("div",{style:P.emptyState,children:[u.jsx(cc,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),u.jsx("p",{children:"No autonomous background tasks running."}),u.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),u.jsxs("div",{style:P.card,children:[u.jsxs("div",{style:P.cardHeader,children:[u.jsxs("h3",{style:P.cardTitle,children:[u.jsx(fc,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:P.viewAllBtn,children:["View All ",u.jsx(ll,{size:14})]})]}),u.jsx("div",{style:P.cardBody,children:b.length>0?b.map(C=>u.jsxs("button",{onClick:()=>o(`/chat/${C._id}`),style:P.convRow,children:[u.jsx("div",{style:P.convDot}),u.jsxs("div",{style:P.convInfo,children:[u.jsx("span",{style:P.convName,children:C.title}),u.jsxs("span",{style:P.convTime,children:[new Date(C.updatedAt).toLocaleDateString()," ",new Date(C.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),u.jsx(ll,{size:14,style:{color:"var(--text-muted)"}})]},C._id)):u.jsx("div",{style:P.emptyState,children:u.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),u.jsxs("div",{style:P.bannerGrid,children:[u.jsxs("div",{style:P.vaultBanner,children:[u.jsx(il,{size:24,style:{color:"#10b981"}}),u.jsxs("div",{style:{flex:1},children:[u.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),u.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),u.jsx("button",{onClick:()=>o("/settings"),style:P.outlineBtn,children:"Configure"})]}),u.jsxs("div",{style:P.pluginBanner,children:[u.jsx(Xh,{size:24,style:{color:"#f59e0b"}}),u.jsxs("div",{style:{flex:1},children:[u.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),u.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const P={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}},vc=document.createElement("style");vc.type="text/css";vc.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(vc);function Q2({user:l,onUpdate:o}){const[c,s]=A.useState({name:l?.name||"",language:l?.language||"hinglish",city:l?.city||"",permissions:l?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[f,p]=A.useState(!1),[h,x]=A.useState(!1),b=async()=>{p(!0);try{const y=await xc.updateProfile(c);o(y.data.user),x(!0),setTimeout(()=>x(!1),3e3)}catch{console.error("Save failed")}finally{p(!1)}},m=[{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:"कभी नहीं"}],v=[{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 u.jsxs("div",{style:Se.container,children:[u.jsxs("div",{style:Se.header,children:[u.jsx("h1",{style:Se.title,children:"⚙️ Settings"}),u.jsx("button",{onClick:b,disabled:f,style:Se.saveBtn,children:h?u.jsxs(u.Fragment,{children:[u.jsx(Jr,{size:18})," Saved!"]}):f?"Saving...":u.jsxs(u.Fragment,{children:[u.jsx(Yv,{size:18})," Save Changes"]})})]}),u.jsxs("div",{style:Se.grid,children:[u.jsxs("div",{style:Se.section,children:[u.jsxs("div",{style:Se.sectionHeader,children:[u.jsx(Zm,{size:20,style:{color:"var(--accent-primary)"}}),u.jsx("h2",{style:Se.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),u.jsxs("div",{style:Se.sectionBody,children:[u.jsxs("div",{style:Se.field,children:[u.jsx("label",{style:Se.label,children:"Name / नाम"}),u.jsx("input",{style:Se.input,value:c.name,onChange:y=>s({...c,name:y.target.value}),placeholder:"Your name"})]}),u.jsxs("div",{style:Se.field,children:[u.jsx("label",{style:Se.label,children:"City / शहर"}),u.jsx("input",{style:Se.input,value:c.city,onChange:y=>s({...c,city:y.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),u.jsxs("div",{style:Se.section,children:[u.jsxs("div",{style:Se.sectionHeader,children:[u.jsx(uc,{size:20,style:{color:"var(--accent-saffron)"}}),u.jsx("h2",{style:Se.sectionTitle,children:"Language / भाषा"})]}),u.jsx("div",{style:Se.sectionBody,children:u.jsx("div",{style:Se.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(y=>u.jsxs("button",{onClick:()=>s({...c,language:y.value}),style:{...Se.langCard,...c.language===y.value?Se.langCardActive:{}},children:[u.jsx("span",{style:Se.langIcon,children:y.icon}),u.jsx("span",{style:Se.langLabel,children:y.label}),u.jsx("span",{style:Se.langDesc,children:y.desc}),c.language===y.value&&u.jsx(Jr,{size:16,style:Se.langCheck})]},y.value))})})]}),u.jsxs("div",{style:Se.section,children:[u.jsxs("div",{style:Se.sectionHeader,children:[u.jsx(il,{size:20,style:{color:"var(--accent-rose)"}}),u.jsx("h2",{style:Se.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),u.jsx("div",{style:Se.sectionBody,children:v.map(y=>u.jsxs("div",{style:Se.permRow,children:[u.jsxs("div",{style:Se.permInfo,children:[u.jsx("span",{style:Se.permIcon,children:y.icon}),u.jsxs("div",{children:[u.jsx("div",{style:Se.permLabel,children:y.label}),u.jsx("div",{style:Se.permDesc,children:y.desc})]})]}),u.jsx("select",{style:Se.permSelect,value:c.permissions[y.key],onChange:k=>s({...c,permissions:{...c.permissions,[y.key]:k.target.value}}),children:m.map(k=>u.jsx("option",{value:k.value,children:k.label},k.value))})]},y.key))})]})]})]})}const Se={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"}},Vu={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:"🛠️"}},dm={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 Z2({user:l}){const[o,c]=A.useState([]),[s,f]=A.useState(null),[p,h]=A.useState(""),[x,b]=A.useState(!0);A.useEffect(()=>{m()},[p]);const m=async()=>{b(!0);try{const y={};p&&(y.category=p);const[k,R]=await Promise.all([Kr.getLogs(y),Kr.getStats()]);c(k.data.logs||[]),f(R.data.stats||null)}catch{console.error("Failed to load audit data"),c([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{b(!1)}},v=async y=>{try{await Kr.rollback(y),m()}catch{console.error("Rollback failed")}};return u.jsxs("div",{style:he.container,children:[u.jsx("div",{style:he.header,children:u.jsxs("div",{children:[u.jsx("h1",{style:he.title,children:"🔐 Audit Log / ऑडिट लॉग"}),u.jsx("p",{style:he.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),u.jsxs("div",{style:he.statsRow,children:[u.jsxs("div",{style:he.statCard,children:[u.jsx(Vr,{size:20,style:{color:"var(--accent-primary)"}}),u.jsxs("div",{children:[u.jsx("div",{style:he.statValue,children:s?.totalActions||0}),u.jsx("div",{style:he.statLabel,children:"Total Actions"})]})]}),u.jsxs("div",{style:he.statCard,children:[u.jsx(il,{size:20,style:{color:"#10b981"}}),u.jsxs("div",{children:[u.jsx("div",{style:he.statValue,children:s?.byStatus?.success||0}),u.jsx("div",{style:he.statLabel,children:"Successful"})]})]}),u.jsxs("div",{style:he.statCard,children:[u.jsx(dc,{size:20,style:{color:"#f59e0b"}}),u.jsxs("div",{children:[u.jsx("div",{style:he.statValue,children:s?.byStatus?.blocked||0}),u.jsx("div",{style:he.statLabel,children:"Blocked"})]})]}),u.jsxs("div",{style:he.statCard,children:[u.jsx(Qh,{size:20,style:{color:"#8b5cf6"}}),u.jsxs("div",{children:[u.jsx("div",{style:he.statValue,children:s?.byStatus?.rolled_back||0}),u.jsx("div",{style:he.statLabel,children:"Rolled Back"})]})]})]}),u.jsxs("div",{style:he.filters,children:[u.jsx(mv,{size:16,style:{color:"var(--text-muted)"}}),u.jsx("button",{onClick:()=>h(""),style:{...he.filterBtn,...p===""?he.filterBtnActive:{}},children:"All"}),Object.entries(Vu).map(([y,k])=>u.jsxs("button",{onClick:()=>h(y),style:{...he.filterBtn,...p===y?he.filterBtnActive:{}},children:[k.icon," ",y]},y))]}),u.jsx("div",{style:he.timeline,children:x?u.jsxs("div",{style:he.loadingState,children:[u.jsx("div",{style:he.spinner}),u.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?u.jsxs("div",{style:he.emptyState,children:[u.jsx(il,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),u.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((y,k)=>{const R=Vu[y.category]||Vu.system,z=dm[y.status]||dm.success;return u.jsxs("div",{style:he.logEntry,children:[u.jsxs("div",{style:he.logTimeline,children:[u.jsx("div",{style:{...he.logDot,background:R.color}}),k<o.length-1&&u.jsx("div",{style:he.logLine})]}),u.jsxs("div",{style:he.logContent,children:[u.jsxs("div",{style:he.logHeader,children:[u.jsxs("span",{style:{...he.logCategory,background:R.bg,color:R.color},children:[R.icon," ",y.category]}),u.jsx("span",{style:{...he.logStatus,background:z.bg,color:z.color},children:y.status}),y.details?.riskLevel&&y.details.riskLevel!=="low"&&u.jsxs("span",{style:he.riskBadge,children:["⚠️ ",y.details.riskLevel," risk"]})]}),u.jsx("div",{style:he.logAction,children:y.action}),y.details?.toolName&&u.jsxs("div",{style:he.logDetail,children:["Tool: ",y.details.toolName]}),u.jsxs("div",{style:he.logTime,children:[u.jsx(Ju,{size:12}),new Date(y.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),y.canRollback&&y.status!=="rolled_back"&&u.jsxs("button",{onClick:()=>v(y._id),style:he.rollbackBtn,children:[u.jsx(Qh,{size:14})," Undo / Rollback"]})]})]},y._id||k)})})]})}const he={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"}},pm={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 K2({user:l}){const[o,c]=A.useState([]),[s,f]=A.useState([]),[p,h]=A.useState(null),[x,b]=A.useState([]);A.useEffect(()=>{m()},[]);const m=async()=>{try{const[R,z]=await Promise.all([Yu.getPacks(),Yu.getAll()]);c(R.data.packs||[]),f(z.data.tools||[])}catch{console.error("Failed to load tools")}},v=async R=>{h(R);try{const z=await Yu.getPackTools(R);b(z.data.tools||[])}catch{b([])}},y=async R=>{try{await xc.updateProfile({activePack:R})}catch{console.error("Failed to activate pack")}},k=l?.language==="english";return u.jsxs("div",{style:Le.container,children:[u.jsx("div",{style:Le.header,children:u.jsxs("div",{children:[u.jsxs("h1",{style:Le.title,children:["🛠️ ",k?"Tool Packs":"टूल पैक्स"]}),u.jsx("p",{style:Le.subtitle,children:k?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),u.jsx("div",{style:Le.packsGrid,children:o.map((R,z)=>{const C=l?.activePack===R.id,w=p===R.id;return u.jsxs("div",{onClick:()=>v(R.id),style:{...Le.packCard,...C?Le.packCardActive:{},...w?Le.packCardSelected:{},animationDelay:`${z*.1}s`},children:[u.jsxs("div",{style:Le.packHeader,children:[u.jsx("span",{style:Le.packEmoji,children:R.id==="student"?"🎓":R.id==="business"?"🏢":R.id==="developer"?"👨‍💻":"🏠"}),C&&u.jsxs("span",{style:Le.activeBadge,children:[u.jsx(Jr,{size:12})," ",k?"Active":"सक्रिय"]})]}),u.jsx("h3",{style:Le.packName,children:k?R.name:R.nameHi||R.name}),u.jsx("p",{style:Le.packDesc,children:k?R.description:R.descriptionHi||R.description}),u.jsxs("div",{style:Le.packMeta,children:[u.jsxs("span",{style:Le.toolCount,children:[u.jsx(Wr,{size:14})," ",R.toolCount," tools"]}),u.jsx(ll,{size:16,style:{color:"var(--text-muted)"}})]}),!C&&u.jsxs("button",{onClick:G=>{G.stopPropagation(),y(R.id)},style:Le.activateBtn,children:[u.jsx(pi,{size:14})," ",k?"Activate":"एक्टिवेट करें"]})]},R.id)})}),u.jsxs("div",{style:Le.section,children:[u.jsxs("h2",{style:Le.sectionTitle,children:[u.jsx(Wr,{size:20,style:{color:"var(--accent-primary)"}}),p?k?`Tools in ${p} pack`:`${p} पैक के टूल्स`:k?"All Available Tools":"सभी टूल्स"]}),u.jsx("div",{style:Le.toolsGrid,children:(p?x:s).map((R,z)=>{const C=pm[R.riskLevel]||pm.low;return u.jsxs("div",{style:{...Le.toolCard,animationDelay:`${z*.05}s`},children:[u.jsxs("div",{style:Le.toolHeader,children:[u.jsx("span",{style:Le.toolName,children:R.name}),u.jsx("span",{style:{...Le.riskBadge,background:C.bg,color:C.color},children:C.label})]}),u.jsx("p",{style:Le.toolDesc,children:k?R.description:R.descriptionHi||R.description}),u.jsx("div",{style:Le.toolMeta,children:u.jsxs("span",{style:Le.toolCategory,children:[R.category==="file"?"📁":R.category==="email"?"📧":R.category==="search"?"🔍":R.category==="calendar"?"📅":"🛠️"," ",R.category]})})]},R.name)})})]})]})}const Le={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"}},hm=[{label:"Features",href:"#features"},{label:"CLI",href:"#cli"},{label:"Architecture",href:"#architecture"},{label:"Security",href:"#security"}],F2=[{icon:u.jsx(ib,{size:22}),accent:"#FF9933",title:"Autonomous Planning",desc:"Native ReAct engine (Reason → Act → Observe) that breaks complex goals into discrete steps and executes them without holding your hand."},{icon:u.jsx(il,{size:22}),accent:"#6ee7f7",title:"Full Local Sovereignty",desc:"Your data never leaves your machine. Use Ollama for 100% offline inference, or encrypted tunnels to cloud providers. You own the compute."},{icon:u.jsx(qm,{size:22}),accent:"#a78bfa",title:"Encrypted Memory Vault",desc:"Every interaction stored locally. Sensitive data is encrypted via AES-256-CBC. Semantic vector search surfaces context across sessions."},{icon:u.jsx(uc,{size:22}),accent:"#138808",title:"Indian Digital Highway",desc:"Native support for GST filings, IRCTC bookings, UPI payments, and Hinglish fluency. Built for India's digital infrastructure."},{icon:u.jsx(Vm,{size:22}),accent:"#fb923c",title:"Plugin Extensibility",desc:"Drop any JS file into the plugins folder and the assistant learns it instantly. Build custom automations for unique business logic."},{icon:u.jsx(Ym,{size:22}),accent:"#f472b6",title:"Visual Intelligence",desc:"Built-in screen understanding for contextual automation. Let the agent see what you see and act on it autonomously."}],mm=[{cmd:"samarthya onboard",desc:"Start the installation & configuration wizard"},{cmd:"samarthya gateway",desc:"Run the backend control plane and serve the Dashboard"},{cmd:"samarthya status",desc:"Display the status of background jobs and the engine"},{cmd:"samarthya stop",desc:"Gracefully shut down all background autonomous agents"},{cmd:"samarthya model [name]",desc:"Swap between LLM providers (e.g. ollama, gemini)"}],J2=[{name:"WhatsApp",icon:"https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg",invert:!1},{name:"Telegram",icon:"https://upload.wikimedia.org/wikipedia/commons/a/a7/Telegram_logo.svg",invert:!1},{name:"Gmail",icon:"https://upload.wikimedia.org/wikipedia/commons/7/7e/Gmail_icon_%282020%29.svg",invert:!1},{name:"GitHub",icon:"https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg",invert:!0},{name:"Discord",icon:"https://upload.wikimedia.org/wikipedia/commons/7/73/Discord_Color_Text_Logo.svg",invert:!1},{name:"Slack",icon:"https://upload.wikimedia.org/wikipedia/commons/d/d5/Slack_icon_2019.svg",invert:!1},{name:"UPI",icon:"https://upload.wikimedia.org/wikipedia/commons/e/e1/UPI-Logo-vector.svg",invert:!1},{name:"IRCTC",icon:"https://upload.wikimedia.org/wikipedia/en/4/45/IRCTC_Logo.png",invert:!1}],W2=[{name:"jonahships_",handle:"@jonahships_",text:"Setup SamarthyaBot 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.",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jonah"},{name:"markjaquith",handle:"@markjaquith",text:'SamarthyaBot feels like a "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:"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 autonomous agent sessions I can kick off anywhere, running tests on my app and resolving them. The future of digital employees.",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=Nate"}],gm=`// ~/SamarthyaBot_Files/plugins/hello.js
26
- module.exports = {
27
- name: 'greet',
28
- description: 'Greets the user in a friendly way',
29
- parameters: {
30
- name: { type: 'string', required: true }
31
- },
32
- execute: async (args) => ({
33
- success: true,
34
- result: \`Namaste \${args.name}! Main SamarthyaBot hoon.\`
35
- })
36
- };`;function ym({text:l,dark:o}){const[c,s]=A.useState(!1),f=()=>{navigator.clipboard.writeText(l),s(!0),setTimeout(()=>s(!1),2e3)};return u.jsx("button",{onClick:f,style:nS(),"aria-label":"Copy to clipboard",children:c?u.jsx(Jr,{size:15,color:"#22c55e"}):u.jsx(ev,{size:15,color:o?"#666":"#999"})})}function Ja({children:l,dark:o}){return u.jsx("div",{style:lS(),children:u.jsx("span",{style:{color:"#FF9933",fontSize:"0.7rem",fontWeight:800,letterSpacing:"3px",textTransform:"uppercase"},children:l})})}function $2(){const[l,o]=A.useState(!0),[c,s]=A.useState(!1),[f,p]=A.useState(!1);A.useEffect(()=>{const R=()=>p(window.scrollY>20);return window.addEventListener("scroll",R,{passive:!0}),()=>window.removeEventListener("scroll",R)},[]);const h=(R,z)=>{R.preventDefault(),s(!1),document.querySelector(z)?.scrollIntoView({behavior:"smooth"})},x=l?"#06060a":"#ffffff",b=l?"#0e0e14":"#f8f8fb",m=l?"#1e1e28":"#e8e8ee",v=l?"#ffffff":"#0a0a0f",y=l?"#8888a8":"#555568",k=l?"#3a3a4e":"#ccccdb";return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:`
37
- *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
38
- html { scroll-behavior: smooth; }
39
- body { background: ${x}; transition: background 0.3s; }
40
- a { text-decoration: none; color: inherit; }
41
- @keyframes fadeUp {
42
- from { opacity: 0; transform: translateY(28px); }
43
- to { opacity: 1; transform: translateY(0); }
44
- }
45
- @keyframes glow {
46
- 0%, 100% { opacity: 0.4; }
47
- 50% { opacity: 0.8; }
48
- }
49
- @keyframes flagFlow {
50
- 0% { background-position: 0% 50%; }
51
- 50% { background-position: 100% 50%; }
52
- 100% { background-position: 0% 50%; }
53
- }
54
- .flag-text {
55
- background: linear-gradient(90deg, #FF9933 0%, #ffffff 33%, #138808 66%, #FF9933 100%);
56
- background-size: 300% auto;
57
- -webkit-background-clip: text;
58
- -webkit-text-fill-color: transparent;
59
- background-clip: text;
60
- animation: flagFlow 6s ease infinite;
61
- }
62
- .fade-up { animation: fadeUp 0.7s ease both; }
63
- .fade-up-d1 { animation: fadeUp 0.7s ease 0.1s both; }
64
- .fade-up-d2 { animation: fadeUp 0.7s ease 0.2s both; }
65
- .fade-up-d3 { animation: fadeUp 0.7s ease 0.3s both; }
66
- .fade-up-d4 { animation: fadeUp 0.7s ease 0.4s both; }
67
- .card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
68
- .card-hover:hover {
69
- transform: translateY(-4px);
70
- box-shadow: 0 20px 60px rgba(0,0,0,0.15);
71
- }
72
- .nav-link {
73
- font-size: 0.85rem; font-weight: 600; letter-spacing: 0.3px;
74
- padding: 8px 14px; border-radius: 8px; transition: background 0.15s; cursor: pointer;
75
- }
76
- .nav-link:hover { background: ${l?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"}; }
77
- .btn-primary {
78
- display: inline-flex; align-items: center; gap: 8px;
79
- padding: 12px 24px; border-radius: 10px; font-size: 0.9rem;
80
- font-weight: 700; cursor: pointer;
81
- background: linear-gradient(135deg, #FF9933 0%, #e8851d 100%);
82
- color: #fff; border: none;
83
- transition: transform 0.15s, box-shadow 0.15s;
84
- box-shadow: 0 4px 20px rgba(255,153,51,0.35);
85
- }
86
- .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,153,51,0.5); }
87
- .btn-secondary {
88
- display: inline-flex; align-items: center; gap: 8px;
89
- padding: 12px 24px; border-radius: 10px; font-size: 0.9rem;
90
- font-weight: 700; cursor: pointer; background: transparent;
91
- color: ${v}; border: 1.5px solid ${m};
92
- transition: border-color 0.15s, background 0.15s;
93
- }
94
- .btn-secondary:hover {
95
- border-color: ${l?"#3a3a4e":"#aaaacc"};
96
- background: ${l?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"};
97
- }
98
- .mobile-menu {
99
- position: fixed; top: 0; left: 0; width: 100%; height: 100%;
100
- z-index: 998;
101
- background: ${l?"rgba(6,6,10,0.97)":"rgba(255,255,255,0.97)"};
102
- display: flex; flex-direction: column; align-items: center;
103
- justify-content: center; gap: 8px; backdrop-filter: blur(12px);
104
- }
105
- .mobile-menu-link {
106
- font-size: 1.4rem; font-weight: 700; padding: 14px 32px;
107
- color: ${v}; border-radius: 12px; cursor: pointer; transition: background 0.15s;
108
- }
109
- .mobile-menu-link:hover { background: ${l?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.05)"}; }
110
- ::-webkit-scrollbar { width: 6px; }
111
- ::-webkit-scrollbar-track { background: ${x}; }
112
- ::-webkit-scrollbar-thumb { background: ${k}; border-radius: 99px; }
113
- @media (max-width: 900px) {
114
- .feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
115
- .int-grid { grid-template-columns: repeat(4, 1fr) !important; }
116
- .arch-row { flex-direction: column !important; }
117
- }
118
- @media (max-width: 640px) {
119
- .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem) !important; letter-spacing: -2px !important; }
120
- .feat-grid { grid-template-columns: 1fr !important; }
121
- .spec-grid { grid-template-columns: 1fr !important; }
122
- .int-grid { grid-template-columns: repeat(2, 1fr) !important; }
123
- .test-grid { grid-template-columns: 1fr !important; }
124
- .footer-inner { flex-direction: column; gap: 40px !important; }
125
- .nav-desktop { display: none !important; }
126
- .hamburger { display: flex !important; }
127
- .hero-btns { flex-direction: column !important; align-items: stretch !important; }
128
- .hero-btns > * { text-align: center !important; justify-content: center; }
129
- .plug-row { flex-direction: column !important; }
130
- .stats-row { gap: 24px !important; }
131
- .cta-pad { padding: 40px 24px !important; }
132
- .section-padded{ padding: 64px 20px !important; }
133
- }
134
- `}),u.jsxs("div",{style:{background:x,color:v,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",minHeight:"100vh",overflowX:"hidden"},children:[u.jsx("nav",{style:P2(l,f,m),children:u.jsxs("div",{style:eS(),children:[u.jsxs("a",{href:"/",style:{display:"flex",alignItems:"center",gap:10,fontWeight:900,fontSize:"1.1rem",color:v},children:[u.jsx("span",{style:xm,children:"स"}),u.jsxs("span",{children:["Samarthya",u.jsx("span",{style:{color:"#FF9933"},children:"Bot"})]})]}),u.jsx("div",{className:"nav-desktop",style:{display:"flex",alignItems:"center",gap:4},children:hm.map(R=>u.jsx("a",{href:R.href,className:"nav-link",style:{color:y},onClick:z=>h(z,R.href),children:R.label},R.label))}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[u.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center",gap:7,padding:"8px 14px",borderRadius:9,border:`1.5px solid ${m}`,fontSize:"0.82rem",fontWeight:700,color:y},children:[u.jsx(Hu,{size:15})," GitHub"]}),u.jsx("button",{onClick:()=>o(R=>!R),style:tS(l,m),"aria-label":"Toggle theme",children:l?u.jsx(Wv,{size:16}):u.jsx(_v,{size:16})}),u.jsx("button",{className:"hamburger",onClick:()=>s(R=>!R),style:{display:"none",background:"none",border:"none",cursor:"pointer",color:v,padding:6},children:u.jsxs("div",{style:{width:22,display:"flex",flexDirection:"column",gap:5},children:[u.jsx("span",{style:{height:2,background:v,borderRadius:2,display:"block",transition:"0.2s",transform:c?"rotate(45deg) translateY(7px)":"none"}}),u.jsx("span",{style:{height:2,background:v,borderRadius:2,display:"block",opacity:c?0:1,transition:"0.2s"}}),u.jsx("span",{style:{height:2,background:v,borderRadius:2,display:"block",transition:"0.2s",transform:c?"rotate(-45deg) translateY(-7px)":"none"}})]})})]})]})}),c&&u.jsxs("div",{className:"mobile-menu",children:[hm.map(R=>u.jsx("a",{href:R.href,className:"mobile-menu-link",onClick:z=>h(z,R.href),children:R.label},R.label)),u.jsx(ui,{to:"/dashboard",className:"mobile-menu-link",onClick:()=>s(!1),children:"Dashboard"})]}),u.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"160px 24px 120px",textAlign:"center",position:"relative"},children:[u.jsx("div",{style:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",width:700,height:420,background:"radial-gradient(ellipse at center, rgba(255,153,51,0.10) 0%, transparent 70%)",pointerEvents:"none",animation:"glow 5s ease infinite",zIndex:0}}),u.jsxs("div",{style:{position:"relative",zIndex:1},children:[u.jsxs("div",{className:"fade-up",style:aS(l,m),children:[u.jsx("span",{style:{background:"linear-gradient(135deg,#FF9933,#e8851d)",color:"#fff",fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:5,letterSpacing:1},children:"BETA 1.1"}),u.jsx("span",{style:{color:y,fontSize:"0.82rem",fontWeight:600},children:"Vectorized Memory & Gateway Tunneling Live"}),u.jsx(ll,{size:13,color:y})]}),u.jsx("div",{className:"fade-up-d1",style:{marginBottom:28},children:u.jsx("span",{style:I2(),children:"स"})}),u.jsxs("h1",{className:"fade-up-d2 hero-title",style:{fontSize:"clamp(3rem, 8vw, 5.5rem)",fontWeight:950,letterSpacing:"-4px",lineHeight:1.05,marginBottom:22,color:v},children:["Your Local",u.jsx("br",{}),u.jsx("span",{className:"flag-text",children:"Agentic OS"})]}),u.jsxs("p",{className:"fade-up-d3",style:{fontSize:"clamp(0.95rem, 2.5vw, 1.15rem)",color:y,maxWidth:640,margin:"0 auto 52px",lineHeight:1.75,fontWeight:400},children:["Run powerful AI agents ",u.jsx("strong",{style:{color:v,fontWeight:700},children:"locally on your machine"}),". Bypass cloud limits, own your compute, and automate complex ",u.jsx("strong",{style:{color:v,fontWeight:700},children:"Indian digital workflows"})," — fully private."]}),u.jsxs("div",{className:"fade-up-d4 hero-btns",style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[u.jsxs("a",{href:"#install",onClick:R=>h(R,"#install"),className:"btn-primary",children:[u.jsx(Iv,{size:16})," Get Started Free"]}),u.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",className:"btn-secondary",children:[u.jsx(Hu,{size:16})," View on GitHub"]}),u.jsxs(ui,{to:"/dashboard",className:"btn-secondary",children:[u.jsx(Wu,{size:16})," Open Dashboard"]})]}),u.jsx("div",{className:"fade-up-d4 stats-row",style:{display:"flex",gap:48,justifyContent:"center",marginTop:72,flexWrap:"wrap"},children:[{label:"License",val:"MIT"},{label:"LLM Providers",val:"4+"},{label:"Built-in Tools",val:"30+"},{label:"Cloud Required",val:"Zero"}].map(R=>u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:"1.45rem",fontWeight:900,color:v},children:R.val}),u.jsx("div",{style:{fontSize:"0.74rem",color:y,fontWeight:600,letterSpacing:"0.5px",marginTop:5},children:R.label})]},R.label))})]})]}),u.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:u.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${m}, transparent)`}})}),u.jsxs("section",{id:"install",className:"section-padded",style:{maxWidth:820,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[u.jsx(Ja,{dark:l,children:"Quick Start"}),u.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Deploy in 60 Seconds"}),u.jsx("p",{style:{color:y,marginTop:12,fontSize:"0.92rem"},children:"Requires Node.js ≥ 20 and a local MongoDB instance."})]}),u.jsxs("div",{style:Xu(l,m),children:[u.jsxs("div",{style:Qu(l),children:[u.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(R=>u.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:R}},R))}),u.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:k},children:"Terminal"}),u.jsx("div",{})]}),u.jsx("div",{style:{padding:"8px 0",fontFamily:"monospace"},children:[{cmd:"npm install -g samarthya-bot",comment:"# install globally"},{cmd:"samarthya onboard",comment:"# interactive setup wizard"},{cmd:"samarthya gateway",comment:"# launch the control plane"}].map((R,z)=>u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 24px",borderBottom:z<2?`1px solid ${l?"#13131e":"#1e1e2a"}`:"none"},children:[u.jsxs("div",{style:{display:"flex",gap:14,fontSize:"0.88rem",flexWrap:"wrap",alignItems:"center"},children:[u.jsx("span",{style:{color:"#FF9933",fontWeight:700,userSelect:"none"},children:"$"}),u.jsx("span",{style:{color:l?"#d0d0f0":"#c8c8e8"},children:R.cmd}),u.jsx("span",{style:{color:k,fontSize:"0.8rem"},children:R.comment})]}),u.jsx(ym,{text:R.cmd,dark:l})]},z))})]}),u.jsxs("p",{style:{color:y,fontSize:"0.8rem",textAlign:"center",marginTop:20},children:["From source:"," ",u.jsx("code",{style:{background:l?"#1a1a24":"#eeeefc",padding:"2px 8px",borderRadius:5,fontSize:"0.78rem",color:l?"#b0b0d8":"#3a3a6e"},children:"git clone https://github.com/mebishnusahu0595/SamarthyaBot"})]})]}),u.jsx("section",{id:"features",style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:60},children:[u.jsx(Ja,{dark:l,children:"Capabilities"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Built Different. Runs Locally."}),u.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:520,margin:"14px auto 0"},children:"Everything you need to run an autonomous AI agent on your own hardware."})]}),u.jsx("div",{className:"feat-grid",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:20},children:F2.map((R,z)=>u.jsxs("div",{className:"card-hover",style:{padding:"28px 24px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff",display:"flex",flexDirection:"column"},children:[u.jsx("div",{style:{width:42,height:42,borderRadius:10,background:`${R.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:R.accent,marginBottom:18},children:R.icon}),u.jsx("h3",{style:{fontSize:"0.98rem",fontWeight:800,color:v,marginBottom:10},children:R.title}),u.jsx("p",{style:{fontSize:"0.85rem",color:y,lineHeight:1.7},children:R.desc})]},z))})]})}),u.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[u.jsx(Ja,{dark:l,children:"Integrations"}),u.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Omnichannel Connectivity"}),u.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.92rem",maxWidth:440,margin:"14px auto 0"},children:"One control plane, many frontends. Talk to your agent where you already are."})]}),u.jsx("div",{className:"int-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:14},children:J2.map((R,z)=>u.jsxs("div",{className:"card-hover",style:{padding:"18px 20px",borderRadius:12,border:`1px solid ${m}`,background:b,display:"flex",alignItems:"center",gap:12},children:[u.jsx("img",{src:R.icon,alt:R.name,style:{width:26,height:26,objectFit:"contain",flexShrink:0,filter:R.invert&&l?"invert(1)":"none"}}),u.jsx("span",{style:{fontSize:"0.85rem",fontWeight:700,color:v},children:R.name})]},z))})]}),u.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:u.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${m}, transparent)`}})}),u.jsx("section",{id:"architecture",style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{style:{maxWidth:960,margin:"0 auto"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[u.jsx(Ja,{dark:l,children:"Under the Hood"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Architecture Overview"})]}),u.jsxs("div",{className:"arch-row",style:{display:"flex",gap:36,alignItems:"flex-start"},children:[u.jsx("div",{style:{flex:1,minWidth:280},children:u.jsxs("div",{style:{...Xu(l,m),padding:0},children:[u.jsxs("div",{style:Qu(l),children:[u.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(R=>u.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:R}},R))}),u.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:k},children:"System Topology"}),u.jsx("div",{})]}),u.jsx("pre",{style:{padding:"22px 24px",fontFamily:"monospace",fontSize:"0.78rem",lineHeight:1.85,color:l?"#7070a0":"#5050a0",overflowX:"auto"},children:`WhatsApp · Telegram · WebUI · CLI
135
-
136
-
137
- ┌─────────────────────────┐
138
- │ Samarthya Gateway │
139
- │ localhost:5000 │
140
- └──────────┬──────────────┘
141
-
142
- ┌─────┴───────┐
143
- ▼ ▼
144
- Planner Skill Registry
145
- (ReAct) (Plugins + Tools)
146
-
147
- ├─ Background CRON
148
- ├─ Memory Vault (AES-256)
149
- └─ Vector Search (Local)`})]})}),u.jsx("div",{style:{flex:1,minWidth:260,display:"flex",flexDirection:"column",gap:12},children:[{icon:u.jsx(fc,{size:18}),title:"Surface Layer",desc:"WhatsApp, Telegram, Web UI, CLI — unified gateway",accent:"#FF9933"},{icon:u.jsx(Wu,{size:18}),title:"Planner Engine",desc:"ReAct loop: Reason → Act → Observe",accent:"#6ee7f7"},{icon:u.jsx(qm,{size:18}),title:"Memory Vault",desc:"AES-256 encrypted + semantic vector indexing",accent:"#a78bfa"},{icon:u.jsx(pi,{size:18}),title:"Skill Registry",desc:"Hot-plug JS plugins, shell scripts, 30+ built-ins",accent:"#22c55e"}].map((R,z)=>u.jsxs("div",{style:{display:"flex",gap:14,alignItems:"flex-start",padding:"16px 18px",borderRadius:12,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[u.jsx("div",{style:{width:34,height:34,borderRadius:8,background:`${R.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:R.accent,flexShrink:0},children:R.icon}),u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:800,fontSize:"0.87rem",color:v,marginBottom:4},children:R.title}),u.jsx("div",{style:{fontSize:"0.78rem",color:y,lineHeight:1.5},children:R.desc})]})]},z))})]})]})}),u.jsxs("section",{id:"cli",className:"section-padded",style:{maxWidth:860,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[u.jsx(Ja,{dark:l,children:"CLI Reference"}),u.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Control Everything from Your Terminal"})]}),u.jsx("div",{style:{border:`1px solid ${m}`,borderRadius:14,overflow:"hidden",background:b},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[u.jsx("thead",{children:u.jsxs("tr",{style:{background:l?"#0a0a14":"#ededf8",borderBottom:`1px solid ${m}`},children:[u.jsx("th",{style:{padding:"13px 22px",textAlign:"left",fontWeight:700,fontSize:"0.72rem",color:y,letterSpacing:"1.8px",textTransform:"uppercase"},children:"Command"}),u.jsx("th",{style:{padding:"13px 22px",textAlign:"left",fontWeight:700,fontSize:"0.72rem",color:y,letterSpacing:"1.8px",textTransform:"uppercase"},children:"Description"})]})}),u.jsx("tbody",{children:mm.map((R,z)=>u.jsxs("tr",{style:{borderBottom:z<mm.length-1?`1px solid ${m}`:"none"},onMouseEnter:C=>C.currentTarget.style.background=l?"#0c0c18":"#f4f4fb",onMouseLeave:C=>C.currentTarget.style.background="transparent",children:[u.jsx("td",{style:{padding:"15px 22px"},children:u.jsx("code",{style:{fontFamily:"monospace",fontSize:"0.85rem",color:"#FF9933",background:"rgba(255,153,51,0.08)",padding:"4px 10px",borderRadius:6,fontWeight:700,whiteSpace:"nowrap"},children:R.cmd})}),u.jsx("td",{style:{padding:"15px 22px",fontSize:"0.86rem",color:y,lineHeight:1.5},children:R.desc})]},z))})]})})]}),u.jsx("section",{style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{className:"plug-row",style:{maxWidth:960,margin:"0 auto",display:"flex",gap:56,alignItems:"center",flexWrap:"wrap"},children:[u.jsxs("div",{style:{flex:1,minWidth:260},children:[u.jsx(Ja,{dark:l,children:"Extensibility"}),u.jsxs("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.1rem)",fontWeight:900,color:v,marginTop:16,marginBottom:18,letterSpacing:"-1px",lineHeight:1.2},children:["Teach the Agent",u.jsx("br",{}),"New Superpowers"]}),u.jsxs("p",{style:{fontSize:"0.9rem",color:y,lineHeight:1.8,marginBottom:28},children:["Drop any ",u.jsx("code",{style:{background:l?"#1a1a24":"#e4e4f4",padding:"1px 6px",borderRadius:4,fontSize:"0.83rem"},children:".js"})," file into"," ",u.jsx("code",{style:{background:l?"#1a1a24":"#e4e4f4",padding:"1px 6px",borderRadius:4,fontSize:"0.83rem"},children:"~/SamarthyaBot_Files/plugins/"})," ","and the agent learns it on the fly — no restart required."]}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:["Hot-reload without restarting","Full async/await support","Type-safe parameter schema","Access to all memory APIs"].map((R,z)=>u.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.87rem",color:y},children:[u.jsx(Jx,{size:16,color:"#22c55e"})," ",R]},z))})]}),u.jsx("div",{style:{flex:1.2,minWidth:300},children:u.jsxs("div",{style:{...Xu(l,m)},children:[u.jsxs("div",{style:Qu(l),children:[u.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(R=>u.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:R}},R))}),u.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:k},children:"plugins/hello.js"}),u.jsx(ym,{text:gm,dark:l})]}),u.jsx("pre",{style:{padding:"22px 24px",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.8,overflowX:"auto",color:l?"#b0b0e0":"#3a3a6e"},children:gm})]})})]})}),u.jsxs("section",{id:"security",className:"section-padded",style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[u.jsx(Ja,{dark:l,children:"Privacy"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Zero-Trust. Local-First. Always."}),u.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:520,margin:"14px auto 0"},children:"Connecting an AI to your real-world data requires trust. That's why we built privacy in from the ground up."})]}),u.jsx("div",{className:"spec-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:20},children:[{icon:u.jsx(Xm,{size:22}),accent:"#6ee7f7",title:"Local Control Plane",desc:"The gateway runs entirely on YOUR machine. No SaaS, no subscription, no vendor lock-in."},{icon:u.jsx(uc,{size:22}),accent:"#22c55e",title:"Offline-Ready with Ollama",desc:"Swap to Ollama for 100% offline inference. Zero data ever reaches a remote server."},{icon:u.jsx(Rv,{size:22}),accent:"#a78bfa",title:"AES-256 Vault",desc:"All sensitive data including API keys are encrypted at rest with your own vault key."},{icon:u.jsx(dc,{size:22}),accent:"#FF9933",title:"Emergency Kill Switch",desc:"Stop all background agents instantly with a single command from the dashboard."}].map((R,z)=>u.jsxs("div",{className:"card-hover",style:{padding:"28px 24px",borderRadius:14,border:`1px solid ${m}`,background:b,display:"flex",flexDirection:"column"},children:[u.jsx("div",{style:{width:42,height:42,borderRadius:10,background:`${R.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:R.accent,marginBottom:16},children:R.icon}),u.jsx("h3",{style:{fontSize:"0.98rem",fontWeight:800,color:v,marginBottom:8},children:R.title}),u.jsx("p",{style:{fontSize:"0.85rem",color:y,lineHeight:1.7},children:R.desc})]},z))})]}),u.jsx("section",{style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[u.jsx(Ja,{dark:l,children:"Community"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Loved by Developers"})]}),u.jsx("div",{className:"test-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:20},children:W2.map((R,z)=>u.jsxs("div",{className:"card-hover",style:{padding:"26px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[u.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center",marginBottom:16},children:[u.jsx("img",{src:R.avatar,alt:R.name,style:{width:40,height:40,borderRadius:"50%",border:`2px solid ${m}`}}),u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:800,fontSize:"0.9rem",color:v},children:R.name}),u.jsx("div",{style:{fontSize:"0.76rem",color:k,marginTop:2},children:R.handle})]}),u.jsx("div",{style:{marginLeft:"auto",display:"flex",gap:2},children:[1,2,3,4,5].map(C=>u.jsx(Zh,{size:11,fill:"#FF9933",color:"#FF9933"},C))})]}),u.jsxs("p",{style:{fontSize:"0.9rem",color:y,lineHeight:1.75,fontStyle:"italic"},children:['"',R.text,'"']})]},z))})]})}),u.jsx("section",{style:{maxWidth:860,margin:"0 auto",padding:"96px 24px"},children:u.jsxs("div",{className:"cta-pad",style:{borderRadius:22,overflow:"hidden",position:"relative",padding:"76px 60px",textAlign:"center",background:l?"linear-gradient(135deg, #120a02 0%, #0c0c16 50%, #060818 100%)":"linear-gradient(135deg, #fff8f0 0%, #ffffff 50%, #f0f0ff 100%)",border:`1px solid ${l?"#2a1a0a":"#f0e8e0"}`},children:[u.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"radial-gradient(ellipse at 50% 0%, rgba(255,153,51,0.10) 0%, transparent 65%)",pointerEvents:"none"}}),u.jsxs("div",{style:{position:"relative"},children:[u.jsx("span",{style:{fontSize:"3rem",display:"block",marginBottom:18},children:"🇮🇳"}),u.jsxs("h2",{style:{fontSize:"clamp(1.8rem, 5vw, 2.8rem)",fontWeight:950,color:v,letterSpacing:"-2px",marginBottom:18,lineHeight:1.15},children:["Built for India's",u.jsx("br",{}),"Digital Future"]}),u.jsx("p",{style:{color:y,fontSize:"0.95rem",maxWidth:480,margin:"0 auto 40px",lineHeight:1.75},children:"Native support for GST portals, IRCTC, UPI, and Hinglish — the first Agentic OS designed from the ground up for the Indian digital highway."}),u.jsxs("div",{style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[u.jsxs("a",{href:"#install",onClick:R=>h(R,"#install"),className:"btn-primary",children:["Start Building ",u.jsx(Bx,{size:16})]}),u.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",className:"btn-secondary",children:[u.jsx(Zh,{size:16})," Star on GitHub"]})]})]})]})}),u.jsxs("footer",{style:{borderTop:`1px solid ${m}`,padding:"64px 24px 40px"},children:[u.jsxs("div",{className:"footer-inner",style:{maxWidth:1100,margin:"0 auto",display:"flex",justifyContent:"space-between",gap:40,flexWrap:"wrap",marginBottom:52},children:[u.jsxs("div",{style:{maxWidth:250},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,fontWeight:900,fontSize:"1.05rem",color:v,marginBottom:12},children:[u.jsx("span",{style:xm,children:"स"}),"Samarthya",u.jsx("span",{style:{color:"#FF9933"},children:"Bot"})]}),u.jsx("p",{style:{fontSize:"0.82rem",color:y,lineHeight:1.7},children:"Privacy-first agentic OS built for India's digital future. Run it locally, own your intelligence."}),u.jsxs("div",{style:{display:"flex",gap:8,marginTop:18},children:[u.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:vm(l,m),children:u.jsx(Hu,{size:14,color:y})}),u.jsx("a",{href:"https://www.npmjs.com/package/samarthya-bot",target:"_blank",rel:"noreferrer",style:vm(l,m),children:u.jsx(Vm,{size:14,color:y})})]})]}),u.jsx("div",{style:{display:"flex",gap:52,flexWrap:"wrap"},children:[{heading:"Product",links:[{label:"Features",href:"#features",scroll:!0},{label:"CLI Reference",href:"#cli",scroll:!0},{label:"Architecture",href:"#architecture",scroll:!0},{label:"Dashboard",href:"/dashboard",internal:!0}]},{heading:"Resources",links:[{label:"GitHub",href:"https://github.com/mebishnusahu0595/SamarthyaBot",ext:!0},{label:"NPM Package",href:"https://www.npmjs.com/package/samarthya-bot",ext:!0},{label:"Report a Bug",href:"https://github.com/mebishnusahu0595/SamarthyaBot/issues",ext:!0}]}].map((R,z)=>u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:800,fontSize:"0.72rem",letterSpacing:"2px",textTransform:"uppercase",color:k,marginBottom:18},children:R.heading}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:R.links.map((C,w)=>C.internal?u.jsx(ui,{to:C.href,style:{fontSize:"0.86rem",color:y,fontWeight:600},onMouseEnter:G=>G.target.style.color=v,onMouseLeave:G=>G.target.style.color=y,children:C.label},w):C.ext?u.jsxs("a",{href:C.href,target:"_blank",rel:"noreferrer",style:{fontSize:"0.86rem",color:y,fontWeight:600,display:"flex",alignItems:"center",gap:5},onMouseEnter:G=>G.currentTarget.style.color=v,onMouseLeave:G=>G.currentTarget.style.color=y,children:[C.label," ",u.jsx(rv,{size:11})]},w):u.jsx("a",{href:C.href,style:{fontSize:"0.86rem",color:y,fontWeight:600},onClick:G=>h(G,C.href),onMouseEnter:G=>G.target.style.color=v,onMouseLeave:G=>G.target.style.color=y,children:C.label},w))})]},z))})]}),u.jsxs("div",{style:{maxWidth:1100,margin:"0 auto",paddingTop:24,borderTop:`1px solid ${m}`,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:10},children:[u.jsxs("p",{style:{fontSize:"0.76rem",color:k},children:["© 2025 Samarthya Project · MIT License · Built with ❤️ in India by ",u.jsx("strong",{style:{color:y},children:"Bishnu Sahu"})]}),u.jsx("p",{style:{fontSize:"0.72rem",color:k},children:"Not affiliated with OpenAI or Anthropic 🇮🇳"})]})]})]})]})}const xm={width:34,height:34,borderRadius:8,background:"linear-gradient(135deg,#FF9933,#e8851d)",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:"1rem",fontWeight:900,color:"#fff",flexShrink:0},I2=()=>({display:"inline-flex",alignItems:"center",justifyContent:"center",width:72,height:72,borderRadius:18,background:"linear-gradient(135deg,#FF9933,#e8851d)",fontSize:"2.4rem",fontWeight:900,color:"#fff",boxShadow:"0 8px 32px rgba(255,153,51,0.35)"}),P2=(l,o,c)=>({position:"fixed",top:0,left:0,right:0,zIndex:999,background:o?l?"rgba(6,6,10,0.88)":"rgba(255,255,255,0.88)":"transparent",backdropFilter:o?"blur(18px) saturate(160%)":"none",borderBottom:o?`1px solid ${c}`:"1px solid transparent",transition:"all 0.3s ease"}),eS=()=>({maxWidth:1100,margin:"0 auto",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",height:66}),tS=(l,o)=>({width:36,height:36,borderRadius:9,border:`1.5px solid ${o}`,background:"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#888":"#555"}),aS=(l,o)=>({display:"inline-flex",alignItems:"center",gap:10,padding:"7px 16px",borderRadius:100,border:`1px solid ${o}`,background:l?"rgba(255,255,255,0.025)":"rgba(0,0,0,0.025)",marginBottom:30,cursor:"default"}),Xu=(l,o)=>({borderRadius:14,overflow:"hidden",border:`1px solid ${o}`,background:l?"#09090f":"#111"}),Qu=(l,o)=>({padding:"11px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:l?"rgba(255,255,255,0.02)":"rgba(255,255,255,0.04)",borderBottom:`1px solid ${l?"#151520":"#1e1e28"}`}),nS=l=>({background:"none",border:"none",cursor:"pointer",padding:"4px 6px",borderRadius:6,flexShrink:0,display:"flex",alignItems:"center"}),lS=()=>({display:"inline-flex",alignItems:"center",gap:8,padding:"5px 14px",borderRadius:100,background:"rgba(255,153,51,0.08)",border:"1px solid rgba(255,153,51,0.18)"}),vm=(l,o)=>({width:32,height:32,borderRadius:8,border:`1.5px solid ${o}`,display:"flex",alignItems:"center",justifyContent:"center",transition:"border-color 0.15s",background:"transparent"}),qr=[{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:""}]}],iS={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 rS({user:l}){const[o,c]=A.useState(qr.reduce((m,v)=>({...m,[v.id]:!0}),{})),[s,f]=A.useState("all"),p=m=>{c(v=>({...v,[m]:!v[m]}))},h=qr.map(m=>({...m,items:s==="all"?m.items:m.items.filter(v=>v.status===s)})).filter(m=>m.items.length>0),x=qr.flatMap(m=>m.items).filter(m=>m.status==="live").length,b=qr.flatMap(m=>m.items).filter(m=>m.status==="coming").length;return u.jsxs("div",{style:je.container,children:[u.jsxs("div",{style:je.header,children:[u.jsxs("h1",{style:je.title,children:[u.jsx(pi,{size:28,color:"#FF9933"}),"Integrations"]}),u.jsxs("p",{style:je.subtitle,children:[u.jsx("span",{style:je.countBadge,children:x})," live integrations with real tools & services.",u.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),u.jsx("div",{style:je.filterBar,children:[{key:"all",label:`All (${x+b})`},{key:"live",label:`✅ Live (${x})`},{key:"coming",label:`🔜 Coming (${b})`}].map(m=>u.jsx("button",{onClick:()=>f(m.key),style:{...je.filterBtn,...s===m.key?je.filterBtnActive:{}},children:m.label},m.key))}),h.map(m=>u.jsxs("div",{style:je.category,children:[u.jsxs("button",{onClick:()=>p(m.id),style:je.categoryHeader,children:[u.jsxs("div",{children:[u.jsx("h2",{style:je.categoryTitle,children:m.title}),u.jsx("p",{style:je.categorySubtitle,children:m.subtitle})]}),o[m.id]?u.jsx(Kx,{size:20}):u.jsx(Gx,{size:20})]}),o[m.id]&&u.jsx("div",{style:je.grid,children:m.items.map((v,y)=>{const k=iS[v.status];return u.jsxs("div",{style:je.card,children:[u.jsxs("div",{style:je.cardTop,children:[u.jsx("span",{style:je.cardIcon,children:v.icon}),u.jsxs("div",{style:je.cardInfo,children:[u.jsx("h3",{style:je.cardName,children:v.name}),u.jsx("p",{style:je.cardNameHi,children:v.nameHi})]}),v.tag&&u.jsx("span",{style:{...je.tag,background:v.tag.includes("Real")?"rgba(19,136,8,0.3)":v.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:v.tag.includes("Real")?"#4ade80":v.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:v.tag})]}),u.jsx("p",{style:je.cardDesc,children:v.desc}),u.jsx("div",{style:{...je.statusBadge,background:k.bg,color:k.color},children:k.label})]},y)})})]},m.id)),u.jsxs("div",{style:je.footerCTA,children:[u.jsx("h2",{style:je.ctaTitle,children:"🔧 Want to add more integrations?"}),u.jsxs("p",{style:je.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",u.jsx("code",{style:je.code,children:"toolRegistry.js"})]}),u.jsxs("div",{style:je.ctaButtons,children:[u.jsxs("div",{style:je.ctaCard,children:[u.jsx("span",{style:je.ctaIcon,children:"📧"}),u.jsx("strong",{children:"Email Setup"}),u.jsx("p",{style:je.ctaSmall,children:"Add Gmail App Password to .env"})]}),u.jsxs("div",{style:je.ctaCard,children:[u.jsx("span",{style:je.ctaIcon,children:"📱"}),u.jsx("strong",{children:"WhatsApp Setup"}),u.jsx("p",{style:je.ctaSmall,children:"Meta Business API token"})]}),u.jsxs("div",{style:je.ctaCard,children:[u.jsx("span",{style:je.ctaIcon,children:"🏠"}),u.jsx("strong",{children:"Offline Mode"}),u.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"}},Zu={folder:{icon:Gm,color:"#FF9933"},txt:{icon:$u,color:"#94a3b8"},md:{icon:$u,color:"#60a5fa"},json:{icon:Ur,color:"#fbbf24"},js:{icon:Ur,color:"#fbbf24"},html:{icon:Ur,color:"#f97316"},css:{icon:Ur,color:"#38bdf8"},png:{icon:Bu,color:"#a78bfa"},jpg:{icon:Bu,color:"#a78bfa"},jpeg:{icon:Bu,color:"#a78bfa"},pdf:{icon:Yh,color:"#ef4444"},default:{icon:Yh,color:"#64748b"}};function oS(l){return l.type==="folder"?Zu.folder:Zu[l.extension]||Zu.default}function bm(l){return l?l<1024?`${l} B`:l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1048576).toFixed(1)} MB`:"—"}function sS(l){return new Date(l).toLocaleString("en-IN",{timeZone:"Asia/Kolkata",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function uS({user:l}){const[o,c]=A.useState([]),[s,f]=A.useState(""),[p,h]=A.useState(!1),[x,b]=A.useState(null),[m,v]=A.useState(null),[y,k]=A.useState(!1),[R,z]=A.useState(""),[C,w]=A.useState(""),G=A.useRef(null);A.useEffect(()=>{I(),X()},[s]);const I=async()=>{h(!0),w("");try{const Z=await gn.list(s);c(Z.data.items||[])}catch(Z){w(Z.response?.data?.error||"Failed to load files"),c([])}finally{h(!1)}},X=async()=>{try{const Z=await gn.getStats();b(Z.data.stats)}catch{}},le=Z=>{Z.type==="folder"?f(Z.path):me(Z)},ue=()=>{const Z=s.split("/");Z.pop(),f(Z.join("/"))},me=async Z=>{try{const fe=await gn.read(Z.path);v(fe.data)}catch{w("Cannot preview this file")}},F=Z=>{const fe=gn.download(Z.path);window.open(fe,"_blank")},we=async Z=>{const fe=Z.type==="folder"?`Delete folder "${Z.name}" and all its contents?`:`Delete file "${Z.name}"?`;if(window.confirm(fe))try{await gn.deleteFile(Z.path),I(),X()}catch(xe){w(xe.response?.data?.error||"Delete failed")}},ke=async()=>{if(R.trim())try{await gn.mkdir(R.trim(),s),z(""),k(!1),I()}catch(Z){w(Z.response?.data?.error||"Failed to create folder")}},it=async Z=>{const fe=Z.target.files?.[0];if(!fe)return;const xe=new FileReader;xe.onload=async()=>{try{await gn.upload(fe.name,xe.result,s),I(),X()}catch(_e){w(_e.response?.data?.error||"Upload failed")}},fe.type.startsWith("text/")||["application/json","application/javascript"].includes(fe.type)?xe.readAsText(fe):xe.readAsDataURL(fe),Z.target.value=""},We=["My Stuff",...s.split("/").filter(Boolean)];return u.jsxs("div",{style:pe.container,children:[u.jsxs("div",{style:pe.header,children:[u.jsxs("div",{style:pe.headerLeft,children:[u.jsx(cc,{size:24,color:"#FF9933"}),u.jsx("h1",{style:pe.title,children:"My Stuff"}),x&&u.jsxs("span",{style:pe.statsTag,children:[x.fileCount," files · ",x.folderCount," folders · ",x.totalSizeFormatted]})]}),u.jsxs("div",{style:pe.headerActions,children:[u.jsxs("button",{onClick:()=>k(!0),style:pe.actionBtn,children:[u.jsx(Gh,{size:16})," New Folder"]}),u.jsxs("button",{onClick:()=>G.current?.click(),style:pe.actionBtn,children:[u.jsx(ab,{size:16})," Upload"]}),u.jsx("button",{onClick:I,style:pe.actionBtnIcon,children:u.jsx(Uv,{size:16})}),u.jsx("input",{ref:G,type:"file",onChange:it,style:{display:"none"}})]})]}),u.jsx("div",{style:pe.breadcrumb,children:We.map((Z,fe)=>u.jsxs(Ir.Fragment,{children:[fe>0&&u.jsx(ll,{size:14,color:"#64748b"}),u.jsx("button",{onClick:()=>{if(fe===0)f("");else{const xe=s.split("/").slice(0,fe).join("/");f(xe)}},style:{...pe.crumbItem,color:fe===We.length-1?"#FF9933":"#94a3b8"},children:Z})]},fe))}),y&&u.jsxs("div",{style:pe.newFolderRow,children:[u.jsx(Gh,{size:18,color:"#FF9933"}),u.jsx("input",{type:"text",value:R,onChange:Z=>z(Z.target.value),onKeyDown:Z=>Z.key==="Enter"&&ke(),placeholder:"Folder name...",style:pe.newFolderInput,autoFocus:!0}),u.jsx("button",{onClick:ke,style:pe.newFolderOk,children:"Create"}),u.jsx("button",{onClick:()=>{k(!1),z("")},style:pe.newFolderCancel,children:u.jsx(Kh,{size:16})})]}),C&&u.jsxs("div",{style:pe.error,children:["❌ ",C,u.jsx("button",{onClick:()=>w(""),style:pe.errorClose,children:"×"})]}),s&&u.jsxs("button",{onClick:ue,style:pe.backBtn,children:[u.jsx(Dx,{size:16})," Back"]}),p?u.jsx("div",{style:pe.loadingBox,children:"Loading..."}):o.length===0?u.jsxs("div",{style:pe.emptyBox,children:[u.jsx(Gm,{size:48,color:"#333"}),u.jsx("p",{style:pe.emptyText,children:"This folder is empty"}),u.jsx("p",{style:pe.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):u.jsx("div",{style:pe.fileGrid,children:o.map((Z,fe)=>{const xe=oS(Z),_e=xe.icon;return u.jsxs("div",{style:pe.fileCard,onDoubleClick:()=>le(Z),children:[u.jsxs("div",{style:pe.fileCardTop,onClick:()=>le(Z),children:[u.jsx(_e,{size:32,color:xe.color}),u.jsxs("div",{style:pe.fileInfo,children:[u.jsx("span",{style:pe.fileName,children:Z.name}),u.jsxs("span",{style:pe.fileMeta,children:[Z.type==="folder"?"Folder":bm(Z.size),Z.modified&&` · ${sS(Z.modified)}`]})]})]}),u.jsxs("div",{style:pe.fileActions,children:[Z.type==="file"&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>me(Z),style:pe.fileActionBtn,title:"Preview",children:u.jsx(Ym,{size:14})}),u.jsx("button",{onClick:()=>F(Z),style:pe.fileActionBtn,title:"Download",children:u.jsx(lv,{size:14})})]}),u.jsx("button",{onClick:()=>we(Z),style:{...pe.fileActionBtn,...pe.deleteBtn},title:"Delete",children:u.jsx(Qm,{size:14})})]})]},fe)})}),m&&u.jsx("div",{style:pe.modalOverlay,onClick:()=>v(null),children:u.jsxs("div",{style:pe.modal,onClick:Z=>Z.stopPropagation(),children:[u.jsxs("div",{style:pe.modalHeader,children:[u.jsxs("h3",{style:pe.modalTitle,children:[u.jsx($u,{size:18,color:"#FF9933"}),m.name]}),u.jsxs("span",{style:pe.modalMeta,children:[bm(m.size)," · ",m.extension?.toUpperCase()]}),u.jsx("button",{onClick:()=>v(null),style:pe.modalClose,children:u.jsx(Kh,{size:20})})]}),u.jsx("pre",{style:pe.previewContent,children:m.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"}},cS=({user:l,loading:o,updateUser:c,sidebarOpen:s,setSidebarOpen:f})=>{const p=Wt();return o&&p.pathname!=="/"?u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[u.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),u.jsx("span",{style:{color:"var(--text-muted)"},children:"Loading SamarthyaBot..."})]}):p.pathname==="/"?u.jsx($2,{}):u.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[u.jsx(cb,{user:l,isOpen:s,onToggle:()=>f(!s)}),u.jsx("main",{style:{flex:1,minHeight:"100vh"},children:u.jsxs(K1,{children:[u.jsx(aa,{path:"/dashboard",element:u.jsx(X2,{user:l})}),u.jsx(aa,{path:"/chat",element:u.jsx(fm,{user:l})}),u.jsx(aa,{path:"/chat/:id",element:u.jsx(fm,{user:l})}),u.jsx(aa,{path:"/settings",element:u.jsx(Q2,{user:l,onUpdate:c})}),u.jsx(aa,{path:"/audit",element:u.jsx(Z2,{user:l})}),u.jsx(aa,{path:"/tools",element:u.jsx(K2,{user:l})}),u.jsx(aa,{path:"/integrations",element:u.jsx(rS,{user:l})}),u.jsx(aa,{path:"/my-stuff",element:u.jsx(uS,{user:l})}),u.jsx(aa,{path:"*",element:u.jsx(Q1,{to:"/dashboard"})})]})})]})};function fS(){const[l,o]=A.useState(null),[c,s]=A.useState(!0),[f,p]=A.useState(!0);A.useEffect(()=>{(async()=>{try{const b=await xc.getProfile();o(b.data.user)}catch(b){console.error(b)}s(!1)})()},[]);const h=x=>{o(x)};return u.jsx(yx,{children:u.jsx(cS,{user:l,loading:c,updateUser:h,sidebarOpen:f,setSidebarOpen:p})})}Jy.createRoot(document.getElementById("root")).render(u.jsx(Ir.StrictMode,{children:u.jsx(fS,{})}));