samarthya-bot 1.0.2

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 (50) hide show
  1. package/README.md +92 -0
  2. package/backend/.env.example +23 -0
  3. package/backend/bin/samarthya.js +384 -0
  4. package/backend/config/constants.js +71 -0
  5. package/backend/config/db.js +13 -0
  6. package/backend/controllers/auditController.js +86 -0
  7. package/backend/controllers/authController.js +154 -0
  8. package/backend/controllers/chatController.js +158 -0
  9. package/backend/controllers/fileController.js +268 -0
  10. package/backend/controllers/platformController.js +54 -0
  11. package/backend/controllers/screenController.js +91 -0
  12. package/backend/controllers/telegramController.js +120 -0
  13. package/backend/controllers/toolsController.js +56 -0
  14. package/backend/controllers/whatsappController.js +214 -0
  15. package/backend/fix_toolRegistry.js +25 -0
  16. package/backend/middleware/auth.js +28 -0
  17. package/backend/models/AuditLog.js +28 -0
  18. package/backend/models/BackgroundJob.js +13 -0
  19. package/backend/models/Conversation.js +40 -0
  20. package/backend/models/Memory.js +17 -0
  21. package/backend/models/User.js +24 -0
  22. package/backend/package-lock.json +3766 -0
  23. package/backend/package.json +41 -0
  24. package/backend/public/assets/index-Ckf0GO1B.css +1 -0
  25. package/backend/public/assets/index-Do4jNsZS.js +19 -0
  26. package/backend/public/assets/index-Ui-pyZvK.js +25 -0
  27. package/backend/public/favicon.svg +17 -0
  28. package/backend/public/index.html +18 -0
  29. package/backend/public/manifest.json +16 -0
  30. package/backend/routes/audit.js +9 -0
  31. package/backend/routes/auth.js +11 -0
  32. package/backend/routes/chat.js +11 -0
  33. package/backend/routes/files.js +14 -0
  34. package/backend/routes/platform.js +18 -0
  35. package/backend/routes/screen.js +10 -0
  36. package/backend/routes/telegram.js +8 -0
  37. package/backend/routes/tools.js +9 -0
  38. package/backend/routes/whatsapp.js +11 -0
  39. package/backend/server.js +134 -0
  40. package/backend/services/background/backgroundService.js +81 -0
  41. package/backend/services/llm/llmService.js +444 -0
  42. package/backend/services/memory/memoryService.js +159 -0
  43. package/backend/services/planner/plannerService.js +182 -0
  44. package/backend/services/security/securityService.js +166 -0
  45. package/backend/services/telegram/telegramService.js +49 -0
  46. package/backend/services/tools/toolRegistry.js +879 -0
  47. package/backend/services/whatsapp/whatsappService.js +254 -0
  48. package/backend/test_email.js +29 -0
  49. package/backend/test_parser.js +10 -0
  50. package/package.json +49 -0
@@ -0,0 +1,25 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))s(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const h of p.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function c(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function s(d){if(d.ep)return;d.ep=!0;const p=c(d);fetch(d.href,p)}})();function um(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var _u={exports:{}},oi={};var gh;function zg(){if(gh)return oi;gh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(s,d,p){var h=null;if(p!==void 0&&(h=""+p),d.key!==void 0&&(h=""+d.key),"key"in d){p={};for(var x in d)x!=="key"&&(p[x]=d[x])}else p=d;return d=p.ref,{$$typeof:i,type:s,key:h,ref:d!==void 0?d:null,props:p}}return oi.Fragment=o,oi.jsx=c,oi.jsxs=c,oi}var xh;function Cg(){return xh||(xh=1,_u.exports=zg()),_u.exports}var u=Cg(),ku={exports:{}},de={};var vh;function wg(){if(vh)return de;vh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),z=Symbol.iterator;function D(S){return S===null||typeof S!="object"?null:(S=z&&S[z]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,_={};function V(S,M,Y){this.props=S,this.context=M,this.refs=_,this.updater=Y||T}V.prototype.isReactComponent={},V.prototype.setState=function(S,M){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,M,"setState")},V.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function K(){}K.prototype=V.prototype;function X(S,M,Y){this.props=S,this.context=M,this.refs=_,this.updater=Y||T}var ie=X.prototype=new K;ie.constructor=X,U(ie,V.prototype),ie.isPureReactComponent=!0;var fe=Array.isArray;function xe(){}var J={H:null,A:null,T:null,S:null},_e=Object.prototype.hasOwnProperty;function Me(S,M,Y){var Q=Y.ref;return{$$typeof:i,type:S,key:M,ref:Q!==void 0?Q:null,props:Y}}function ot(S,M){return Me(S.type,M,S.props)}function $e(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function F(S){var M={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return M[Y]})}var he=/\/+/g;function Se(S,M){return typeof S=="object"&&S!==null&&S.key!=null?F(""+S.key):M.toString(36)}function ke(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(xe,xe):(S.status="pending",S.then(function(M){S.status==="pending"&&(S.status="fulfilled",S.value=M)},function(M){S.status==="pending"&&(S.status="rejected",S.reason=M)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function B(S,M,Y,Q,P){var ce=typeof S;(ce==="undefined"||ce==="boolean")&&(S=null);var ze=!1;if(S===null)ze=!0;else switch(ce){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(S.$$typeof){case i:case o:ze=!0;break;case b:return ze=S._init,B(ze(S._payload),M,Y,Q,P)}}if(ze)return P=P(S),ze=Q===""?"."+Se(S,0):Q,fe(P)?(Y="",ze!=null&&(Y=ze.replace(he,"$&/")+"/"),B(P,M,Y,"",function(hl){return hl})):P!=null&&($e(P)&&(P=ot(P,Y+(P.key==null||S&&S.key===P.key?"":(""+P.key).replace(he,"$&/")+"/")+ze)),M.push(P)),1;ze=0;var st=Q===""?".":Q+":";if(fe(S))for(var We=0;We<S.length;We++)Q=S[We],ce=st+Se(Q,We),ze+=B(Q,M,Y,ce,P);else if(We=D(S),typeof We=="function")for(S=We.call(S),We=0;!(Q=S.next()).done;)Q=Q.value,ce=st+Se(Q,We++),ze+=B(Q,M,Y,ce,P);else if(ce==="object"){if(typeof S.then=="function")return B(ke(S),M,Y,Q,P);throw M=String(S),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Z(S,M,Y){if(S==null)return S;var Q=[],P=0;return B(S,Q,"","",function(ce){return M.call(Y,ce,P++)}),Q}function ae(S){if(S._status===-1){var M=S._result;M=M(),M.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=M)}if(S._status===1)return S._result.default;throw S._result}var Ae=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=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(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},W={map:Z,forEach:function(S,M,Y){Z(S,function(){M.apply(this,arguments)},Y)},count:function(S){var M=0;return Z(S,function(){M++}),M},toArray:function(S){return Z(S,function(M){return M})||[]},only:function(S){if(!$e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return de.Activity=g,de.Children=W,de.Component=V,de.Fragment=c,de.Profiler=d,de.PureComponent=X,de.StrictMode=s,de.Suspense=v,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,de.__COMPILER_RUNTIME={__proto__:null,c:function(S){return J.H.useMemoCache(S)}},de.cache=function(S){return function(){return S.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(S,M,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Q=U({},S.props),P=S.key;if(M!=null)for(ce in M.key!==void 0&&(P=""+M.key),M)!_e.call(M,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&M.ref===void 0||(Q[ce]=M[ce]);var ce=arguments.length-2;if(ce===1)Q.children=Y;else if(1<ce){for(var ze=Array(ce),st=0;st<ce;st++)ze[st]=arguments[st+2];Q.children=ze}return Me(S.type,P,Q)},de.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:p,_context:S},S},de.createElement=function(S,M,Y){var Q,P={},ce=null;if(M!=null)for(Q in M.key!==void 0&&(ce=""+M.key),M)_e.call(M,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(P[Q]=M[Q]);var ze=arguments.length-2;if(ze===1)P.children=Y;else if(1<ze){for(var st=Array(ze),We=0;We<ze;We++)st[We]=arguments[We+2];P.children=st}if(S&&S.defaultProps)for(Q in ze=S.defaultProps,ze)P[Q]===void 0&&(P[Q]=ze[Q]);return Me(S,ce,P)},de.createRef=function(){return{current:null}},de.forwardRef=function(S){return{$$typeof:x,render:S}},de.isValidElement=$e,de.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ae}},de.memo=function(S,M){return{$$typeof:y,type:S,compare:M===void 0?null:M}},de.startTransition=function(S){var M=J.T,Y={};J.T=Y;try{var Q=S(),P=J.S;P!==null&&P(Y,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(xe,Ae)}catch(ce){Ae(ce)}finally{M!==null&&Y.types!==null&&(M.types=Y.types),J.T=M}},de.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},de.use=function(S){return J.H.use(S)},de.useActionState=function(S,M,Y){return J.H.useActionState(S,M,Y)},de.useCallback=function(S,M){return J.H.useCallback(S,M)},de.useContext=function(S){return J.H.useContext(S)},de.useDebugValue=function(){},de.useDeferredValue=function(S,M){return J.H.useDeferredValue(S,M)},de.useEffect=function(S,M){return J.H.useEffect(S,M)},de.useEffectEvent=function(S){return J.H.useEffectEvent(S)},de.useId=function(){return J.H.useId()},de.useImperativeHandle=function(S,M,Y){return J.H.useImperativeHandle(S,M,Y)},de.useInsertionEffect=function(S,M){return J.H.useInsertionEffect(S,M)},de.useLayoutEffect=function(S,M){return J.H.useLayoutEffect(S,M)},de.useMemo=function(S,M){return J.H.useMemo(S,M)},de.useOptimistic=function(S,M){return J.H.useOptimistic(S,M)},de.useReducer=function(S,M,Y){return J.H.useReducer(S,M,Y)},de.useRef=function(S){return J.H.useRef(S)},de.useState=function(S){return J.H.useState(S)},de.useSyncExternalStore=function(S,M,Y){return J.H.useSyncExternalStore(S,M,Y)},de.useTransition=function(){return J.H.useTransition()},de.version="19.2.4",de}var bh;function tc(){return bh||(bh=1,ku.exports=wg()),ku.exports}var E=tc();const ao=um(E);var Ou={exports:{}},si={},Bu={exports:{}},Mu={};var Sh;function Dg(){return Sh||(Sh=1,(function(i){function o(B,Z){var ae=B.length;B.push(Z);e:for(;0<ae;){var Ae=ae-1>>>1,W=B[Ae];if(0<d(W,Z))B[Ae]=Z,B[ae]=W,ae=Ae;else break e}}function c(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var Z=B[0],ae=B.pop();if(ae!==Z){B[0]=ae;e:for(var Ae=0,W=B.length,S=W>>>1;Ae<S;){var M=2*(Ae+1)-1,Y=B[M],Q=M+1,P=B[Q];if(0>d(Y,ae))Q<W&&0>d(P,Y)?(B[Ae]=P,B[Q]=ae,Ae=Q):(B[Ae]=Y,B[M]=ae,Ae=M);else if(Q<W&&0>d(P,ae))B[Ae]=P,B[Q]=ae,Ae=Q;else break e}}return Z}function d(B,Z){var ae=B.sortIndex-Z.sortIndex;return ae!==0?ae:B.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;i.unstable_now=function(){return p.now()}}else{var h=Date,x=h.now();i.unstable_now=function(){return h.now()-x}}var v=[],y=[],b=1,g=null,z=3,D=!1,T=!1,U=!1,_=!1,V=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ie(B){for(var Z=c(y);Z!==null;){if(Z.callback===null)s(y);else if(Z.startTime<=B)s(y),Z.sortIndex=Z.expirationTime,o(v,Z);else break;Z=c(y)}}function fe(B){if(U=!1,ie(B),!T)if(c(v)!==null)T=!0,xe||(xe=!0,F());else{var Z=c(y);Z!==null&&ke(fe,Z.startTime-B)}}var xe=!1,J=-1,_e=5,Me=-1;function ot(){return _?!0:!(i.unstable_now()-Me<_e)}function $e(){if(_=!1,xe){var B=i.unstable_now();Me=B;var Z=!0;try{e:{T=!1,U&&(U=!1,K(J),J=-1),D=!0;var ae=z;try{t:{for(ie(B),g=c(v);g!==null&&!(g.expirationTime>B&&ot());){var Ae=g.callback;if(typeof Ae=="function"){g.callback=null,z=g.priorityLevel;var W=Ae(g.expirationTime<=B);if(B=i.unstable_now(),typeof W=="function"){g.callback=W,ie(B),Z=!0;break t}g===c(v)&&s(v),ie(B)}else s(v);g=c(v)}if(g!==null)Z=!0;else{var S=c(y);S!==null&&ke(fe,S.startTime-B),Z=!1}}break e}finally{g=null,z=ae,D=!1}Z=void 0}}finally{Z?F():xe=!1}}}var F;if(typeof X=="function")F=function(){X($e)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Se=he.port2;he.port1.onmessage=$e,F=function(){Se.postMessage(null)}}else F=function(){V($e,0)};function ke(B,Z){J=V(function(){B(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(B){B.callback=null},i.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_e=0<B?Math.floor(1e3/B):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_next=function(B){switch(z){case 1:case 2:case 3:var Z=3;break;default:Z=z}var ae=z;z=Z;try{return B()}finally{z=ae}},i.unstable_requestPaint=function(){_=!0},i.unstable_runWithPriority=function(B,Z){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=z;z=B;try{return Z()}finally{z=ae}},i.unstable_scheduleCallback=function(B,Z,ae){var Ae=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ae+ae:Ae):ae=Ae,B){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ae+W,B={id:b++,callback:Z,priorityLevel:B,startTime:ae,expirationTime:W,sortIndex:-1},ae>Ae?(B.sortIndex=ae,o(y,B),c(v)===null&&B===c(y)&&(U?(K(J),J=-1):U=!0,ke(fe,ae-Ae))):(B.sortIndex=W,o(v,B),T||D||(T=!0,xe||(xe=!0,F()))),B},i.unstable_shouldYield=ot,i.unstable_wrapCallback=function(B){var Z=z;return function(){var ae=z;z=Z;try{return B.apply(this,arguments)}finally{z=ae}}}})(Mu)),Mu}var jh;function _g(){return jh||(jh=1,Bu.exports=Dg()),Bu.exports}var Nu={exports:{}},ht={};var Rh;function kg(){if(Rh)return ht;Rh=1;var i=tc();function o(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(o(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function p(v,y,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:v,containerInfo:y,implementation:b}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ht.createPortal=function(v,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return p(v,y,null,b)},ht.flushSync=function(v){var y=h.T,b=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=b,s.d.f()}},ht.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},ht.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ht.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var b=y.as,g=x(b,y.crossOrigin),z=typeof y.integrity=="string"?y.integrity:void 0,D=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:g,integrity:z,fetchPriority:D}):b==="script"&&s.d.X(v,{crossOrigin:g,integrity:z,fetchPriority:D,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=x(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},ht.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,g=x(b,y.crossOrigin);s.d.L(v,b,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ht.preloadModule=function(v,y){if(typeof v=="string")if(y){var b=x(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},ht.requestFormReset=function(v){s.d.r(v)},ht.unstable_batchedUpdates=function(v,y){return v(y)},ht.useFormState=function(v,y,b){return h.H.useFormState(v,y,b)},ht.useFormStatus=function(){return h.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var Eh;function Og(){if(Eh)return Nu.exports;Eh=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(),Nu.exports=kg(),Nu.exports}var Th;function Bg(){if(Th)return si;Th=1;var i=_g(),o=tc(),c=Og();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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(p(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return v(l),e;if(r===n)return v(l),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=l,n=r;else{for(var f=!1,m=l.child;m;){if(m===a){f=!0,a=l,n=r;break}if(m===n){f=!0,n=l,a=r;break}m=m.sibling}if(!f){for(m=r.child;m;){if(m===a){f=!0,a=r,n=l;break}if(m===n){f=!0,n=r,a=l;break}m=m.sibling}if(!f)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 g=Object.assign,z=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),$e=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=$e&&e[$e]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case V:return"Profiler";case _:return"StrictMode";case fe:return"Suspense";case xe:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case X:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var ke=Array.isArray,B=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Ae=[],W=-1;function S(e){return{current:e}}function M(e){0>W||(e.current=Ae[W],Ae[W]=null,W--)}function Y(e,t){W++,Ae[W]=e.current,e.current=t}var Q=S(null),P=S(null),ce=S(null),ze=S(null);function st(e,t){switch(Y(ce,t),Y(P,e),Y(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qp(t),e=Gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(Q),Y(Q,e)}function We(){M(Q),M(P),M(ce)}function hl(e){e.memoizedState!==null&&Y(ze,e);var t=Q.current,a=Gp(t,e.type);t!==a&&(Y(P,e),Y(Q,a))}function ji(e){P.current===e&&(M(Q),M(P)),ze.current===e&&(M(ze),ni._currentValue=ae)}var po,mc;function Ia(e){if(po===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||"",mc=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+po+e+mc}var ho=!1;function mo(e,t){if(!e||ho)return"";ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(H){var k=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){k=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){k=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&k&&typeof H.stack=="string")return[H.stack,k.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(),f=r[0],m=r[1];if(f&&m){var j=f.split(`
4
+ `),w=m.split(`
5
+ `);for(l=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;if(n===j.length||l===w.length)for(n=j.length-1,l=w.length-1;1<=n&&0<=l&&j[n]!==w[l];)l--;for(;1<=n&&0<=l;n--,l--)if(j[n]!==w[l]){if(n!==1||l!==1)do if(n--,l--,0>l||j[n]!==w[l]){var L=`
6
+ `+j[n].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=n&&0<=l);break}}}finally{ho=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ia(a):""}function l0(e,t){switch(e.tag){case 26:case 27:case 5:return Ia(e.type);case 16:return Ia("Lazy");case 13:return e.child!==t&&t!==null?Ia("Suspense Fallback"):Ia("Suspense");case 19:return Ia("SuspenseList");case 0:case 15:return mo(e.type,!1);case 11:return mo(e.type.render,!1);case 1:return mo(e.type,!0);case 31:return Ia("Activity");default:return""}}function yc(e){try{var t="",a=null;do t+=l0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var yo=Object.prototype.hasOwnProperty,go=i.unstable_scheduleCallback,xo=i.unstable_cancelCallback,i0=i.unstable_shouldYield,r0=i.unstable_requestPaint,At=i.unstable_now,o0=i.unstable_getCurrentPriorityLevel,gc=i.unstable_ImmediatePriority,xc=i.unstable_UserBlockingPriority,Ri=i.unstable_NormalPriority,s0=i.unstable_LowPriority,vc=i.unstable_IdlePriority,u0=i.log,c0=i.unstable_setDisableYieldValue,ml=null,zt=null;function Aa(e){if(typeof u0=="function"&&c0(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(ml,e)}catch{}}var Ct=Math.clz32?Math.clz32:p0,d0=Math.log,f0=Math.LN2;function p0(e){return e>>>=0,e===0?32:31-(d0(e)/f0|0)|0}var Ei=256,Ti=262144,Ai=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 zi(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?l=$a(n):(f&=m,f!==0?l=$a(f):a||(a=m&~e,a!==0&&(l=$a(a))))):(m=n&~r,m!==0?l=$a(m):f!==0?l=$a(f):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 yl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function h0(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 bc(){var e=Ai;return Ai<<=1,(Ai&62914560)===0&&(Ai=4194304),e}function vo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function gl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function m0(e,t,a,n,l,r){var f=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,w=e.hiddenUpdates;for(a=f&~a;0<a;){var L=31-Ct(a),G=1<<L;m[L]=0,j[L]=-1;var k=w[L];if(k!==null)for(w[L]=null,L=0;L<k.length;L++){var H=k[L];H!==null&&(H.lane&=-536870913)}a&=~G}n!==0&&Sc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(f&~t))}function Sc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function jc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function Rc(e,t){var a=t&-t;return a=(a&42)!==0?1:bo(a),(a&(e.suspendedLanes|t))!==0?0:a}function bo(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 So(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:ch(e.type))}function Tc(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var za=Math.random().toString(36).slice(2),ut="__reactFiber$"+za,gt="__reactProps$"+za,Rn="__reactContainer$"+za,jo="__reactEvents$"+za,y0="__reactListeners$"+za,g0="__reactHandles$"+za,Ac="__reactResources$"+za,xl="__reactMarker$"+za;function Ro(e){delete e[ut],delete e[gt],delete e[jo],delete e[y0],delete e[g0]}function En(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Rn]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wp(e);e!==null;){if(a=e[ut])return a;e=Wp(e)}return t}e=a,a=e.parentNode}return null}function Tn(e){if(e=e[ut]||e[Rn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function An(e){var t=e[Ac];return t||(t=e[Ac]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[xl]=!0}var zc=new Set,Cc={};function Pa(e,t){zn(e,t),zn(e+"Capture",t)}function zn(e,t){for(Cc[e]=t,e=0;e<t.length;e++)zc.add(t[e])}var x0=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]*$"),wc={},Dc={};function v0(e){return yo.call(Dc,e)?!0:yo.call(wc,e)?!1:x0.test(e)?Dc[e]=!0:(wc[e]=!0,!1)}function Ci(e,t,a){if(v0(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 wi(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 oa(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 _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b0(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(f){a=""+f,r.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){if(!e._valueTracker){var t=_c(e)?"checked":"value";e._valueTracker=b0(e,t,""+e[t])}}function kc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=_c(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Di(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 S0=/[\n"\\]/g;function Ut(e){return e.replace(S0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function To(e,t,a,n,l,r,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Ao(e,f,Ht(t)):a!=null?Ao(e,f,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 Oc(e,t,a,n,l,r,f,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)){Eo(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,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Eo(e)}function Ao(e,t,a){t==="number"&&Di(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Cn(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 Bc(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 Mc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(ke(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),Eo(e)}function wn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var j0=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||j0.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 zo(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 R0=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"]]),E0=/^[\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 _i(e){return E0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sa(){}var Co=null;function wo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dn=null,_n=null;function Uc(e){var t=Tn(e);if(t&&(e=t.stateNode)){var a=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(To(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[gt]||null;if(!l)throw Error(s(90));To(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&&kc(n)}break e;case"textarea":Bc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Cn(e,!!a.multiple,t,!1)}}}var Do=!1;function Lc(e,t,a){if(Do)return e(t,a);Do=!0;try{var n=e(t);return n}finally{if(Do=!1,(Dn!==null||_n!==null)&&(xr(),Dn&&(t=Dn,e=_n,_n=Dn=null,Uc(t),e)))for(t=0;t<e.length;t++)Uc(e[t])}}function bl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[gt]||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 ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(ua)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){_o=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{_o=!1}var Ca=null,ko=null,ki=null;function qc(){if(ki)return ki;var e,t=ko,a=t.length,n,l="value"in Ca?Ca.value:Ca.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===l[r-n];n++);return ki=l.slice(e,1<n?1-n:void 0)}function Oi(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 Bi(){return!0}function Gc(){return!1}function xt(e){function t(a,n,l,r,f){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=f,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)?Bi:Gc,this.isPropagationStopped=Gc,this}return g(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=Bi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=xt(en),jl=g({},en,{view:0,detail:0}),T0=xt(jl),Oo,Bo,Rl,Ni=g({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,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!==Rl&&(Rl&&e.type==="mousemove"?(Oo=e.screenX-Rl.screenX,Bo=e.screenY-Rl.screenY):Bo=Oo=0,Rl=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:Bo}}),Yc=xt(Ni),A0=g({},Ni,{dataTransfer:0}),z0=xt(A0),C0=g({},jl,{relatedTarget:0}),Mo=xt(C0),w0=g({},en,{animationName:0,elapsedTime:0,pseudoElement:0}),D0=xt(w0),_0=g({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),k0=xt(_0),O0=g({},en,{data:0}),Vc=xt(O0),B0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M0={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"},N0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=N0[e])?!!t[e]:!1}function No(){return H0}var U0=g({},jl,{key:function(e){if(e.key){var t=B0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),L0=xt(U0),q0=g({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xc=xt(q0),G0=g({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),Y0=xt(G0),V0=g({},en,{propertyName:0,elapsedTime:0,pseudoElement:0}),X0=xt(V0),Q0=g({},Ni,{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}),Z0=xt(Q0),F0=g({},en,{newState:0,oldState:0}),W0=xt(F0),K0=[9,13,27,32],Ho=ua&&"CompositionEvent"in window,El=null;ua&&"documentMode"in document&&(El=document.documentMode);var J0=ua&&"TextEvent"in window&&!El,Qc=ua&&(!Ho||El&&8<El&&11>=El),Zc=" ",Fc=!1;function Wc(e,t){switch(e){case"keyup":return K0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function I0(e,t){switch(e){case"compositionend":return Kc(t);case"keypress":return t.which!==32?null:(Fc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Fc?null:e;default:return null}}function $0(e,t){if(kn)return e==="compositionend"||!Ho&&Wc(e,t)?(e=qc(),ki=ko=Ca=null,kn=!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 Qc&&t.locale!=="ko"?null:t.data;default:return null}}var P0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P0[e.type]:t==="textarea"}function Ic(e,t,a,n){Dn?_n?_n.push(n):_n=[n]:Dn=n,t=Tr(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Tl=null,Al=null;function ey(e){Bp(e,0)}function Hi(e){var t=vl(e);if(kc(t))return e}function $c(e,t){if(e==="change")return t}var Pc=!1;if(ua){var Uo;if(ua){var Lo="oninput"in document;if(!Lo){var ed=document.createElement("div");ed.setAttribute("oninput","return;"),Lo=typeof ed.oninput=="function"}Uo=Lo}else Uo=!1;Pc=Uo&&(!document.documentMode||9<document.documentMode)}function td(){Tl&&(Tl.detachEvent("onpropertychange",ad),Al=Tl=null)}function ad(e){if(e.propertyName==="value"&&Hi(Al)){var t=[];Ic(t,Al,e,wo(e)),Lc(ey,t)}}function ty(e,t,a){e==="focusin"?(td(),Tl=t,Al=a,Tl.attachEvent("onpropertychange",ad)):e==="focusout"&&td()}function ay(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hi(Al)}function ny(e,t){if(e==="click")return Hi(t)}function ly(e,t){if(e==="input"||e==="change")return Hi(t)}function iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:iy;function zl(e,t){if(wt(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(!yo.call(t,l)||!wt(e[l],t[l]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ld(e,t){var a=nd(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=nd(a)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Di(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=Di(e.document)}return t}function qo(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 ry=ua&&"documentMode"in document&&11>=document.documentMode,On=null,Go=null,Cl=null,Yo=!1;function od(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yo||On==null||On!==Di(n)||(n=On,"selectionStart"in n&&qo(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}),Cl&&zl(Cl,n)||(Cl=n,n=Tr(Go,"onSelect"),0<n.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=On)))}function tn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Bn={animationend:tn("Animation","AnimationEnd"),animationiteration:tn("Animation","AnimationIteration"),animationstart:tn("Animation","AnimationStart"),transitionrun:tn("Transition","TransitionRun"),transitionstart:tn("Transition","TransitionStart"),transitioncancel:tn("Transition","TransitionCancel"),transitionend:tn("Transition","TransitionEnd")},Vo={},sd={};ua&&(sd=document.createElement("div").style,"AnimationEvent"in window||(delete Bn.animationend.animation,delete Bn.animationiteration.animation,delete Bn.animationstart.animation),"TransitionEvent"in window||delete Bn.transitionend.transition);function an(e){if(Vo[e])return Vo[e];if(!Bn[e])return e;var t=Bn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in sd)return Vo[e]=t[a];return e}var ud=an("animationend"),cd=an("animationiteration"),dd=an("animationstart"),oy=an("transitionrun"),sy=an("transitionstart"),uy=an("transitioncancel"),fd=an("transitionend"),pd=new Map,Xo="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(" ");Xo.push("scrollEnd");function Wt(e,t){pd.set(e,t),Pa(t,[e])}var Ui=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)},Lt=[],Mn=0,Qo=0;function Li(){for(var e=Mn,t=Qo=Mn=0;t<e;){var a=Lt[t];Lt[t++]=null;var n=Lt[t];Lt[t++]=null;var l=Lt[t];Lt[t++]=null;var r=Lt[t];if(Lt[t++]=null,n!==null&&l!==null){var f=n.pending;f===null?l.next=l:(l.next=f.next,f.next=l),n.pending=l}r!==0&&hd(a,l,r)}}function qi(e,t,a,n){Lt[Mn++]=e,Lt[Mn++]=t,Lt[Mn++]=a,Lt[Mn++]=n,Qo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Zo(e,t,a,n){return qi(e,t,a,n),Gi(e)}function nn(e,t){return qi(e,null,null,t),Gi(e)}function hd(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-Ct(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Gi(e){if(50<Jl)throw Jl=0,tu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Nn={};function cy(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 Dt(e,t,a,n){return new cy(e,t,a,n)}function Fo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var a=e.alternate;return a===null?(a=Dt(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 md(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 Yi(e,t,a,n,l,r){var f=0;if(n=e,typeof e=="function")Fo(e)&&(f=1);else if(typeof e=="string")f=mg(e,a,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=Dt(31,a,t,l),e.elementType=Me,e.lanes=r,e;case U:return ln(a.children,l,r,t);case _:f=8,l|=24;break;case V:return e=Dt(12,a,t,l|2),e.elementType=V,e.lanes=r,e;case fe:return e=Dt(13,a,t,l),e.elementType=fe,e.lanes=r,e;case xe:return e=Dt(19,a,t,l),e.elementType=xe,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:f=10;break e;case K:f=9;break e;case ie:f=11;break e;case J:f=14;break e;case _e:f=16,n=null;break e}f=29,a=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=Dt(f,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function ln(e,t,a,n){return e=Dt(7,e,n,t),e.lanes=a,e}function Wo(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function yd(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Ko(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gd=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=gd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:yc(t)},gd.set(e,t),t)}return{value:e,source:t,stack:yc(t)}}var Hn=[],Un=0,Vi=null,wl=0,Gt=[],Yt=0,wa=null,Pt=1,ea="";function da(e,t){Hn[Un++]=wl,Hn[Un++]=Vi,Vi=e,wl=t}function xd(e,t,a){Gt[Yt++]=Pt,Gt[Yt++]=ea,Gt[Yt++]=wa,wa=e;var n=Pt;e=ea;var l=32-Ct(n)-1;n&=~(1<<l),a+=1;var r=32-Ct(t)+l;if(30<r){var f=l-l%5;r=(n&(1<<f)-1).toString(32),n>>=f,l-=f,Pt=1<<32-Ct(t)+l|a<<l|n,ea=r+e}else Pt=1<<r|a<<l|n,ea=e}function Jo(e){e.return!==null&&(da(e,1),xd(e,1,0))}function Io(e){for(;e===Vi;)Vi=Hn[--Un],Hn[Un]=null,wl=Hn[--Un],Hn[Un]=null;for(;e===wa;)wa=Gt[--Yt],Gt[Yt]=null,ea=Gt[--Yt],Gt[Yt]=null,Pt=Gt[--Yt],Gt[Yt]=null}function vd(e,t){Gt[Yt++]=Pt,Gt[Yt++]=ea,Gt[Yt++]=wa,Pt=t.id,ea=t.overflow,wa=e}var ct=null,Ye=null,Te=!1,Da=null,Vt=!1,$o=Error(s(519));function _a(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Dl(qt(t,e)),$o}function bd(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ut]=e,t[gt]=n,a){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(a=0;a<$l.length;a++)be($l[a],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Oc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Mc(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||Up(t.textContent,a)?(n.popover!=null&&(be("beforetoggle",t),be("toggle",t)),n.onScroll!=null&&be("scroll",t),n.onScrollEnd!=null&&be("scrollend",t),n.onClick!=null&&(t.onclick=sa),t=!0):t=!1,t||_a(e,!0)}function Sd(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Vt=!1;return;case 27:case 3:Vt=!0;return;default:ct=ct.return}}function Ln(e){if(e!==ct)return!1;if(!Te)return Sd(e),Te=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||yu(e.type,e.memoizedProps)),a=!a),a&&Ye&&_a(e),Sd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ye=Fp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ye=Fp(e)}else t===27?(t=Ye,Qa(e.type)?(e=Su,Su=null,Ye=e):Ye=t):Ye=ct?Qt(e.stateNode.nextSibling):null;return!0}function rn(){Ye=ct=null,Te=!1}function Po(){var e=Da;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Da=null),e}function Dl(e){Da===null?Da=[e]:Da.push(e)}var es=S(null),on=null,fa=null;function ka(e,t,a){Y(es,t._currentValue),t._currentValue=a}function pa(e){e._currentValue=es.current,M(es)}function ts(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 as(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var f=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),ts(r.return,a,e),n||(f=null);break e}r=m.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error(s(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),ts(f,a,e),f=null}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===e){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function qn(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 f=l.alternate;if(f===null)throw Error(s(387));if(f=f.memoizedProps,f!==null){var m=l.type;wt(l.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(l===ze.current){if(f=l.alternate,f===null)throw Error(s(387));f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(ni):e=[ni])}l=l.return}e!==null&&as(t,e,a,n),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sn(e){on=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return jd(on,e)}function Qi(e,t){return on===null&&sn(e),jd(e,t)}function jd(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 dy=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()})}},fy=i.unstable_scheduleCallback,py=i.unstable_NormalPriority,Pe={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ns(){return{controller:new dy,data:new Map,refCount:0}}function _l(e){e.refCount--,e.refCount===0&&fy(py,function(){e.controller.abort()})}var kl=null,ls=0,Gn=0,Yn=null;function hy(e,t){if(kl===null){var a=kl=[];ls=0,Gn=ou(),Yn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return ls++,t.then(Rd,Rd),t}function Rd(){if(--ls===0&&kl!==null){Yn!==null&&(Yn.status="fulfilled");var e=kl;kl=null,Gn=0,Yn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function my(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 Ed=B.S;B.S=function(e,t){sp=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hy(e,t),Ed!==null&&Ed(e,t)};var un=S(null);function is(){var e=un.current;return e!==null?e:qe.pooledCache}function Zi(e,t){t===null?Y(un,un.current):Y(un,t.pool)}function Td(){var e=is();return e===null?null:{parent:Pe._currentValue,pool:e}}var Vn=Error(s(460)),rs=Error(s(474)),Fi=Error(s(542)),Wi={then:function(){}};function Ad(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(sa,sa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wd(e),e;default:if(typeof t.status=="string")t.then(sa,sa);else{if(e=qe,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,wd(e),e}throw dn=t,Vn}}function cn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dn=a,Vn):a}}var dn=null;function Cd(){if(dn===null)throw Error(s(459));var e=dn;return dn=null,e}function wd(e){if(e===Vn||e===Fi)throw Error(s(483))}var Xn=null,Ol=0;function Ki(e){var t=Ol;return Ol+=1,Xn===null&&(Xn=[]),zd(Xn,e,t)}function Bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===z?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Dd(e){function t(A,R){if(e){var C=A.deletions;C===null?(A.deletions=[R],A.flags|=16):C.push(R)}}function a(A,R){if(!e)return null;for(;R!==null;)t(A,R),R=R.sibling;return null}function n(A){for(var R=new Map;A!==null;)A.key!==null?R.set(A.key,A):R.set(A.index,A),A=A.sibling;return R}function l(A,R){return A=ca(A,R),A.index=0,A.sibling=null,A}function r(A,R,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<R?(A.flags|=67108866,R):C):(A.flags|=67108866,R)):(A.flags|=1048576,R)}function f(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function m(A,R,C,q){return R===null||R.tag!==6?(R=Wo(C,A.mode,q),R.return=A,R):(R=l(R,C),R.return=A,R)}function j(A,R,C,q){var ne=C.type;return ne===U?L(A,R,C.props.children,q,C.key):R!==null&&(R.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===_e&&cn(ne)===R.type)?(R=l(R,C.props),Bl(R,C),R.return=A,R):(R=Yi(C.type,C.key,C.props,null,A.mode,q),Bl(R,C),R.return=A,R)}function w(A,R,C,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==C.containerInfo||R.stateNode.implementation!==C.implementation?(R=Ko(C,A.mode,q),R.return=A,R):(R=l(R,C.children||[]),R.return=A,R)}function L(A,R,C,q,ne){return R===null||R.tag!==7?(R=ln(C,A.mode,q,ne),R.return=A,R):(R=l(R,C),R.return=A,R)}function G(A,R,C){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Wo(""+R,A.mode,C),R.return=A,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case D:return C=Yi(R.type,R.key,R.props,null,A.mode,C),Bl(C,R),C.return=A,C;case T:return R=Ko(R,A.mode,C),R.return=A,R;case _e:return R=cn(R),G(A,R,C)}if(ke(R)||F(R))return R=ln(R,A.mode,C,null),R.return=A,R;if(typeof R.then=="function")return G(A,Ki(R),C);if(R.$$typeof===X)return G(A,Qi(A,R),C);Ji(A,R)}return null}function k(A,R,C,q){var ne=R!==null?R.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:m(A,R,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case D:return C.key===ne?j(A,R,C,q):null;case T:return C.key===ne?w(A,R,C,q):null;case _e:return C=cn(C),k(A,R,C,q)}if(ke(C)||F(C))return ne!==null?null:L(A,R,C,q,null);if(typeof C.then=="function")return k(A,R,Ki(C),q);if(C.$$typeof===X)return k(A,R,Qi(A,C),q);Ji(A,C)}return null}function H(A,R,C,q,ne){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(C)||null,m(R,A,""+q,ne);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case D:return A=A.get(q.key===null?C:q.key)||null,j(R,A,q,ne);case T:return A=A.get(q.key===null?C:q.key)||null,w(R,A,q,ne);case _e:return q=cn(q),H(A,R,C,q,ne)}if(ke(q)||F(q))return A=A.get(C)||null,L(R,A,q,ne,null);if(typeof q.then=="function")return H(A,R,C,Ki(q),ne);if(q.$$typeof===X)return H(A,R,C,Qi(R,q),ne);Ji(R,q)}return null}function I(A,R,C,q){for(var ne=null,Ce=null,te=R,me=R=0,Re=null;te!==null&&me<C.length;me++){te.index>me?(Re=te,te=null):Re=te.sibling;var we=k(A,te,C[me],q);if(we===null){te===null&&(te=Re);break}e&&te&&we.alternate===null&&t(A,te),R=r(we,R,me),Ce===null?ne=we:Ce.sibling=we,Ce=we,te=Re}if(me===C.length)return a(A,te),Te&&da(A,me),ne;if(te===null){for(;me<C.length;me++)te=G(A,C[me],q),te!==null&&(R=r(te,R,me),Ce===null?ne=te:Ce.sibling=te,Ce=te);return Te&&da(A,me),ne}for(te=n(te);me<C.length;me++)Re=H(te,A,me,C[me],q),Re!==null&&(e&&Re.alternate!==null&&te.delete(Re.key===null?me:Re.key),R=r(Re,R,me),Ce===null?ne=Re:Ce.sibling=Re,Ce=Re);return e&&te.forEach(function(Ja){return t(A,Ja)}),Te&&da(A,me),ne}function re(A,R,C,q){if(C==null)throw Error(s(151));for(var ne=null,Ce=null,te=R,me=R=0,Re=null,we=C.next();te!==null&&!we.done;me++,we=C.next()){te.index>me?(Re=te,te=null):Re=te.sibling;var Ja=k(A,te,we.value,q);if(Ja===null){te===null&&(te=Re);break}e&&te&&Ja.alternate===null&&t(A,te),R=r(Ja,R,me),Ce===null?ne=Ja:Ce.sibling=Ja,Ce=Ja,te=Re}if(we.done)return a(A,te),Te&&da(A,me),ne;if(te===null){for(;!we.done;me++,we=C.next())we=G(A,we.value,q),we!==null&&(R=r(we,R,me),Ce===null?ne=we:Ce.sibling=we,Ce=we);return Te&&da(A,me),ne}for(te=n(te);!we.done;me++,we=C.next())we=H(te,A,me,we.value,q),we!==null&&(e&&we.alternate!==null&&te.delete(we.key===null?me:we.key),R=r(we,R,me),Ce===null?ne=we:Ce.sibling=we,Ce=we);return e&&te.forEach(function(Ag){return t(A,Ag)}),Te&&da(A,me),ne}function Ue(A,R,C,q){if(typeof C=="object"&&C!==null&&C.type===U&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case D:e:{for(var ne=C.key;R!==null;){if(R.key===ne){if(ne=C.type,ne===U){if(R.tag===7){a(A,R.sibling),q=l(R,C.props.children),q.return=A,A=q;break e}}else if(R.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===_e&&cn(ne)===R.type){a(A,R.sibling),q=l(R,C.props),Bl(q,C),q.return=A,A=q;break e}a(A,R);break}else t(A,R);R=R.sibling}C.type===U?(q=ln(C.props.children,A.mode,q,C.key),q.return=A,A=q):(q=Yi(C.type,C.key,C.props,null,A.mode,q),Bl(q,C),q.return=A,A=q)}return f(A);case T:e:{for(ne=C.key;R!==null;){if(R.key===ne)if(R.tag===4&&R.stateNode.containerInfo===C.containerInfo&&R.stateNode.implementation===C.implementation){a(A,R.sibling),q=l(R,C.children||[]),q.return=A,A=q;break e}else{a(A,R);break}else t(A,R);R=R.sibling}q=Ko(C,A.mode,q),q.return=A,A=q}return f(A);case _e:return C=cn(C),Ue(A,R,C,q)}if(ke(C))return I(A,R,C,q);if(F(C)){if(ne=F(C),typeof ne!="function")throw Error(s(150));return C=ne.call(C),re(A,R,C,q)}if(typeof C.then=="function")return Ue(A,R,Ki(C),q);if(C.$$typeof===X)return Ue(A,R,Qi(A,C),q);Ji(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,R!==null&&R.tag===6?(a(A,R.sibling),q=l(R,C),q.return=A,A=q):(a(A,R),q=Wo(C,A.mode,q),q.return=A,A=q),f(A)):a(A,R)}return function(A,R,C,q){try{Ol=0;var ne=Ue(A,R,C,q);return Xn=null,ne}catch(te){if(te===Vn||te===Fi)throw te;var Ce=Dt(29,te,null,A.mode);return Ce.lanes=q,Ce.return=A,Ce}}}var fn=Dd(!0),_d=Dd(!1),Oa=!1;function os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(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 Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(De&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Gi(e),hd(e,null,a),t}return qi(e,n,t,a),Gi(e)}function Ml(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,jc(e,a)}}function us(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 f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=f:r=r.next=f,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 cs=!1;function Nl(){if(cs){var e=Yn;if(e!==null)throw e}}function Hl(e,t,a,n){cs=!1;var l=e.updateQueue;Oa=!1;var r=l.firstBaseUpdate,f=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var j=m,w=j.next;j.next=null,f===null?r=w:f.next=w,f=j;var L=e.alternate;L!==null&&(L=L.updateQueue,m=L.lastBaseUpdate,m!==f&&(m===null?L.firstBaseUpdate=w:m.next=w,L.lastBaseUpdate=j))}if(r!==null){var G=l.baseState;f=0,L=w=j=null,m=r;do{var k=m.lane&-536870913,H=k!==m.lane;if(H?(je&k)===k:(n&k)===k){k!==0&&k===Gn&&(cs=!0),L!==null&&(L=L.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var I=e,re=m;k=t;var Ue=a;switch(re.tag){case 1:if(I=re.payload,typeof I=="function"){G=I.call(Ue,G,k);break e}G=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=re.payload,k=typeof I=="function"?I.call(Ue,G,k):I,k==null)break e;G=g({},G,k);break e;case 2:Oa=!0}}k=m.callback,k!==null&&(e.flags|=64,H&&(e.flags|=8192),H=l.callbacks,H===null?l.callbacks=[k]:H.push(k))}else H={lane:k,tag:m.tag,payload:m.payload,callback:m.callback,next:null},L===null?(w=L=H,j=G):L=L.next=H,f|=k;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);L===null&&(j=G),l.baseState=j,l.firstBaseUpdate=w,l.lastBaseUpdate=L,r===null&&(l.shared.lanes=0),qa|=f,e.lanes=f,e.memoizedState=G}}function kd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Od(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kd(a[e],t)}var Qn=S(null),Ii=S(0);function Bd(e,t){e=ja,Y(Ii,e),Y(Qn,t),ja=e|t.baseLanes}function ds(){Y(Ii,ja),Y(Qn,Qn.current)}function fs(){ja=Ii.current,M(Qn),M(Ii)}var _t=S(null),Xt=null;function Na(e){var t=e.alternate;Y(Ke,Ke.current&1),Y(_t,e),Xt===null&&(t===null||Qn.current!==null||t.memoizedState!==null)&&(Xt=e)}function ps(e){Y(Ke,Ke.current),Y(_t,e),Xt===null&&(Xt=e)}function Md(e){e.tag===22?(Y(Ke,Ke.current),Y(_t,e),Xt===null&&(Xt=e)):Ha()}function Ha(){Y(Ke,Ke.current),Y(_t,_t.current)}function kt(e){M(_t),Xt===e&&(Xt=null),M(Ke)}var Ke=S(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||vu(a)||bu(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,pe=null,Ne=null,et=null,Pi=!1,Zn=!1,pn=!1,er=0,Ul=0,Fn=null,yy=0;function Ze(){throw Error(s(321))}function hs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!wt(e[a],t[a]))return!1;return!0}function ms(e,t,a,n,l,r){return ha=r,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?vf:Ds,pn=!1,r=a(n,l),pn=!1,Zn&&(r=Hd(t,a,n,l)),Nd(e),r}function Nd(e){B.H=Gl;var t=Ne!==null&&Ne.next!==null;if(ha=0,et=Ne=pe=null,Pi=!1,Ul=0,Fn=null,t)throw Error(s(300));e===null||tt||(e=e.dependencies,e!==null&&Xi(e)&&(tt=!0))}function Hd(e,t,a,n){pe=e;var l=0;do{if(Zn&&(Fn=null),Ul=0,Zn=!1,25<=l)throw Error(s(301));if(l+=1,et=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)}B.H=bf,r=t(a,n)}while(Zn);return r}function gy(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ll(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(pe.flags|=1024),t}function ys(){var e=er!==0;return er=0,e}function gs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function xs(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}ha=0,et=Ne=pe=null,Zn=!1,Ul=er=0,Fn=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?pe.memoizedState=et=e:et=et.next=e,et}function Je(){if(Ne===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=et===null?pe.memoizedState:et.next;if(t!==null)et=t,Ne=e;else{if(e===null)throw pe.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},et===null?pe.memoizedState=et=e:et=et.next=e}return et}function tr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(e){var t=Ul;return Ul+=1,Fn===null&&(Fn=[]),e=zd(Fn,e,t),t=pe,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?vf:Ds),e}function ar(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ll(e);if(e.$$typeof===X)return dt(e)}throw Error(s(438,String(e)))}function vs(e){var t=null,a=pe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=pe.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=tr(),pe.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]=ot;return t.index++,a}function ma(e,t){return typeof t=="function"?t(e):t}function nr(e){var t=Je();return bs(t,Ne,e)}function bs(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 f=l.next;l.next=r.next,r.next=f}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var m=f=null,j=null,w=t,L=!1;do{var G=w.lane&-536870913;if(G!==w.lane?(je&G)===G:(ha&G)===G){var k=w.revertLane;if(k===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),G===Gn&&(L=!0);else if((ha&k)===k){w=w.next,k===Gn&&(L=!0);continue}else G={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},j===null?(m=j=G,f=r):j=j.next=G,pe.lanes|=k,qa|=k;G=w.action,pn&&a(r,G),r=w.hasEagerState?w.eagerState:a(r,G)}else k={lane:G,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},j===null?(m=j=k,f=r):j=j.next=k,pe.lanes|=G,qa|=G;w=w.next}while(w!==null&&w!==t);if(j===null?f=r:j.next=m,!wt(r,e.memoizedState)&&(tt=!0,L&&(a=Yn,a!==null)))throw a;e.memoizedState=r,e.baseState=f,e.baseQueue=j,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ss(e){var t=Je(),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 f=l=l.next;do r=e(r,f.action),f=f.next;while(f!==l);wt(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Ud(e,t,a){var n=pe,l=Je(),r=Te;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var f=!wt((Ne||l).memoizedState,a);if(f&&(l.memoizedState=a,tt=!0),l=l.queue,Es(Gd.bind(null,n,l,e),[e]),l.getSnapshot!==t||f||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Wn(9,{destroy:void 0},qd.bind(null,n,l,a,t),null),qe===null)throw Error(s(349));r||(ha&127)!==0||Ld(n,t,a)}return a}function Ld(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=pe.updateQueue,t===null?(t=tr(),pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qd(e,t,a,n){t.value=a,t.getSnapshot=n,Yd(t)&&Vd(e)}function Gd(e,t,a){return a(function(){Yd(t)&&Vd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!wt(e,a)}catch{return!0}}function Vd(e){var t=nn(e,2);t!==null&&Rt(t,e,2)}function js(e){var t=yt();if(typeof e=="function"){var a=e;if(e=a(),pn){Aa(!0);try{a()}finally{Aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function Xd(e,t,a,n){return e.baseState=a,bs(e,Ne,typeof n=="function"?n:ma)}function xy(e,t,a,n,l){if(rr(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(f){r.listeners.push(f)}};B.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Qd(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Qd(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=B.T,f={};B.T=f;try{var m=a(l,n),j=B.S;j!==null&&j(f,m),Zd(e,t,m)}catch(w){Rs(e,t,w)}finally{r!==null&&f.types!==null&&(r.types=f.types),B.T=r}}else try{r=a(l,n),Zd(e,t,r)}catch(w){Rs(e,t,w)}}function Zd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Fd(e,t,n)},function(n){return Rs(e,t,n)}):Fd(e,t,a)}function Fd(e,t,a){t.status="fulfilled",t.value=a,Wd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Qd(e,a)))}function Rs(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Wd(t),t=t.next;while(t!==n)}e.action=null}function Wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kd(e,t){return t}function Jd(e,t){if(Te){var a=qe.formState;if(a!==null){e:{var n=pe;if(Te){if(Ye){t:{for(var l=Ye,r=Vt;l.nodeType!==8;){if(!r){l=null;break t}if(l=Qt(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){Ye=Qt(l.nextSibling),n=l.data==="F!";break e}}_a(n)}n=!1}n&&(t=a[0])}}return a=yt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kd,lastRenderedState:t},a.queue=n,a=yf.bind(null,pe,n),n.dispatch=a,n=js(!1),r=ws.bind(null,pe,!1,n.queue),n=yt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=xy.bind(null,pe,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function Id(e){var t=Je();return $d(t,Ne,e)}function $d(e,t,a){if(t=bs(e,t,Kd)[0],e=nr(ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ll(t)}catch(f){throw f===Vn?Fi:f}else n=t;t=Je();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(pe.flags|=2048,Wn(9,{destroy:void 0},vy.bind(null,l,a),null)),[n,r,e]}function vy(e,t){e.action=t}function Pd(e){var t=Je(),a=Ne;if(a!==null)return $d(t,a,e);Je(),t=t.memoizedState,a=Je();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Wn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=pe.updateQueue,t===null&&(t=tr(),pe.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 ef(){return Je().memoizedState}function lr(e,t,a,n){var l=yt();pe.flags|=e,l.memoizedState=Wn(1|t,{destroy:void 0},a,n===void 0?null:n)}function ir(e,t,a,n){var l=Je();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&hs(n,Ne.memoizedState.deps)?l.memoizedState=Wn(t,r,a,n):(pe.flags|=e,l.memoizedState=Wn(1|t,r,a,n))}function tf(e,t){lr(8390656,8,e,t)}function Es(e,t){ir(2048,8,e,t)}function by(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=tr(),pe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function af(e){var t=Je().memoizedState;return by({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nf(e,t){return ir(4,2,e,t)}function lf(e,t){return ir(4,4,e,t)}function rf(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 of(e,t,a){a=a!=null?a.concat([e]):null,ir(4,4,rf.bind(null,t,e),a)}function Ts(){}function sf(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&hs(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function uf(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&hs(t,n[1]))return n[0];if(n=e(),pn){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[n,t],n}function As(e,t,a){return a===void 0||(ha&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=cp(),pe.lanes|=e,qa|=e,a)}function cf(e,t,a,n){return wt(a,t)?a:Qn.current!==null?(e=As(e,a,n),wt(e,t)||(tt=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(je&261930)===0?(tt=!0,e.memoizedState=a):(e=cp(),pe.lanes|=e,qa|=e,t)}function df(e,t,a,n,l){var r=Z.p;Z.p=r!==0&&8>r?r:8;var f=B.T,m={};B.T=m,ws(e,!1,t,a);try{var j=l(),w=B.S;if(w!==null&&w(m,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var L=my(j,n);ql(e,t,L,Mt(e))}else ql(e,t,n,Mt(e))}catch(G){ql(e,t,{then:function(){},status:"rejected",reason:G},Mt())}finally{Z.p=r,f!==null&&m.types!==null&&(f.types=m.types),B.T=f}}function Sy(){}function zs(e,t,a,n){if(e.tag!==5)throw Error(s(476));var l=ff(e).queue;df(e,l,t,ae,a===null?Sy:function(){return pf(e),a(n)})}function ff(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:ma,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function pf(e){var t=ff(e);t.next===null&&(t=e.alternate.memoizedState),ql(e,t.next.queue,{},Mt())}function Cs(){return dt(ni)}function hf(){return Je().memoizedState}function mf(){return Je().memoizedState}function jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Mt();e=Ba(a);var n=Ma(t,e,a);n!==null&&(Rt(n,t,a),Ml(n,t,a)),t={cache:ns()},e.payload=t;return}t=t.return}}function Ry(e,t,a){var n=Mt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},rr(e)?gf(t,a):(a=Zo(e,t,a,n),a!==null&&(Rt(a,e,n),xf(a,t,n)))}function yf(e,t,a){var n=Mt();ql(e,t,a,n)}function ql(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(rr(e))gf(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var f=t.lastRenderedState,m=r(f,a);if(l.hasEagerState=!0,l.eagerState=m,wt(m,f))return qi(e,t,l,0),qe===null&&Li(),!1}catch{}if(a=Zo(e,t,l,n),a!==null)return Rt(a,e,n),xf(a,t,n),!0}return!1}function ws(e,t,a,n){if(n={lane:2,revertLane:ou(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rr(e)){if(t)throw Error(s(479))}else t=Zo(e,a,n,2),t!==null&&Rt(t,e,2)}function rr(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function gf(e,t){Zn=Pi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xf(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,jc(e,a)}}var Gl={readContext:dt,use:ar,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};Gl.useEffectEvent=Ze;var vf={readContext:dt,use:ar,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:tf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,lr(4194308,4,rf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return lr(4194308,4,e,t)},useInsertionEffect:function(e,t){lr(4,2,e,t)},useMemo:function(e,t){var a=yt();t=t===void 0?null:t;var n=e();if(pn){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=yt();if(a!==void 0){var l=a(t);if(pn){Aa(!0);try{a(t)}finally{Aa(!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=Ry.bind(null,pe,e),[n.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=js(e);var t=e.queue,a=yf.bind(null,pe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ts,useDeferredValue:function(e,t){var a=yt();return As(a,e,t)},useTransition:function(){var e=js(!1);return e=df.bind(null,pe,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=pe,l=yt();if(Te){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),qe===null)throw Error(s(349));(je&127)!==0||Ld(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,tf(Gd.bind(null,n,r,e),[e]),n.flags|=2048,Wn(9,{destroy:void 0},qd.bind(null,n,r,a,t),null),a},useId:function(){var e=yt(),t=qe.identifierPrefix;if(Te){var a=ea,n=Pt;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=er++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=yy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:Jd,useActionState:Jd,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ws.bind(null,pe,!0,a),a.dispatch=t,[e,t]},useMemoCache:vs,useCacheRefresh:function(){return yt().memoizedState=jy.bind(null,pe)},useEffectEvent:function(e){var t=yt(),a={impl:e};return t.memoizedState=a,function(){if((De&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Ds={readContext:dt,use:ar,useCallback:sf,useContext:dt,useEffect:Es,useImperativeHandle:of,useInsertionEffect:nf,useLayoutEffect:lf,useMemo:uf,useReducer:nr,useRef:ef,useState:function(){return nr(ma)},useDebugValue:Ts,useDeferredValue:function(e,t){var a=Je();return cf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=nr(ma)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:Ud,useId:hf,useHostTransitionStatus:Cs,useFormState:Id,useActionState:Id,useOptimistic:function(e,t){var a=Je();return Xd(a,Ne,e,t)},useMemoCache:vs,useCacheRefresh:mf};Ds.useEffectEvent=af;var bf={readContext:dt,use:ar,useCallback:sf,useContext:dt,useEffect:Es,useImperativeHandle:of,useInsertionEffect:nf,useLayoutEffect:lf,useMemo:uf,useReducer:Ss,useRef:ef,useState:function(){return Ss(ma)},useDebugValue:Ts,useDeferredValue:function(e,t){var a=Je();return Ne===null?As(a,e,t):cf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Ss(ma)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:Ud,useId:hf,useHostTransitionStatus:Cs,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var a=Je();return Ne!==null?Xd(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:vs,useCacheRefresh:mf};bf.useEffectEvent=af;function _s(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ks={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Mt(),l=Ba(n);l.payload=t,a!=null&&(l.callback=a),t=Ma(e,l,n),t!==null&&(Rt(t,e,n),Ml(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Mt(),l=Ba(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Ma(e,l,n),t!==null&&(Rt(t,e,n),Ml(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mt(),n=Ba(a);n.tag=2,t!=null&&(n.callback=t),t=Ma(e,n,a),t!==null&&(Rt(t,e,a),Ml(t,e,a))}};function Sf(e,t,a,n,l,r,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,f):t.prototype&&t.prototype.isPureReactComponent?!zl(a,n)||!zl(l,r):!0}function jf(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&&ks.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=g({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Rf(e){Ui(e)}function Ef(e){console.error(e)}function Tf(e){Ui(e)}function or(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Af(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 Os(e,t,a){return a=Ba(a),a.tag=3,a.payload={element:null},a.callback=function(){or(e,t)},a}function zf(e){return e=Ba(e),e.tag=3,e}function Cf(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(){Af(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Af(t,a,n),typeof l!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function Ey(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&qn(t,a,l,!0),a=_t.current,a!==null){switch(a.tag){case 31:case 13:return Xt===null?vr():a.alternate===null&&Fe===0&&(Fe=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Wi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),lu(e,n,l)),!1;case 22:return a.flags|=65536,n===Wi?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)),lu(e,n,l)),!1}throw Error(s(435,a.tag))}return lu(e,n,l),vr(),!1}if(Te)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==$o&&(e=Error(s(422),{cause:n}),Dl(qt(e,a)))):(n!==$o&&(t=Error(s(423),{cause:n}),Dl(qt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=qt(n,a),l=Os(e.stateNode,n,l),us(e,l),Fe!==4&&(Fe=2)),!1;var r=Error(s(520),{cause:n});if(r=qt(r,a),Kl===null?Kl=[r]:Kl.push(r),Fe!==4&&(Fe=2),t===null)return!0;n=qt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Os(a.stateNode,n,e),us(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"&&(Ga===null||!Ga.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=zf(l),Cf(l,e,a,n),us(a,l),!1}a=a.return}while(a!==null);return!1}var Bs=Error(s(461)),tt=!1;function ft(e,t,a,n){t.child=e===null?_d(t,null,a,n):fn(t,e.child,a,n)}function wf(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var f={};for(var m in n)m!=="ref"&&(f[m]=n[m])}else f=n;return sn(t),n=ms(e,t,a,f,r,l),m=ys(),e!==null&&!tt?(gs(e,t,l),ya(e,t,l)):(Te&&m&&Jo(t),t.flags|=1,ft(e,t,n,l),t.child)}function Df(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Fo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,_f(e,t,r,n,l)):(e=Yi(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ys(e,l)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:zl,a(f,n)&&e.ref===t.ref)return ya(e,t,l)}return t.flags|=1,e=ca(r,n),e.ref=t.ref,e.return=t,t.child=e}function _f(e,t,a,n,l){if(e!==null){var r=e.memoizedProps;if(zl(r,n)&&e.ref===t.ref)if(tt=!1,t.pendingProps=n=r,Ys(e,l))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,ya(e,t,l)}return Ms(e,t,a,n,l)}function kf(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 Of(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(t,r!==null?r.cachePool:null),r!==null?Bd(t,r):ds(),Md(t);else return n=t.lanes=536870912,Of(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Zi(t,r.cachePool),Bd(t,r),Ha(),t.memoizedState=null):(e!==null&&Zi(t,null),ds(),Ha());return ft(e,t,l,a),t.child}function Yl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Of(e,t,a,n,l){var r=is();return r=r===null?null:{parent:Pe._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Zi(t,null),ds(),Md(t),e!==null&&qn(e,t,n,!0),t.childLanes=l,null}function sr(e,t){return t=cr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bf(e,t,a){return fn(t,e.child,null,a),e=sr(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function Ty(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(n.mode==="hidden")return e=sr(t,n),t.lanes=536870912,Yl(null,e);if(ps(t),(e=Ye)?(e=Zp(e,Vt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wa!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yd(e),a.return=t,t.child=a,ct=t,Ye=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return sr(t,n)}var r=e.memoizedState;if(r!==null){var f=r.dehydrated;if(ps(t),l)if(t.flags&256)t.flags&=-257,t=Bf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(tt||qn(e,t,a,!1),l=(a&e.childLanes)!==0,tt||l){if(n=qe,n!==null&&(f=Rc(n,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,nn(e,f),Rt(n,e,f),Bs;vr(),t=Bf(e,t,a)}else e=r.treeContext,Ye=Qt(f.nextSibling),ct=t,Te=!0,Da=null,Vt=!1,e!==null&&vd(t,e),t=sr(t,n),t.flags|=4096;return t}return e=ca(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ur(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 Ms(e,t,a,n,l){return sn(t),a=ms(e,t,a,n,void 0,l),n=ys(),e!==null&&!tt?(gs(e,t,l),ya(e,t,l)):(Te&&n&&Jo(t),t.flags|=1,ft(e,t,a,l),t.child)}function Mf(e,t,a,n,l,r){return sn(t),t.updateQueue=null,a=Hd(t,n,a,l),Nd(e),n=ys(),e!==null&&!tt?(gs(e,t,r),ya(e,t,r)):(Te&&n&&Jo(t),t.flags|=1,ft(e,t,a,r),t.child)}function Nf(e,t,a,n,l){if(sn(t),t.stateNode===null){var r=Nn,f=a.contextType;typeof f=="object"&&f!==null&&(r=dt(f)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ks,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},os(t),f=a.contextType,r.context=typeof f=="object"&&f!==null?dt(f):Nn,r.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(_s(t,a,f,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&ks.enqueueReplaceState(r,r.state,null),Hl(t,n,r,l),Nl(),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 w=r.context,L=a.contextType;f=Nn,typeof L=="object"&&L!==null&&(f=dt(L));var G=a.getDerivedStateFromProps;L=typeof G=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,L||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||w!==f)&&jf(t,r,n,f),Oa=!1;var k=t.memoizedState;r.state=k,Hl(t,n,r,l),Nl(),w=t.memoizedState,m||k!==w||Oa?(typeof G=="function"&&(_s(t,a,G,n),w=t.memoizedState),(j=Oa||Sf(t,a,j,n,k,w,f))?(L||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=w),r.props=n,r.state=w,r.context=f,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,ss(e,t),f=t.memoizedProps,L=hn(a,f),r.props=L,G=t.pendingProps,k=r.context,w=a.contextType,j=Nn,typeof w=="object"&&w!==null&&(j=dt(w)),m=a.getDerivedStateFromProps,(w=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==G||k!==j)&&jf(t,r,n,j),Oa=!1,k=t.memoizedState,r.state=k,Hl(t,n,r,l),Nl();var H=t.memoizedState;f!==G||k!==H||Oa||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof m=="function"&&(_s(t,a,m,n),H=t.memoizedState),(L=Oa||Sf(t,a,L,n,k,H,j)||e!==null&&e.dependencies!==null&&Xi(e.dependencies))?(w||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"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),r.props=n,r.state=H,r.context=j,n=L):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,ur(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=ya(e,t,l),e}function Hf(e,t,a,n){return rn(),t.flags|=256,ft(e,t,a,n),t.child}var Ns={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hs(e){return{baseLanes:e,cachePool:Td()}}function Us(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Bt),e}function Uf(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,f;if((f=r)||(f=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),f&&(l=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(l?Na(t):Ha(),(e=Ye)?(e=Zp(e,Vt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wa!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yd(e),a.return=t,t.child=a,ct=t,Ye=null)):e=null,e===null)throw _a(t);return bu(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(Ha(),l=t.mode,m=cr({mode:"hidden",children:m},l),n=ln(n,l,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Hs(a),n.childLanes=Us(e,f,a),t.memoizedState=Ns,Yl(null,n)):(Na(t),Ls(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=qs(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),m=n.fallback,l=t.mode,n=cr({mode:"visible",children:n.children},l),m=ln(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=Hs(a),n.childLanes=Us(e,f,a),t.memoizedState=Ns,t=Yl(null,n));else if(Na(t),bu(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var w=f.dgst;f=w,n=Error(s(419)),n.stack="",n.digest=f,Dl({value:n,source:null,stack:null}),t=qs(e,t,a)}else if(tt||qn(e,t,a,!1),f=(a&e.childLanes)!==0,tt||f){if(f=qe,f!==null&&(n=Rc(f,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,nn(e,n),Rt(f,e,n),Bs;vu(m)||vr(),t=qs(e,t,a)}else vu(m)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Ye=Qt(m.nextSibling),ct=t,Te=!0,Da=null,Vt=!1,e!==null&&vd(t,e),t=Ls(t,n.children),t.flags|=4096);return t}return l?(Ha(),m=n.fallback,l=t.mode,j=e.child,w=j.sibling,n=ca(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,w!==null?m=ca(w,m):(m=ln(m,l,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Yl(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Hs(a):(l=m.cachePool,l!==null?(j=Pe._currentValue,l=l.parent!==j?{parent:j,pool:j}:l):l=Td(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=Us(e,f,a),t.memoizedState=Ns,Yl(e.child,n)):(Na(t),a=e.child,e=a.sibling,a=ca(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Ls(e,t){return t=cr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function cr(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function qs(e,t,a){return fn(t,e.child,null,a),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ts(e.return,t,a)}function Gs(e,t,a,n,l,r){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=l,f.treeForkCount=r)}function qf(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var f=Ke.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,Y(Ke,f),ft(e,t,n,a),n=Te?wl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,a,t);else if(e.tag===19)Lf(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&&$i(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Gs(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&&$i(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Gs(t,!0,a,null,r,n);break;case"together":Gs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ya(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(qn(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=ca(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ca(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ys(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xi(e)))}function Ay(e,t,a){switch(t.tag){case 3:st(t,t.stateNode.containerInfo),ka(t,Pe,e.memoizedState.cache),rn();break;case 27:case 5:hl(t);break;case 4:st(t,t.stateNode.containerInfo);break;case 10:ka(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ps(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?Uf(e,t,a):(Na(t),e=ya(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||(qn(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return qf(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Y(Ke,Ke.current),n)break;return null;case 22:return t.lanes=0,kf(e,t,a,t.pendingProps);case 24:ka(t,Pe,e.memoizedState.cache)}return ya(e,t,a)}function Gf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!Ys(e,a)&&(t.flags&128)===0)return tt=!1,Ay(e,t,a);tt=(e.flags&131072)!==0}else tt=!1,Te&&(t.flags&1048576)!==0&&xd(t,wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=cn(t.elementType),t.type=e,typeof e=="function")Fo(e)?(n=hn(e,n),t.tag=1,t=Nf(null,t,e,n,a)):(t.tag=0,t=Ms(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===ie){t.tag=11,t=wf(null,t,e,n,a);break e}else if(l===J){t.tag=14,t=Df(null,t,e,n,a);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return Ms(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=hn(n,t.pendingProps),Nf(e,t,n,l,a);case 3:e:{if(st(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,ss(e,t),Hl(t,n,null,a);var f=t.memoizedState;if(n=f.cache,ka(t,Pe,n),n!==r.cache&&as(t,[Pe],a,!0),Nl(),n=f.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Hf(e,t,n,a);break e}else if(n!==l){l=qt(Error(s(424)),t),Dl(l),t=Hf(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,Ye=Qt(e.firstChild),ct=t,Te=!0,Da=null,Vt=!0,a=_d(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(rn(),n===l){t=ya(e,t,a);break e}ft(e,t,n,a)}t=t.child}return t;case 26:return ur(e,t),e===null?(a=$p(t.type,null,t.pendingProps,null))?t.memoizedState=a:Te||(a=t.type,e=t.pendingProps,n=Ar(ce.current).createElement(a),n[ut]=t,n[gt]=e,pt(n,a,e),it(n),t.stateNode=n):t.memoizedState=$p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hl(t),e===null&&Te&&(n=t.stateNode=Kp(t.type,t.pendingProps,ce.current),ct=t,Vt=!0,l=Ye,Qa(t.type)?(Su=l,Ye=Qt(n.firstChild)):Ye=l),ft(e,t,t.pendingProps.children,a),ur(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((l=n=Ye)&&(n=ag(n,t.type,t.pendingProps,Vt),n!==null?(t.stateNode=n,ct=t,Ye=Qt(n.firstChild),Vt=!1,l=!0):l=!1),l||_a(t)),hl(t),l=t.type,r=t.pendingProps,f=e!==null?e.memoizedProps:null,n=r.children,yu(l,r)?n=null:f!==null&&yu(l,f)&&(t.flags|=32),t.memoizedState!==null&&(l=ms(e,t,gy,null,null,a),ni._currentValue=l),ur(e,t),ft(e,t,n,a),t.child;case 6:return e===null&&Te&&((e=a=Ye)&&(a=ng(a,t.pendingProps,Vt),a!==null?(t.stateNode=a,ct=t,Ye=null,e=!0):e=!1),e||_a(t)),null;case 13:return Uf(e,t,a);case 4:return st(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 wf(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,ka(t,t.type,n.value),ft(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,sn(t),l=dt(l),n=n(l),t.flags|=1,ft(e,t,n,a),t.child;case 14:return Df(e,t,t.type,t.pendingProps,a);case 15:return _f(e,t,t.type,t.pendingProps,a);case 19:return qf(e,t,a);case 31:return Ty(e,t,a);case 22:return kf(e,t,a,t.pendingProps);case 24:return sn(t),n=dt(Pe),e===null?(l=is(),l===null&&(l=qe,r=ns(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},os(t),ka(t,Pe,l)):((e.lanes&a)!==0&&(ss(e,t),Hl(t,null,null,a),Nl()),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),ka(t,Pe,n)):(n=r.cache,ka(t,Pe,n),n!==l.cache&&as(t,[Pe],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ga(e){e.flags|=4}function Vs(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(hp())e.flags|=8192;else throw dn=Wi,rs}else e.flags&=-16777217}function Yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t))if(hp())e.flags|=8192;else throw dn=Wi,rs}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bc():536870912,e.lanes|=t,$n|=t)}function Vl(e,t){if(!Te)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 Ve(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 zy(e,t,a){var n=t.pendingProps;switch(Io(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pa(Pe),We(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ln(t)?ga(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Po())),Ve(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ga(t),r!==null?(Ve(t),Yf(t,r)):(Ve(t),Vs(t,l,null,n,a))):r?r!==e.memoizedState?(ga(t),Ve(t),Yf(t,r)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ga(t),Ve(t),Vs(t,l,e,n,a)),null;case 27:if(ji(t),a=ce.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ga(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=Q.current,Ln(t)?bd(t):(e=Kp(l,n,a),t.stateNode=e,ga(t))}return Ve(t),null;case 5:if(ji(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ga(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(r=Q.current,Ln(t))bd(t);else{var f=Ar(ce.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?f.createElement(l,{is:n.is}):f.createElement(l)}}r[ut]=t,r[gt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=r;e:switch(pt(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&&ga(t)}}return Ve(t),Vs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ga(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=ce.current,Ln(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ct,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Up(e.nodeValue,a)),e||_a(t,!0)}else e=Ar(e).createTextNode(n),e[ut]=t,t.stateNode=e}return Ve(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Ln(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[ut]=t}else rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else a=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Ln(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[ut]=t}else rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),l=!1}else l=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(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),dr(t,t.updateQueue),Ve(t),null);case 4:return We(),e===null&&du(t.stateNode.containerInfo),Ve(t),null;case 10:return pa(t.type),Ve(t),null;case 19:if(M(Ke),n=t.memoizedState,n===null)return Ve(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)Vl(n,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=$i(e),r!==null){for(t.flags|=128,Vl(n,!1),e=r.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)md(a,e),a=a.sibling;return Y(Ke,Ke.current&1|2),Te&&da(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&At()>yr&&(t.flags|=128,l=!0,Vl(n,!1),t.lanes=4194304)}else{if(!l)if(e=$i(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Vl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Te)return Ve(t),null}else 2*At()-n.renderingStartTime>yr&&a!==536870912&&(t.flags|=128,l=!0,Vl(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=At(),e.sibling=null,a=Ke.current,Y(Ke,l?a&1|2:a&1),Te&&da(t,n.treeForkCount),e):(Ve(t),null);case 22:case 23:return kt(t),fs(),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&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),a=t.updateQueue,a!==null&&dr(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&&M(un),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pa(Pe),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Cy(e,t){switch(Io(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Pe),We(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ji(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(s(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(Ke),null;case 4:return We(),null;case 10:return pa(t.type),null;case 22:case 23:return kt(t),fs(),e!==null&&M(un),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Pe),null;case 25:return null;default:return null}}function Vf(e,t){switch(Io(t),t.tag){case 3:pa(Pe),We();break;case 26:case 27:case 5:ji(t);break;case 4:We();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:M(Ke);break;case 10:pa(t.type);break;case 22:case 23:kt(t),fs(),e!==null&&M(un);break;case 24:pa(Pe)}}function Xl(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,f=a.inst;n=r(),f.destroy=n}a=a.next}while(a!==l)}}catch(m){Be(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 f=n.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,l=t;var j=a,w=m;try{w()}catch(L){Be(l,j,L)}}}n=n.next}while(n!==r)}}catch(L){Be(t,t.return,L)}}function Xf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Od(t,a)}catch(n){Be(e,e.return,n)}}}function Qf(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Be(e,t,n)}}function Ql(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){Be(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){Be(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){Be(e,t,l)}else a.current=null}function Zf(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){Be(e,e.return,l)}}function Xs(e,t,a){try{var n=e.stateNode;Jy(n,e.type,a,t),n[gt]=t}catch(l){Be(e,e.return,l)}}function Ff(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ff(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&&Qa(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 Zs(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=sa));else if(n!==4&&(n===27&&Qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Zs(e,t,a),e=e.sibling;e!==null;)Zs(e,t,a),e=e.sibling}function fr(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&&Qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(fr(e,t,a),e=e.sibling;e!==null;)fr(e,t,a),e=e.sibling}function Wf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);pt(t,n,a),t[ut]=e,t[gt]=a}catch(r){Be(e,e.return,r)}}var xa=!1,at=!1,Fs=!1,Kf=typeof WeakSet=="function"?WeakSet:Set,rt=null;function wy(e,t){if(e=e.containerInfo,hu=Or,e=rd(e),qo(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 f=0,m=-1,j=-1,w=0,L=0,G=e,k=null;t:for(;;){for(var H;G!==a||l!==0&&G.nodeType!==3||(m=f+l),G!==r||n!==0&&G.nodeType!==3||(j=f+n),G.nodeType===3&&(f+=G.nodeValue.length),(H=G.firstChild)!==null;)k=G,G=H;for(;;){if(G===e)break t;if(k===a&&++w===l&&(m=f),k===r&&++L===n&&(j=f),(H=G.nextSibling)!==null)break;G=k,k=G.parentNode}G=H}a=m===-1||j===-1?null:{start:m,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(mu={focusedElem:e,selectionRange:a},Or=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,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 I=hn(a.type,l);e=n.getSnapshotBeforeUpdate(I,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(re){Be(a,a.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)xu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xu(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,rt=e;break}rt=t.return}}function Jf(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:ba(e,a),n&4&&Xl(5,a);break;case 1:if(ba(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Be(a,a.return,f)}else{var l=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Be(a,a.return,f)}}n&64&&Xf(a),n&512&&Ql(a,a.return);break;case 3:if(ba(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{Od(e,t)}catch(f){Be(a,a.return,f)}}break;case 27:t===null&&n&4&&Wf(a);case 26:case 5:ba(e,a),t===null&&n&4&&Zf(a),n&512&&Ql(a,a.return);break;case 12:ba(e,a);break;case 31:ba(e,a),n&4&&Pf(e,a);break;case 13:ba(e,a),n&4&&ep(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Uy.bind(null,a),lg(e,a))));break;case 22:if(n=a.memoizedState!==null||xa,!n){t=t!==null&&t.memoizedState!==null||at,l=xa;var r=at;xa=n,(at=t)&&!r?Sa(e,a,(a.subtreeFlags&8772)!==0):ba(e,a),xa=l,at=r}break;case 30:break;default:ba(e,a)}}function If(e){var t=e.alternate;t!==null&&(e.alternate=null,If(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ro(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 Xe=null,vt=!1;function va(e,t,a){for(a=a.child;a!==null;)$f(e,t,a),a=a.sibling}function $f(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(ml,a)}catch{}switch(a.tag){case 26:at||ta(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||ta(a,t);var n=Xe,l=vt;Qa(a.type)&&(Xe=a.stateNode,vt=!1),va(e,t,a),ei(a.stateNode),Xe=n,vt=l;break;case 5:at||ta(a,t);case 6:if(n=Xe,l=vt,Xe=null,va(e,t,a),Xe=n,vt=l,Xe!==null)if(vt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(r){Be(a,t,r)}else try{Xe.removeChild(a.stateNode)}catch(r){Be(a,t,r)}break;case 18:Xe!==null&&(vt?(e=Xe,Xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),rl(e)):Xp(Xe,a.stateNode));break;case 4:n=Xe,l=vt,Xe=a.stateNode.containerInfo,vt=!0,va(e,t,a),Xe=n,vt=l;break;case 0:case 11:case 14:case 15:Ua(2,a,t),at||Ua(4,a,t),va(e,t,a);break;case 1:at||(ta(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Qf(a,t,n)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:at=(n=at)||a.memoizedState!==null,va(e,t,a),at=n;break;default:va(e,t,a)}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{rl(e)}catch(a){Be(t,t.return,a)}}}function ep(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{rl(e)}catch(a){Be(t,t.return,a)}}function Dy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kf),t;default:throw Error(s(435,e.tag))}}function pr(e,t){var a=Dy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=Ly.bind(null,e,n);n.then(l,l)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(Qa(m.type)){Xe=m.stateNode,vt=!1;break e}break;case 5:Xe=m.stateNode,vt=!1;break e;case 3:case 4:Xe=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(Xe===null)throw Error(s(160));$f(r,f,l),Xe=null,vt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)tp(t,e),t=t.sibling}var Kt=null;function tp(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),St(e),n&4&&(Ua(3,e,e.return),Xl(3,e),Ua(5,e,e.return));break;case 1:bt(t,e),St(e),n&512&&(at||a===null||ta(a,a.return)),n&64&&xa&&(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=Kt;if(bt(t,e),St(e),n&512&&(at||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[xl]||r[ut]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(n),l.head.insertBefore(r,l.querySelector("head > title"))),pt(r,n,a),r[ut]=e,it(r),n=r;break e;case"link":var f=th("link","href",l).get(n+(a.href||""));if(f){for(var m=0;m<f.length;m++)if(r=f[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)){f.splice(m,1);break t}}r=l.createElement(n),pt(r,n,a),l.head.appendChild(r);break;case"meta":if(f=th("meta","content",l).get(n+(a.content||""))){for(m=0;m<f.length;m++)if(r=f[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)){f.splice(m,1);break t}}r=l.createElement(n),pt(r,n,a),l.head.appendChild(r);break;default:throw Error(s(468,n))}r[ut]=e,it(r),n=r}e.stateNode=n}else ah(l,e.type,e.stateNode);else e.stateNode=eh(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?ah(l,e.type,e.stateNode):eh(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Xs(e,e.memoizedProps,a.memoizedProps)}break;case 27:bt(t,e),St(e),n&512&&(at||a===null||ta(a,a.return)),a!==null&&n&4&&Xs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(bt(t,e),St(e),n&512&&(at||a===null||ta(a,a.return)),e.flags&32){l=e.stateNode;try{wn(l,"")}catch(I){Be(e,e.return,I)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,Xs(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Fs=!0);break;case 6:if(bt(t,e),St(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(I){Be(e,e.return,I)}}break;case 3:if(wr=null,l=Kt,Kt=zr(t.containerInfo),bt(t,e),Kt=l,St(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{rl(t.containerInfo)}catch(I){Be(e,e.return,I)}Fs&&(Fs=!1,ap(e));break;case 4:n=Kt,Kt=zr(e.stateNode.containerInfo),bt(t,e),St(e),Kt=n;break;case 12:bt(t,e),St(e);break;case 31:bt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,pr(e,n)));break;case 13:bt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(mr=At()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,pr(e,n)));break;case 22:l=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,w=xa,L=at;if(xa=w||l,at=L||j,bt(t,e),at=L,xa=w,St(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||j||xa||at||mn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,l)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=j.stateNode;var G=j.memoizedProps.style,k=G!=null&&G.hasOwnProperty("display")?G.display:null;m.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(I){Be(j,j.return,I)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=l?"":j.memoizedProps}catch(I){Be(j,j.return,I)}}}else if(t.tag===18){if(a===null){j=t;try{var H=j.stateNode;l?Qp(H,!0):Qp(j.stateNode,!1)}catch(I){Be(j,j.return,I)}}}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,pr(e,a))));break;case 19:bt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,pr(e,n)));break;case 30:break;case 21:break;default:bt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Ff(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);fr(e,r,l);break;case 5:var f=a.stateNode;a.flags&32&&(wn(f,""),a.flags&=-33);var m=Qs(e);fr(e,m,f);break;case 3:case 4:var j=a.stateNode.containerInfo,w=Qs(e);Zs(e,w,j);break;default:throw Error(s(161))}}catch(L){Be(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ap(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jf(e,t.alternate,t),t=t.sibling}function mn(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),mn(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Qf(t,t.return,a),mn(t);break;case 27:ei(t.stateNode);case 26:case 5:ta(t,t.return),mn(t);break;case 22:t.memoizedState===null&&mn(t);break;case 30:mn(t);break;default:mn(t)}e=e.sibling}}function Sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,r=t,f=r.flags;switch(r.tag){case 0:case 11:case 15:Sa(l,r,a),Xl(4,r);break;case 1:if(Sa(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(w){Be(n,n.return,w)}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++)kd(j[l],m)}catch(w){Be(n,n.return,w)}}a&&f&64&&Xf(r),Ql(r,r.return);break;case 27:Wf(r);case 26:case 5:Sa(l,r,a),a&&n===null&&f&4&&Zf(r),Ql(r,r.return);break;case 12:Sa(l,r,a);break;case 31:Sa(l,r,a),a&&f&4&&Pf(l,r);break;case 13:Sa(l,r,a),a&&f&4&&ep(l,r);break;case 22:r.memoizedState===null&&Sa(l,r,a),Ql(r,r.return);break;case 30:break;default:Sa(l,r,a)}t=t.sibling}}function Ws(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&&_l(a))}function Ks(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_l(e))}function Jt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)np(e,t,a,n),t=t.sibling}function np(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,n),l&2048&&Xl(9,t);break;case 1:Jt(e,t,a,n);break;case 3:Jt(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&&_l(e)));break;case 12:if(l&2048){Jt(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,f=r.id,m=r.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Be(t,t.return,j)}}else Jt(e,t,a,n);break;case 31:Jt(e,t,a,n);break;case 13:Jt(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,f=t.alternate,t.memoizedState!==null?r._visibility&2?Jt(e,t,a,n):Zl(e,t):r._visibility&2?Jt(e,t,a,n):(r._visibility|=2,Kn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Ws(f,t);break;case 24:Jt(e,t,a,n),l&2048&&Ks(t.alternate,t);break;default:Jt(e,t,a,n)}}function Kn(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,f=t,m=a,j=n,w=f.flags;switch(f.tag){case 0:case 11:case 15:Kn(r,f,m,j,l),Xl(8,f);break;case 23:break;case 22:var L=f.stateNode;f.memoizedState!==null?L._visibility&2?Kn(r,f,m,j,l):Zl(r,f):(L._visibility|=2,Kn(r,f,m,j,l)),l&&w&2048&&Ws(f.alternate,f);break;case 24:Kn(r,f,m,j,l),l&&w&2048&&Ks(f.alternate,f);break;default:Kn(r,f,m,j,l)}t=t.sibling}}function Zl(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:Zl(a,n),l&2048&&Ws(n.alternate,n);break;case 24:Zl(a,n),l&2048&&Ks(n.alternate,n);break;default:Zl(a,n)}t=t.sibling}}var Fl=8192;function Jn(e,t,a){if(e.subtreeFlags&Fl)for(e=e.child;e!==null;)lp(e,t,a),e=e.sibling}function lp(e,t,a){switch(e.tag){case 26:Jn(e,t,a),e.flags&Fl&&e.memoizedState!==null&&yg(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:Jn(e,t,a);break;case 3:case 4:var n=Kt;Kt=zr(e.stateNode.containerInfo),Jn(e,t,a),Kt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Fl,Fl=16777216,Jn(e,t,a),Fl=n):Jn(e,t,a));break;default:Jn(e,t,a)}}function ip(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 Wl(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];rt=n,op(n,e)}ip(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rp(e),e=e.sibling}function rp(e){switch(e.tag){case 0:case 11:case 15:Wl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Wl(e);break;case 12:Wl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hr(e)):Wl(e);break;default:Wl(e)}}function hr(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];rt=n,op(n,e)}ip(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),hr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,hr(t));break;default:hr(t)}e=e.sibling}}function op(e,t){for(;rt!==null;){var a=rt;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:_l(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,rt=n;else e:for(a=e;rt!==null;){n=rt;var l=n.sibling,r=n.return;if(If(n),n===a){rt=null;break e}if(l!==null){l.return=r,rt=l;break e}rt=r}}}var _y={getCacheForType:function(e){var t=dt(Pe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return dt(Pe).controller.signal}},ky=typeof WeakMap=="function"?WeakMap:Map,De=0,qe=null,ve=null,je=0,Oe=0,Ot=null,La=!1,In=!1,Js=!1,ja=0,Fe=0,qa=0,yn=0,Is=0,Bt=0,$n=0,Kl=null,jt=null,$s=!1,mr=0,sp=0,yr=1/0,gr=null,Ga=null,lt=0,Ya=null,Pn=null,Ra=0,Ps=0,eu=null,up=null,Jl=0,tu=null;function Mt(){return(De&2)!==0&&je!==0?je&-je:B.T!==null?ou():Ec()}function cp(){if(Bt===0)if((je&536870912)===0||Te){var e=Ti;Ti<<=1,(Ti&3932160)===0&&(Ti=262144),Bt=e}else Bt=536870912;return e=_t.current,e!==null&&(e.flags|=32),Bt}function Rt(e,t,a){(e===qe&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(el(e,0),Va(e,je,Bt,!1)),gl(e,a),((De&2)===0||e!==qe)&&(e===qe&&((De&2)===0&&(yn|=a),Fe===4&&Va(e,je,Bt,!1)),aa(e))}function dp(e,t,a){if((De&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||yl(e,t),l=n?My(e,t):nu(e,t,!0),r=n;do{if(l===0){In&&!n&&Va(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Oy(a)){l=nu(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;l=Kl;var j=m.current.memoizedState.isDehydrated;if(j&&(el(m,f).flags|=256),f=nu(m,f,!1),f!==2){if(Js&&!j){m.errorRecoveryDisabledLanes|=r,yn|=r,l=4;break e}r=jt,jt=l,r!==null&&(jt===null?jt=r:jt.push.apply(jt,r))}l=f}if(r=!1,l!==2)continue}}if(l===1){el(e,0),Va(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:Va(n,t,Bt,!La);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(l=mr+300-At(),10<l)){if(Va(n,t,Bt,!La),zi(n,0,!0)!==0)break e;Ra=t,n.timeoutHandle=Yp(fp.bind(null,n,a,jt,gr,$s,t,Bt,yn,$n,La,r,"Throttled",-0,0),l);break e}fp(n,a,jt,gr,$s,t,Bt,yn,$n,La,r,null,-0,0)}}break}while(!0);aa(e)}function fp(e,t,a,n,l,r,f,m,j,w,L,G,k,H){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sa},lp(t,r,G);var I=(r&62914560)===r?mr-At():(r&4194048)===r?sp-At():0;if(I=gg(G,I),I!==null){Ra=r,e.cancelPendingCommit=I(bp.bind(null,e,t,r,a,n,l,f,m,j,L,G,null,k,H)),Va(e,r,f,!w);return}}bp(e,t,r,a,n,l,f,m,j)}function Oy(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(!wt(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 Va(e,t,a,n){t&=~Is,t&=~yn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-Ct(l),f=1<<r;n[r]=-1,l&=~f}a!==0&&Sc(e,a,t)}function xr(){return(De&6)===0?(Il(0),!1):!0}function au(){if(ve!==null){if(Oe===0)var e=ve.return;else e=ve,fa=on=null,xs(e),Xn=null,Ol=0,e=ve;for(;e!==null;)Vf(e.alternate,e),e=e.return;ve=null}}function el(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Py(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ra=0,au(),qe=e,ve=a=ca(e.current,null),je=t,Oe=0,Ot=null,La=!1,In=yl(e,t),Js=!1,$n=Bt=Is=yn=qa=Fe=0,jt=Kl=null,$s=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-Ct(n),r=1<<l;t|=e[l],n&=~r}return ja=t,Li(),a}function pp(e,t){pe=null,B.H=Gl,t===Vn||t===Fi?(t=Cd(),Oe=3):t===rs?(t=Cd(),Oe=4):Oe=t===Bs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ve===null&&(Fe=1,or(e,qt(t,e.current)))}function hp(){var e=_t.current;return e===null?!0:(je&4194048)===je?Xt===null:(je&62914560)===je||(je&536870912)!==0?e===Xt:!1}function mp(){var e=B.H;return B.H=Gl,e===null?Gl:e}function yp(){var e=B.A;return B.A=_y,e}function vr(){Fe=4,La||(je&4194048)!==je&&_t.current!==null||(In=!0),(qa&134217727)===0&&(yn&134217727)===0||qe===null||Va(qe,je,Bt,!1)}function nu(e,t,a){var n=De;De|=2;var l=mp(),r=yp();(qe!==e||je!==t)&&(gr=null,el(e,t)),t=!1;var f=Fe;e:do try{if(Oe!==0&&ve!==null){var m=ve,j=Ot;switch(Oe){case 8:au(),f=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var w=Oe;if(Oe=0,Ot=null,tl(e,m,j,w),a&&In){f=0;break e}break;default:w=Oe,Oe=0,Ot=null,tl(e,m,j,w)}}By(),f=Fe;break}catch(L){pp(e,L)}while(!0);return t&&e.shellSuspendCounter++,fa=on=null,De=n,B.H=l,B.A=r,ve===null&&(qe=null,je=0,Li()),f}function By(){for(;ve!==null;)gp(ve)}function My(e,t){var a=De;De|=2;var n=mp(),l=yp();qe!==e||je!==t?(gr=null,yr=At()+500,el(e,t)):In=yl(e,t);e:do try{if(Oe!==0&&ve!==null){t=ve;var r=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,tl(e,t,r,1);break;case 2:case 9:if(Ad(r)){Oe=0,Ot=null,xp(t);break}t=function(){Oe!==2&&Oe!==9||qe!==e||(Oe=7),aa(e)},r.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Ad(r)?(Oe=0,Ot=null,xp(t)):(Oe=0,Ot=null,tl(e,t,r,7));break;case 5:var f=null;switch(ve.tag){case 26:f=ve.memoizedState;case 5:case 27:var m=ve;if(f?nh(f):m.stateNode.complete){Oe=0,Ot=null;var j=m.sibling;if(j!==null)ve=j;else{var w=m.return;w!==null?(ve=w,br(w)):ve=null}break t}}Oe=0,Ot=null,tl(e,t,r,5);break;case 6:Oe=0,Ot=null,tl(e,t,r,6);break;case 8:au(),Fe=6;break e;default:throw Error(s(462))}}Ny();break}catch(L){pp(e,L)}while(!0);return fa=on=null,B.H=n,B.A=l,De=a,ve!==null?0:(qe=null,je=0,Li(),Fe)}function Ny(){for(;ve!==null&&!i0();)gp(ve)}function gp(e){var t=Gf(e.alternate,e,ja);e.memoizedProps=e.pendingProps,t===null?br(e):ve=t}function xp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Mf(a,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Mf(a,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:xs(t);default:Vf(a,t),t=ve=md(t,ja),t=Gf(a,t,ja)}e.memoizedProps=e.pendingProps,t===null?br(e):ve=t}function tl(e,t,a,n){fa=on=null,xs(t),Xn=null,Ol=0;var l=t.return;try{if(Ey(e,l,t,a,je)){Fe=1,or(e,qt(a,e.current)),ve=null;return}}catch(r){if(l!==null)throw ve=l,r;Fe=1,or(e,qt(a,e.current)),ve=null;return}t.flags&32768?(Te||n===1?e=!0:In||(je&536870912)!==0?e=!1:(La=e=!0,(n===2||n===9||n===3||n===6)&&(n=_t.current,n!==null&&n.tag===13&&(n.flags|=16384))),vp(t,e)):br(t)}function br(e){var t=e;do{if((t.flags&32768)!==0){vp(t,La);return}e=t.return;var a=zy(t.alternate,t,ja);if(a!==null){ve=a;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Fe===0&&(Fe=5)}function vp(e,t){do{var a=Cy(e.alternate,e);if(a!==null){a.flags&=32767,ve=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=a}while(e!==null);Fe=6,ve=null}function bp(e,t,a,n,l,r,f,m,j){e.cancelPendingCommit=null;do Sr();while(lt!==0);if((De&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,m0(e,a,r,f,m,j),e===qe&&(ve=qe=null,je=0),Pn=t,Ya=e,Ra=a,Ps=r,eu=l,up=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qy(Ri,function(){return Tp(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null,l=Z.p,Z.p=2,f=De,De|=4;try{wy(e,t,a)}finally{De=f,Z.p=l,B.T=n}}lt=1,Sp(),jp(),Rp()}}function Sp(){if(lt===1){lt=0;var e=Ya,t=Pn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var n=Z.p;Z.p=2;var l=De;De|=4;try{tp(t,e);var r=mu,f=rd(e.containerInfo),m=r.focusedElem,j=r.selectionRange;if(f!==m&&m&&m.ownerDocument&&id(m.ownerDocument.documentElement,m)){if(j!==null&&qo(m)){var w=j.start,L=j.end;if(L===void 0&&(L=w),"selectionStart"in m)m.selectionStart=w,m.selectionEnd=Math.min(L,m.value.length);else{var G=m.ownerDocument||document,k=G&&G.defaultView||window;if(k.getSelection){var H=k.getSelection(),I=m.textContent.length,re=Math.min(j.start,I),Ue=j.end===void 0?re:Math.min(j.end,I);!H.extend&&re>Ue&&(f=Ue,Ue=re,re=f);var A=ld(m,re),R=ld(m,Ue);if(A&&R&&(H.rangeCount!==1||H.anchorNode!==A.node||H.anchorOffset!==A.offset||H.focusNode!==R.node||H.focusOffset!==R.offset)){var C=G.createRange();C.setStart(A.node,A.offset),H.removeAllRanges(),re>Ue?(H.addRange(C),H.extend(R.node,R.offset)):(C.setEnd(R.node,R.offset),H.addRange(C))}}}}for(G=[],H=m;H=H.parentNode;)H.nodeType===1&&G.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<G.length;m++){var q=G[m];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Or=!!hu,mu=hu=null}finally{De=l,Z.p=n,B.T=a}}e.current=t,lt=2}}function jp(){if(lt===2){lt=0;var e=Ya,t=Pn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var n=Z.p;Z.p=2;var l=De;De|=4;try{Jf(e,t.alternate,t)}finally{De=l,Z.p=n,B.T=a}}lt=3}}function Rp(){if(lt===4||lt===3){lt=0,r0();var e=Ya,t=Pn,a=Ra,n=up;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Pn=Ya=null,Ep(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(Ga=null),So(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(ml,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=B.T,l=Z.p,Z.p=2,B.T=null;try{for(var r=e.onRecoverableError,f=0;f<n.length;f++){var m=n[f];r(m.value,{componentStack:m.stack})}}finally{B.T=t,Z.p=l}}(Ra&3)!==0&&Sr(),aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===tu?Jl++:(Jl=0,tu=e):Jl=0,Il(0)}}function Ep(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_l(t)))}function Sr(){return Sp(),jp(),Rp(),Tp()}function Tp(){if(lt!==5)return!1;var e=Ya,t=Ps;Ps=0;var a=So(Ra),n=B.T,l=Z.p;try{Z.p=32>a?32:a,B.T=null,a=eu,eu=null;var r=Ya,f=Ra;if(lt=0,Pn=Ya=null,Ra=0,(De&6)!==0)throw Error(s(331));var m=De;if(De|=4,rp(r.current),np(r,r.current,f,a),De=m,Il(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(ml,r)}catch{}return!0}finally{Z.p=l,B.T=n,Ep(e,t)}}function Ap(e,t,a){t=qt(a,t),t=Os(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(gl(e,2),aa(e))}function Be(e,t,a){if(e.tag===3)Ap(e,e,a);else for(;t!==null;){if(t.tag===3){Ap(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ga===null||!Ga.has(n))){e=qt(a,e),a=zf(2),n=Ma(t,a,2),n!==null&&(Cf(a,n,t,e),gl(n,2),aa(n));break}}t=t.return}}function lu(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new ky;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)||(Js=!0,l.add(a),e=Hy.bind(null,e,t,a),t.then(e,e))}function Hy(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(je&a)===a&&(Fe===4||Fe===3&&(je&62914560)===je&&300>At()-mr?(De&2)===0&&el(e,0):Is|=a,$n===je&&($n=0)),aa(e)}function zp(e,t){t===0&&(t=bc()),e=nn(e,t),e!==null&&(gl(e,t),aa(e))}function Uy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),zp(e,a)}function Ly(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),zp(e,a)}function qy(e,t){return go(e,t)}var jr=null,al=null,iu=!1,Rr=!1,ru=!1,Xa=0;function aa(e){e!==al&&e.next===null&&(al===null?jr=al=e:al=al.next=e),Rr=!0,iu||(iu=!0,Yy())}function Il(e,t){if(!ru&&Rr){ru=!0;do for(var a=!1,n=jr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var f=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-Ct(42|e)+1)-1,r&=l&~(f&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,_p(n,r))}else r=je,r=zi(n,n===qe?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||yl(n,r)||(a=!0,_p(n,r));n=n.next}while(a);ru=!1}}function Gy(){Cp()}function Cp(){Rr=iu=!1;var e=0;Xa!==0&&$y()&&(e=Xa);for(var t=At(),a=null,n=jr;n!==null;){var l=n.next,r=wp(n,t);r===0?(n.next=null,a===null?jr=l:a.next=l,l===null&&(al=a)):(a=n,(e!==0||(r&3)!==0)&&(Rr=!0)),n=l}lt!==0&&lt!==5||Il(e),Xa!==0&&(Xa=0)}function wp(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var f=31-Ct(r),m=1<<f,j=l[f];j===-1?((m&a)===0||(m&n)!==0)&&(l[f]=h0(m,t)):j<=t&&(e.expiredLanes|=m),r&=~m}if(t=qe,a=je,a=zi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&xo(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||yl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&xo(n),So(a)){case 2:case 8:a=xc;break;case 32:a=Ri;break;case 268435456:a=vc;break;default:a=Ri}return n=Dp.bind(null,e),a=go(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&xo(n),e.callbackPriority=2,e.callbackNode=null,2}function Dp(e,t){if(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Sr()&&e.callbackNode!==a)return null;var n=je;return n=zi(e,e===qe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(dp(e,n,t),wp(e,At()),e.callbackNode!=null&&e.callbackNode===a?Dp.bind(null,e):null)}function _p(e,t){if(Sr())return null;dp(e,t,!0)}function Yy(){eg(function(){(De&6)!==0?go(gc,Gy):Cp()})}function ou(){if(Xa===0){var e=Gn;e===0&&(e=Ei,Ei<<=1,(Ei&261888)===0&&(Ei=256)),Xa=e}return Xa}function kp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_i(""+e)}function Op(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 Vy(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=kp((l[gt]||null).action),f=n.submitter;f&&(t=(t=f[gt]||null)?kp(t.formAction):f.getAttribute("formAction"),t!==null&&(r=t,f=null));var m=new Mi("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Xa!==0){var j=f?Op(l,f):new FormData(l);zs(a,{pending:!0,data:j,method:l.method,action:r},null,j)}}else typeof r=="function"&&(m.preventDefault(),j=f?Op(l,f):new FormData(l),zs(a,{pending:!0,data:j,method:l.method,action:r},r,j))},currentTarget:l}]})}}for(var su=0;su<Xo.length;su++){var uu=Xo[su],Xy=uu.toLowerCase(),Qy=uu[0].toUpperCase()+uu.slice(1);Wt(Xy,"on"+Qy)}Wt(ud,"onAnimationEnd"),Wt(cd,"onAnimationIteration"),Wt(dd,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(oy,"onTransitionRun"),Wt(sy,"onTransitionStart"),Wt(uy,"onTransitionCancel"),Wt(fd,"onTransitionEnd"),zn("onMouseEnter",["mouseout","mouseover"]),zn("onMouseLeave",["mouseout","mouseover"]),zn("onPointerEnter",["pointerout","pointerover"]),zn("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $l="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($l));function Bp(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 f=n.length-1;0<=f;f--){var m=n[f],j=m.instance,w=m.currentTarget;if(m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=w;try{r(l)}catch(L){Ui(L)}l.currentTarget=null,r=j}else for(f=0;f<n.length;f++){if(m=n[f],j=m.instance,w=m.currentTarget,m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=w;try{r(l)}catch(L){Ui(L)}l.currentTarget=null,r=j}}}}function be(e,t){var a=t[jo];a===void 0&&(a=t[jo]=new Set);var n=e+"__bubble";a.has(n)||(Mp(t,e,2,!1),a.add(n))}function cu(e,t,a){var n=0;t&&(n|=4),Mp(a,e,n,t)}var Er="_reactListening"+Math.random().toString(36).slice(2);function du(e){if(!e[Er]){e[Er]=!0,zc.forEach(function(a){a!=="selectionchange"&&(Zy.has(a)||cu(a,!1,e),cu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Er]||(t[Er]=!0,cu("selectionchange",!1,t))}}function Mp(e,t,a,n){switch(ch(t)){case 2:var l=bg;break;case 8:l=Sg;break;default:l=Au}a=l.bind(null,t,a,e),l=void 0,!_o||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 fu(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var m=n.stateNode.containerInfo;if(m===l)break;if(f===4)for(f=n.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===l)return;f=f.return}for(;m!==null;){if(f=En(m),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){n=r=f;continue e}m=m.parentNode}}n=n.return}Lc(function(){var w=r,L=wo(a),G=[];e:{var k=pd.get(e);if(k!==void 0){var H=Mi,I=e;switch(e){case"keypress":if(Oi(a)===0)break e;case"keydown":case"keyup":H=L0;break;case"focusin":I="focus",H=Mo;break;case"focusout":I="blur",H=Mo;break;case"beforeblur":case"afterblur":H=Mo;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=Yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Y0;break;case ud:case cd:case dd:H=D0;break;case fd:H=X0;break;case"scroll":case"scrollend":H=T0;break;case"wheel":H=Z0;break;case"copy":case"cut":case"paste":H=k0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Xc;break;case"toggle":case"beforetoggle":H=W0}var re=(t&4)!==0,Ue=!re&&(e==="scroll"||e==="scrollend"),A=re?k!==null?k+"Capture":null:k;re=[];for(var R=w,C;R!==null;){var q=R;if(C=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||C===null||A===null||(q=bl(R,A),q!=null&&re.push(Pl(R,q,C))),Ue)break;R=R.return}0<re.length&&(k=new H(k,I,null,a,L),G.push({event:k,listeners:re}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",k&&a!==Co&&(I=a.relatedTarget||a.fromElement)&&(En(I)||I[Rn]))break e;if((H||k)&&(k=L.window===L?L:(k=L.ownerDocument)?k.defaultView||k.parentWindow:window,H?(I=a.relatedTarget||a.toElement,H=w,I=I?En(I):null,I!==null&&(Ue=p(I),re=I.tag,I!==Ue||re!==5&&re!==27&&re!==6)&&(I=null)):(H=null,I=w),H!==I)){if(re=Yc,q="onMouseLeave",A="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(re=Xc,q="onPointerLeave",A="onPointerEnter",R="pointer"),Ue=H==null?k:vl(H),C=I==null?k:vl(I),k=new re(q,R+"leave",H,a,L),k.target=Ue,k.relatedTarget=C,q=null,En(L)===w&&(re=new re(A,R+"enter",I,a,L),re.target=C,re.relatedTarget=Ue,q=re),Ue=q,H&&I)t:{for(re=Fy,A=H,R=I,C=0,q=A;q;q=re(q))C++;q=0;for(var ne=R;ne;ne=re(ne))q++;for(;0<C-q;)A=re(A),C--;for(;0<q-C;)R=re(R),q--;for(;C--;){if(A===R||R!==null&&A===R.alternate){re=A;break t}A=re(A),R=re(R)}re=null}else re=null;H!==null&&Np(G,k,H,re,!1),I!==null&&Ue!==null&&Np(G,Ue,I,re,!0)}}e:{if(k=w?vl(w):window,H=k.nodeName&&k.nodeName.toLowerCase(),H==="select"||H==="input"&&k.type==="file")var Ce=$c;else if(Jc(k))if(Pc)Ce=ly;else{Ce=ay;var te=ty}else H=k.nodeName,!H||H.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?w&&zo(w.elementType)&&(Ce=$c):Ce=ny;if(Ce&&(Ce=Ce(e,w))){Ic(G,Ce,a,L);break e}te&&te(e,k,w),e==="focusout"&&w&&k.type==="number"&&w.memoizedProps.value!=null&&Ao(k,"number",k.value)}switch(te=w?vl(w):window,e){case"focusin":(Jc(te)||te.contentEditable==="true")&&(On=te,Go=w,Cl=null);break;case"focusout":Cl=Go=On=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,od(G,a,L);break;case"selectionchange":if(ry)break;case"keydown":case"keyup":od(G,a,L)}var me;if(Ho)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else kn?Wc(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(Qc&&a.locale!=="ko"&&(kn||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&kn&&(me=qc()):(Ca=L,ko="value"in Ca?Ca.value:Ca.textContent,kn=!0)),te=Tr(w,Re),0<te.length&&(Re=new Vc(Re,e,null,a,L),G.push({event:Re,listeners:te}),me?Re.data=me:(me=Kc(a),me!==null&&(Re.data=me)))),(me=J0?I0(e,a):$0(e,a))&&(Re=Tr(w,"onBeforeInput"),0<Re.length&&(te=new Vc("onBeforeInput","beforeinput",null,a,L),G.push({event:te,listeners:Re}),te.data=me)),Vy(G,e,w,a,L)}Bp(G,t)})}function Pl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Tr(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=bl(e,a),l!=null&&n.unshift(Pl(e,l,r)),l=bl(e,t),l!=null&&n.push(Pl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Fy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Np(e,t,a,n,l){for(var r=t._reactName,f=[];a!==null&&a!==n;){var m=a,j=m.alternate,w=m.stateNode;if(m=m.tag,j!==null&&j===n)break;m!==5&&m!==26&&m!==27||w===null||(j=w,l?(w=bl(a,r),w!=null&&f.unshift(Pl(a,w,j))):l||(w=bl(a,r),w!=null&&f.push(Pl(a,w,j)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Wy=/\r\n?/g,Ky=/\u0000|\uFFFD/g;function Hp(e){return(typeof e=="string"?e:""+e).replace(Wy,`
9
+ `).replace(Ky,"")}function Up(e,t){return t=Hp(t),Hp(e)===t}function He(e,t,a,n,l,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||wn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&wn(e,""+n);break;case"className":wi(e,"class",n);break;case"tabIndex":wi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":wi(e,a,n);break;case"style":Hc(e,n,r);break;case"data":if(t!=="object"){wi(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=_i(""+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=_i(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=sa);break;case"onScroll":n!=null&&be("scroll",e);break;case"onScrollEnd":n!=null&&be("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=_i(""+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":be("beforetoggle",e),be("toggle",e),Ci(e,"popover",n);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ci(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=R0.get(a)||a,Ci(e,a,n))}}function pu(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"?wn(e,n):(typeof n=="number"||typeof n=="bigint")&&wn(e,""+n);break;case"onScroll":n!=null&&be("scroll",e);break;case"onScrollEnd":n!=null&&be("scrollend",e);break;case"onClick":n!=null&&(e.onclick=sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cc.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[gt]||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,""):Ci(e,a,n)}}}function pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var n=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=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,f,a,null)}}l&&He(e,t,"srcSet",a.srcSet,a,null),n&&He(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var m=r=f=l=null,j=null,w=null;for(n in a)if(a.hasOwnProperty(n)){var L=a[n];if(L!=null)switch(n){case"name":l=L;break;case"type":f=L;break;case"checked":j=L;break;case"defaultChecked":w=L;break;case"value":r=L;break;case"defaultValue":m=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:He(e,t,n,L,a,null)}}Oc(e,r,m,j,w,f,l,!1);return;case"select":be("invalid",e),n=f=r=null;for(l in a)if(a.hasOwnProperty(l)&&(m=a[l],m!=null))switch(l){case"value":r=m;break;case"defaultValue":f=m;break;case"multiple":n=m;default:He(e,t,l,m,a,null)}t=r,a=f,e.multiple=!!n,t!=null?Cn(e,!!n,t,!1):a!=null&&Cn(e,!!n,a,!0);return;case"textarea":be("invalid",e),r=l=n=null;for(f in a)if(a.hasOwnProperty(f)&&(m=a[f],m!=null))switch(f){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,f,m,a,null)}Mc(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":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(n=0;n<$l.length;n++)be($l[n],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(w in a)if(a.hasOwnProperty(w)&&(n=a[w],n!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,w,n,a,null)}return;default:if(zo(t)){for(L in a)a.hasOwnProperty(L)&&(n=a[L],n!==void 0&&pu(e,t,L,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 Jy(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,f=null,m=null,j=null,w=null,L=null;for(H in a){var G=a[H];if(a.hasOwnProperty(H)&&G!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":j=G;default:n.hasOwnProperty(H)||He(e,t,H,null,n,G)}}for(var k in n){var H=n[k];if(G=a[k],n.hasOwnProperty(k)&&(H!=null||G!=null))switch(k){case"type":r=H;break;case"name":l=H;break;case"checked":w=H;break;case"defaultChecked":L=H;break;case"value":f=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==G&&He(e,t,k,H,n,G)}}To(e,f,m,j,w,L,r,l);return;case"select":H=f=m=k=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":k=r;break;case"defaultValue":m=r;break;case"multiple":f=r;default:r!==j&&He(e,t,l,r,n,j)}t=m,a=f,n=H,k!=null?Cn(e,!!a,k,!1):!!n!=!!a&&(t!=null?Cn(e,!!a,t,!0):Cn(e,!!a,a?[]:"",!1));return;case"textarea":H=k=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(f in n)if(l=n[f],r=a[f],n.hasOwnProperty(f)&&(l!=null||r!=null))switch(f){case"value":k=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,f,l,n,r)}Bc(e,k,H);return;case"option":for(var I in a)k=a[I],a.hasOwnProperty(I)&&k!=null&&!n.hasOwnProperty(I)&&(I==="selected"?e.selected=!1:He(e,t,I,null,n,k));for(j in n)k=n[j],H=a[j],n.hasOwnProperty(j)&&k!==H&&(k!=null||H!=null)&&(j==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":He(e,t,j,k,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 re in a)k=a[re],a.hasOwnProperty(re)&&k!=null&&!n.hasOwnProperty(re)&&He(e,t,re,null,n,k);for(w in n)if(k=n[w],H=a[w],n.hasOwnProperty(w)&&k!==H&&(k!=null||H!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:He(e,t,w,k,n,H)}return;default:if(zo(t)){for(var Ue in a)k=a[Ue],a.hasOwnProperty(Ue)&&k!==void 0&&!n.hasOwnProperty(Ue)&&pu(e,t,Ue,void 0,n,k);for(L in n)k=n[L],H=a[L],!n.hasOwnProperty(L)||k===H||k===void 0&&H===void 0||pu(e,t,L,k,n,H);return}}for(var A in a)k=a[A],a.hasOwnProperty(A)&&k!=null&&!n.hasOwnProperty(A)&&He(e,t,A,null,n,k);for(G in n)k=n[G],H=a[G],!n.hasOwnProperty(G)||k===H||k==null&&H==null||He(e,t,G,k,n,H)}function Lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Iy(){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,f=l.initiatorType,m=l.duration;if(r&&m&&Lp(f)){for(f=0,m=l.responseEnd,n+=1;n<a.length;n++){var j=a[n],w=j.startTime;if(w>m)break;var L=j.transferSize,G=j.initiatorType;L&&Lp(G)&&(j=j.responseEnd,f+=L*(j<m?1:(m-w)/(j-w)))}if(--n,t+=8*(r+f)/(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 hu=null,mu=null;function Ar(e){return e.nodeType===9?e:e.ownerDocument}function qp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gp(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 yu(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 gu=null;function $y(){var e=window.event;return e&&e.type==="popstate"?e===gu?!1:(gu=e,!0):(gu=null,!1)}var Yp=typeof setTimeout=="function"?setTimeout:void 0,Py=typeof clearTimeout=="function"?clearTimeout:void 0,Vp=typeof Promise=="function"?Promise:void 0,eg=typeof queueMicrotask=="function"?queueMicrotask:typeof Vp<"u"?function(e){return Vp.resolve(null).then(e).catch(tg)}:Yp;function tg(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function Xp(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),rl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")ei(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ei(a);for(var r=a.firstChild;r;){var f=r.nextSibling,m=r.nodeName;r[xl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&ei(e.ownerDocument.body);a=l}while(a);rl(t)}function Qp(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 xu(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":xu(a),Ro(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ag(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[xl])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=Qt(e.nextSibling),e===null)break}return null}function ng(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Qt(e.nextSibling),e===null))return null;return e}function Zp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function vu(e){return e.data==="$?"||e.data==="$~"}function bu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lg(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 Qt(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 Su=null;function Fp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Wp(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 Kp(e,t,a){switch(t=Ar(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 ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ro(e)}var Zt=new Map,Jp=new Set;function zr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=Z.d;Z.d={f:ig,r:rg,D:og,C:sg,L:ug,m:cg,X:fg,S:dg,M:pg};function ig(){var e=Ea.f(),t=xr();return e||t}function rg(e){var t=Tn(e);t!==null&&t.tag===5&&t.type==="form"?pf(t):Ea.r(e)}var nl=typeof document>"u"?null:document;function Ip(e,t,a){var n=nl;if(n&&typeof t=="string"&&t){var l=Ut(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Jp.has(l)||(Jp.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),pt(t,"link",e),it(t),n.head.appendChild(t)))}}function og(e){Ea.D(e),Ip("dns-prefetch",e,null)}function sg(e,t){Ea.C(e,t),Ip("preconnect",e,t)}function ug(e,t,a){Ea.L(e,t,a);var n=nl;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=ll(e);break;case"script":r=il(e)}Zt.has(r)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Zt.set(r,e),n.querySelector(l)!==null||t==="style"&&n.querySelector(ti(r))||t==="script"&&n.querySelector(ai(r))||(t=n.createElement("link"),pt(t,"link",e),it(t),n.head.appendChild(t)))}}function cg(e,t){Ea.m(e,t);var a=nl;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=il(e)}if(!Zt.has(r)&&(e=g({rel:"modulepreload",href:e},t),Zt.set(r,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ai(r)))return}n=a.createElement("link"),pt(n,"link",e),it(n),a.head.appendChild(n)}}}function dg(e,t,a){Ea.S(e,t,a);var n=nl;if(n&&e){var l=An(n).hoistableStyles,r=ll(e);t=t||"default";var f=l.get(r);if(!f){var m={loading:0,preload:null};if(f=n.querySelector(ti(r)))m.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Zt.get(r))&&ju(e,a);var j=f=n.createElement("link");it(j),pt(j,"link",e),j._p=new Promise(function(w,L){j.onload=w,j.onerror=L}),j.addEventListener("load",function(){m.loading|=1}),j.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Cr(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:m},l.set(r,f)}}}function fg(e,t){Ea.X(e,t);var a=nl;if(a&&e){var n=An(a).hoistableScripts,l=il(e),r=n.get(l);r||(r=a.querySelector(ai(l)),r||(e=g({src:e,async:!0},t),(t=Zt.get(l))&&Ru(e,t),r=a.createElement("script"),it(r),pt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function pg(e,t){Ea.M(e,t);var a=nl;if(a&&e){var n=An(a).hoistableScripts,l=il(e),r=n.get(l);r||(r=a.querySelector(ai(l)),r||(e=g({src:e,async:!0,type:"module"},t),(t=Zt.get(l))&&Ru(e,t),r=a.createElement("script"),it(r),pt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function $p(e,t,a,n){var l=(l=ce.current)?zr(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=ll(a.href),a=An(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=ll(a.href);var r=An(l).hoistableStyles,f=r.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,f),(r=l.querySelector(ti(e)))&&!r._p&&(f.instance=r,f.state.loading=5),Zt.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},Zt.set(e,a),r||hg(l,e,a,f.state))),t&&n===null)throw Error(s(528,""));return f}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=il(a),a=An(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 ll(e){return'href="'+Ut(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function Pp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function hg(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}),pt(t,"link",a),it(t),e.head.appendChild(t))}function il(e){return'[src="'+Ut(e)+'"]'}function ai(e){return"script[async]"+e}function eh(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,it(n),n;var l=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),it(n),pt(n,"style",l),Cr(n,a.precedence,e),t.instance=n;case"stylesheet":l=ll(a.href);var r=e.querySelector(ti(l));if(r)return t.state.loading|=4,t.instance=r,it(r),r;n=Pp(a),(l=Zt.get(l))&&ju(n,l),r=(e.ownerDocument||e).createElement("link"),it(r);var f=r;return f._p=new Promise(function(m,j){f.onload=m,f.onerror=j}),pt(r,"link",n),t.state.loading|=4,Cr(r,a.precedence,e),t.instance=r;case"script":return r=il(a.src),(l=e.querySelector(ai(r)))?(t.instance=l,it(l),l):(n=a,(l=Zt.get(r))&&(n=g({},a),Ru(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),it(l),pt(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,Cr(n,a.precedence,e));return t.instance}function Cr(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,f=0;f<n.length;f++){var m=n[f];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 ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var wr=null;function th(e,t,a){if(wr===null){var n=new Map,l=wr=new Map;l.set(a,n)}else l=wr,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[xl]||r[ut]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(t)||"";f=e+f;var m=n.get(f);m?m.push(r):n.set(f,[r])}}return n}function ah(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mg(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 nh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yg(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=ll(n.href),r=t.querySelector(ti(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,it(r);return}r=t.ownerDocument||t,n=Pp(n),(l=Zt.get(l))&&ju(n,l),r=r.createElement("link"),it(r);var f=r;f._p=new Promise(function(m,j){f.onload=m,f.onerror=j}),pt(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=Dr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Eu=0;function gg(e,t){return e.stylesheets&&e.count===0&&kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&kr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Eu===0&&(Eu=62500*Iy());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&kr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Eu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Dr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _r=null;function kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_r=new Map,t.forEach(xg,e),_r=null,Dr.call(e))}function xg(e,t){if(!(t.state.loading&4)){var a=_r.get(e);if(a)var n=a.get(null);else{a=new Map,_r.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var f=l[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}l=t.instance,f=l.getAttribute("data-precedence"),r=a.get(f)||n,r===n&&a.set(null,l),a.set(f,l),this.count++,n=Dr.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 ni={$$typeof:X,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function vg(e,t,a,n,l,r,f,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=vo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vo(0),this.hiddenUpdates=vo(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function lh(e,t,a,n,l,r,f,m,j,w,L,G){return e=new vg(e,t,a,f,j,w,L,G,m),t=1,r===!0&&(t|=24),r=Dt(3,null,null,t),e.current=r,r.stateNode=e,t=ns(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},os(r),e}function ih(e){return e?(e=Nn,e):Nn}function rh(e,t,a,n,l,r){l=ih(l),n.context===null?n.context=l:n.pendingContext=l,n=Ba(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ma(e,n,t),a!==null&&(Rt(a,e,t),Ml(a,e,t))}function oh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Tu(e,t){oh(e,t),(e=e.alternate)&&oh(e,t)}function sh(e){if(e.tag===13||e.tag===31){var t=nn(e,67108864);t!==null&&Rt(t,e,67108864),Tu(e,67108864)}}function uh(e){if(e.tag===13||e.tag===31){var t=Mt();t=bo(t);var a=nn(e,t);a!==null&&Rt(a,e,t),Tu(e,t)}}var Or=!0;function bg(e,t,a,n){var l=B.T;B.T=null;var r=Z.p;try{Z.p=2,Au(e,t,a,n)}finally{Z.p=r,B.T=l}}function Sg(e,t,a,n){var l=B.T;B.T=null;var r=Z.p;try{Z.p=8,Au(e,t,a,n)}finally{Z.p=r,B.T=l}}function Au(e,t,a,n){if(Or){var l=zu(n);if(l===null)fu(e,t,n,Br,a),dh(e,n);else if(Rg(l,e,t,a,n))n.stopPropagation();else if(dh(e,n),t&4&&-1<jg.indexOf(e)){for(;l!==null;){var r=Tn(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=$a(r.pendingLanes);if(f!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var j=1<<31-Ct(f);m.entanglements[1]|=j,f&=~j}aa(r),(De&6)===0&&(yr=At()+500,Il(0))}}break;case 31:case 13:m=nn(r,2),m!==null&&Rt(m,r,2),xr(),Tu(r,2)}if(r=zu(n),r===null&&fu(e,t,n,Br,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else fu(e,t,n,null,a)}}function zu(e){return e=wo(e),Cu(e)}var Br=null;function Cu(e){if(Br=null,e=En(e),e!==null){var t=p(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=x(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Br=e,null}function ch(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(o0()){case gc:return 2;case xc:return 8;case Ri:case s0:return 32;case vc:return 268435456;default:return 32}default:return 32}}var wu=!1,Za=null,Fa=null,Wa=null,li=new Map,ii=new Map,Ka=[],jg="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 dh(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function ri(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=Tn(t),t!==null&&sh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Rg(e,t,a,n,l){switch(t){case"focusin":return Za=ri(Za,e,t,a,n,l),!0;case"dragenter":return Fa=ri(Fa,e,t,a,n,l),!0;case"mouseover":return Wa=ri(Wa,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return li.set(r,ri(li.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ii.set(r,ri(ii.get(r)||null,e,t,a,n,l)),!0}return!1}function fh(e){var t=En(e.target);if(t!==null){var a=p(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Tc(e.priority,function(){uh(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,Tc(e.priority,function(){uh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Co=n,a.target.dispatchEvent(n),Co=null}else return t=Tn(a),t!==null&&sh(t),e.blockedOn=a,!1;t.shift()}return!0}function ph(e,t,a){Mr(e)&&a.delete(t)}function Eg(){wu=!1,Za!==null&&Mr(Za)&&(Za=null),Fa!==null&&Mr(Fa)&&(Fa=null),Wa!==null&&Mr(Wa)&&(Wa=null),li.forEach(ph),ii.forEach(ph)}function Nr(e,t){e.blockedOn===t&&(e.blockedOn=null,wu||(wu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Eg)))}var Hr=null;function hh(e){Hr!==e&&(Hr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Hr===e&&(Hr=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(Cu(n||a)===null)continue;break}var r=Tn(a);r!==null&&(e.splice(t,3),t-=3,zs(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function rl(e){function t(j){return Nr(j,e)}Za!==null&&Nr(Za,e),Fa!==null&&Nr(Fa,e),Wa!==null&&Nr(Wa,e),li.forEach(t),ii.forEach(t);for(var a=0;a<Ka.length;a++){var n=Ka[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ka.length&&(a=Ka[0],a.blockedOn===null);)fh(a),a.blockedOn===null&&Ka.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],f=l[gt]||null;if(typeof r=="function")f||hh(a);else if(f){var m=null;if(r&&r.hasAttribute("formAction")){if(l=r,f=r[gt]||null)m=f.formAction;else if(Cu(l)!==null)continue}else m=f.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),hh(a)}}}function mh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return l=f})},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 Du(e){this._internalRoot=e}Ur.prototype.render=Du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=Mt();rh(a,n,e,t,null,null)},Ur.prototype.unmount=Du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rh(e.current,2,null,e,null,null),xr(),t[Rn]=null}};function Ur(e){this._internalRoot=e}Ur.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ka.length&&t!==0&&t<Ka[a].priority;a++);Ka.splice(a,0,e),a===0&&fh(e)}};var yh=o.version;if(yh!=="19.2.4")throw Error(s(527,yh,"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 Tg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lr.isDisabled&&Lr.supportsFiber)try{ml=Lr.inject(Tg),zt=Lr}catch{}}return si.createRoot=function(e,t){if(!d(e))throw Error(s(299));var a=!1,n="",l=Rf,r=Ef,f=Tf;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&&(f=t.onRecoverableError)),t=lh(e,1,!1,null,null,a,n,null,l,r,f,mh),e[Rn]=t.current,du(e),new Du(t)},si.hydrateRoot=function(e,t,a){if(!d(e))throw Error(s(299));var n=!1,l="",r=Rf,f=Ef,m=Tf,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&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=lh(e,1,!0,t,a??null,n,l,j,r,f,m,mh),t.context=ih(null),a=t.current,n=Mt(),n=bo(n),l=Ba(n),l.callback=null,Ma(a,l,n),a=n,t.current.lanes=a,gl(t,a),aa(t),e[Rn]=t.current,du(e),new Ur(t)},si.version="19.2.4",si}var Ah;function Mg(){if(Ah)return Ou.exports;Ah=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=Bg(),Ou.exports}var Ng=Mg();const Hg=um(Ng);var zh="popstate";function Ch(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ug(i={}){function o(s,d){let p=d.state?.masked,{pathname:h,search:x,hash:v}=p||s.location;return Fu("",{pathname:h,search:x,hash:v},d.state&&d.state.usr||null,d.state&&d.state.key||"default",p?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function c(s,d){return typeof d=="string"?d:fi(d)}return qg(o,c,null,i)}function Qe(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function It(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Lg(){return Math.random().toString(36).substring(2,10)}function wh(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 Fu(i,o,c=null,s,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?cl(o):o,state:c,key:o&&o.key||s||Lg(),unstable_mask:d}}function fi({pathname:i="/",search:o="",hash:c=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),c&&c!=="#"&&(i+=c.charAt(0)==="#"?c:"#"+c),i}function cl(i){let o={};if(i){let c=i.indexOf("#");c>=0&&(o.hash=i.substring(c),i=i.substring(0,c));let s=i.indexOf("?");s>=0&&(o.search=i.substring(s),i=i.substring(0,s)),i&&(o.pathname=i)}return o}function qg(i,o,c,s={}){let{window:d=document.defaultView,v5Compat:p=!1}=s,h=d.history,x="POP",v=null,y=b();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function b(){return(h.state||{idx:null}).idx}function g(){x="POP";let _=b(),V=_==null?null:_-y;y=_,v&&v({action:x,location:U.location,delta:V})}function z(_,V){x="PUSH";let K=Ch(_)?_:Fu(U.location,_,V);y=b()+1;let X=wh(K,y),ie=U.createHref(K.unstable_mask||K);try{h.pushState(X,"",ie)}catch(fe){if(fe instanceof DOMException&&fe.name==="DataCloneError")throw fe;d.location.assign(ie)}p&&v&&v({action:x,location:U.location,delta:1})}function D(_,V){x="REPLACE";let K=Ch(_)?_:Fu(U.location,_,V);y=b();let X=wh(K,y),ie=U.createHref(K.unstable_mask||K);h.replaceState(X,"",ie),p&&v&&v({action:x,location:U.location,delta:0})}function T(_){return Gg(_)}let U={get action(){return x},get location(){return i(d,h)},listen(_){if(v)throw new Error("A history only accepts one active listener");return d.addEventListener(zh,g),v=_,()=>{d.removeEventListener(zh,g),v=null}},createHref(_){return o(d,_)},createURL:T,encodeLocation(_){let V=T(_);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:z,replace:D,go(_){return h.go(_)}};return U}function Gg(i,o=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(c,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:fi(i);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=c+s),new URL(s,c)}function cm(i,o,c="/"){return Yg(i,o,c,!1)}function Yg(i,o,c,s){let d=typeof o=="string"?cl(o):o,p=Ta(d.pathname||"/",c);if(p==null)return null;let h=dm(i);Vg(h);let x=null;for(let v=0;x==null&&v<h.length;++v){let y=e1(p);x=$g(h[v],y,s)}return x}function dm(i,o=[],c=[],s="",d=!1){let p=(h,x,v=d,y)=>{let b={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:x,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&v)return;Qe(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 g=la([s,b.relativePath]),z=c.concat(b);h.children&&h.children.length>0&&(Qe(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),dm(h.children,o,z,g,v)),!(h.path==null&&!h.index)&&o.push({path:g,score:Jg(g,h.index),routesMeta:z})};return i.forEach((h,x)=>{if(h.path===""||!h.path?.includes("?"))p(h,x);else for(let v of fm(h.path))p(h,x,!0,v)}),o}function fm(i){let o=i.split("/");if(o.length===0)return[];let[c,...s]=o,d=c.endsWith("?"),p=c.replace(/\?$/,"");if(s.length===0)return d?[p,""]:[p];let h=fm(s.join("/")),x=[];return x.push(...h.map(v=>v===""?p:[p,v].join("/"))),d&&x.push(...h),x.map(v=>i.startsWith("/")&&v===""?"/":v)}function Vg(i){i.sort((o,c)=>o.score!==c.score?c.score-o.score:Ig(o.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var Xg=/^:[\w-]+$/,Qg=3,Zg=2,Fg=1,Wg=10,Kg=-2,Dh=i=>i==="*";function Jg(i,o){let c=i.split("/"),s=c.length;return c.some(Dh)&&(s+=Kg),o&&(s+=Zg),c.filter(d=>!Dh(d)).reduce((d,p)=>d+(Xg.test(p)?Qg:p===""?Fg:Wg),s)}function Ig(i,o){return i.length===o.length&&i.slice(0,-1).every((s,d)=>s===o[d])?i[i.length-1]-o[o.length-1]:0}function $g(i,o,c=!1){let{routesMeta:s}=i,d={},p="/",h=[];for(let x=0;x<s.length;++x){let v=s[x],y=x===s.length-1,b=p==="/"?o:o.slice(p.length)||"/",g=$r({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},b),z=v.route;if(!g&&y&&c&&!s[s.length-1].route.index&&(g=$r({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!g)return null;Object.assign(d,g.params),h.push({params:d,pathname:la([p,g.pathname]),pathnameBase:l1(la([p,g.pathnameBase])),route:z}),g.pathnameBase!=="/"&&(p=la([p,g.pathnameBase]))}return h}function $r(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[c,s]=Pg(i.path,i.caseSensitive,i.end),d=o.match(c);if(!d)return null;let p=d[0],h=p.replace(/(.)\/+$/,"$1"),x=d.slice(1);return{params:s.reduce((y,{paramName:b,isOptional:g},z)=>{if(b==="*"){let T=x[z]||"";h=p.slice(0,p.length-T.length).replace(/(.)\/+$/,"$1")}const D=x[z];return g&&!D?y[b]=void 0:y[b]=(D||"").replace(/%2F/g,"/"),y},{}),pathname:p,pathnameBase:h,pattern:i}}function Pg(i,o=!1,c=!0){It(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=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,x,v,y,b)=>{if(s.push({paramName:x,isOptional:v!=null}),v){let g=b.charAt(y+h.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),s]}function e1(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return It(!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 Ta(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let c=o.endsWith("/")?o.length-1:o.length,s=i.charAt(c);return s&&s!=="/"?null:i.slice(c)||"/"}var t1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function a1(i,o="/"){let{pathname:c,search:s="",hash:d=""}=typeof i=="string"?cl(i):i,p;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?p=_h(c.substring(1),"/"):p=_h(c,o)):p=o,{pathname:p,search:i1(s),hash:r1(d)}}function _h(i,o){let c=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?c.length>1&&c.pop():d!=="."&&c.push(d)}),c.length>1?c.join("/"):"/"}function Hu(i,o,c,s){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function n1(i){return i.filter((o,c)=>c===0||o.route.path&&o.route.path.length>0)}function ac(i){let o=n1(i);return o.map((c,s)=>s===o.length-1?c.pathname:c.pathnameBase)}function no(i,o,c,s=!1){let d;typeof i=="string"?d=cl(i):(d={...i},Qe(!d.pathname||!d.pathname.includes("?"),Hu("?","pathname","search",d)),Qe(!d.pathname||!d.pathname.includes("#"),Hu("#","pathname","hash",d)),Qe(!d.search||!d.search.includes("#"),Hu("#","search","hash",d)));let p=i===""||d.pathname==="",h=p?"/":d.pathname,x;if(h==null)x=c;else{let g=o.length-1;if(!s&&h.startsWith("..")){let z=h.split("/");for(;z[0]==="..";)z.shift(),g-=1;d.pathname=z.join("/")}x=g>=0?o[g]:"/"}let v=a1(d,x),y=h&&h!=="/"&&h.endsWith("/"),b=(p||h===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var la=i=>i.join("/").replace(/\/\/+/g,"/"),l1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),i1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,r1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,o1=class{constructor(i,o,c,s=!1){this.status=i,this.statusText=o||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function s1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function u1(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function hm(i,o){let c=i;if(typeof c!="string"||!t1.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let s=c,d=!1;if(pm)try{let p=new URL(window.location.href),h=c.startsWith("//")?new URL(p.protocol+c):new URL(c),x=Ta(h.pathname,o);h.origin===p.origin&&x!=null?c=x+h.search+h.hash:d=!0}catch{It(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mm=["POST","PUT","PATCH","DELETE"];new Set(mm);var c1=["GET",...mm];new Set(c1);var dl=E.createContext(null);dl.displayName="DataRouter";var lo=E.createContext(null);lo.displayName="DataRouterState";var d1=E.createContext(!1),ym=E.createContext({isTransitioning:!1});ym.displayName="ViewTransition";var f1=E.createContext(new Map);f1.displayName="Fetchers";var p1=E.createContext(null);p1.displayName="Await";var Nt=E.createContext(null);Nt.displayName="Navigation";var mi=E.createContext(null);mi.displayName="Location";var ia=E.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var nc=E.createContext(null);nc.displayName="RouteError";var gm="REACT_ROUTER_ERROR",h1="REDIRECT",m1="ROUTE_ERROR_RESPONSE";function y1(i){if(i.startsWith(`${gm}:${h1}:{`))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 g1(i){if(i.startsWith(`${gm}:${m1}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new o1(o.status,o.statusText,o.data)}catch{}}function x1(i,{relative:o}={}){Qe(fl(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=E.useContext(Nt),{hash:d,pathname:p,search:h}=yi(i,{relative:o}),x=p;return c!=="/"&&(x=p==="/"?c:la([c,p])),s.createHref({pathname:x,search:h,hash:d})}function fl(){return E.useContext(mi)!=null}function ra(){return Qe(fl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(mi).location}var xm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vm(i){E.useContext(Nt).static||E.useLayoutEffect(i)}function io(){let{isDataRoute:i}=E.useContext(ia);return i?_1():v1()}function v1(){Qe(fl(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(dl),{basename:o,navigator:c}=E.useContext(Nt),{matches:s}=E.useContext(ia),{pathname:d}=ra(),p=JSON.stringify(ac(s)),h=E.useRef(!1);return vm(()=>{h.current=!0}),E.useCallback((v,y={})=>{if(It(h.current,xm),!h.current)return;if(typeof v=="number"){c.go(v);return}let b=no(v,JSON.parse(p),d,y.relative==="path");i==null&&o!=="/"&&(b.pathname=b.pathname==="/"?o:la([o,b.pathname])),(y.replace?c.replace:c.push)(b,y.state,y)},[o,c,p,d,i])}E.createContext(null);function yi(i,{relative:o}={}){let{matches:c}=E.useContext(ia),{pathname:s}=ra(),d=JSON.stringify(ac(c));return E.useMemo(()=>no(i,JSON.parse(d),s,o==="path"),[i,d,s,o])}function b1(i,o){return bm(i,o)}function bm(i,o,c){Qe(fl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Nt),{matches:d}=E.useContext(ia),p=d[d.length-1],h=p?p.params:{},x=p?p.pathname:"/",v=p?p.pathnameBase:"/",y=p&&p.route;{let _=y&&y.path||"";jm(x,!y||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${_}">) 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="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let b=ra(),g;if(o){let _=typeof o=="string"?cl(o):o;Qe(v==="/"||_.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${_.pathname}" was given in the \`location\` prop.`),g=_}else g=b;let z=g.pathname||"/",D=z;if(v!=="/"){let _=v.replace(/^\//,"").split("/");D="/"+z.replace(/^\//,"").split("/").slice(_.length).join("/")}let T=cm(i,{pathname:D});It(y||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),It(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 "${g.pathname}${g.search}${g.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 U=T1(T&&T.map(_=>Object.assign({},_,{params:Object.assign({},h,_.params),pathname:la([v,s.encodeLocation?s.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?v:la([v,s.encodeLocation?s.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),d,c);return o&&U?E.createElement(mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},U):U}function S1(){let i=D1(),o=s1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),c=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},p={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),h=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:p},"ErrorBoundary")," or"," ",E.createElement("code",{style:p},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),c?E.createElement("pre",{style:d},c):null,h)}var j1=E.createElement(S1,null),Sm=class extends E.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 c=g1(i.digest);c&&(i=c)}let o=i!==void 0?E.createElement(ia.Provider,{value:this.props.routeContext},E.createElement(nc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(R1,{error:i},o):o}};Sm.contextType=d1;var Uu=new WeakMap;function R1({children:i,error:o}){let{basename:c}=E.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=y1(o.digest);if(s){let d=Uu.get(o);if(d)throw d;let p=hm(s.location,c);if(pm&&!Uu.get(o))if(p.isExternal||s.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:s.replace}));throw Uu.set(o,h),h}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return i}function E1({routeContext:i,match:o,children:c}){let s=E.useContext(dl);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(ia.Provider,{value:i},c)}function T1(i,o=[],c){let s=c?.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 d=i,p=s?.errors;if(p!=null){let b=d.findIndex(g=>g.route.id&&p?.[g.route.id]!==void 0);Qe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),d=d.slice(0,Math.min(d.length,b+1))}let h=!1,x=-1;if(c&&s){h=s.renderFallback;for(let b=0;b<d.length;b++){let g=d[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(x=b),g.route.id){let{loaderData:z,errors:D}=s,T=g.route.loader&&!z.hasOwnProperty(g.route.id)&&(!D||D[g.route.id]===void 0);if(g.route.lazy||T){c.isStatic&&(h=!0),x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}}let v=c?.onError,y=s&&v?(b,g)=>{v(b,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:u1(s.matches),errorInfo:g})}:void 0;return d.reduceRight((b,g,z)=>{let D,T=!1,U=null,_=null;s&&(D=p&&g.route.id?p[g.route.id]:void 0,U=g.route.errorElement||j1,h&&(x<0&&z===0?(jm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,_=null):x===z&&(T=!0,_=g.route.hydrateFallbackElement||null)));let V=o.concat(d.slice(0,z+1)),K=()=>{let X;return D?X=U:T?X=_:g.route.Component?X=E.createElement(g.route.Component,null):g.route.element?X=g.route.element:X=b,E.createElement(E1,{match:g,routeContext:{outlet:b,matches:V,isDataRoute:s!=null},children:X})};return s&&(g.route.ErrorBoundary||g.route.errorElement||z===0)?E.createElement(Sm,{location:s.location,revalidation:s.revalidation,component:U,error:D,children:K(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:y}):K()},null)}function lc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function A1(i){let o=E.useContext(dl);return Qe(o,lc(i)),o}function z1(i){let o=E.useContext(lo);return Qe(o,lc(i)),o}function C1(i){let o=E.useContext(ia);return Qe(o,lc(i)),o}function ic(i){let o=C1(i),c=o.matches[o.matches.length-1];return Qe(c.route.id,`${i} can only be used on routes that contain a unique "id"`),c.route.id}function w1(){return ic("useRouteId")}function D1(){let i=E.useContext(nc),o=z1("useRouteError"),c=ic("useRouteError");return i!==void 0?i:o.errors?.[c]}function _1(){let{router:i}=A1("useNavigate"),o=ic("useNavigate"),c=E.useRef(!1);return vm(()=>{c.current=!0}),E.useCallback(async(d,p={})=>{It(c.current,xm),c.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:o,...p}))},[i,o])}var kh={};function jm(i,o,c){!o&&!kh[i]&&(kh[i]=!0,It(!1,c))}E.memo(k1);function k1({routes:i,future:o,state:c,isStatic:s,onError:d}){return bm(i,void 0,{state:c,isStatic:s,onError:d})}function O1({to:i,replace:o,state:c,relative:s}){Qe(fl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=E.useContext(Nt);It(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:p}=E.useContext(ia),{pathname:h}=ra(),x=io(),v=no(i,ac(p),h,s==="path"),y=JSON.stringify(v);return E.useEffect(()=>{x(JSON.parse(y),{replace:o,state:c,relative:s})},[x,y,s,o,c]),null}function na(i){Qe(!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 B1({basename:i="/",children:o=null,location:c,navigationType:s="POP",navigator:d,static:p=!1,unstable_useTransitions:h}){Qe(!fl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),v=E.useMemo(()=>({basename:x,navigator:d,static:p,unstable_useTransitions:h,future:{}}),[x,d,p,h]);typeof c=="string"&&(c=cl(c));let{pathname:y="/",search:b="",hash:g="",state:z=null,key:D="default",unstable_mask:T}=c,U=E.useMemo(()=>{let _=Ta(y,x);return _==null?null:{location:{pathname:_,search:b,hash:g,state:z,key:D,unstable_mask:T},navigationType:s}},[x,y,b,g,z,D,s,T]);return It(U!=null,`<Router basename="${x}"> is not able to match the URL "${y}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:E.createElement(Nt.Provider,{value:v},E.createElement(mi.Provider,{children:o,value:U}))}function M1({children:i,location:o}){return b1(Wu(i),o)}function Wu(i,o=[]){let c=[];return E.Children.forEach(i,(s,d)=>{if(!E.isValidElement(s))return;let p=[...o,d];if(s.type===E.Fragment){c.push.apply(c,Wu(s.props.children,p));return}Qe(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>`),Qe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||p.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Wu(s.props.children,p)),c.push(h)}),c}var Xr="get",Qr="application/x-www-form-urlencoded";function ro(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function N1(i){return ro(i)&&i.tagName.toLowerCase()==="button"}function H1(i){return ro(i)&&i.tagName.toLowerCase()==="form"}function U1(i){return ro(i)&&i.tagName.toLowerCase()==="input"}function L1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function q1(i,o){return i.button===0&&(!o||o==="_self")&&!L1(i)}var qr=null;function G1(){if(qr===null)try{new FormData(document.createElement("form"),0),qr=!1}catch{qr=!0}return qr}var Y1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lu(i){return i!=null&&!Y1.has(i)?(It(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qr}"`),null):i}function V1(i,o){let c,s,d,p,h;if(H1(i)){let x=i.getAttribute("action");s=x?Ta(x,o):null,c=i.getAttribute("method")||Xr,d=Lu(i.getAttribute("enctype"))||Qr,p=new FormData(i)}else if(N1(i)||U1(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||x.getAttribute("action");if(s=v?Ta(v,o):null,c=i.getAttribute("formmethod")||x.getAttribute("method")||Xr,d=Lu(i.getAttribute("formenctype"))||Lu(x.getAttribute("enctype"))||Qr,p=new FormData(x,i),!G1()){let{name:y,type:b,value:g}=i;if(b==="image"){let z=y?`${y}.`:"";p.append(`${z}x`,"0"),p.append(`${z}y`,"0")}else y&&p.append(y,g)}}else{if(ro(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Xr,s=null,d=Qr,h=i}return p&&d==="text/plain"&&(h=p,p=void 0),{action:s,method:c.toLowerCase(),encType:d,formData:p,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rc(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function X1(i,o,c,s){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return c?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:o&&Ta(d.pathname,o)==="/"?d.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${s}`,d}async function Q1(i,o){if(i.id in o)return o[i.id];try{let c=await import(i.module);return o[i.id]=c,c}catch(c){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Z1(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 F1(i,o,c){let s=await Promise.all(i.map(async d=>{let p=o.routes[d.route.id];if(p){let h=await Q1(p,c);return h.links?h.links():[]}return[]}));return I1(s.flat(1).filter(Z1).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Oh(i,o,c,s,d,p){let h=(v,y)=>c[y]?v.route.id!==c[y].route.id:!0,x=(v,y)=>c[y].pathname!==v.pathname||c[y].route.path?.endsWith("*")&&c[y].params["*"]!==v.params["*"];return p==="assets"?o.filter((v,y)=>h(v,y)||x(v,y)):p==="data"?o.filter((v,y)=>{let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(h(v,y)||x(v,y))return!0;if(v.route.shouldRevalidate){let g=v.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function W1(i,o,{includeHydrateFallback:c}={}){return K1(i.map(s=>{let d=o.routes[s.route.id];if(!d)return[];let p=[d.module];return d.clientActionModule&&(p=p.concat(d.clientActionModule)),d.clientLoaderModule&&(p=p.concat(d.clientLoaderModule)),c&&d.hydrateFallbackModule&&(p=p.concat(d.hydrateFallbackModule)),d.imports&&(p=p.concat(d.imports)),p}).flat(1))}function K1(i){return[...new Set(i)]}function J1(i){let o={},c=Object.keys(i).sort();for(let s of c)o[s]=i[s];return o}function I1(i,o){let c=new Set;return new Set(o),i.reduce((s,d)=>{let p=JSON.stringify(J1(d));return c.has(p)||(c.add(p),s.push({key:p,link:d})),s},[])}function Rm(){let i=E.useContext(dl);return rc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function $1(){let i=E.useContext(lo);return rc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var oc=E.createContext(void 0);oc.displayName="FrameworkContext";function Em(){let i=E.useContext(oc);return rc(i,"You must render this element inside a <HydratedRouter> element"),i}function P1(i,o){let c=E.useContext(oc),[s,d]=E.useState(!1),[p,h]=E.useState(!1),{onFocus:x,onBlur:v,onMouseEnter:y,onMouseLeave:b,onTouchStart:g}=o,z=E.useRef(null);E.useEffect(()=>{if(i==="render"&&h(!0),i==="viewport"){let U=V=>{V.forEach(K=>{h(K.isIntersecting)})},_=new IntersectionObserver(U,{threshold:.5});return z.current&&_.observe(z.current),()=>{_.disconnect()}}},[i]),E.useEffect(()=>{if(s){let U=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(U)}}},[s]);let D=()=>{d(!0)},T=()=>{d(!1),h(!1)};return c?i!=="intent"?[p,z,{}]:[p,z,{onFocus:ui(x,D),onBlur:ui(v,T),onMouseEnter:ui(y,D),onMouseLeave:ui(b,T),onTouchStart:ui(g,D)}]:[!1,z,{}]}function ui(i,o){return c=>{i&&i(c),c.defaultPrevented||o(c)}}function ex({page:i,...o}){let{router:c}=Rm(),s=E.useMemo(()=>cm(c.routes,i,c.basename),[c.routes,i,c.basename]);return s?E.createElement(ax,{page:i,matches:s,...o}):null}function tx(i){let{manifest:o,routeModules:c}=Em(),[s,d]=E.useState([]);return E.useEffect(()=>{let p=!1;return F1(i,o,c).then(h=>{p||d(h)}),()=>{p=!0}},[i,o,c]),s}function ax({page:i,matches:o,...c}){let s=ra(),{future:d,manifest:p,routeModules:h}=Em(),{basename:x}=Rm(),{loaderData:v,matches:y}=$1(),b=E.useMemo(()=>Oh(i,o,y,p,s,"data"),[i,o,y,p,s]),g=E.useMemo(()=>Oh(i,o,y,p,s,"assets"),[i,o,y,p,s]),z=E.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let U=new Set,_=!1;if(o.forEach(K=>{let X=p.routes[K.route.id];!X||!X.hasLoader||(!b.some(ie=>ie.route.id===K.route.id)&&K.route.id in v&&h[K.route.id]?.shouldRevalidate||X.hasClientLoader?_=!0:U.add(K.route.id))}),U.size===0)return[];let V=X1(i,x,d.unstable_trailingSlashAwareDataRequests,"data");return _&&U.size>0&&V.searchParams.set("_routes",o.filter(K=>U.has(K.route.id)).map(K=>K.route.id).join(",")),[V.pathname+V.search]},[x,d.unstable_trailingSlashAwareDataRequests,v,s,p,b,o,i,h]),D=E.useMemo(()=>W1(g,p),[g,p]),T=tx(g);return E.createElement(E.Fragment,null,z.map(U=>E.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...c})),D.map(U=>E.createElement("link",{key:U,rel:"modulepreload",href:U,...c})),T.map(({key:U,link:_})=>E.createElement("link",{key:U,nonce:c.nonce,..._,crossOrigin:_.crossOrigin??c.crossOrigin})))}function nx(...i){return o=>{i.forEach(c=>{typeof c=="function"?c(o):c!=null&&(c.current=o)})}}var lx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lx&&(window.__reactRouterVersion="7.13.1")}catch{}function ix({basename:i,children:o,unstable_useTransitions:c,window:s}){let d=E.useRef();d.current==null&&(d.current=Ug({window:s,v5Compat:!0}));let p=d.current,[h,x]=E.useState({action:p.action,location:p.location}),v=E.useCallback(y=>{c===!1?x(y):E.startTransition(()=>x(y))},[c]);return E.useLayoutEffect(()=>p.listen(v),[p,v]),E.createElement(B1,{basename:i,children:o,location:h.location,navigationType:h.action,navigator:p,unstable_useTransitions:c})}var Tm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Am=E.forwardRef(function({onClick:o,discover:c="render",prefetch:s="none",relative:d,reloadDocument:p,replace:h,unstable_mask:x,state:v,target:y,to:b,preventScrollReset:g,viewTransition:z,unstable_defaultShouldRevalidate:D,...T},U){let{basename:_,navigator:V,unstable_useTransitions:K}=E.useContext(Nt),X=typeof b=="string"&&Tm.test(b),ie=hm(b,_);b=ie.to;let fe=x1(b,{relative:d}),xe=ra(),J=null;if(x){let ke=no(x,[],xe.unstable_mask?xe.unstable_mask.pathname:"/",!0);_!=="/"&&(ke.pathname=ke.pathname==="/"?_:la([_,ke.pathname])),J=V.createHref(ke)}let[_e,Me,ot]=P1(s,T),$e=ux(b,{replace:h,unstable_mask:x,state:v,target:y,preventScrollReset:g,relative:d,viewTransition:z,unstable_defaultShouldRevalidate:D,unstable_useTransitions:K});function F(ke){o&&o(ke),ke.defaultPrevented||$e(ke)}let he=!(ie.isExternal||p),Se=E.createElement("a",{...T,...ot,href:(he?J:void 0)||ie.absoluteURL||fe,onClick:he?F:o,ref:nx(U,Me),target:y,"data-discover":!X&&c==="render"?"true":void 0});return _e&&!X?E.createElement(E.Fragment,null,Se,E.createElement(ex,{page:fe})):Se});Am.displayName="Link";var rx=E.forwardRef(function({"aria-current":o="page",caseSensitive:c=!1,className:s="",end:d=!1,style:p,to:h,viewTransition:x,children:v,...y},b){let g=yi(h,{relative:y.relative}),z=ra(),D=E.useContext(lo),{navigator:T,basename:U}=E.useContext(Nt),_=D!=null&&hx(g)&&x===!0,V=T.encodeLocation?T.encodeLocation(g).pathname:g.pathname,K=z.pathname,X=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;c||(K=K.toLowerCase(),X=X?X.toLowerCase():null,V=V.toLowerCase()),X&&U&&(X=Ta(X,U)||X);const ie=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let fe=K===V||!d&&K.startsWith(V)&&K.charAt(ie)==="/",xe=X!=null&&(X===V||!d&&X.startsWith(V)&&X.charAt(V.length)==="/"),J={isActive:fe,isPending:xe,isTransitioning:_},_e=fe?o:void 0,Me;typeof s=="function"?Me=s(J):Me=[s,fe?"active":null,xe?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let ot=typeof p=="function"?p(J):p;return E.createElement(Am,{...y,"aria-current":_e,className:Me,ref:b,style:ot,to:h,viewTransition:x},typeof v=="function"?v(J):v)});rx.displayName="NavLink";var ox=E.forwardRef(({discover:i="render",fetcherKey:o,navigate:c,reloadDocument:s,replace:d,state:p,method:h=Xr,action:x,onSubmit:v,relative:y,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:z,...D},T)=>{let{unstable_useTransitions:U}=E.useContext(Nt),_=fx(),V=px(x,{relative:y}),K=h.toLowerCase()==="get"?"get":"post",X=typeof x=="string"&&Tm.test(x),ie=fe=>{if(v&&v(fe),fe.defaultPrevented)return;fe.preventDefault();let xe=fe.nativeEvent.submitter,J=xe?.getAttribute("formmethod")||h,_e=()=>_(xe||fe.currentTarget,{fetcherKey:o,method:J,navigate:c,replace:d,state:p,relative:y,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:z});U&&c!==!1?E.startTransition(()=>_e()):_e()};return E.createElement("form",{ref:T,method:K,action:V,onSubmit:s?v:ie,...D,"data-discover":!X&&i==="render"?"true":void 0})});ox.displayName="Form";function sx(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zm(i){let o=E.useContext(dl);return Qe(o,sx(i)),o}function ux(i,{target:o,replace:c,unstable_mask:s,state:d,preventScrollReset:p,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let b=io(),g=ra(),z=yi(i,{relative:h});return E.useCallback(D=>{if(q1(D,o)){D.preventDefault();let T=c!==void 0?c:fi(g)===fi(z),U=()=>b(i,{replace:T,unstable_mask:s,state:d,preventScrollReset:p,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:v});y?E.startTransition(()=>U()):U()}},[g,b,z,c,s,d,o,i,p,h,x,v,y])}var cx=0,dx=()=>`__${String(++cx)}__`;function fx(){let{router:i}=zm("useSubmit"),{basename:o}=E.useContext(Nt),c=w1(),s=i.fetch,d=i.navigate;return E.useCallback(async(p,h={})=>{let{action:x,method:v,encType:y,formData:b,body:g}=V1(p,o);if(h.navigate===!1){let z=h.fetcherKey||dx();await s(z,c,h.action||x,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:g,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await d(h.action||x,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:g,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,d,o,c])}function px(i,{relative:o}={}){let{basename:c}=E.useContext(Nt),s=E.useContext(ia);Qe(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),p={...yi(i||".",{relative:o})},h=ra();if(i==null){p.search=h.search;let x=new URLSearchParams(p.search),v=x.getAll("index");if(v.some(b=>b==="")){x.delete("index"),v.filter(g=>g).forEach(g=>x.append("index",g));let b=x.toString();p.search=b?`?${b}`:""}}return(!i||i===".")&&d.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(p.pathname=p.pathname==="/"?c:la([c,p.pathname])),fi(p)}function hx(i,{relative:o}={}){let c=E.useContext(ym);Qe(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=zm("useViewTransitionState"),d=yi(i,{relative:o});if(!c.isTransitioning)return!1;let p=Ta(c.currentLocation.pathname,s)||c.currentLocation.pathname,h=Ta(c.nextLocation.pathname,s)||c.nextLocation.pathname;return $r(d.pathname,h)!=null||$r(d.pathname,p)!=null}const Cm=(...i)=>i.filter((o,c,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===c).join(" ").trim();const mx=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const yx=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,c,s)=>s?s.toUpperCase():c.toLowerCase());const Bh=i=>{const o=yx(i);return o.charAt(0).toUpperCase()+o.slice(1)};var gx={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 xx=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const vx=E.forwardRef(({color:i="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:s,className:d="",children:p,iconNode:h,...x},v)=>E.createElement("svg",{ref:v,...gx,width:o,height:o,stroke:i,strokeWidth:s?Number(c)*24/Number(o):c,className:Cm("lucide",d),...!p&&!xx(x)&&{"aria-hidden":"true"},...x},[...h.map(([y,b])=>E.createElement(y,b)),...Array.isArray(p)?p:[p]]));const le=(i,o)=>{const c=E.forwardRef(({className:s,...d},p)=>E.createElement(vx,{ref:p,iconNode:o,className:Cm(`lucide-${mx(Bh(i))}`,`lucide-${i}`,s),...d}));return c.displayName=Bh(i),c};const bx=[["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"}]],Zr=le("activity",bx);const Sx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],jx=le("arrow-left",Sx);const Rx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ex=le("arrow-right",Rx);const Tx=[["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"}]],Mh=le("bot",Tx);const Ax=[["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"}]],zx=le("camera",Ax);const Cx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pi=le("check",Cx);const wx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Dx=le("chevron-down",wx);const _x=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],kx=le("chevron-left",_x);const Ox=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hi=le("chevron-right",Ox);const Bx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Mx=le("chevron-up",Bx);const Nx=[["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"}]],Hx=le("circle-play",Nx);const Ux=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Pr=le("clock",Ux);const Lx=[["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"}]],qx=le("cpu",Lx);const Gx=[["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"}]],Yx=le("download",Gx);const Vx=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Xx=le("eye-off",Vx);const Qx=[["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"}]],wm=le("eye",Qx);const Zx=[["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"}]],Gr=le("file-code",Zx);const Fx=[["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"}]],qu=le("file-image",Fx);const Wx=[["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=le("file-text",Wx);const Kx=[["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"}]],Nh=le("file",Kx);const Jx=[["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"}]],Hh=le("folder-plus",Jx);const Ix=[["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"}]],Dm=le("folder",Ix);const $x=[["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"}]],Px=le("funnel",$x);const ev=[["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"}]],tv=le("github",ev);const av=[["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"}]],nv=le("globe",av);const lv=[["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"}]],sc=le("hard-drive",lv);const iv=[["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"}]],rv=le("layout-dashboard",iv);const ov=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],sv=le("linkedin",ov);const uv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],cv=le("loader-circle",uv);const dv=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],fv=le("log-out",dv);const pv=[["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"}]],_m=le("message-square",pv);const hv=[["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"}]],mv=le("mic-off",hv);const yv=[["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"}]],Ju=le("mic",yv);const gv=[["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"}]],xv=le("panels-top-left",gv);const vv=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],bv=le("play",vv);const Sv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],jv=le("plus",Sv);const Rv=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Uh=le("power",Rv);const Ev=[["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"}]],Tv=le("refresh-cw",Ev);const Av=[["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"}]],Lh=le("rotate-ccw",Av);const zv=[["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"}]],Cv=le("save",zv);const wv=[["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"}]],Dv=le("send",wv);const _v=[["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"}]],kv=le("server",_v);const Ov=[["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"}]],Bv=le("settings",Ov);const Mv=[["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"}]],sl=le("shield",Mv);const Nv=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Hv=le("sparkles",Nv);const Uv=[["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"}]],km=le("trash-2",Uv);const Lv=[["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"}]],Om=le("triangle-alert",Lv);const qv=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],Gv=le("twitter",qv);const Yv=[["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"}]],Vv=le("upload",Yv);const Xv=[["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"}]],Bm=le("user",Xv);const Qv=[["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"}]],eo=le("wrench",Qv);const Zv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qh=le("x",Zv);const Fv=[["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"}]],Sn=le("zap",Fv),Wv=[{icon:rv,label:"Control Center",labelHi:"डैशबोर्ड",path:"/"},{icon:_m,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:sc,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:eo,label:"Tool Packs",labelHi:"टूल पैक्स",path:"/tools"},{icon:Sn,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:sl,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Bv,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function Kv({user:i,isOpen:o,onToggle:c,onLogout:s}){const d=io(),p=ra();return u.jsxs("aside",{style:{...nt.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[u.jsxs("div",{style:nt.header,children:[u.jsxs("div",{style:nt.brand,onClick:()=>d("/"),children:[u.jsx("div",{style:nt.logoWrap,children:u.jsx("span",{style:nt.logoChar,children:"स"})}),o&&u.jsxs("div",{style:nt.brandText,children:[u.jsx("span",{style:nt.brandName,children:"SamarthyaBot"}),u.jsx("span",{style:nt.brandSub,children:"v1.0.0"})]})]}),u.jsx("button",{onClick:c,style:nt.toggleBtn,children:o?u.jsx(kx,{size:18}):u.jsx(hi,{size:18})})]}),u.jsx("nav",{style:nt.nav,children:Wv.map(h=>{const x=h.icon,v=p.pathname===h.path||h.path!=="/"&&p.pathname.startsWith(h.path);return u.jsxs("button",{onClick:()=>d(h.path),style:{...nt.navItem,...v?nt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:h.label,children:[u.jsx(x,{size:20,style:{minWidth:"20px"}}),o&&u.jsx("span",{children:h.label}),v&&u.jsx("div",{style:nt.activeIndicator})]},h.path)})}),u.jsxs("div",{style:nt.footer,children:[o&&u.jsxs("div",{style:nt.userInfo,children:[u.jsx("div",{style:nt.avatar,children:(i?.name||"U").charAt(0).toUpperCase()}),u.jsxs("div",{style:nt.userText,children:[u.jsx("div",{style:nt.userName,children:i?.name||"User"}),u.jsxs("div",{style:nt.userPack,children:[i?.activePack==="student"?"🎓":i?.activePack==="business"?"🏢":i?.activePack==="developer"?"👨‍💻":"🏠"," ",i?.activePack||"personal"," pack"]})]})]}),u.jsxs("button",{onClick:s,style:nt.logoutBtn,title:"Logout",children:[u.jsx(fv,{size:18}),o&&u.jsx("span",{children:"Logout"})]})]})]})}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)"},userPack:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"},logoutBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"10px",background:"transparent",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-muted)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",whiteSpace:"nowrap"}};function Mm(i,o){return function(){return i.apply(o,arguments)}}const{toString:Jv}=Object.prototype,{getPrototypeOf:uc}=Object,{iterator:oo,toStringTag:Nm}=Symbol,so=(i=>o=>{const c=Jv.call(o);return i[c]||(i[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),$t=i=>(i=i.toLowerCase(),o=>so(o)===i),uo=i=>o=>typeof o===i,{isArray:pl}=Array,ul=uo("undefined");function gi(i){return i!==null&&!ul(i)&&i.constructor!==null&&!ul(i.constructor)&&Et(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const Hm=$t("ArrayBuffer");function Iv(i){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(i):o=i&&i.buffer&&Hm(i.buffer),o}const $v=uo("string"),Et=uo("function"),Um=uo("number"),xi=i=>i!==null&&typeof i=="object",Pv=i=>i===!0||i===!1,Fr=i=>{if(so(i)!=="object")return!1;const o=uc(i);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Nm in i)&&!(oo in i)},eb=i=>{if(!xi(i)||gi(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},tb=$t("Date"),ab=$t("File"),nb=$t("Blob"),lb=$t("FileList"),ib=i=>xi(i)&&Et(i.pipe),rb=i=>{let o;return i&&(typeof FormData=="function"&&i instanceof FormData||Et(i.append)&&((o=so(i))==="formdata"||o==="object"&&Et(i.toString)&&i.toString()==="[object FormData]"))},ob=$t("URLSearchParams"),[sb,ub,cb,db]=["ReadableStream","Request","Response","Headers"].map($t),fb=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vi(i,o,{allOwnKeys:c=!1}={}){if(i===null||typeof i>"u")return;let s,d;if(typeof i!="object"&&(i=[i]),pl(i))for(s=0,d=i.length;s<d;s++)o.call(null,i[s],s,i);else{if(gi(i))return;const p=c?Object.getOwnPropertyNames(i):Object.keys(i),h=p.length;let x;for(s=0;s<h;s++)x=p[s],o.call(null,i[x],x,i)}}function Lm(i,o){if(gi(i))return null;o=o.toLowerCase();const c=Object.keys(i);let s=c.length,d;for(;s-- >0;)if(d=c[s],o===d.toLowerCase())return d;return null}const vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qm=i=>!ul(i)&&i!==vn;function Iu(){const{caseless:i,skipUndefined:o}=qm(this)&&this||{},c={},s=(d,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const h=i&&Lm(c,p)||p;Fr(c[h])&&Fr(d)?c[h]=Iu(c[h],d):Fr(d)?c[h]=Iu({},d):pl(d)?c[h]=d.slice():(!o||!ul(d))&&(c[h]=d)};for(let d=0,p=arguments.length;d<p;d++)arguments[d]&&vi(arguments[d],s);return c}const pb=(i,o,c,{allOwnKeys:s}={})=>(vi(o,(d,p)=>{c&&Et(d)?Object.defineProperty(i,p,{value:Mm(d,c),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,p,{value:d,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),i),hb=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),mb=(i,o,c,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}),c&&Object.assign(i.prototype,c)},yb=(i,o,c,s)=>{let d,p,h;const x={};if(o=o||{},i==null)return o;do{for(d=Object.getOwnPropertyNames(i),p=d.length;p-- >0;)h=d[p],(!s||s(h,i,o))&&!x[h]&&(o[h]=i[h],x[h]=!0);i=c!==!1&&uc(i)}while(i&&(!c||c(i,o))&&i!==Object.prototype);return o},gb=(i,o,c)=>{i=String(i),(c===void 0||c>i.length)&&(c=i.length),c-=o.length;const s=i.indexOf(o,c);return s!==-1&&s===c},xb=i=>{if(!i)return null;if(pl(i))return i;let o=i.length;if(!Um(o))return null;const c=new Array(o);for(;o-- >0;)c[o]=i[o];return c},vb=(i=>o=>i&&o instanceof i)(typeof Uint8Array<"u"&&uc(Uint8Array)),bb=(i,o)=>{const s=(i&&i[oo]).call(i);let d;for(;(d=s.next())&&!d.done;){const p=d.value;o.call(i,p[0],p[1])}},Sb=(i,o)=>{let c;const s=[];for(;(c=i.exec(o))!==null;)s.push(c);return s},jb=$t("HTMLFormElement"),Rb=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,s,d){return s.toUpperCase()+d}),Gh=(({hasOwnProperty:i})=>(o,c)=>i.call(o,c))(Object.prototype),Eb=$t("RegExp"),Gm=(i,o)=>{const c=Object.getOwnPropertyDescriptors(i),s={};vi(c,(d,p)=>{let h;(h=o(d,p,i))!==!1&&(s[p]=h||d)}),Object.defineProperties(i,s)},Tb=i=>{Gm(i,(o,c)=>{if(Et(i)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const s=i[c];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 '"+c+"'")})}})},Ab=(i,o)=>{const c={},s=d=>{d.forEach(p=>{c[p]=!0})};return pl(i)?s(i):s(String(i).split(o)),c},zb=()=>{},Cb=(i,o)=>i!=null&&Number.isFinite(i=+i)?i:o;function wb(i){return!!(i&&Et(i.append)&&i[Nm]==="FormData"&&i[oo])}const Db=i=>{const o=new Array(10),c=(s,d)=>{if(xi(s)){if(o.indexOf(s)>=0)return;if(gi(s))return s;if(!("toJSON"in s)){o[d]=s;const p=pl(s)?[]:{};return vi(s,(h,x)=>{const v=c(h,d+1);!ul(v)&&(p[x]=v)}),o[d]=void 0,p}}return s};return c(i,0)},_b=$t("AsyncFunction"),kb=i=>i&&(xi(i)||Et(i))&&Et(i.then)&&Et(i.catch),Ym=((i,o)=>i?setImmediate:o?((c,s)=>(vn.addEventListener("message",({source:d,data:p})=>{d===vn&&p===c&&s.length&&s.shift()()},!1),d=>{s.push(d),vn.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",Et(vn.postMessage)),Ob=typeof queueMicrotask<"u"?queueMicrotask.bind(vn):typeof process<"u"&&process.nextTick||Ym,Bb=i=>i!=null&&Et(i[oo]),N={isArray:pl,isArrayBuffer:Hm,isBuffer:gi,isFormData:rb,isArrayBufferView:Iv,isString:$v,isNumber:Um,isBoolean:Pv,isObject:xi,isPlainObject:Fr,isEmptyObject:eb,isReadableStream:sb,isRequest:ub,isResponse:cb,isHeaders:db,isUndefined:ul,isDate:tb,isFile:ab,isBlob:nb,isRegExp:Eb,isFunction:Et,isStream:ib,isURLSearchParams:ob,isTypedArray:vb,isFileList:lb,forEach:vi,merge:Iu,extend:pb,trim:fb,stripBOM:hb,inherits:mb,toFlatObject:yb,kindOf:so,kindOfTest:$t,endsWith:gb,toArray:xb,forEachEntry:bb,matchAll:Sb,isHTMLForm:jb,hasOwnProperty:Gh,hasOwnProp:Gh,reduceDescriptors:Gm,freezeMethods:Tb,toObjectSet:Ab,toCamelCase:Rb,noop:zb,toFiniteNumber:Cb,findKey:Lm,global:vn,isContextDefined:qm,isSpecCompliantForm:wb,toJSONObject:Db,isAsyncFn:_b,isThenable:kb,setImmediate:Ym,asap:Ob,isIterable:Bb};let ue=class Vm extends Error{static from(o,c,s,d,p,h){const x=new Vm(o.message,c||o.code,s,d,p);return x.cause=o,x.name=o.name,h&&Object.assign(x,h),x}constructor(o,c,s,d,p){super(o),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),s&&(this.config=s),d&&(this.request=d),p&&(this.response=p,this.status=p.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}};ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ue.ERR_BAD_OPTION="ERR_BAD_OPTION";ue.ECONNABORTED="ECONNABORTED";ue.ETIMEDOUT="ETIMEDOUT";ue.ERR_NETWORK="ERR_NETWORK";ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ue.ERR_DEPRECATED="ERR_DEPRECATED";ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ue.ERR_CANCELED="ERR_CANCELED";ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ue.ERR_INVALID_URL="ERR_INVALID_URL";const Mb=null;function $u(i){return N.isPlainObject(i)||N.isArray(i)}function Xm(i){return N.endsWith(i,"[]")?i.slice(0,-2):i}function Yh(i,o,c){return i?i.concat(o).map(function(d,p){return d=Xm(d),!c&&p?"["+d+"]":d}).join(c?".":""):o}function Nb(i){return N.isArray(i)&&!i.some($u)}const Hb=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function co(i,o,c){if(!N.isObject(i))throw new TypeError("target must be an object");o=o||new FormData,c=N.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,_){return!N.isUndefined(_[U])});const s=c.metaTokens,d=c.visitor||b,p=c.dots,h=c.indexes,v=(c.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(d))throw new TypeError("visitor must be a function");function y(T){if(T===null)return"";if(N.isDate(T))return T.toISOString();if(N.isBoolean(T))return T.toString();if(!v&&N.isBlob(T))throw new ue("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(T)||N.isTypedArray(T)?v&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function b(T,U,_){let V=T;if(T&&!_&&typeof T=="object"){if(N.endsWith(U,"{}"))U=s?U:U.slice(0,-2),T=JSON.stringify(T);else if(N.isArray(T)&&Nb(T)||(N.isFileList(T)||N.endsWith(U,"[]"))&&(V=N.toArray(T)))return U=Xm(U),V.forEach(function(X,ie){!(N.isUndefined(X)||X===null)&&o.append(h===!0?Yh([U],ie,p):h===null?U:U+"[]",y(X))}),!1}return $u(T)?!0:(o.append(Yh(_,U,p),y(T)),!1)}const g=[],z=Object.assign(Hb,{defaultVisitor:b,convertValue:y,isVisitable:$u});function D(T,U){if(!N.isUndefined(T)){if(g.indexOf(T)!==-1)throw Error("Circular reference detected in "+U.join("."));g.push(T),N.forEach(T,function(V,K){(!(N.isUndefined(V)||V===null)&&d.call(o,V,N.isString(K)?K.trim():K,U,z))===!0&&D(V,U?U.concat(K):[K])}),g.pop()}}if(!N.isObject(i))throw new TypeError("data must be an object");return D(i),o}function Vh(i){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function cc(i,o){this._pairs=[],i&&co(i,this,o)}const Qm=cc.prototype;Qm.append=function(o,c){this._pairs.push([o,c])};Qm.toString=function(o){const c=o?function(s){return o.call(this,s,Vh)}:Vh;return this._pairs.map(function(d){return c(d[0])+"="+c(d[1])},"").join("&")};function Ub(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Zm(i,o,c){if(!o)return i;const s=c&&c.encode||Ub,d=N.isFunction(c)?{serialize:c}:c,p=d&&d.serialize;let h;if(p?h=p(o,d):h=N.isURLSearchParams(o)?o.toString():new cc(o,d).toString(s),h){const x=i.indexOf("#");x!==-1&&(i=i.slice(0,x)),i+=(i.indexOf("?")===-1?"?":"&")+h}return i}class Xh{constructor(){this.handlers=[]}use(o,c,s){return this.handlers.push({fulfilled:o,rejected:c,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){N.forEach(this.handlers,function(s){s!==null&&o(s)})}}const dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Lb=typeof URLSearchParams<"u"?URLSearchParams:cc,qb=typeof FormData<"u"?FormData:null,Gb=typeof Blob<"u"?Blob:null,Yb={isBrowser:!0,classes:{URLSearchParams:Lb,FormData:qb,Blob:Gb},protocols:["http","https","file","blob","url","data"]},fc=typeof window<"u"&&typeof document<"u",Pu=typeof navigator=="object"&&navigator||void 0,Vb=fc&&(!Pu||["ReactNative","NativeScript","NS"].indexOf(Pu.product)<0),Xb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qb=fc&&window.location.href||"http://localhost",Zb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fc,hasStandardBrowserEnv:Vb,hasStandardBrowserWebWorkerEnv:Xb,navigator:Pu,origin:Qb},Symbol.toStringTag,{value:"Module"})),mt={...Zb,...Yb};function Fb(i,o){return co(i,new mt.classes.URLSearchParams,{visitor:function(c,s,d,p){return mt.isNode&&N.isBuffer(c)?(this.append(s,c.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...o})}function Wb(i){return N.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Kb(i){const o={},c=Object.keys(i);let s;const d=c.length;let p;for(s=0;s<d;s++)p=c[s],o[p]=i[p];return o}function Fm(i){function o(c,s,d,p){let h=c[p++];if(h==="__proto__")return!0;const x=Number.isFinite(+h),v=p>=c.length;return h=!h&&N.isArray(d)?d.length:h,v?(N.hasOwnProp(d,h)?d[h]=[d[h],s]:d[h]=s,!x):((!d[h]||!N.isObject(d[h]))&&(d[h]=[]),o(c,s,d[h],p)&&N.isArray(d[h])&&(d[h]=Kb(d[h])),!x)}if(N.isFormData(i)&&N.isFunction(i.entries)){const c={};return N.forEachEntry(i,(s,d)=>{o(Wb(s),d,c,0)}),c}return null}function Jb(i,o,c){if(N.isString(i))try{return(o||JSON.parse)(i),N.trim(i)}catch(s){if(s.name!=="SyntaxError")throw s}return(c||JSON.stringify)(i)}const bi={transitional:dc,adapter:["xhr","http","fetch"],transformRequest:[function(o,c){const s=c.getContentType()||"",d=s.indexOf("application/json")>-1,p=N.isObject(o);if(p&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return d?JSON.stringify(Fm(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 c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let x;if(p){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Fb(o,this.formSerializer).toString();if((x=N.isFileList(o))||s.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return co(x?{"files[]":o}:o,v&&new v,this.formSerializer)}}return p||d?(c.setContentType("application/json",!1),Jb(o)):o}],transformResponse:[function(o){const c=this.transitional||bi.transitional,s=c&&c.forcedJSONParsing,d=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(s&&!this.responseType||d)){const h=!(c&&c.silentJSONParsing)&&d;try{return JSON.parse(o,this.parseReviver)}catch(x){if(h)throw x.name==="SyntaxError"?ue.from(x,ue.ERR_BAD_RESPONSE,this,null,this.response):x}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.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=>{bi.headers[i]={}});const Ib=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"]),$b=i=>{const o={};let c,s,d;return i&&i.split(`
12
+ `).forEach(function(h){d=h.indexOf(":"),c=h.substring(0,d).trim().toLowerCase(),s=h.substring(d+1).trim(),!(!c||o[c]&&Ib[c])&&(c==="set-cookie"?o[c]?o[c].push(s):o[c]=[s]:o[c]=o[c]?o[c]+", "+s:s)}),o},Qh=Symbol("internals");function ci(i){return i&&String(i).trim().toLowerCase()}function Wr(i){return i===!1||i==null?i:N.isArray(i)?i.map(Wr):String(i)}function Pb(i){const o=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=c.exec(i);)o[s[1]]=s[2];return o}const e2=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Gu(i,o,c,s,d){if(N.isFunction(s))return s.call(this,o,c);if(d&&(o=c),!!N.isString(o)){if(N.isString(s))return o.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(o)}}function t2(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,c,s)=>c.toUpperCase()+s)}function a2(i,o){const c=N.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(i,s+c,{value:function(d,p,h){return this[s].call(this,o,d,p,h)},configurable:!0})})}let Tt=class{constructor(o){o&&this.set(o)}set(o,c,s){const d=this;function p(x,v,y){const b=ci(v);if(!b)throw new Error("header name must be a non-empty string");const g=N.findKey(d,b);(!g||d[g]===void 0||y===!0||y===void 0&&d[g]!==!1)&&(d[g||v]=Wr(x))}const h=(x,v)=>N.forEach(x,(y,b)=>p(y,b,v));if(N.isPlainObject(o)||o instanceof this.constructor)h(o,c);else if(N.isString(o)&&(o=o.trim())&&!e2(o))h($b(o),c);else if(N.isObject(o)&&N.isIterable(o)){let x={},v,y;for(const b of o){if(!N.isArray(b))throw TypeError("Object iterator must return a key-value pair");x[y=b[0]]=(v=x[y])?N.isArray(v)?[...v,b[1]]:[v,b[1]]:b[1]}h(x,c)}else o!=null&&p(c,o,s);return this}get(o,c){if(o=ci(o),o){const s=N.findKey(this,o);if(s){const d=this[s];if(!c)return d;if(c===!0)return Pb(d);if(N.isFunction(c))return c.call(this,d,s);if(N.isRegExp(c))return c.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,c){if(o=ci(o),o){const s=N.findKey(this,o);return!!(s&&this[s]!==void 0&&(!c||Gu(this,this[s],s,c)))}return!1}delete(o,c){const s=this;let d=!1;function p(h){if(h=ci(h),h){const x=N.findKey(s,h);x&&(!c||Gu(s,s[x],x,c))&&(delete s[x],d=!0)}}return N.isArray(o)?o.forEach(p):p(o),d}clear(o){const c=Object.keys(this);let s=c.length,d=!1;for(;s--;){const p=c[s];(!o||Gu(this,this[p],p,o,!0))&&(delete this[p],d=!0)}return d}normalize(o){const c=this,s={};return N.forEach(this,(d,p)=>{const h=N.findKey(s,p);if(h){c[h]=Wr(d),delete c[p];return}const x=o?t2(p):String(p).trim();x!==p&&delete c[p],c[x]=Wr(d),s[x]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const c=Object.create(null);return N.forEach(this,(s,d)=>{s!=null&&s!==!1&&(c[d]=o&&N.isArray(s)?s.join(", "):s)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,c])=>o+": "+c).join(`
13
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...c){const s=new this(o);return c.forEach(d=>s.set(d)),s}static accessor(o){const s=(this[Qh]=this[Qh]={accessors:{}}).accessors,d=this.prototype;function p(h){const x=ci(h);s[x]||(a2(d,h),s[x]=!0)}return N.isArray(o)?o.forEach(p):p(o),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Tt.prototype,({value:i},o)=>{let c=o[0].toUpperCase()+o.slice(1);return{get:()=>i,set(s){this[c]=s}}});N.freezeMethods(Tt);function Yu(i,o){const c=this||bi,s=o||c,d=Tt.from(s.headers);let p=s.data;return N.forEach(i,function(x){p=x.call(c,p,d.normalize(),o?o.status:void 0)}),d.normalize(),p}function Wm(i){return!!(i&&i.__CANCEL__)}let Si=class extends ue{constructor(o,c,s){super(o??"canceled",ue.ERR_CANCELED,c,s),this.name="CanceledError",this.__CANCEL__=!0}};function Km(i,o,c){const s=c.config.validateStatus;!c.status||!s||s(c.status)?i(c):o(new ue("Request failed with status code "+c.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function n2(i){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return o&&o[1]||""}function l2(i,o){i=i||10;const c=new Array(i),s=new Array(i);let d=0,p=0,h;return o=o!==void 0?o:1e3,function(v){const y=Date.now(),b=s[p];h||(h=y),c[d]=v,s[d]=y;let g=p,z=0;for(;g!==d;)z+=c[g++],g=g%i;if(d=(d+1)%i,d===p&&(p=(p+1)%i),y-h<o)return;const D=b&&y-b;return D?Math.round(z*1e3/D):void 0}}function i2(i,o){let c=0,s=1e3/o,d,p;const h=(y,b=Date.now())=>{c=b,d=null,p&&(clearTimeout(p),p=null),i(...y)};return[(...y)=>{const b=Date.now(),g=b-c;g>=s?h(y,b):(d=y,p||(p=setTimeout(()=>{p=null,h(d)},s-g)))},()=>d&&h(d)]}const to=(i,o,c=3)=>{let s=0;const d=l2(50,250);return i2(p=>{const h=p.loaded,x=p.lengthComputable?p.total:void 0,v=h-s,y=d(v),b=h<=x;s=h;const g={loaded:h,total:x,progress:x?h/x:void 0,bytes:v,rate:y||void 0,estimated:y&&x&&b?(x-h)/y:void 0,event:p,lengthComputable:x!=null,[o?"download":"upload"]:!0};i(g)},c)},Zh=(i,o)=>{const c=i!=null;return[s=>o[0]({lengthComputable:c,total:i,loaded:s}),o[1]]},Fh=i=>(...o)=>N.asap(()=>i(...o)),r2=mt.hasStandardBrowserEnv?((i,o)=>c=>(c=new URL(c,mt.origin),i.protocol===c.protocol&&i.host===c.host&&(o||i.port===c.port)))(new URL(mt.origin),mt.navigator&&/(msie|trident)/i.test(mt.navigator.userAgent)):()=>!0,o2=mt.hasStandardBrowserEnv?{write(i,o,c,s,d,p,h){if(typeof document>"u")return;const x=[`${i}=${encodeURIComponent(o)}`];N.isNumber(c)&&x.push(`expires=${new Date(c).toUTCString()}`),N.isString(s)&&x.push(`path=${s}`),N.isString(d)&&x.push(`domain=${d}`),p===!0&&x.push("secure"),N.isString(h)&&x.push(`SameSite=${h}`),document.cookie=x.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 s2(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function u2(i,o){return o?i.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):i}function Jm(i,o,c){let s=!s2(o);return i&&(s||c==!1)?u2(i,o):o}const Wh=i=>i instanceof Tt?{...i}:i;function jn(i,o){o=o||{};const c={};function s(y,b,g,z){return N.isPlainObject(y)&&N.isPlainObject(b)?N.merge.call({caseless:z},y,b):N.isPlainObject(b)?N.merge({},b):N.isArray(b)?b.slice():b}function d(y,b,g,z){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y,g,z)}else return s(y,b,g,z)}function p(y,b){if(!N.isUndefined(b))return s(void 0,b)}function h(y,b){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y)}else return s(void 0,b)}function x(y,b,g){if(g in o)return s(y,b);if(g in i)return s(void 0,y)}const v={url:p,method:p,data:p,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:x,headers:(y,b,g)=>d(Wh(y),Wh(b),g,!0)};return N.forEach(Object.keys({...i,...o}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const g=N.hasOwnProp(v,b)?v[b]:d,z=g(i[b],o[b],b);N.isUndefined(z)&&g!==x||(c[b]=z)}),c}const Im=i=>{const o=jn({},i);let{data:c,withXSRFToken:s,xsrfHeaderName:d,xsrfCookieName:p,headers:h,auth:x}=o;if(o.headers=h=Tt.from(h),o.url=Zm(Jm(o.baseURL,o.url,o.allowAbsoluteUrls),i.params,i.paramsSerializer),x&&h.set("Authorization","Basic "+btoa((x.username||"")+":"+(x.password?unescape(encodeURIComponent(x.password)):""))),N.isFormData(c)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(N.isFunction(c.getHeaders)){const v=c.getHeaders(),y=["content-type","content-length"];Object.entries(v).forEach(([b,g])=>{y.includes(b.toLowerCase())&&h.set(b,g)})}}if(mt.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(o)),s||s!==!1&&r2(o.url))){const v=d&&p&&o2.read(p);v&&h.set(d,v)}return o},c2=typeof XMLHttpRequest<"u",d2=c2&&function(i){return new Promise(function(c,s){const d=Im(i);let p=d.data;const h=Tt.from(d.headers).normalize();let{responseType:x,onUploadProgress:v,onDownloadProgress:y}=d,b,g,z,D,T;function U(){D&&D(),T&&T(),d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}let _=new XMLHttpRequest;_.open(d.method.toUpperCase(),d.url,!0),_.timeout=d.timeout;function V(){if(!_)return;const X=Tt.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),fe={data:!x||x==="text"||x==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:X,config:i,request:_};Km(function(J){c(J),U()},function(J){s(J),U()},fe),_=null}"onloadend"in _?_.onloadend=V:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(V)},_.onabort=function(){_&&(s(new ue("Request aborted",ue.ECONNABORTED,i,_)),_=null)},_.onerror=function(ie){const fe=ie&&ie.message?ie.message:"Network Error",xe=new ue(fe,ue.ERR_NETWORK,i,_);xe.event=ie||null,s(xe),_=null},_.ontimeout=function(){let ie=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const fe=d.transitional||dc;d.timeoutErrorMessage&&(ie=d.timeoutErrorMessage),s(new ue(ie,fe.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,i,_)),_=null},p===void 0&&h.setContentType(null),"setRequestHeader"in _&&N.forEach(h.toJSON(),function(ie,fe){_.setRequestHeader(fe,ie)}),N.isUndefined(d.withCredentials)||(_.withCredentials=!!d.withCredentials),x&&x!=="json"&&(_.responseType=d.responseType),y&&([z,T]=to(y,!0),_.addEventListener("progress",z)),v&&_.upload&&([g,D]=to(v),_.upload.addEventListener("progress",g),_.upload.addEventListener("loadend",D)),(d.cancelToken||d.signal)&&(b=X=>{_&&(s(!X||X.type?new Si(null,i,_):X),_.abort(),_=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b)));const K=n2(d.url);if(K&&mt.protocols.indexOf(K)===-1){s(new ue("Unsupported protocol "+K+":",ue.ERR_BAD_REQUEST,i));return}_.send(p||null)})},f2=(i,o)=>{const{length:c}=i=i?i.filter(Boolean):[];if(o||c){let s=new AbortController,d;const p=function(y){if(!d){d=!0,x();const b=y instanceof Error?y:this.reason;s.abort(b instanceof ue?b:new Si(b instanceof Error?b.message:b))}};let h=o&&setTimeout(()=>{h=null,p(new ue(`timeout of ${o}ms exceeded`,ue.ETIMEDOUT))},o);const x=()=>{i&&(h&&clearTimeout(h),h=null,i.forEach(y=>{y.unsubscribe?y.unsubscribe(p):y.removeEventListener("abort",p)}),i=null)};i.forEach(y=>y.addEventListener("abort",p));const{signal:v}=s;return v.unsubscribe=()=>N.asap(x),v}},p2=function*(i,o){let c=i.byteLength;if(c<o){yield i;return}let s=0,d;for(;s<c;)d=s+o,yield i.slice(s,d),s=d},h2=async function*(i,o){for await(const c of m2(i))yield*p2(c,o)},m2=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const o=i.getReader();try{for(;;){const{done:c,value:s}=await o.read();if(c)break;yield s}}finally{await o.cancel()}},Kh=(i,o,c,s)=>{const d=h2(i,o);let p=0,h,x=v=>{h||(h=!0,s&&s(v))};return new ReadableStream({async pull(v){try{const{done:y,value:b}=await d.next();if(y){x(),v.close();return}let g=b.byteLength;if(c){let z=p+=g;c(z)}v.enqueue(new Uint8Array(b))}catch(y){throw x(y),y}},cancel(v){return x(v),d.return()}},{highWaterMark:2})},Jh=64*1024,{isFunction:Yr}=N,y2=(({Request:i,Response:o})=>({Request:i,Response:o}))(N.global),{ReadableStream:Ih,TextEncoder:$h}=N.global,Ph=(i,...o)=>{try{return!!i(...o)}catch{return!1}},g2=i=>{i=N.merge.call({skipUndefined:!0},y2,i);const{fetch:o,Request:c,Response:s}=i,d=o?Yr(o):typeof fetch=="function",p=Yr(c),h=Yr(s);if(!d)return!1;const x=d&&Yr(Ih),v=d&&(typeof $h=="function"?(T=>U=>T.encode(U))(new $h):async T=>new Uint8Array(await new c(T).arrayBuffer())),y=p&&x&&Ph(()=>{let T=!1;const U=new c(mt.origin,{body:new Ih,method:"POST",get duplex(){return T=!0,"half"}}).headers.has("Content-Type");return T&&!U}),b=h&&x&&Ph(()=>N.isReadableStream(new s("").body)),g={stream:b&&(T=>T.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!g[T]&&(g[T]=(U,_)=>{let V=U&&U[T];if(V)return V.call(U);throw new ue(`Response type '${T}' is not supported`,ue.ERR_NOT_SUPPORT,_)})});const z=async T=>{if(T==null)return 0;if(N.isBlob(T))return T.size;if(N.isSpecCompliantForm(T))return(await new c(mt.origin,{method:"POST",body:T}).arrayBuffer()).byteLength;if(N.isArrayBufferView(T)||N.isArrayBuffer(T))return T.byteLength;if(N.isURLSearchParams(T)&&(T=T+""),N.isString(T))return(await v(T)).byteLength},D=async(T,U)=>{const _=N.toFiniteNumber(T.getContentLength());return _??z(U)};return async T=>{let{url:U,method:_,data:V,signal:K,cancelToken:X,timeout:ie,onDownloadProgress:fe,onUploadProgress:xe,responseType:J,headers:_e,withCredentials:Me="same-origin",fetchOptions:ot}=Im(T),$e=o||fetch;J=J?(J+"").toLowerCase():"text";let F=f2([K,X&&X.toAbortSignal()],ie),he=null;const Se=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let ke;try{if(xe&&y&&_!=="get"&&_!=="head"&&(ke=await D(_e,V))!==0){let S=new c(U,{method:"POST",body:V,duplex:"half"}),M;if(N.isFormData(V)&&(M=S.headers.get("content-type"))&&_e.setContentType(M),S.body){const[Y,Q]=Zh(ke,to(Fh(xe)));V=Kh(S.body,Jh,Y,Q)}}N.isString(Me)||(Me=Me?"include":"omit");const B=p&&"credentials"in c.prototype,Z={...ot,signal:F,method:_.toUpperCase(),headers:_e.normalize().toJSON(),body:V,duplex:"half",credentials:B?Me:void 0};he=p&&new c(U,Z);let ae=await(p?$e(he,ot):$e(U,Z));const Ae=b&&(J==="stream"||J==="response");if(b&&(fe||Ae&&Se)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=ae[P]});const M=N.toFiniteNumber(ae.headers.get("content-length")),[Y,Q]=fe&&Zh(M,to(Fh(fe),!0))||[];ae=new s(Kh(ae.body,Jh,Y,()=>{Q&&Q(),Se&&Se()}),S)}J=J||"text";let W=await g[N.findKey(g,J)||"text"](ae,T);return!Ae&&Se&&Se(),await new Promise((S,M)=>{Km(S,M,{data:W,headers:Tt.from(ae.headers),status:ae.status,statusText:ae.statusText,config:T,request:he})})}catch(B){throw Se&&Se(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,T,he,B&&B.response),{cause:B.cause||B}):ue.from(B,B&&B.code,T,he,B&&B.response)}}},x2=new Map,$m=i=>{let o=i&&i.env||{};const{fetch:c,Request:s,Response:d}=o,p=[s,d,c];let h=p.length,x=h,v,y,b=x2;for(;x--;)v=p[x],y=b.get(v),y===void 0&&b.set(v,y=x?new Map:g2(o)),b=y;return y};$m();const pc={http:Mb,xhr:d2,fetch:{get:$m}};N.forEach(pc,(i,o)=>{if(i){try{Object.defineProperty(i,"name",{value:o})}catch{}Object.defineProperty(i,"adapterName",{value:o})}});const em=i=>`- ${i}`,v2=i=>N.isFunction(i)||i===null||i===!1;function b2(i,o){i=N.isArray(i)?i:[i];const{length:c}=i;let s,d;const p={};for(let h=0;h<c;h++){s=i[h];let x;if(d=s,!v2(s)&&(d=pc[(x=String(s)).toLowerCase()],d===void 0))throw new ue(`Unknown adapter '${x}'`);if(d&&(N.isFunction(d)||(d=d.get(o))))break;p[x||"#"+h]=d}if(!d){const h=Object.entries(p).map(([v,y])=>`adapter ${v} `+(y===!1?"is not supported by the environment":"is not available in the build"));let x=c?h.length>1?`since :
14
+ `+h.map(em).join(`
15
+ `):" "+em(h[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return d}const Pm={getAdapter:b2,adapters:pc};function Vu(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new Si(null,i)}function tm(i){return Vu(i),i.headers=Tt.from(i.headers),i.data=Yu.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),Pm.getAdapter(i.adapter||bi.adapter,i)(i).then(function(s){return Vu(i),s.data=Yu.call(i,i.transformResponse,s),s.headers=Tt.from(s.headers),s},function(s){return Wm(s)||(Vu(i),s&&s.response&&(s.response.data=Yu.call(i,i.transformResponse,s.response),s.response.headers=Tt.from(s.response.headers))),Promise.reject(s)})}const e0="1.13.5",fo={};["object","boolean","number","function","string","symbol"].forEach((i,o)=>{fo[i]=function(s){return typeof s===i||"a"+(o<1?"n ":" ")+i}});const am={};fo.transitional=function(o,c,s){function d(p,h){return"[Axios v"+e0+"] Transitional option '"+p+"'"+h+(s?". "+s:"")}return(p,h,x)=>{if(o===!1)throw new ue(d(h," has been removed"+(c?" in "+c:"")),ue.ERR_DEPRECATED);return c&&!am[h]&&(am[h]=!0,console.warn(d(h," has been deprecated since v"+c+" and will be removed in the near future"))),o?o(p,h,x):!0}};fo.spelling=function(o){return(c,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function S2(i,o,c){if(typeof i!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const s=Object.keys(i);let d=s.length;for(;d-- >0;){const p=s[d],h=o[p];if(h){const x=i[p],v=x===void 0||h(x,p,i);if(v!==!0)throw new ue("option "+p+" must be "+v,ue.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new ue("Unknown option "+p,ue.ERR_BAD_OPTION)}}const Kr={assertOptions:S2,validators:fo},Ft=Kr.validators;let bn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Xh,response:new Xh}}async request(o,c){try{return await this._request(o,c)}catch(s){if(s instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const p=d.stack?d.stack.replace(/^.+\n/,""):"";try{s.stack?p&&!String(s.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(s.stack+=`
16
+ `+p):s.stack=p}catch{}}throw s}}_request(o,c){typeof o=="string"?(c=c||{},c.url=o):c=o||{},c=jn(this.defaults,c);const{transitional:s,paramsSerializer:d,headers:p}=c;s!==void 0&&Kr.assertOptions(s,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean),legacyInterceptorReqResOrdering:Ft.transitional(Ft.boolean)},!1),d!=null&&(N.isFunction(d)?c.paramsSerializer={serialize:d}:Kr.assertOptions(d,{encode:Ft.function,serialize:Ft.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),Kr.assertOptions(c,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let h=p&&N.merge(p.common,p[c.method]);p&&N.forEach(["delete","get","head","post","put","patch","common"],T=>{delete p[T]}),c.headers=Tt.concat(h,p);const x=[];let v=!0;this.interceptors.request.forEach(function(U){if(typeof U.runWhen=="function"&&U.runWhen(c)===!1)return;v=v&&U.synchronous;const _=c.transitional||dc;_&&_.legacyInterceptorReqResOrdering?x.unshift(U.fulfilled,U.rejected):x.push(U.fulfilled,U.rejected)});const y=[];this.interceptors.response.forEach(function(U){y.push(U.fulfilled,U.rejected)});let b,g=0,z;if(!v){const T=[tm.bind(this),void 0];for(T.unshift(...x),T.push(...y),z=T.length,b=Promise.resolve(c);g<z;)b=b.then(T[g++],T[g++]);return b}z=x.length;let D=c;for(;g<z;){const T=x[g++],U=x[g++];try{D=T(D)}catch(_){U.call(this,_);break}}try{b=tm.call(this,D)}catch(T){return Promise.reject(T)}for(g=0,z=y.length;g<z;)b=b.then(y[g++],y[g++]);return b}getUri(o){o=jn(this.defaults,o);const c=Jm(o.baseURL,o.url,o.allowAbsoluteUrls);return Zm(c,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){bn.prototype[o]=function(c,s){return this.request(jn(s||{},{method:o,url:c,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(o){function c(s){return function(p,h,x){return this.request(jn(x||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:p,data:h}))}}bn.prototype[o]=c(),bn.prototype[o+"Form"]=c(!0)});let j2=class t0{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(p){c=p});const s=this;this.promise.then(d=>{if(!s._listeners)return;let p=s._listeners.length;for(;p-- >0;)s._listeners[p](d);s._listeners=null}),this.promise.then=d=>{let p;const h=new Promise(x=>{s.subscribe(x),p=x}).then(d);return h.cancel=function(){s.unsubscribe(p)},h},o(function(p,h,x){s.reason||(s.reason=new Si(p,h,x),c(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const c=this._listeners.indexOf(o);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const o=new AbortController,c=s=>{o.abort(s)};return this.subscribe(c),o.signal.unsubscribe=()=>this.unsubscribe(c),o.signal}static source(){let o;return{token:new t0(function(d){o=d}),cancel:o}}};function R2(i){return function(c){return i.apply(null,c)}}function E2(i){return N.isObject(i)&&i.isAxiosError===!0}const ec={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(ec).forEach(([i,o])=>{ec[o]=i});function a0(i){const o=new bn(i),c=Mm(bn.prototype.request,o);return N.extend(c,bn.prototype,o,{allOwnKeys:!0}),N.extend(c,o,null,{allOwnKeys:!0}),c.create=function(d){return a0(jn(i,d))},c}const Ie=a0(bi);Ie.Axios=bn;Ie.CanceledError=Si;Ie.CancelToken=j2;Ie.isCancel=Wm;Ie.VERSION=e0;Ie.toFormData=co;Ie.AxiosError=ue;Ie.Cancel=Ie.CanceledError;Ie.all=function(o){return Promise.all(o)};Ie.spread=R2;Ie.isAxiosError=E2;Ie.mergeConfig=jn;Ie.AxiosHeaders=Tt;Ie.formToJSON=i=>Fm(N.isHTMLForm(i)?new FormData(i):i);Ie.getAdapter=Pm.getAdapter;Ie.HttpStatusCode=ec;Ie.default=Ie;const{Axios:W2,AxiosError:K2,CanceledError:J2,isCancel:I2,CancelToken:$2,VERSION:P2,all:eS,Cancel:tS,isAxiosError:aS,spread:nS,toFormData:lS,AxiosHeaders:iS,HttpStatusCode:rS,formToJSON:oS,getAdapter:sS,mergeConfig:uS}=Ie,n0="/api",Le=Ie.create({baseURL:n0,headers:{"Content-Type":"application/json"}});Le.interceptors.request.use(i=>{const o=localStorage.getItem("samarthya_token");return o&&(i.headers.Authorization=`Bearer ${o}`),i});const ol={register:i=>Le.post("/auth/register",i),login:i=>Le.post("/auth/login",i),demoLogin:()=>Le.post("/auth/demo"),getProfile:()=>Le.get("/auth/profile"),updateProfile:i=>Le.put("/auth/profile",i)},di={sendMessage:i=>Le.post("/chat/message",i),getConversations:()=>Le.get("/chat/conversations"),getConversation:i=>Le.get(`/chat/conversations/${i}`),deleteConversation:i=>Le.delete(`/chat/conversations/${i}`),togglePin:i=>Le.patch(`/chat/conversations/${i}/pin`)},Jr={getLogs:i=>Le.get("/audit/logs",{params:i}),getStats:()=>Le.get("/audit/stats"),rollback:i=>Le.post(`/audit/rollback/${i}`)},Ir={getAll:()=>Le.get("/tools"),getPacks:()=>Le.get("/tools/packs"),getPackTools:i=>Le.get(`/tools/packs/${i}`)},T2={analyze:(i,o)=>Le.post("/screen/analyze",{image:i,prompt:o}),getSupported:()=>Le.get("/screen/supported")},gn={list:i=>Le.get("/files/list",{params:{path:i}}),read:i=>Le.get("/files/read",{params:{path:i}}),download:i=>`${n0}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,o)=>Le.post("/files/mkdir",{name:i,parentPath:o}),upload:(i,o,c)=>Le.post("/files/upload",{filename:i,content:o,parentPath:c}),deleteFile:i=>Le.delete("/files/delete",{params:{path:i}}),getStats:()=>Le.get("/files/stats")},Xu={getStatus:()=>Le.get("/platform/status"),getJobs:()=>Le.get("/platform/jobs"),emergencyStop:()=>Le.post("/platform/emergency-stop")},A2=[{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"}],z2=i=>{if(!i)return"";const o=new Date(i);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},C2=i=>{const o={};return i.forEach(c=>{const s=c.createdAt?new Date(c.createdAt):new Date;if(isNaN(s))return;const d=new Date,p=new Date;p.setDate(d.getDate()-1);let h;s.toDateString()===d.toDateString()?h="Today":s.toDateString()===p.toDateString()?h="Yesterday":h=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[h]||(o[h]=[]),o[h].push(c)}),o},nm=i=>i?i.split(`
17
+ `).map((o,c)=>{const s=[];let d=o;const p=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let h;for(;(h=p.exec(d))!==null;){if(h.index>0){const x=d.substring(0,h.index);s.push(u.jsx("span",{children:x.replace(/\*\*/g,"")},`t-${h.index}`))}s.push(u.jsx("a",{href:h[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:h[1].replace(/\*\*/g,"")},`l-${h.index}`)),d=d.substring(h.index+h[0].length)}if(d.length>0){let x=d;x.startsWith("- ")&&(x="• "+x.substring(2)),s.push(u.jsx("span",{children:x.replace(/\*\*/g,"")},`end-${c}`))}return u.jsxs(ao.Fragment,{children:[s.length>0?s:u.jsx("span",{children:o.replace(/\*\*/g,"")}),u.jsx("br",{})]},c)}):null;function lm({user:i}){const[o,c]=E.useState([]),[s,d]=E.useState(null),[p,h]=E.useState([]),[x,v]=E.useState(""),[y,b]=E.useState(!1),[g,z]=E.useState(!1),[D,T]=E.useState(!1),[U,_]=E.useState(!1),[V,K]=E.useState(null),X=E.useRef(null),ie=E.useRef(null),[fe,xe]=E.useState(""),J=E.useRef(null),_e=E.useRef(null),Me=E.useRef(null);E.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const ot=W=>{const S=W||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const M=window.AudioContext||window.webkitAudioContext;if(M){X.current=new M;const Y=X.current.createOscillator(),Q=X.current.createGain();Y.type="triangle",Y.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{ie.current&&X.current&&(Y.frequency.setValueAtTime(800,X.current.currentTime),Y.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),Q.gain.value=.1,Y.connect(Q),Q.connect(X.current.destination),Y.start(),ie.current=Y}K(S)},$e=()=>{K(null),ie.current&&(ie.current.stop(),ie.current=null),X.current&&(X.current.close(),X.current=null)};E.useEffect(()=>(Se(),F(),()=>{J.current&&J.current.abort()}),[]),E.useEffect(()=>{_e.current?.scrollIntoView({behavior:"smooth"})},[p]);const F=()=>{const W=window.SpeechRecognition||window.webkitSpeechRecognition;if(!W)return;_(!0);const S=new W;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=M=>{let Y="";for(let Q=0;Q<M.results.length;Q++)Y+=M.results[Q][0].transcript;xe(Y),v(Y),M.results[M.results.length-1].isFinal&&setTimeout(()=>{T(!1),Y.trim()&&B(Y.trim())},500)},S.onerror=M=>{console.error("Voice error:",M.error),T(!1)},S.onend=()=>{T(!1)},J.current=S},he=()=>{J.current&&(D?(J.current.stop(),T(!1)):(xe(""),J.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",J.current.start(),T(!0)))},Se=async()=>{try{const W=await di.getConversations();c(W.data.conversations||[])}catch{console.error("Failed to load conversations")}},ke=async W=>{try{const S=await di.getConversation(W);d(S.data.conversation),h(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},B=async W=>{const S=W||x.trim();if(!S||y)return;v("");const M={role:"user",content:S,createdAt:new Date};h(Y=>[...Y,M]),b(!0),z(!0);try{const Q=(await di.sendMessage({message:S,conversationId:s?._id})).data;s||(d({_id:Q.conversationId}),Se());const P={role:"assistant",content:Q.message.content,toolCalls:Q.message.toolCalls,sensitiveDataWarnings:Q.message.sensitiveDataWarnings,createdAt:new Date};h(ce=>[...ce,P]),P.toolCalls&&P.toolCalls.forEach(ce=>{if(ce.toolName==="reminder_set"&&ce.notificationParams){const{delayMs:ze,message:st}=ce.notificationParams;setTimeout(()=>{ot(st)},ze||5e3)}})}catch{h(Q=>[...Q,{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),z(!1),Me.current?.focus()}},Z=()=>{d(null),h([]),Me.current?.focus()},ae=async(W,S)=>{S.stopPropagation();try{await di.deleteConversation(W),s?._id===W&&Z(),Se()}catch{console.error("Delete failed")}},Ae=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),B())};return u.jsxs("div",{style:$.container,children:[V&&u.jsx("div",{style:$.alarmPopupLayer,children:u.jsxs("div",{style:$.alarmBox,children:[u.jsx("div",{style:$.alarmIcon,children:"⏰"}),u.jsxs("div",{style:$.alarmContent,children:[u.jsx("h4",{style:$.alarmTitle,children:"Reminder"}),u.jsx("p",{style:$.alarmMessage,children:V})]}),u.jsx("button",{onClick:$e,style:$.alarmStopBtn,children:"Stop Alarm"})]})}),u.jsxs("div",{style:$.convSidebar,children:[u.jsxs("div",{style:$.convHeader,children:[u.jsx("h3",{style:$.convTitle,children:"💬 Conversations"}),u.jsx("button",{onClick:Z,style:$.newBtn,title:"New Chat",children:u.jsx(jv,{size:18})})]}),u.jsxs("div",{style:$.convList,children:[o.map(W=>u.jsxs("button",{onClick:()=>ke(W._id),style:{...$.convItem,...s?._id===W._id?$.convItemActive:{}},children:[u.jsx("span",{style:$.convItemTitle,children:W.title}),u.jsx("div",{style:$.convActions,children:u.jsx("button",{onClick:S=>ae(W._id,S),style:$.convDelBtn,children:u.jsx(km,{size:14})})})]},W._id)),o.length===0&&u.jsx("p",{style:$.emptyConv,children:i?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),u.jsxs("div",{style:$.chatArea,children:[D&&u.jsxs("div",{style:$.voiceOverlay,children:[u.jsx("div",{style:$.voicePulseRing,children:u.jsx(Ju,{size:36,color:"#FF9933"})}),u.jsx("p",{style:$.voiceText,children:fe||(i?.language==="hindi"?"बोलिए...":i?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),u.jsx("p",{style:$.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),u.jsxs("button",{onClick:he,style:$.voiceStopBtn,children:[u.jsx(mv,{size:18})," Stop Listening"]})]}),u.jsxs("div",{style:$.messages,children:[p.length===0&&u.jsxs("div",{style:$.welcome,children:[u.jsx("div",{style:$.welcomeLogo,children:"स"}),u.jsxs("h2",{style:$.welcomeTitle,children:[i?.language==="english"?"Hello":"Namaste",", ",i?.name||"User","! 🙏"]}),u.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?"}),u.jsx("div",{style:$.quickActions,children:A2.map((W,S)=>u.jsxs("button",{onClick:()=>B(i?.language==="english"?W.textEn:W.text),style:$.quickActionBtn,children:[u.jsx("span",{style:$.quickEmoji,children:W.emoji}),u.jsx("span",{children:i?.language==="english"?W.textEn:W.text})]},S))})]}),Object.entries(C2(p)).map(([W,S],M)=>u.jsxs(ao.Fragment,{children:[u.jsx("div",{style:$.dateDivider,children:u.jsx("span",{style:$.dateBadge,children:W})}),S.map((Y,Q)=>u.jsxs("div",{style:{...$.message,...Y.role==="user"?$.userMessage:$.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[u.jsx("div",{style:Y.role==="user"?$.userAvatar:$.assistantAvatar,children:Y.role==="user"?u.jsx(Bm,{size:16}):u.jsx(Mh,{size:16})}),u.jsxs("div",{style:$.messageContent,children:[Y.sensitiveDataWarnings?.length>0&&u.jsxs("div",{style:$.warningBanner,children:[u.jsx(Om,{size:14}),u.jsxs("span",{children:["⚠️ Sensitive data detected: ",Y.sensitiveDataWarnings.map(P=>P.type).join(", ")]})]}),u.jsx("div",{style:$.messageText,children:nm(Y.content)}),Y.toolCalls?.length>0&&u.jsx("div",{style:$.toolCalls,children:Y.toolCalls.map((P,ce)=>u.jsxs("div",{style:$.toolCall,children:[u.jsxs("div",{style:$.toolCallHeader,children:[u.jsxs("span",{style:{...$.toolBadge,background:P.status==="completed"?"rgba(16,185,129,0.15)":P.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:P.status==="completed"?"#10b981":P.status==="blocked"?"#ef4444":"#f59e0b"},children:[P.status==="completed"?"✅":P.status==="blocked"?"🚫":"⏳"," ",P.toolName]}),u.jsxs("span",{style:$.toolRisk,children:["Risk: ",P.riskLevel]})]}),P.result&&u.jsx("div",{style:$.toolResult,children:nm(P.result)})]},ce))}),u.jsx("div",{style:{...$.msgTime,color:Y.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:z2(Y.createdAt)})]})]},`msg-${M}-${Q}`))]},`group-${M}`)),g&&u.jsxs("div",{style:{...$.message,...$.assistantMessage},children:[u.jsx("div",{style:$.assistantAvatar,children:u.jsx(Mh,{size:16})}),u.jsxs("div",{style:$.typingIndicator,children:[u.jsx("span",{style:{...$.typingDot,animationDelay:"0s"}}),u.jsx("span",{style:{...$.typingDot,animationDelay:"0.2s"}}),u.jsx("span",{style:{...$.typingDot,animationDelay:"0.4s"}})]})]}),u.jsx("div",{ref:_e})]}),u.jsxs("div",{style:$.inputArea,children:[u.jsxs("div",{style:$.inputWrap,children:[u.jsx("textarea",{ref:Me,value:x,onChange:W=>v(W.target.value),onKeyDown:Ae,placeholder:i?.language==="hindi"?"यहां टाइप करें...":i?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:$.textarea,rows:1,disabled:y}),u.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:W=>{W&&(W._screenInput=!0)},id:"screenInput",onChange:async W=>{const S=W.target.files?.[0];if(S){b(!0),h(M=>[...M,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),z(!0);try{const M=new FileReader;M.onload=async()=>{const Y=M.result,Q=await T2.analyze(Y,x.trim()||"Is screenshot mein kya hai? Next step batao.");h(P=>[...P,{role:"assistant",content:`👁️ **Screen Analysis:**
18
+
19
+ ${Q.data.analysis.content}`,createdAt:new Date}]),v("")},M.readAsDataURL(S)}catch{h(Y=>[...Y,{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),z(!1),W.target.value=""}}}}),u.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:$.voiceBtn,title:"Screenshot upload for AI analysis",children:u.jsx(zx,{size:20})}),U&&u.jsx("button",{onClick:he,style:{...$.voiceBtn,...D?$.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:u.jsx(Ju,{size:20})}),u.jsx("button",{onClick:()=>B(),disabled:y||!x.trim(),style:{...$.sendBtn,opacity:y||!x.trim()?.5:1},children:y?u.jsx(cv,{size:20,style:{animation:"spin 1s linear infinite"}}):u.jsx(Dv,{size:20})})]}),u.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 w2({user:i}){const o=io(),[c,s]=E.useState(null),[d,p]=E.useState(null),[h,x]=E.useState([]),[v,y]=E.useState([]),[b,g]=E.useState([]),[z,D]=E.useState(!0);E.useEffect(()=>{U();const V=setInterval(()=>{T()},15e3);return()=>clearInterval(V)},[]);const T=async()=>{try{const[V,K]=await Promise.all([Xu.getStatus().catch(()=>({data:{status:null}})),Xu.getJobs().catch(()=>({data:{jobs:[]}}))]);p(V.data.status),x(K.data.jobs||[])}catch{}},U=async()=>{D(!0);try{const[V,K,X]=await Promise.all([di.getConversations().catch(()=>({data:{conversations:[]}})),Ir.getPacks().catch(()=>({data:{packs:[]}})),Jr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);y(V.data.conversations?.slice(0,5)||[]),g(K.data.packs||[]),s(X.data.stats),await T()}catch(V){console.error("Dashboard load error:",V)}finally{D(!1)}},_=V=>{if(!V)return"0h 0m";const K=Math.floor(V/3600),X=Math.floor(V%3600/60);return`${K}h ${X}m`};return z?u.jsx("div",{style:{...ee.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:u.jsx(Zr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):u.jsxs("div",{style:ee.container,children:[u.jsxs("div",{style:ee.header,children:[u.jsxs("div",{children:[u.jsx("h1",{style:ee.title,children:"Control Center"}),u.jsxs("div",{style:ee.systemBadge,children:[u.jsx(kv,{size:14})," System Online • OS: ",d?.osName||"SamarthyaOS"]})]}),u.jsxs("div",{style:ee.headerActions,children:[u.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await Xu.emergencyStop(),T(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:ee.dangerBtn,title:"Emergency Kill Switch",children:[u.jsx(Uh,{size:18})," Kill Switch"]}),u.jsxs("button",{onClick:()=>o("/tools"),style:ee.secondaryBtn,children:[u.jsx(eo,{size:18})," Modules"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:ee.newChatBtn,children:[u.jsx(Sn,{size:18})," Spawn Agent"]})]})]}),u.jsx("h3",{style:ee.sectionTitle,children:"System Vitals"}),u.jsxs("div",{style:ee.statsGrid,children:[u.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[u.jsx("div",{style:{...ee.statIcon,background:"#6366f120",color:"#6366f1"},children:u.jsx(Pr,{size:22})}),u.jsxs("div",{style:ee.statInfo,children:[u.jsx("div",{style:ee.statValue,children:_(d?.uptime)}),u.jsx("div",{style:ee.statLabel,children:"Agent Uptime"})]})]}),u.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[u.jsx("div",{style:{...ee.statIcon,background:"#14b8a620",color:"#14b8a6"},children:u.jsx(qx,{size:22})}),u.jsxs("div",{style:ee.statInfo,children:[u.jsxs("div",{style:ee.statValue,children:[d?.ramUsage||0,"%"]}),u.jsx("div",{style:ee.statLabel,children:"Memory Load"})]})]}),u.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[u.jsx("div",{style:{...ee.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:u.jsx(xv,{size:22})}),u.jsxs("div",{style:ee.statInfo,children:[u.jsxs("div",{style:ee.statValue,children:[d?.totalTools||0," / ",d?.loadedPlugins||0]}),u.jsx("div",{style:ee.statLabel,children:"Core Tools / Plugins"})]})]}),u.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[u.jsx("div",{style:{...ee.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:u.jsx(Zr,{size:22})}),u.jsxs("div",{style:ee.statInfo,children:[u.jsx("div",{style:ee.statValue,children:c?.totalActions||0}),u.jsx("div",{style:ee.statLabel,children:"Tasks Executed"})]})]})]}),u.jsxs("div",{style:ee.mainGrid,children:[u.jsxs("div",{style:{...ee.card,gridColumn:"span 2"},children:[u.jsxs("div",{style:ee.cardHeader,children:[u.jsxs("h3",{style:ee.cardTitle,children:[u.jsx(Zr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),u.jsxs("span",{style:ee.liveBadge,children:[u.jsx("span",{style:ee.pulseDot})," LIVE"]})]}),u.jsx("div",{style:ee.cardBody,children:h.length>0?u.jsx("div",{style:ee.jobsList,children:h.map(V=>u.jsxs("div",{style:ee.jobCard,children:[u.jsxs("div",{style:ee.jobHeader,children:[u.jsx("span",{style:ee.jobName,children:V.taskName}),u.jsx("span",{style:V.isActive?ee.jobActive:ee.jobInactive,children:V.isActive?"RUNNING":"STOPPED"})]}),u.jsxs("div",{style:ee.jobPrompt,children:['"',V.prompt,'"']}),u.jsxs("div",{style:ee.jobMeta,children:[u.jsxs("span",{children:[u.jsx(Pr,{size:12})," Interval: ",V.intervalMinutes,"m"]}),u.jsxs("span",{children:[u.jsx(Hx,{size:12})," Next Run: ",new Date(V.nextRunAt).toLocaleTimeString()]})]})]},V._id))}):u.jsxs("div",{style:ee.emptyState,children:[u.jsx(sc,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),u.jsx("p",{children:"No autonomous background tasks running."}),u.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),u.jsxs("div",{style:ee.card,children:[u.jsxs("div",{style:ee.cardHeader,children:[u.jsxs("h3",{style:ee.cardTitle,children:[u.jsx(_m,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:ee.viewAllBtn,children:["View All ",u.jsx(hi,{size:14})]})]}),u.jsx("div",{style:ee.cardBody,children:v.length>0?v.map(V=>u.jsxs("button",{onClick:()=>o(`/chat/${V._id}`),style:ee.convRow,children:[u.jsx("div",{style:ee.convDot}),u.jsxs("div",{style:ee.convInfo,children:[u.jsx("span",{style:ee.convName,children:V.title}),u.jsxs("span",{style:ee.convTime,children:[new Date(V.updatedAt).toLocaleDateString()," ",new Date(V.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),u.jsx(hi,{size:14,style:{color:"var(--text-muted)"}})]},V._id)):u.jsx("div",{style:ee.emptyState,children:u.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),u.jsxs("div",{style:ee.bannerGrid,children:[u.jsxs("div",{style:ee.vaultBanner,children:[u.jsx(sl,{size:24,style:{color:"#10b981"}}),u.jsxs("div",{style:{flex:1},children:[u.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),u.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),u.jsx("button",{onClick:()=>o("/settings"),style:ee.outlineBtn,children:"Configure"})]}),u.jsxs("div",{style:ee.pluginBanner,children:[u.jsx(Uh,{size:24,style:{color:"#f59e0b"}}),u.jsxs("div",{style:{flex:1},children:[u.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),u.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const 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 D2({user:i,onUpdate:o}){const[c,s]=E.useState({name:i?.name||"",language:i?.language||"hinglish",city:i?.city||"",workType:i?.workType||"personal",activePack:i?.activePack||"personal",permissions:i?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[d,p]=E.useState(!1),[h,x]=E.useState(!1),v=async()=>{p(!0);try{const g=await ol.updateProfile(c);o(g.data.user),x(!0),setTimeout(()=>x(!1),3e3)}catch{console.error("Save failed")}finally{p(!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 u.jsxs("div",{style:oe.container,children:[u.jsxs("div",{style:oe.header,children:[u.jsx("h1",{style:oe.title,children:"⚙️ Settings"}),u.jsx("button",{onClick:v,disabled:d,style:oe.saveBtn,children:h?u.jsxs(u.Fragment,{children:[u.jsx(pi,{size:18})," Saved!"]}):d?"Saving...":u.jsxs(u.Fragment,{children:[u.jsx(Cv,{size:18})," Save Changes"]})})]}),u.jsxs("div",{style:oe.grid,children:[u.jsxs("div",{style:oe.section,children:[u.jsxs("div",{style:oe.sectionHeader,children:[u.jsx(Bm,{size:20,style:{color:"var(--accent-primary)"}}),u.jsx("h2",{style:oe.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),u.jsxs("div",{style:oe.sectionBody,children:[u.jsxs("div",{style:oe.field,children:[u.jsx("label",{style:oe.label,children:"Name / नाम"}),u.jsx("input",{style:oe.input,value:c.name,onChange:g=>s({...c,name:g.target.value}),placeholder:"Your name"})]}),u.jsxs("div",{style:oe.fieldRow,children:[u.jsxs("div",{style:oe.field,children:[u.jsx("label",{style:oe.label,children:"City / शहर"}),u.jsx("input",{style:oe.input,value:c.city,onChange:g=>s({...c,city:g.target.value}),placeholder:"Mumbai, Delhi, etc."})]}),u.jsxs("div",{style:oe.field,children:[u.jsx("label",{style:oe.label,children:"Work Type"}),u.jsxs("select",{style:oe.input,value:c.workType,onChange:g=>s({...c,workType:g.target.value}),children:[u.jsx("option",{value:"personal",children:"🏠 Personal"}),u.jsx("option",{value:"student",children:"🎓 Student"}),u.jsx("option",{value:"business",children:"🏢 Business"}),u.jsx("option",{value:"developer",children:"👨‍💻 Developer"})]})]})]})]})]}),u.jsxs("div",{style:oe.section,children:[u.jsxs("div",{style:oe.sectionHeader,children:[u.jsx(nv,{size:20,style:{color:"var(--accent-saffron)"}}),u.jsx("h2",{style:oe.sectionTitle,children:"Language / भाषा"})]}),u.jsx("div",{style:oe.sectionBody,children:u.jsx("div",{style:oe.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(g=>u.jsxs("button",{onClick:()=>s({...c,language:g.value}),style:{...oe.langCard,...c.language===g.value?oe.langCardActive:{}},children:[u.jsx("span",{style:oe.langIcon,children:g.icon}),u.jsx("span",{style:oe.langLabel,children:g.label}),u.jsx("span",{style:oe.langDesc,children:g.desc}),c.language===g.value&&u.jsx(pi,{size:16,style:oe.langCheck})]},g.value))})})]}),u.jsxs("div",{style:oe.section,children:[u.jsxs("div",{style:oe.sectionHeader,children:[u.jsx(sl,{size:20,style:{color:"var(--accent-teal)"}}),u.jsx("h2",{style:oe.sectionTitle,children:"Active Pack / टूल पैक"})]}),u.jsx("div",{style:oe.sectionBody,children:u.jsx("div",{style:oe.packGrid,children:[{id:"personal",icon:"🏠",name:"Personal",desc:"Bills, files, reminders"},{id:"student",icon:"🎓",name:"Student",desc:"Study, notes, exams"},{id:"business",icon:"🏢",name:"Business",desc:"GST, invoices, email"},{id:"developer",icon:"👨‍💻",name:"Developer",desc:"Code, logs, GitHub"}].map(g=>u.jsxs("button",{onClick:()=>s({...c,activePack:g.id}),style:{...oe.packCard,...c.activePack===g.id?oe.packCardActive:{}},children:[u.jsx("span",{style:oe.packIcon,children:g.icon}),u.jsx("span",{style:oe.packName,children:g.name}),u.jsx("span",{style:oe.packDesc,children:g.desc})]},g.id))})})]}),u.jsxs("div",{style:oe.section,children:[u.jsxs("div",{style:oe.sectionHeader,children:[u.jsx(sl,{size:20,style:{color:"var(--accent-rose)"}}),u.jsx("h2",{style:oe.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),u.jsx("div",{style:oe.sectionBody,children:b.map(g=>u.jsxs("div",{style:oe.permRow,children:[u.jsxs("div",{style:oe.permInfo,children:[u.jsx("span",{style:oe.permIcon,children:g.icon}),u.jsxs("div",{children:[u.jsx("div",{style:oe.permLabel,children:g.label}),u.jsx("div",{style:oe.permDesc,children:g.desc})]})]}),u.jsx("select",{style:oe.permSelect,value:c.permissions[g.key],onChange:z=>s({...c,permissions:{...c.permissions,[g.key]:z.target.value}}),children:y.map(z=>u.jsx("option",{value:z.value,children:z.label},z.value))})]},g.key))})]})]})]})}const oe={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},fieldRow:{display:"flex",gap:"16px"},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)"},packGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"12px"},packCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"20px 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)",color:"var(--text-primary)"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},packIcon:{fontSize:"1.8rem"},packName:{fontWeight:600,fontSize:"0.95rem"},packDesc:{fontSize:"0.75rem",color:"var(--text-muted)",textAlign:"center"},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"}},Qu={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 _2({user:i}){const[o,c]=E.useState([]),[s,d]=E.useState(null),[p,h]=E.useState(""),[x,v]=E.useState(!0);E.useEffect(()=>{y()},[p]);const y=async()=>{v(!0);try{const g={};p&&(g.category=p);const[z,D]=await Promise.all([Jr.getLogs(g),Jr.getStats()]);c(z.data.logs||[]),d(D.data.stats||null)}catch{console.error("Failed to load audit data"),c([]),d({totalActions:0,byCategory:{},byStatus:{}})}finally{v(!1)}},b=async g=>{try{await Jr.rollback(g),y()}catch{console.error("Rollback failed")}};return u.jsxs("div",{style:ge.container,children:[u.jsx("div",{style:ge.header,children:u.jsxs("div",{children:[u.jsx("h1",{style:ge.title,children:"🔐 Audit Log / ऑडिट लॉग"}),u.jsx("p",{style:ge.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),u.jsxs("div",{style:ge.statsRow,children:[u.jsxs("div",{style:ge.statCard,children:[u.jsx(Zr,{size:20,style:{color:"var(--accent-primary)"}}),u.jsxs("div",{children:[u.jsx("div",{style:ge.statValue,children:s?.totalActions||0}),u.jsx("div",{style:ge.statLabel,children:"Total Actions"})]})]}),u.jsxs("div",{style:ge.statCard,children:[u.jsx(sl,{size:20,style:{color:"#10b981"}}),u.jsxs("div",{children:[u.jsx("div",{style:ge.statValue,children:s?.byStatus?.success||0}),u.jsx("div",{style:ge.statLabel,children:"Successful"})]})]}),u.jsxs("div",{style:ge.statCard,children:[u.jsx(Om,{size:20,style:{color:"#f59e0b"}}),u.jsxs("div",{children:[u.jsx("div",{style:ge.statValue,children:s?.byStatus?.blocked||0}),u.jsx("div",{style:ge.statLabel,children:"Blocked"})]})]}),u.jsxs("div",{style:ge.statCard,children:[u.jsx(Lh,{size:20,style:{color:"#8b5cf6"}}),u.jsxs("div",{children:[u.jsx("div",{style:ge.statValue,children:s?.byStatus?.rolled_back||0}),u.jsx("div",{style:ge.statLabel,children:"Rolled Back"})]})]})]}),u.jsxs("div",{style:ge.filters,children:[u.jsx(Px,{size:16,style:{color:"var(--text-muted)"}}),u.jsx("button",{onClick:()=>h(""),style:{...ge.filterBtn,...p===""?ge.filterBtnActive:{}},children:"All"}),Object.entries(Qu).map(([g,z])=>u.jsxs("button",{onClick:()=>h(g),style:{...ge.filterBtn,...p===g?ge.filterBtnActive:{}},children:[z.icon," ",g]},g))]}),u.jsx("div",{style:ge.timeline,children:x?u.jsxs("div",{style:ge.loadingState,children:[u.jsx("div",{style:ge.spinner}),u.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?u.jsxs("div",{style:ge.emptyState,children:[u.jsx(sl,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),u.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((g,z)=>{const D=Qu[g.category]||Qu.system,T=im[g.status]||im.success;return u.jsxs("div",{style:ge.logEntry,children:[u.jsxs("div",{style:ge.logTimeline,children:[u.jsx("div",{style:{...ge.logDot,background:D.color}}),z<o.length-1&&u.jsx("div",{style:ge.logLine})]}),u.jsxs("div",{style:ge.logContent,children:[u.jsxs("div",{style:ge.logHeader,children:[u.jsxs("span",{style:{...ge.logCategory,background:D.bg,color:D.color},children:[D.icon," ",g.category]}),u.jsx("span",{style:{...ge.logStatus,background:T.bg,color:T.color},children:g.status}),g.details?.riskLevel&&g.details.riskLevel!=="low"&&u.jsxs("span",{style:ge.riskBadge,children:["⚠️ ",g.details.riskLevel," risk"]})]}),u.jsx("div",{style:ge.logAction,children:g.action}),g.details?.toolName&&u.jsxs("div",{style:ge.logDetail,children:["Tool: ",g.details.toolName]}),u.jsxs("div",{style:ge.logTime,children:[u.jsx(Pr,{size:12}),new Date(g.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),g.canRollback&&g.status!=="rolled_back"&&u.jsxs("button",{onClick:()=>b(g._id),style:ge.rollbackBtn,children:[u.jsx(Lh,{size:14})," Undo / Rollback"]})]})]},g._id||z)})})]})}const ge={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 k2({user:i}){const[o,c]=E.useState([]),[s,d]=E.useState([]),[p,h]=E.useState(null),[x,v]=E.useState([]);E.useEffect(()=>{y()},[]);const y=async()=>{try{const[D,T]=await Promise.all([Ir.getPacks(),Ir.getAll()]);c(D.data.packs||[]),d(T.data.tools||[])}catch{console.error("Failed to load tools")}},b=async D=>{h(D);try{const T=await Ir.getPackTools(D);v(T.data.tools||[])}catch{v([])}},g=async D=>{try{await ol.updateProfile({activePack:D})}catch{console.error("Failed to activate pack")}},z=i?.language==="english";return u.jsxs("div",{style:Ge.container,children:[u.jsx("div",{style:Ge.header,children:u.jsxs("div",{children:[u.jsxs("h1",{style:Ge.title,children:["🛠️ ",z?"Tool Packs":"टूल पैक्स"]}),u.jsx("p",{style:Ge.subtitle,children:z?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),u.jsx("div",{style:Ge.packsGrid,children:o.map((D,T)=>{const U=i?.activePack===D.id,_=p===D.id;return u.jsxs("div",{onClick:()=>b(D.id),style:{...Ge.packCard,...U?Ge.packCardActive:{},..._?Ge.packCardSelected:{},animationDelay:`${T*.1}s`},children:[u.jsxs("div",{style:Ge.packHeader,children:[u.jsx("span",{style:Ge.packEmoji,children:D.id==="student"?"🎓":D.id==="business"?"🏢":D.id==="developer"?"👨‍💻":"🏠"}),U&&u.jsxs("span",{style:Ge.activeBadge,children:[u.jsx(pi,{size:12})," ",z?"Active":"सक्रिय"]})]}),u.jsx("h3",{style:Ge.packName,children:z?D.name:D.nameHi||D.name}),u.jsx("p",{style:Ge.packDesc,children:z?D.description:D.descriptionHi||D.description}),u.jsxs("div",{style:Ge.packMeta,children:[u.jsxs("span",{style:Ge.toolCount,children:[u.jsx(eo,{size:14})," ",D.toolCount," tools"]}),u.jsx(hi,{size:16,style:{color:"var(--text-muted)"}})]}),!U&&u.jsxs("button",{onClick:V=>{V.stopPropagation(),g(D.id)},style:Ge.activateBtn,children:[u.jsx(Sn,{size:14})," ",z?"Activate":"एक्टिवेट करें"]})]},D.id)})}),u.jsxs("div",{style:Ge.section,children:[u.jsxs("h2",{style:Ge.sectionTitle,children:[u.jsx(eo,{size:20,style:{color:"var(--accent-primary)"}}),p?z?`Tools in ${p} pack`:`${p} पैक के टूल्स`:z?"All Available Tools":"सभी टूल्स"]}),u.jsx("div",{style:Ge.toolsGrid,children:(p?x:s).map((D,T)=>{const U=rm[D.riskLevel]||rm.low;return u.jsxs("div",{style:{...Ge.toolCard,animationDelay:`${T*.05}s`},children:[u.jsxs("div",{style:Ge.toolHeader,children:[u.jsx("span",{style:Ge.toolName,children:D.name}),u.jsx("span",{style:{...Ge.riskBadge,background:U.bg,color:U.color},children:U.label})]}),u.jsx("p",{style:Ge.toolDesc,children:z?D.description:D.descriptionHi||D.description}),u.jsx("div",{style:Ge.toolMeta,children:u.jsxs("span",{style:Ge.toolCategory,children:[D.category==="file"?"📁":D.category==="email"?"📧":D.category==="search"?"🔍":D.category==="calendar"?"📅":"🛠️"," ",D.category]})})]},D.name)})})]})]})}const Ge={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"}},O2=[{icon:"🇮🇳",title:"Made for India",titleHi:"भारत के लिए बना",desc:"Hindi, Hinglish & English support"},{icon:"🔐",title:"Privacy First",titleHi:"प्राइवेसी पहले",desc:"PAN/Aadhaar detection & masking"},{icon:"🛠️",title:"Smart Tools",titleHi:"स्मार्ट टूल्स",desc:"GST, UPI, Calendar & more"},{icon:"🧠",title:"Memory",titleHi:"याददाश्त",desc:"Remembers your preferences"}];function B2({onLogin:i}){const[o,c]=E.useState(!1),[s,d]=E.useState({name:"",email:"",password:"",language:"hinglish",city:"",workType:"personal"}),[p,h]=E.useState(!1),[x,v]=E.useState(""),[y,b]=E.useState(!1),g=async D=>{D.preventDefault(),v(""),b(!0);try{const T=o?await ol.register(s):await ol.login({email:s.email,password:s.password});i(T.data.user,T.data.token)}catch(T){v(T.response?.data?.message||"Something went wrong")}finally{b(!1)}},z=async()=>{b(!0),v("");try{const D=await ol.demoLogin();i(D.data.user,D.data.token)}catch(D){v(D.response?.data?.message||"Demo login failed")}finally{b(!1)}};return u.jsxs("div",{style:se.container,children:[u.jsx("div",{style:se.bgOrb1}),u.jsx("div",{style:se.bgOrb2}),u.jsx("div",{style:se.bgOrb3}),u.jsxs("div",{style:se.content,children:[u.jsxs("div",{style:se.left,children:[u.jsxs("div",{style:se.logo,children:[u.jsx("span",{style:se.logoIcon,children:"भ"}),u.jsxs("div",{children:[u.jsx("h1",{style:se.logoText,children:"SamarthyaBot"}),u.jsx("p",{style:se.logoSub,children:"समर्थ्य बोट"})]})]}),u.jsxs("h2",{style:se.tagline,children:["Privacy-first Personal AI Operator",u.jsx("br",{}),u.jsx("span",{style:se.taglineHi,children:"भारतीय कार्यप्रवाह के लिए बनाया गया"})]}),u.jsx("div",{style:se.features,children:O2.map((D,T)=>u.jsxs("div",{style:{...se.featureCard,animationDelay:`${T*.1}s`},children:[u.jsx("span",{style:se.featureIcon,children:D.icon}),u.jsxs("div",{children:[u.jsx("div",{style:se.featureTitle,children:D.title}),u.jsx("div",{style:se.featureDesc,children:D.desc})]})]},T))})]}),u.jsx("div",{style:se.right,children:u.jsxs("div",{style:se.formCard,children:[u.jsxs("h3",{style:se.formTitle,children:[o?"Create Account":"Welcome Back"," ✨"]}),u.jsx("p",{style:se.formSubtitle,children:o?"Start your AI journey":"Login to continue your AI journey"}),x&&u.jsx("div",{style:se.error,children:x}),u.jsxs("form",{onSubmit:g,style:se.form,children:[o&&u.jsxs("div",{style:se.field,children:[u.jsx("label",{style:se.label,children:"Name"}),u.jsx("input",{style:se.input,type:"text",placeholder:"Aapka naam",value:s.name,onChange:D=>d({...s,name:D.target.value}),required:!0})]}),u.jsxs("div",{style:se.field,children:[u.jsx("label",{style:se.label,children:"Email"}),u.jsx("input",{style:se.input,type:"email",placeholder:"your@email.com",value:s.email,onChange:D=>d({...s,email:D.target.value}),required:!0})]}),u.jsxs("div",{style:se.field,children:[u.jsx("label",{style:se.label,children:"Password"}),u.jsxs("div",{style:se.passwordWrap,children:[u.jsx("input",{style:{...se.input,paddingRight:"44px"},type:p?"text":"password",placeholder:"••••••••",value:s.password,onChange:D=>d({...s,password:D.target.value}),required:!0}),u.jsx("button",{type:"button",onClick:()=>h(!p),style:se.eyeBtn,children:p?u.jsx(Xx,{size:18}):u.jsx(wm,{size:18})})]})]}),o&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:se.field,children:[u.jsx("label",{style:se.label,children:"Language / भाषा"}),u.jsxs("select",{style:se.input,value:s.language,onChange:D=>d({...s,language:D.target.value}),children:[u.jsx("option",{value:"hinglish",children:"Hinglish (Hindi + English)"}),u.jsx("option",{value:"hindi",children:"हिंदी (Hindi)"}),u.jsx("option",{value:"english",children:"English"})]})]}),u.jsxs("div",{style:se.row,children:[u.jsxs("div",{style:{...se.field,flex:1},children:[u.jsx("label",{style:se.label,children:"City / शहर"}),u.jsx("input",{style:se.input,type:"text",placeholder:"Mumbai",value:s.city,onChange:D=>d({...s,city:D.target.value})})]}),u.jsxs("div",{style:{...se.field,flex:1},children:[u.jsx("label",{style:se.label,children:"Work Type"}),u.jsxs("select",{style:se.input,value:s.workType,onChange:D=>d({...s,workType:D.target.value}),children:[u.jsx("option",{value:"personal",children:"🏠 Personal"}),u.jsx("option",{value:"student",children:"🎓 Student"}),u.jsx("option",{value:"business",children:"🏢 Business"}),u.jsx("option",{value:"developer",children:"👨‍💻 Developer"})]})]})]})]}),u.jsx("button",{type:"submit",style:se.submitBtn,disabled:y,children:y?u.jsx("span",{style:se.spinner}):u.jsxs(u.Fragment,{children:[o?"Create Account":"Login"," ",u.jsx(Sn,{size:16})]})})]}),u.jsx("div",{style:se.divider,children:u.jsx("span",{children:"or"})}),u.jsxs("button",{onClick:z,style:se.demoBtn,disabled:y,children:[u.jsx(Hv,{size:16})," Quick Demo Login"]}),u.jsxs("p",{style:se.switchText,children:[o?"Already have an account?":"Don't have an account?"," ",u.jsx("button",{onClick:()=>{c(!o),v("")},style:se.switchBtn,children:o?"Login":"Register"})]})]})})]})]})}const se={container:{minHeight:"100vh",background:"var(--bg-primary)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",padding:"20px"},bgOrb1:{position:"absolute",width:"600px",height:"600px",borderRadius:"50%",background:"radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%)",top:"-200px",right:"-100px",animation:"float 8s ease-in-out infinite"},bgOrb2:{position:"absolute",width:"400px",height:"400px",borderRadius:"50%",background:"radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%)",bottom:"-150px",left:"-100px",animation:"float 10s ease-in-out infinite reverse"},bgOrb3:{position:"absolute",width:"300px",height:"300px",borderRadius:"50%",background:"radial-gradient(circle, rgba(19,136,8,0.08) 0%, transparent 70%)",top:"50%",left:"50%",transform:"translate(-50%, -50%)",animation:"float 12s ease-in-out infinite"},content:{display:"flex",gap:"60px",maxWidth:"1100px",width:"100%",position:"relative",zIndex:1,alignItems:"center",flexWrap:"wrap",justifyContent:"center"},left:{flex:"1",minWidth:"340px",maxWidth:"480px",animation:"fadeInUp 0.6s ease-out"},logo:{display:"flex",alignItems:"center",gap:"14px",marginBottom:"32px"},logoIcon:{fontSize:"2.8rem",background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontFamily:"var(--font-hindi)",fontWeight:700},logoText:{fontSize:"2rem",fontWeight:800,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",lineHeight:1.1},logoSub:{fontSize:"0.85rem",color:"var(--text-muted)",fontFamily:"var(--font-hindi)"},tagline:{fontSize:"1.5rem",fontWeight:600,color:"var(--text-primary)",lineHeight:1.5,marginBottom:"36px"},taglineHi:{fontSize:"1.1rem",fontWeight:400,color:"var(--accent-saffron)",fontFamily:"var(--font-hindi)"},features:{display:"flex",flexDirection:"column",gap:"14px"},featureCard:{display:"flex",alignItems:"center",gap:"14px",padding:"14px 18px",background:"rgba(26, 26, 62, 0.5)",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",animation:"fadeIn 0.4s ease-out both",transition:"all var(--transition-normal)"},featureIcon:{fontSize:"1.5rem"},featureTitle:{fontWeight:600,fontSize:"0.95rem",color:"var(--text-primary)"},featureDesc:{fontSize:"0.8rem",color:"var(--text-muted)"},right:{flex:"1",minWidth:"340px",maxWidth:"420px",animation:"fadeInUp 0.6s ease-out 0.2s both"},formCard:{background:"rgba(15, 15, 35, 0.8)",backdropFilter:"blur(30px)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-xl)",padding:"36px 32px",boxShadow:"var(--shadow-lg)"},formTitle:{fontSize:"1.5rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"6px"},formSubtitle:{fontSize:"0.875rem",color:"var(--text-muted)",marginBottom:"24px"},error:{background:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)",color:"#ef4444",padding:"10px 14px",borderRadius:"var(--radius-md)",fontSize:"0.85rem",marginBottom:"16px"},form:{display:"flex",flexDirection:"column",gap:"16px"},field:{display:"flex",flexDirection:"column",gap:"6px"},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"12px 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.9375rem",outline:"none",transition:"all 0.2s"},passwordWrap:{position:"relative"},eyeBtn:{position:"absolute",right:"12px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px"},row:{display:"flex",gap:"12px"},submitBtn:{width:"100%",padding:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"1rem",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transition:"all 0.3s",boxShadow:"var(--shadow-glow)",fontFamily:"var(--font-primary)",marginTop:"8px"},divider:{display:"flex",alignItems:"center",gap:"12px",margin:"20px 0",color:"var(--text-muted)",fontSize:"0.8rem"},demoBtn:{width:"100%",padding:"12px",background:"var(--bg-card)",color:"var(--accent-gold)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transition:"all 0.3s",fontFamily:"var(--font-primary)"},switchText:{textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem",marginTop:"18px"},switchBtn:{background:"none",border:"none",color:"var(--accent-primary)",fontWeight:600,cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)"},spinner:{width:"20px",height:"20px",border:"2px solid rgba(255,255,255,0.3)",borderTopColor:"white",borderRadius:"50%",animation:"spin 1s linear infinite",display:"inline-block"}},om=[{time:"08:00 AM",title:"Good morning Rahul, aapki UPI bill due hai aaj",desc:"Electricity bill ₹2,340 - auto-reminder triggered",icon:"⚡",color:"#FF9933"},{time:"10:30 AM",title:"IRCTC Tatkal booking done! PNR: 4521789036",desc:"Delhi → Mumbai Rajdhani, 2A, Seat 42",icon:"🚆",color:"#138808"},{time:"02:00 PM",title:'"Mera PAN number hai ABCDE1234F"',desc:"⚠️ Sensitive data detected → Masked: AB***4F",icon:"🔐",color:"#f43f5e"},{time:"06:00 PM",title:"GST filed successfully! Acknowledgement: ACK-2025-789",desc:"GSTR-3B auto-filled from your invoices. Next due: 20th March",icon:"📊",color:"#6366f1"}],xn=[{id:"student",icon:"🎓",name:"Student Pack",nameHi:"स्टूडेंट पैक",tools:["PDF Summarizer","Exam Reminders","Assignment Helper","Notes AI","Calculator","Web Search"],color:"#6366f1"},{id:"business",icon:"🏢",name:"Business Pack",nameHi:"बिज़नेस पैक",tools:["GST Reminder","Invoice Generator","Email Automation","UPI Links","Excel Helper","Client Follow-up"],color:"#FF9933"},{id:"developer",icon:"👨‍💻",name:"Developer Pack",nameHi:"डेवलपर पैक",tools:["Code Explain","Log Monitor","GitHub Helper","API Tester","Bug Finder","Deploy Assistant"],color:"#14b8a6"},{id:"personal",icon:"🏠",name:"Personal Pack",nameHi:"पर्सनल पैक",tools:["Bill Tracker","File Organizer","Subscription Manager","Weather","Reminders","Voice Notes"],color:"#f59e0b"}],M2=[{competitor:"ChatGPT",competitorResponse:`"I can't access external websites or book tickets for you."`,samarthyaResponse:'"IRCTC booked! PNR: 4521789. Confirmation SMS bhi bhej diya."',icon:"🤖"},{competitor:"Claude",competitorResponse:`"I don't have information about Indian tax filing deadlines."`,samarthyaResponse:'"GSTR-3B due 20th March! Reminder set + auto-fill ready."',icon:"🧠"},{competitor:"Siri / Google",competitorResponse:'"Here are some search results for UPI payment..."',samarthyaResponse:'"₹500 ka UPI link bana diya. GPay / PhonePe se direct pay karo."',icon:"📱"}],N2=[{icon:"🔒",label:"Made in India",labelHi:"भारत में बना"},{icon:"🏛️",label:"Govt API Ready",labelHi:"सरकारी API"},{icon:"📱",label:"50K+ Users",labelHi:"50K+ यूज़र्स"},{icon:"⭐",label:"4.9 Rating",labelHi:"4.9 रेटिंग"}],H2=[{name:"Free",nameHi:"फ्री",price:"₹0",period:"/month",features:["100 actions/month","3 Tool Packs","Basic Voice Mode","Community Support"],cta:"Start Free",popular:!1,color:"#a8a8c0"},{name:"Pro",nameHi:"प्रो",price:"₹299",period:"/month",features:["Unlimited actions","All Tool Packs","Voice + Screen AI","Priority Support","Offline Mode","WhatsApp Integration"],cta:"Upgrade to Pro",popular:!0,color:"#FF9933"},{name:"Business",nameHi:"बिज़नेस",price:"₹999",period:"/month",features:["Everything in Pro","Multi-Agent Swarm","Family Mode (5 users)","Custom Workflows","API Access","Dedicated Support"],cta:"Contact Sales",popular:!1,color:"#138808"}];function U2({onNavigateToLogin:i}){const[o,c]=E.useState(0),[s,d]=E.useState(new Set),[p,h]=E.useState(""),x=["File my GST","IRCTC ticket book karo","UPI link banao ₹500 ka","Mera Aadhaar safe rakh"],[v,y]=E.useState(0);E.useEffect(()=>{const g=x[v];let z=0;h("");const D=setInterval(()=>{z<=g.length?(h(g.substring(0,z)),z++):(clearInterval(D),setTimeout(()=>{y(T=>(T+1)%x.length)},2e3))},60);return()=>clearInterval(D)},[v]),E.useEffect(()=>{const g=new IntersectionObserver(z=>{z.forEach(D=>{D.isIntersecting&&d(T=>new Set([...T,D.target.id]))})},{threshold:.15});return document.querySelectorAll("[data-animate]").forEach(z=>g.observe(z)),()=>g.disconnect()},[]);const b=g=>s.has(g);return u.jsxs("div",{style:O.page,children:[u.jsx("nav",{style:O.nav,children:u.jsxs("div",{style:O.navInner,children:[u.jsxs("div",{style:O.navBrand,children:[u.jsx("span",{style:O.navLogo,children:"स"}),u.jsx("span",{style:O.navName,children:"SamarthyaBot"})]}),u.jsxs("div",{style:O.navLinks,children:[u.jsx("a",{href:"#features",style:O.navLink,children:"Features"}),u.jsx("a",{href:"#packs",style:O.navLink,children:"Tool Packs"}),u.jsx("a",{href:"#pricing",style:O.navLink,children:"Pricing"}),u.jsxs("button",{onClick:i,style:O.navCta,children:["Launch App ",u.jsx(Ex,{size:16})]})]})]})}),u.jsxs("section",{style:O.hero,children:[u.jsx("div",{style:O.heroOrb1}),u.jsx("div",{style:O.heroOrb2}),u.jsx("div",{style:O.heroOrb3}),u.jsxs("div",{style:O.heroContent,children:[u.jsxs("div",{style:O.heroBadge,children:[u.jsx("span",{style:O.heroBadgeDot}),"🇮🇳 Privacy-first AI Operator — Built for India"]}),u.jsxs("h1",{style:O.heroTitle,children:["Your Personal AI Assistant",u.jsx("br",{}),u.jsx("span",{style:O.heroTitleAccent,children:"That Actually Understands India"})]}),u.jsxs("p",{style:O.heroSubtitle,children:["GST file karo, IRCTC ticket lo, UPI payment bhejo — sab ek AI se.",u.jsx("br",{}),"Hindi, Hinglish aur English mein baat karo."]}),u.jsxs("div",{style:O.terminal,children:[u.jsxs("div",{style:O.terminalHeader,children:[u.jsxs("div",{style:O.terminalDots,children:[u.jsx("span",{style:{...O.terminalDot,background:"#ef4444"}}),u.jsx("span",{style:{...O.terminalDot,background:"#f59e0b"}}),u.jsx("span",{style:{...O.terminalDot,background:"#138808"}})]}),u.jsx("span",{style:O.terminalTitle,children:"SamarthyaBot — Live Demo"})]}),u.jsxs("div",{style:O.terminalBody,children:[u.jsxs("div",{style:O.terminalLine,children:[u.jsx("span",{style:O.terminalPrompt,children:"You →"}),u.jsx("span",{style:O.terminalTyped,children:p}),u.jsx("span",{style:O.terminalCursor,children:"|"})]}),u.jsxs("div",{style:O.terminalResponse,children:[u.jsx("span",{style:O.terminalBot,children:"स Bot →"}),u.jsxs("span",{style:O.terminalText,children:[v===0&&"✅ GSTR-3B auto-filled! Deadline: 20th March. Reminder set.",v===1&&"🚆 Tatkal booked! PNR: 4521789036. Delhi→Mumbai Rajdhani 2A.",v===2&&"💳 UPI Link: upi://pay?am=500&cu=INR — GPay/PhonePe ready!",v===3&&"🔐 Aadhaar detected & masked: XXXX XXXX 9012. Safe mode ON."]})]})]})]}),u.jsxs("div",{style:O.heroCtas,children:[u.jsxs("button",{onClick:i,style:O.heroBtn,children:["Start Free ",u.jsx(Sn,{size:18})]}),u.jsxs("button",{style:O.heroBtn2,children:[u.jsx(bv,{size:18})," Watch How It Works"]})]})]})]}),u.jsx("section",{style:O.trustBar,children:N2.map((g,z)=>u.jsxs("div",{style:O.trustItem,children:[u.jsx("span",{style:O.trustIcon,children:g.icon}),u.jsxs("div",{children:[u.jsx("div",{style:O.trustLabel,children:g.label}),u.jsx("div",{style:O.trustLabelHi,children:g.labelHi})]})]},z))}),u.jsx("section",{id:"features","data-animate":!0,style:{...O.section,opacity:b("features")?1:0,transform:b("features")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:O.sectionInner,children:[u.jsx("div",{style:O.sectionBadge,children:"✨ A Day with SamarthyaBot"}),u.jsx("h2",{style:O.sectionTitle,children:"One AI. Your Entire Day, Handled."}),u.jsx("p",{style:O.sectionSubtitle,children:"Subah se raat tak, har kaam automate — bilkul aapke tarike se."}),u.jsx("div",{style:O.timeline,children:om.map((g,z)=>u.jsxs("div",{style:O.timelineItem,children:[u.jsxs("div",{style:O.timelineLeft,children:[u.jsx("div",{style:{...O.timelineDot,background:g.color}}),z<om.length-1&&u.jsx("div",{style:O.timelineLine})]}),u.jsxs("div",{style:O.timelineCard,children:[u.jsxs("div",{style:O.timelineTime,children:[u.jsx(Pr,{size:13})," ",g.time]}),u.jsxs("div",{style:O.timelineEventTitle,children:[u.jsx("span",{style:O.timelineIcon,children:g.icon})," ",g.title]}),u.jsx("div",{style:O.timelineDesc,children:g.desc})]})]},z))})]})}),u.jsx("section",{id:"voice","data-animate":!0,style:{...O.section,background:"var(--bg-secondary)",opacity:b("voice")?1:0,transform:b("voice")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:O.sectionInner,children:[u.jsx("div",{style:O.sectionBadge,children:"🎤 Voice-First Design"}),u.jsx("h2",{style:O.sectionTitle,children:"Bolo, Mat Likho."}),u.jsx("p",{style:O.sectionSubtitle,children:"90% Indians prefer voice. SamarthyaBot Hindi aur Hinglish voice commands samajhta hai."}),u.jsxs("div",{style:O.voiceGrid,children:[u.jsxs("div",{style:O.voiceCard,children:[u.jsx("div",{style:O.voiceMicWrap,children:u.jsx("div",{style:O.voiceMic,children:u.jsx(Ju,{size:32,color:"#FF9933"})})}),u.jsx("h3",{style:O.voiceCardTitle,children:"🗣️ Voice Commands"}),u.jsx("p",{style:O.voiceCardDesc,children:'"GST ki deadline kab hai?" — Bolo aur kaam ho jaye'})]}),u.jsxs("div",{style:O.voiceCard,children:[u.jsx("div",{style:O.voiceFeatureIcon,children:"🌐"}),u.jsx("h3",{style:O.voiceCardTitle,children:"Offline Mode"}),u.jsx("p",{style:O.voiceCardDesc,children:"Internet nahi? No problem. Local Ollama se chalega."})]}),u.jsxs("div",{style:O.voiceCard,children:[u.jsx("div",{style:O.voiceFeatureIcon,children:"📱"}),u.jsx("h3",{style:O.voiceCardTitle,children:"WhatsApp Native"}),u.jsx("p",{style:O.voiceCardDesc,children:'WhatsApp pe bolo "Remind me" — bot sun lega.'})]}),u.jsxs("div",{style:O.voiceCard,children:[u.jsx("div",{style:O.voiceFeatureIcon,children:"👁️"}),u.jsx("h3",{style:O.voiceCardTitle,children:"Screen Understanding"}),u.jsx("p",{style:O.voiceCardDesc,children:"Screenshot bhejo, AI samajh ke action lega."})]})]})]})}),u.jsx("section",{id:"packs","data-animate":!0,style:{...O.section,opacity:b("packs")?1:0,transform:b("packs")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:O.sectionInner,children:[u.jsx("div",{style:O.sectionBadge,children:"🛠️ Verticalized Tool Packs"}),u.jsx("h2",{style:O.sectionTitle,children:"Choose Your Superpower"}),u.jsx("p",{style:O.sectionSubtitle,children:"Generic AI nahi. Aapke kaam ke liye specialized tools."}),u.jsx("div",{style:O.packsRow,children:xn.map((g,z)=>u.jsxs("button",{onClick:()=>c(z),style:{...O.packTab,...o===z?{background:`${g.color}18`,borderColor:g.color,color:g.color}:{}},children:[u.jsx("span",{style:{fontSize:"1.3rem"},children:g.icon}),g.name]},g.id))}),u.jsxs("div",{style:O.packDetail,children:[u.jsxs("div",{style:O.packDetailLeft,children:[u.jsx("span",{style:O.packDetailIcon,children:xn[o].icon}),u.jsx("h3",{style:O.packDetailName,children:xn[o].name}),u.jsx("p",{style:O.packDetailNameHi,children:xn[o].nameHi})]}),u.jsx("div",{style:O.packDetailTools,children:xn[o].tools.map((g,z)=>u.jsxs("div",{style:{...O.packToolChip,borderColor:`${xn[o].color}40`,animationDelay:`${z*.08}s`},children:[u.jsx(pi,{size:14,color:xn[o].color})," ",g]},z))})]})]})}),u.jsx("section",{id:"compare","data-animate":!0,style:{...O.section,background:"var(--bg-secondary)",opacity:b("compare")?1:0,transform:b("compare")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:O.sectionInner,children:[u.jsx("div",{style:O.sectionBadge,children:"⚔️ Bold Comparison"}),u.jsx("h2",{style:O.sectionTitle,children:"Why SamarthyaBot vs Generic AI?"}),u.jsx("p",{style:O.sectionSubtitle,children:"India-specific problems need India-specific solutions."}),u.jsx("div",{style:O.compareGrid,children:M2.map((g,z)=>u.jsx("div",{style:O.compareCard,children:u.jsxs("div",{style:O.compareRow,children:[u.jsxs("div",{style:O.compareCompetitor,children:[u.jsxs("div",{style:O.compareName,children:[g.icon," ",g.competitor]}),u.jsx("p",{style:O.compareText,children:g.competitorResponse})]}),u.jsx("div",{style:O.compareVs,children:"VS"}),u.jsxs("div",{style:O.compareSamarthya,children:[u.jsxs("div",{style:O.compareName,children:[u.jsx("span",{style:O.compareSmLogo,children:"स"})," SamarthyaBot"]}),u.jsx("p",{style:O.compareTextWin,children:g.samarthyaResponse})]})]})},z))})]})}),u.jsx("section",{id:"pricing","data-animate":!0,style:{...O.section,opacity:b("pricing")?1:0,transform:b("pricing")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:O.sectionInner,children:[u.jsx("div",{style:O.sectionBadge,children:"💰 Indian Pricing"}),u.jsx("h2",{style:O.sectionTitle,children:"Simple, Transparent, in ₹ Rupees"}),u.jsx("p",{style:O.sectionSubtitle,children:"No dollar pricing. No hidden charges. UPI se pay karo."}),u.jsx("div",{style:O.pricingGrid,children:H2.map((g,z)=>u.jsxs("div",{style:{...O.pricingCard,...g.popular?O.pricingPopular:{}},children:[g.popular&&u.jsx("div",{style:O.popularBadge,children:"🔥 Most Popular"}),u.jsx("h3",{style:O.pricingName,children:g.name}),u.jsx("p",{style:O.pricingNameHi,children:g.nameHi}),u.jsxs("div",{style:O.pricingPrice,children:[u.jsx("span",{style:{...O.pricingAmount,color:g.color},children:g.price}),u.jsx("span",{style:O.pricingPeriod,children:g.period})]}),u.jsx("ul",{style:O.pricingFeatures,children:g.features.map((D,T)=>u.jsxs("li",{style:O.pricingFeature,children:[u.jsx(pi,{size:15,color:g.color})," ",D]},T))}),u.jsx("button",{style:{...O.pricingCta,...g.popular?{background:"var(--gradient-primary)",color:"#0D0D0D"}:{}},children:g.cta})]},z))}),u.jsxs("div",{style:O.paymentMethods,children:[u.jsx("span",{style:O.paymentLabel,children:"Payment Methods:"}),u.jsx("span",{style:O.paymentBadge,children:"UPI"}),u.jsx("span",{style:O.paymentBadge,children:"Credit Card"}),u.jsx("span",{style:O.paymentBadge,children:"Net Banking"}),u.jsx("span",{style:O.paymentBadge,children:"PhonePe"}),u.jsx("span",{style:O.paymentBadge,children:"GPay"})]})]})}),u.jsxs("section",{style:O.ctaSection,children:[u.jsx("div",{style:O.ctaOrb}),u.jsx("h2",{style:O.ctaTitle,children:"Ready to Supercharge Your Day?"}),u.jsx("p",{style:O.ctaSubtitle,children:"Aaj hi shuru karo. 100 free actions. No credit card needed."}),u.jsxs("button",{onClick:i,style:O.ctaBtn,children:["Start Free Now ",u.jsx(Sn,{size:20})]})]}),u.jsx("footer",{style:O.footer,children:u.jsxs("div",{style:O.footerInner,children:[u.jsxs("div",{style:O.footerBrand,children:[u.jsx("span",{style:O.footerLogo,children:"स"}),u.jsx("span",{style:O.footerName,children:"SamarthyaBot"})]}),u.jsx("p",{style:O.footerTagline,children:"Built with ❤️ in India"}),u.jsxs("div",{style:O.footerLinks,children:[u.jsx("a",{href:"#",style:O.footerLink,children:u.jsx(Gv,{size:18})}),u.jsx("a",{href:"#",style:O.footerLink,children:u.jsx(sv,{size:18})}),u.jsx("a",{href:"#",style:O.footerLink,children:u.jsx(tv,{size:18})})]}),u.jsx("p",{style:O.footerCopy,children:"© 2025 SamarthyaBot. All rights reserved."})]})})]})}const O={page:{background:"var(--bg-primary)",color:"var(--text-primary)",minHeight:"100vh"},nav:{position:"fixed",top:0,left:0,right:0,zIndex:1e3,background:"rgba(13, 13, 13, 0.85)",backdropFilter:"blur(20px)",borderBottom:"1px solid var(--border-subtle)"},navInner:{maxWidth:"1200px",margin:"0 auto",padding:"14px 32px",display:"flex",alignItems:"center",justifyContent:"space-between"},navBrand:{display:"flex",alignItems:"center",gap:"10px"},navLogo:{fontSize:"1.5rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},navName:{fontSize:"1.15rem",fontWeight:700,color:"var(--text-primary)"},navLinks:{display:"flex",alignItems:"center",gap:"28px"},navLink:{color:"var(--text-secondary)",textDecoration:"none",fontSize:"0.9rem",fontWeight:500,transition:"color 0.2s"},navCta:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 22px",background:"var(--gradient-primary)",color:"#0D0D0D",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:700,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all 0.3s"},hero:{position:"relative",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"120px 32px 80px",overflow:"hidden"},heroOrb1:{position:"absolute",width:"700px",height:"700px",borderRadius:"50%",background:"radial-gradient(circle, rgba(255,153,51,0.1) 0%, transparent 65%)",top:"-250px",right:"-150px",animation:"float 10s ease-in-out infinite"},heroOrb2:{position:"absolute",width:"500px",height:"500px",borderRadius:"50%",background:"radial-gradient(circle, rgba(19,136,8,0.07) 0%, transparent 65%)",bottom:"-200px",left:"-150px",animation:"float 12s ease-in-out infinite reverse"},heroOrb3:{position:"absolute",width:"350px",height:"350px",borderRadius:"50%",background:"radial-gradient(circle, rgba(0,0,128,0.06) 0%, transparent 65%)",top:"40%",left:"15%",animation:"float 14s ease-in-out infinite"},heroContent:{position:"relative",zIndex:1,maxWidth:"800px",animation:"fadeInUp 0.8s ease-out"},heroBadge:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"8px 20px",background:"rgba(255,153,51,0.08)",border:"1px solid rgba(255,153,51,0.2)",borderRadius:"var(--radius-full)",fontSize:"0.82rem",color:"var(--accent-saffron)",fontWeight:500,marginBottom:"28px"},heroBadgeDot:{width:"7px",height:"7px",borderRadius:"50%",background:"#138808",animation:"pulse 2s infinite"},heroTitle:{fontSize:"3.2rem",fontWeight:800,lineHeight:1.15,marginBottom:"20px",color:"var(--text-primary)"},heroTitleAccent:{background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},heroSubtitle:{fontSize:"1.15rem",lineHeight:1.7,color:"var(--text-secondary)",marginBottom:"36px",fontFamily:"var(--font-primary)"},terminal:{maxWidth:"620px",margin:"0 auto 36px",borderRadius:"var(--radius-lg)",overflow:"hidden",border:"1px solid var(--border-primary)",boxShadow:"0 8px 40px rgba(0,0,0,0.5)",textAlign:"left"},terminalHeader:{display:"flex",alignItems:"center",gap:"12px",padding:"12px 18px",background:"rgba(26,26,46,0.8)",borderBottom:"1px solid var(--border-subtle)"},terminalDots:{display:"flex",gap:"7px"},terminalDot:{width:"11px",height:"11px",borderRadius:"50%"},terminalTitle:{fontSize:"0.78rem",color:"var(--text-muted)",fontWeight:500},terminalBody:{padding:"22px 20px",background:"var(--bg-primary)",minHeight:"100px",fontFamily:"'Courier New', monospace"},terminalLine:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"16px",fontSize:"0.9rem"},terminalPrompt:{color:"#138808",fontWeight:700,flexShrink:0},terminalTyped:{color:"var(--text-primary)"},terminalCursor:{color:"var(--accent-saffron)",fontWeight:100,animation:"blink 1s step-end infinite"},terminalResponse:{display:"flex",gap:"8px",fontSize:"0.85rem",lineHeight:1.6},terminalBot:{color:"#FF9933",fontWeight:700,flexShrink:0},terminalText:{color:"var(--text-secondary)"},heroCtas:{display:"flex",gap:"16px",justifyContent:"center",flexWrap:"wrap"},heroBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 36px",background:"var(--gradient-primary)",color:"#0D0D0D",border:"none",borderRadius:"var(--radius-md)",fontSize:"1.05rem",fontWeight:700,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow-strong)",transition:"all 0.3s"},heroBtn2:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 32px",background:"transparent",color:"var(--text-primary)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-md)",fontSize:"1rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all 0.3s"},trustBar:{display:"flex",justifyContent:"center",gap:"48px",flexWrap:"wrap",padding:"32px",borderTop:"1px solid var(--border-subtle)",borderBottom:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},trustItem:{display:"flex",alignItems:"center",gap:"12px"},trustIcon:{fontSize:"1.6rem"},trustLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},trustLabelHi:{fontSize:"0.72rem",color:"var(--text-muted)",fontFamily:"var(--font-hindi)"},section:{padding:"100px 32px"},sectionInner:{maxWidth:"1100px",margin:"0 auto"},sectionBadge:{display:"inline-block",padding:"6px 16px",background:"rgba(255,153,51,0.08)",border:"1px solid rgba(255,153,51,0.18)",borderRadius:"var(--radius-full)",fontSize:"0.8rem",color:"var(--accent-saffron)",fontWeight:600,marginBottom:"16px"},sectionTitle:{fontSize:"2.2rem",fontWeight:800,color:"var(--text-primary)",marginBottom:"12px"},sectionSubtitle:{fontSize:"1.05rem",color:"var(--text-muted)",marginBottom:"48px",maxWidth:"600px"},timeline:{display:"flex",flexDirection:"column",maxWidth:"700px"},timelineItem:{display:"flex",gap:"20px"},timelineLeft:{display:"flex",flexDirection:"column",alignItems:"center",width:"24px",flexShrink:0},timelineDot:{width:"14px",height:"14px",borderRadius:"50%",flexShrink:0},timelineLine:{width:"2px",flex:1,background:"var(--border-subtle)",margin:"4px 0"},timelineCard:{flex:1,padding:"20px 24px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",marginBottom:"16px",transition:"all 0.3s"},timelineTime:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.78rem",color:"var(--text-muted)",marginBottom:"8px",fontWeight:600},timelineIcon:{fontSize:"1.1rem"},timelineEventTitle:{fontSize:"0.95rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"6px"},timelineDesc:{fontSize:"0.82rem",color:"var(--text-muted)",lineHeight:1.5},voiceGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px"},voiceCard:{padding:"28px 24px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",textAlign:"center",transition:"all 0.3s"},voiceMicWrap:{display:"flex",justifyContent:"center",marginBottom:"16px"},voiceMic:{width:"72px",height:"72px",borderRadius:"50%",background:"rgba(255,153,51,0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 2s infinite"},voiceFeatureIcon:{fontSize:"2.5rem",marginBottom:"16px"},voiceCardTitle:{fontSize:"1rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},voiceCardDesc:{fontSize:"0.82rem",color:"var(--text-muted)",lineHeight:1.5},packsRow:{display:"flex",gap:"10px",marginBottom:"28px",flexWrap:"wrap"},packTab:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 22px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-full)",color:"var(--text-secondary)",fontSize:"0.88rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all 0.25s"},packDetail:{display:"flex",gap:"40px",padding:"36px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-xl)",flexWrap:"wrap",alignItems:"center"},packDetailLeft:{textAlign:"center",minWidth:"160px"},packDetailIcon:{fontSize:"3.5rem",display:"block",marginBottom:"10px"},packDetailName:{fontSize:"1.2rem",fontWeight:700,color:"var(--text-primary)"},packDetailNameHi:{fontSize:"0.85rem",color:"var(--text-muted)",fontFamily:"var(--font-hindi)"},packDetailTools:{flex:1,display:"flex",flexWrap:"wrap",gap:"10px"},packToolChip:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 16px",background:"rgba(255,255,255,0.03)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-full)",fontSize:"0.82rem",color:"var(--text-secondary)",fontWeight:500,animation:"fadeIn 0.3s ease-out both"},compareGrid:{display:"flex",flexDirection:"column",gap:"16px",maxWidth:"800px"},compareCard:{padding:"24px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)"},compareRow:{display:"flex",alignItems:"stretch",gap:"16px",flexWrap:"wrap"},compareCompetitor:{flex:1,padding:"16px",background:"rgba(239,68,68,0.04)",border:"1px solid rgba(239,68,68,0.12)",borderRadius:"var(--radius-md)",minWidth:"250px"},compareVs:{display:"flex",alignItems:"center",fontWeight:800,color:"var(--text-muted)",fontSize:"0.9rem"},compareSamarthya:{flex:1,padding:"16px",background:"rgba(19,136,8,0.04)",border:"1px solid rgba(19,136,8,0.15)",borderRadius:"var(--radius-md)",minWidth:"250px"},compareName:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.85rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},compareSmLogo:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",borderRadius:"4px",background:"var(--gradient-primary)",color:"#0D0D0D",fontSize:"0.7rem",fontFamily:"var(--font-hindi)",fontWeight:700},compareText:{fontSize:"0.85rem",color:"var(--text-muted)",fontStyle:"italic",lineHeight:1.5},compareTextWin:{fontSize:"0.85rem",color:"#138808",fontWeight:500,lineHeight:1.5},pricingGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"20px",marginBottom:"32px"},pricingCard:{padding:"32px 28px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-xl)",position:"relative",transition:"all 0.3s"},pricingPopular:{border:"2px solid var(--accent-saffron)",boxShadow:"var(--shadow-glow)"},popularBadge:{position:"absolute",top:"-12px",left:"50%",transform:"translateX(-50%)",padding:"4px 16px",background:"var(--gradient-primary)",color:"#0D0D0D",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:700,whiteSpace:"nowrap"},pricingName:{fontSize:"1.2rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"2px"},pricingNameHi:{fontSize:"0.8rem",color:"var(--text-muted)",fontFamily:"var(--font-hindi)",marginBottom:"16px"},pricingPrice:{display:"flex",alignItems:"baseline",gap:"4px",marginBottom:"24px"},pricingAmount:{fontSize:"2.4rem",fontWeight:800},pricingPeriod:{fontSize:"0.9rem",color:"var(--text-muted)"},pricingFeatures:{listStyle:"none",marginBottom:"24px"},pricingFeature:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 0",fontSize:"0.88rem",color:"var(--text-secondary)",borderBottom:"1px solid var(--border-subtle)"},pricingCta:{width:"100%",padding:"14px",background:"var(--bg-hover)",color:"var(--text-primary)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-md)",fontSize:"0.95rem",fontWeight:700,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all 0.3s"},paymentMethods:{display:"flex",alignItems:"center",gap:"10px",justifyContent:"center",flexWrap:"wrap"},paymentLabel:{fontSize:"0.82rem",color:"var(--text-muted)",fontWeight:500},paymentBadge:{padding:"5px 14px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-full)",fontSize:"0.75rem",color:"var(--text-secondary)",fontWeight:600},ctaSection:{position:"relative",padding:"100px 32px",textAlign:"center",background:"linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%)",overflow:"hidden"},ctaOrb:{position:"absolute",width:"500px",height:"500px",borderRadius:"50%",background:"radial-gradient(circle, rgba(255,153,51,0.08) 0%, transparent 60%)",top:"50%",left:"50%",transform:"translate(-50%, -50%)",animation:"float 8s ease-in-out infinite"},ctaTitle:{position:"relative",fontSize:"2.4rem",fontWeight:800,color:"var(--text-primary)",marginBottom:"12px"},ctaSubtitle:{position:"relative",fontSize:"1.05rem",color:"var(--text-muted)",marginBottom:"32px"},ctaBtn:{position:"relative",display:"inline-flex",alignItems:"center",gap:"10px",padding:"18px 44px",background:"var(--gradient-primary)",color:"#0D0D0D",border:"none",borderRadius:"var(--radius-md)",fontSize:"1.15rem",fontWeight:800,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow-strong)",transition:"all 0.3s"},footer:{borderTop:"1px solid var(--border-subtle)",padding:"40px 32px",background:"var(--bg-primary)"},footerInner:{maxWidth:"1100px",margin:"0 auto",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"12px"},footerBrand:{display:"flex",alignItems:"center",gap:"8px"},footerLogo:{fontSize:"1.5rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},footerName:{fontSize:"1.1rem",fontWeight:700,color:"var(--text-primary)"},footerTagline:{fontSize:"0.85rem",color:"var(--text-muted)"},footerLinks:{display:"flex",gap:"16px"},footerLink:{color:"var(--text-muted)",width:"36px",height:"36px",borderRadius:"var(--radius-md)",border:"1px solid var(--border-subtle)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",textDecoration:"none"},footerCopy:{fontSize:"0.75rem",color:"var(--text-muted)"}},Vr=[{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:""}]}],L2={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 q2({user:i}){const[o,c]=E.useState(Vr.reduce((y,b)=>({...y,[b.id]:!0}),{})),[s,d]=E.useState("all"),p=y=>{c(b=>({...b,[y]:!b[y]}))},h=Vr.map(y=>({...y,items:s==="all"?y.items:y.items.filter(b=>b.status===s)})).filter(y=>y.items.length>0),x=Vr.flatMap(y=>y.items).filter(y=>y.status==="live").length,v=Vr.flatMap(y=>y.items).filter(y=>y.status==="coming").length;return u.jsxs("div",{style:Ee.container,children:[u.jsxs("div",{style:Ee.header,children:[u.jsxs("h1",{style:Ee.title,children:[u.jsx(Sn,{size:28,color:"#FF9933"}),"Integrations"]}),u.jsxs("p",{style:Ee.subtitle,children:[u.jsx("span",{style:Ee.countBadge,children:x})," live integrations with real tools & services.",u.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),u.jsx("div",{style:Ee.filterBar,children:[{key:"all",label:`All (${x+v})`},{key:"live",label:`✅ Live (${x})`},{key:"coming",label:`🔜 Coming (${v})`}].map(y=>u.jsx("button",{onClick:()=>d(y.key),style:{...Ee.filterBtn,...s===y.key?Ee.filterBtnActive:{}},children:y.label},y.key))}),h.map(y=>u.jsxs("div",{style:Ee.category,children:[u.jsxs("button",{onClick:()=>p(y.id),style:Ee.categoryHeader,children:[u.jsxs("div",{children:[u.jsx("h2",{style:Ee.categoryTitle,children:y.title}),u.jsx("p",{style:Ee.categorySubtitle,children:y.subtitle})]}),o[y.id]?u.jsx(Mx,{size:20}):u.jsx(Dx,{size:20})]}),o[y.id]&&u.jsx("div",{style:Ee.grid,children:y.items.map((b,g)=>{const z=L2[b.status];return u.jsxs("div",{style:Ee.card,children:[u.jsxs("div",{style:Ee.cardTop,children:[u.jsx("span",{style:Ee.cardIcon,children:b.icon}),u.jsxs("div",{style:Ee.cardInfo,children:[u.jsx("h3",{style:Ee.cardName,children:b.name}),u.jsx("p",{style:Ee.cardNameHi,children:b.nameHi})]}),b.tag&&u.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})]}),u.jsx("p",{style:Ee.cardDesc,children:b.desc}),u.jsx("div",{style:{...Ee.statusBadge,background:z.bg,color:z.color},children:z.label})]},g)})})]},y.id)),u.jsxs("div",{style:Ee.footerCTA,children:[u.jsx("h2",{style:Ee.ctaTitle,children:"🔧 Want to add more integrations?"}),u.jsxs("p",{style:Ee.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",u.jsx("code",{style:Ee.code,children:"toolRegistry.js"})]}),u.jsxs("div",{style:Ee.ctaButtons,children:[u.jsxs("div",{style:Ee.ctaCard,children:[u.jsx("span",{style:Ee.ctaIcon,children:"📧"}),u.jsx("strong",{children:"Email Setup"}),u.jsx("p",{style:Ee.ctaSmall,children:"Add Gmail App Password to .env"})]}),u.jsxs("div",{style:Ee.ctaCard,children:[u.jsx("span",{style:Ee.ctaIcon,children:"📱"}),u.jsx("strong",{children:"WhatsApp Setup"}),u.jsx("p",{style:Ee.ctaSmall,children:"Meta Business API token"})]}),u.jsxs("div",{style:Ee.ctaCard,children:[u.jsx("span",{style:Ee.ctaIcon,children:"🏠"}),u.jsx("strong",{children:"Offline Mode"}),u.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"}},Zu={folder:{icon:Dm,color:"#FF9933"},txt:{icon:Ku,color:"#94a3b8"},md:{icon:Ku,color:"#60a5fa"},json:{icon:Gr,color:"#fbbf24"},js:{icon:Gr,color:"#fbbf24"},html:{icon:Gr,color:"#f97316"},css:{icon:Gr,color:"#38bdf8"},png:{icon:qu,color:"#a78bfa"},jpg:{icon:qu,color:"#a78bfa"},jpeg:{icon:qu,color:"#a78bfa"},pdf:{icon:Nh,color:"#ef4444"},default:{icon:Nh,color:"#64748b"}};function G2(i){return i.type==="folder"?Zu.folder:Zu[i.extension]||Zu.default}function sm(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function Y2(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 V2({user:i}){const[o,c]=E.useState([]),[s,d]=E.useState(""),[p,h]=E.useState(!1),[x,v]=E.useState(null),[y,b]=E.useState(null),[g,z]=E.useState(!1),[D,T]=E.useState(""),[U,_]=E.useState(""),V=E.useRef(null);E.useEffect(()=>{K(),X()},[s]);const K=async()=>{h(!0),_("");try{const F=await gn.list(s);c(F.data.items||[])}catch(F){_(F.response?.data?.error||"Failed to load files"),c([])}finally{h(!1)}},X=async()=>{try{const F=await gn.getStats();v(F.data.stats)}catch{}},ie=F=>{F.type==="folder"?d(F.path):xe(F)},fe=()=>{const F=s.split("/");F.pop(),d(F.join("/"))},xe=async F=>{try{const he=await gn.read(F.path);b(he.data)}catch{_("Cannot preview this file")}},J=F=>{const he=gn.download(F.path);window.open(he,"_blank")},_e=async F=>{const he=F.type==="folder"?`Delete folder "${F.name}" and all its contents?`:`Delete file "${F.name}"?`;if(window.confirm(he))try{await gn.deleteFile(F.path),K(),X()}catch(Se){_(Se.response?.data?.error||"Delete failed")}},Me=async()=>{if(D.trim())try{await gn.mkdir(D.trim(),s),T(""),z(!1),K()}catch(F){_(F.response?.data?.error||"Failed to create folder")}},ot=async F=>{const he=F.target.files?.[0];if(!he)return;const Se=new FileReader;Se.onload=async()=>{try{await gn.upload(he.name,Se.result,s),K(),X()}catch(ke){_(ke.response?.data?.error||"Upload failed")}},he.type.startsWith("text/")||["application/json","application/javascript"].includes(he.type)?Se.readAsText(he):Se.readAsDataURL(he),F.target.value=""},$e=["My Stuff",...s.split("/").filter(Boolean)];return u.jsxs("div",{style:ye.container,children:[u.jsxs("div",{style:ye.header,children:[u.jsxs("div",{style:ye.headerLeft,children:[u.jsx(sc,{size:24,color:"#FF9933"}),u.jsx("h1",{style:ye.title,children:"My Stuff"}),x&&u.jsxs("span",{style:ye.statsTag,children:[x.fileCount," files · ",x.folderCount," folders · ",x.totalSizeFormatted]})]}),u.jsxs("div",{style:ye.headerActions,children:[u.jsxs("button",{onClick:()=>z(!0),style:ye.actionBtn,children:[u.jsx(Hh,{size:16})," New Folder"]}),u.jsxs("button",{onClick:()=>V.current?.click(),style:ye.actionBtn,children:[u.jsx(Vv,{size:16})," Upload"]}),u.jsx("button",{onClick:K,style:ye.actionBtnIcon,children:u.jsx(Tv,{size:16})}),u.jsx("input",{ref:V,type:"file",onChange:ot,style:{display:"none"}})]})]}),u.jsx("div",{style:ye.breadcrumb,children:$e.map((F,he)=>u.jsxs(ao.Fragment,{children:[he>0&&u.jsx(hi,{size:14,color:"#64748b"}),u.jsx("button",{onClick:()=>{if(he===0)d("");else{const Se=s.split("/").slice(0,he).join("/");d(Se)}},style:{...ye.crumbItem,color:he===$e.length-1?"#FF9933":"#94a3b8"},children:F})]},he))}),g&&u.jsxs("div",{style:ye.newFolderRow,children:[u.jsx(Hh,{size:18,color:"#FF9933"}),u.jsx("input",{type:"text",value:D,onChange:F=>T(F.target.value),onKeyDown:F=>F.key==="Enter"&&Me(),placeholder:"Folder name...",style:ye.newFolderInput,autoFocus:!0}),u.jsx("button",{onClick:Me,style:ye.newFolderOk,children:"Create"}),u.jsx("button",{onClick:()=>{z(!1),T("")},style:ye.newFolderCancel,children:u.jsx(qh,{size:16})})]}),U&&u.jsxs("div",{style:ye.error,children:["❌ ",U,u.jsx("button",{onClick:()=>_(""),style:ye.errorClose,children:"×"})]}),s&&u.jsxs("button",{onClick:fe,style:ye.backBtn,children:[u.jsx(jx,{size:16})," Back"]}),p?u.jsx("div",{style:ye.loadingBox,children:"Loading..."}):o.length===0?u.jsxs("div",{style:ye.emptyBox,children:[u.jsx(Dm,{size:48,color:"#333"}),u.jsx("p",{style:ye.emptyText,children:"This folder is empty"}),u.jsx("p",{style:ye.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):u.jsx("div",{style:ye.fileGrid,children:o.map((F,he)=>{const Se=G2(F),ke=Se.icon;return u.jsxs("div",{style:ye.fileCard,onDoubleClick:()=>ie(F),children:[u.jsxs("div",{style:ye.fileCardTop,onClick:()=>ie(F),children:[u.jsx(ke,{size:32,color:Se.color}),u.jsxs("div",{style:ye.fileInfo,children:[u.jsx("span",{style:ye.fileName,children:F.name}),u.jsxs("span",{style:ye.fileMeta,children:[F.type==="folder"?"Folder":sm(F.size),F.modified&&` · ${Y2(F.modified)}`]})]})]}),u.jsxs("div",{style:ye.fileActions,children:[F.type==="file"&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>xe(F),style:ye.fileActionBtn,title:"Preview",children:u.jsx(wm,{size:14})}),u.jsx("button",{onClick:()=>J(F),style:ye.fileActionBtn,title:"Download",children:u.jsx(Yx,{size:14})})]}),u.jsx("button",{onClick:()=>_e(F),style:{...ye.fileActionBtn,...ye.deleteBtn},title:"Delete",children:u.jsx(km,{size:14})})]})]},he)})}),y&&u.jsx("div",{style:ye.modalOverlay,onClick:()=>b(null),children:u.jsxs("div",{style:ye.modal,onClick:F=>F.stopPropagation(),children:[u.jsxs("div",{style:ye.modalHeader,children:[u.jsxs("h3",{style:ye.modalTitle,children:[u.jsx(Ku,{size:18,color:"#FF9933"}),y.name]}),u.jsxs("span",{style:ye.modalMeta,children:[sm(y.size)," · ",y.extension?.toUpperCase()]}),u.jsx("button",{onClick:()=>b(null),style:ye.modalClose,children:u.jsx(qh,{size:20})})]}),u.jsx("pre",{style:ye.previewContent,children:y.content})]})})]})}const ye={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"}};function X2(){const[i,o]=E.useState(null),[c,s]=E.useState(!0),[d,p]=E.useState(!0),[h,x]=E.useState(!1);E.useEffect(()=>{v()},[]);const v=async()=>{if(localStorage.getItem("samarthya_token"))try{const D=await ol.getProfile();o(D.data.user)}catch{localStorage.removeItem("samarthya_token")}s(!1)},y=(z,D)=>{localStorage.setItem("samarthya_token",D),o(z),x(!1)},b=()=>{localStorage.removeItem("samarthya_token"),o(null),x(!1)},g=z=>{o(z)};return c?u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",background:"var(--bg-primary)",flexDirection:"column",gap:"16px"},children:[u.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),u.jsx("span",{style:{color:"var(--text-muted)",fontSize:"0.9rem"},children:"Loading SamarthyaBot..."})]}):i?u.jsx(ix,{children:u.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[u.jsx(Kv,{user:i,isOpen:d,onToggle:()=>p(!d),onLogout:b}),u.jsx("main",{style:{flex:1,minHeight:"100vh"},children:u.jsxs(M1,{children:[u.jsx(na,{path:"/",element:u.jsx(w2,{user:i})}),u.jsx(na,{path:"/chat",element:u.jsx(lm,{user:i})}),u.jsx(na,{path:"/chat/:id",element:u.jsx(lm,{user:i})}),u.jsx(na,{path:"/settings",element:u.jsx(D2,{user:i,onUpdate:g})}),u.jsx(na,{path:"/audit",element:u.jsx(_2,{user:i})}),u.jsx(na,{path:"/tools",element:u.jsx(k2,{user:i})}),u.jsx(na,{path:"/integrations",element:u.jsx(q2,{user:i})}),u.jsx(na,{path:"/my-stuff",element:u.jsx(V2,{user:i})}),u.jsx(na,{path:"*",element:u.jsx(O1,{to:"/"})})]})})]})}):h?u.jsx(B2,{onLogin:y,onBack:()=>x(!1)}):u.jsx(U2,{onNavigateToLogin:()=>x(!0)})}Hg.createRoot(document.getElementById("root")).render(u.jsx(ao.StrictMode,{children:u.jsx(X2,{})}));