samarthya-bot 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,40 +0,0 @@
1
- (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function u(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(f){if(f.ep)return;f.ep=!0;const h=u(f);fetch(f.href,h)}})();function sm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Tu={exports:{}},ni={};var yp;function Ag(){if(yp)return ni;yp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function u(s,f,h){var p=null;if(h!==void 0&&(p=""+h),f.key!==void 0&&(p=""+f.key),"key"in f){h={};for(var g in f)g!=="key"&&(h[g]=f[g])}else h=f;return f=h.ref,{$$typeof:i,type:s,key:p,ref:f!==void 0?f:null,props:h}}return ni.Fragment=o,ni.jsx=u,ni.jsxs=u,ni}var gp;function Rg(){return gp||(gp=1,Tu.exports=Ag()),Tu.exports}var c=Rg(),zu={exports:{}},ue={};var vp;function Tg(){if(vp)return ue;vp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),M=Symbol.iterator;function k(S){return S===null||typeof S!="object"?null:(S=M&&S[M]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,z={};function Q(S,B,G){this.props=S,this.context=B,this.refs=z,this.updater=G||T}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,B,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function P(){}P.prototype=Q.prototype;function X(S,B,G){this.props=S,this.context=B,this.refs=z,this.updater=G||T}var le=X.prototype=new P;le.constructor=X,w(le,Q.prototype),le.isPureReactComponent=!0;var ce=Array.isArray;function ye(){}var F={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function Be(S,B,G){var V=G.ref;return{$$typeof:i,type:S,key:B,ref:V!==void 0?V:null,props:G}}function rt(S,B){return Be(S.type,B,S.props)}function $e(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function K(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return B[G]})}var de=/\/+/g;function xe(S,B){return typeof S=="object"&&S!==null&&S.key!=null?K(""+S.key):B.toString(36)}function Oe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ye,ye):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function D(S,B,G,V,I){var se=typeof S;(se==="undefined"||se==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(se){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case i:case o:Te=!0;break;case b:return Te=S._init,D(Te(S._payload),B,G,V,I)}}if(Te)return I=I(S),Te=V===""?"."+xe(S,0):V,ce(I)?(G="",Te!=null&&(G=Te.replace(de,"$&/")+"/"),D(I,B,G,"",function(cl){return cl})):I!=null&&($e(I)&&(I=rt(I,G+(I.key==null||S&&S.key===I.key?"":(""+I.key).replace(de,"$&/")+"/")+Te)),B.push(I)),1;Te=0;var ot=V===""?".":V+":";if(ce(S))for(var Ke=0;Ke<S.length;Ke++)V=S[Ke],se=ot+xe(V,Ke),Te+=D(V,B,G,se,I);else if(Ke=k(S),typeof Ke=="function")for(S=Ke.call(S),Ke=0;!(V=S.next()).done;)V=V.value,se=ot+xe(V,Ke++),Te+=D(V,B,G,se,I);else if(se==="object"){if(typeof S.then=="function")return D(Oe(S),B,G,V,I);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Te}function Z(S,B,G){if(S==null)return S;var V=[],I=0;return D(S,V,"","",function(se){return B.call(G,se,I++)}),V}function ae(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var Re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},J={map:Z,forEach:function(S,B,G){Z(S,function(){B.apply(this,arguments)},G)},count:function(S){var B=0;return Z(S,function(){B++}),B},toArray:function(S){return Z(S,function(B){return B})||[]},only:function(S){if(!$e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ue.Activity=v,ue.Children=J,ue.Component=Q,ue.Fragment=u,ue.Profiler=f,ue.PureComponent=X,ue.StrictMode=s,ue.Suspense=x,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ue.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},ue.cache=function(S){return function(){return S.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(S,B,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=w({},S.props),I=S.key;if(B!=null)for(se in B.key!==void 0&&(I=""+B.key),B)!we.call(B,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&B.ref===void 0||(V[se]=B[se]);var se=arguments.length-2;if(se===1)V.children=G;else if(1<se){for(var Te=Array(se),ot=0;ot<se;ot++)Te[ot]=arguments[ot+2];V.children=Te}return Be(S.type,I,V)},ue.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ue.createElement=function(S,B,G){var V,I={},se=null;if(B!=null)for(V in B.key!==void 0&&(se=""+B.key),B)we.call(B,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(I[V]=B[V]);var Te=arguments.length-2;if(Te===1)I.children=G;else if(1<Te){for(var ot=Array(Te),Ke=0;Ke<Te;Ke++)ot[Ke]=arguments[Ke+2];I.children=ot}if(S&&S.defaultProps)for(V in Te=S.defaultProps,Te)I[V]===void 0&&(I[V]=Te[V]);return Be(S,se,I)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(S){return{$$typeof:g,render:S}},ue.isValidElement=$e,ue.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ae}},ue.memo=function(S,B){return{$$typeof:y,type:S,compare:B===void 0?null:B}},ue.startTransition=function(S){var B=F.T,G={};F.T=G;try{var V=S(),I=F.S;I!==null&&I(G,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(ye,Re)}catch(se){Re(se)}finally{B!==null&&G.types!==null&&(B.types=G.types),F.T=B}},ue.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ue.use=function(S){return F.H.use(S)},ue.useActionState=function(S,B,G){return F.H.useActionState(S,B,G)},ue.useCallback=function(S,B){return F.H.useCallback(S,B)},ue.useContext=function(S){return F.H.useContext(S)},ue.useDebugValue=function(){},ue.useDeferredValue=function(S,B){return F.H.useDeferredValue(S,B)},ue.useEffect=function(S,B){return F.H.useEffect(S,B)},ue.useEffectEvent=function(S){return F.H.useEffectEvent(S)},ue.useId=function(){return F.H.useId()},ue.useImperativeHandle=function(S,B,G){return F.H.useImperativeHandle(S,B,G)},ue.useInsertionEffect=function(S,B){return F.H.useInsertionEffect(S,B)},ue.useLayoutEffect=function(S,B){return F.H.useLayoutEffect(S,B)},ue.useMemo=function(S,B){return F.H.useMemo(S,B)},ue.useOptimistic=function(S,B){return F.H.useOptimistic(S,B)},ue.useReducer=function(S,B,G){return F.H.useReducer(S,B,G)},ue.useRef=function(S){return F.H.useRef(S)},ue.useState=function(S){return F.H.useState(S)},ue.useSyncExternalStore=function(S,B,G){return F.H.useSyncExternalStore(S,B,G)},ue.useTransition=function(){return F.H.useTransition()},ue.version="19.2.4",ue}var xp;function Iu(){return xp||(xp=1,zu.exports=Tg()),zu.exports}var A=Iu();const $r=sm(A);var Cu={exports:{}},li={},_u={exports:{}},wu={};var bp;function zg(){return bp||(bp=1,(function(i){function o(D,Z){var ae=D.length;D.push(Z);e:for(;0<ae;){var Re=ae-1>>>1,J=D[Re];if(0<f(J,Z))D[Re]=Z,D[ae]=J,ae=Re;else break e}}function u(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var Z=D[0],ae=D.pop();if(ae!==Z){D[0]=ae;e:for(var Re=0,J=D.length,S=J>>>1;Re<S;){var B=2*(Re+1)-1,G=D[B],V=B+1,I=D[V];if(0>f(G,ae))V<J&&0>f(I,G)?(D[Re]=I,D[V]=ae,Re=V):(D[Re]=G,D[B]=ae,Re=B);else if(V<J&&0>f(I,ae))D[Re]=I,D[V]=ae,Re=V;else break e}}return Z}function f(D,Z){var ae=D.sortIndex-Z.sortIndex;return ae!==0?ae:D.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();i.unstable_now=function(){return p.now()-g}}var x=[],y=[],b=1,v=null,M=3,k=!1,T=!1,w=!1,z=!1,Q=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function le(D){for(var Z=u(y);Z!==null;){if(Z.callback===null)s(y);else if(Z.startTime<=D)s(y),Z.sortIndex=Z.expirationTime,o(x,Z);else break;Z=u(y)}}function ce(D){if(w=!1,le(D),!T)if(u(x)!==null)T=!0,ye||(ye=!0,K());else{var Z=u(y);Z!==null&&Oe(ce,Z.startTime-D)}}var ye=!1,F=-1,we=5,Be=-1;function rt(){return z?!0:!(i.unstable_now()-Be<we)}function $e(){if(z=!1,ye){var D=i.unstable_now();Be=D;var Z=!0;try{e:{T=!1,w&&(w=!1,P(F),F=-1),k=!0;var ae=M;try{t:{for(le(D),v=u(x);v!==null&&!(v.expirationTime>D&&rt());){var Re=v.callback;if(typeof Re=="function"){v.callback=null,M=v.priorityLevel;var J=Re(v.expirationTime<=D);if(D=i.unstable_now(),typeof J=="function"){v.callback=J,le(D),Z=!0;break t}v===u(x)&&s(x),le(D)}else s(x);v=u(x)}if(v!==null)Z=!0;else{var S=u(y);S!==null&&Oe(ce,S.startTime-D),Z=!1}}break e}finally{v=null,M=ae,k=!1}Z=void 0}}finally{Z?K():ye=!1}}}var K;if(typeof X=="function")K=function(){X($e)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,xe=de.port2;de.port1.onmessage=$e,K=function(){xe.postMessage(null)}}else K=function(){Q($e,0)};function Oe(D,Z){F=Q(function(){D(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.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},i.unstable_getCurrentPriorityLevel=function(){return M},i.unstable_next=function(D){switch(M){case 1:case 2:case 3:var Z=3;break;default:Z=M}var ae=M;M=Z;try{return D()}finally{M=ae}},i.unstable_requestPaint=function(){z=!0},i.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ae=M;M=D;try{return Z()}finally{M=ae}},i.unstable_scheduleCallback=function(D,Z,ae){var Re=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Re+ae:Re):ae=Re,D){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ae+J,D={id:b++,callback:Z,priorityLevel:D,startTime:ae,expirationTime:J,sortIndex:-1},ae>Re?(D.sortIndex=ae,o(y,D),u(x)===null&&D===u(y)&&(w?(P(F),F=-1):w=!0,Oe(ce,ae-Re))):(D.sortIndex=J,o(x,D),T||k||(T=!0,ye||(ye=!0,K()))),D},i.unstable_shouldYield=rt,i.unstable_wrapCallback=function(D){var Z=M;return function(){var ae=M;M=Z;try{return D.apply(this,arguments)}finally{M=ae}}}})(wu)),wu}var Sp;function Cg(){return Sp||(Sp=1,_u.exports=zg()),_u.exports}var Ou={exports:{}},ht={};var jp;function _g(){if(jp)return ht;jp=1;var i=Iu();function o(x){var y="https://react.dev/errors/"+x;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+x+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(o(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(x,y,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:x,containerInfo:y,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ht.createPortal=function(x,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return h(x,y,null,b)},ht.flushSync=function(x){var y=p.T,b=s.p;try{if(p.T=null,s.p=2,x)return x()}finally{p.T=y,s.p=b,s.d.f()}},ht.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(x,y))},ht.prefetchDNS=function(x){typeof x=="string"&&s.d.D(x)},ht.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin),M=typeof y.integrity=="string"?y.integrity:void 0,k=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:M,fetchPriority:k}):b==="script"&&s.d.X(x,{crossOrigin:v,integrity:M,fetchPriority:k,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);s.d.M(x,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(x)},ht.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin);s.d.L(x,b,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ht.preloadModule=function(x,y){if(typeof x=="string")if(y){var b=g(y.as,y.crossOrigin);s.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(x)},ht.requestFormReset=function(x){s.d.r(x)},ht.unstable_batchedUpdates=function(x,y){return x(y)},ht.useFormState=function(x,y,b){return p.H.useFormState(x,y,b)},ht.useFormStatus=function(){return p.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var Ep;function wg(){if(Ep)return Ou.exports;Ep=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Ou.exports=_g(),Ou.exports}var Ap;function Og(){if(Ap)return li;Ap=1;var i=Cg(),o=Iu(),u=wg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(h(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return x(l),e;if(r===n)return x(l),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=l,n=r;else{for(var d=!1,m=l.child;m;){if(m===a){d=!0,a=l,n=r;break}if(m===n){d=!0,n=l,a=r;break}m=m.sibling}if(!d){for(m=r.child;m;){if(m===a){d=!0,a=r,n=l;break}if(m===n){d=!0,n=r,a=l;break}m=m.sibling}if(!d)throw Error(s(189))}}if(a.alternate!==n)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,M=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),$e=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=$e&&e[$e]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case Q:return"Profiler";case z:return"StrictMode";case ce:return"Suspense";case ye:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case X:return e.displayName||"Context";case P: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 Oe=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Re=[],J=-1;function S(e){return{current:e}}function B(e){0>J||(e.current=Re[J],Re[J]=null,J--)}function G(e,t){J++,Re[J]=e.current,e.current=t}var V=S(null),I=S(null),se=S(null),Te=S(null);function ot(e,t){switch(G(se,t),G(I,e),G(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lh(t),e=qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(V),G(V,e)}function Ke(){B(V),B(I),B(se)}function cl(e){e.memoizedState!==null&&G(Te,e);var t=V.current,a=qh(t,e.type);t!==a&&(G(I,e),G(V,a))}function vi(e){I.current===e&&(B(V),B(I)),Te.current===e&&(B(Te),Pl._currentValue=ae)}var oo,pc;function Wa(e){if(oo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);oo=t&&t[1]||"",pc=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+oo+e+pc}var so=!1;function uo(e,t){if(!e||so)return"";so=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(H){var O=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){O=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){O=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&O&&typeof H.stack=="string")return[H.stack,O.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],m=r[1];if(d&&m){var j=d.split(`
4
- `),_=m.split(`
5
- `);for(l=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;if(n===j.length||l===_.length)for(n=j.length-1,l=_.length-1;1<=n&&0<=l&&j[n]!==_[l];)l--;for(;1<=n&&0<=l;n--,l--)if(j[n]!==_[l]){if(n!==1||l!==1)do if(n--,l--,0>l||j[n]!==_[l]){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<=l);break}}}finally{so=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function t0(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return uo(e.type,!1);case 11:return uo(e.type.render,!1);case 1:return uo(e.type,!0);case 31:return Wa("Activity");default:return""}}function mc(e){try{var t="",a=null;do t+=t0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
- Error generating stack: `+n.message+`
8
- `+n.stack}}var co=Object.prototype.hasOwnProperty,fo=i.unstable_scheduleCallback,ho=i.unstable_cancelCallback,a0=i.unstable_shouldYield,n0=i.unstable_requestPaint,Rt=i.unstable_now,l0=i.unstable_getCurrentPriorityLevel,yc=i.unstable_ImmediatePriority,gc=i.unstable_UserBlockingPriority,xi=i.unstable_NormalPriority,i0=i.unstable_LowPriority,vc=i.unstable_IdlePriority,r0=i.log,o0=i.unstable_setDisableYieldValue,fl=null,Tt=null;function Ra(e){if(typeof r0=="function"&&o0(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(fl,e)}catch{}}var zt=Math.clz32?Math.clz32:c0,s0=Math.log,u0=Math.LN2;function c0(e){return e>>>=0,e===0?32:31-(s0(e)/u0|0)|0}var bi=256,Si=262144,ji=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 Ei(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?l=$a(n):(d&=m,d!==0?l=$a(d):a||(a=m&~e,a!==0&&(l=$a(a))))):(m=n&~r,m!==0?l=$a(m):d!==0?l=$a(d):a||(a=n&~e,a!==0&&(l=$a(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function dl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f0(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 xc(){var e=ji;return ji<<=1,(ji&62914560)===0&&(ji=4194304),e}function po(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function d0(e,t,a,n,l,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,j=e.expirationTimes,_=e.hiddenUpdates;for(a=d&~a;0<a;){var U=31-zt(a),q=1<<U;m[U]=0,j[U]=-1;var O=_[U];if(O!==null)for(_[U]=null,U=0;U<O.length;U++){var H=O[U];H!==null&&(H.lane&=-536870913)}a&=~q}n!==0&&bc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function bc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-zt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Sc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-zt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function jc(e,t){var a=t&-t;return a=(a&42)!==0?1:mo(a),(a&(e.suspendedLanes|t))!==0?0:a}function mo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ec(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:up(e.type))}function Ac(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Ta=Math.random().toString(36).slice(2),st="__reactFiber$"+Ta,yt="__reactProps$"+Ta,bn="__reactContainer$"+Ta,go="__reactEvents$"+Ta,h0="__reactListeners$"+Ta,p0="__reactHandles$"+Ta,Rc="__reactResources$"+Ta,pl="__reactMarker$"+Ta;function vo(e){delete e[st],delete e[yt],delete e[go],delete e[h0],delete e[p0]}function Sn(e){var t=e[st];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[st]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Kh(e);e!==null;){if(a=e[st])return a;e=Kh(e)}return t}e=a,a=e.parentNode}return null}function jn(e){if(e=e[st]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ml(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function En(e){var t=e[Rc];return t||(t=e[Rc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[pl]=!0}var Tc=new Set,zc={};function Ia(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(zc[e]=t,e=0;e<t.length;e++)Tc.add(t[e])}var m0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cc={},_c={};function y0(e){return co.call(_c,e)?!0:co.call(Cc,e)?!1:m0.test(e)?_c[e]=!0:(Cc[e]=!0,!1)}function Ai(e,t,a){if(y0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ri(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ra(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g0(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xo(e){if(!e._valueTracker){var t=wc(e)?"checked":"value";e._valueTracker=g0(e,t,""+e[t])}}function Oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=wc(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 v0=/[\n"\\]/g;function Ut(e){return e.replace(v0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bo(e,t,a,n,l,r,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?So(e,d,Ht(t)):a!=null?So(e,d,Ht(a)):n!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Ht(m):e.removeAttribute("name")}function Dc(e,t,a,n,l,r,d,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){xo(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),xo(e)}function So(e,t,a){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rn(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Ht(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Mc(e,t,a){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ht(a):""}function Bc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(Oe(n)){if(1<n.length)throw Error(s(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),xo(e)}function Tn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var x0=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 Nc(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||x0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Hc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var l in t)n=t[l],t.hasOwnProperty(l)&&a[l]!==n&&Nc(e,l,n)}else for(var r in t)t.hasOwnProperty(r)&&Nc(e,r,t[r])}function jo(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 b0=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"]]),S0=/^[\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 zi(e){return S0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Eo=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zn=null,Cn=null;function Uc(e){var t=jn(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(bo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var l=n[yt]||null;if(!l)throw Error(s(90));bo(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Oc(n)}break e;case"textarea":Mc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Rn(e,!!a.multiple,t,!1)}}}var Ro=!1;function kc(e,t,a){if(Ro)return e(t,a);Ro=!0;try{var n=e(t);return n}finally{if(Ro=!1,(zn!==null||Cn!==null)&&(pr(),zn&&(t=zn,e=Cn,Cn=zn=null,Uc(t),e)))for(t=0;t<e.length;t++)Uc(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[yt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),To=!1;if(sa)try{var gl={};Object.defineProperty(gl,"passive",{get:function(){To=!0}}),window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{To=!1}var za=null,zo=null,Ci=null;function Lc(){if(Ci)return Ci;var e,t=zo,a=t.length,n,l="value"in za?za.value:za.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===l[r-n];n++);return Ci=l.slice(e,1<n?1-n:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wi(){return!0}function qc(){return!1}function gt(e){function t(a,n,l,r,d){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?wi:qc,this.isPropagationStopped=qc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oi=gt(Pa),vl=v({},Pa,{view:0,detail:0}),j0=gt(vl),Co,_o,xl,Di=v({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xl&&(xl&&e.type==="mousemove"?(Co=e.screenX-xl.screenX,_o=e.screenY-xl.screenY):_o=Co=0,xl=e),Co)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Gc=gt(Di),E0=v({},Di,{dataTransfer:0}),A0=gt(E0),R0=v({},vl,{relatedTarget:0}),wo=gt(R0),T0=v({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),z0=gt(T0),C0=v({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_0=gt(C0),w0=v({},Pa,{data:0}),Yc=gt(w0),O0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function Oo(){return B0}var N0=v({},vl,{key:function(e){if(e.key){var t=O0[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"?D0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oo,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=gt(N0),U0=v({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vc=gt(U0),k0=v({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oo}),L0=gt(k0),q0=v({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),G0=gt(q0),Y0=v({},Di,{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}),V0=gt(Y0),X0=v({},Pa,{newState:0,oldState:0}),Q0=gt(X0),Z0=[9,13,27,32],Do=sa&&"CompositionEvent"in window,bl=null;sa&&"documentMode"in document&&(bl=document.documentMode);var K0=sa&&"TextEvent"in window&&!bl,Xc=sa&&(!Do||bl&&8<bl&&11>=bl),Qc=" ",Zc=!1;function Kc(e,t){switch(e){case"keyup":return Z0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function J0(e,t){switch(e){case"compositionend":return Jc(t);case"keypress":return t.which!==32?null:(Zc=!0,Qc);case"textInput":return e=t.data,e===Qc&&Zc?null:e;default:return null}}function F0(e,t){if(_n)return e==="compositionend"||!Do&&Kc(e,t)?(e=Lc(),Ci=zo=za=null,_n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xc&&t.locale!=="ko"?null:t.data;default:return null}}var W0={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 Fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!W0[e.type]:t==="textarea"}function Wc(e,t,a,n){zn?Cn?Cn.push(n):Cn=[n]:zn=n,t=Sr(t,"onChange"),0<t.length&&(a=new Oi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Sl=null,jl=null;function $0(e){Mh(e,0)}function Mi(e){var t=ml(e);if(Oc(t))return e}function $c(e,t){if(e==="change")return t}var Ic=!1;if(sa){var Mo;if(sa){var Bo="oninput"in document;if(!Bo){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),Bo=typeof Pc.oninput=="function"}Mo=Bo}else Mo=!1;Ic=Mo&&(!document.documentMode||9<document.documentMode)}function ef(){Sl&&(Sl.detachEvent("onpropertychange",tf),jl=Sl=null)}function tf(e){if(e.propertyName==="value"&&Mi(jl)){var t=[];Wc(t,jl,e,Ao(e)),kc($0,t)}}function I0(e,t,a){e==="focusin"?(ef(),Sl=t,jl=a,Sl.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function P0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(jl)}function ey(e,t){if(e==="click")return Mi(t)}function ty(e,t){if(e==="input"||e==="change")return Mi(t)}function ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:ay;function El(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!co.call(t,l)||!Ct(e[l],t[l]))return!1}return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nf(e,t){var a=af(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=af(a)}}function lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ti(e.document)}return t}function No(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ny=sa&&"documentMode"in document&&11>=document.documentMode,wn=null,Ho=null,Al=null,Uo=!1;function of(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uo||wn==null||wn!==Ti(n)||(n=wn,"selectionStart"in n&&No(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Al&&El(Al,n)||(Al=n,n=Sr(Ho,"onSelect"),0<n.length&&(t=new Oi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=wn)))}function en(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var On={animationend:en("Animation","AnimationEnd"),animationiteration:en("Animation","AnimationIteration"),animationstart:en("Animation","AnimationStart"),transitionrun:en("Transition","TransitionRun"),transitionstart:en("Transition","TransitionStart"),transitioncancel:en("Transition","TransitionCancel"),transitionend:en("Transition","TransitionEnd")},ko={},sf={};sa&&(sf=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(ko[e])return ko[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in sf)return ko[e]=t[a];return e}var uf=tn("animationend"),cf=tn("animationiteration"),ff=tn("animationstart"),ly=tn("transitionrun"),iy=tn("transitionstart"),ry=tn("transitioncancel"),df=tn("transitionend"),hf=new Map,Lo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Lo.push("scrollEnd");function Kt(e,t){hf.set(e,t),Ia(t,[e])}var Bi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kt=[],Dn=0,qo=0;function Ni(){for(var e=Dn,t=qo=Dn=0;t<e;){var a=kt[t];kt[t++]=null;var n=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var r=kt[t];if(kt[t++]=null,n!==null&&l!==null){var d=n.pending;d===null?l.next=l:(l.next=d.next,d.next=l),n.pending=l}r!==0&&pf(a,l,r)}}function Hi(e,t,a,n){kt[Dn++]=e,kt[Dn++]=t,kt[Dn++]=a,kt[Dn++]=n,qo|=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 pf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-zt(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Ui(e){if(50<Zl)throw Zl=0,Ws=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mn={};function oy(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,a,n){return new oy(e,t,a,n)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=_t(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function mf(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 ki(e,t,a,n,l,r){var d=0;if(n=e,typeof e=="function")Yo(e)&&(d=1);else if(typeof e=="string")d=dg(e,a,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=_t(31,a,t,l),e.elementType=Be,e.lanes=r,e;case w:return nn(a.children,l,r,t);case z:d=8,l|=24;break;case Q:return e=_t(12,a,t,l|2),e.elementType=Q,e.lanes=r,e;case ce:return e=_t(13,a,t,l),e.elementType=ce,e.lanes=r,e;case ye:return e=_t(19,a,t,l),e.elementType=ye,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case P: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=_t(d,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=_t(7,e,n,t),e.lanes=a,e}function Vo(e,t,a){return e=_t(6,e,null,t),e.lanes=a,e}function yf(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Xo(e,t,a){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gf=new WeakMap;function Lt(e,t){if(typeof e=="object"&&e!==null){var a=gf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:mc(t)},gf.set(e,t),t)}return{value:e,source:t,stack:mc(t)}}var Bn=[],Nn=0,Li=null,Rl=0,qt=[],Gt=0,Ca=null,Pt=1,ea="";function ca(e,t){Bn[Nn++]=Rl,Bn[Nn++]=Li,Li=e,Rl=t}function vf(e,t,a){qt[Gt++]=Pt,qt[Gt++]=ea,qt[Gt++]=Ca,Ca=e;var n=Pt;e=ea;var l=32-zt(n)-1;n&=~(1<<l),a+=1;var r=32-zt(t)+l;if(30<r){var d=l-l%5;r=(n&(1<<d)-1).toString(32),n>>=d,l-=d,Pt=1<<32-zt(t)+l|a<<l|n,ea=r+e}else Pt=1<<r|a<<l|n,ea=e}function Qo(e){e.return!==null&&(ca(e,1),vf(e,1,0))}function Zo(e){for(;e===Li;)Li=Bn[--Nn],Bn[Nn]=null,Rl=Bn[--Nn],Bn[Nn]=null;for(;e===Ca;)Ca=qt[--Gt],qt[Gt]=null,ea=qt[--Gt],qt[Gt]=null,Pt=qt[--Gt],qt[Gt]=null}function xf(e,t){qt[Gt++]=Pt,qt[Gt++]=ea,qt[Gt++]=Ca,Pt=t.id,ea=t.overflow,Ca=e}var ut=null,Ge=null,Ae=!1,_a=null,Yt=!1,Ko=Error(s(519));function wa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Lt(t,e)),Ko}function bf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[st]=e,t[yt]=n,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)ve(Jl[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),Dc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Bc(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||Uh(t.textContent,a)?(n.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),n.onScroll!=null&&ve("scroll",t),n.onScrollEnd!=null&&ve("scrollend",t),n.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||wa(e,!0)}function Sf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ut=ut.return}}function Hn(e){if(e!==ut)return!1;if(!Ae)return Sf(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||fu(e.type,e.memoizedProps)),a=!a),a&&Ge&&wa(e),Sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Zh(e)}else t===27?(t=Ge,Xa(e.type)?(e=yu,yu=null,Ge=e):Ge=t):Ge=ut?Xt(e.stateNode.nextSibling):null;return!0}function ln(){Ge=ut=null,Ae=!1}function Jo(){var e=_a;return e!==null&&(St===null?St=e:St.push.apply(St,e),_a=null),e}function Tl(e){_a===null?_a=[e]:_a.push(e)}var Fo=S(null),rn=null,fa=null;function Oa(e,t,a){G(Fo,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Fo.current,B(Fo)}function Wo(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function $o(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var d=l.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=l;for(var j=0;j<t.length;j++)if(m.context===t[j]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),Wo(r.return,a,e),n||(d=null);break e}r=m.next}}else if(l.tag===18){if(d=l.return,d===null)throw Error(s(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),Wo(d,a,e),d=null}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===e){d=null;break}if(l=d.sibling,l!==null){l.return=d.return,d=l;break}d=d.return}l=d}}function Un(e,t,a,n){e=null;for(var l=t,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var d=l.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var m=l.type;Ct(l.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(l===Te.current){if(d=l.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}l=l.return}e!==null&&$o(t,e,a,n),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){rn=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return jf(rn,e)}function Gi(e,t){return rn===null&&on(e),jf(e,t)}function jf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fa===null){if(e===null)throw Error(s(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return a}var sy=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()})}},uy=i.unstable_scheduleCallback,cy=i.unstable_NormalPriority,Ie={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new sy,data:new Map,refCount:0}}function zl(e){e.refCount--,e.refCount===0&&uy(cy,function(){e.controller.abort()})}var Cl=null,Po=0,kn=0,Ln=null;function fy(e,t){if(Cl===null){var a=Cl=[];Po=0,kn=au(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Po++,t.then(Ef,Ef),t}function Ef(){if(--Po===0&&Cl!==null){Ln!==null&&(Ln.status="fulfilled");var e=Cl;Cl=null,kn=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dy(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var Af=D.S;D.S=function(e,t){oh=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fy(e,t),Af!==null&&Af(e,t)};var sn=S(null);function es(){var e=sn.current;return e!==null?e:Le.pooledCache}function Yi(e,t){t===null?G(sn,sn.current):G(sn,t.pool)}function Rf(){var e=es();return e===null?null:{parent:Ie._currentValue,pool:e}}var qn=Error(s(460)),ts=Error(s(474)),Vi=Error(s(542)),Xi={then:function(){}};function Tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(oa,oa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e}throw cn=t,qn}}function un(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(cn=a,qn):a}}var cn=null;function Cf(){if(cn===null)throw Error(s(459));var e=cn;return cn=null,e}function _f(e){if(e===qn||e===Vi)throw Error(s(483))}var Gn=null,_l=0;function Qi(e){var t=_l;return _l+=1,Gn===null&&(Gn=[]),zf(Gn,e,t)}function wl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zi(e,t){throw t.$$typeof===M?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wf(e){function t(R,E){if(e){var C=R.deletions;C===null?(R.deletions=[E],R.flags|=16):C.push(E)}}function a(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function n(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function l(R,E){return R=ua(R,E),R.index=0,R.sibling=null,R}function r(R,E,C){return R.index=C,e?(C=R.alternate,C!==null?(C=C.index,C<E?(R.flags|=67108866,E):C):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function m(R,E,C,L){return E===null||E.tag!==6?(E=Vo(C,R.mode,L),E.return=R,E):(E=l(E,C),E.return=R,E)}function j(R,E,C,L){var ne=C.type;return ne===w?U(R,E,C.props.children,L,C.key):E!==null&&(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===E.type)?(E=l(E,C.props),wl(E,C),E.return=R,E):(E=ki(C.type,C.key,C.props,null,R.mode,L),wl(E,C),E.return=R,E)}function _(R,E,C,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==C.containerInfo||E.stateNode.implementation!==C.implementation?(E=Xo(C,R.mode,L),E.return=R,E):(E=l(E,C.children||[]),E.return=R,E)}function U(R,E,C,L,ne){return E===null||E.tag!==7?(E=nn(C,R.mode,L,ne),E.return=R,E):(E=l(E,C),E.return=R,E)}function q(R,E,C){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Vo(""+E,R.mode,C),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case k:return C=ki(E.type,E.key,E.props,null,R.mode,C),wl(C,E),C.return=R,C;case T:return E=Xo(E,R.mode,C),E.return=R,E;case we:return E=un(E),q(R,E,C)}if(Oe(E)||K(E))return E=nn(E,R.mode,C,null),E.return=R,E;if(typeof E.then=="function")return q(R,Qi(E),C);if(E.$$typeof===X)return q(R,Gi(R,E),C);Zi(R,E)}return null}function O(R,E,C,L){var ne=E!==null?E.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:m(R,E,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return C.key===ne?j(R,E,C,L):null;case T:return C.key===ne?_(R,E,C,L):null;case we:return C=un(C),O(R,E,C,L)}if(Oe(C)||K(C))return ne!==null?null:U(R,E,C,L,null);if(typeof C.then=="function")return O(R,E,Qi(C),L);if(C.$$typeof===X)return O(R,E,Gi(R,C),L);Zi(R,C)}return null}function H(R,E,C,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return R=R.get(C)||null,m(E,R,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case k:return R=R.get(L.key===null?C:L.key)||null,j(E,R,L,ne);case T:return R=R.get(L.key===null?C:L.key)||null,_(E,R,L,ne);case we:return L=un(L),H(R,E,C,L,ne)}if(Oe(L)||K(L))return R=R.get(C)||null,U(E,R,L,ne,null);if(typeof L.then=="function")return H(R,E,C,Qi(L),ne);if(L.$$typeof===X)return H(R,E,C,Gi(E,L),ne);Zi(E,L)}return null}function W(R,E,C,L){for(var ne=null,ze=null,te=E,he=E=0,Se=null;te!==null&&he<C.length;he++){te.index>he?(Se=te,te=null):Se=te.sibling;var Ce=O(R,te,C[he],L);if(Ce===null){te===null&&(te=Se);break}e&&te&&Ce.alternate===null&&t(R,te),E=r(Ce,E,he),ze===null?ne=Ce:ze.sibling=Ce,ze=Ce,te=Se}if(he===C.length)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;he<C.length;he++)te=q(R,C[he],L),te!==null&&(E=r(te,E,he),ze===null?ne=te:ze.sibling=te,ze=te);return Ae&&ca(R,he),ne}for(te=n(te);he<C.length;he++)Se=H(te,R,he,C[he],L),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?he:Se.key),E=r(Se,E,he),ze===null?ne=Se:ze.sibling=Se,ze=Se);return e&&te.forEach(function(Fa){return t(R,Fa)}),Ae&&ca(R,he),ne}function ie(R,E,C,L){if(C==null)throw Error(s(151));for(var ne=null,ze=null,te=E,he=E=0,Se=null,Ce=C.next();te!==null&&!Ce.done;he++,Ce=C.next()){te.index>he?(Se=te,te=null):Se=te.sibling;var Fa=O(R,te,Ce.value,L);if(Fa===null){te===null&&(te=Se);break}e&&te&&Fa.alternate===null&&t(R,te),E=r(Fa,E,he),ze===null?ne=Fa:ze.sibling=Fa,ze=Fa,te=Se}if(Ce.done)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;!Ce.done;he++,Ce=C.next())Ce=q(R,Ce.value,L),Ce!==null&&(E=r(Ce,E,he),ze===null?ne=Ce:ze.sibling=Ce,ze=Ce);return Ae&&ca(R,he),ne}for(te=n(te);!Ce.done;he++,Ce=C.next())Ce=H(te,R,he,Ce.value,L),Ce!==null&&(e&&Ce.alternate!==null&&te.delete(Ce.key===null?he:Ce.key),E=r(Ce,E,he),ze===null?ne=Ce:ze.sibling=Ce,ze=Ce);return e&&te.forEach(function(Eg){return t(R,Eg)}),Ae&&ca(R,he),ne}function Ue(R,E,C,L){if(typeof C=="object"&&C!==null&&C.type===w&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case k:e:{for(var ne=C.key;E!==null;){if(E.key===ne){if(ne=C.type,ne===w){if(E.tag===7){a(R,E.sibling),L=l(E,C.props.children),L.return=R,R=L;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===E.type){a(R,E.sibling),L=l(E,C.props),wl(L,C),L.return=R,R=L;break e}a(R,E);break}else t(R,E);E=E.sibling}C.type===w?(L=nn(C.props.children,R.mode,L,C.key),L.return=R,R=L):(L=ki(C.type,C.key,C.props,null,R.mode,L),wl(L,C),L.return=R,R=L)}return d(R);case T:e:{for(ne=C.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){a(R,E.sibling),L=l(E,C.children||[]),L.return=R,R=L;break e}else{a(R,E);break}else t(R,E);E=E.sibling}L=Xo(C,R.mode,L),L.return=R,R=L}return d(R);case we:return C=un(C),Ue(R,E,C,L)}if(Oe(C))return W(R,E,C,L);if(K(C)){if(ne=K(C),typeof ne!="function")throw Error(s(150));return C=ne.call(C),ie(R,E,C,L)}if(typeof C.then=="function")return Ue(R,E,Qi(C),L);if(C.$$typeof===X)return Ue(R,E,Gi(R,C),L);Zi(R,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,E!==null&&E.tag===6?(a(R,E.sibling),L=l(E,C),L.return=R,R=L):(a(R,E),L=Vo(C,R.mode,L),L.return=R,R=L),d(R)):a(R,E)}return function(R,E,C,L){try{_l=0;var ne=Ue(R,E,C,L);return Gn=null,ne}catch(te){if(te===qn||te===Vi)throw te;var ze=_t(29,te,null,R.mode);return ze.lanes=L,ze.return=R,ze}}}var fn=wf(!0),Of=wf(!1),Da=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ns(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(_e&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Ui(e),pf(e,null,a),t}return Hi(e,n,t,a),Ui(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Sc(e,a)}}function ls(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var is=!1;function Dl(){if(is){var e=Ln;if(e!==null)throw e}}function Ml(e,t,a,n){is=!1;var l=e.updateQueue;Da=!1;var r=l.firstBaseUpdate,d=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var j=m,_=j.next;j.next=null,d===null?r=_:d.next=_,d=j;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==d&&(m===null?U.firstBaseUpdate=_:m.next=_,U.lastBaseUpdate=j))}if(r!==null){var q=l.baseState;d=0,U=_=j=null,m=r;do{var O=m.lane&-536870913,H=O!==m.lane;if(H?(be&O)===O:(n&O)===O){O!==0&&O===kn&&(is=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var W=e,ie=m;O=t;var Ue=a;switch(ie.tag){case 1:if(W=ie.payload,typeof W=="function"){q=W.call(Ue,q,O);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ie.payload,O=typeof W=="function"?W.call(Ue,q,O):W,O==null)break e;q=v({},q,O);break e;case 2:Da=!0}}O=m.callback,O!==null&&(e.flags|=64,H&&(e.flags|=8192),H=l.callbacks,H===null?l.callbacks=[O]:H.push(O))}else H={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(_=U=H,j=q):U=U.next=H,d|=O;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;H=m,m=H.next,H.next=null,l.lastBaseUpdate=H,l.shared.pending=null}}while(!0);U===null&&(j=q),l.baseState=j,l.firstBaseUpdate=_,l.lastBaseUpdate=U,r===null&&(l.shared.lanes=0),La|=d,e.lanes=d,e.memoizedState=q}}function Df(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Mf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Df(a[e],t)}var Yn=S(null),Ki=S(0);function Bf(e,t){e=Sa,G(Ki,e),G(Yn,t),Sa=e|t.baseLanes}function rs(){G(Ki,Sa),G(Yn,Yn.current)}function os(){Sa=Ki.current,B(Yn),B(Ki)}var wt=S(null),Vt=null;function Na(e){var t=e.alternate;G(Je,Je.current&1),G(wt,e),Vt===null&&(t===null||Yn.current!==null||t.memoizedState!==null)&&(Vt=e)}function ss(e){G(Je,Je.current),G(wt,e),Vt===null&&(Vt=e)}function Nf(e){e.tag===22?(G(Je,Je.current),G(wt,e),Vt===null&&(Vt=e)):Ha()}function Ha(){G(Je,Je.current),G(wt,wt.current)}function Ot(e){B(wt),Vt===e&&(Vt=null),B(Je)}var Je=S(0);function Ji(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||pu(a)||mu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ha=0,fe=null,Ne=null,Pe=null,Fi=!1,Vn=!1,dn=!1,Wi=0,Bl=0,Xn=null,hy=0;function Qe(){throw Error(s(321))}function us(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function cs(e,t,a,n,l,r){return ha=r,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?vd:Rs,dn=!1,r=a(n,l),dn=!1,Vn&&(r=Uf(t,a,n,l)),Hf(e),r}function Hf(e){D.H=Ul;var t=Ne!==null&&Ne.next!==null;if(ha=0,Pe=Ne=fe=null,Fi=!1,Bl=0,Xn=null,t)throw Error(s(300));e===null||et||(e=e.dependencies,e!==null&&qi(e)&&(et=!0))}function Uf(e,t,a,n){fe=e;var l=0;do{if(Vn&&(Xn=null),Bl=0,Vn=!1,25<=l)throw Error(s(301));if(l+=1,Pe=Ne=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=xd,r=t(a,n)}while(Vn);return r}function py(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Nl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(fe.flags|=1024),t}function fs(){var e=Wi!==0;return Wi=0,e}function ds(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function hs(e){if(Fi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fi=!1}ha=0,Pe=Ne=fe=null,Vn=!1,Bl=Wi=0,Xn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?fe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Fe(){if(Ne===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Pe===null?fe.memoizedState:Pe.next;if(t!==null)Pe=t,Ne=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Pe===null?fe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function $i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(e){var t=Bl;return Bl+=1,Xn===null&&(Xn=[]),e=zf(Xn,e,t),t=fe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?vd:Rs),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nl(e);if(e.$$typeof===X)return ct(e)}throw Error(s(438,String(e)))}function ps(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=fe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=$i(),fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=rt;return t.index++,a}function pa(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=Fe();return ms(t,Ne,e)}function ms(e,t,a){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=a;var l=e.baseQueue,r=n.pending;if(r!==null){if(l!==null){var d=l.next;l.next=r.next,r.next=d}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var m=d=null,j=null,_=t,U=!1;do{var q=_.lane&-536870913;if(q!==_.lane?(be&q)===q:(ha&q)===q){var O=_.revertLane;if(O===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),q===kn&&(U=!0);else if((ha&O)===O){_=_.next,O===kn&&(U=!0);continue}else q={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},j===null?(m=j=q,d=r):j=j.next=q,fe.lanes|=O,La|=O;q=_.action,dn&&a(r,q),r=_.hasEagerState?_.eagerState:a(r,q)}else O={lane:q,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},j===null?(m=j=O,d=r):j=j.next=O,fe.lanes|=q,La|=q;_=_.next}while(_!==null&&_!==t);if(j===null?d=r:j.next=m,!Ct(r,e.memoizedState)&&(et=!0,U&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=j,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function ys(e){var t=Fe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,r=t.memoizedState;if(l!==null){a.pending=null;var d=l=l.next;do r=e(r,d.action),d=d.next;while(d!==l);Ct(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function kf(e,t,a){var n=fe,l=Fe(),r=Ae;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!Ct((Ne||l).memoizedState,a);if(d&&(l.memoizedState=a,et=!0),l=l.queue,xs(Gf.bind(null,n,l,e),[e]),l.getSnapshot!==t||d||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},qf.bind(null,n,l,a,t),null),Le===null)throw Error(s(349));r||(ha&127)!==0||Lf(n,t,a)}return a}function Lf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=$i(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qf(e,t,a,n){t.value=a,t.getSnapshot=n,Yf(t)&&Vf(e)}function Gf(e,t,a){return a(function(){Yf(t)&&Vf(e)})}function Yf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Vf(e){var t=an(e,2);t!==null&&jt(t,e,2)}function gs(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),dn){Ra(!0);try{a()}finally{Ra(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function Xf(e,t,a,n){return e.baseState=a,ms(e,Ne,typeof n=="function"?n:pa)}function my(e,t,a,n,l){if(ar(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};D.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Qf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Qf(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=D.T,d={};D.T=d;try{var m=a(l,n),j=D.S;j!==null&&j(d,m),Zf(e,t,m)}catch(_){vs(e,t,_)}finally{r!==null&&d.types!==null&&(r.types=d.types),D.T=r}}else try{r=a(l,n),Zf(e,t,r)}catch(_){vs(e,t,_)}}function Zf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Kf(e,t,n)},function(n){return vs(e,t,n)}):Kf(e,t,a)}function Kf(e,t,a){t.status="fulfilled",t.value=a,Jf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Qf(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,Jf(t),t=t.next;while(t!==n)}e.action=null}function Jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ff(e,t){return t}function Wf(e,t){if(Ae){var a=Le.formState;if(a!==null){e:{var n=fe;if(Ae){if(Ge){t:{for(var l=Ge,r=Yt;l.nodeType!==8;){if(!r){l=null;break t}if(l=Xt(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){Ge=Xt(l.nextSibling),n=l.data==="F!";break e}}wa(n)}n=!1}n&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ff,lastRenderedState:t},a.queue=n,a=md.bind(null,fe,n),n.dispatch=a,n=gs(!1),r=As.bind(null,fe,!1,n.queue),n=mt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=my.bind(null,fe,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function $f(e){var t=Fe();return If(t,Ne,e)}function If(e,t,a){if(t=ms(e,t,Ff)[0],e=Pi(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nl(t)}catch(d){throw d===qn?Vi:d}else n=t;t=Fe();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,Qn(9,{destroy:void 0},yy.bind(null,l,a),null)),[n,r,e]}function yy(e,t){e.action=t}function Pf(e){var t=Fe(),a=Ne;if(a!==null)return If(t,a,e);Fe(),t=t.memoizedState,a=Fe();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Qn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=fe.updateQueue,t===null&&(t=$i(),fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function ed(){return Fe().memoizedState}function er(e,t,a,n){var l=mt();fe.flags|=e,l.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function tr(e,t,a,n){var l=Fe();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&us(n,Ne.memoizedState.deps)?l.memoizedState=Qn(t,r,a,n):(fe.flags|=e,l.memoizedState=Qn(1|t,r,a,n))}function td(e,t){er(8390656,8,e,t)}function xs(e,t){tr(2048,8,e,t)}function gy(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=$i(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ad(e){var t=Fe().memoizedState;return gy({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nd(e,t){return tr(4,2,e,t)}function ld(e,t){return tr(4,4,e,t)}function id(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 rd(e,t,a){a=a!=null?a.concat([e]):null,tr(4,4,id.bind(null,t,e),a)}function bs(){}function od(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&us(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function sd(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&us(t,n[1]))return n[0];if(n=e(),dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n}function Ss(e,t,a){return a===void 0||(ha&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=uh(),fe.lanes|=e,La|=e,a)}function ud(e,t,a,n){return Ct(a,t)?a:Yn.current!==null?(e=Ss(e,a,n),Ct(e,t)||(et=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(be&261930)===0?(et=!0,e.memoizedState=a):(e=uh(),fe.lanes|=e,La|=e,t)}function cd(e,t,a,n,l){var r=Z.p;Z.p=r!==0&&8>r?r:8;var d=D.T,m={};D.T=m,As(e,!1,t,a);try{var j=l(),_=D.S;if(_!==null&&_(m,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var U=dy(j,n);Hl(e,t,U,Bt(e))}else Hl(e,t,n,Bt(e))}catch(q){Hl(e,t,{then:function(){},status:"rejected",reason:q},Bt())}finally{Z.p=r,d!==null&&m.types!==null&&(d.types=m.types),D.T=d}}function vy(){}function js(e,t,a,n){if(e.tag!==5)throw Error(s(476));var l=fd(e).queue;cd(e,l,t,ae,a===null?vy:function(){return dd(e),a(n)})}function fd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dd(e){var t=fd(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},Bt())}function Es(){return ct(Pl)}function hd(){return Fe().memoizedState}function pd(){return Fe().memoizedState}function xy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Bt();e=Ma(a);var n=Ba(t,e,a);n!==null&&(jt(n,t,a),Ol(n,t,a)),t={cache:Io()},e.payload=t;return}t=t.return}}function by(e,t,a){var n=Bt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ar(e)?yd(t,a):(a=Go(e,t,a,n),a!==null&&(jt(a,e,n),gd(a,t,n)))}function md(e,t,a){var n=Bt();Hl(e,t,a,n)}function Hl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ar(e))yd(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,m=r(d,a);if(l.hasEagerState=!0,l.eagerState=m,Ct(m,d))return Hi(e,t,l,0),Le===null&&Ni(),!1}catch{}if(a=Go(e,t,l,n),a!==null)return jt(a,e,n),gd(a,t,n),!0}return!1}function As(e,t,a,n){if(n={lane:2,revertLane:au(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(t)throw Error(s(479))}else t=Go(e,a,n,2),t!==null&&jt(t,e,2)}function ar(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function yd(e,t){Vn=Fi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Sc(e,a)}}var Ul={readContext:ct,use:Ii,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Ul.useEffectEvent=Qe;var vd={readContext:ct,use:Ii,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:td,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,er(4194308,4,id.bind(null,t,e),a)},useLayoutEffect:function(e,t){return er(4194308,4,e,t)},useInsertionEffect:function(e,t){er(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();if(dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var l=a(t);if(dn){Ra(!0);try{a(t)}finally{Ra(!1)}}}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=by.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=gs(e);var t=e.queue,a=md.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:bs,useDeferredValue:function(e,t){var a=mt();return Ss(a,e,t)},useTransition:function(){var e=gs(!1);return e=cd.bind(null,fe,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=fe,l=mt();if(Ae){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Le===null)throw Error(s(349));(be&127)!==0||Lf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,td(Gf.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},qf.bind(null,n,r,a,t),null),a},useId:function(){var e=mt(),t=Le.identifierPrefix;if(Ae){var a=ea,n=Pt;a=(n&~(1<<32-zt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=hy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Es,useFormState:Wf,useActionState:Wf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=As.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:ps,useCacheRefresh:function(){return mt().memoizedState=xy.bind(null,fe)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((_e&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Rs={readContext:ct,use:Ii,useCallback:od,useContext:ct,useEffect:xs,useImperativeHandle:rd,useInsertionEffect:nd,useLayoutEffect:ld,useMemo:sd,useReducer:Pi,useRef:ed,useState:function(){return Pi(pa)},useDebugValue:bs,useDeferredValue:function(e,t){var a=Fe();return ud(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Pi(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:kf,useId:hd,useHostTransitionStatus:Es,useFormState:$f,useActionState:$f,useOptimistic:function(e,t){var a=Fe();return Xf(a,Ne,e,t)},useMemoCache:ps,useCacheRefresh:pd};Rs.useEffectEvent=ad;var xd={readContext:ct,use:Ii,useCallback:od,useContext:ct,useEffect:xs,useImperativeHandle:rd,useInsertionEffect:nd,useLayoutEffect:ld,useMemo:sd,useReducer:ys,useRef:ed,useState:function(){return ys(pa)},useDebugValue:bs,useDeferredValue:function(e,t){var a=Fe();return Ne===null?Ss(a,e,t):ud(a,Ne.memoizedState,e,t)},useTransition:function(){var e=ys(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:kf,useId:hd,useHostTransitionStatus:Es,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var a=Fe();return Ne!==null?Xf(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ps,useCacheRefresh:pd};xd.useEffectEvent=ad;function Ts(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Bt(),l=Ma(n);l.payload=t,a!=null&&(l.callback=a),t=Ba(e,l,n),t!==null&&(jt(t,e,n),Ol(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Bt(),l=Ma(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Ba(e,l,n),t!==null&&(jt(t,e,n),Ol(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Bt(),n=Ma(a);n.tag=2,t!=null&&(n.callback=t),t=Ba(e,n,a),t!==null&&(jt(t,e,a),Ol(t,e,a))}};function bd(e,t,a,n,l,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!El(a,n)||!El(l,r):!0}function Sd(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&&zs.enqueueReplaceState(t,t.state,null)}function hn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function jd(e){Bi(e)}function Ed(e){console.error(e)}function Ad(e){Bi(e)}function nr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Cs(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){nr(e,t)},a}function Td(e){return e=Ma(e),e.tag=3,e}function zd(e,t,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var r=n.value;e.payload=function(){return l(r)},e.callback=function(){Rd(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Rd(t,a,n),typeof l!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function Sy(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Un(t,a,l,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?mr():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Xi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Ps(e,n,l)),!1;case 22:return a.flags|=65536,n===Xi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Ps(e,n,l)),!1}throw Error(s(435,a.tag))}return Ps(e,n,l),mr(),!1}if(Ae)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Ko&&(e=Error(s(422),{cause:n}),Tl(Lt(e,a)))):(n!==Ko&&(t=Error(s(423),{cause:n}),Tl(Lt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Lt(n,a),l=Cs(e.stateNode,n,l),ls(e,l),Ze!==4&&(Ze=2)),!1;var r=Error(s(520),{cause:n});if(r=Lt(r,a),Ql===null?Ql=[r]:Ql.push(r),Ze!==4&&(Ze=2),t===null)return!0;n=Lt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Cs(a.stateNode,n,e),ls(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(qa===null||!qa.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Td(l),zd(l,e,a,n),ls(a,l),!1}a=a.return}while(a!==null);return!1}var _s=Error(s(461)),et=!1;function ft(e,t,a,n){t.child=e===null?Of(t,null,a,n):fn(t,e.child,a,n)}function Cd(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return on(t),n=cs(e,t,a,d,r,l),m=fs(),e!==null&&!et?(ds(e,t,l),ma(e,t,l)):(Ae&&m&&Qo(t),t.flags|=1,ft(e,t,n,l),t.child)}function _d(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Yo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,wd(e,t,r,n,l)):(e=ki(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Us(e,l)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:El,a(d,n)&&e.ref===t.ref)return ma(e,t,l)}return t.flags|=1,e=ua(r,n),e.ref=t.ref,e.return=t,t.child=e}function wd(e,t,a,n,l){if(e!==null){var r=e.memoizedProps;if(El(r,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=r,Us(e,l))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,ma(e,t,l)}return ws(e,t,a,n,l)}function Od(e,t,a,n){var l=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~r}else n=0,t.child=null;return Dd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(t,r!==null?r.cachePool:null),r!==null?Bf(t,r):rs(),Nf(t);else return n=t.lanes=536870912,Dd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Yi(t,r.cachePool),Bf(t,r),Ha(),t.memoizedState=null):(e!==null&&Yi(t,null),rs(),Ha());return ft(e,t,l,a),t.child}function kl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dd(e,t,a,n,l){var r=es();return r=r===null?null:{parent:Ie._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yi(t,null),rs(),Nf(t),e!==null&&Un(e,t,n,!0),t.childLanes=l,null}function lr(e,t){return t=rr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Md(e,t,a){return fn(t,e.child,null,a),e=lr(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function jy(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(n.mode==="hidden")return e=lr(t,n),t.lanes=536870912,kl(null,e);if(ss(t),(e=Ge)?(e=Qh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,ut=t,Ge=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return lr(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(ss(t),l)if(t.flags&256)t.flags&=-257,t=Md(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(et||Un(e,t,a,!1),l=(a&e.childLanes)!==0,et||l){if(n=Le,n!==null&&(d=jc(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,an(e,d),jt(n,e,d),_s;mr(),t=Md(e,t,a)}else e=r.treeContext,Ge=Xt(d.nextSibling),ut=t,Ae=!0,_a=null,Yt=!1,e!==null&&xf(t,e),t=lr(t,n),t.flags|=4096;return t}return e=ua(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ir(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ws(e,t,a,n,l){return on(t),a=cs(e,t,a,n,void 0,l),n=fs(),e!==null&&!et?(ds(e,t,l),ma(e,t,l)):(Ae&&n&&Qo(t),t.flags|=1,ft(e,t,a,l),t.child)}function Bd(e,t,a,n,l,r){return on(t),t.updateQueue=null,a=Uf(t,n,a,l),Hf(e),n=fs(),e!==null&&!et?(ds(e,t,r),ma(e,t,r)):(Ae&&n&&Qo(t),t.flags|=1,ft(e,t,a,r),t.child)}function Nd(e,t,a,n,l){if(on(t),t.stateNode===null){var r=Mn,d=a.contextType;typeof d=="object"&&d!==null&&(r=ct(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=zs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},as(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ct(d):Mn,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&&zs.enqueueReplaceState(r,r.state,null),Ml(t,n,r,l),Dl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,j=hn(a,m);r.props=j;var _=r.context,U=a.contextType;d=Mn,typeof U=="object"&&U!==null&&(d=ct(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,U||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||_!==d)&&Sd(t,r,n,d),Da=!1;var O=t.memoizedState;r.state=O,Ml(t,n,r,l),Dl(),_=t.memoizedState,m||O!==_||Da?(typeof q=="function"&&(Ts(t,a,q,n),_=t.memoizedState),(j=Da||bd(t,a,j,n,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=_),r.props=n,r.state=_,r.context=d,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,ns(e,t),d=t.memoizedProps,U=hn(a,d),r.props=U,q=t.pendingProps,O=r.context,_=a.contextType,j=Mn,typeof _=="object"&&_!==null&&(j=ct(_)),m=a.getDerivedStateFromProps,(_=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||O!==j)&&Sd(t,r,n,j),Da=!1,O=t.memoizedState,r.state=O,Ml(t,n,r,l),Dl();var H=t.memoizedState;d!==q||O!==H||Da||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof m=="function"&&(Ts(t,a,m,n),H=t.memoizedState),(U=Da||bd(t,a,U,n,O,H,j)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(_||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&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===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&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,ir(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=fn(t,e.child,null,l),t.child=fn(t,null,a,l)):ft(e,t,a,l),t.memoizedState=r.state,e=t.child):e=ma(e,t,l),e}function Hd(e,t,a,n){return ln(),t.flags|=256,ft(e,t,a,n),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:Rf()}}function Ms(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Ud(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),d&&(l=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(l?Na(t):Ha(),(e=Ge)?(e=Qh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,ut=t,Ge=null)):e=null,e===null)throw wa(t);return mu(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(Ha(),l=t.mode,m=rr({mode:"hidden",children:m},l),n=nn(n,l,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Ds(a),n.childLanes=Ms(e,d,a),t.memoizedState=Os,kl(null,n)):(Na(t),Bs(t,m))}var j=e.memoizedState;if(j!==null&&(m=j.dehydrated,m!==null)){if(r)t.flags&256?(Na(t),t.flags&=-257,t=Ns(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),m=n.fallback,l=t.mode,n=rr({mode:"visible",children:n.children},l),m=nn(m,l,a,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,fn(t,e.child,null,a),n=t.child,n.memoizedState=Ds(a),n.childLanes=Ms(e,d,a),t.memoizedState=Os,t=kl(null,n));else if(Na(t),mu(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var _=d.dgst;d=_,n=Error(s(419)),n.stack="",n.digest=d,Tl({value:n,source:null,stack:null}),t=Ns(e,t,a)}else if(et||Un(e,t,a,!1),d=(a&e.childLanes)!==0,et||d){if(d=Le,d!==null&&(n=jc(d,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,an(e,n),jt(d,e,n),_s;pu(m)||mr(),t=Ns(e,t,a)}else pu(m)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Ge=Xt(m.nextSibling),ut=t,Ae=!0,_a=null,Yt=!1,e!==null&&xf(t,e),t=Bs(t,n.children),t.flags|=4096);return t}return l?(Ha(),m=n.fallback,l=t.mode,j=e.child,_=j.sibling,n=ua(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,_!==null?m=ua(_,m):(m=nn(m,l,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,kl(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ds(a):(l=m.cachePool,l!==null?(j=Ie._currentValue,l=l.parent!==j?{parent:j,pool:j}:l):l=Rf(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=Ms(e,d,a),t.memoizedState=Os,kl(e.child,n)):(Na(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Bs(e,t){return t=rr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rr(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Ns(e,t,a){return fn(t,e.child,null,a),e=Bs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Wo(e.return,t,a)}function Hs(e,t,a,n,l,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=l,d.treeForkCount=r)}function Ld(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var d=Je.current,m=(d&2)!==0;if(m?(d=d&1|2,t.flags|=128):d&=1,G(Je,d),ft(e,t,n,a),n=Ae?Rl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kd(e,a,t);else if(e.tag===19)kd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Ji(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Hs(t,!1,l,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ji(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}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 ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Un(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Us(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qi(e)))}function Ey(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),Oa(t,Ie,e.memoizedState.cache),ln();break;case 27:case 5:cl(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:Oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ss(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Ud(e,t,a):(Na(t),e=ma(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Un(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Ld(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),G(Je,Je.current),n)break;return null;case 22:return t.lanes=0,Od(e,t,a,t.pendingProps);case 24:Oa(t,Ie,e.memoizedState.cache)}return ma(e,t,a)}function qd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Us(e,a)&&(t.flags&128)===0)return et=!1,Ey(e,t,a);et=(e.flags&131072)!==0}else et=!1,Ae&&(t.flags&1048576)!==0&&vf(t,Rl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=un(t.elementType),t.type=e,typeof e=="function")Yo(e)?(n=hn(e,n),t.tag=1,t=Nd(null,t,e,n,a)):(t.tag=0,t=ws(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===le){t.tag=11,t=Cd(null,t,e,n,a);break e}else if(l===F){t.tag=14,t=_d(null,t,e,n,a);break e}}throw t=xe(e)||e,Error(s(306,t,""))}}return t;case 0:return ws(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=hn(n,t.pendingProps),Nd(e,t,n,l,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,ns(e,t),Ml(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Oa(t,Ie,n),n!==r.cache&&$o(t,[Ie],a,!0),Dl(),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=Hd(e,t,n,a);break e}else if(n!==l){l=Lt(Error(s(424)),t),Tl(l),t=Hd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=Xt(e.firstChild),ut=t,Ae=!0,_a=null,Yt=!0,a=Of(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===l){t=ma(e,t,a);break e}ft(e,t,n,a)}t=t.child}return t;case 26:return ir(e,t),e===null?(a=$h(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,n=jr(se.current).createElement(a),n[st]=t,n[yt]=e,dt(n,a,e),lt(n),t.stateNode=n):t.memoizedState=$h(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return cl(t),e===null&&Ae&&(n=t.stateNode=Jh(t.type,t.pendingProps,se.current),ut=t,Yt=!0,l=Ge,Xa(t.type)?(yu=l,Ge=Xt(n.firstChild)):Ge=l),ft(e,t,t.pendingProps.children,a),ir(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((l=n=Ge)&&(n=Py(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ut=t,Ge=Xt(n.firstChild),Yt=!1,l=!0):l=!1),l||wa(t)),cl(t),l=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,fu(l,r)?n=null:d!==null&&fu(l,d)&&(t.flags|=32),t.memoizedState!==null&&(l=cs(e,t,py,null,null,a),Pl._currentValue=l),ir(e,t),ft(e,t,n,a),t.child;case 6:return e===null&&Ae&&((e=a=Ge)&&(a=eg(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ut=t,Ge=null,e=!0):e=!1),e||wa(t)),null;case 13:return Ud(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fn(t,null,n,a):ft(e,t,n,a),t.child;case 11:return Cd(e,t,t.type,t.pendingProps,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Oa(t,t.type,n.value),ft(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,on(t),l=ct(l),n=n(l),t.flags|=1,ft(e,t,n,a),t.child;case 14:return _d(e,t,t.type,t.pendingProps,a);case 15:return wd(e,t,t.type,t.pendingProps,a);case 19:return Ld(e,t,a);case 31:return jy(e,t,a);case 22:return Od(e,t,a,t.pendingProps);case 24:return on(t),n=ct(Ie),e===null?(l=es(),l===null&&(l=Le,r=Io(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},as(t),Oa(t,Ie,l)):((e.lanes&a)!==0&&(ns(e,t),Ml(t,null,null,a),Dl()),l=e.memoizedState,r=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Oa(t,Ie,n)):(n=r.cache,Oa(t,Ie,n),n!==l.cache&&$o(t,[Ie],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ya(e){e.flags|=4}function ks(e,t,a,n,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(hh())e.flags|=8192;else throw cn=Xi,ts}else e.flags&=-16777217}function Gd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ap(t))if(hh())e.flags|=8192;else throw cn=Xi,ts}function or(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xc():536870912,e.lanes|=t,Fn|=t)}function Ll(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Ay(e,t,a){var n=t.pendingProps;switch(Zo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),da(Ie),Ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Hn(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ye(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ya(t),r!==null?(Ye(t),Gd(t,r)):(Ye(t),ks(t,l,null,n,a))):r?r!==e.memoizedState?(ya(t),Ye(t),Gd(t,r)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ya(t),Ye(t),ks(t,l,e,n,a)),null;case 27:if(vi(t),a=se.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=V.current,Hn(t)?bf(t):(e=Jh(l,n,a),t.stateNode=e,ya(t))}return Ye(t),null;case 5:if(vi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(r=V.current,Hn(t))bf(t);else{var d=jr(se.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(l,{is:n.is}):d.createElement(l)}}r[st]=t,r[yt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(dt(r,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ya(t)}}return Ye(t),ks(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=se.current,Hn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ut,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[st]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Uh(e.nodeValue,a)),e||wa(t,!0)}else e=jr(e).createTextNode(n),e[st]=t,t.stateNode=e}return Ye(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Hn(t),a!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else a=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Hn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(s(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));l[st]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),l=!1}else l=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==l&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),or(t,t.updateQueue),Ye(t),null);case 4:return Ke(),e===null&&ru(t.stateNode.containerInfo),Ye(t),null;case 10:return da(t.type),Ye(t),null;case 19:if(B(Je),n=t.memoizedState,n===null)return Ye(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)Ll(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ji(e),r!==null){for(t.flags|=128,Ll(n,!1),e=r.updateQueue,t.updateQueue=e,or(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)mf(a,e),a=a.sibling;return G(Je,Je.current&1|2),Ae&&ca(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Rt()>dr&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304)}else{if(!l)if(e=Ji(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,or(t,e),Ll(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Ae)return Ye(t),null}else 2*Rt()-n.renderingStartTime>dr&&a!==536870912&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Rt(),e.sibling=null,a=Je.current,G(Je,l?a&1|2:a&1),Ae&&ca(t,n.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ot(t),os(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),a=t.updateQueue,a!==null&&or(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(Ie),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ry(e,t){switch(Zo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(Ie),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vi(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Je),null;case 4:return Ke(),null;case 10:return da(t.type),null;case 22:case 23:return Ot(t),os(),e!==null&&B(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(Ie),null;case 25:return null;default:return null}}function Yd(e,t){switch(Zo(t),t.tag){case 3:da(Ie),Ke();break;case 26:case 27:case 5:vi(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:B(Je);break;case 10:da(t.type);break;case 22:case 23:Ot(t),os(),e!==null&&B(sn);break;case 24:da(Ie)}}function ql(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==l)}}catch(m){Me(t,t.return,m)}}function Ua(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){var d=n.inst,m=d.destroy;if(m!==void 0){d.destroy=void 0,l=t;var j=a,_=m;try{_()}catch(U){Me(l,j,U)}}}n=n.next}while(n!==r)}}catch(U){Me(t,t.return,U)}}function Vd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Mf(t,a)}catch(n){Me(e,e.return,n)}}}function Xd(e,t,a){a.props=hn(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(l){Me(e,t,l)}}function ta(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Me(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Me(e,t,l)}else a.current=null}function Qd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Me(e,e.return,l)}}function Ls(e,t,a){try{var n=e.stateNode;Ky(n,e.type,a,t),n[yt]=t}catch(l){Me(e,e.return,l)}}function Zd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gs(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=oa));else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Gs(e,t,a),e=e.sibling;e!==null;)Gs(e,t,a),e=e.sibling}function sr(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(sr(e,t,a),e=e.sibling;e!==null;)sr(e,t,a),e=e.sibling}function Kd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,n,a),t[st]=e,t[yt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,tt=!1,Ys=!1,Jd=typeof WeakSet=="function"?WeakSet:Set,it=null;function Ty(e,t){if(e=e.containerInfo,uu=_r,e=rf(e),No(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,m=-1,j=-1,_=0,U=0,q=e,O=null;t:for(;;){for(var H;q!==a||l!==0&&q.nodeType!==3||(m=d+l),q!==r||n!==0&&q.nodeType!==3||(j=d+n),q.nodeType===3&&(d+=q.nodeValue.length),(H=q.firstChild)!==null;)O=q,q=H;for(;;){if(q===e)break t;if(O===a&&++_===l&&(m=d),O===r&&++U===n&&(j=d),(H=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=H}a=m===-1||j===-1?null:{start:m,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(cu={focusedElem:e,selectionRange:a},_r=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,l=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var W=hn(a.type,l);e=n.getSnapshotBeforeUpdate(W,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(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,it=e;break}it=t.return}}function Fd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),n&4&&ql(5,a);break;case 1:if(xa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Me(a,a.return,d)}else{var l=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Me(a,a.return,d)}}n&64&&Vd(a),n&512&&Gl(a,a.return);break;case 3:if(xa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Mf(e,t)}catch(d){Me(a,a.return,d)}}break;case 27:t===null&&n&4&&Kd(a);case 26:case 5:xa(e,a),t===null&&n&4&&Qd(a),n&512&&Gl(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&Id(e,a);break;case 13:xa(e,a),n&4&&Pd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ny.bind(null,a),tg(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||tt,l=ga;var r=tt;ga=n,(tt=t)&&!r?ba(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ga=l,tt=r}break;case 30:break;default:xa(e,a)}}function Wd(e){var t=e.alternate;t!==null&&(e.alternate=null,Wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,vt=!1;function va(e,t,a){for(a=a.child;a!==null;)$d(e,t,a),a=a.sibling}function $d(e,t,a){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:tt||ta(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:tt||ta(a,t);var n=Ve,l=vt;Xa(a.type)&&(Ve=a.stateNode,vt=!1),va(e,t,a),Wl(a.stateNode),Ve=n,vt=l;break;case 5:tt||ta(a,t);case 6:if(n=Ve,l=vt,Ve=null,va(e,t,a),Ve=n,vt=l,Ve!==null)if(vt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Ve.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Ve!==null&&(vt?(e=Ve,Vh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):Vh(Ve,a.stateNode));break;case 4:n=Ve,l=vt,Ve=a.stateNode.containerInfo,vt=!0,va(e,t,a),Ve=n,vt=l;break;case 0:case 11:case 14:case 15:Ua(2,a,t),tt||Ua(4,a,t),va(e,t,a);break;case 1:tt||(ta(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Xd(a,t,n)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:tt=(n=tt)||a.memoizedState!==null,va(e,t,a),tt=n;break;default:va(e,t,a)}}function Id(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 Pd(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 zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jd),t;default:throw Error(s(435,e.tag))}}function ur(e,t){var a=zy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=Hy.bind(null,e,n);n.then(l,l)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 27:if(Xa(m.type)){Ve=m.stateNode,vt=!1;break e}break;case 5:Ve=m.stateNode,vt=!1;break e;case 3:case 4:Ve=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(Ve===null)throw Error(s(160));$d(r,d,l),Ve=null,vt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)eh(t,e),t=t.sibling}var Jt=null;function eh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),bt(e),n&4&&(Ua(3,e,e.return),ql(3,e),Ua(5,e,e.return));break;case 1:xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),n&64&&ga&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=Jt;if(xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":r=l.getElementsByTagName("title")[0],(!r||r[pl]||r[st]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(n),l.head.insertBefore(r,l.querySelector("head > title"))),dt(r,n,a),r[st]=e,lt(r),n=r;break e;case"link":var d=ep("link","href",l).get(n+(a.href||""));if(d){for(var m=0;m<d.length;m++)if(r=d[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(m,1);break t}}r=l.createElement(n),dt(r,n,a),l.head.appendChild(r);break;case"meta":if(d=ep("meta","content",l).get(n+(a.content||""))){for(m=0;m<d.length;m++)if(r=d[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(m,1);break t}}r=l.createElement(n),dt(r,n,a),l.head.appendChild(r);break;default:throw Error(s(468,n))}r[st]=e,lt(r),n=r}e.stateNode=n}else tp(l,e.type,e.stateNode);else e.stateNode=Ph(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?tp(l,e.type,e.stateNode):Ph(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ls(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),a!==null&&n&4&&Ls(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),e.flags&32){l=e.stateNode;try{Tn(l,"")}catch(W){Me(e,e.return,W)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,Ls(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Ys=!0);break;case 6:if(xt(t,e),bt(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(W){Me(e,e.return,W)}}break;case 3:if(Rr=null,l=Jt,Jt=Er(t.containerInfo),xt(t,e),Jt=l,bt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(W){Me(e,e.return,W)}Ys&&(Ys=!1,th(e));break;case 4:n=Jt,Jt=Er(e.stateNode.containerInfo),xt(t,e),bt(e),Jt=n;break;case 12:xt(t,e),bt(e);break;case 31:xt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 13:xt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(fr=Rt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 22:l=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,_=ga,U=tt;if(ga=_||l,tt=U||j,xt(t,e),tt=U,ga=_,bt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||j||ga||tt||pn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,l)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=j.stateNode;var q=j.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(W){Me(j,j.return,W)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=l?"":j.memoizedProps}catch(W){Me(j,j.return,W)}}}else if(t.tag===18){if(a===null){j=t;try{var H=j.stateNode;l?Xh(H,!0):Xh(j.stateNode,!1)}catch(W){Me(j,j.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ur(e,a))));break;case 19:xt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 30:break;case 21:break;default:xt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Zd(n)){a=n;break}n=n.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var l=a.stateNode,r=qs(e);sr(e,r,l);break;case 5:var d=a.stateNode;a.flags&32&&(Tn(d,""),a.flags&=-33);var m=qs(e);sr(e,m,d);break;case 3:case 4:var j=a.stateNode.containerInfo,_=qs(e);Gs(e,_,j);break;default:throw Error(s(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;th(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;)Fd(e,t.alternate,t),t=t.sibling}function pn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),pn(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xd(t,t.return,a),pn(t);break;case 27:Wl(t.stateNode);case 26:case 5:ta(t,t.return),pn(t);break;case 22:t.memoizedState===null&&pn(t);break;case 30:pn(t);break;default:pn(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:ba(l,r,a),ql(4,r);break;case 1:if(ba(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(_){Me(n,n.return,_)}if(n=r,l=n.updateQueue,l!==null){var m=n.stateNode;try{var j=l.shared.hiddenCallbacks;if(j!==null)for(l.shared.hiddenCallbacks=null,l=0;l<j.length;l++)Df(j[l],m)}catch(_){Me(n,n.return,_)}}a&&d&64&&Vd(r),Gl(r,r.return);break;case 27:Kd(r);case 26:case 5:ba(l,r,a),a&&n===null&&d&4&&Qd(r),Gl(r,r.return);break;case 12:ba(l,r,a);break;case 31:ba(l,r,a),a&&d&4&&Id(l,r);break;case 13:ba(l,r,a),a&&d&4&&Pd(l,r);break;case 22:r.memoizedState===null&&ba(l,r,a),Gl(r,r.return);break;case 30:break;default:ba(l,r,a)}t=t.sibling}}function Vs(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&zl(a))}function Xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zl(e))}function Ft(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ah(e,t,a,n),t=t.sibling}function ah(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,a,n),l&2048&&ql(9,t);break;case 1:Ft(e,t,a,n);break;case 3:Ft(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zl(e)));break;case 12:if(l&2048){Ft(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,m=r.onPostCommit;typeof m=="function"&&m(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(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):Yl(e,t):r._visibility&2?Ft(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Vs(d,t);break;case 24:Ft(e,t,a,n),l&2048&&Xs(t.alternate,t);break;default:Ft(e,t,a,n)}}function Zn(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,m=a,j=n,_=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(r,d,m,j,l),ql(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?Zn(r,d,m,j,l):Yl(r,d):(U._visibility|=2,Zn(r,d,m,j,l)),l&&_&2048&&Vs(d.alternate,d);break;case 24:Zn(r,d,m,j,l),l&&_&2048&&Xs(d.alternate,d);break;default:Zn(r,d,m,j,l)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:Yl(a,n),l&2048&&Vs(n.alternate,n);break;case 24:Yl(a,n),l&2048&&Xs(n.alternate,n);break;default:Yl(a,n)}t=t.sibling}}var Vl=8192;function Kn(e,t,a){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)nh(e,t,a),e=e.sibling}function nh(e,t,a){switch(e.tag){case 26:Kn(e,t,a),e.flags&Vl&&e.memoizedState!==null&&hg(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:Kn(e,t,a);break;case 3:case 4:var n=Jt;Jt=Er(e.stateNode.containerInfo),Kn(e,t,a),Jt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Vl,Vl=16777216,Kn(e,t,a),Vl=n):Kn(e,t,a));break;default:Kn(e,t,a)}}function lh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,rh(n,e)}lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(e),e=e.sibling}function ih(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cr(e)):Xl(e);break;default:Xl(e)}}function cr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,rh(n,e)}lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),cr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cr(t));break;default:cr(t)}e=e.sibling}}function rh(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:Ua(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:zl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,it=n;else e:for(a=e;it!==null;){n=it;var l=n.sibling,r=n.return;if(Wd(n),n===a){it=null;break e}if(l!==null){l.return=r,it=l;break e}it=r}}}var Cy={getCacheForType:function(e){var t=ct(Ie),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct(Ie).controller.signal}},_y=typeof WeakMap=="function"?WeakMap:Map,_e=0,Le=null,ge=null,be=0,De=0,Dt=null,ka=!1,Jn=!1,Qs=!1,Sa=0,Ze=0,La=0,mn=0,Zs=0,Mt=0,Fn=0,Ql=null,St=null,Ks=!1,fr=0,oh=0,dr=1/0,hr=null,qa=null,at=0,Ga=null,Wn=null,ja=0,Js=0,Fs=null,sh=null,Zl=0,Ws=null;function Bt(){return(_e&2)!==0&&be!==0?be&-be:D.T!==null?au():Ec()}function uh(){if(Mt===0)if((be&536870912)===0||Ae){var e=Si;Si<<=1,(Si&3932160)===0&&(Si=262144),Mt=e}else Mt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Mt}function jt(e,t,a){(e===Le&&(De===2||De===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ya(e,be,Mt,!1)),hl(e,a),((_e&2)===0||e!==Le)&&(e===Le&&((_e&2)===0&&(mn|=a),Ze===4&&Ya(e,be,Mt,!1)),aa(e))}function ch(e,t,a){if((_e&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dl(e,t),l=n?Dy(e,t):Is(e,t,!0),r=n;do{if(l===0){Jn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!wy(a)){l=Is(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var m=e;l=Ql;var j=m.current.memoizedState.isDehydrated;if(j&&($n(m,d).flags|=256),d=Is(m,d,!1),d!==2){if(Qs&&!j){m.errorRecoveryDisabledLanes|=r,mn|=r,l=4;break e}r=St,St=l,r!==null&&(St===null?St=r:St.push.apply(St,r))}l=d}if(r=!1,l!==2)continue}}if(l===1){$n(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,r=l,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,Mt,!ka);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(l=fr+300-Rt(),10<l)){if(Ya(n,t,Mt,!ka),Ei(n,0,!0)!==0)break e;ja=t,n.timeoutHandle=Gh(fh.bind(null,n,a,St,hr,Ks,t,Mt,mn,Fn,ka,r,"Throttled",-0,0),l);break e}fh(n,a,St,hr,Ks,t,Mt,mn,Fn,ka,r,null,-0,0)}}break}while(!0);aa(e)}function fh(e,t,a,n,l,r,d,m,j,_,U,q,O,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:oa},nh(t,r,q);var W=(r&62914560)===r?fr-Rt():(r&4194048)===r?oh-Rt():0;if(W=pg(q,W),W!==null){ja=r,e.cancelPendingCommit=W(xh.bind(null,e,t,r,a,n,l,d,m,j,U,q,null,O,H)),Ya(e,r,d,!_);return}}xh(e,t,r,a,n,l,d,m,j)}function wy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],r=l.getSnapshot;l=l.value;try{if(!Ct(r(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ya(e,t,a,n){t&=~Zs,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-zt(l),d=1<<r;n[r]=-1,l&=~d}a!==0&&bc(e,a,t)}function pr(){return(_e&6)===0?(Kl(0),!1):!0}function $s(){if(ge!==null){if(De===0)var e=ge.return;else e=ge,fa=rn=null,hs(e),Gn=null,_l=0,e=ge;for(;e!==null;)Yd(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Wy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,$s(),Le=e,ge=a=ua(e.current,null),be=t,De=0,Dt=null,ka=!1,Jn=dl(e,t),Qs=!1,Fn=Mt=Zs=mn=La=Ze=0,St=Ql=null,Ks=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-zt(n),r=1<<l;t|=e[l],n&=~r}return Sa=t,Ni(),a}function dh(e,t){fe=null,D.H=Ul,t===qn||t===Vi?(t=Cf(),De=3):t===ts?(t=Cf(),De=4):De=t===_s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,ge===null&&(Ze=1,nr(e,Lt(t,e.current)))}function hh(){var e=wt.current;return e===null?!0:(be&4194048)===be?Vt===null:(be&62914560)===be||(be&536870912)!==0?e===Vt:!1}function ph(){var e=D.H;return D.H=Ul,e===null?Ul:e}function mh(){var e=D.A;return D.A=Cy,e}function mr(){Ze=4,ka||(be&4194048)!==be&&wt.current!==null||(Jn=!0),(La&134217727)===0&&(mn&134217727)===0||Le===null||Ya(Le,be,Mt,!1)}function Is(e,t,a){var n=_e;_e|=2;var l=ph(),r=mh();(Le!==e||be!==t)&&(hr=null,$n(e,t)),t=!1;var d=Ze;e:do try{if(De!==0&&ge!==null){var m=ge,j=Dt;switch(De){case 8:$s(),d=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var _=De;if(De=0,Dt=null,In(e,m,j,_),a&&Jn){d=0;break e}break;default:_=De,De=0,Dt=null,In(e,m,j,_)}}Oy(),d=Ze;break}catch(U){dh(e,U)}while(!0);return t&&e.shellSuspendCounter++,fa=rn=null,_e=n,D.H=l,D.A=r,ge===null&&(Le=null,be=0,Ni()),d}function Oy(){for(;ge!==null;)yh(ge)}function Dy(e,t){var a=_e;_e|=2;var n=ph(),l=mh();Le!==e||be!==t?(hr=null,dr=Rt()+500,$n(e,t)):Jn=dl(e,t);e:do try{if(De!==0&&ge!==null){t=ge;var r=Dt;t:switch(De){case 1:De=0,Dt=null,In(e,t,r,1);break;case 2:case 9:if(Tf(r)){De=0,Dt=null,gh(t);break}t=function(){De!==2&&De!==9||Le!==e||(De=7),aa(e)},r.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Tf(r)?(De=0,Dt=null,gh(t)):(De=0,Dt=null,In(e,t,r,7));break;case 5:var d=null;switch(ge.tag){case 26:d=ge.memoizedState;case 5:case 27:var m=ge;if(d?ap(d):m.stateNode.complete){De=0,Dt=null;var j=m.sibling;if(j!==null)ge=j;else{var _=m.return;_!==null?(ge=_,yr(_)):ge=null}break t}}De=0,Dt=null,In(e,t,r,5);break;case 6:De=0,Dt=null,In(e,t,r,6);break;case 8:$s(),Ze=6;break e;default:throw Error(s(462))}}My();break}catch(U){dh(e,U)}while(!0);return fa=rn=null,D.H=n,D.A=l,_e=a,ge!==null?0:(Le=null,be=0,Ni(),Ze)}function My(){for(;ge!==null&&!a0();)yh(ge)}function yh(e){var t=qd(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function gh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Bd(a,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Bd(a,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:hs(t);default:Yd(a,t),t=ge=mf(t,Sa),t=qd(a,t,Sa)}e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function In(e,t,a,n){fa=rn=null,hs(t),Gn=null,_l=0;var l=t.return;try{if(Sy(e,l,t,a,be)){Ze=1,nr(e,Lt(a,e.current)),ge=null;return}}catch(r){if(l!==null)throw ge=l,r;Ze=1,nr(e,Lt(a,e.current)),ge=null;return}t.flags&32768?(Ae||n===1?e=!0:Jn||(be&536870912)!==0?e=!1:(ka=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),vh(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){vh(t,ka);return}e=t.return;var a=Ay(t.alternate,t,Sa);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function vh(e,t){do{var a=Ry(e.alternate,e);if(a!==null){a.flags&=32767,ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=a}while(e!==null);Ze=6,ge=null}function xh(e,t,a,n,l,r,d,m,j){e.cancelPendingCommit=null;do gr();while(at!==0);if((_e&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=qo,d0(e,a,r,d,m,j),e===Le&&(ge=Le=null,be=0),Wn=t,Ga=e,ja=a,Js=r,Fs=l,sh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uy(xi,function(){return Ah(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,l=Z.p,Z.p=2,d=_e,_e|=4;try{Ty(e,t,a)}finally{_e=d,Z.p=l,D.T=n}}at=1,bh(),Sh(),jh()}}function bh(){if(at===1){at=0;var e=Ga,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=Z.p;Z.p=2;var l=_e;_e|=4;try{eh(t,e);var r=cu,d=rf(e.containerInfo),m=r.focusedElem,j=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&lf(m.ownerDocument.documentElement,m)){if(j!==null&&No(m)){var _=j.start,U=j.end;if(U===void 0&&(U=_),"selectionStart"in m)m.selectionStart=_,m.selectionEnd=Math.min(U,m.value.length);else{var q=m.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var H=O.getSelection(),W=m.textContent.length,ie=Math.min(j.start,W),Ue=j.end===void 0?ie:Math.min(j.end,W);!H.extend&&ie>Ue&&(d=Ue,Ue=ie,ie=d);var R=nf(m,ie),E=nf(m,Ue);if(R&&E&&(H.rangeCount!==1||H.anchorNode!==R.node||H.anchorOffset!==R.offset||H.focusNode!==E.node||H.focusOffset!==E.offset)){var C=q.createRange();C.setStart(R.node,R.offset),H.removeAllRanges(),ie>Ue?(H.addRange(C),H.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),H.addRange(C))}}}}for(q=[],H=m;H=H.parentNode;)H.nodeType===1&&q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<q.length;m++){var L=q[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}_r=!!uu,cu=uu=null}finally{_e=l,Z.p=n,D.T=a}}e.current=t,at=2}}function Sh(){if(at===2){at=0;var e=Ga,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=Z.p;Z.p=2;var l=_e;_e|=4;try{Fd(e,t.alternate,t)}finally{_e=l,Z.p=n,D.T=a}}at=3}}function jh(){if(at===4||at===3){at=0,n0();var e=Ga,t=Wn,a=ja,n=sh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Wn=Ga=null,Eh(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qa=null),yo(a),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(fl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,l=Z.p,Z.p=2,D.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var m=n[d];r(m.value,{componentStack:m.stack})}}finally{D.T=t,Z.p=l}}(ja&3)!==0&&gr(),aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Ws?Zl++:(Zl=0,Ws=e):Zl=0,Kl(0)}}function Eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zl(t)))}function gr(){return bh(),Sh(),jh(),Ah()}function Ah(){if(at!==5)return!1;var e=Ga,t=Js;Js=0;var a=yo(ja),n=D.T,l=Z.p;try{Z.p=32>a?32:a,D.T=null,a=Fs,Fs=null;var r=Ga,d=ja;if(at=0,Wn=Ga=null,ja=0,(_e&6)!==0)throw Error(s(331));var m=_e;if(_e|=4,ih(r.current),ah(r,r.current,d,a),_e=m,Kl(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(fl,r)}catch{}return!0}finally{Z.p=l,D.T=n,Eh(e,t)}}function Rh(e,t,a){t=Lt(a,t),t=Cs(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(hl(e,2),aa(e))}function Me(e,t,a){if(e.tag===3)Rh(e,e,a);else for(;t!==null;){if(t.tag===3){Rh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qa===null||!qa.has(n))){e=Lt(a,e),a=Td(2),n=Ba(t,a,2),n!==null&&(zd(a,n,t,e),hl(n,2),aa(n));break}}t=t.return}}function Ps(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new _y;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(Qs=!0,l.add(a),e=By.bind(null,e,t,a),t.then(e,e))}function By(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(be&a)===a&&(Ze===4||Ze===3&&(be&62914560)===be&&300>Rt()-fr?(_e&2)===0&&$n(e,0):Zs|=a,Fn===be&&(Fn=0)),aa(e)}function Th(e,t){t===0&&(t=xc()),e=an(e,t),e!==null&&(hl(e,t),aa(e))}function Ny(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Th(e,a)}function Hy(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),Th(e,a)}function Uy(e,t){return fo(e,t)}var vr=null,Pn=null,eu=!1,xr=!1,tu=!1,Va=0;function aa(e){e!==Pn&&e.next===null&&(Pn===null?vr=Pn=e:Pn=Pn.next=e),xr=!0,eu||(eu=!0,Ly())}function Kl(e,t){if(!tu&&xr){tu=!0;do for(var a=!1,n=vr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var d=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-zt(42|e)+1)-1,r&=l&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,wh(n,r))}else r=be,r=Ei(n,n===Le?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||dl(n,r)||(a=!0,wh(n,r));n=n.next}while(a);tu=!1}}function ky(){zh()}function zh(){xr=eu=!1;var e=0;Va!==0&&Fy()&&(e=Va);for(var t=Rt(),a=null,n=vr;n!==null;){var l=n.next,r=Ch(n,t);r===0?(n.next=null,a===null?vr=l:a.next=l,l===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(xr=!0)),n=l}at!==0&&at!==5||Kl(e),Va!==0&&(Va=0)}function Ch(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-zt(r),m=1<<d,j=l[d];j===-1?((m&a)===0||(m&n)!==0)&&(l[d]=f0(m,t)):j<=t&&(e.expiredLanes|=m),r&=~m}if(t=Le,a=be,a=Ei(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ho(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&ho(n),yo(a)){case 2:case 8:a=gc;break;case 32:a=xi;break;case 268435456:a=vc;break;default:a=xi}return n=_h.bind(null,e),a=fo(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ho(n),e.callbackPriority=2,e.callbackNode=null,2}function _h(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(gr()&&e.callbackNode!==a)return null;var n=be;return n=Ei(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(ch(e,n,t),Ch(e,Rt()),e.callbackNode!=null&&e.callbackNode===a?_h.bind(null,e):null)}function wh(e,t){if(gr())return null;ch(e,t,!0)}function Ly(){$y(function(){(_e&6)!==0?fo(yc,ky):zh()})}function au(){if(Va===0){var e=kn;e===0&&(e=bi,bi<<=1,(bi&261888)===0&&(bi=256)),Va=e}return Va}function Oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zi(""+e)}function Dh(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 qy(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=Oh((l[yt]||null).action),d=n.submitter;d&&(t=(t=d[yt]||null)?Oh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var m=new Oi("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Va!==0){var j=d?Dh(l,d):new FormData(l);js(a,{pending:!0,data:j,method:l.method,action:r},null,j)}}else typeof r=="function"&&(m.preventDefault(),j=d?Dh(l,d):new FormData(l),js(a,{pending:!0,data:j,method:l.method,action:r},r,j))},currentTarget:l}]})}}for(var nu=0;nu<Lo.length;nu++){var lu=Lo[nu],Gy=lu.toLowerCase(),Yy=lu[0].toUpperCase()+lu.slice(1);Kt(Gy,"on"+Yy)}Kt(uf,"onAnimationEnd"),Kt(cf,"onAnimationIteration"),Kt(ff,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(ly,"onTransitionRun"),Kt(iy,"onTransitionStart"),Kt(ry,"onTransitionCancel"),Kt(df,"onTransitionEnd"),An("onMouseEnter",["mouseout","mouseover"]),An("onMouseLeave",["mouseout","mouseover"]),An("onPointerEnter",["pointerout","pointerover"]),An("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Vy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function Mh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var m=n[d],j=m.instance,_=m.currentTarget;if(m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=_;try{r(l)}catch(U){Bi(U)}l.currentTarget=null,r=j}else for(d=0;d<n.length;d++){if(m=n[d],j=m.instance,_=m.currentTarget,m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=_;try{r(l)}catch(U){Bi(U)}l.currentTarget=null,r=j}}}}function ve(e,t){var a=t[go];a===void 0&&(a=t[go]=new Set);var n=e+"__bubble";a.has(n)||(Bh(t,e,2,!1),a.add(n))}function iu(e,t,a){var n=0;t&&(n|=4),Bh(a,e,n,t)}var br="_reactListening"+Math.random().toString(36).slice(2);function ru(e){if(!e[br]){e[br]=!0,Tc.forEach(function(a){a!=="selectionchange"&&(Vy.has(a)||iu(a,!1,e),iu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[br]||(t[br]=!0,iu("selectionchange",!1,t))}}function Bh(e,t,a,n){switch(up(t)){case 2:var l=gg;break;case 8:l=vg;break;default:l=Su}a=l.bind(null,t,a,e),l=void 0,!To||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function ou(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var m=n.stateNode.containerInfo;if(m===l)break;if(d===4)for(d=n.return;d!==null;){var j=d.tag;if((j===3||j===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;m!==null;){if(d=Sn(m),d===null)return;if(j=d.tag,j===5||j===6||j===26||j===27){n=r=d;continue e}m=m.parentNode}}n=n.return}kc(function(){var _=r,U=Ao(a),q=[];e:{var O=hf.get(e);if(O!==void 0){var H=Oi,W=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":H=H0;break;case"focusin":W="focus",H=wo;break;case"focusout":W="blur",H=wo;break;case"beforeblur":case"afterblur":H=wo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Gc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=A0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=L0;break;case uf:case cf:case ff:H=z0;break;case df:H=G0;break;case"scroll":case"scrollend":H=j0;break;case"wheel":H=V0;break;case"copy":case"cut":case"paste":H=_0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Vc;break;case"toggle":case"beforetoggle":H=Q0}var ie=(t&4)!==0,Ue=!ie&&(e==="scroll"||e==="scrollend"),R=ie?O!==null?O+"Capture":null:O;ie=[];for(var E=_,C;E!==null;){var L=E;if(C=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||C===null||R===null||(L=yl(E,R),L!=null&&ie.push(Fl(E,L,C))),Ue)break;E=E.return}0<ie.length&&(O=new H(O,W,null,a,U),q.push({event:O,listeners:ie}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",O&&a!==Eo&&(W=a.relatedTarget||a.fromElement)&&(Sn(W)||W[bn]))break e;if((H||O)&&(O=U.window===U?U:(O=U.ownerDocument)?O.defaultView||O.parentWindow:window,H?(W=a.relatedTarget||a.toElement,H=_,W=W?Sn(W):null,W!==null&&(Ue=h(W),ie=W.tag,W!==Ue||ie!==5&&ie!==27&&ie!==6)&&(W=null)):(H=null,W=_),H!==W)){if(ie=Gc,L="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Vc,L="onPointerLeave",R="onPointerEnter",E="pointer"),Ue=H==null?O:ml(H),C=W==null?O:ml(W),O=new ie(L,E+"leave",H,a,U),O.target=Ue,O.relatedTarget=C,L=null,Sn(U)===_&&(ie=new ie(R,E+"enter",W,a,U),ie.target=C,ie.relatedTarget=Ue,L=ie),Ue=L,H&&W)t:{for(ie=Xy,R=H,E=W,C=0,L=R;L;L=ie(L))C++;L=0;for(var ne=E;ne;ne=ie(ne))L++;for(;0<C-L;)R=ie(R),C--;for(;0<L-C;)E=ie(E),L--;for(;C--;){if(R===E||E!==null&&R===E.alternate){ie=R;break t}R=ie(R),E=ie(E)}ie=null}else ie=null;H!==null&&Nh(q,O,H,ie,!1),W!==null&&Ue!==null&&Nh(q,Ue,W,ie,!0)}}e:{if(O=_?ml(_):window,H=O.nodeName&&O.nodeName.toLowerCase(),H==="select"||H==="input"&&O.type==="file")var ze=$c;else if(Fc(O))if(Ic)ze=ty;else{ze=P0;var te=I0}else H=O.nodeName,!H||H.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?_&&jo(_.elementType)&&(ze=$c):ze=ey;if(ze&&(ze=ze(e,_))){Wc(q,ze,a,U);break e}te&&te(e,O,_),e==="focusout"&&_&&O.type==="number"&&_.memoizedProps.value!=null&&So(O,"number",O.value)}switch(te=_?ml(_):window,e){case"focusin":(Fc(te)||te.contentEditable==="true")&&(wn=te,Ho=_,Al=null);break;case"focusout":Al=Ho=wn=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,of(q,a,U);break;case"selectionchange":if(ny)break;case"keydown":case"keyup":of(q,a,U)}var he;if(Do)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else _n?Kc(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Xc&&a.locale!=="ko"&&(_n||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&_n&&(he=Lc()):(za=U,zo="value"in za?za.value:za.textContent,_n=!0)),te=Sr(_,Se),0<te.length&&(Se=new Yc(Se,e,null,a,U),q.push({event:Se,listeners:te}),he?Se.data=he:(he=Jc(a),he!==null&&(Se.data=he)))),(he=K0?J0(e,a):F0(e,a))&&(Se=Sr(_,"onBeforeInput"),0<Se.length&&(te=new Yc("onBeforeInput","beforeinput",null,a,U),q.push({event:te,listeners:Se}),te.data=he)),qy(q,e,_,a,U)}Mh(q,t)})}function Fl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Sr(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=yl(e,a),l!=null&&n.unshift(Fl(e,l,r)),l=yl(e,t),l!=null&&n.push(Fl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Xy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nh(e,t,a,n,l){for(var r=t._reactName,d=[];a!==null&&a!==n;){var m=a,j=m.alternate,_=m.stateNode;if(m=m.tag,j!==null&&j===n)break;m!==5&&m!==26&&m!==27||_===null||(j=_,l?(_=yl(a,r),_!=null&&d.unshift(Fl(a,_,j))):l||(_=yl(a,r),_!=null&&d.push(Fl(a,_,j)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Qy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function Hh(e){return(typeof e=="string"?e:""+e).replace(Qy,`
9
- `).replace(Zy,"")}function Uh(e,t){return t=Hh(t),Hh(e)===t}function He(e,t,a,n,l,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Tn(e,""+n);break;case"className":Ri(e,"class",n);break;case"tabIndex":Ri(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ri(e,a,n);break;case"style":Hc(e,n,r);break;case"data":if(t!=="object"){Ri(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=zi(""+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"&&He(e,t,"name",l.name,l,null),He(e,t,"formEncType",l.formEncType,l,null),He(e,t,"formMethod",l.formMethod,l,null),He(e,t,"formTarget",l.formTarget,l,null)):(He(e,t,"encType",l.encType,l,null),He(e,t,"method",l.method,l,null),He(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=zi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=oa);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=zi(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ve("beforetoggle",e),ve("toggle",e),Ai(e,"popover",n);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ai(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=b0.get(a)||a,Ai(e,a,n))}}function su(e,t,a,n,l,r){switch(a){case"style":Hc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&Tn(e,""+n);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"onClick":n!=null&&(e.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),r=e[yt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,l),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ai(e,a,n)}}}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var n=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,r,d,a,null)}}l&&He(e,t,"srcSet",a.srcSet,a,null),n&&He(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var m=r=d=l=null,j=null,_=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":l=U;break;case"type":d=U;break;case"checked":j=U;break;case"defaultChecked":_=U;break;case"value":r=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:He(e,t,n,U,a,null)}}Dc(e,r,m,j,_,d,l,!1);return;case"select":ve("invalid",e),n=d=r=null;for(l in a)if(a.hasOwnProperty(l)&&(m=a[l],m!=null))switch(l){case"value":r=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:He(e,t,l,m,a,null)}t=r,a=d,e.multiple=!!n,t!=null?Rn(e,!!n,t,!1):a!=null&&Rn(e,!!n,a,!0);return;case"textarea":ve("invalid",e),r=l=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":l=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:He(e,t,d,m,a,null)}Bc(e,n,l,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":He(e,t,j,n,a,null));return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(n=0;n<Jl.length;n++)ve(Jl[n],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in a)if(a.hasOwnProperty(_)&&(n=a[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,_,n,a,null)}return;default:if(jo(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&su(e,t,U,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&He(e,t,m,n,a,null))}function Ky(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,d=null,m=null,j=null,_=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)||He(e,t,H,null,n,q)}}for(var O in n){var H=n[O];if(q=a[O],n.hasOwnProperty(O)&&(H!=null||q!=null))switch(O){case"type":r=H;break;case"name":l=H;break;case"checked":_=H;break;case"defaultChecked":U=H;break;case"value":d=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==q&&He(e,t,O,H,n,q)}}bo(e,d,m,j,_,U,r,l);return;case"select":H=d=m=O=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)||He(e,t,r,null,n,j)}for(l in n)if(r=n[l],j=a[l],n.hasOwnProperty(l)&&(r!=null||j!=null))switch(l){case"value":O=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==j&&He(e,t,l,r,n,j)}t=m,a=d,n=H,O!=null?Rn(e,!!a,O,!1):!!n!=!!a&&(t!=null?Rn(e,!!a,t,!0):Rn(e,!!a,a?[]:"",!1));return;case"textarea":H=O=null;for(m in a)if(l=a[m],a.hasOwnProperty(m)&&l!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:He(e,t,m,null,n,l)}for(d in n)if(l=n[d],r=a[d],n.hasOwnProperty(d)&&(l!=null||r!=null))switch(d){case"value":O=l;break;case"defaultValue":H=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(s(91));break;default:l!==r&&He(e,t,d,l,n,r)}Mc(e,O,H);return;case"option":for(var W in a)O=a[W],a.hasOwnProperty(W)&&O!=null&&!n.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:He(e,t,W,null,n,O));for(j in n)O=n[j],H=a[j],n.hasOwnProperty(j)&&O!==H&&(O!=null||H!=null)&&(j==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":He(e,t,j,O,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)O=a[ie],a.hasOwnProperty(ie)&&O!=null&&!n.hasOwnProperty(ie)&&He(e,t,ie,null,n,O);for(_ in n)if(O=n[_],H=a[_],n.hasOwnProperty(_)&&O!==H&&(O!=null||H!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:He(e,t,_,O,n,H)}return;default:if(jo(t)){for(var Ue in a)O=a[Ue],a.hasOwnProperty(Ue)&&O!==void 0&&!n.hasOwnProperty(Ue)&&su(e,t,Ue,void 0,n,O);for(U in n)O=n[U],H=a[U],!n.hasOwnProperty(U)||O===H||O===void 0&&H===void 0||su(e,t,U,O,n,H);return}}for(var R in a)O=a[R],a.hasOwnProperty(R)&&O!=null&&!n.hasOwnProperty(R)&&He(e,t,R,null,n,O);for(q in n)O=n[q],H=a[q],!n.hasOwnProperty(q)||O===H||O==null&&H==null||He(e,t,q,O,n,H)}function kh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],r=l.transferSize,d=l.initiatorType,m=l.duration;if(r&&m&&kh(d)){for(d=0,m=l.responseEnd,n+=1;n<a.length;n++){var j=a[n],_=j.startTime;if(_>m)break;var U=j.transferSize,q=j.initiatorType;U&&kh(q)&&(j=j.responseEnd,d+=U*(j<m?1:(m-_)/(j-_)))}if(--n,t+=8*(r+d)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var uu=null,cu=null;function jr(e){return e.nodeType===9?e:e.ownerDocument}function Lh(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 qh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var du=null;function Fy(){var e=window.event;return e&&e.type==="popstate"?e===du?!1:(du=e,!0):(du=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,$y=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(Iy)}:Gh;function Iy(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Vh(e,t){var a=t,n=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(l),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Wl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wl(a);for(var r=a.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[pl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&Wl(e.ownerDocument.body);a=l}while(a);nl(t)}function Xh(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 Py(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function eg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Xt(e.nextSibling),e===null))return null;return e}function Qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function pu(e){return e.data==="$?"||e.data==="$~"}function mu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var yu=null;function Zh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Xt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Kh(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 Jh(e,t,a){switch(t=jr(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Wl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var Qt=new Map,Fh=new Set;function Er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=Z.d;Z.d={f:ag,r:ng,D:lg,C:ig,L:rg,m:og,X:ug,S:sg,M:cg};function ag(){var e=Ea.f(),t=pr();return e||t}function ng(e){var t=jn(e);t!==null&&t.tag===5&&t.type==="form"?dd(t):Ea.r(e)}var el=typeof document>"u"?null:document;function Wh(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var l=Ut(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Fh.has(l)||(Fh.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function lg(e){Ea.D(e),Wh("dns-prefetch",e,null)}function ig(e,t){Ea.C(e,t),Wh("preconnect",e,t)}function rg(e,t,a){Ea.L(e,t,a);var n=el;if(n&&e&&t){var l='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ut(a.imageSizes)+'"]')):l+='[href="'+Ut(e)+'"]';var r=l;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Qt.has(r)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qt.set(r,e),n.querySelector(l)!==null||t==="style"&&n.querySelector($l(r))||t==="script"&&n.querySelector(Il(r))||(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function og(e,t){Ea.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ut(n)+'"][href="'+Ut(e)+'"]',r=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Qt.has(r)&&(e=v({rel:"modulepreload",href:e},t),Qt.set(r,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Il(r)))return}n=a.createElement("link"),dt(n,"link",e),lt(n),a.head.appendChild(n)}}}function sg(e,t,a){Ea.S(e,t,a);var n=el;if(n&&e){var l=En(n).hoistableStyles,r=tl(e);t=t||"default";var d=l.get(r);if(!d){var m={loading:0,preload:null};if(d=n.querySelector($l(r)))m.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(r))&&gu(e,a);var j=d=n.createElement("link");lt(j),dt(j,"link",e),j._p=new Promise(function(_,U){j.onload=_,j.onerror=U}),j.addEventListener("load",function(){m.loading|=1}),j.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Ar(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},l.set(r,d)}}}function ug(e,t){Ea.X(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=v({src:e,async:!0},t),(t=Qt.get(l))&&vu(e,t),r=a.createElement("script"),lt(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function cg(e,t){Ea.M(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=v({src:e,async:!0,type:"module"},t),(t=Qt.get(l))&&vu(e,t),r=a.createElement("script"),lt(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function $h(e,t,a,n){var l=(l=se.current)?Er(l):null;if(!l)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tl(a.href),a=En(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tl(a.href);var r=En(l).hoistableStyles,d=r.get(e);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=l.querySelector($l(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Qt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Qt.set(e,a),r||fg(l,e,a,d.state))),t&&n===null)throw Error(s(528,""));return d}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(a),a=En(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function tl(e){return'href="'+Ut(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Ih(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function fg(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),dt(t,"link",a),lt(t),e.head.appendChild(t))}function al(e){return'[src="'+Ut(e)+'"]'}function Il(e){return"script[async]"+e}function Ph(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(n)return t.instance=n,lt(n),n;var l=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),lt(n),dt(n,"style",l),Ar(n,a.precedence,e),t.instance=n;case"stylesheet":l=tl(a.href);var r=e.querySelector($l(l));if(r)return t.state.loading|=4,t.instance=r,lt(r),r;n=Ih(a),(l=Qt.get(l))&&gu(n,l),r=(e.ownerDocument||e).createElement("link"),lt(r);var d=r;return d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),dt(r,"link",n),t.state.loading|=4,Ar(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(l=e.querySelector(Il(r)))?(t.instance=l,lt(l),l):(n=a,(l=Qt.get(r))&&(n=v({},a),vu(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),lt(l),dt(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Ar(n,a.precedence,e));return t.instance}function Ar(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,r=l,d=0;d<n.length;d++){var m=n[d];if(m.dataset.precedence===t)r=m;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rr=null;function ep(e,t,a){if(Rr===null){var n=new Map,l=Rr=new Map;l.set(a,n)}else l=Rr,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var r=a[l];if(!(r[pl]||r[st]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var m=n.get(d);m?m.push(r):n.set(d,[r])}}return n}function tp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function dg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function hg(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=tl(n.href),r=t.querySelector($l(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Tr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,lt(r);return}r=t.ownerDocument||t,n=Ih(n),(l=Qt.get(l))&&gu(n,l),r=r.createElement("link"),lt(r);var d=r;d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),dt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Tr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var xu=0;function pg(e,t){return e.stylesheets&&e.count===0&&Cr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Cr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&xu===0&&(xu=62500*Jy());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Cr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>xu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zr=null;function Cr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zr=new Map,t.forEach(mg,e),zr=null,Tr.call(e))}function mg(e,t){if(!(t.state.loading&4)){var a=zr.get(e);if(a)var n=a.get(null);else{a=new Map,zr.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var d=l[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}l=t.instance,d=l.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,l),a.set(d,l),this.count++,n=Tr.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:X,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function yg(e,t,a,n,l,r,d,m,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=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function np(e,t,a,n,l,r,d,m,j,_,U,q){return e=new yg(e,t,a,d,j,_,U,q,m),t=1,r===!0&&(t|=24),r=_t(3,null,null,t),e.current=r,r.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},as(r),e}function lp(e){return e?(e=Mn,e):Mn}function ip(e,t,a,n,l,r){l=lp(l),n.context===null?n.context=l:n.pendingContext=l,n=Ma(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ba(e,n,t),a!==null&&(jt(a,e,t),Ol(a,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bu(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&jt(t,e,67108864),bu(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=Bt();t=mo(t);var a=an(e,t);a!==null&&jt(a,e,t),bu(e,t)}}var _r=!0;function gg(e,t,a,n){var l=D.T;D.T=null;var r=Z.p;try{Z.p=2,Su(e,t,a,n)}finally{Z.p=r,D.T=l}}function vg(e,t,a,n){var l=D.T;D.T=null;var r=Z.p;try{Z.p=8,Su(e,t,a,n)}finally{Z.p=r,D.T=l}}function Su(e,t,a,n){if(_r){var l=ju(n);if(l===null)ou(e,t,n,wr,a),cp(e,n);else if(bg(l,e,t,a,n))n.stopPropagation();else if(cp(e,n),t&4&&-1<xg.indexOf(e)){for(;l!==null;){var r=jn(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=$a(r.pendingLanes);if(d!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var j=1<<31-zt(d);m.entanglements[1]|=j,d&=~j}aa(r),(_e&6)===0&&(dr=Rt()+500,Kl(0))}}break;case 31:case 13:m=an(r,2),m!==null&&jt(m,r,2),pr(),bu(r,2)}if(r=ju(n),r===null&&ou(e,t,n,wr,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else ou(e,t,n,null,a)}}function ju(e){return e=Ao(e),Eu(e)}var wr=null;function Eu(e){if(wr=null,e=Sn(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wr=e,null}function up(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(l0()){case yc:return 2;case gc:return 8;case xi:case i0:return 32;case vc:return 268435456;default:return 32}default:return 32}}var Au=!1,Qa=null,Za=null,Ka=null,ei=new Map,ti=new Map,Ja=[],xg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function cp(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,n,l,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[l]},t!==null&&(t=jn(t),t!==null&&op(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function bg(e,t,a,n,l){switch(t){case"focusin":return Qa=ai(Qa,e,t,a,n,l),!0;case"dragenter":return Za=ai(Za,e,t,a,n,l),!0;case"mouseover":return Ka=ai(Ka,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return ei.set(r,ai(ei.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ti.set(r,ai(ti.get(r)||null,e,t,a,n,l)),!0}return!1}function fp(e){var t=Sn(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,Ac(e.priority,function(){sp(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Ac(e.priority,function(){sp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Or(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ju(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Eo=n,a.target.dispatchEvent(n),Eo=null}else return t=jn(a),t!==null&&op(t),e.blockedOn=a,!1;t.shift()}return!0}function dp(e,t,a){Or(e)&&a.delete(t)}function Sg(){Au=!1,Qa!==null&&Or(Qa)&&(Qa=null),Za!==null&&Or(Za)&&(Za=null),Ka!==null&&Or(Ka)&&(Ka=null),ei.forEach(dp),ti.forEach(dp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Au||(Au=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sg)))}var Mr=null;function hp(e){Mr!==e&&(Mr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Mr===e&&(Mr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(Eu(n||a)===null)continue;break}var r=jn(a);r!==null&&(e.splice(t,3),t-=3,js(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function nl(e){function t(j){return Dr(j,e)}Qa!==null&&Dr(Qa,e),Za!==null&&Dr(Za,e),Ka!==null&&Dr(Ka,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Ja.length;a++){var n=Ja[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)fp(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],r=a[n+1],d=l[yt]||null;if(typeof r=="function")d||hp(a);else if(d){var m=null;if(r&&r.hasAttribute("formAction")){if(l=r,d=r[yt]||null)m=d.formAction;else if(Eu(l)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),hp(a)}}}function pp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return l=d})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Ru(e){this._internalRoot=e}Br.prototype.render=Ru.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=Bt();ip(a,n,e,t,null,null)},Br.prototype.unmount=Ru.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),pr(),t[bn]=null}};function Br(e){this._internalRoot=e}Br.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&fp(e)}};var mp=o.version;if(mp!=="19.2.4")throw Error(s(527,mp,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var jg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{fl=Nr.inject(jg),Tt=Nr}catch{}}return li.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,n="",l=jd,r=Ed,d=Ad;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=np(e,1,!1,null,null,a,n,null,l,r,d,pp),e[bn]=t.current,ru(e),new Ru(t)},li.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var n=!1,l="",r=jd,d=Ed,m=Ad,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=np(e,1,!0,t,a??null,n,l,j,r,d,m,pp),t.context=lp(null),a=t.current,n=Bt(),n=mo(n),l=Ma(n),l.callback=null,Ba(a,l,n),a=n,t.current.lanes=a,hl(t,a),aa(t),e[bn]=t.current,ru(e),new Br(t)},li.version="19.2.4",li}var Rp;function Dg(){if(Rp)return Cu.exports;Rp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Cu.exports=Og(),Cu.exports}var Mg=Dg();const Bg=sm(Mg);var Tp="popstate";function zp(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ng(i={}){function o(s,f){let h=f.state?.masked,{pathname:p,search:g,hash:x}=h||s.location;return Vu("",{pathname:p,search:g,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function u(s,f){return typeof f=="string"?f:si(f)}return Ug(o,u,null,i)}function Xe(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Wt(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Hg(){return Math.random().toString(36).substring(2,10)}function Cp(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Vu(i,o,u=null,s,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?rl(o):o,state:u,key:o&&o.key||s||Hg(),unstable_mask:f}}function si({pathname:i="/",search:o="",hash:u=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(i+=u.charAt(0)==="#"?u:"#"+u),i}function rl(i){let o={};if(i){let u=i.indexOf("#");u>=0&&(o.hash=i.substring(u),i=i.substring(0,u));let s=i.indexOf("?");s>=0&&(o.search=i.substring(s),i=i.substring(0,s)),i&&(o.pathname=i)}return o}function Ug(i,o,u,s={}){let{window:f=document.defaultView,v5Compat:h=!1}=s,p=f.history,g="POP",x=null,y=b();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function b(){return(p.state||{idx:null}).idx}function v(){g="POP";let z=b(),Q=z==null?null:z-y;y=z,x&&x({action:g,location:w.location,delta:Q})}function M(z,Q){g="PUSH";let P=zp(z)?z:Vu(w.location,z,Q);y=b()+1;let X=Cp(P,y),le=w.createHref(P.unstable_mask||P);try{p.pushState(X,"",le)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;f.location.assign(le)}h&&x&&x({action:g,location:w.location,delta:1})}function k(z,Q){g="REPLACE";let P=zp(z)?z:Vu(w.location,z,Q);y=b();let X=Cp(P,y),le=w.createHref(P.unstable_mask||P);p.replaceState(X,"",le),h&&x&&x({action:g,location:w.location,delta:0})}function T(z){return kg(z)}let w={get action(){return g},get location(){return i(f,p)},listen(z){if(x)throw new Error("A history only accepts one active listener");return f.addEventListener(Tp,v),x=z,()=>{f.removeEventListener(Tp,v),x=null}},createHref(z){return o(f,z)},createURL:T,encodeLocation(z){let Q=T(z);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:M,replace:k,go(z){return p.go(z)}};return w}function kg(i,o=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(u,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:si(i);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=u+s),new URL(s,u)}function um(i,o,u="/"){return Lg(i,o,u,!1)}function Lg(i,o,u,s){let f=typeof o=="string"?rl(o):o,h=Aa(f.pathname||"/",u);if(h==null)return null;let p=cm(i);qg(p);let g=null;for(let x=0;g==null&&x<p.length;++x){let y=$g(h);g=Fg(p[x],y,s)}return g}function cm(i,o=[],u=[],s="",f=!1){let h=(p,g,x=f,y)=>{let b={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:g,route:p};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&x)return;Xe(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let v=la([s,b.relativePath]),M=u.concat(b);p.children&&p.children.length>0&&(Xe(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),cm(p.children,o,M,v,x)),!(p.path==null&&!p.index)&&o.push({path:v,score:Kg(v,p.index),routesMeta:M})};return i.forEach((p,g)=>{if(p.path===""||!p.path?.includes("?"))h(p,g);else for(let x of fm(p.path))h(p,g,!0,x)}),o}function fm(i){let o=i.split("/");if(o.length===0)return[];let[u,...s]=o,f=u.endsWith("?"),h=u.replace(/\?$/,"");if(s.length===0)return f?[h,""]:[h];let p=fm(s.join("/")),g=[];return g.push(...p.map(x=>x===""?h:[h,x].join("/"))),f&&g.push(...p),g.map(x=>i.startsWith("/")&&x===""?"/":x)}function qg(i){i.sort((o,u)=>o.score!==u.score?u.score-o.score:Jg(o.routesMeta.map(s=>s.childrenIndex),u.routesMeta.map(s=>s.childrenIndex)))}var Gg=/^:[\w-]+$/,Yg=3,Vg=2,Xg=1,Qg=10,Zg=-2,_p=i=>i==="*";function Kg(i,o){let u=i.split("/"),s=u.length;return u.some(_p)&&(s+=Zg),o&&(s+=Vg),u.filter(f=>!_p(f)).reduce((f,h)=>f+(Gg.test(h)?Yg:h===""?Xg:Qg),s)}function Jg(i,o){return i.length===o.length&&i.slice(0,-1).every((s,f)=>s===o[f])?i[i.length-1]-o[o.length-1]:0}function Fg(i,o,u=!1){let{routesMeta:s}=i,f={},h="/",p=[];for(let g=0;g<s.length;++g){let x=s[g],y=g===s.length-1,b=h==="/"?o:o.slice(h.length)||"/",v=Kr({path:x.relativePath,caseSensitive:x.caseSensitive,end:y},b),M=x.route;if(!v&&y&&u&&!s[s.length-1].route.index&&(v=Kr({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},b)),!v)return null;Object.assign(f,v.params),p.push({params:f,pathname:la([h,v.pathname]),pathnameBase:t1(la([h,v.pathnameBase])),route:M}),v.pathnameBase!=="/"&&(h=la([h,v.pathnameBase]))}return p}function Kr(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[u,s]=Wg(i.path,i.caseSensitive,i.end),f=o.match(u);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:s.reduce((y,{paramName:b,isOptional:v},M)=>{if(b==="*"){let T=g[M]||"";p=h.slice(0,h.length-T.length).replace(/(.)\/+$/,"$1")}const k=g[M];return v&&!k?y[b]=void 0:y[b]=(k||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:p,pattern:i}}function Wg(i,o=!1,u=!0){Wt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,x,y,b)=>{if(s.push({paramName:g,isOptional:x!=null}),x){let v=b.charAt(y+p.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),s]}function $g(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Wt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function Aa(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let u=o.endsWith("/")?o.length-1:o.length,s=i.charAt(u);return s&&s!=="/"?null:i.slice(u)||"/"}var Ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Pg(i,o="/"){let{pathname:u,search:s="",hash:f=""}=typeof i=="string"?rl(i):i,h;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?h=wp(u.substring(1),"/"):h=wp(u,o)):h=o,{pathname:h,search:a1(s),hash:n1(f)}}function wp(i,o){let u=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?u.length>1&&u.pop():f!=="."&&u.push(f)}),u.length>1?u.join("/"):"/"}function Du(i,o,u,s){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function e1(i){return i.filter((o,u)=>u===0||o.route.path&&o.route.path.length>0)}function Pu(i){let o=e1(i);return o.map((u,s)=>s===o.length-1?u.pathname:u.pathnameBase)}function Ir(i,o,u,s=!1){let f;typeof i=="string"?f=rl(i):(f={...i},Xe(!f.pathname||!f.pathname.includes("?"),Du("?","pathname","search",f)),Xe(!f.pathname||!f.pathname.includes("#"),Du("#","pathname","hash",f)),Xe(!f.search||!f.search.includes("#"),Du("#","search","hash",f)));let h=i===""||f.pathname==="",p=h?"/":f.pathname,g;if(p==null)g=u;else{let v=o.length-1;if(!s&&p.startsWith("..")){let M=p.split("/");for(;M[0]==="..";)M.shift(),v-=1;f.pathname=M.join("/")}g=v>=0?o[v]:"/"}let x=Pg(f,g),y=p&&p!=="/"&&p.endsWith("/"),b=(h||p===".")&&u.endsWith("/");return!x.pathname.endsWith("/")&&(y||b)&&(x.pathname+="/"),x}var la=i=>i.join("/").replace(/\/\/+/g,"/"),t1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),a1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,n1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,l1=class{constructor(i,o,u,s=!1){this.status=i,this.statusText=o||"",this.internal=s,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function i1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function r1(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function hm(i,o){let u=i;if(typeof u!="string"||!Ig.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let s=u,f=!1;if(dm)try{let h=new URL(window.location.href),p=u.startsWith("//")?new URL(h.protocol+u):new URL(u),g=Aa(p.pathname,o);p.origin===h.origin&&g!=null?u=g+p.search+p.hash:f=!0}catch{Wt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pm=["POST","PUT","PATCH","DELETE"];new Set(pm);var o1=["GET",...pm];new Set(o1);var ol=A.createContext(null);ol.displayName="DataRouter";var Pr=A.createContext(null);Pr.displayName="DataRouterState";var s1=A.createContext(!1),mm=A.createContext({isTransitioning:!1});mm.displayName="ViewTransition";var u1=A.createContext(new Map);u1.displayName="Fetchers";var c1=A.createContext(null);c1.displayName="Await";var Nt=A.createContext(null);Nt.displayName="Navigation";var ci=A.createContext(null);ci.displayName="Location";var ia=A.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var ec=A.createContext(null);ec.displayName="RouteError";var ym="REACT_ROUTER_ERROR",f1="REDIRECT",d1="ROUTE_ERROR_RESPONSE";function h1(i){if(i.startsWith(`${ym}:${f1}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function p1(i){if(i.startsWith(`${ym}:${d1}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new l1(o.status,o.statusText,o.data)}catch{}}function m1(i,{relative:o}={}){Xe(sl(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:s}=A.useContext(Nt),{hash:f,pathname:h,search:p}=fi(i,{relative:o}),g=h;return u!=="/"&&(g=h==="/"?u:la([u,h])),s.createHref({pathname:g,search:p,hash:f})}function sl(){return A.useContext(ci)!=null}function $t(){return Xe(sl(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(ci).location}var gm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vm(i){A.useContext(Nt).static||A.useLayoutEffect(i)}function eo(){let{isDataRoute:i}=A.useContext(ia);return i?C1():y1()}function y1(){Xe(sl(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(ol),{basename:o,navigator:u}=A.useContext(Nt),{matches:s}=A.useContext(ia),{pathname:f}=$t(),h=JSON.stringify(Pu(s)),p=A.useRef(!1);return vm(()=>{p.current=!0}),A.useCallback((x,y={})=>{if(Wt(p.current,gm),!p.current)return;if(typeof x=="number"){u.go(x);return}let b=Ir(x,JSON.parse(h),f,y.relative==="path");i==null&&o!=="/"&&(b.pathname=b.pathname==="/"?o:la([o,b.pathname])),(y.replace?u.replace:u.push)(b,y.state,y)},[o,u,h,f,i])}A.createContext(null);function fi(i,{relative:o}={}){let{matches:u}=A.useContext(ia),{pathname:s}=$t(),f=JSON.stringify(Pu(u));return A.useMemo(()=>Ir(i,JSON.parse(f),s,o==="path"),[i,f,s,o])}function g1(i,o){return xm(i,o)}function xm(i,o,u){Xe(sl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=A.useContext(Nt),{matches:f}=A.useContext(ia),h=f[f.length-1],p=h?h.params:{},g=h?h.pathname:"/",x=h?h.pathnameBase:"/",y=h&&h.route;{let z=y&&y.path||"";Sm(g,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let b=$t(),v;if(o){let z=typeof o=="string"?rl(o):o;Xe(x==="/"||z.pathname?.startsWith(x),`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 "${x}" but pathname "${z.pathname}" was given in the \`location\` prop.`),v=z}else v=b;let M=v.pathname||"/",k=M;if(x!=="/"){let z=x.replace(/^\//,"").split("/");k="/"+M.replace(/^\//,"").split("/").slice(z.length).join("/")}let T=um(i,{pathname:k});Wt(y||T!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Wt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=j1(T&&T.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:la([x,s.encodeLocation?s.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?x:la([x,s.encodeLocation?s.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),f,u);return o&&w?A.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},w):w}function v1(){let i=z1(),o=i1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),u=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:h},"ErrorBoundary")," or"," ",A.createElement("code",{style:h},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),u?A.createElement("pre",{style:f},u):null,p)}var x1=A.createElement(v1,null),bm=class extends A.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const u=p1(i.digest);u&&(i=u)}let o=i!==void 0?A.createElement(ia.Provider,{value:this.props.routeContext},A.createElement(ec.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?A.createElement(b1,{error:i},o):o}};bm.contextType=s1;var Mu=new WeakMap;function b1({children:i,error:o}){let{basename:u}=A.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=h1(o.digest);if(s){let f=Mu.get(o);if(f)throw f;let h=hm(s.location,u);if(dm&&!Mu.get(o))if(h.isExternal||s.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw Mu.set(o,p),p}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function S1({routeContext:i,match:o,children:u}){let s=A.useContext(ol);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(ia.Provider,{value:i},u)}function j1(i,o=[],u){let s=u?.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let f=i,h=s?.errors;if(h!=null){let b=f.findIndex(v=>v.route.id&&h?.[v.route.id]!==void 0);Xe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(u&&s){p=s.renderFallback;for(let b=0;b<f.length;b++){let v=f[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=b),v.route.id){let{loaderData:M,errors:k}=s,T=v.route.loader&&!M.hasOwnProperty(v.route.id)&&(!k||k[v.route.id]===void 0);if(v.route.lazy||T){u.isStatic&&(p=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let x=u?.onError,y=s&&x?(b,v)=>{x(b,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:r1(s.matches),errorInfo:v})}:void 0;return f.reduceRight((b,v,M)=>{let k,T=!1,w=null,z=null;s&&(k=h&&v.route.id?h[v.route.id]:void 0,w=v.route.errorElement||x1,p&&(g<0&&M===0?(Sm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,z=null):g===M&&(T=!0,z=v.route.hydrateFallbackElement||null)));let Q=o.concat(f.slice(0,M+1)),P=()=>{let X;return k?X=w:T?X=z:v.route.Component?X=A.createElement(v.route.Component,null):v.route.element?X=v.route.element:X=b,A.createElement(S1,{match:v,routeContext:{outlet:b,matches:Q,isDataRoute:s!=null},children:X})};return s&&(v.route.ErrorBoundary||v.route.errorElement||M===0)?A.createElement(bm,{location:s.location,revalidation:s.revalidation,component:w,error:k,children:P(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:y}):P()},null)}function tc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E1(i){let o=A.useContext(ol);return Xe(o,tc(i)),o}function A1(i){let o=A.useContext(Pr);return Xe(o,tc(i)),o}function R1(i){let o=A.useContext(ia);return Xe(o,tc(i)),o}function ac(i){let o=R1(i),u=o.matches[o.matches.length-1];return Xe(u.route.id,`${i} can only be used on routes that contain a unique "id"`),u.route.id}function T1(){return ac("useRouteId")}function z1(){let i=A.useContext(ec),o=A1("useRouteError"),u=ac("useRouteError");return i!==void 0?i:o.errors?.[u]}function C1(){let{router:i}=E1("useNavigate"),o=ac("useNavigate"),u=A.useRef(!1);return vm(()=>{u.current=!0}),A.useCallback(async(f,h={})=>{Wt(u.current,gm),u.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:o,...h}))},[i,o])}var Op={};function Sm(i,o,u){!o&&!Op[i]&&(Op[i]=!0,Wt(!1,u))}A.memo(_1);function _1({routes:i,future:o,state:u,isStatic:s,onError:f}){return xm(i,void 0,{state:u,isStatic:s,onError:f})}function w1({to:i,replace:o,state:u,relative:s}){Xe(sl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=A.useContext(Nt);Wt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=A.useContext(ia),{pathname:p}=$t(),g=eo(),x=Ir(i,Pu(h),p,s==="path"),y=JSON.stringify(x);return A.useEffect(()=>{g(JSON.parse(y),{replace:o,state:u,relative:s})},[g,y,s,o,u]),null}function na(i){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function O1({basename:i="/",children:o=null,location:u,navigationType:s="POP",navigator:f,static:h=!1,unstable_useTransitions:p}){Xe(!sl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),x=A.useMemo(()=>({basename:g,navigator:f,static:h,unstable_useTransitions:p,future:{}}),[g,f,h,p]);typeof u=="string"&&(u=rl(u));let{pathname:y="/",search:b="",hash:v="",state:M=null,key:k="default",unstable_mask:T}=u,w=A.useMemo(()=>{let z=Aa(y,g);return z==null?null:{location:{pathname:z,search:b,hash:v,state:M,key:k,unstable_mask:T},navigationType:s}},[g,y,b,v,M,k,s,T]);return Wt(w!=null,`<Router basename="${g}"> is not able to match the URL "${y}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:A.createElement(Nt.Provider,{value:x},A.createElement(ci.Provider,{children:o,value:w}))}function D1({children:i,location:o}){return g1(Xu(i),o)}function Xu(i,o=[]){let u=[];return A.Children.forEach(i,(s,f)=>{if(!A.isValidElement(s))return;let h=[...o,f];if(s.type===A.Fragment){u.push.apply(u,Xu(s.props.children,h));return}Xe(s.type===na,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Xu(s.props.children,h)),u.push(p)}),u}var qr="get",Gr="application/x-www-form-urlencoded";function to(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function M1(i){return to(i)&&i.tagName.toLowerCase()==="button"}function B1(i){return to(i)&&i.tagName.toLowerCase()==="form"}function N1(i){return to(i)&&i.tagName.toLowerCase()==="input"}function H1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function U1(i,o){return i.button===0&&(!o||o==="_self")&&!H1(i)}var Hr=null;function k1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var L1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bu(i){return i!=null&&!L1.has(i)?(Wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gr}"`),null):i}function q1(i,o){let u,s,f,h,p;if(B1(i)){let g=i.getAttribute("action");s=g?Aa(g,o):null,u=i.getAttribute("method")||qr,f=Bu(i.getAttribute("enctype"))||Gr,h=new FormData(i)}else if(M1(i)||N1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=i.getAttribute("formaction")||g.getAttribute("action");if(s=x?Aa(x,o):null,u=i.getAttribute("formmethod")||g.getAttribute("method")||qr,f=Bu(i.getAttribute("formenctype"))||Bu(g.getAttribute("enctype"))||Gr,h=new FormData(g,i),!k1()){let{name:y,type:b,value:v}=i;if(b==="image"){let M=y?`${y}.`:"";h.append(`${M}x`,"0"),h.append(`${M}y`,"0")}else y&&h.append(y,v)}}else{if(to(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=qr,s=null,f=Gr,p=i}return h&&f==="text/plain"&&(p=h,h=void 0),{action:s,method:u.toLowerCase(),encType:f,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nc(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function G1(i,o,u,s){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return u?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:o&&Aa(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function Y1(i,o){if(i.id in o)return o[i.id];try{let u=await import(i.module);return o[i.id]=u,u}catch(u){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function V1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function X1(i,o,u){let s=await Promise.all(i.map(async f=>{let h=o.routes[f.route.id];if(h){let p=await Y1(h,u);return p.links?p.links():[]}return[]}));return J1(s.flat(1).filter(V1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Dp(i,o,u,s,f,h){let p=(x,y)=>u[y]?x.route.id!==u[y].route.id:!0,g=(x,y)=>u[y].pathname!==x.pathname||u[y].route.path?.endsWith("*")&&u[y].params["*"]!==x.params["*"];return h==="assets"?o.filter((x,y)=>p(x,y)||g(x,y)):h==="data"?o.filter((x,y)=>{let b=s.routes[x.route.id];if(!b||!b.hasLoader)return!1;if(p(x,y)||g(x,y))return!0;if(x.route.shouldRevalidate){let v=x.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Q1(i,o,{includeHydrateFallback:u}={}){return Z1(i.map(s=>{let f=o.routes[s.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),u&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function Z1(i){return[...new Set(i)]}function K1(i){let o={},u=Object.keys(i).sort();for(let s of u)o[s]=i[s];return o}function J1(i,o){let u=new Set;return new Set(o),i.reduce((s,f)=>{let h=JSON.stringify(K1(f));return u.has(h)||(u.add(h),s.push({key:h,link:f})),s},[])}function jm(){let i=A.useContext(ol);return nc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function F1(){let i=A.useContext(Pr);return nc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var lc=A.createContext(void 0);lc.displayName="FrameworkContext";function Em(){let i=A.useContext(lc);return nc(i,"You must render this element inside a <HydratedRouter> element"),i}function W1(i,o){let u=A.useContext(lc),[s,f]=A.useState(!1),[h,p]=A.useState(!1),{onFocus:g,onBlur:x,onMouseEnter:y,onMouseLeave:b,onTouchStart:v}=o,M=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let w=Q=>{Q.forEach(P=>{p(P.isIntersecting)})},z=new IntersectionObserver(w,{threshold:.5});return M.current&&z.observe(M.current),()=>{z.disconnect()}}},[i]),A.useEffect(()=>{if(s){let w=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(w)}}},[s]);let k=()=>{f(!0)},T=()=>{f(!1),p(!1)};return u?i!=="intent"?[h,M,{}]:[h,M,{onFocus:ii(g,k),onBlur:ii(x,T),onMouseEnter:ii(y,k),onMouseLeave:ii(b,T),onTouchStart:ii(v,k)}]:[!1,M,{}]}function ii(i,o){return u=>{i&&i(u),u.defaultPrevented||o(u)}}function $1({page:i,...o}){let{router:u}=jm(),s=A.useMemo(()=>um(u.routes,i,u.basename),[u.routes,i,u.basename]);return s?A.createElement(P1,{page:i,matches:s,...o}):null}function I1(i){let{manifest:o,routeModules:u}=Em(),[s,f]=A.useState([]);return A.useEffect(()=>{let h=!1;return X1(i,o,u).then(p=>{h||f(p)}),()=>{h=!0}},[i,o,u]),s}function P1({page:i,matches:o,...u}){let s=$t(),{future:f,manifest:h,routeModules:p}=Em(),{basename:g}=jm(),{loaderData:x,matches:y}=F1(),b=A.useMemo(()=>Dp(i,o,y,h,s,"data"),[i,o,y,h,s]),v=A.useMemo(()=>Dp(i,o,y,h,s,"assets"),[i,o,y,h,s]),M=A.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let w=new Set,z=!1;if(o.forEach(P=>{let X=h.routes[P.route.id];!X||!X.hasLoader||(!b.some(le=>le.route.id===P.route.id)&&P.route.id in x&&p[P.route.id]?.shouldRevalidate||X.hasClientLoader?z=!0:w.add(P.route.id))}),w.size===0)return[];let Q=G1(i,g,f.unstable_trailingSlashAwareDataRequests,"data");return z&&w.size>0&&Q.searchParams.set("_routes",o.filter(P=>w.has(P.route.id)).map(P=>P.route.id).join(",")),[Q.pathname+Q.search]},[g,f.unstable_trailingSlashAwareDataRequests,x,s,h,b,o,i,p]),k=A.useMemo(()=>Q1(v,h),[v,h]),T=I1(v);return A.createElement(A.Fragment,null,M.map(w=>A.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...u})),k.map(w=>A.createElement("link",{key:w,rel:"modulepreload",href:w,...u})),T.map(({key:w,link:z})=>A.createElement("link",{key:w,nonce:u.nonce,...z,crossOrigin:z.crossOrigin??u.crossOrigin})))}function ev(...i){return o=>{i.forEach(u=>{typeof u=="function"?u(o):u!=null&&(u.current=o)})}}var tv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tv&&(window.__reactRouterVersion="7.13.1")}catch{}function av({basename:i,children:o,unstable_useTransitions:u,window:s}){let f=A.useRef();f.current==null&&(f.current=Ng({window:s,v5Compat:!0}));let h=f.current,[p,g]=A.useState({action:h.action,location:h.location}),x=A.useCallback(y=>{u===!1?g(y):A.startTransition(()=>g(y))},[u]);return A.useLayoutEffect(()=>h.listen(x),[h,x]),A.createElement(O1,{basename:i,children:o,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:u})}var Am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jr=A.forwardRef(function({onClick:o,discover:u="render",prefetch:s="none",relative:f,reloadDocument:h,replace:p,unstable_mask:g,state:x,target:y,to:b,preventScrollReset:v,viewTransition:M,unstable_defaultShouldRevalidate:k,...T},w){let{basename:z,navigator:Q,unstable_useTransitions:P}=A.useContext(Nt),X=typeof b=="string"&&Am.test(b),le=hm(b,z);b=le.to;let ce=m1(b,{relative:f}),ye=$t(),F=null;if(g){let Oe=Ir(g,[],ye.unstable_mask?ye.unstable_mask.pathname:"/",!0);z!=="/"&&(Oe.pathname=Oe.pathname==="/"?z:la([z,Oe.pathname])),F=Q.createHref(Oe)}let[we,Be,rt]=W1(s,T),$e=rv(b,{replace:p,unstable_mask:g,state:x,target:y,preventScrollReset:v,relative:f,viewTransition:M,unstable_defaultShouldRevalidate:k,unstable_useTransitions:P});function K(Oe){o&&o(Oe),Oe.defaultPrevented||$e(Oe)}let de=!(le.isExternal||h),xe=A.createElement("a",{...T,...rt,href:(de?F:void 0)||le.absoluteURL||ce,onClick:de?K:o,ref:ev(w,Be),target:y,"data-discover":!X&&u==="render"?"true":void 0});return we&&!X?A.createElement(A.Fragment,null,xe,A.createElement($1,{page:ce})):xe});Jr.displayName="Link";var nv=A.forwardRef(function({"aria-current":o="page",caseSensitive:u=!1,className:s="",end:f=!1,style:h,to:p,viewTransition:g,children:x,...y},b){let v=fi(p,{relative:y.relative}),M=$t(),k=A.useContext(Pr),{navigator:T,basename:w}=A.useContext(Nt),z=k!=null&&fv(v)&&g===!0,Q=T.encodeLocation?T.encodeLocation(v).pathname:v.pathname,P=M.pathname,X=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;u||(P=P.toLowerCase(),X=X?X.toLowerCase():null,Q=Q.toLowerCase()),X&&w&&(X=Aa(X,w)||X);const le=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let ce=P===Q||!f&&P.startsWith(Q)&&P.charAt(le)==="/",ye=X!=null&&(X===Q||!f&&X.startsWith(Q)&&X.charAt(Q.length)==="/"),F={isActive:ce,isPending:ye,isTransitioning:z},we=ce?o:void 0,Be;typeof s=="function"?Be=s(F):Be=[s,ce?"active":null,ye?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let rt=typeof h=="function"?h(F):h;return A.createElement(Jr,{...y,"aria-current":we,className:Be,ref:b,style:rt,to:p,viewTransition:g},typeof x=="function"?x(F):x)});nv.displayName="NavLink";var lv=A.forwardRef(({discover:i="render",fetcherKey:o,navigate:u,reloadDocument:s,replace:f,state:h,method:p=qr,action:g,onSubmit:x,relative:y,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:M,...k},T)=>{let{unstable_useTransitions:w}=A.useContext(Nt),z=uv(),Q=cv(g,{relative:y}),P=p.toLowerCase()==="get"?"get":"post",X=typeof g=="string"&&Am.test(g),le=ce=>{if(x&&x(ce),ce.defaultPrevented)return;ce.preventDefault();let ye=ce.nativeEvent.submitter,F=ye?.getAttribute("formmethod")||p,we=()=>z(ye||ce.currentTarget,{fetcherKey:o,method:F,navigate:u,replace:f,state:h,relative:y,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:M});w&&u!==!1?A.startTransition(()=>we()):we()};return A.createElement("form",{ref:T,method:P,action:Q,onSubmit:s?x:le,...k,"data-discover":!X&&i==="render"?"true":void 0})});lv.displayName="Form";function iv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rm(i){let o=A.useContext(ol);return Xe(o,iv(i)),o}function rv(i,{target:o,replace:u,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:x,unstable_useTransitions:y}={}){let b=eo(),v=$t(),M=fi(i,{relative:p});return A.useCallback(k=>{if(U1(k,o)){k.preventDefault();let T=u!==void 0?u:si(v)===si(M),w=()=>b(i,{replace:T,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:x});y?A.startTransition(()=>w()):w()}},[v,b,M,u,s,f,o,i,h,p,g,x,y])}var ov=0,sv=()=>`__${String(++ov)}__`;function uv(){let{router:i}=Rm("useSubmit"),{basename:o}=A.useContext(Nt),u=T1(),s=i.fetch,f=i.navigate;return A.useCallback(async(h,p={})=>{let{action:g,method:x,encType:y,formData:b,body:v}=q1(h,o);if(p.navigate===!1){let M=p.fetcherKey||sv();await s(M,u,p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:v,formMethod:p.method||x,formEncType:p.encType||y,flushSync:p.flushSync})}else await f(p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:v,formMethod:p.method||x,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:u,flushSync:p.flushSync,viewTransition:p.viewTransition})},[s,f,o,u])}function cv(i,{relative:o}={}){let{basename:u}=A.useContext(Nt),s=A.useContext(ia);Xe(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),h={...fi(i||".",{relative:o})},p=$t();if(i==null){h.search=p.search;let g=new URLSearchParams(h.search),x=g.getAll("index");if(x.some(b=>b==="")){g.delete("index"),x.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();h.search=b?`?${b}`:""}}return(!i||i===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(h.pathname=h.pathname==="/"?u:la([u,h.pathname])),si(h)}function fv(i,{relative:o}={}){let u=A.useContext(mm);Xe(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Rm("useViewTransitionState"),f=fi(i,{relative:o});if(!u.isTransitioning)return!1;let h=Aa(u.currentLocation.pathname,s)||u.currentLocation.pathname,p=Aa(u.nextLocation.pathname,s)||u.nextLocation.pathname;return Kr(f.pathname,p)!=null||Kr(f.pathname,h)!=null}const Tm=(...i)=>i.filter((o,u,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===u).join(" ").trim();const dv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,u,s)=>s?s.toUpperCase():u.toLowerCase());const Mp=i=>{const o=hv(i);return o.charAt(0).toUpperCase()+o.slice(1)};var pv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const mv=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const yv=A.forwardRef(({color:i="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:s,className:f="",children:h,iconNode:p,...g},x)=>A.createElement("svg",{ref:x,...pv,width:o,height:o,stroke:i,strokeWidth:s?Number(u)*24/Number(o):u,className:Tm("lucide",f),...!h&&!mv(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,b])=>A.createElement(y,b)),...Array.isArray(h)?h:[h]]));const re=(i,o)=>{const u=A.forwardRef(({className:s,...f},h)=>A.createElement(yv,{ref:h,iconNode:o,className:Tm(`lucide-${dv(Mp(i))}`,`lucide-${i}`,s),...f}));return u.displayName=Mp(i),u};const gv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Yr=re("activity",gv);const vv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xv=re("arrow-left",vv);const bv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Sv=re("arrow-right",bv);const jv=[["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"}]],Bp=re("bot",jv);const Ev=[["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"}]],Av=re("camera",Ev);const Rv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qu=re("check",Rv);const Tv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zv=re("chevron-down",Tv);const Cv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_v=re("chevron-left",Cv);const wv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ui=re("chevron-right",wv);const Ov=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Dv=re("chevron-up",Ov);const Mv=[["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"}]],Bv=re("circle-play",Mv);const Nv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Zu=re("clock",Nv);const Hv=[["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"}]],Uv=re("cpu",Hv);const kv=[["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=re("download",kv);const qv=[["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"}]],zm=re("eye",qv);const Gv=[["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=re("file-code",Gv);const Yv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Nu=re("file-image",Yv);const Vv=[["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"}]],Ku=re("file-text",Vv);const Xv=[["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"}]],Np=re("file",Xv);const Qv=[["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"}]],Hp=re("folder-plus",Qv);const Zv=[["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"}]],Cm=re("folder",Zv);const Kv=[["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"}]],Jv=re("funnel",Kv);const Fv=[["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"}]],Wv=re("github",Fv);const $v=[["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"}]],Iv=re("globe",$v);const Pv=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],ic=re("hard-drive",Pv);const ex=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],tx=re("layers",ex);const ax=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],nx=re("layout-dashboard",ax);const lx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ix=re("loader-circle",lx);const rx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],rc=re("message-square",rx);const ox=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],sx=re("mic-off",ox);const ux=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Up=re("mic",ux);const cx=[["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"}]],fx=re("panels-top-left",cx);const dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],hx=re("plus",dx);const px=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],kp=re("power",px);const mx=[["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"}]],yx=re("refresh-cw",mx);const gx=[["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"}]],Lp=re("rotate-ccw",gx);const vx=[["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"}]],xx=re("save",vx);const bx=[["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"}]],Sx=re("send",bx);const jx=[["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"}]],Ex=re("server",jx);const Ax=[["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"}]],Rx=re("settings",Ax);const Tx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ll=re("shield",Tx);const zx=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Cx=re("terminal",zx);const _x=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],_m=re("trash-2",_x);const wx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wm=re("triangle-alert",wx);const Ox=[["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"}]],Dx=re("upload",Ox);const Mx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Om=re("user",Mx);const Bx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Fr=re("wrench",Bx);const Nx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qp=re("x",Nx);const Hx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],di=re("zap",Hx),Ux=[{icon:nx,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:rc,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:ic,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Fr,label:"Modules",path:"/tools"},{icon:di,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:ll,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Rx,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function kx({user:i,isOpen:o,onToggle:u,onLogout:s}){const f=eo(),h=$t();return c.jsxs("aside",{style:{...nt.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[c.jsxs("div",{style:nt.header,children:[c.jsxs("div",{style:nt.brand,onClick:()=>f("/"),children:[c.jsx("div",{style:nt.logoWrap,children:c.jsx("span",{style:nt.logoChar,children:"स"})}),o&&c.jsxs("div",{style:nt.brandText,children:[c.jsx("span",{style:nt.brandName,children:"SamarthyaBot"}),c.jsx("span",{style:nt.brandSub,children:"v1.0.0"})]})]}),c.jsx("button",{onClick:u,style:nt.toggleBtn,children:o?c.jsx(_v,{size:18}):c.jsx(ui,{size:18})})]}),c.jsx("nav",{style:nt.nav,children:Ux.map(p=>{const g=p.icon,x=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return c.jsxs("button",{onClick:()=>f(p.path),style:{...nt.navItem,...x?nt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:p.label,children:[c.jsx(g,{size:20,style:{minWidth:"20px"}}),o&&c.jsx("span",{children:p.label}),x&&c.jsx("div",{style:nt.activeIndicator})]},p.path)})}),c.jsx("div",{style:nt.footer,children:o&&c.jsxs("div",{style:nt.userInfo,children:[c.jsx("div",{style:nt.avatar,children:(i?.name||"U").charAt(0).toUpperCase()}),c.jsxs("div",{style:nt.userText,children:[c.jsx("div",{style:nt.userName,children:i?.name||"Local Admin"}),c.jsx("div",{style:nt.userStatus,children:"AI Agent Operator"})]})]})})]})}const nt={sidebar:{position:"sticky",top:0,height:"100vh",background:"rgba(10, 10, 26, 0.95)",backdropFilter:"blur(20px)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",zIndex:100,overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)",minHeight:"72px"},brand:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer",overflow:"hidden"},logoWrap:{width:"38px",height:"38px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},logoChar:{fontSize:"1.3rem",color:"#0D0D0D",fontFamily:"var(--font-hindi)",fontWeight:700},brandText:{display:"flex",flexDirection:"column",whiteSpace:"nowrap"},brandName:{fontWeight:700,fontSize:"1.1rem",color:"var(--text-primary)"},brandSub:{fontSize:"0.7rem",color:"var(--text-muted)"},toggleBtn:{background:"var(--bg-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)",width:"30px",height:"30px",borderRadius:"var(--radius-sm)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all var(--transition-fast)",flexShrink:0},nav:{flex:1,padding:"16px 12px",display:"flex",flexDirection:"column",gap:"4px"},navItem:{display:"flex",alignItems:"center",gap:"12px",padding:"12px 14px",borderRadius:"var(--radius-md)",background:"transparent",border:"none",color:"var(--text-secondary)",fontSize:"0.9rem",fontWeight:500,cursor:"pointer",transition:"all var(--transition-fast)",position:"relative",fontFamily:"var(--font-primary)",whiteSpace:"nowrap",width:"100%"},navItemActive:{background:"rgba(255, 153, 51, 0.12)",color:"var(--accent-primary)"},activeIndicator:{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"3px",height:"60%",borderRadius:"0 4px 4px 0",background:"var(--accent-primary)"},footer:{padding:"16px",borderTop:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",gap:"12px"},userInfo:{display:"flex",alignItems:"center",gap:"10px",overflow:"hidden"},avatar:{width:"36px",height:"36px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:700,fontSize:"0.9rem",flexShrink:0},userText:{overflow:"hidden",whiteSpace:"nowrap"},userName:{fontWeight:600,fontSize:"0.85rem",color:"var(--text-primary)"},userStatus:{fontSize:"0.75rem",color:"var(--text-muted)"}};function Dm(i,o){return function(){return i.apply(o,arguments)}}const{toString:Lx}=Object.prototype,{getPrototypeOf:oc}=Object,{iterator:ao,toStringTag:Mm}=Symbol,no=(i=>o=>{const u=Lx.call(o);return i[u]||(i[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),It=i=>(i=i.toLowerCase(),o=>no(o)===i),lo=i=>o=>typeof o===i,{isArray:ul}=Array,il=lo("undefined");function hi(i){return i!==null&&!il(i)&&i.constructor!==null&&!il(i.constructor)&&Et(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const Bm=It("ArrayBuffer");function qx(i){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(i):o=i&&i.buffer&&Bm(i.buffer),o}const Gx=lo("string"),Et=lo("function"),Nm=lo("number"),pi=i=>i!==null&&typeof i=="object",Yx=i=>i===!0||i===!1,Vr=i=>{if(no(i)!=="object")return!1;const o=oc(i);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Mm in i)&&!(ao in i)},Vx=i=>{if(!pi(i)||hi(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},Xx=It("Date"),Qx=It("File"),Zx=It("Blob"),Kx=It("FileList"),Jx=i=>pi(i)&&Et(i.pipe),Fx=i=>{let o;return i&&(typeof FormData=="function"&&i instanceof FormData||Et(i.append)&&((o=no(i))==="formdata"||o==="object"&&Et(i.toString)&&i.toString()==="[object FormData]"))},Wx=It("URLSearchParams"),[$x,Ix,Px,eb]=["ReadableStream","Request","Response","Headers"].map(It),tb=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mi(i,o,{allOwnKeys:u=!1}={}){if(i===null||typeof i>"u")return;let s,f;if(typeof i!="object"&&(i=[i]),ul(i))for(s=0,f=i.length;s<f;s++)o.call(null,i[s],s,i);else{if(hi(i))return;const h=u?Object.getOwnPropertyNames(i):Object.keys(i),p=h.length;let g;for(s=0;s<p;s++)g=h[s],o.call(null,i[g],g,i)}}function Hm(i,o){if(hi(i))return null;o=o.toLowerCase();const u=Object.keys(i);let s=u.length,f;for(;s-- >0;)if(f=u[s],o===f.toLowerCase())return f;return null}const gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Um=i=>!il(i)&&i!==gn;function Ju(){const{caseless:i,skipUndefined:o}=Um(this)&&this||{},u={},s=(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=i&&Hm(u,h)||h;Vr(u[p])&&Vr(f)?u[p]=Ju(u[p],f):Vr(f)?u[p]=Ju({},f):ul(f)?u[p]=f.slice():(!o||!il(f))&&(u[p]=f)};for(let f=0,h=arguments.length;f<h;f++)arguments[f]&&mi(arguments[f],s);return u}const ab=(i,o,u,{allOwnKeys:s}={})=>(mi(o,(f,h)=>{u&&Et(f)?Object.defineProperty(i,h,{value:Dm(f,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,h,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),i),nb=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),lb=(i,o,u,s)=>{i.prototype=Object.create(o.prototype,s),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(i,"super",{value:o.prototype}),u&&Object.assign(i.prototype,u)},ib=(i,o,u,s)=>{let f,h,p;const g={};if(o=o||{},i==null)return o;do{for(f=Object.getOwnPropertyNames(i),h=f.length;h-- >0;)p=f[h],(!s||s(p,i,o))&&!g[p]&&(o[p]=i[p],g[p]=!0);i=u!==!1&&oc(i)}while(i&&(!u||u(i,o))&&i!==Object.prototype);return o},rb=(i,o,u)=>{i=String(i),(u===void 0||u>i.length)&&(u=i.length),u-=o.length;const s=i.indexOf(o,u);return s!==-1&&s===u},ob=i=>{if(!i)return null;if(ul(i))return i;let o=i.length;if(!Nm(o))return null;const u=new Array(o);for(;o-- >0;)u[o]=i[o];return u},sb=(i=>o=>i&&o instanceof i)(typeof Uint8Array<"u"&&oc(Uint8Array)),ub=(i,o)=>{const s=(i&&i[ao]).call(i);let f;for(;(f=s.next())&&!f.done;){const h=f.value;o.call(i,h[0],h[1])}},cb=(i,o)=>{let u;const s=[];for(;(u=i.exec(o))!==null;)s.push(u);return s},fb=It("HTMLFormElement"),db=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,s,f){return s.toUpperCase()+f}),Gp=(({hasOwnProperty:i})=>(o,u)=>i.call(o,u))(Object.prototype),hb=It("RegExp"),km=(i,o)=>{const u=Object.getOwnPropertyDescriptors(i),s={};mi(u,(f,h)=>{let p;(p=o(f,h,i))!==!1&&(s[h]=p||f)}),Object.defineProperties(i,s)},pb=i=>{km(i,(o,u)=>{if(Et(i)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const s=i[u];if(Et(s)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},mb=(i,o)=>{const u={},s=f=>{f.forEach(h=>{u[h]=!0})};return ul(i)?s(i):s(String(i).split(o)),u},yb=()=>{},gb=(i,o)=>i!=null&&Number.isFinite(i=+i)?i:o;function vb(i){return!!(i&&Et(i.append)&&i[Mm]==="FormData"&&i[ao])}const xb=i=>{const o=new Array(10),u=(s,f)=>{if(pi(s)){if(o.indexOf(s)>=0)return;if(hi(s))return s;if(!("toJSON"in s)){o[f]=s;const h=ul(s)?[]:{};return mi(s,(p,g)=>{const x=u(p,f+1);!il(x)&&(h[g]=x)}),o[f]=void 0,h}}return s};return u(i,0)},bb=It("AsyncFunction"),Sb=i=>i&&(pi(i)||Et(i))&&Et(i.then)&&Et(i.catch),Lm=((i,o)=>i?setImmediate:o?((u,s)=>(gn.addEventListener("message",({source:f,data:h})=>{f===gn&&h===u&&s.length&&s.shift()()},!1),f=>{s.push(f),gn.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",Et(gn.postMessage)),jb=typeof queueMicrotask<"u"?queueMicrotask.bind(gn):typeof process<"u"&&process.nextTick||Lm,Eb=i=>i!=null&&Et(i[ao]),N={isArray:ul,isArrayBuffer:Bm,isBuffer:hi,isFormData:Fx,isArrayBufferView:qx,isString:Gx,isNumber:Nm,isBoolean:Yx,isObject:pi,isPlainObject:Vr,isEmptyObject:Vx,isReadableStream:$x,isRequest:Ix,isResponse:Px,isHeaders:eb,isUndefined:il,isDate:Xx,isFile:Qx,isBlob:Zx,isRegExp:hb,isFunction:Et,isStream:Jx,isURLSearchParams:Wx,isTypedArray:sb,isFileList:Kx,forEach:mi,merge:Ju,extend:ab,trim:tb,stripBOM:nb,inherits:lb,toFlatObject:ib,kindOf:no,kindOfTest:It,endsWith:rb,toArray:ob,forEachEntry:ub,matchAll:cb,isHTMLForm:fb,hasOwnProperty:Gp,hasOwnProp:Gp,reduceDescriptors:km,freezeMethods:pb,toObjectSet:mb,toCamelCase:db,noop:yb,toFiniteNumber:gb,findKey:Hm,global:gn,isContextDefined:Um,isSpecCompliantForm:vb,toJSONObject:xb,isAsyncFn:bb,isThenable:Sb,setImmediate:Lm,asap:jb,isIterable:Eb};let oe=class qm extends Error{static from(o,u,s,f,h,p){const g=new qm(o.message,u||o.code,s,f,h);return g.cause=o,g.name=o.name,p&&Object.assign(g,p),g}constructor(o,u,s,f,h){super(o),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),s&&(this.config=s),f&&(this.request=f),h&&(this.response=h,this.status=h.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}};oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";oe.ERR_BAD_OPTION="ERR_BAD_OPTION";oe.ECONNABORTED="ECONNABORTED";oe.ETIMEDOUT="ETIMEDOUT";oe.ERR_NETWORK="ERR_NETWORK";oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";oe.ERR_DEPRECATED="ERR_DEPRECATED";oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";oe.ERR_CANCELED="ERR_CANCELED";oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";oe.ERR_INVALID_URL="ERR_INVALID_URL";const Ab=null;function Fu(i){return N.isPlainObject(i)||N.isArray(i)}function Gm(i){return N.endsWith(i,"[]")?i.slice(0,-2):i}function Yp(i,o,u){return i?i.concat(o).map(function(f,h){return f=Gm(f),!u&&h?"["+f+"]":f}).join(u?".":""):o}function Rb(i){return N.isArray(i)&&!i.some(Fu)}const Tb=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function io(i,o,u){if(!N.isObject(i))throw new TypeError("target must be an object");o=o||new FormData,u=N.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,z){return!N.isUndefined(z[w])});const s=u.metaTokens,f=u.visitor||b,h=u.dots,p=u.indexes,x=(u.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(f))throw new TypeError("visitor must be a function");function y(T){if(T===null)return"";if(N.isDate(T))return T.toISOString();if(N.isBoolean(T))return T.toString();if(!x&&N.isBlob(T))throw new oe("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(T)||N.isTypedArray(T)?x&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function b(T,w,z){let Q=T;if(T&&!z&&typeof T=="object"){if(N.endsWith(w,"{}"))w=s?w:w.slice(0,-2),T=JSON.stringify(T);else if(N.isArray(T)&&Rb(T)||(N.isFileList(T)||N.endsWith(w,"[]"))&&(Q=N.toArray(T)))return w=Gm(w),Q.forEach(function(X,le){!(N.isUndefined(X)||X===null)&&o.append(p===!0?Yp([w],le,h):p===null?w:w+"[]",y(X))}),!1}return Fu(T)?!0:(o.append(Yp(z,w,h),y(T)),!1)}const v=[],M=Object.assign(Tb,{defaultVisitor:b,convertValue:y,isVisitable:Fu});function k(T,w){if(!N.isUndefined(T)){if(v.indexOf(T)!==-1)throw Error("Circular reference detected in "+w.join("."));v.push(T),N.forEach(T,function(Q,P){(!(N.isUndefined(Q)||Q===null)&&f.call(o,Q,N.isString(P)?P.trim():P,w,M))===!0&&k(Q,w?w.concat(P):[P])}),v.pop()}}if(!N.isObject(i))throw new TypeError("data must be an object");return k(i),o}function Vp(i){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function sc(i,o){this._pairs=[],i&&io(i,this,o)}const Ym=sc.prototype;Ym.append=function(o,u){this._pairs.push([o,u])};Ym.toString=function(o){const u=o?function(s){return o.call(this,s,Vp)}:Vp;return this._pairs.map(function(f){return u(f[0])+"="+u(f[1])},"").join("&")};function zb(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vm(i,o,u){if(!o)return i;const s=u&&u.encode||zb,f=N.isFunction(u)?{serialize:u}:u,h=f&&f.serialize;let p;if(h?p=h(o,f):p=N.isURLSearchParams(o)?o.toString():new sc(o,f).toString(s),p){const g=i.indexOf("#");g!==-1&&(i=i.slice(0,g)),i+=(i.indexOf("?")===-1?"?":"&")+p}return i}class Xp{constructor(){this.handlers=[]}use(o,u,s){return this.handlers.push({fulfilled:o,rejected:u,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){N.forEach(this.handlers,function(s){s!==null&&o(s)})}}const uc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Cb=typeof URLSearchParams<"u"?URLSearchParams:sc,_b=typeof FormData<"u"?FormData:null,wb=typeof Blob<"u"?Blob:null,Ob={isBrowser:!0,classes:{URLSearchParams:Cb,FormData:_b,Blob:wb},protocols:["http","https","file","blob","url","data"]},cc=typeof window<"u"&&typeof document<"u",Wu=typeof navigator=="object"&&navigator||void 0,Db=cc&&(!Wu||["ReactNative","NativeScript","NS"].indexOf(Wu.product)<0),Mb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bb=cc&&window.location.href||"http://localhost",Nb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cc,hasStandardBrowserEnv:Db,hasStandardBrowserWebWorkerEnv:Mb,navigator:Wu,origin:Bb},Symbol.toStringTag,{value:"Module"})),pt={...Nb,...Ob};function Hb(i,o){return io(i,new pt.classes.URLSearchParams,{visitor:function(u,s,f,h){return pt.isNode&&N.isBuffer(u)?(this.append(s,u.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...o})}function Ub(i){return N.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}function kb(i){const o={},u=Object.keys(i);let s;const f=u.length;let h;for(s=0;s<f;s++)h=u[s],o[h]=i[h];return o}function Xm(i){function o(u,s,f,h){let p=u[h++];if(p==="__proto__")return!0;const g=Number.isFinite(+p),x=h>=u.length;return p=!p&&N.isArray(f)?f.length:p,x?(N.hasOwnProp(f,p)?f[p]=[f[p],s]:f[p]=s,!g):((!f[p]||!N.isObject(f[p]))&&(f[p]=[]),o(u,s,f[p],h)&&N.isArray(f[p])&&(f[p]=kb(f[p])),!g)}if(N.isFormData(i)&&N.isFunction(i.entries)){const u={};return N.forEachEntry(i,(s,f)=>{o(Ub(s),f,u,0)}),u}return null}function Lb(i,o,u){if(N.isString(i))try{return(o||JSON.parse)(i),N.trim(i)}catch(s){if(s.name!=="SyntaxError")throw s}return(u||JSON.stringify)(i)}const yi={transitional:uc,adapter:["xhr","http","fetch"],transformRequest:[function(o,u){const s=u.getContentType()||"",f=s.indexOf("application/json")>-1,h=N.isObject(o);if(h&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return f?JSON.stringify(Xm(o)):o;if(N.isArrayBuffer(o)||N.isBuffer(o)||N.isStream(o)||N.isFile(o)||N.isBlob(o)||N.isReadableStream(o))return o;if(N.isArrayBufferView(o))return o.buffer;if(N.isURLSearchParams(o))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let g;if(h){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Hb(o,this.formSerializer).toString();if((g=N.isFileList(o))||s.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return io(g?{"files[]":o}:o,x&&new x,this.formSerializer)}}return h||f?(u.setContentType("application/json",!1),Lb(o)):o}],transformResponse:[function(o){const u=this.transitional||yi.transitional,s=u&&u.forcedJSONParsing,f=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(s&&!this.responseType||f)){const p=!(u&&u.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(g){if(p)throw g.name==="SyntaxError"?oe.from(g,oe.ERR_BAD_RESPONSE,this,null,this.response):g}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],i=>{yi.headers[i]={}});const qb=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gb=i=>{const o={};let u,s,f;return i&&i.split(`
12
- `).forEach(function(p){f=p.indexOf(":"),u=p.substring(0,f).trim().toLowerCase(),s=p.substring(f+1).trim(),!(!u||o[u]&&qb[u])&&(u==="set-cookie"?o[u]?o[u].push(s):o[u]=[s]:o[u]=o[u]?o[u]+", "+s:s)}),o},Qp=Symbol("internals");function ri(i){return i&&String(i).trim().toLowerCase()}function Xr(i){return i===!1||i==null?i:N.isArray(i)?i.map(Xr):String(i)}function Yb(i){const o=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=u.exec(i);)o[s[1]]=s[2];return o}const Vb=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Hu(i,o,u,s,f){if(N.isFunction(s))return s.call(this,o,u);if(f&&(o=u),!!N.isString(o)){if(N.isString(s))return o.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(o)}}function Xb(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,u,s)=>u.toUpperCase()+s)}function Qb(i,o){const u=N.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(i,s+u,{value:function(f,h,p){return this[s].call(this,o,f,h,p)},configurable:!0})})}let At=class{constructor(o){o&&this.set(o)}set(o,u,s){const f=this;function h(g,x,y){const b=ri(x);if(!b)throw new Error("header name must be a non-empty string");const v=N.findKey(f,b);(!v||f[v]===void 0||y===!0||y===void 0&&f[v]!==!1)&&(f[v||x]=Xr(g))}const p=(g,x)=>N.forEach(g,(y,b)=>h(y,b,x));if(N.isPlainObject(o)||o instanceof this.constructor)p(o,u);else if(N.isString(o)&&(o=o.trim())&&!Vb(o))p(Gb(o),u);else if(N.isObject(o)&&N.isIterable(o)){let g={},x,y;for(const b of o){if(!N.isArray(b))throw TypeError("Object iterator must return a key-value pair");g[y=b[0]]=(x=g[y])?N.isArray(x)?[...x,b[1]]:[x,b[1]]:b[1]}p(g,u)}else o!=null&&h(u,o,s);return this}get(o,u){if(o=ri(o),o){const s=N.findKey(this,o);if(s){const f=this[s];if(!u)return f;if(u===!0)return Yb(f);if(N.isFunction(u))return u.call(this,f,s);if(N.isRegExp(u))return u.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,u){if(o=ri(o),o){const s=N.findKey(this,o);return!!(s&&this[s]!==void 0&&(!u||Hu(this,this[s],s,u)))}return!1}delete(o,u){const s=this;let f=!1;function h(p){if(p=ri(p),p){const g=N.findKey(s,p);g&&(!u||Hu(s,s[g],g,u))&&(delete s[g],f=!0)}}return N.isArray(o)?o.forEach(h):h(o),f}clear(o){const u=Object.keys(this);let s=u.length,f=!1;for(;s--;){const h=u[s];(!o||Hu(this,this[h],h,o,!0))&&(delete this[h],f=!0)}return f}normalize(o){const u=this,s={};return N.forEach(this,(f,h)=>{const p=N.findKey(s,h);if(p){u[p]=Xr(f),delete u[h];return}const g=o?Xb(h):String(h).trim();g!==h&&delete u[h],u[g]=Xr(f),s[g]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const u=Object.create(null);return N.forEach(this,(s,f)=>{s!=null&&s!==!1&&(u[f]=o&&N.isArray(s)?s.join(", "):s)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,u])=>o+": "+u).join(`
13
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...u){const s=new this(o);return u.forEach(f=>s.set(f)),s}static accessor(o){const s=(this[Qp]=this[Qp]={accessors:{}}).accessors,f=this.prototype;function h(p){const g=ri(p);s[g]||(Qb(f,p),s[g]=!0)}return N.isArray(o)?o.forEach(h):h(o),this}};At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(At.prototype,({value:i},o)=>{let u=o[0].toUpperCase()+o.slice(1);return{get:()=>i,set(s){this[u]=s}}});N.freezeMethods(At);function Uu(i,o){const u=this||yi,s=o||u,f=At.from(s.headers);let h=s.data;return N.forEach(i,function(g){h=g.call(u,h,f.normalize(),o?o.status:void 0)}),f.normalize(),h}function Qm(i){return!!(i&&i.__CANCEL__)}let gi=class extends oe{constructor(o,u,s){super(o??"canceled",oe.ERR_CANCELED,u,s),this.name="CanceledError",this.__CANCEL__=!0}};function Zm(i,o,u){const s=u.config.validateStatus;!u.status||!s||s(u.status)?i(u):o(new oe("Request failed with status code "+u.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function Zb(i){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return o&&o[1]||""}function Kb(i,o){i=i||10;const u=new Array(i),s=new Array(i);let f=0,h=0,p;return o=o!==void 0?o:1e3,function(x){const y=Date.now(),b=s[h];p||(p=y),u[f]=x,s[f]=y;let v=h,M=0;for(;v!==f;)M+=u[v++],v=v%i;if(f=(f+1)%i,f===h&&(h=(h+1)%i),y-p<o)return;const k=b&&y-b;return k?Math.round(M*1e3/k):void 0}}function Jb(i,o){let u=0,s=1e3/o,f,h;const p=(y,b=Date.now())=>{u=b,f=null,h&&(clearTimeout(h),h=null),i(...y)};return[(...y)=>{const b=Date.now(),v=b-u;v>=s?p(y,b):(f=y,h||(h=setTimeout(()=>{h=null,p(f)},s-v)))},()=>f&&p(f)]}const Wr=(i,o,u=3)=>{let s=0;const f=Kb(50,250);return Jb(h=>{const p=h.loaded,g=h.lengthComputable?h.total:void 0,x=p-s,y=f(x),b=p<=g;s=p;const v={loaded:p,total:g,progress:g?p/g:void 0,bytes:x,rate:y||void 0,estimated:y&&g&&b?(g-p)/y:void 0,event:h,lengthComputable:g!=null,[o?"download":"upload"]:!0};i(v)},u)},Zp=(i,o)=>{const u=i!=null;return[s=>o[0]({lengthComputable:u,total:i,loaded:s}),o[1]]},Kp=i=>(...o)=>N.asap(()=>i(...o)),Fb=pt.hasStandardBrowserEnv?((i,o)=>u=>(u=new URL(u,pt.origin),i.protocol===u.protocol&&i.host===u.host&&(o||i.port===u.port)))(new URL(pt.origin),pt.navigator&&/(msie|trident)/i.test(pt.navigator.userAgent)):()=>!0,Wb=pt.hasStandardBrowserEnv?{write(i,o,u,s,f,h,p){if(typeof document>"u")return;const g=[`${i}=${encodeURIComponent(o)}`];N.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),N.isString(s)&&g.push(`path=${s}`),N.isString(f)&&g.push(`domain=${f}`),h===!0&&g.push("secure"),N.isString(p)&&g.push(`SameSite=${p}`),document.cookie=g.join("; ")},read(i){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $b(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function Ib(i,o){return o?i.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):i}function Km(i,o,u){let s=!$b(o);return i&&(s||u==!1)?Ib(i,o):o}const Jp=i=>i instanceof At?{...i}:i;function xn(i,o){o=o||{};const u={};function s(y,b,v,M){return N.isPlainObject(y)&&N.isPlainObject(b)?N.merge.call({caseless:M},y,b):N.isPlainObject(b)?N.merge({},b):N.isArray(b)?b.slice():b}function f(y,b,v,M){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y,v,M)}else return s(y,b,v,M)}function h(y,b){if(!N.isUndefined(b))return s(void 0,b)}function p(y,b){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y)}else return s(void 0,b)}function g(y,b,v){if(v in o)return s(y,b);if(v in i)return s(void 0,y)}const x={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(y,b,v)=>f(Jp(y),Jp(b),v,!0)};return N.forEach(Object.keys({...i,...o}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const v=N.hasOwnProp(x,b)?x[b]:f,M=v(i[b],o[b],b);N.isUndefined(M)&&v!==g||(u[b]=M)}),u}const Jm=i=>{const o=xn({},i);let{data:u,withXSRFToken:s,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:g}=o;if(o.headers=p=At.from(p),o.url=Vm(Km(o.baseURL,o.url,o.allowAbsoluteUrls),i.params,i.paramsSerializer),g&&p.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),N.isFormData(u)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(N.isFunction(u.getHeaders)){const x=u.getHeaders(),y=["content-type","content-length"];Object.entries(x).forEach(([b,v])=>{y.includes(b.toLowerCase())&&p.set(b,v)})}}if(pt.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(o)),s||s!==!1&&Fb(o.url))){const x=f&&h&&Wb.read(h);x&&p.set(f,x)}return o},Pb=typeof XMLHttpRequest<"u",e2=Pb&&function(i){return new Promise(function(u,s){const f=Jm(i);let h=f.data;const p=At.from(f.headers).normalize();let{responseType:g,onUploadProgress:x,onDownloadProgress:y}=f,b,v,M,k,T;function w(){k&&k(),T&&T(),f.cancelToken&&f.cancelToken.unsubscribe(b),f.signal&&f.signal.removeEventListener("abort",b)}let z=new XMLHttpRequest;z.open(f.method.toUpperCase(),f.url,!0),z.timeout=f.timeout;function Q(){if(!z)return;const X=At.from("getAllResponseHeaders"in z&&z.getAllResponseHeaders()),ce={data:!g||g==="text"||g==="json"?z.responseText:z.response,status:z.status,statusText:z.statusText,headers:X,config:i,request:z};Zm(function(F){u(F),w()},function(F){s(F),w()},ce),z=null}"onloadend"in z?z.onloadend=Q:z.onreadystatechange=function(){!z||z.readyState!==4||z.status===0&&!(z.responseURL&&z.responseURL.indexOf("file:")===0)||setTimeout(Q)},z.onabort=function(){z&&(s(new oe("Request aborted",oe.ECONNABORTED,i,z)),z=null)},z.onerror=function(le){const ce=le&&le.message?le.message:"Network Error",ye=new oe(ce,oe.ERR_NETWORK,i,z);ye.event=le||null,s(ye),z=null},z.ontimeout=function(){let le=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const ce=f.transitional||uc;f.timeoutErrorMessage&&(le=f.timeoutErrorMessage),s(new oe(le,ce.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,i,z)),z=null},h===void 0&&p.setContentType(null),"setRequestHeader"in z&&N.forEach(p.toJSON(),function(le,ce){z.setRequestHeader(ce,le)}),N.isUndefined(f.withCredentials)||(z.withCredentials=!!f.withCredentials),g&&g!=="json"&&(z.responseType=f.responseType),y&&([M,T]=Wr(y,!0),z.addEventListener("progress",M)),x&&z.upload&&([v,k]=Wr(x),z.upload.addEventListener("progress",v),z.upload.addEventListener("loadend",k)),(f.cancelToken||f.signal)&&(b=X=>{z&&(s(!X||X.type?new gi(null,i,z):X),z.abort(),z=null)},f.cancelToken&&f.cancelToken.subscribe(b),f.signal&&(f.signal.aborted?b():f.signal.addEventListener("abort",b)));const P=Zb(f.url);if(P&&pt.protocols.indexOf(P)===-1){s(new oe("Unsupported protocol "+P+":",oe.ERR_BAD_REQUEST,i));return}z.send(h||null)})},t2=(i,o)=>{const{length:u}=i=i?i.filter(Boolean):[];if(o||u){let s=new AbortController,f;const h=function(y){if(!f){f=!0,g();const b=y instanceof Error?y:this.reason;s.abort(b instanceof oe?b:new gi(b instanceof Error?b.message:b))}};let p=o&&setTimeout(()=>{p=null,h(new oe(`timeout of ${o}ms exceeded`,oe.ETIMEDOUT))},o);const g=()=>{i&&(p&&clearTimeout(p),p=null,i.forEach(y=>{y.unsubscribe?y.unsubscribe(h):y.removeEventListener("abort",h)}),i=null)};i.forEach(y=>y.addEventListener("abort",h));const{signal:x}=s;return x.unsubscribe=()=>N.asap(g),x}},a2=function*(i,o){let u=i.byteLength;if(u<o){yield i;return}let s=0,f;for(;s<u;)f=s+o,yield i.slice(s,f),s=f},n2=async function*(i,o){for await(const u of l2(i))yield*a2(u,o)},l2=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const o=i.getReader();try{for(;;){const{done:u,value:s}=await o.read();if(u)break;yield s}}finally{await o.cancel()}},Fp=(i,o,u,s)=>{const f=n2(i,o);let h=0,p,g=x=>{p||(p=!0,s&&s(x))};return new ReadableStream({async pull(x){try{const{done:y,value:b}=await f.next();if(y){g(),x.close();return}let v=b.byteLength;if(u){let M=h+=v;u(M)}x.enqueue(new Uint8Array(b))}catch(y){throw g(y),y}},cancel(x){return g(x),f.return()}},{highWaterMark:2})},Wp=64*1024,{isFunction:kr}=N,i2=(({Request:i,Response:o})=>({Request:i,Response:o}))(N.global),{ReadableStream:$p,TextEncoder:Ip}=N.global,Pp=(i,...o)=>{try{return!!i(...o)}catch{return!1}},r2=i=>{i=N.merge.call({skipUndefined:!0},i2,i);const{fetch:o,Request:u,Response:s}=i,f=o?kr(o):typeof fetch=="function",h=kr(u),p=kr(s);if(!f)return!1;const g=f&&kr($p),x=f&&(typeof Ip=="function"?(T=>w=>T.encode(w))(new Ip):async T=>new Uint8Array(await new u(T).arrayBuffer())),y=h&&g&&Pp(()=>{let T=!1;const w=new u(pt.origin,{body:new $p,method:"POST",get duplex(){return T=!0,"half"}}).headers.has("Content-Type");return T&&!w}),b=p&&g&&Pp(()=>N.isReadableStream(new s("").body)),v={stream:b&&(T=>T.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!v[T]&&(v[T]=(w,z)=>{let Q=w&&w[T];if(Q)return Q.call(w);throw new oe(`Response type '${T}' is not supported`,oe.ERR_NOT_SUPPORT,z)})});const M=async T=>{if(T==null)return 0;if(N.isBlob(T))return T.size;if(N.isSpecCompliantForm(T))return(await new u(pt.origin,{method:"POST",body:T}).arrayBuffer()).byteLength;if(N.isArrayBufferView(T)||N.isArrayBuffer(T))return T.byteLength;if(N.isURLSearchParams(T)&&(T=T+""),N.isString(T))return(await x(T)).byteLength},k=async(T,w)=>{const z=N.toFiniteNumber(T.getContentLength());return z??M(w)};return async T=>{let{url:w,method:z,data:Q,signal:P,cancelToken:X,timeout:le,onDownloadProgress:ce,onUploadProgress:ye,responseType:F,headers:we,withCredentials:Be="same-origin",fetchOptions:rt}=Jm(T),$e=o||fetch;F=F?(F+"").toLowerCase():"text";let K=t2([P,X&&X.toAbortSignal()],le),de=null;const xe=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let Oe;try{if(ye&&y&&z!=="get"&&z!=="head"&&(Oe=await k(we,Q))!==0){let S=new u(w,{method:"POST",body:Q,duplex:"half"}),B;if(N.isFormData(Q)&&(B=S.headers.get("content-type"))&&we.setContentType(B),S.body){const[G,V]=Zp(Oe,Wr(Kp(ye)));Q=Fp(S.body,Wp,G,V)}}N.isString(Be)||(Be=Be?"include":"omit");const D=h&&"credentials"in u.prototype,Z={...rt,signal:K,method:z.toUpperCase(),headers:we.normalize().toJSON(),body:Q,duplex:"half",credentials:D?Be:void 0};de=h&&new u(w,Z);let ae=await(h?$e(de,rt):$e(w,Z));const Re=b&&(F==="stream"||F==="response");if(b&&(ce||Re&&xe)){const S={};["status","statusText","headers"].forEach(I=>{S[I]=ae[I]});const B=N.toFiniteNumber(ae.headers.get("content-length")),[G,V]=ce&&Zp(B,Wr(Kp(ce),!0))||[];ae=new s(Fp(ae.body,Wp,G,()=>{V&&V(),xe&&xe()}),S)}F=F||"text";let J=await v[N.findKey(v,F)||"text"](ae,T);return!Re&&xe&&xe(),await new Promise((S,B)=>{Zm(S,B,{data:J,headers:At.from(ae.headers),status:ae.status,statusText:ae.statusText,config:T,request:de})})}catch(D){throw xe&&xe(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,T,de,D&&D.response),{cause:D.cause||D}):oe.from(D,D&&D.code,T,de,D&&D.response)}}},o2=new Map,Fm=i=>{let o=i&&i.env||{};const{fetch:u,Request:s,Response:f}=o,h=[s,f,u];let p=h.length,g=p,x,y,b=o2;for(;g--;)x=h[g],y=b.get(x),y===void 0&&b.set(x,y=g?new Map:r2(o)),b=y;return y};Fm();const fc={http:Ab,xhr:e2,fetch:{get:Fm}};N.forEach(fc,(i,o)=>{if(i){try{Object.defineProperty(i,"name",{value:o})}catch{}Object.defineProperty(i,"adapterName",{value:o})}});const em=i=>`- ${i}`,s2=i=>N.isFunction(i)||i===null||i===!1;function u2(i,o){i=N.isArray(i)?i:[i];const{length:u}=i;let s,f;const h={};for(let p=0;p<u;p++){s=i[p];let g;if(f=s,!s2(s)&&(f=fc[(g=String(s)).toLowerCase()],f===void 0))throw new oe(`Unknown adapter '${g}'`);if(f&&(N.isFunction(f)||(f=f.get(o))))break;h[g||"#"+p]=f}if(!f){const p=Object.entries(h).map(([x,y])=>`adapter ${x} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=u?p.length>1?`since :
14
- `+p.map(em).join(`
15
- `):" "+em(p[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return f}const Wm={getAdapter:u2,adapters:fc};function ku(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new gi(null,i)}function tm(i){return ku(i),i.headers=At.from(i.headers),i.data=Uu.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),Wm.getAdapter(i.adapter||yi.adapter,i)(i).then(function(s){return ku(i),s.data=Uu.call(i,i.transformResponse,s),s.headers=At.from(s.headers),s},function(s){return Qm(s)||(ku(i),s&&s.response&&(s.response.data=Uu.call(i,i.transformResponse,s.response),s.response.headers=At.from(s.response.headers))),Promise.reject(s)})}const $m="1.13.5",ro={};["object","boolean","number","function","string","symbol"].forEach((i,o)=>{ro[i]=function(s){return typeof s===i||"a"+(o<1?"n ":" ")+i}});const am={};ro.transitional=function(o,u,s){function f(h,p){return"[Axios v"+$m+"] Transitional option '"+h+"'"+p+(s?". "+s:"")}return(h,p,g)=>{if(o===!1)throw new oe(f(p," has been removed"+(u?" in "+u:"")),oe.ERR_DEPRECATED);return u&&!am[p]&&(am[p]=!0,console.warn(f(p," has been deprecated since v"+u+" and will be removed in the near future"))),o?o(h,p,g):!0}};ro.spelling=function(o){return(u,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function c2(i,o,u){if(typeof i!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(i);let f=s.length;for(;f-- >0;){const h=s[f],p=o[h];if(p){const g=i[h],x=g===void 0||p(g,h,i);if(x!==!0)throw new oe("option "+h+" must be "+x,oe.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new oe("Unknown option "+h,oe.ERR_BAD_OPTION)}}const Qr={assertOptions:c2,validators:ro},Zt=Qr.validators;let vn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Xp,response:new Xp}}async request(o,u){try{return await this._request(o,u)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{s.stack?h&&!String(s.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(s.stack+=`
16
- `+h):s.stack=h}catch{}}throw s}}_request(o,u){typeof o=="string"?(u=u||{},u.url=o):u=o||{},u=xn(this.defaults,u);const{transitional:s,paramsSerializer:f,headers:h}=u;s!==void 0&&Qr.assertOptions(s,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean),legacyInterceptorReqResOrdering:Zt.transitional(Zt.boolean)},!1),f!=null&&(N.isFunction(f)?u.paramsSerializer={serialize:f}:Qr.assertOptions(f,{encode:Zt.function,serialize:Zt.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Qr.assertOptions(u,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let p=h&&N.merge(h.common,h[u.method]);h&&N.forEach(["delete","get","head","post","put","patch","common"],T=>{delete h[T]}),u.headers=At.concat(p,h);const g=[];let x=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(u)===!1)return;x=x&&w.synchronous;const z=u.transitional||uc;z&&z.legacyInterceptorReqResOrdering?g.unshift(w.fulfilled,w.rejected):g.push(w.fulfilled,w.rejected)});const y=[];this.interceptors.response.forEach(function(w){y.push(w.fulfilled,w.rejected)});let b,v=0,M;if(!x){const T=[tm.bind(this),void 0];for(T.unshift(...g),T.push(...y),M=T.length,b=Promise.resolve(u);v<M;)b=b.then(T[v++],T[v++]);return b}M=g.length;let k=u;for(;v<M;){const T=g[v++],w=g[v++];try{k=T(k)}catch(z){w.call(this,z);break}}try{b=tm.call(this,k)}catch(T){return Promise.reject(T)}for(v=0,M=y.length;v<M;)b=b.then(y[v++],y[v++]);return b}getUri(o){o=xn(this.defaults,o);const u=Km(o.baseURL,o.url,o.allowAbsoluteUrls);return Vm(u,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){vn.prototype[o]=function(u,s){return this.request(xn(s||{},{method:o,url:u,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(o){function u(s){return function(h,p,g){return this.request(xn(g||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}vn.prototype[o]=u(),vn.prototype[o+"Form"]=u(!0)});let f2=class Im{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(h){u=h});const s=this;this.promise.then(f=>{if(!s._listeners)return;let h=s._listeners.length;for(;h-- >0;)s._listeners[h](f);s._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(g=>{s.subscribe(g),h=g}).then(f);return p.cancel=function(){s.unsubscribe(h)},p},o(function(h,p,g){s.reason||(s.reason=new gi(h,p,g),u(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const u=this._listeners.indexOf(o);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const o=new AbortController,u=s=>{o.abort(s)};return this.subscribe(u),o.signal.unsubscribe=()=>this.unsubscribe(u),o.signal}static source(){let o;return{token:new Im(function(f){o=f}),cancel:o}}};function d2(i){return function(u){return i.apply(null,u)}}function h2(i){return N.isObject(i)&&i.isAxiosError===!0}const $u={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($u).forEach(([i,o])=>{$u[o]=i});function Pm(i){const o=new vn(i),u=Dm(vn.prototype.request,o);return N.extend(u,vn.prototype,o,{allOwnKeys:!0}),N.extend(u,o,null,{allOwnKeys:!0}),u.create=function(f){return Pm(xn(i,f))},u}const We=Pm(yi);We.Axios=vn;We.CanceledError=gi;We.CancelToken=f2;We.isCancel=Qm;We.VERSION=$m;We.toFormData=io;We.AxiosError=oe;We.Cancel=We.CanceledError;We.all=function(o){return Promise.all(o)};We.spread=d2;We.isAxiosError=h2;We.mergeConfig=xn;We.AxiosHeaders=At;We.formToJSON=i=>Xm(N.isHTMLForm(i)?new FormData(i):i);We.getAdapter=Wm.getAdapter;We.HttpStatusCode=$u;We.default=We;const{Axios:N2,AxiosError:H2,CanceledError:U2,isCancel:k2,CancelToken:L2,VERSION:q2,all:G2,Cancel:Y2,isAxiosError:V2,spread:X2,toFormData:Q2,AxiosHeaders:Z2,HttpStatusCode:K2,formToJSON:J2,getAdapter:F2,mergeConfig:W2}=We,e0="/api",ke=We.create({baseURL:e0,headers:{"Content-Type":"application/json"}});ke.interceptors.request.use(i=>{const o=localStorage.getItem("samarthya_token");return o&&(i.headers.Authorization=`Bearer ${o}`),i});const dc={register:i=>ke.post("/auth/register",i),login:i=>ke.post("/auth/login",i),demoLogin:()=>ke.post("/auth/demo"),getProfile:()=>ke.get("/auth/profile"),updateProfile:i=>ke.put("/auth/profile",i)},oi={sendMessage:i=>ke.post("/chat/message",i),getConversations:()=>ke.get("/chat/conversations"),getConversation:i=>ke.get(`/chat/conversations/${i}`),deleteConversation:i=>ke.delete(`/chat/conversations/${i}`),togglePin:i=>ke.patch(`/chat/conversations/${i}/pin`)},Zr={getLogs:i=>ke.get("/audit/logs",{params:i}),getStats:()=>ke.get("/audit/stats"),rollback:i=>ke.post(`/audit/rollback/${i}`)},Lu={getAll:()=>ke.get("/tools"),getPacks:()=>ke.get("/tools/packs"),getPackTools:i=>ke.get(`/tools/packs/${i}`)},p2={analyze:(i,o)=>ke.post("/screen/analyze",{image:i,prompt:o}),getSupported:()=>ke.get("/screen/supported")},yn={list:i=>ke.get("/files/list",{params:{path:i}}),read:i=>ke.get("/files/read",{params:{path:i}}),download:i=>`${e0}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,o)=>ke.post("/files/mkdir",{name:i,parentPath:o}),upload:(i,o,u)=>ke.post("/files/upload",{filename:i,content:o,parentPath:u}),deleteFile:i=>ke.delete("/files/delete",{params:{path:i}}),getStats:()=>ke.get("/files/stats")},qu={getStatus:()=>ke.get("/platform/status"),getJobs:()=>ke.get("/platform/jobs"),emergencyStop:()=>ke.post("/platform/emergency-stop")},m2=[{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"}],y2=i=>{if(!i)return"";const o=new Date(i);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},g2=i=>{const o={};return i.forEach(u=>{const s=u.createdAt?new Date(u.createdAt):new Date;if(isNaN(s))return;const f=new Date,h=new Date;h.setDate(f.getDate()-1);let p;s.toDateString()===f.toDateString()?p="Today":s.toDateString()===h.toDateString()?p="Yesterday":p=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[p]||(o[p]=[]),o[p].push(u)}),o},nm=i=>i?i.split(`
17
- `).map((o,u)=>{const s=[];let f=o;const h=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let p;for(;(p=h.exec(f))!==null;){if(p.index>0){const g=f.substring(0,p.index);s.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`t-${p.index}`))}s.push(c.jsx("a",{href:p[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:p[1].replace(/\*\*/g,"")},`l-${p.index}`)),f=f.substring(p.index+p[0].length)}if(f.length>0){let g=f;g.startsWith("- ")&&(g="• "+g.substring(2)),s.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`end-${u}`))}return c.jsxs($r.Fragment,{children:[s.length>0?s:c.jsx("span",{children:o.replace(/\*\*/g,"")}),c.jsx("br",{})]},u)}):null;function lm({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(null),[h,p]=A.useState([]),[g,x]=A.useState(""),[y,b]=A.useState(!1),[v,M]=A.useState(!1),[k,T]=A.useState(!1),[w,z]=A.useState(!1),[Q,P]=A.useState(null),X=A.useRef(null),le=A.useRef(null),[ce,ye]=A.useState(""),F=A.useRef(null),we=A.useRef(null),Be=A.useRef(null);A.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const rt=J=>{const S=J||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const B=window.AudioContext||window.webkitAudioContext;if(B){X.current=new B;const G=X.current.createOscillator(),V=X.current.createGain();G.type="triangle",G.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{le.current&&X.current&&(G.frequency.setValueAtTime(800,X.current.currentTime),G.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),V.gain.value=.1,G.connect(V),V.connect(X.current.destination),G.start(),le.current=G}P(S)},$e=()=>{P(null),le.current&&(le.current.stop(),le.current=null),X.current&&(X.current.close(),X.current=null)};A.useEffect(()=>(xe(),K(),()=>{F.current&&F.current.abort()}),[]),A.useEffect(()=>{we.current?.scrollIntoView({behavior:"smooth"})},[h]);const K=()=>{const J=window.SpeechRecognition||window.webkitSpeechRecognition;if(!J)return;z(!0);const S=new J;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=B=>{let G="";for(let V=0;V<B.results.length;V++)G+=B.results[V][0].transcript;ye(G),x(G),B.results[B.results.length-1].isFinal&&setTimeout(()=>{T(!1),G.trim()&&D(G.trim())},500)},S.onerror=B=>{console.error("Voice error:",B.error),T(!1)},S.onend=()=>{T(!1)},F.current=S},de=()=>{F.current&&(k?(F.current.stop(),T(!1)):(ye(""),F.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",F.current.start(),T(!0)))},xe=async()=>{try{const J=await oi.getConversations();u(J.data.conversations||[])}catch{console.error("Failed to load conversations")}},Oe=async J=>{try{const S=await oi.getConversation(J);f(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},D=async J=>{const S=J||g.trim();if(!S||y)return;x("");const B={role:"user",content:S,createdAt:new Date};p(G=>[...G,B]),b(!0),M(!0);try{const V=(await oi.sendMessage({message:S,conversationId:s?._id})).data;s||(f({_id:V.conversationId}),xe());const I={role:"assistant",content:V.message.content,toolCalls:V.message.toolCalls,sensitiveDataWarnings:V.message.sensitiveDataWarnings,createdAt:new Date};p(se=>[...se,I]),I.toolCalls&&I.toolCalls.forEach(se=>{if(se.toolName==="reminder_set"&&se.notificationParams){const{delayMs:Te,message:ot}=se.notificationParams;setTimeout(()=>{rt(ot)},Te||5e3)}})}catch{p(V=>[...V,{role:"assistant",content:i?.language==="english"?"❌ Oops, an error occurred. Check the server or try again.":"❌ Arre, kuch error aa gaya. Server check karo ya dubara try karo.",createdAt:new Date}])}finally{b(!1),M(!1),Be.current?.focus()}},Z=()=>{f(null),p([]),Be.current?.focus()},ae=async(J,S)=>{S.stopPropagation();try{await oi.deleteConversation(J),s?._id===J&&Z(),xe()}catch{console.error("Delete failed")}},Re=J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),D())};return c.jsxs("div",{style:$.container,children:[Q&&c.jsx("div",{style:$.alarmPopupLayer,children:c.jsxs("div",{style:$.alarmBox,children:[c.jsx("div",{style:$.alarmIcon,children:"⏰"}),c.jsxs("div",{style:$.alarmContent,children:[c.jsx("h4",{style:$.alarmTitle,children:"Reminder"}),c.jsx("p",{style:$.alarmMessage,children:Q})]}),c.jsx("button",{onClick:$e,style:$.alarmStopBtn,children:"Stop Alarm"})]})}),c.jsxs("div",{style:$.convSidebar,children:[c.jsxs("div",{style:$.convHeader,children:[c.jsx("h3",{style:$.convTitle,children:"💬 Conversations"}),c.jsx("button",{onClick:Z,style:$.newBtn,title:"New Chat",children:c.jsx(hx,{size:18})})]}),c.jsxs("div",{style:$.convList,children:[o.map(J=>c.jsxs("button",{onClick:()=>Oe(J._id),style:{...$.convItem,...s?._id===J._id?$.convItemActive:{}},children:[c.jsx("span",{style:$.convItemTitle,children:J.title}),c.jsx("div",{style:$.convActions,children:c.jsx("button",{onClick:S=>ae(J._id,S),style:$.convDelBtn,children:c.jsx(_m,{size:14})})})]},J._id)),o.length===0&&c.jsx("p",{style:$.emptyConv,children:i?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),c.jsxs("div",{style:$.chatArea,children:[k&&c.jsxs("div",{style:$.voiceOverlay,children:[c.jsx("div",{style:$.voicePulseRing,children:c.jsx(Up,{size:36,color:"#FF9933"})}),c.jsx("p",{style:$.voiceText,children:ce||(i?.language==="hindi"?"बोलिए...":i?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),c.jsx("p",{style:$.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),c.jsxs("button",{onClick:de,style:$.voiceStopBtn,children:[c.jsx(sx,{size:18})," Stop Listening"]})]}),c.jsxs("div",{style:$.messages,children:[h.length===0&&c.jsxs("div",{style:$.welcome,children:[c.jsx("div",{style:$.welcomeLogo,children:"स"}),c.jsxs("h2",{style:$.welcomeTitle,children:[i?.language==="english"?"Hello":"Namaste",", ",i?.name||"User","! 🙏"]}),c.jsx("p",{style:$.welcomeSubtitle,children:i?.language==="english"?"I am SamarthyaBot, your personal AI assistant. How can I help you today?":"Main SamarthyaBot hoon, aapka personal AI assistant. Kaise madad kar sakta hoon?"}),c.jsx("div",{style:$.quickActions,children:m2.map((J,S)=>c.jsxs("button",{onClick:()=>D(i?.language==="english"?J.textEn:J.text),style:$.quickActionBtn,children:[c.jsx("span",{style:$.quickEmoji,children:J.emoji}),c.jsx("span",{children:i?.language==="english"?J.textEn:J.text})]},S))})]}),Object.entries(g2(h)).map(([J,S],B)=>c.jsxs($r.Fragment,{children:[c.jsx("div",{style:$.dateDivider,children:c.jsx("span",{style:$.dateBadge,children:J})}),S.map((G,V)=>c.jsxs("div",{style:{...$.message,...G.role==="user"?$.userMessage:$.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[c.jsx("div",{style:G.role==="user"?$.userAvatar:$.assistantAvatar,children:G.role==="user"?c.jsx(Om,{size:16}):c.jsx(Bp,{size:16})}),c.jsxs("div",{style:$.messageContent,children:[G.sensitiveDataWarnings?.length>0&&c.jsxs("div",{style:$.warningBanner,children:[c.jsx(wm,{size:14}),c.jsxs("span",{children:["⚠️ Sensitive data detected: ",G.sensitiveDataWarnings.map(I=>I.type).join(", ")]})]}),c.jsx("div",{style:$.messageText,children:nm(G.content)}),G.toolCalls?.length>0&&c.jsx("div",{style:$.toolCalls,children:G.toolCalls.map((I,se)=>c.jsxs("div",{style:$.toolCall,children:[c.jsxs("div",{style:$.toolCallHeader,children:[c.jsxs("span",{style:{...$.toolBadge,background:I.status==="completed"?"rgba(16,185,129,0.15)":I.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:I.status==="completed"?"#10b981":I.status==="blocked"?"#ef4444":"#f59e0b"},children:[I.status==="completed"?"✅":I.status==="blocked"?"🚫":"⏳"," ",I.toolName]}),c.jsxs("span",{style:$.toolRisk,children:["Risk: ",I.riskLevel]})]}),I.result&&c.jsx("div",{style:$.toolResult,children:nm(I.result)})]},se))}),c.jsx("div",{style:{...$.msgTime,color:G.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:y2(G.createdAt)})]})]},`msg-${B}-${V}`))]},`group-${B}`)),v&&c.jsxs("div",{style:{...$.message,...$.assistantMessage},children:[c.jsx("div",{style:$.assistantAvatar,children:c.jsx(Bp,{size:16})}),c.jsxs("div",{style:$.typingIndicator,children:[c.jsx("span",{style:{...$.typingDot,animationDelay:"0s"}}),c.jsx("span",{style:{...$.typingDot,animationDelay:"0.2s"}}),c.jsx("span",{style:{...$.typingDot,animationDelay:"0.4s"}})]})]}),c.jsx("div",{ref:we})]}),c.jsxs("div",{style:$.inputArea,children:[c.jsxs("div",{style:$.inputWrap,children:[c.jsx("textarea",{ref:Be,value:g,onChange:J=>x(J.target.value),onKeyDown:Re,placeholder:i?.language==="hindi"?"यहां टाइप करें...":i?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:$.textarea,rows:1,disabled:y}),c.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:J=>{J&&(J._screenInput=!0)},id:"screenInput",onChange:async J=>{const S=J.target.files?.[0];if(S){b(!0),p(B=>[...B,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),M(!0);try{const B=new FileReader;B.onload=async()=>{const G=B.result,V=await p2.analyze(G,g.trim()||"Is screenshot mein kya hai? Next step batao.");p(I=>[...I,{role:"assistant",content:`👁️ **Screen Analysis:**
18
-
19
- ${V.data.analysis.content}`,createdAt:new Date}]),x("")},B.readAsDataURL(S)}catch{p(G=>[...G,{role:"assistant",content:i?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{b(!1),M(!1),J.target.value=""}}}}),c.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:$.voiceBtn,title:"Screenshot upload for AI analysis",children:c.jsx(Av,{size:20})}),w&&c.jsx("button",{onClick:de,style:{...$.voiceBtn,...k?$.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:c.jsx(Up,{size:20})}),c.jsx("button",{onClick:()=>D(),disabled:y||!g.trim(),style:{...$.sendBtn,opacity:y||!g.trim()?.5:1},children:y?c.jsx(ix,{size:20,style:{animation:"spin 1s linear infinite"}}):c.jsx(Sx,{size:20})})]}),c.jsx("p",{style:$.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const $={container:{display:"flex",height:"100vh",background:"var(--bg-primary)"},alarmPopupLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},alarmBox:{background:"rgba(20, 20, 35, 0.95)",border:"2px solid rgba(255, 107, 0, 0.5)",borderRadius:"var(--radius-lg)",padding:"32px",boxShadow:"0 20px 50px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",maxWidth:"400px",textAlign:"center",animation:"pulseAlarm 1s infinite alternate"},alarmIcon:{fontSize:"4rem",animation:"ringAlarm 0.5s infinite alternate"},alarmTitle:{fontSize:"1.4rem",fontWeight:"bold",color:"var(--text-primary)",margin:0},alarmMessage:{fontSize:"1.1rem",color:"var(--text-secondary)",margin:0},alarmStopBtn:{background:"#ef4444",color:"white",border:"none",borderRadius:"var(--radius-md)",padding:"12px 24px",fontSize:"1rem",fontWeight:"bold",cursor:"pointer",boxShadow:"0 4px 15px rgba(239,68,68,0.3)",transition:"all 0.2s ease"},convSidebar:{width:"280px",minWidth:"200px",maxWidth:"500px",resize:"horizontal",overflowX:"hidden",background:"var(--bg-secondary)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",flexShrink:0},convHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)"},convTitle:{fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},newBtn:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)"},convList:{flex:1,overflow:"auto",padding:"8px"},convItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"12px",background:"transparent",border:"none",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",textAlign:"left",transition:"all var(--transition-fast)",marginBottom:"2px"},convItemActive:{background:"rgba(255, 153, 51, 0.1)",color:"var(--text-primary)"},convItemTitle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},convActions:{display:"flex",gap:"4px",flexShrink:0},convDelBtn:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",transition:"all var(--transition-fast)"},emptyConv:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem"},chatArea:{flex:1,display:"flex",flexDirection:"column",minWidth:0},messages:{flex:1,overflow:"auto",padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},welcome:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,textAlign:"center",padding:"40px 20px",animation:"fadeInUp 0.6s ease-out"},welcomeLogo:{fontSize:"4rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",marginBottom:"16px",animation:"float 4s ease-in-out infinite"},welcomeTitle:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},welcomeSubtitle:{fontSize:"1rem",color:"var(--text-muted)",marginBottom:"32px",maxWidth:"500px",fontFamily:"var(--font-primary)"},dateDivider:{display:"flex",justifyContent:"center",margin:"16px 0",width:"100%"},dateBadge:{backgroundColor:"var(--bg-card)",color:"var(--text-muted)",fontSize:"0.75rem",padding:"4px 12px",borderRadius:"16px",border:"1px solid var(--border-subtle)"},quickActions:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",maxWidth:"680px",width:"100%"},quickActionBtn:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",textAlign:"left"},quickEmoji:{fontSize:"1.2rem"},message:{display:"flex",gap:"12px",maxWidth:"85%",animation:"fadeIn 0.3s ease-out"},userMessage:{alignSelf:"flex-end",flexDirection:"row-reverse"},assistantMessage:{alignSelf:"flex-start"},userAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-saffron)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},assistantAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},messageContent:{maxWidth:"100%"},messageText:{padding:"14px 18px",borderRadius:"var(--radius-lg)",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)",fontSize:"0.9rem",lineHeight:1.7,wordBreak:"break-word"},warningBanner:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-sm)",color:"#f59e0b",fontSize:"0.8rem",marginBottom:"8px"},msgTime:{fontSize:"0.7rem",textAlign:"right",marginTop:"4px",fontWeight:"500"},toolCalls:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"6px"},toolCall:{padding:"10px 14px",background:"rgba(99, 102, 241, 0.06)",border:"1px solid rgba(99, 102, 241, 0.15)",borderRadius:"var(--radius-sm)",fontSize:"0.8rem"},toolCallHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"},toolBadge:{padding:"2px 8px",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:600},toolRisk:{fontSize:"0.7rem",color:"var(--text-muted)",textTransform:"uppercase"},toolResult:{color:"var(--text-secondary)",fontSize:"0.8rem",lineHeight:1.5,whiteSpace:"pre-wrap"},typingIndicator:{display:"flex",gap:"6px",padding:"14px 18px",background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)"},typingDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",animation:"typing 1.4s ease-in-out infinite",display:"inline-block"},inputArea:{padding:"16px 24px 20px",borderTop:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},inputWrap:{display:"flex",alignItems:"flex-end",gap:"12px",padding:"6px 6px 6px 18px",background:"var(--bg-input)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-lg)",transition:"all var(--transition-normal)"},textarea:{flex:1,background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.95rem",padding:"10px 0",resize:"none",outline:"none",maxHeight:"120px",lineHeight:1.5},sendBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"#0D0D0D",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"transparent",border:"1px solid var(--border-subtle)",color:"var(--text-muted)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"var(--accent-saffron)",color:"var(--accent-saffron)",animation:"voicePulse 1.5s infinite"},voiceOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(13, 13, 13, 0.92)",backdropFilter:"blur(20px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:50,animation:"fadeIn 0.3s ease-out",gap:"16px"},voicePulseRing:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255, 153, 51, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 1.5s infinite"},voiceText:{fontSize:"1.2rem",fontWeight:600,color:"var(--text-primary)",maxWidth:"400px",textAlign:"center"},voiceHint:{fontSize:"0.82rem",color:"var(--text-muted)"},voiceStopBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",color:"#ef4444",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)"},inputHint:{fontSize:"0.7rem",color:"var(--text-muted)",textAlign:"center",marginTop:"8px"}};function v2({user:i}){const o=eo(),[u,s]=A.useState(null),[f,h]=A.useState(null),[p,g]=A.useState([]),[x,y]=A.useState([]),[b,v]=A.useState(!0);A.useEffect(()=>{k();const w=setInterval(()=>{M()},15e3);return()=>clearInterval(w)},[]);const M=async()=>{try{const[w,z]=await Promise.all([qu.getStatus().catch(()=>({data:{status:null}})),qu.getJobs().catch(()=>({data:{jobs:[]}}))]);h(w.data.status),g(z.data.jobs||[])}catch{}},k=async()=>{v(!0);try{const[w,z]=await Promise.all([oi.getConversations().catch(()=>({data:{conversations:[]}})),Zr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);y(w.data.conversations?.slice(0,5)||[]),s(z.data.stats),await M()}catch(w){console.error("Dashboard load error:",w)}finally{v(!1)}},T=w=>{if(!w)return"0h 0m";const z=Math.floor(w/3600),Q=Math.floor(w%3600/60);return`${z}h ${Q}m`};return b?c.jsx("div",{style:{...ee.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:c.jsx(Yr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):c.jsxs("div",{style:ee.container,children:[c.jsxs("div",{style:ee.header,children:[c.jsxs("div",{children:[c.jsx("h1",{style:ee.title,children:"Control Center"}),c.jsxs("div",{style:ee.systemBadge,children:[c.jsx(Ex,{size:14})," System Online • OS: ",f?.osName||"SamarthyaOS"]})]}),c.jsxs("div",{style:ee.headerActions,children:[c.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await qu.emergencyStop(),M(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:ee.dangerBtn,title:"Emergency Kill Switch",children:[c.jsx(kp,{size:18})," Kill Switch"]}),c.jsxs("button",{onClick:()=>o("/tools"),style:ee.secondaryBtn,children:[c.jsx(Fr,{size:18})," Modules"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.newChatBtn,children:[c.jsx(di,{size:18})," Spawn Agent"]})]})]}),c.jsx("h3",{style:ee.sectionTitle,children:"System Vitals"}),c.jsxs("div",{style:ee.statsGrid,children:[c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#6366f120",color:"#6366f1"},children:c.jsx(Zu,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:T(f?.uptime)}),c.jsx("div",{style:ee.statLabel,children:"Agent Uptime"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#14b8a620",color:"#14b8a6"},children:c.jsx(Uv,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsxs("div",{style:ee.statValue,children:[f?.ramUsage||0,"%"]}),c.jsx("div",{style:ee.statLabel,children:"Memory Load"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:c.jsx(fx,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsxs("div",{style:ee.statValue,children:[f?.totalTools||0," / ",f?.loadedPlugins||0]}),c.jsx("div",{style:ee.statLabel,children:"Core Tools / Plugins"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:c.jsx(Yr,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:u?.totalActions||0}),c.jsx("div",{style:ee.statLabel,children:"Tasks Executed"})]})]})]}),c.jsxs("div",{style:ee.mainGrid,children:[c.jsxs("div",{style:{...ee.card,gridColumn:"span 2"},children:[c.jsxs("div",{style:ee.cardHeader,children:[c.jsxs("h3",{style:ee.cardTitle,children:[c.jsx(Yr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),c.jsxs("span",{style:ee.liveBadge,children:[c.jsx("span",{style:ee.pulseDot})," LIVE"]})]}),c.jsx("div",{style:ee.cardBody,children:p.length>0?c.jsx("div",{style:ee.jobsList,children:p.map(w=>c.jsxs("div",{style:ee.jobCard,children:[c.jsxs("div",{style:ee.jobHeader,children:[c.jsx("span",{style:ee.jobName,children:w.taskName}),c.jsx("span",{style:w.isActive?ee.jobActive:ee.jobInactive,children:w.isActive?"RUNNING":"STOPPED"})]}),c.jsxs("div",{style:ee.jobPrompt,children:['"',w.prompt,'"']}),c.jsxs("div",{style:ee.jobMeta,children:[c.jsxs("span",{children:[c.jsx(Zu,{size:12})," Interval: ",w.intervalMinutes,"m"]}),c.jsxs("span",{children:[c.jsx(Bv,{size:12})," Next Run: ",new Date(w.nextRunAt).toLocaleTimeString()]})]})]},w._id))}):c.jsxs("div",{style:ee.emptyState,children:[c.jsx(ic,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),c.jsx("p",{children:"No autonomous background tasks running."}),c.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),c.jsxs("div",{style:ee.card,children:[c.jsxs("div",{style:ee.cardHeader,children:[c.jsxs("h3",{style:ee.cardTitle,children:[c.jsx(rc,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.viewAllBtn,children:["View All ",c.jsx(ui,{size:14})]})]}),c.jsx("div",{style:ee.cardBody,children:x.length>0?x.map(w=>c.jsxs("button",{onClick:()=>o(`/chat/${w._id}`),style:ee.convRow,children:[c.jsx("div",{style:ee.convDot}),c.jsxs("div",{style:ee.convInfo,children:[c.jsx("span",{style:ee.convName,children:w.title}),c.jsxs("span",{style:ee.convTime,children:[new Date(w.updatedAt).toLocaleDateString()," ",new Date(w.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),c.jsx(ui,{size:14,style:{color:"var(--text-muted)"}})]},w._id)):c.jsx("div",{style:ee.emptyState,children:c.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),c.jsxs("div",{style:ee.bannerGrid,children:[c.jsxs("div",{style:ee.vaultBanner,children:[c.jsx(ll,{size:24,style:{color:"#10b981"}}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),c.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),c.jsx("button",{onClick:()=>o("/settings"),style:ee.outlineBtn,children:"Configure"})]}),c.jsxs("div",{style:ee.pluginBanner,children:[c.jsx(kp,{size:24,style:{color:"#f59e0b"}}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),c.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const ee={container:{padding:"28px 32px",maxWidth:"1200px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"32px",flexWrap:"wrap",gap:"16px"},title:{fontSize:"2rem",fontWeight:800,color:"var(--text-primary)",letterSpacing:"-0.5px"},systemBadge:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",background:"rgba(16, 185, 129, 0.15)",color:"#10b981",borderRadius:"4px",fontSize:"0.8rem",fontWeight:600,marginTop:"8px"},headerActions:{display:"flex",gap:"12px"},dangerBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s"},secondaryBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},newChatBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.95rem",fontWeight:600,cursor:"pointer",boxShadow:"0 4px 14px rgba(99,102,241,0.3)",transition:"all 0.2s"},sectionTitle:{fontSize:"1.2rem",fontWeight:600,marginBottom:"16px",color:"var(--text-secondary)"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"20px",marginBottom:"32px"},statCard:{padding:"20px",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",gap:"16px",boxShadow:"0 2px 10px rgba(0,0,0,0.02)"},statIcon:{width:"44px",height:"44px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},statInfo:{flex:1},statValue:{fontSize:"1.5rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.85rem",color:"var(--text-muted)",fontWeight:500},mainGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:"24px",marginBottom:"28px"},card:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid var(--border-subtle)",background:"rgba(0,0,0,0.02)"},cardTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},liveBadge:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",fontWeight:700,color:"#10b981",background:"rgba(16, 185, 129, 0.1)",padding:"4px 8px",borderRadius:"4px"},pulseDot:{width:"6px",height:"6px",backgroundColor:"#10b981",borderRadius:"50%",boxShadow:"0 0 0 0 rgba(16, 185, 129, 0.7)",animation:"pulse 1.5s infinite"},viewAllBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"var(--accent-primary)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer"},cardBody:{padding:"16px"},jobsList:{display:"flex",flexDirection:"column",gap:"12px"},jobCard:{background:"var(--bg-main)",border:"1px solid var(--border-subtle)",borderRadius:"8px",padding:"14px"},jobHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},jobName:{fontWeight:600,fontSize:"0.95rem",color:"var(--text-primary)"},jobActive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(16, 185, 129, 0.1)",color:"#10b981",borderRadius:"4px",fontWeight:700},jobInactive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"4px",fontWeight:700},jobPrompt:{fontSize:"0.85rem",color:"var(--text-secondary)",fontStyle:"italic",lineHeight:1.4,marginBottom:"10px"},jobMeta:{display:"flex",gap:"16px",fontSize:"0.75rem",color:"var(--text-muted)"},convRow:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",borderRadius:"8px",background:"transparent",border:"none",width:"100%",cursor:"pointer",textAlign:"left",color:"var(--text-primary)"},convDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",flexShrink:0},convInfo:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},convName:{fontSize:"0.9rem",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},convTime:{fontSize:"0.75rem",color:"var(--text-muted)"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"40px 16px",color:"var(--text-muted)",textAlign:"center"},bannerGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"20px"},vaultBanner:{background:"linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.05) 100%)",border:"1px solid rgba(16,185,129,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},pluginBanner:{background:"linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(217,119,6,0.05) 100%)",border:"1px solid rgba(245,158,11,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},outlineBtn:{padding:"6px 16px",fontSize:"0.8rem",background:"transparent",border:"1px solid #10b981",color:"#10b981",borderRadius:"4px",cursor:"pointer",fontWeight:600}},hc=document.createElement("style");hc.type="text/css";hc.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(hc);function x2({user:i,onUpdate:o}){const[u,s]=A.useState({name:i?.name||"",language:i?.language||"hinglish",city:i?.city||"",permissions:i?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[f,h]=A.useState(!1),[p,g]=A.useState(!1),x=async()=>{h(!0);try{const v=await dc.updateProfile(u);o(v.data.user),g(!0),setTimeout(()=>g(!1),3e3)}catch{console.error("Save failed")}finally{h(!1)}},y=[{value:"ask",label:"🔔 Ask Every Time",labelHi:"हर बार पूछो"},{value:"allow_always",label:"✅ Always Allow",labelHi:"हमेशा अनुमति"},{value:"allow_once",label:"☑️ Allow Once",labelHi:"एक बार अनुमति"},{value:"never",label:"🚫 Never Allow",labelHi:"कभी नहीं"}],b=[{key:"fileAccess",label:"File Access",labelHi:"फ़ाइल एक्सेस",icon:"📁",desc:"Read, write, and delete files on your system"},{key:"emailAccess",label:"Email Access",labelHi:"ईमेल एक्सेस",icon:"📧",desc:"Send and read emails on your behalf"},{key:"browserAccess",label:"Browser Automation",labelHi:"ब्राउज़र ऑटोमेशन",icon:"🌐",desc:"Automate web browsing, form filling, scraping"},{key:"calendarAccess",label:"Calendar Access",labelHi:"कैलेंडर एक्सेस",icon:"📅",desc:"Schedule and manage calendar events"}];return c.jsxs("div",{style:je.container,children:[c.jsxs("div",{style:je.header,children:[c.jsx("h1",{style:je.title,children:"⚙️ Settings"}),c.jsx("button",{onClick:x,disabled:f,style:je.saveBtn,children:p?c.jsxs(c.Fragment,{children:[c.jsx(Qu,{size:18})," Saved!"]}):f?"Saving...":c.jsxs(c.Fragment,{children:[c.jsx(xx,{size:18})," Save Changes"]})})]}),c.jsxs("div",{style:je.grid,children:[c.jsxs("div",{style:je.section,children:[c.jsxs("div",{style:je.sectionHeader,children:[c.jsx(Om,{size:20,style:{color:"var(--accent-primary)"}}),c.jsx("h2",{style:je.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),c.jsxs("div",{style:je.sectionBody,children:[c.jsxs("div",{style:je.field,children:[c.jsx("label",{style:je.label,children:"Name / नाम"}),c.jsx("input",{style:je.input,value:u.name,onChange:v=>s({...u,name:v.target.value}),placeholder:"Your name"})]}),c.jsxs("div",{style:je.field,children:[c.jsx("label",{style:je.label,children:"City / शहर"}),c.jsx("input",{style:je.input,value:u.city,onChange:v=>s({...u,city:v.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),c.jsxs("div",{style:je.section,children:[c.jsxs("div",{style:je.sectionHeader,children:[c.jsx(Iv,{size:20,style:{color:"var(--accent-saffron)"}}),c.jsx("h2",{style:je.sectionTitle,children:"Language / भाषा"})]}),c.jsx("div",{style:je.sectionBody,children:c.jsx("div",{style:je.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(v=>c.jsxs("button",{onClick:()=>s({...u,language:v.value}),style:{...je.langCard,...u.language===v.value?je.langCardActive:{}},children:[c.jsx("span",{style:je.langIcon,children:v.icon}),c.jsx("span",{style:je.langLabel,children:v.label}),c.jsx("span",{style:je.langDesc,children:v.desc}),u.language===v.value&&c.jsx(Qu,{size:16,style:je.langCheck})]},v.value))})})]}),c.jsxs("div",{style:je.section,children:[c.jsxs("div",{style:je.sectionHeader,children:[c.jsx(ll,{size:20,style:{color:"var(--accent-rose)"}}),c.jsx("h2",{style:je.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),c.jsx("div",{style:je.sectionBody,children:b.map(v=>c.jsxs("div",{style:je.permRow,children:[c.jsxs("div",{style:je.permInfo,children:[c.jsx("span",{style:je.permIcon,children:v.icon}),c.jsxs("div",{children:[c.jsx("div",{style:je.permLabel,children:v.label}),c.jsx("div",{style:je.permDesc,children:v.desc})]})]}),c.jsx("select",{style:je.permSelect,value:u.permissions[v.key],onChange:M=>s({...u,permissions:{...u.permissions,[v.key]:M.target.value}}),children:y.map(M=>c.jsx("option",{value:M.value,children:M.label},M.value))})]},v.key))})]})]})]})}const je={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},saveBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 22px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},grid:{display:"flex",flexDirection:"column",gap:"20px"},section:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:"10px",padding:"18px 22px",borderBottom:"1px solid var(--border-subtle)"},sectionTitle:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},sectionBody:{padding:"22px"},field:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"16px",flex:1},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"11px 16px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.9rem",outline:"none",transition:"all 0.2s"},langOptions:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},langCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"18px 14px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer",transition:"all var(--transition-fast)",fontFamily:"var(--font-primary)",position:"relative",color:"var(--text-primary)"},langCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},langIcon:{fontSize:"1.5rem"},langLabel:{fontWeight:600,fontSize:"0.9rem"},langDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},langCheck:{position:"absolute",top:"8px",right:"8px",color:"var(--accent-primary)"},permRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:"1px solid var(--border-subtle)",gap:"16px"},permInfo:{display:"flex",alignItems:"center",gap:"12px",flex:1},permIcon:{fontSize:"1.3rem"},permLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},permDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},permSelect:{padding:"8px 12px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.8rem",outline:"none",minWidth:"170px"}},Gu={file:{bg:"rgba(99,102,241,0.1)",color:"#6366f1",icon:"📁"},email:{bg:"rgba(14,165,233,0.1)",color:"#0ea5e9",icon:"📧"},browser:{bg:"rgba(245,158,11,0.1)",color:"#f59e0b",icon:"🌐"},calendar:{bg:"rgba(16,185,129,0.1)",color:"#10b981",icon:"📅"},search:{bg:"rgba(139,92,246,0.1)",color:"#8b5cf6",icon:"🔍"},system:{bg:"rgba(107,114,128,0.1)",color:"#6b7280",icon:"⚙️"},security:{bg:"rgba(244,63,94,0.1)",color:"#f43f5e",icon:"🔐"},tool:{bg:"rgba(20,184,166,0.1)",color:"#14b8a6",icon:"🛠️"}},im={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 b2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(null),[h,p]=A.useState(""),[g,x]=A.useState(!0);A.useEffect(()=>{y()},[h]);const y=async()=>{x(!0);try{const v={};h&&(v.category=h);const[M,k]=await Promise.all([Zr.getLogs(v),Zr.getStats()]);u(M.data.logs||[]),f(k.data.stats||null)}catch{console.error("Failed to load audit data"),u([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{x(!1)}},b=async v=>{try{await Zr.rollback(v),y()}catch{console.error("Rollback failed")}};return c.jsxs("div",{style:me.container,children:[c.jsx("div",{style:me.header,children:c.jsxs("div",{children:[c.jsx("h1",{style:me.title,children:"🔐 Audit Log / ऑडिट लॉग"}),c.jsx("p",{style:me.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),c.jsxs("div",{style:me.statsRow,children:[c.jsxs("div",{style:me.statCard,children:[c.jsx(Yr,{size:20,style:{color:"var(--accent-primary)"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.totalActions||0}),c.jsx("div",{style:me.statLabel,children:"Total Actions"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(ll,{size:20,style:{color:"#10b981"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.success||0}),c.jsx("div",{style:me.statLabel,children:"Successful"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(wm,{size:20,style:{color:"#f59e0b"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.blocked||0}),c.jsx("div",{style:me.statLabel,children:"Blocked"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(Lp,{size:20,style:{color:"#8b5cf6"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.rolled_back||0}),c.jsx("div",{style:me.statLabel,children:"Rolled Back"})]})]})]}),c.jsxs("div",{style:me.filters,children:[c.jsx(Jv,{size:16,style:{color:"var(--text-muted)"}}),c.jsx("button",{onClick:()=>p(""),style:{...me.filterBtn,...h===""?me.filterBtnActive:{}},children:"All"}),Object.entries(Gu).map(([v,M])=>c.jsxs("button",{onClick:()=>p(v),style:{...me.filterBtn,...h===v?me.filterBtnActive:{}},children:[M.icon," ",v]},v))]}),c.jsx("div",{style:me.timeline,children:g?c.jsxs("div",{style:me.loadingState,children:[c.jsx("div",{style:me.spinner}),c.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?c.jsxs("div",{style:me.emptyState,children:[c.jsx(ll,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),c.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((v,M)=>{const k=Gu[v.category]||Gu.system,T=im[v.status]||im.success;return c.jsxs("div",{style:me.logEntry,children:[c.jsxs("div",{style:me.logTimeline,children:[c.jsx("div",{style:{...me.logDot,background:k.color}}),M<o.length-1&&c.jsx("div",{style:me.logLine})]}),c.jsxs("div",{style:me.logContent,children:[c.jsxs("div",{style:me.logHeader,children:[c.jsxs("span",{style:{...me.logCategory,background:k.bg,color:k.color},children:[k.icon," ",v.category]}),c.jsx("span",{style:{...me.logStatus,background:T.bg,color:T.color},children:v.status}),v.details?.riskLevel&&v.details.riskLevel!=="low"&&c.jsxs("span",{style:me.riskBadge,children:["⚠️ ",v.details.riskLevel," risk"]})]}),c.jsx("div",{style:me.logAction,children:v.action}),v.details?.toolName&&c.jsxs("div",{style:me.logDetail,children:["Tool: ",v.details.toolName]}),c.jsxs("div",{style:me.logTime,children:[c.jsx(Zu,{size:12}),new Date(v.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),v.canRollback&&v.status!=="rolled_back"&&c.jsxs("button",{onClick:()=>b(v._id),style:me.rollbackBtn,children:[c.jsx(Lp,{size:14})," Undo / Rollback"]})]})]},v._id||M)})})]})}const me={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"24px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},statsRow:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"12px",marginBottom:"20px"},statCard:{display:"flex",alignItems:"center",gap:"14px",padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},statValue:{fontSize:"1.3rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.75rem",color:"var(--text-muted)"},filters:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 16px",background:"var(--bg-secondary)",borderRadius:"var(--radius-md)",marginBottom:"20px",flexWrap:"wrap",border:"1px solid var(--border-subtle)"},filterBtn:{padding:"6px 12px",background:"transparent",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-full)",color:"var(--text-muted)",fontSize:"0.78rem",cursor:"pointer",fontFamily:"var(--font-primary)",textTransform:"capitalize",transition:"all var(--transition-fast)",display:"flex",alignItems:"center",gap:"4px"},filterBtnActive:{background:"rgba(99, 102, 241, 0.15)",borderColor:"var(--accent-primary)",color:"var(--accent-primary)"},timeline:{display:"flex",flexDirection:"column"},logEntry:{display:"flex",gap:"16px"},logTimeline:{display:"flex",flexDirection:"column",alignItems:"center",width:"20px",flexShrink:0},logDot:{width:"12px",height:"12px",borderRadius:"50%",flexShrink:0},logLine:{width:"2px",flex:1,background:"var(--border-subtle)",marginTop:"4px",marginBottom:"4px"},logContent:{flex:1,padding:"14px 18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",marginBottom:"12px"},logHeader:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px",flexWrap:"wrap"},logCategory:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize",display:"inline-flex",alignItems:"center",gap:"4px"},logStatus:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize"},riskBadge:{fontSize:"0.72rem",color:"#f59e0b"},logAction:{fontSize:"0.9rem",fontWeight:500,color:"var(--text-primary)",marginBottom:"4px"},logDetail:{fontSize:"0.8rem",color:"var(--text-muted)",marginBottom:"4px"},logTime:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",color:"var(--text-muted)"},rollbackBtn:{display:"inline-flex",alignItems:"center",gap:"6px",marginTop:"8px",padding:"6px 14px",background:"rgba(139, 92, 246, 0.1)",border:"1px solid rgba(139, 92, 246, 0.3)",borderRadius:"var(--radius-sm)",color:"#8b5cf6",fontSize:"0.78rem",fontWeight:500,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},loadingState:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",padding:"60px 20px",color:"var(--text-muted)"},spinner:{width:"24px",height:"24px",border:"2px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"60px 20px",color:"var(--text-muted)",textAlign:"center",fontSize:"0.9rem"}},rm={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 S2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState([]),[h,p]=A.useState(null),[g,x]=A.useState([]);A.useEffect(()=>{y()},[]);const y=async()=>{try{const[k,T]=await Promise.all([Lu.getPacks(),Lu.getAll()]);u(k.data.packs||[]),f(T.data.tools||[])}catch{console.error("Failed to load tools")}},b=async k=>{p(k);try{const T=await Lu.getPackTools(k);x(T.data.tools||[])}catch{x([])}},v=async k=>{try{await dc.updateProfile({activePack:k})}catch{console.error("Failed to activate pack")}},M=i?.language==="english";return c.jsxs("div",{style:qe.container,children:[c.jsx("div",{style:qe.header,children:c.jsxs("div",{children:[c.jsxs("h1",{style:qe.title,children:["🛠️ ",M?"Tool Packs":"टूल पैक्स"]}),c.jsx("p",{style:qe.subtitle,children:M?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),c.jsx("div",{style:qe.packsGrid,children:o.map((k,T)=>{const w=i?.activePack===k.id,z=h===k.id;return c.jsxs("div",{onClick:()=>b(k.id),style:{...qe.packCard,...w?qe.packCardActive:{},...z?qe.packCardSelected:{},animationDelay:`${T*.1}s`},children:[c.jsxs("div",{style:qe.packHeader,children:[c.jsx("span",{style:qe.packEmoji,children:k.id==="student"?"🎓":k.id==="business"?"🏢":k.id==="developer"?"👨‍💻":"🏠"}),w&&c.jsxs("span",{style:qe.activeBadge,children:[c.jsx(Qu,{size:12})," ",M?"Active":"सक्रिय"]})]}),c.jsx("h3",{style:qe.packName,children:M?k.name:k.nameHi||k.name}),c.jsx("p",{style:qe.packDesc,children:M?k.description:k.descriptionHi||k.description}),c.jsxs("div",{style:qe.packMeta,children:[c.jsxs("span",{style:qe.toolCount,children:[c.jsx(Fr,{size:14})," ",k.toolCount," tools"]}),c.jsx(ui,{size:16,style:{color:"var(--text-muted)"}})]}),!w&&c.jsxs("button",{onClick:Q=>{Q.stopPropagation(),v(k.id)},style:qe.activateBtn,children:[c.jsx(di,{size:14})," ",M?"Activate":"एक्टिवेट करें"]})]},k.id)})}),c.jsxs("div",{style:qe.section,children:[c.jsxs("h2",{style:qe.sectionTitle,children:[c.jsx(Fr,{size:20,style:{color:"var(--accent-primary)"}}),h?M?`Tools in ${h} pack`:`${h} पैक के टूल्स`:M?"All Available Tools":"सभी टूल्स"]}),c.jsx("div",{style:qe.toolsGrid,children:(h?g:s).map((k,T)=>{const w=rm[k.riskLevel]||rm.low;return c.jsxs("div",{style:{...qe.toolCard,animationDelay:`${T*.05}s`},children:[c.jsxs("div",{style:qe.toolHeader,children:[c.jsx("span",{style:qe.toolName,children:k.name}),c.jsx("span",{style:{...qe.riskBadge,background:w.bg,color:w.color},children:w.label})]}),c.jsx("p",{style:qe.toolDesc,children:M?k.description:k.descriptionHi||k.description}),c.jsx("div",{style:qe.toolMeta,children:c.jsxs("span",{style:qe.toolCategory,children:[k.category==="file"?"📁":k.category==="email"?"📧":k.category==="search"?"🔍":k.category==="calendar"?"📅":"🛠️"," ",k.category]})})]},k.name)})})]})]})}const qe={container:{padding:"28px 32px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},packsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"32px"},packCard:{padding:"22px",background:"var(--bg-secondary)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",cursor:"pointer",transition:"all var(--transition-normal)",animation:"fadeInUp 0.4s ease-out both"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.05)"},packCardSelected:{borderColor:"var(--accent-gold)",boxShadow:"0 0 16px rgba(245, 158, 11, 0.15)"},packHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},packEmoji:{fontSize:"2rem"},activeBadge:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600},packName:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px"},packDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"12px"},packMeta:{display:"flex",alignItems:"center",justifyContent:"space-between"},toolCount:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.8rem",color:"var(--text-muted)"},activateBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"10px",marginTop:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},section:{marginBottom:"20px"},sectionTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.1rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"16px",textTransform:"capitalize"},toolsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},toolCard:{padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",animation:"fadeIn 0.3s ease-out both",transition:"all var(--transition-fast)"},toolHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",flexWrap:"wrap",gap:"6px"},toolName:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)",fontFamily:"monospace"},riskBadge:{padding:"3px 8px",borderRadius:"var(--radius-full)",fontSize:"0.68rem",fontWeight:600},toolDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"4px"},toolMeta:{display:"flex",alignItems:"center",gap:"8px"},toolCategory:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"}},j2=[{name:"@jonahships_",text:"Setup @samarthya yesterday. All I have to say is, wow. The fact that it can just keep building upon itself just by talking to it is crazy. The future is already here.",avatar:"J"},{name:"@markjaquith",text:"SamarthyaBot feels like that kind of 'just had to glue all the parts together' leap forward. Incredible experience running locally.",avatar:"M"},{name:"@danpeguine",text:"Why this is nuts: your context and skills live on YOUR computer. Proactive AF: cron jobs, reminders, background tasks. Memory is amazing.",avatar:"D"}],E2=[{name:"WhatsApp",color:"#25D366"},{name:"Telegram",color:"#0088cc"},{name:"Gmail",color:"#ea4335"},{name:"IRCTC",color:"#0054a6"},{name:"UPI",color:"#673ab7"},{name:"GST Portal",color:"#ffc107"},{name:"File System",color:"#5cacee"},{name:"Browser",color:"#34a853"}];function A2(){const[i,o]=A.useState(!1);return A.useEffect(()=>{const u=()=>o(window.scrollY>50);window.addEventListener("scroll",u);const s=document.createElement("style");return s.type="text/css",s.innerText=`
26
- @keyframes float {
27
- 0% { transform: translateY(0px); }
28
- 50% { transform: translateY(-10px); }
29
- 100% { transform: translateY(0px); }
30
- }
31
- @keyframes pulse-bg {
32
- 0% { opacity: 0.3; }
33
- 50% { opacity: 0.5; }
34
- 100% { opacity: 0.3; }
35
- }
36
- .float-anim { animation: float 3s ease-in-out infinite; }
37
- .stagger-1 { animation-delay: 0.1s; }
38
- .stagger-2 { animation-delay: 0.2s; }
39
- .stagger-3 { animation-delay: 0.3s; }
40
- `,document.head.appendChild(s),()=>window.removeEventListener("scroll",u)},[]),c.jsxs("div",{style:Y.page,children:[c.jsx("header",{style:{...Y.header,backgroundColor:i?"rgba(10, 10, 15, 0.9)":"transparent",borderBottom:i?"1px solid rgba(255, 255, 255, 0.1)":"1px solid transparent"},children:c.jsxs("div",{style:Y.navInner,children:[c.jsxs("div",{style:Y.brand,children:[c.jsx("img",{src:"/logo.png",style:Y.logoImg,alt:"logo"}),c.jsx("span",{style:Y.brandName,children:"SamarthyaBot"})]}),c.jsxs("nav",{style:Y.navLinks,children:[c.jsx("a",{href:"#features",style:Y.navLink,children:"Features"}),c.jsx("a",{href:"#integrations",style:Y.navLink,children:"Integrations"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:Y.navLink,children:"GitHub"}),c.jsx(Jr,{to:"/dashboard",style:Y.navLink,children:"Control Center"})]})]})}),c.jsxs("section",{style:Y.hero,children:[c.jsx("div",{style:Y.heroGlow}),c.jsxs("div",{style:Y.container,children:[c.jsxs("div",{style:Y.heroBadge,children:[c.jsx("span",{style:Y.badgeDot}),"v1.1.0: Now with Autonomous Indian Workflow Plugins →"]}),c.jsxs("h1",{style:Y.heroTitle,children:["The AI that actually ",c.jsx("br",{}),c.jsx("span",{style:Y.heroAccent,children:"does things."})]}),c.jsx("p",{style:Y.heroSubtitle,children:"Clears your inbox, sends emails, manages your legacy workflows, and files your taxes. All from WhatsApp, Telegram, or any chat app you already use."}),c.jsxs("div",{style:Y.installBox,children:[c.jsxs("div",{style:Y.installHeader,children:[c.jsxs("div",{style:Y.terminalDots,children:[c.jsx("div",{style:{...Y.dot,background:"#ff5f56"}}),c.jsx("div",{style:{...Y.dot,background:"#ffbd2e"}}),c.jsx("div",{style:{...Y.dot,background:"#27c93f"}})]}),c.jsx("span",{style:Y.terminalLabel,children:"Terminal Installation"})]}),c.jsxs("div",{style:Y.installBody,children:[c.jsxs("code",{style:Y.codeLine,children:[c.jsx("span",{style:Y.codePrompt,children:"# Install via NPM globally"}),c.jsx("br",{}),c.jsx("span",{style:Y.codePrompt,children:"$"})," npm install -g samarthya-bot"]}),c.jsx("div",{style:Y.codeDivider}),c.jsxs("code",{style:Y.codeLine,children:[c.jsx("span",{style:Y.codePrompt,children:"# Run the onboard wizard"}),c.jsx("br",{}),c.jsx("span",{style:Y.codePrompt,children:"$"})," samarthya onboard"]}),c.jsx("div",{style:Y.codeDivider}),c.jsxs("code",{style:Y.codeLine,children:[c.jsx("span",{style:Y.codePrompt,children:"# Launch the Gateway"}),c.jsx("br",{}),c.jsx("span",{style:Y.codePrompt,children:"$"})," samarthya gateway"]})]})]}),c.jsxs("div",{style:Y.heroCtas,children:[c.jsxs(Jr,{to:"/dashboard",style:Y.primaryBtn,children:["Enter Admin Console ",c.jsx(Sv,{size:18})]}),c.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:Y.secondaryBtn,children:[c.jsx(Wv,{size:18})," View on GitHub"]})]})]})]}),c.jsx("section",{id:"integrations",style:Y.ribbonSection,children:c.jsxs("div",{style:Y.container,children:[c.jsx("div",{style:Y.ribbonHeader,children:c.jsx("span",{style:Y.subTitle,children:"⟩ Works With Everything"})}),c.jsx("div",{style:Y.imageWrap,children:c.jsx("img",{src:"/integration_logos_strip_1772378103389.png",style:Y.logosImage,className:"float-anim",alt:"integrations"})}),c.jsx("div",{style:Y.iGrid,children:E2.map((u,s)=>c.jsx("div",{style:{...Y.iItem,color:u.color},children:u.name},s))})]})}),c.jsx("section",{id:"features",style:Y.featureSection,children:c.jsxs("div",{style:Y.container,children:[c.jsxs("div",{style:Y.sectionHeader,children:[c.jsx("span",{style:Y.subTitle,children:"⟩ Powerful Modules"}),c.jsx("h2",{style:Y.sectionTitle,children:"Verticalized AI for real work."})]}),c.jsxs("div",{style:Y.mGrid,children:[c.jsxs("div",{style:Y.mCard,children:[c.jsx("div",{style:Y.iconBox,children:c.jsx(di,{size:32,color:"#f59e0b"})}),c.jsx("h3",{children:"Autonomous Planning"}),c.jsx("p",{children:"DeepSeek-powered reasoning loops that break complex tasks into actionable steps."})]}),c.jsxs("div",{style:Y.mCard,children:[c.jsx("div",{style:Y.iconBox,children:c.jsx(tx,{size:32,color:"#10b981"})}),c.jsx("h3",{children:"Tool Orchestration"}),c.jsx("p",{children:"Accesses file systems, browsers, and external APIs to execute scripts and fetch data."})]}),c.jsxs("div",{style:Y.mCard,children:[c.jsx("div",{style:Y.iconBox,children:c.jsx(ll,{size:32,color:"#6366f1"})}),c.jsx("h3",{children:"Privacy-First Loop"}),c.jsx("p",{children:"Everything runs on your machine. Your chats never leave your local encrypted vault."})]}),c.jsxs("div",{style:Y.mCard,children:[c.jsx("div",{style:Y.iconBox,children:c.jsx(Cx,{size:32,color:"#ec4899"})}),c.jsx("h3",{children:"CLI Gateway"}),c.jsx("p",{children:"Control the agent from any terminal or SSH session. Headless design for servers."})]}),c.jsxs("div",{style:Y.mCard,children:[c.jsx("div",{style:Y.iconBox,children:c.jsx(rc,{size:32,color:"#3b82f6"})}),c.jsx("h3",{children:"Omni-Channel"}),c.jsx("p",{children:"Deploy agents to Telegram, WhatsApp, and Discord with single-click setup."})]}),c.jsxs("div",{style:Y.mCard,children:[c.jsx("div",{style:Y.iconBox,children:c.jsx(zm,{size:32,color:"#8b5cf6"})}),c.jsx("h3",{children:"Screen Vision"}),c.jsx("p",{children:"Analyze screenshots and UI elements to automate repetitive data entry tasks."})]})]})]})}),c.jsx("section",{style:Y.testSection,children:c.jsxs("div",{style:Y.container,children:[c.jsxs("div",{style:Y.sectionHeader,children:[c.jsx("span",{style:Y.subTitle,children:"⟩ What People Say"}),c.jsx("h2",{style:Y.sectionTitle,children:"Built for the Community"})]}),c.jsx("div",{style:Y.testGrid,children:j2.map((u,s)=>c.jsxs("div",{style:Y.testCard,className:`float-anim stagger-${s+1}`,children:[c.jsxs("div",{style:Y.testUser,children:[c.jsx("div",{style:Y.avatar,children:u.avatar}),c.jsx("span",{style:Y.userName,children:u.name})]}),c.jsxs("p",{style:Y.testText,children:['"',u.text,'"']})]},s))})]})}),c.jsx("footer",{style:Y.footer,children:c.jsxs("div",{style:Y.container,children:[c.jsxs("div",{style:Y.footerInner,children:[c.jsxs("div",{style:Y.footerBrand,children:[c.jsx("img",{src:"/logo.png",style:Y.logoImgSmall,alt:"logo"}),c.jsx("span",{children:"SamarthyaBot — Privacy-First Local Agentic OS"})]}),c.jsxs("div",{style:Y.footerLinks,children:[c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:Y.footerLink,children:"GitHub"}),c.jsx("a",{href:"#",style:Y.footerLink,children:"Vision"}),c.jsx("a",{href:"#",style:Y.footerLink,children:"Security"})]})]}),c.jsx("div",{style:Y.footerBottom,children:"© 2025 SamarthyaBot. Built with ❤️ for the AI era."})]})})]})}const Y={page:{backgroundColor:"#050505",color:"#ffffff",minHeight:"100vh",fontFamily:"'Inter', sans-serif"},container:{maxWidth:"1100px",margin:"0 auto",padding:"0 24px"},header:{position:"fixed",top:0,left:0,right:0,zIndex:1e3,backdropFilter:"blur(15px)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},navInner:{maxWidth:"1200px",margin:"0 auto",padding:"16px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"},brand:{display:"flex",alignItems:"center",gap:"12px"},logoImg:{height:"32px",width:"32px",objectFit:"contain"},brandName:{fontSize:"1.25rem",fontWeight:"800",letterSpacing:"-0.5px"},navLinks:{display:"flex",gap:"32px",alignItems:"center"},navLink:{color:"#888",textDecoration:"none",fontSize:"0.85rem",fontWeight:"500",transition:"color 0.2s","&:hover":{color:"#fff"}},hero:{padding:"200px 0 140px",textAlign:"center",position:"relative",overflow:"hidden"},heroGlow:{position:"absolute",top:"-20%",left:"50%",transform:"translateX(-50%)",width:"1200px",height:"800px",background:"radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%)",zIndex:0,animation:"pulse-bg 10s infinite"},heroBadge:{display:"inline-flex",alignItems:"center",gap:"10px",backgroundColor:"rgba(255, 255, 255, 0.03)",padding:"10px 20px",borderRadius:"100px",fontSize:"0.85rem",color:"#666",marginBottom:"40px",border:"1px solid rgba(255, 255, 255, 0.05)",position:"relative",zIndex:1},badgeDot:{width:"8px",height:"8px",backgroundColor:"#10b981",borderRadius:"50%",boxShadow:"0 0 10px #10b981"},heroTitle:{fontSize:"5.5rem",fontWeight:"900",lineHeight:"0.9",marginBottom:"32px",letterSpacing:"-5px",position:"relative",zIndex:1},heroAccent:{color:"#ffffff",opacity:.6},heroSubtitle:{fontSize:"1.35rem",color:"#777",maxWidth:"750px",margin:"0 auto 64px",lineHeight:"1.5",position:"relative",zIndex:1},installBox:{maxWidth:"600px",margin:"0 auto 64px",background:"#0d0d0f",border:"1px solid rgba(255, 255, 255, 0.05)",borderRadius:"16px",overflow:"hidden",textAlign:"left",boxShadow:"0 30px 60px rgba(0,0,0,0.6)",position:"relative",zIndex:1},installHeader:{background:"#141417",padding:"14px 20px",display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid rgba(255, 255, 255, 0.03)"},terminalDots:{display:"flex",gap:"8px"},dot:{width:"12px",height:"12px",borderRadius:"50%"},terminalLabel:{fontSize:"0.7rem",color:"#555",textTransform:"uppercase",fontWeight:"bold",letterSpacing:"1.5px"},installBody:{padding:"32px",fontFamily:"'JetBrains Mono', 'Fira Code', monospace"},codeLine:{display:"block",fontSize:"1.05rem",color:"#fff"},codePrompt:{color:"#555",marginRight:"12px",userSelect:"none"},codeDivider:{height:"16px"},heroCtas:{display:"flex",justifyContent:"center",gap:"24px",position:"relative",zIndex:1},primaryBtn:{backgroundColor:"#ffffff",color:"#000000",padding:"16px 32px",borderRadius:"12px",textDecoration:"none",fontWeight:"750",fontSize:"1rem",display:"flex",alignItems:"center",gap:"12px",transition:"all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)","&:hover":{transform:"scale(1.05) translateY(-3px)",boxShadow:"0 10px 20px rgba(255,255,255,0.1)"}},secondaryBtn:{backgroundColor:"rgba(255, 255, 255, 0.03)",color:"#ffffff",padding:"16px 32px",borderRadius:"12px",textDecoration:"none",fontWeight:"750",fontSize:"1rem",border:"1px solid rgba(255, 255, 255, 0.08)",display:"flex",alignItems:"center",gap:"12px",transition:"all 0.2s","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",borderColor:"rgba(255, 255, 255, 0.2)"}},ribbonSection:{padding:"80px 0",background:"linear-gradient(to bottom, transparent, rgba(255,255,255,0.01))"},ribbonHeader:{textAlign:"center",marginBottom:"40px"},subTitle:{fontSize:"0.8rem",color:"#555",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"2px",display:"block",marginBottom:"16px"},imageWrap:{display:"flex",justifyContent:"center",marginBottom:"48px"},logosImage:{maxWidth:"100%",height:"auto",borderRadius:"20px",boxShadow:"0 40px 100px rgba(0,0,0,0.5)"},iGrid:{display:"flex",justifyContent:"center",gap:"40px",flexWrap:"wrap",opacity:.5},iItem:{fontSize:"0.9rem",fontWeight:"700"},featureSection:{padding:"140px 0"},sectionHeader:{marginBottom:"80px",textAlign:"center"},sectionTitle:{fontSize:"3.5rem",fontWeight:"900",letterSpacing:"-2px"},mGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"32px"},mCard:{padding:"48px 40px",backgroundColor:"#0d0d0f",borderRadius:"24px",border:"1px solid rgba(255,255,255,0.03)",transition:"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)","&:hover":{transform:"translateY(-12px)",borderColor:"rgba(255,255,255,0.1)",boxShadow:"0 30px 60px rgba(0,0,0,0.4)"}},iconBox:{width:"64px",height:"64px",borderRadius:"16px",backgroundColor:"rgba(255,255,255,0.02)",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"32px"},testSection:{padding:"140px 0"},testGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"24px"},testCard:{padding:"40px",backgroundColor:"#0d0d0f",borderRadius:"24px",border:"1px solid rgba(255,255,255,0.03)"},testUser:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"24px"},avatar:{width:"40px",height:"40px",backgroundColor:"#333",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.9rem",fontWeight:"bold"},userName:{fontSize:"1rem",fontWeight:"700",color:"#fff"},testText:{fontSize:"1.1rem",color:"#777",lineHeight:"1.6",fontStyle:"italic"},footer:{padding:"100px 0 60px",borderTop:"1px solid rgba(255,255,255,0.03)"},footerInner:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"64px",flexWrap:"wrap",gap:"32px"},footerBrand:{display:"flex",alignItems:"center",gap:"16px",fontSize:"0.95rem",color:"#444"},logoImgSmall:{height:"28px",width:"28px",filter:"grayscale(1) opacity(0.3)"},footerLinks:{display:"flex",gap:"40px"},footerLink:{color:"#444",textDecoration:"none",fontSize:"0.9rem",transition:"color 0.2s","&:hover":{color:"#fff"}},footerBottom:{textAlign:"center",fontSize:"0.8rem",color:"#333",paddingTop:"32px",borderTop:"1px solid rgba(255,255,255,0.01)"}},Lr=[{id:"chat",title:"⟩ Chat Providers",subtitle:"Message SamarthyaBot from any chat app — it responds right where you are.",items:[{name:"WhatsApp",nameHi:"व्हाट्सएप",icon:"📱",desc:"WhatsApp Business Cloud API",status:"live",tag:"🇮🇳 #1 in India"},{name:"Telegram",nameHi:"टेलीग्राम",icon:"✈️",desc:"Bot API integration",status:"coming",tag:""},{name:"WebChat",nameHi:"वेबचैट",icon:"💬",desc:"Browser-based UI (this app)",status:"live",tag:""},{name:"Discord",nameHi:"डिस्कॉर्ड",icon:"🎮",desc:"Servers, channels & DMs",status:"coming",tag:""},{name:"Slack",nameHi:"स्लैक",icon:"💼",desc:"Workspace integration",status:"coming",tag:""},{name:"Signal",nameHi:"सिग्नल",icon:"🔒",desc:"Privacy-focused messaging",status:"planned",tag:""}]},{id:"ai",title:"⟩ AI Models",subtitle:"Use any model you want — cloud or local. Your keys, your choice.",items:[{name:"Google Gemini",nameHi:"गूगल जेमिनी",icon:"✨",desc:"Gemini 2.5 Flash (Default)",status:"live",tag:"Default"},{name:"Ollama (Local)",nameHi:"ऑलामा",icon:"🏠",desc:"dolphin3:8b — offline mode",status:"live",tag:"Offline"},{name:"OpenAI",nameHi:"ओपनएआई",icon:"🤖",desc:"GPT-4o, GPT-5",status:"coming",tag:""},{name:"Anthropic",nameHi:"एंथ्रोपिक",icon:"🧠",desc:"Claude 4 Opus",status:"planned",tag:""},{name:"DeepSeek",nameHi:"डीपसीक",icon:"🔍",desc:"DeepSeek V3 & R1",status:"planned",tag:""},{name:"Gemini Vision",nameHi:"जेमिनी विज़न",icon:"👁️",desc:"Screen Understanding",status:"live",tag:"Vision"}]},{id:"tools",title:"⟩ Real Tools & Automation",subtitle:"Not simulations — these actually work. Files, emails, commands, and more.",items:[{name:"Email (Gmail)",nameHi:"ईमेल",icon:"📧",desc:"Real email via Nodemailer SMTP",status:"live",tag:"Real"},{name:"File System",nameHi:"फाइल सिस्टम",icon:"📁",desc:"Read/write/list files (sandboxed)",status:"live",tag:"Real"},{name:"Shell Commands",nameHi:"शेल कमांड",icon:"💻",desc:"Safe command execution (whitelisted)",status:"live",tag:"Real"},{name:"Web Search",nameHi:"वेब सर्च",icon:"🔍",desc:"DuckDuckGo instant search",status:"live",tag:"Real"},{name:"Weather",nameHi:"मौसम",icon:"🌤️",desc:"Open-Meteo (free, no API key)",status:"live",tag:"Real"},{name:"Calculator",nameHi:"कैलकुलेटर",icon:"🧮",desc:"Math + GST calculations",status:"live",tag:"Real"},{name:"System Info",nameHi:"सिस्टम जानकारी",icon:"🖥️",desc:"CPU, RAM, OS info",status:"live",tag:"Real"},{name:"Browser Open",nameHi:"ब्राउज़र",icon:"🌐",desc:"Open URLs in default browser",status:"live",tag:"Real"},{name:"Notes",nameHi:"नोट्स",icon:"📝",desc:"Save notes as Markdown files",status:"live",tag:"Real"},{name:"Reminders",nameHi:"रिमाइंडर",icon:"⏰",desc:"Persistent JSON reminders",status:"live",tag:"Real"},{name:"Calendar",nameHi:"कैलेंडर",icon:"📅",desc:"Event scheduling (local files)",status:"live",tag:"Real"}]},{id:"india",title:"⟩ Indian Workflows",subtitle:"Built specifically for Indian users — GST, UPI, IRCTC, and more.",items:[{name:"UPI Payments",nameHi:"यूपीआई",icon:"💳",desc:"Generate real UPI deep links",status:"live",tag:"🇮🇳 Real"},{name:"GST Reminders",nameHi:"जीएसटी",icon:"🏢",desc:"GSTR-1, 3B, 9 deadline tracking",status:"live",tag:"🇮🇳 Real"},{name:"IRCTC Helper",nameHi:"आईआरसीटीसी",icon:"🚂",desc:"Screen Understanding for booking",status:"live",tag:"Vision"},{name:"PAN/Aadhaar Masking",nameHi:"पैन/आधार",icon:"🔐",desc:"Auto-detect & mask sensitive data",status:"live",tag:"Security"},{name:"DigiLocker",nameHi:"डिजीलॉकर",icon:"📋",desc:"Screen Understanding support",status:"live",tag:"Vision"},{name:"Hindi/Hinglish",nameHi:"हिंदी/हिंग्लिश",icon:"🗣️",desc:"3 language support with auto-detect",status:"live",tag:"🇮🇳"}]},{id:"voice",title:"⟩ Voice & Vision",subtitle:"Talk to SamarthyaBot, send screenshots — it understands everything.",items:[{name:"Voice Input",nameHi:"वॉइस इनपुट",icon:"🎙️",desc:"Web Speech API (Hindi/English)",status:"live",tag:"Real"},{name:"Text-to-Speech",nameHi:"टेक्स्ट-टू-स्पीच",icon:"🔊",desc:"Bot reads responses aloud",status:"live",tag:"Real"},{name:"Screen Capture",nameHi:"स्क्रीन कैप्चर",icon:"📸",desc:"Upload screenshots for AI analysis",status:"live",tag:"Vision"},{name:"Whisper (Local)",nameHi:"व्हिस्पर",icon:"🎧",desc:"Offline voice-to-text",status:"planned",tag:""}]},{id:"security",title:"⟩ Privacy & Security",subtitle:"Your data stays yours. Privacy-first, always.",items:[{name:"Sensitive Data Detection",nameHi:"सेंसिटिव डेटा",icon:"🛡️",desc:"PAN, Aadhaar, bank auto-detect",status:"live",tag:"Always On"},{name:"Permission System",nameHi:"अनुमति सिस्टम",icon:"🔑",desc:"Ask before file/email/browser access",status:"live",tag:""},{name:"Audit Log",nameHi:"ऑडिट लॉग",icon:"📊",desc:"Full tool execution history",status:"live",tag:""},{name:"Sandbox Mode",nameHi:"सैंडबॉक्स",icon:"📦",desc:"Files restricted to ~/SamarthyaBot_Files",status:"live",tag:""},{name:"Local-First",nameHi:"लोकल-फर्स्ट",icon:"🏠",desc:"Ollama for offline private AI",status:"live",tag:""}]}],R2={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 T2({user:i}){const[o,u]=A.useState(Lr.reduce((y,b)=>({...y,[b.id]:!0}),{})),[s,f]=A.useState("all"),h=y=>{u(b=>({...b,[y]:!b[y]}))},p=Lr.map(y=>({...y,items:s==="all"?y.items:y.items.filter(b=>b.status===s)})).filter(y=>y.items.length>0),g=Lr.flatMap(y=>y.items).filter(y=>y.status==="live").length,x=Lr.flatMap(y=>y.items).filter(y=>y.status==="coming").length;return c.jsxs("div",{style:Ee.container,children:[c.jsxs("div",{style:Ee.header,children:[c.jsxs("h1",{style:Ee.title,children:[c.jsx(di,{size:28,color:"#FF9933"}),"Integrations"]}),c.jsxs("p",{style:Ee.subtitle,children:[c.jsx("span",{style:Ee.countBadge,children:g})," live integrations with real tools & services.",c.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),c.jsx("div",{style:Ee.filterBar,children:[{key:"all",label:`All (${g+x})`},{key:"live",label:`✅ Live (${g})`},{key:"coming",label:`🔜 Coming (${x})`}].map(y=>c.jsx("button",{onClick:()=>f(y.key),style:{...Ee.filterBtn,...s===y.key?Ee.filterBtnActive:{}},children:y.label},y.key))}),p.map(y=>c.jsxs("div",{style:Ee.category,children:[c.jsxs("button",{onClick:()=>h(y.id),style:Ee.categoryHeader,children:[c.jsxs("div",{children:[c.jsx("h2",{style:Ee.categoryTitle,children:y.title}),c.jsx("p",{style:Ee.categorySubtitle,children:y.subtitle})]}),o[y.id]?c.jsx(Dv,{size:20}):c.jsx(zv,{size:20})]}),o[y.id]&&c.jsx("div",{style:Ee.grid,children:y.items.map((b,v)=>{const M=R2[b.status];return c.jsxs("div",{style:Ee.card,children:[c.jsxs("div",{style:Ee.cardTop,children:[c.jsx("span",{style:Ee.cardIcon,children:b.icon}),c.jsxs("div",{style:Ee.cardInfo,children:[c.jsx("h3",{style:Ee.cardName,children:b.name}),c.jsx("p",{style:Ee.cardNameHi,children:b.nameHi})]}),b.tag&&c.jsx("span",{style:{...Ee.tag,background:b.tag.includes("Real")?"rgba(19,136,8,0.3)":b.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:b.tag.includes("Real")?"#4ade80":b.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:b.tag})]}),c.jsx("p",{style:Ee.cardDesc,children:b.desc}),c.jsx("div",{style:{...Ee.statusBadge,background:M.bg,color:M.color},children:M.label})]},v)})})]},y.id)),c.jsxs("div",{style:Ee.footerCTA,children:[c.jsx("h2",{style:Ee.ctaTitle,children:"🔧 Want to add more integrations?"}),c.jsxs("p",{style:Ee.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",c.jsx("code",{style:Ee.code,children:"toolRegistry.js"})]}),c.jsxs("div",{style:Ee.ctaButtons,children:[c.jsxs("div",{style:Ee.ctaCard,children:[c.jsx("span",{style:Ee.ctaIcon,children:"📧"}),c.jsx("strong",{children:"Email Setup"}),c.jsx("p",{style:Ee.ctaSmall,children:"Add Gmail App Password to .env"})]}),c.jsxs("div",{style:Ee.ctaCard,children:[c.jsx("span",{style:Ee.ctaIcon,children:"📱"}),c.jsx("strong",{children:"WhatsApp Setup"}),c.jsx("p",{style:Ee.ctaSmall,children:"Meta Business API token"})]}),c.jsxs("div",{style:Ee.ctaCard,children:[c.jsx("span",{style:Ee.ctaIcon,children:"🏠"}),c.jsx("strong",{children:"Offline Mode"}),c.jsx("p",{style:Ee.ctaSmall,children:"Set USE_OLLAMA=true in .env"})]})]})]})]})}const Ee={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{textAlign:"center",marginBottom:"32px"},title:{fontSize:"28px",fontWeight:"700",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",marginBottom:"12px"},subtitle:{color:"#94a3b8",fontSize:"15px",lineHeight:"1.6"},countBadge:{background:"linear-gradient(135deg, #FF9933, #FF6600)",color:"#fff",padding:"2px 10px",borderRadius:"20px",fontWeight:"700",fontSize:"14px"},filterBar:{display:"flex",gap:"8px",justifyContent:"center",marginBottom:"24px"},filterBtn:{padding:"8px 20px",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px",background:"transparent",color:"#94a3b8",cursor:"pointer",fontSize:"13px",transition:"all 0.2s"},filterBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"#FF9933",color:"#FF9933"},category:{marginBottom:"24px",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"12px",overflow:"hidden",background:"rgba(255,255,255,0.02)"},categoryHeader:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 20px",background:"rgba(255,255,255,0.03)",border:"none",color:"#fff",cursor:"pointer",textAlign:"left"},categoryTitle:{fontSize:"18px",fontWeight:"600",margin:0,color:"#FF9933"},categorySubtitle:{fontSize:"13px",color:"#64748b",margin:"4px 0 0"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px",padding:"16px 20px"},card:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",padding:"14px",transition:"all 0.2s"},cardTop:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"8px"},cardIcon:{fontSize:"24px"},cardInfo:{flex:1},cardName:{fontSize:"14px",fontWeight:"600",color:"#e2e8f0",margin:0},cardNameHi:{fontSize:"11px",color:"#64748b",margin:0},tag:{fontSize:"10px",padding:"2px 8px",borderRadius:"10px",fontWeight:"600",whiteSpace:"nowrap"},cardDesc:{fontSize:"12px",color:"#94a3b8",margin:"0 0 8px",lineHeight:"1.4"},statusBadge:{display:"inline-block",fontSize:"11px",padding:"3px 10px",borderRadius:"12px",fontWeight:"500"},footerCTA:{textAlign:"center",padding:"32px 20px",marginTop:"24px",background:"linear-gradient(135deg, rgba(255,153,51,0.05), rgba(0,0,128,0.05))",borderRadius:"16px",border:"1px solid rgba(255,153,51,0.15)"},ctaTitle:{fontSize:"20px",color:"#fff",margin:"0 0 8px"},ctaText:{color:"#94a3b8",fontSize:"14px",marginBottom:"20px"},code:{background:"rgba(255,153,51,0.15)",padding:"2px 6px",borderRadius:"4px",color:"#FF9933",fontSize:"13px"},ctaButtons:{display:"flex",gap:"12px",justifyContent:"center",flexWrap:"wrap"},ctaCard:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"14px 20px",textAlign:"center",color:"#e2e8f0",fontSize:"14px",minWidth:"160px"},ctaIcon:{fontSize:"24px",display:"block",marginBottom:"6px"},ctaSmall:{fontSize:"11px",color:"#64748b",margin:"4px 0 0"}},Yu={folder:{icon:Cm,color:"#FF9933"},txt:{icon:Ku,color:"#94a3b8"},md:{icon:Ku,color:"#60a5fa"},json:{icon:Ur,color:"#fbbf24"},js:{icon:Ur,color:"#fbbf24"},html:{icon:Ur,color:"#f97316"},css:{icon:Ur,color:"#38bdf8"},png:{icon:Nu,color:"#a78bfa"},jpg:{icon:Nu,color:"#a78bfa"},jpeg:{icon:Nu,color:"#a78bfa"},pdf:{icon:Np,color:"#ef4444"},default:{icon:Np,color:"#64748b"}};function z2(i){return i.type==="folder"?Yu.folder:Yu[i.extension]||Yu.default}function om(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function C2(i){return new Date(i).toLocaleString("en-IN",{timeZone:"Asia/Kolkata",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function _2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(""),[h,p]=A.useState(!1),[g,x]=A.useState(null),[y,b]=A.useState(null),[v,M]=A.useState(!1),[k,T]=A.useState(""),[w,z]=A.useState(""),Q=A.useRef(null);A.useEffect(()=>{P(),X()},[s]);const P=async()=>{p(!0),z("");try{const K=await yn.list(s);u(K.data.items||[])}catch(K){z(K.response?.data?.error||"Failed to load files"),u([])}finally{p(!1)}},X=async()=>{try{const K=await yn.getStats();x(K.data.stats)}catch{}},le=K=>{K.type==="folder"?f(K.path):ye(K)},ce=()=>{const K=s.split("/");K.pop(),f(K.join("/"))},ye=async K=>{try{const de=await yn.read(K.path);b(de.data)}catch{z("Cannot preview this file")}},F=K=>{const de=yn.download(K.path);window.open(de,"_blank")},we=async K=>{const de=K.type==="folder"?`Delete folder "${K.name}" and all its contents?`:`Delete file "${K.name}"?`;if(window.confirm(de))try{await yn.deleteFile(K.path),P(),X()}catch(xe){z(xe.response?.data?.error||"Delete failed")}},Be=async()=>{if(k.trim())try{await yn.mkdir(k.trim(),s),T(""),M(!1),P()}catch(K){z(K.response?.data?.error||"Failed to create folder")}},rt=async K=>{const de=K.target.files?.[0];if(!de)return;const xe=new FileReader;xe.onload=async()=>{try{await yn.upload(de.name,xe.result,s),P(),X()}catch(Oe){z(Oe.response?.data?.error||"Upload failed")}},de.type.startsWith("text/")||["application/json","application/javascript"].includes(de.type)?xe.readAsText(de):xe.readAsDataURL(de),K.target.value=""},$e=["My Stuff",...s.split("/").filter(Boolean)];return c.jsxs("div",{style:pe.container,children:[c.jsxs("div",{style:pe.header,children:[c.jsxs("div",{style:pe.headerLeft,children:[c.jsx(ic,{size:24,color:"#FF9933"}),c.jsx("h1",{style:pe.title,children:"My Stuff"}),g&&c.jsxs("span",{style:pe.statsTag,children:[g.fileCount," files · ",g.folderCount," folders · ",g.totalSizeFormatted]})]}),c.jsxs("div",{style:pe.headerActions,children:[c.jsxs("button",{onClick:()=>M(!0),style:pe.actionBtn,children:[c.jsx(Hp,{size:16})," New Folder"]}),c.jsxs("button",{onClick:()=>Q.current?.click(),style:pe.actionBtn,children:[c.jsx(Dx,{size:16})," Upload"]}),c.jsx("button",{onClick:P,style:pe.actionBtnIcon,children:c.jsx(yx,{size:16})}),c.jsx("input",{ref:Q,type:"file",onChange:rt,style:{display:"none"}})]})]}),c.jsx("div",{style:pe.breadcrumb,children:$e.map((K,de)=>c.jsxs($r.Fragment,{children:[de>0&&c.jsx(ui,{size:14,color:"#64748b"}),c.jsx("button",{onClick:()=>{if(de===0)f("");else{const xe=s.split("/").slice(0,de).join("/");f(xe)}},style:{...pe.crumbItem,color:de===$e.length-1?"#FF9933":"#94a3b8"},children:K})]},de))}),v&&c.jsxs("div",{style:pe.newFolderRow,children:[c.jsx(Hp,{size:18,color:"#FF9933"}),c.jsx("input",{type:"text",value:k,onChange:K=>T(K.target.value),onKeyDown:K=>K.key==="Enter"&&Be(),placeholder:"Folder name...",style:pe.newFolderInput,autoFocus:!0}),c.jsx("button",{onClick:Be,style:pe.newFolderOk,children:"Create"}),c.jsx("button",{onClick:()=>{M(!1),T("")},style:pe.newFolderCancel,children:c.jsx(qp,{size:16})})]}),w&&c.jsxs("div",{style:pe.error,children:["❌ ",w,c.jsx("button",{onClick:()=>z(""),style:pe.errorClose,children:"×"})]}),s&&c.jsxs("button",{onClick:ce,style:pe.backBtn,children:[c.jsx(xv,{size:16})," Back"]}),h?c.jsx("div",{style:pe.loadingBox,children:"Loading..."}):o.length===0?c.jsxs("div",{style:pe.emptyBox,children:[c.jsx(Cm,{size:48,color:"#333"}),c.jsx("p",{style:pe.emptyText,children:"This folder is empty"}),c.jsx("p",{style:pe.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):c.jsx("div",{style:pe.fileGrid,children:o.map((K,de)=>{const xe=z2(K),Oe=xe.icon;return c.jsxs("div",{style:pe.fileCard,onDoubleClick:()=>le(K),children:[c.jsxs("div",{style:pe.fileCardTop,onClick:()=>le(K),children:[c.jsx(Oe,{size:32,color:xe.color}),c.jsxs("div",{style:pe.fileInfo,children:[c.jsx("span",{style:pe.fileName,children:K.name}),c.jsxs("span",{style:pe.fileMeta,children:[K.type==="folder"?"Folder":om(K.size),K.modified&&` · ${C2(K.modified)}`]})]})]}),c.jsxs("div",{style:pe.fileActions,children:[K.type==="file"&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>ye(K),style:pe.fileActionBtn,title:"Preview",children:c.jsx(zm,{size:14})}),c.jsx("button",{onClick:()=>F(K),style:pe.fileActionBtn,title:"Download",children:c.jsx(Lv,{size:14})})]}),c.jsx("button",{onClick:()=>we(K),style:{...pe.fileActionBtn,...pe.deleteBtn},title:"Delete",children:c.jsx(_m,{size:14})})]})]},de)})}),y&&c.jsx("div",{style:pe.modalOverlay,onClick:()=>b(null),children:c.jsxs("div",{style:pe.modal,onClick:K=>K.stopPropagation(),children:[c.jsxs("div",{style:pe.modalHeader,children:[c.jsxs("h3",{style:pe.modalTitle,children:[c.jsx(Ku,{size:18,color:"#FF9933"}),y.name]}),c.jsxs("span",{style:pe.modalMeta,children:[om(y.size)," · ",y.extension?.toUpperCase()]}),c.jsx("button",{onClick:()=>b(null),style:pe.modalClose,children:c.jsx(qp,{size:20})})]}),c.jsx("pre",{style:pe.previewContent,children:y.content})]})})]})}const pe={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",flexWrap:"wrap",gap:"12px"},headerLeft:{display:"flex",alignItems:"center",gap:"10px"},title:{fontSize:"22px",fontWeight:"700",color:"#fff",margin:0},statsTag:{fontSize:"12px",color:"#94a3b8",background:"rgba(255,255,255,0.05)",padding:"4px 10px",borderRadius:"12px"},headerActions:{display:"flex",gap:"8px"},actionBtn:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 14px",background:"rgba(255,153,51,0.1)",border:"1px solid rgba(255,153,51,0.3)",borderRadius:"8px",color:"#FF9933",cursor:"pointer",fontSize:"13px",fontWeight:"500",transition:"all 0.2s"},actionBtnIcon:{display:"flex",alignItems:"center",padding:"8px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",transition:"all 0.2s"},breadcrumb:{display:"flex",alignItems:"center",gap:"4px",marginBottom:"16px",padding:"8px 12px",background:"rgba(255,255,255,0.03)",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.06)"},crumbItem:{background:"none",border:"none",cursor:"pointer",fontSize:"13px",padding:"2px 4px",borderRadius:"4px"},newFolderRow:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",padding:"10px 14px",background:"rgba(255,153,51,0.05)",border:"1px solid rgba(255,153,51,0.2)",borderRadius:"8px"},newFolderInput:{flex:1,background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"6px 10px",color:"#fff",fontSize:"13px",outline:"none"},newFolderOk:{padding:"6px 14px",background:"#FF9933",border:"none",borderRadius:"6px",color:"#000",fontWeight:"600",cursor:"pointer",fontSize:"12px"},newFolderCancel:{padding:"6px",background:"none",border:"none",color:"#94a3b8",cursor:"pointer"},error:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"8px",color:"#ef4444",fontSize:"13px",marginBottom:"12px"},errorClose:{background:"none",border:"none",color:"#ef4444",cursor:"pointer",fontSize:"16px"},backBtn:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"12px",padding:"6px 12px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",fontSize:"13px"},loadingBox:{textAlign:"center",color:"#64748b",padding:"60px 0",fontSize:"14px"},emptyBox:{textAlign:"center",padding:"60px 0"},emptyText:{color:"#64748b",fontSize:"16px",margin:"12px 0 4px"},emptyHint:{color:"#4a5568",fontSize:"13px"},fileGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"10px"},fileCard:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 14px",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",transition:"all 0.15s",cursor:"pointer"},fileCardTop:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},fileInfo:{display:"flex",flexDirection:"column",minWidth:0},fileName:{fontSize:"14px",color:"#e2e8f0",fontWeight:"500",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},fileMeta:{fontSize:"11px",color:"#64748b"},fileActions:{display:"flex",gap:"4px",flexShrink:0},fileActionBtn:{padding:"5px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",color:"#94a3b8",cursor:"pointer",transition:"all 0.15s"},deleteBtn:{color:"#ef4444"},modalOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{width:"90%",maxWidth:"800px",maxHeight:"80vh",background:"#1a1a2e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"16px",overflow:"hidden",display:"flex",flexDirection:"column"},modalHeader:{display:"flex",alignItems:"center",gap:"8px",padding:"14px 20px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.03)"},modalTitle:{display:"flex",alignItems:"center",gap:"8px",fontSize:"15px",color:"#fff",margin:0,flex:1},modalMeta:{fontSize:"12px",color:"#64748b"},modalClose:{background:"none",border:"none",color:"#94a3b8",cursor:"pointer",padding:"4px"},previewContent:{padding:"16px 20px",margin:0,overflow:"auto",flex:1,fontSize:"13px",lineHeight:"1.6",color:"#cbd5e1",fontFamily:"'JetBrains Mono', 'Fira Code', monospace',",whiteSpace:"pre-wrap",wordBreak:"break-word"}},w2=({user:i,loading:o,updateUser:u,sidebarOpen:s,setSidebarOpen:f})=>{const h=$t();return o&&h.pathname!=="/"?c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[c.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Loading SamarthyaBot..."})]}):h.pathname==="/"?c.jsx(A2,{}):c.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[c.jsx(kx,{user:i,isOpen:s,onToggle:()=>f(!s)}),c.jsx("main",{style:{flex:1,minHeight:"100vh"},children:c.jsxs(D1,{children:[c.jsx(na,{path:"/dashboard",element:c.jsx(v2,{user:i})}),c.jsx(na,{path:"/chat",element:c.jsx(lm,{user:i})}),c.jsx(na,{path:"/chat/:id",element:c.jsx(lm,{user:i})}),c.jsx(na,{path:"/settings",element:c.jsx(x2,{user:i,onUpdate:u})}),c.jsx(na,{path:"/audit",element:c.jsx(b2,{user:i})}),c.jsx(na,{path:"/tools",element:c.jsx(S2,{user:i})}),c.jsx(na,{path:"/integrations",element:c.jsx(T2,{user:i})}),c.jsx(na,{path:"/my-stuff",element:c.jsx(_2,{user:i})}),c.jsx(na,{path:"*",element:c.jsx(w1,{to:"/dashboard"})})]})})]})};function O2(){const[i,o]=A.useState(null),[u,s]=A.useState(!0),[f,h]=A.useState(!0);A.useEffect(()=>{(async()=>{try{const x=await dc.getProfile();o(x.data.user)}catch(x){console.error(x)}s(!1)})()},[]);const p=g=>{o(g)};return c.jsx(av,{children:c.jsx(w2,{user:i,loading:u,updateUser:p,sidebarOpen:f,setSidebarOpen:h})})}Bg.createRoot(document.getElementById("root")).render(c.jsx($r.StrictMode,{children:c.jsx(O2,{})}));