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.
- package/README.md +92 -0
- package/backend/.env.example +23 -0
- package/backend/bin/samarthya.js +384 -0
- package/backend/config/constants.js +71 -0
- package/backend/config/db.js +13 -0
- package/backend/controllers/auditController.js +86 -0
- package/backend/controllers/authController.js +154 -0
- package/backend/controllers/chatController.js +158 -0
- package/backend/controllers/fileController.js +268 -0
- package/backend/controllers/platformController.js +54 -0
- package/backend/controllers/screenController.js +91 -0
- package/backend/controllers/telegramController.js +120 -0
- package/backend/controllers/toolsController.js +56 -0
- package/backend/controllers/whatsappController.js +214 -0
- package/backend/fix_toolRegistry.js +25 -0
- package/backend/middleware/auth.js +28 -0
- package/backend/models/AuditLog.js +28 -0
- package/backend/models/BackgroundJob.js +13 -0
- package/backend/models/Conversation.js +40 -0
- package/backend/models/Memory.js +17 -0
- package/backend/models/User.js +24 -0
- package/backend/package-lock.json +3766 -0
- package/backend/package.json +41 -0
- package/backend/public/assets/index-Ckf0GO1B.css +1 -0
- package/backend/public/assets/index-Do4jNsZS.js +19 -0
- package/backend/public/assets/index-Ui-pyZvK.js +25 -0
- package/backend/public/favicon.svg +17 -0
- package/backend/public/index.html +18 -0
- package/backend/public/manifest.json +16 -0
- package/backend/routes/audit.js +9 -0
- package/backend/routes/auth.js +11 -0
- package/backend/routes/chat.js +11 -0
- package/backend/routes/files.js +14 -0
- package/backend/routes/platform.js +18 -0
- package/backend/routes/screen.js +10 -0
- package/backend/routes/telegram.js +8 -0
- package/backend/routes/tools.js +9 -0
- package/backend/routes/whatsapp.js +11 -0
- package/backend/server.js +134 -0
- package/backend/services/background/backgroundService.js +81 -0
- package/backend/services/llm/llmService.js +444 -0
- package/backend/services/memory/memoryService.js +159 -0
- package/backend/services/planner/plannerService.js +182 -0
- package/backend/services/security/securityService.js +166 -0
- package/backend/services/telegram/telegramService.js +49 -0
- package/backend/services/tools/toolRegistry.js +879 -0
- package/backend/services/whatsapp/whatsappService.js +254 -0
- package/backend/test_email.js +29 -0
- package/backend/test_parser.js +10 -0
- package/package.json +49 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const h of p.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function c(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function s(f){if(f.ep)return;f.ep=!0;const p=c(f);fetch(f.href,p)}})();function lm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var wu={exports:{}},si={};var ph;function Tg(){if(ph)return si;ph=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(s,f,p){var h=null;if(p!==void 0&&(h=""+p),f.key!==void 0&&(h=""+f.key),"key"in f){p={};for(var v in f)v!=="key"&&(p[v]=f[v])}else p=f;return f=p.ref,{$$typeof:i,type:s,key:h,ref:f!==void 0?f:null,props:p}}return si.Fragment=o,si.jsx=c,si.jsxs=c,si}var hh;function Ag(){return hh||(hh=1,wu.exports=Tg()),wu.exports}var u=Ag(),Du={exports:{}},ce={};var mh;function Cg(){if(mh)return ce;mh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),C=Symbol.iterator;function _(S){return S===null||typeof S!="object"?null:(S=C&&S[C]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,D={};function Z(S,M,Y){this.props=S,this.context=M,this.refs=D,this.updater=Y||A}Z.prototype.isReactComponent={},Z.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")},Z.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function P(){}P.prototype=Z.prototype;function X(S,M,Y){this.props=S,this.context=M,this.refs=D,this.updater=Y||A}var ne=X.prototype=new P;ne.constructor=X,U(ne,Z.prototype),ne.isPureReactComponent=!0;var fe=Array.isArray;function ve(){}var K={H:null,A:null,T:null,S:null},_e=Object.prototype.hasOwnProperty;function Me(S,M,Y){var V=Y.ref;return{$$typeof:i,type:S,key:M,ref:V!==void 0?V: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 pe=/\/+/g;function Se(S,M){return typeof S=="object"&&S!==null&&S.key!=null?F(""+S.key):M.toString(36)}function Oe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ve,ve):(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,V,$){var ue=typeof S;(ue==="undefined"||ue==="boolean")&&(S=null);var Ce=!1;if(S===null)Ce=!0;else switch(ue){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(S.$$typeof){case i:case o:Ce=!0;break;case x:return Ce=S._init,B(Ce(S._payload),M,Y,V,$)}}if(Ce)return $=$(S),Ce=V===""?"."+Se(S,0):V,fe($)?(Y="",Ce!=null&&(Y=Ce.replace(pe,"$&/")+"/"),B($,M,Y,"",function(ml){return ml})):$!=null&&($e($)&&($=ot($,Y+($.key==null||S&&S.key===$.key?"":(""+$.key).replace(pe,"$&/")+"/")+Ce)),M.push($)),1;Ce=0;var st=V===""?".":V+":";if(fe(S))for(var We=0;We<S.length;We++)V=S[We],ue=st+Se(V,We),Ce+=B(V,M,Y,ue,$);else if(We=_(S),typeof We=="function")for(S=We.call(S),We=0;!(V=S.next()).done;)V=V.value,ue=st+Se(V,We++),Ce+=B(V,M,Y,ue,$);else if(ue==="object"){if(typeof S.then=="function")return B(Oe(S),M,Y,V,$);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 Ce}function Q(S,M,Y){if(S==null)return S;var V=[],$=0;return B(S,V,"","",function(ue){return M.call(Y,ue,$++)}),V}function te(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:Q,forEach:function(S,M,Y){Q(S,function(){M.apply(this,arguments)},Y)},count:function(S){var M=0;return Q(S,function(){M++}),M},toArray:function(S){return Q(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 ce.Activity=g,ce.Children=W,ce.Component=Z,ce.Fragment=c,ce.Profiler=f,ce.PureComponent=X,ce.StrictMode=s,ce.Suspense=b,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ce.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},ce.cache=function(S){return function(){return S.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(S,M,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=U({},S.props),$=S.key;if(M!=null)for(ue in M.key!==void 0&&($=""+M.key),M)!_e.call(M,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&M.ref===void 0||(V[ue]=M[ue]);var ue=arguments.length-2;if(ue===1)V.children=Y;else if(1<ue){for(var Ce=Array(ue),st=0;st<ue;st++)Ce[st]=arguments[st+2];V.children=Ce}return Me(S.type,$,V)},ce.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},ce.createElement=function(S,M,Y){var V,$={},ue=null;if(M!=null)for(V in M.key!==void 0&&(ue=""+M.key),M)_e.call(M,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&($[V]=M[V]);var Ce=arguments.length-2;if(Ce===1)$.children=Y;else if(1<Ce){for(var st=Array(Ce),We=0;We<Ce;We++)st[We]=arguments[We+2];$.children=st}if(S&&S.defaultProps)for(V in Ce=S.defaultProps,Ce)$[V]===void 0&&($[V]=Ce[V]);return Me(S,ue,$)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(S){return{$$typeof:v,render:S}},ce.isValidElement=$e,ce.lazy=function(S){return{$$typeof:x,_payload:{_status:-1,_result:S},_init:te}},ce.memo=function(S,M){return{$$typeof:y,type:S,compare:M===void 0?null:M}},ce.startTransition=function(S){var M=K.T,Y={};K.T=Y;try{var V=S(),$=K.S;$!==null&&$(Y,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(ve,Ae)}catch(ue){Ae(ue)}finally{M!==null&&Y.types!==null&&(M.types=Y.types),K.T=M}},ce.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ce.use=function(S){return K.H.use(S)},ce.useActionState=function(S,M,Y){return K.H.useActionState(S,M,Y)},ce.useCallback=function(S,M){return K.H.useCallback(S,M)},ce.useContext=function(S){return K.H.useContext(S)},ce.useDebugValue=function(){},ce.useDeferredValue=function(S,M){return K.H.useDeferredValue(S,M)},ce.useEffect=function(S,M){return K.H.useEffect(S,M)},ce.useEffectEvent=function(S){return K.H.useEffectEvent(S)},ce.useId=function(){return K.H.useId()},ce.useImperativeHandle=function(S,M,Y){return K.H.useImperativeHandle(S,M,Y)},ce.useInsertionEffect=function(S,M){return K.H.useInsertionEffect(S,M)},ce.useLayoutEffect=function(S,M){return K.H.useLayoutEffect(S,M)},ce.useMemo=function(S,M){return K.H.useMemo(S,M)},ce.useOptimistic=function(S,M){return K.H.useOptimistic(S,M)},ce.useReducer=function(S,M,Y){return K.H.useReducer(S,M,Y)},ce.useRef=function(S){return K.H.useRef(S)},ce.useState=function(S){return K.H.useState(S)},ce.useSyncExternalStore=function(S,M,Y){return K.H.useSyncExternalStore(S,M,Y)},ce.useTransition=function(){return K.H.useTransition()},ce.version="19.2.4",ce}var yh;function Pu(){return yh||(yh=1,Du.exports=Cg()),Du.exports}var E=Pu();const eo=lm(E);var _u={exports:{}},ui={},Ou={exports:{}},ku={};var gh;function zg(){return gh||(gh=1,(function(i){function o(B,Q){var te=B.length;B.push(Q);e:for(;0<te;){var Ae=te-1>>>1,W=B[Ae];if(0<f(W,Q))B[Ae]=Q,B[te]=W,te=Ae;else break e}}function c(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var Q=B[0],te=B.pop();if(te!==Q){B[0]=te;e:for(var Ae=0,W=B.length,S=W>>>1;Ae<S;){var M=2*(Ae+1)-1,Y=B[M],V=M+1,$=B[V];if(0>f(Y,te))V<W&&0>f($,Y)?(B[Ae]=$,B[V]=te,Ae=V):(B[Ae]=Y,B[M]=te,Ae=M);else if(V<W&&0>f($,te))B[Ae]=$,B[V]=te,Ae=V;else break e}}return Q}function f(B,Q){var te=B.sortIndex-Q.sortIndex;return te!==0?te:B.id-Q.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,v=h.now();i.unstable_now=function(){return h.now()-v}}var b=[],y=[],x=1,g=null,C=3,_=!1,A=!1,U=!1,D=!1,Z=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ne(B){for(var Q=c(y);Q!==null;){if(Q.callback===null)s(y);else if(Q.startTime<=B)s(y),Q.sortIndex=Q.expirationTime,o(b,Q);else break;Q=c(y)}}function fe(B){if(U=!1,ne(B),!A)if(c(b)!==null)A=!0,ve||(ve=!0,F());else{var Q=c(y);Q!==null&&Oe(fe,Q.startTime-B)}}var ve=!1,K=-1,_e=5,Me=-1;function ot(){return D?!0:!(i.unstable_now()-Me<_e)}function $e(){if(D=!1,ve){var B=i.unstable_now();Me=B;var Q=!0;try{e:{A=!1,U&&(U=!1,P(K),K=-1),_=!0;var te=C;try{t:{for(ne(B),g=c(b);g!==null&&!(g.expirationTime>B&&ot());){var Ae=g.callback;if(typeof Ae=="function"){g.callback=null,C=g.priorityLevel;var W=Ae(g.expirationTime<=B);if(B=i.unstable_now(),typeof W=="function"){g.callback=W,ne(B),Q=!0;break t}g===c(b)&&s(b),ne(B)}else s(b);g=c(b)}if(g!==null)Q=!0;else{var S=c(y);S!==null&&Oe(fe,S.startTime-B),Q=!1}}break e}finally{g=null,C=te,_=!1}Q=void 0}}finally{Q?F():ve=!1}}}var F;if(typeof X=="function")F=function(){X($e)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,Se=pe.port2;pe.port1.onmessage=$e,F=function(){Se.postMessage(null)}}else F=function(){Z($e,0)};function Oe(B,Q){K=Z(function(){B(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(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 C},i.unstable_next=function(B){switch(C){case 1:case 2:case 3:var Q=3;break;default:Q=C}var te=C;C=Q;try{return B()}finally{C=te}},i.unstable_requestPaint=function(){D=!0},i.unstable_runWithPriority=function(B,Q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var te=C;C=B;try{return Q()}finally{C=te}},i.unstable_scheduleCallback=function(B,Q,te){var Ae=i.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Ae+te:Ae):te=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=te+W,B={id:x++,callback:Q,priorityLevel:B,startTime:te,expirationTime:W,sortIndex:-1},te>Ae?(B.sortIndex=te,o(y,B),c(b)===null&&B===c(y)&&(U?(P(K),K=-1):U=!0,Oe(fe,te-Ae))):(B.sortIndex=W,o(b,B),A||_||(A=!0,ve||(ve=!0,F()))),B},i.unstable_shouldYield=ot,i.unstable_wrapCallback=function(B){var Q=C;return function(){var te=C;C=Q;try{return B.apply(this,arguments)}finally{C=te}}}})(ku)),ku}var vh;function wg(){return vh||(vh=1,Ou.exports=zg()),Ou.exports}var Bu={exports:{}},ht={};var xh;function Dg(){if(xh)return ht;xh=1;var i=Pu();function o(b){var y="https://react.dev/errors/"+b;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+b+"; 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},f=Symbol.for("react.portal");function p(b,y,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:g==null?null:""+g,children:b,containerInfo:y,implementation:x}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,y){if(b==="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(b,y){var x=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(b,y,null,x)},ht.flushSync=function(b){var y=h.T,x=s.p;try{if(h.T=null,s.p=2,b)return b()}finally{h.T=y,s.p=x,s.d.f()}},ht.preconnect=function(b,y){typeof b=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(b,y))},ht.prefetchDNS=function(b){typeof b=="string"&&s.d.D(b)},ht.preinit=function(b,y){if(typeof b=="string"&&y&&typeof y.as=="string"){var x=y.as,g=v(x,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,_=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?s.d.S(b,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:g,integrity:C,fetchPriority:_}):x==="script"&&s.d.X(b,{crossOrigin:g,integrity:C,fetchPriority:_,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(b,y){if(typeof b=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=v(y.as,y.crossOrigin);s.d.M(b,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(b)},ht.preload=function(b,y){if(typeof b=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,g=v(x,y.crossOrigin);s.d.L(b,x,{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(b,y){if(typeof b=="string")if(y){var x=v(y.as,y.crossOrigin);s.d.m(b,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(b)},ht.requestFormReset=function(b){s.d.r(b)},ht.unstable_batchedUpdates=function(b,y){return b(y)},ht.useFormState=function(b,y,x){return h.H.useFormState(b,y,x)},ht.useFormStatus=function(){return h.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var bh;function _g(){if(bh)return Bu.exports;bh=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(),Bu.exports=Dg(),Bu.exports}var Sh;function Og(){if(Sh)return ui;Sh=1;var i=wg(),o=Pu(),c=_g();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(p(e)!==e)throw Error(s(188))}function 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 b(l),e;if(r===n)return b(l),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=l,n=r;else{for(var d=!1,m=l.child;m;){if(m===a){d=!0,a=l,n=r;break}if(m===n){d=!0,n=l,a=r;break}m=m.sibling}if(!d){for(m=r.child;m;){if(m===a){d=!0,a=r,n=l;break}if(m===n){d=!0,n=r,a=l;break}m=m.sibling}if(!d)throw Error(s(189))}}if(a.alternate!==n)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,C=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),K=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 pe=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case Z:return"Profiler";case D:return"StrictMode";case fe:return"Suspense";case ve:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case X:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K: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 Oe=Array.isArray,B=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},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 V=S(null),$=S(null),ue=S(null),Ce=S(null);function st(e,t){switch(Y(ue,t),Y($,e),Y(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Np(t),e=Hp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(V),Y(V,e)}function We(){M(V),M($),M(ue)}function ml(e){e.memoizedState!==null&&Y(Ce,e);var t=V.current,a=Hp(t,e.type);t!==a&&(Y($,e),Y(V,a))}function Ri(e){$.current===e&&(M(V),M($)),Ce.current===e&&(M(Ce),li._currentValue=te)}var co,fc;function Ia(e){if(co===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);co=t&&t[1]||"",fc=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+co+e+fc}var fo=!1;function po(e,t){if(!e||fo)return"";fo=!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 O=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){O=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){O=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&O&&typeof H.stack=="string")return[H.stack,O.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],m=r[1];if(d&&m){var j=d.split(`
|
|
4
|
+
`),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{fo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ia(a):""}function a0(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 po(e.type,!1);case 11:return po(e.type.render,!1);case 1:return po(e.type,!0);case 31:return Ia("Activity");default:return""}}function dc(e){try{var t="",a=null;do t+=a0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
7
|
+
Error generating stack: `+n.message+`
|
|
8
|
+
`+n.stack}}var ho=Object.prototype.hasOwnProperty,mo=i.unstable_scheduleCallback,yo=i.unstable_cancelCallback,n0=i.unstable_shouldYield,l0=i.unstable_requestPaint,At=i.unstable_now,i0=i.unstable_getCurrentPriorityLevel,pc=i.unstable_ImmediatePriority,hc=i.unstable_UserBlockingPriority,Ei=i.unstable_NormalPriority,r0=i.unstable_LowPriority,mc=i.unstable_IdlePriority,o0=i.log,s0=i.unstable_setDisableYieldValue,yl=null,Ct=null;function Aa(e){if(typeof o0=="function"&&s0(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(yl,e)}catch{}}var zt=Math.clz32?Math.clz32:f0,u0=Math.log,c0=Math.LN2;function f0(e){return e>>>=0,e===0?32:31-(u0(e)/c0|0)|0}var Ti=256,Ai=262144,Ci=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,d=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?l=$a(n):(d&=m,d!==0?l=$a(d):a||(a=m&~e,a!==0&&(l=$a(a))))):(m=n&~r,m!==0?l=$a(m):d!==0?l=$a(d):a||(a=n&~e,a!==0&&(l=$a(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function gl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function d0(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 yc(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function go(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function vl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function p0(e,t,a,n,l,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,j=e.expirationTimes,w=e.hiddenUpdates;for(a=d&~a;0<a;){var L=31-zt(a),G=1<<L;m[L]=0,j[L]=-1;var O=w[L];if(O!==null)for(w[L]=null,L=0;L<O.length;L++){var H=O[L];H!==null&&(H.lane&=-536870913)}a&=~G}n!==0&&gc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function gc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-zt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function vc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-zt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function xc(e,t){var a=t&-t;return a=(a&42)!==0?1:vo(a),(a&(e.suspendedLanes|t))!==0?0:a}function vo(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 xo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:rh(e.type))}function Sc(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Ca=Math.random().toString(36).slice(2),ut="__reactFiber$"+Ca,gt="__reactProps$"+Ca,Rn="__reactContainer$"+Ca,bo="__reactEvents$"+Ca,h0="__reactListeners$"+Ca,m0="__reactHandles$"+Ca,jc="__reactResources$"+Ca,xl="__reactMarker$"+Ca;function So(e){delete e[ut],delete e[gt],delete e[bo],delete e[h0],delete e[m0]}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=Xp(e);e!==null;){if(a=e[ut])return a;e=Xp(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 bl(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[jc];return t||(t=e[jc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[xl]=!0}var Rc=new Set,Ec={};function Pa(e,t){Cn(e,t),Cn(e+"Capture",t)}function Cn(e,t){for(Ec[e]=t,e=0;e<t.length;e++)Rc.add(t[e])}var y0=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]*$"),Tc={},Ac={};function g0(e){return ho.call(Ac,e)?!0:ho.call(Tc,e)?!1:y0.test(e)?Ac[e]=!0:(Tc[e]=!0,!1)}function wi(e,t,a){if(g0(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 Di(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 Cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function v0(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jo(e){if(!e._valueTracker){var t=Cc(e)?"checked":"value";e._valueTracker=v0(e,t,""+e[t])}}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Cc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function _i(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 x0=/[\n"\\]/g;function Ut(e){return e.replace(x0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ro(e,t,a,n,l,r,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Eo(e,d,Ht(t)):a!=null?Eo(e,d,Ht(a)):n!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Ht(m):e.removeAttribute("name")}function wc(e,t,a,n,l,r,d,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){jo(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),jo(e)}function Eo(e,t,a){t==="number"&&_i(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zn(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 Dc(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 _c(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(Oe(n)){if(1<n.length)throw Error(s(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),jo(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 b0=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 Oc(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||b0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function kc(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&&Oc(e,l,n)}else for(var r in t)t.hasOwnProperty(r)&&Oc(e,r,t[r])}function To(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 S0=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"]]),j0=/^[\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 Oi(e){return j0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sa(){}var Ao=null;function Co(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 Bc(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(Ro(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));Ro(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&&zc(n)}break e;case"textarea":Dc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zn(e,!!a.multiple,t,!1)}}}var zo=!1;function Mc(e,t,a){if(zo)return e(t,a);zo=!0;try{var n=e(t);return n}finally{if(zo=!1,(Dn!==null||_n!==null)&&(xr(),Dn&&(t=Dn,e=_n,_n=Dn=null,Bc(t),e)))for(t=0;t<e.length;t++)Bc(e[t])}}function Sl(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"),wo=!1;if(ua)try{var jl={};Object.defineProperty(jl,"passive",{get:function(){wo=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{wo=!1}var za=null,Do=null,ki=null;function Nc(){if(ki)return ki;var e,t=Do,a=t.length,n,l="value"in za?za.value:za.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===l[r-n];n++);return ki=l.slice(e,1<n?1-n:void 0)}function Bi(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 Mi(){return!0}function Hc(){return!1}function vt(e){function t(a,n,l,r,d){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Mi:Hc,this.isPropagationStopped=Hc,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=Mi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=vt(en),Rl=g({},en,{view:0,detail:0}),R0=vt(Rl),_o,Oo,El,Hi=g({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,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!==El&&(El&&e.type==="mousemove"?(_o=e.screenX-El.screenX,Oo=e.screenY-El.screenY):Oo=_o=0,El=e),_o)},movementY:function(e){return"movementY"in e?e.movementY:Oo}}),Uc=vt(Hi),E0=g({},Hi,{dataTransfer:0}),T0=vt(E0),A0=g({},Rl,{relatedTarget:0}),ko=vt(A0),C0=g({},en,{animationName:0,elapsedTime:0,pseudoElement:0}),z0=vt(C0),w0=g({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D0=vt(w0),_0=g({},en,{data:0}),Lc=vt(_0),O0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B0[e])?!!t[e]:!1}function Bo(){return M0}var N0=g({},Rl,{key:function(e){if(e.key){var t=O0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return e.type==="keypress"?Bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=vt(N0),U0=g({},Hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qc=vt(U0),L0=g({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo}),q0=vt(L0),G0=g({},en,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=vt(G0),V0=g({},Hi,{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}),X0=vt(V0),Q0=g({},en,{newState:0,oldState:0}),Z0=vt(Q0),F0=[9,13,27,32],Mo=ua&&"CompositionEvent"in window,Tl=null;ua&&"documentMode"in document&&(Tl=document.documentMode);var W0=ua&&"TextEvent"in window&&!Tl,Gc=ua&&(!Mo||Tl&&8<Tl&&11>=Tl),Yc=" ",Vc=!1;function Xc(e,t){switch(e){case"keyup":return F0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function K0(e,t){switch(e){case"compositionend":return Qc(t);case"keypress":return t.which!==32?null:(Vc=!0,Yc);case"textInput":return e=t.data,e===Yc&&Vc?null:e;default:return null}}function J0(e,t){if(On)return e==="compositionend"||!Mo&&Xc(e,t)?(e=Nc(),ki=Do=za=null,On=!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 Gc&&t.locale!=="ko"?null:t.data;default:return null}}var I0={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 Zc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!I0[e.type]:t==="textarea"}function Fc(e,t,a,n){Dn?_n?_n.push(n):_n=[n]:Dn=n,t=Ar(t,"onChange"),0<t.length&&(a=new Ni("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Al=null,Cl=null;function $0(e){Dp(e,0)}function Ui(e){var t=bl(e);if(zc(t))return e}function Wc(e,t){if(e==="change")return t}var Kc=!1;if(ua){var No;if(ua){var Ho="oninput"in document;if(!Ho){var Jc=document.createElement("div");Jc.setAttribute("oninput","return;"),Ho=typeof Jc.oninput=="function"}No=Ho}else No=!1;Kc=No&&(!document.documentMode||9<document.documentMode)}function Ic(){Al&&(Al.detachEvent("onpropertychange",$c),Cl=Al=null)}function $c(e){if(e.propertyName==="value"&&Ui(Cl)){var t=[];Fc(t,Cl,e,Co(e)),Mc($0,t)}}function P0(e,t,a){e==="focusin"?(Ic(),Al=t,Cl=a,Al.attachEvent("onpropertychange",$c)):e==="focusout"&&Ic()}function ey(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ui(Cl)}function ty(e,t){if(e==="click")return Ui(t)}function ay(e,t){if(e==="input"||e==="change")return Ui(t)}function ny(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:ny;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(!ho.call(t,l)||!wt(e[l],t[l]))return!1}return!0}function Pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ef(e,t){var a=Pc(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=Pc(a)}}function tf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function af(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_i(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=_i(e.document)}return t}function Uo(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 ly=ua&&"documentMode"in document&&11>=document.documentMode,kn=null,Lo=null,wl=null,qo=!1;function nf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qo||kn==null||kn!==_i(n)||(n=kn,"selectionStart"in n&&Uo(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}),wl&&zl(wl,n)||(wl=n,n=Ar(Lo,"onSelect"),0<n.length&&(t=new Ni("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=kn)))}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")},Go={},lf={};ua&&(lf=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(Go[e])return Go[e];if(!Bn[e])return e;var t=Bn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in lf)return Go[e]=t[a];return e}var rf=an("animationend"),of=an("animationiteration"),sf=an("animationstart"),iy=an("transitionrun"),ry=an("transitionstart"),oy=an("transitioncancel"),uf=an("transitionend"),cf=new Map,Yo="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(" ");Yo.push("scrollEnd");function Wt(e,t){cf.set(e,t),Pa(t,[e])}var Li=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,Vo=0;function qi(){for(var e=Mn,t=Vo=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 d=n.pending;d===null?l.next=l:(l.next=d.next,d.next=l),n.pending=l}r!==0&&ff(a,l,r)}}function Gi(e,t,a,n){Lt[Mn++]=e,Lt[Mn++]=t,Lt[Mn++]=a,Lt[Mn++]=n,Vo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Xo(e,t,a,n){return Gi(e,t,a,n),Yi(e)}function nn(e,t){return Gi(e,null,null,t),Yi(e)}function ff(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-zt(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Yi(e){if(50<Il)throw Il=0,Ps=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 sy(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 sy(e,t,a,n)}function Qo(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 df(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 Vi(e,t,a,n,l,r){var d=0;if(n=e,typeof e=="function")Qo(e)&&(d=1);else if(typeof e=="string")d=pg(e,a,V.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 D:d=8,l|=24;break;case Z:return e=Dt(12,a,t,l|2),e.elementType=Z,e.lanes=r,e;case fe:return e=Dt(13,a,t,l),e.elementType=fe,e.lanes=r,e;case ve:return e=Dt(19,a,t,l),e.elementType=ve,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case P:d=9;break e;case ne:d=11;break e;case K:d=14;break e;case _e:d=16,n=null;break e}d=29,a=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=Dt(d,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 Zo(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function pf(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Fo(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 hf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=hf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:dc(t)},hf.set(e,t),t)}return{value:e,source:t,stack:dc(t)}}var Hn=[],Un=0,Xi=null,Dl=0,Gt=[],Yt=0,wa=null,Pt=1,ea="";function fa(e,t){Hn[Un++]=Dl,Hn[Un++]=Xi,Xi=e,Dl=t}function mf(e,t,a){Gt[Yt++]=Pt,Gt[Yt++]=ea,Gt[Yt++]=wa,wa=e;var n=Pt;e=ea;var l=32-zt(n)-1;n&=~(1<<l),a+=1;var r=32-zt(t)+l;if(30<r){var d=l-l%5;r=(n&(1<<d)-1).toString(32),n>>=d,l-=d,Pt=1<<32-zt(t)+l|a<<l|n,ea=r+e}else Pt=1<<r|a<<l|n,ea=e}function Wo(e){e.return!==null&&(fa(e,1),mf(e,1,0))}function Ko(e){for(;e===Xi;)Xi=Hn[--Un],Hn[Un]=null,Dl=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 yf(e,t){Gt[Yt++]=Pt,Gt[Yt++]=ea,Gt[Yt++]=wa,Pt=t.id,ea=t.overflow,wa=e}var ct=null,Ge=null,Te=!1,Da=null,Vt=!1,Jo=Error(s(519));function _a(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(qt(t,e)),Jo}function gf(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<Pl.length;a++)be(Pl[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),wc(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),_c(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||Bp(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 vf(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 vf(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")||hu(e.type,e.memoizedProps)),a=!a),a&&Ge&&_a(e),vf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Vp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Vp(e)}else t===27?(t=Ge,Qa(e.type)?(e=xu,xu=null,Ge=e):Ge=t):Ge=ct?Qt(e.stateNode.nextSibling):null;return!0}function rn(){Ge=ct=null,Te=!1}function Io(){var e=Da;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Da=null),e}function _l(e){Da===null?Da=[e]:Da.push(e)}var $o=S(null),on=null,da=null;function Oa(e,t,a){Y($o,t._currentValue),t._currentValue=a}function pa(e){e._currentValue=$o.current,M($o)}function Po(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 es(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var d=l.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=l;for(var j=0;j<t.length;j++)if(m.context===t[j]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),Po(r.return,a,e),n||(d=null);break e}r=m.next}}else if(l.tag===18){if(d=l.return,d===null)throw Error(s(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),Po(d,a,e),d=null}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===e){d=null;break}if(l=d.sibling,l!==null){l.return=d.return,d=l;break}d=d.return}l=d}}function 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 d=l.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var m=l.type;wt(l.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(l===Ce.current){if(d=l.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(li):e=[li])}l=l.return}e!==null&&es(t,e,a,n),t.flags|=262144}function Qi(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,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return xf(on,e)}function Zi(e,t){return on===null&&sn(e),xf(e,t)}function xf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},da===null){if(e===null)throw Error(s(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return a}var uy=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()})}},cy=i.unstable_scheduleCallback,fy=i.unstable_NormalPriority,Pe={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ts(){return{controller:new uy,data:new Map,refCount:0}}function Ol(e){e.refCount--,e.refCount===0&&cy(fy,function(){e.controller.abort()})}var kl=null,as=0,Gn=0,Yn=null;function dy(e,t){if(kl===null){var a=kl=[];as=0,Gn=iu(),Yn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return as++,t.then(bf,bf),t}function bf(){if(--as===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 py(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 Sf=B.S;B.S=function(e,t){lp=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&dy(e,t),Sf!==null&&Sf(e,t)};var un=S(null);function ns(){var e=un.current;return e!==null?e:Le.pooledCache}function Fi(e,t){t===null?Y(un,un.current):Y(un,t.pool)}function jf(){var e=ns();return e===null?null:{parent:Pe._currentValue,pool:e}}var Vn=Error(s(460)),ls=Error(s(474)),Wi=Error(s(542)),Ki={then:function(){}};function Rf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ef(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,Af(e),e;default:if(typeof t.status=="string")t.then(sa,sa);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Af(e),e}throw fn=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"?(fn=a,Vn):a}}var fn=null;function Tf(){if(fn===null)throw Error(s(459));var e=fn;return fn=null,e}function Af(e){if(e===Vn||e===Wi)throw Error(s(483))}var Xn=null,Bl=0;function Ji(e){var t=Bl;return Bl+=1,Xn===null&&(Xn=[]),Ef(Xn,e,t)}function Ml(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ii(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cf(e){function t(T,R){if(e){var z=T.deletions;z===null?(T.deletions=[R],T.flags|=16):z.push(R)}}function a(T,R){if(!e)return null;for(;R!==null;)t(T,R),R=R.sibling;return null}function n(T){for(var R=new Map;T!==null;)T.key!==null?R.set(T.key,T):R.set(T.index,T),T=T.sibling;return R}function l(T,R){return T=ca(T,R),T.index=0,T.sibling=null,T}function r(T,R,z){return T.index=z,e?(z=T.alternate,z!==null?(z=z.index,z<R?(T.flags|=67108866,R):z):(T.flags|=67108866,R)):(T.flags|=1048576,R)}function d(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,R,z,q){return R===null||R.tag!==6?(R=Zo(z,T.mode,q),R.return=T,R):(R=l(R,z),R.return=T,R)}function j(T,R,z,q){var ae=z.type;return ae===U?L(T,R,z.props.children,q,z.key):R!==null&&(R.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===_e&&cn(ae)===R.type)?(R=l(R,z.props),Ml(R,z),R.return=T,R):(R=Vi(z.type,z.key,z.props,null,T.mode,q),Ml(R,z),R.return=T,R)}function w(T,R,z,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==z.containerInfo||R.stateNode.implementation!==z.implementation?(R=Fo(z,T.mode,q),R.return=T,R):(R=l(R,z.children||[]),R.return=T,R)}function L(T,R,z,q,ae){return R===null||R.tag!==7?(R=ln(z,T.mode,q,ae),R.return=T,R):(R=l(R,z),R.return=T,R)}function G(T,R,z){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Zo(""+R,T.mode,z),R.return=T,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return z=Vi(R.type,R.key,R.props,null,T.mode,z),Ml(z,R),z.return=T,z;case A:return R=Fo(R,T.mode,z),R.return=T,R;case _e:return R=cn(R),G(T,R,z)}if(Oe(R)||F(R))return R=ln(R,T.mode,z,null),R.return=T,R;if(typeof R.then=="function")return G(T,Ji(R),z);if(R.$$typeof===X)return G(T,Zi(T,R),z);Ii(T,R)}return null}function O(T,R,z,q){var ae=R!==null?R.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ae!==null?null:m(T,R,""+z,q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case _:return z.key===ae?j(T,R,z,q):null;case A:return z.key===ae?w(T,R,z,q):null;case _e:return z=cn(z),O(T,R,z,q)}if(Oe(z)||F(z))return ae!==null?null:L(T,R,z,q,null);if(typeof z.then=="function")return O(T,R,Ji(z),q);if(z.$$typeof===X)return O(T,R,Zi(T,z),q);Ii(T,z)}return null}function H(T,R,z,q,ae){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return T=T.get(z)||null,m(R,T,""+q,ae);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return T=T.get(q.key===null?z:q.key)||null,j(R,T,q,ae);case A:return T=T.get(q.key===null?z:q.key)||null,w(R,T,q,ae);case _e:return q=cn(q),H(T,R,z,q,ae)}if(Oe(q)||F(q))return T=T.get(z)||null,L(R,T,q,ae,null);if(typeof q.then=="function")return H(T,R,z,Ji(q),ae);if(q.$$typeof===X)return H(T,R,z,Zi(R,q),ae);Ii(R,q)}return null}function J(T,R,z,q){for(var ae=null,ze=null,ee=R,he=R=0,Re=null;ee!==null&&he<z.length;he++){ee.index>he?(Re=ee,ee=null):Re=ee.sibling;var we=O(T,ee,z[he],q);if(we===null){ee===null&&(ee=Re);break}e&&ee&&we.alternate===null&&t(T,ee),R=r(we,R,he),ze===null?ae=we:ze.sibling=we,ze=we,ee=Re}if(he===z.length)return a(T,ee),Te&&fa(T,he),ae;if(ee===null){for(;he<z.length;he++)ee=G(T,z[he],q),ee!==null&&(R=r(ee,R,he),ze===null?ae=ee:ze.sibling=ee,ze=ee);return Te&&fa(T,he),ae}for(ee=n(ee);he<z.length;he++)Re=H(ee,T,he,z[he],q),Re!==null&&(e&&Re.alternate!==null&&ee.delete(Re.key===null?he:Re.key),R=r(Re,R,he),ze===null?ae=Re:ze.sibling=Re,ze=Re);return e&&ee.forEach(function(Ja){return t(T,Ja)}),Te&&fa(T,he),ae}function le(T,R,z,q){if(z==null)throw Error(s(151));for(var ae=null,ze=null,ee=R,he=R=0,Re=null,we=z.next();ee!==null&&!we.done;he++,we=z.next()){ee.index>he?(Re=ee,ee=null):Re=ee.sibling;var Ja=O(T,ee,we.value,q);if(Ja===null){ee===null&&(ee=Re);break}e&&ee&&Ja.alternate===null&&t(T,ee),R=r(Ja,R,he),ze===null?ae=Ja:ze.sibling=Ja,ze=Ja,ee=Re}if(we.done)return a(T,ee),Te&&fa(T,he),ae;if(ee===null){for(;!we.done;he++,we=z.next())we=G(T,we.value,q),we!==null&&(R=r(we,R,he),ze===null?ae=we:ze.sibling=we,ze=we);return Te&&fa(T,he),ae}for(ee=n(ee);!we.done;he++,we=z.next())we=H(ee,T,he,we.value,q),we!==null&&(e&&we.alternate!==null&&ee.delete(we.key===null?he:we.key),R=r(we,R,he),ze===null?ae=we:ze.sibling=we,ze=we);return e&&ee.forEach(function(Eg){return t(T,Eg)}),Te&&fa(T,he),ae}function Ue(T,R,z,q){if(typeof z=="object"&&z!==null&&z.type===U&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case _:e:{for(var ae=z.key;R!==null;){if(R.key===ae){if(ae=z.type,ae===U){if(R.tag===7){a(T,R.sibling),q=l(R,z.props.children),q.return=T,T=q;break e}}else if(R.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===_e&&cn(ae)===R.type){a(T,R.sibling),q=l(R,z.props),Ml(q,z),q.return=T,T=q;break e}a(T,R);break}else t(T,R);R=R.sibling}z.type===U?(q=ln(z.props.children,T.mode,q,z.key),q.return=T,T=q):(q=Vi(z.type,z.key,z.props,null,T.mode,q),Ml(q,z),q.return=T,T=q)}return d(T);case A:e:{for(ae=z.key;R!==null;){if(R.key===ae)if(R.tag===4&&R.stateNode.containerInfo===z.containerInfo&&R.stateNode.implementation===z.implementation){a(T,R.sibling),q=l(R,z.children||[]),q.return=T,T=q;break e}else{a(T,R);break}else t(T,R);R=R.sibling}q=Fo(z,T.mode,q),q.return=T,T=q}return d(T);case _e:return z=cn(z),Ue(T,R,z,q)}if(Oe(z))return J(T,R,z,q);if(F(z)){if(ae=F(z),typeof ae!="function")throw Error(s(150));return z=ae.call(z),le(T,R,z,q)}if(typeof z.then=="function")return Ue(T,R,Ji(z),q);if(z.$$typeof===X)return Ue(T,R,Zi(T,z),q);Ii(T,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,R!==null&&R.tag===6?(a(T,R.sibling),q=l(R,z),q.return=T,T=q):(a(T,R),q=Zo(z,T.mode,q),q.return=T,T=q),d(T)):a(T,R)}return function(T,R,z,q){try{Bl=0;var ae=Ue(T,R,z,q);return Xn=null,ae}catch(ee){if(ee===Vn||ee===Wi)throw ee;var ze=Dt(29,ee,null,T.mode);return ze.lanes=q,ze.return=T,ze}}}var dn=Cf(!0),zf=Cf(!1),ka=!1;function is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rs(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=Yi(e),ff(e,null,a),t}return Gi(e,n,t,a),Yi(e)}function Nl(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,vc(e,a)}}function os(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ss=!1;function Hl(){if(ss){var e=Yn;if(e!==null)throw e}}function Ul(e,t,a,n){ss=!1;var l=e.updateQueue;ka=!1;var r=l.firstBaseUpdate,d=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var j=m,w=j.next;j.next=null,d===null?r=w:d.next=w,d=j;var L=e.alternate;L!==null&&(L=L.updateQueue,m=L.lastBaseUpdate,m!==d&&(m===null?L.firstBaseUpdate=w:m.next=w,L.lastBaseUpdate=j))}if(r!==null){var G=l.baseState;d=0,L=w=j=null,m=r;do{var O=m.lane&-536870913,H=O!==m.lane;if(H?(je&O)===O:(n&O)===O){O!==0&&O===Gn&&(ss=!0),L!==null&&(L=L.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var J=e,le=m;O=t;var Ue=a;switch(le.tag){case 1:if(J=le.payload,typeof J=="function"){G=J.call(Ue,G,O);break e}G=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=le.payload,O=typeof J=="function"?J.call(Ue,G,O):J,O==null)break e;G=g({},G,O);break e;case 2:ka=!0}}O=m.callback,O!==null&&(e.flags|=64,H&&(e.flags|=8192),H=l.callbacks,H===null?l.callbacks=[O]:H.push(O))}else H={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},L===null?(w=L=H,j=G):L=L.next=H,d|=O;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;H=m,m=H.next,H.next=null,l.lastBaseUpdate=H,l.shared.pending=null}}while(!0);L===null&&(j=G),l.baseState=j,l.firstBaseUpdate=w,l.lastBaseUpdate=L,r===null&&(l.shared.lanes=0),qa|=d,e.lanes=d,e.memoizedState=G}}function wf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Df(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wf(a[e],t)}var Qn=S(null),$i=S(0);function _f(e,t){e=ja,Y($i,e),Y(Qn,t),ja=e|t.baseLanes}function us(){Y($i,ja),Y(Qn,Qn.current)}function cs(){ja=$i.current,M(Qn),M($i)}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 fs(e){Y(Ke,Ke.current),Y(_t,e),Xt===null&&(Xt=e)}function Of(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 Ot(e){M(_t),Xt===e&&(Xt=null),M(Ke)}var Ke=S(0);function Pi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||gu(a)||vu(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,de=null,Ne=null,et=null,er=!1,Zn=!1,pn=!1,tr=0,Ll=0,Fn=null,hy=0;function Ze(){throw Error(s(321))}function ds(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 ps(e,t,a,n,l,r){return ha=r,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?md:zs,pn=!1,r=a(n,l),pn=!1,Zn&&(r=Bf(t,a,n,l)),kf(e),r}function kf(e){B.H=Yl;var t=Ne!==null&&Ne.next!==null;if(ha=0,et=Ne=de=null,er=!1,Ll=0,Fn=null,t)throw Error(s(300));e===null||tt||(e=e.dependencies,e!==null&&Qi(e)&&(tt=!0))}function Bf(e,t,a,n){de=e;var l=0;do{if(Zn&&(Fn=null),Ll=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=yd,r=t(a,n)}while(Zn);return r}function my(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?ql(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(de.flags|=1024),t}function hs(){var e=tr!==0;return tr=0,e}function ms(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ys(e){if(er){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}er=!1}ha=0,et=Ne=de=null,Zn=!1,Ll=tr=0,Fn=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?de.memoizedState=et=e:et=et.next=e,et}function Je(){if(Ne===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=et===null?de.memoizedState:et.next;if(t!==null)et=t,Ne=e;else{if(e===null)throw de.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?de.memoizedState=et=e:et=et.next=e}return et}function ar(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ql(e){var t=Ll;return Ll+=1,Fn===null&&(Fn=[]),e=Ef(Fn,e,t),t=de,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?md:zs),e}function nr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ql(e);if(e.$$typeof===X)return ft(e)}throw Error(s(438,String(e)))}function gs(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=de.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=ar(),de.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 lr(e){var t=Je();return vs(t,Ne,e)}function vs(e,t,a){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=a;var l=e.baseQueue,r=n.pending;if(r!==null){if(l!==null){var d=l.next;l.next=r.next,r.next=d}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var m=d=null,j=null,w=t,L=!1;do{var G=w.lane&-536870913;if(G!==w.lane?(je&G)===G:(ha&G)===G){var O=w.revertLane;if(O===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&O)===O){w=w.next,O===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,d=r):j=j.next=G,de.lanes|=O,qa|=O;G=w.action,pn&&a(r,G),r=w.hasEagerState?w.eagerState:a(r,G)}else O={lane:G,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},j===null?(m=j=O,d=r):j=j.next=O,de.lanes|=G,qa|=G;w=w.next}while(w!==null&&w!==t);if(j===null?d=r:j.next=m,!wt(r,e.memoizedState)&&(tt=!0,L&&(a=Yn,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=j,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function xs(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 d=l=l.next;do r=e(r,d.action),d=d.next;while(d!==l);wt(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Mf(e,t,a){var n=de,l=Je(),r=Te;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!wt((Ne||l).memoizedState,a);if(d&&(l.memoizedState=a,tt=!0),l=l.queue,js(Uf.bind(null,n,l,e),[e]),l.getSnapshot!==t||d||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Wn(9,{destroy:void 0},Hf.bind(null,n,l,a,t),null),Le===null)throw Error(s(349));r||(ha&127)!==0||Nf(n,t,a)}return a}function Nf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=ar(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Hf(e,t,a,n){t.value=a,t.getSnapshot=n,Lf(t)&&qf(e)}function Uf(e,t,a){return a(function(){Lf(t)&&qf(e)})}function Lf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!wt(e,a)}catch{return!0}}function qf(e){var t=nn(e,2);t!==null&&Rt(t,e,2)}function bs(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 Gf(e,t,a,n){return e.baseState=a,vs(e,Ne,typeof n=="function"?n:ma)}function yy(e,t,a,n,l){if(or(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};B.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Yf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Yf(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=B.T,d={};B.T=d;try{var m=a(l,n),j=B.S;j!==null&&j(d,m),Vf(e,t,m)}catch(w){Ss(e,t,w)}finally{r!==null&&d.types!==null&&(r.types=d.types),B.T=r}}else try{r=a(l,n),Vf(e,t,r)}catch(w){Ss(e,t,w)}}function Vf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Xf(e,t,n)},function(n){return Ss(e,t,n)}):Xf(e,t,a)}function Xf(e,t,a){t.status="fulfilled",t.value=a,Qf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Yf(e,a)))}function Ss(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Qf(t),t=t.next;while(t!==n)}e.action=null}function Qf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zf(e,t){return t}function Ff(e,t){if(Te){var a=Le.formState;if(a!==null){e:{var n=de;if(Te){if(Ge){t:{for(var l=Ge,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){Ge=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:Zf,lastRenderedState:t},a.queue=n,a=dd.bind(null,de,n),n.dispatch=a,n=bs(!1),r=Cs.bind(null,de,!1,n.queue),n=yt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=yy.bind(null,de,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function Wf(e){var t=Je();return Kf(t,Ne,e)}function Kf(e,t,a){if(t=vs(e,t,Zf)[0],e=lr(ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ql(t)}catch(d){throw d===Vn?Wi:d}else n=t;t=Je();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(de.flags|=2048,Wn(9,{destroy:void 0},gy.bind(null,l,a),null)),[n,r,e]}function gy(e,t){e.action=t}function Jf(e){var t=Je(),a=Ne;if(a!==null)return Kf(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=de.updateQueue,t===null&&(t=ar(),de.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 If(){return Je().memoizedState}function ir(e,t,a,n){var l=yt();de.flags|=e,l.memoizedState=Wn(1|t,{destroy:void 0},a,n===void 0?null:n)}function rr(e,t,a,n){var l=Je();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&ds(n,Ne.memoizedState.deps)?l.memoizedState=Wn(t,r,a,n):(de.flags|=e,l.memoizedState=Wn(1|t,r,a,n))}function $f(e,t){ir(8390656,8,e,t)}function js(e,t){rr(2048,8,e,t)}function vy(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=ar(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Pf(e){var t=Je().memoizedState;return vy({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function ed(e,t){return rr(4,2,e,t)}function td(e,t){return rr(4,4,e,t)}function ad(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 nd(e,t,a){a=a!=null?a.concat([e]):null,rr(4,4,ad.bind(null,t,e),a)}function Rs(){}function ld(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&ds(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function id(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&ds(t,n[1]))return n[0];if(n=e(),pn){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[n,t],n}function Es(e,t,a){return a===void 0||(ha&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=rp(),de.lanes|=e,qa|=e,a)}function rd(e,t,a,n){return wt(a,t)?a:Qn.current!==null?(e=Es(e,a,n),wt(e,t)||(tt=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(je&261930)===0?(tt=!0,e.memoizedState=a):(e=rp(),de.lanes|=e,qa|=e,t)}function od(e,t,a,n,l){var r=Q.p;Q.p=r!==0&&8>r?r:8;var d=B.T,m={};B.T=m,Cs(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=py(j,n);Gl(e,t,L,Mt(e))}else Gl(e,t,n,Mt(e))}catch(G){Gl(e,t,{then:function(){},status:"rejected",reason:G},Mt())}finally{Q.p=r,d!==null&&m.types!==null&&(d.types=m.types),B.T=d}}function xy(){}function Ts(e,t,a,n){if(e.tag!==5)throw Error(s(476));var l=sd(e).queue;od(e,l,t,te,a===null?xy:function(){return ud(e),a(n)})}function sd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:te},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 ud(e){var t=sd(e);t.next===null&&(t=e.alternate.memoizedState),Gl(e,t.next.queue,{},Mt())}function As(){return ft(li)}function cd(){return Je().memoizedState}function fd(){return Je().memoizedState}function by(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),Nl(n,t,a)),t={cache:ts()},e.payload=t;return}t=t.return}}function Sy(e,t,a){var n=Mt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},or(e)?pd(t,a):(a=Xo(e,t,a,n),a!==null&&(Rt(a,e,n),hd(a,t,n)))}function dd(e,t,a){var n=Mt();Gl(e,t,a,n)}function Gl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(or(e))pd(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,m=r(d,a);if(l.hasEagerState=!0,l.eagerState=m,wt(m,d))return Gi(e,t,l,0),Le===null&&qi(),!1}catch{}if(a=Xo(e,t,l,n),a!==null)return Rt(a,e,n),hd(a,t,n),!0}return!1}function Cs(e,t,a,n){if(n={lane:2,revertLane:iu(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},or(e)){if(t)throw Error(s(479))}else t=Xo(e,a,n,2),t!==null&&Rt(t,e,2)}function or(e){var t=e.alternate;return e===de||t!==null&&t===de}function pd(e,t){Zn=er=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function hd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,vc(e,a)}}var Yl={readContext:ft,use:nr,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};Yl.useEffectEvent=Ze;var md={readContext:ft,use:nr,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:$f,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ir(4194308,4,ad.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ir(4194308,4,e,t)},useInsertionEffect:function(e,t){ir(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=Sy.bind(null,de,e),[n.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,a=dd.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Rs,useDeferredValue:function(e,t){var a=yt();return Es(a,e,t)},useTransition:function(){var e=bs(!1);return e=od.bind(null,de,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=de,l=yt();if(Te){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Le===null)throw Error(s(349));(je&127)!==0||Nf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,$f(Uf.bind(null,n,r,e),[e]),n.flags|=2048,Wn(9,{destroy:void 0},Hf.bind(null,n,r,a,t),null),a},useId:function(){var e=yt(),t=Le.identifierPrefix;if(Te){var a=ea,n=Pt;a=(n&~(1<<32-zt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=tr++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=hy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:As,useFormState:Ff,useActionState:Ff,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=Cs.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:gs,useCacheRefresh:function(){return yt().memoizedState=by.bind(null,de)},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)}}},zs={readContext:ft,use:nr,useCallback:ld,useContext:ft,useEffect:js,useImperativeHandle:nd,useInsertionEffect:ed,useLayoutEffect:td,useMemo:id,useReducer:lr,useRef:If,useState:function(){return lr(ma)},useDebugValue:Rs,useDeferredValue:function(e,t){var a=Je();return rd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=lr(ma)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:ql(e),t]},useSyncExternalStore:Mf,useId:cd,useHostTransitionStatus:As,useFormState:Wf,useActionState:Wf,useOptimistic:function(e,t){var a=Je();return Gf(a,Ne,e,t)},useMemoCache:gs,useCacheRefresh:fd};zs.useEffectEvent=Pf;var yd={readContext:ft,use:nr,useCallback:ld,useContext:ft,useEffect:js,useImperativeHandle:nd,useInsertionEffect:ed,useLayoutEffect:td,useMemo:id,useReducer:xs,useRef:If,useState:function(){return xs(ma)},useDebugValue:Rs,useDeferredValue:function(e,t){var a=Je();return Ne===null?Es(a,e,t):rd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=xs(ma)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:ql(e),t]},useSyncExternalStore:Mf,useId:cd,useHostTransitionStatus:As,useFormState:Jf,useActionState:Jf,useOptimistic:function(e,t){var a=Je();return Ne!==null?Gf(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:gs,useCacheRefresh:fd};yd.useEffectEvent=Pf;function ws(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 Ds={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),Nl(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),Nl(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),Nl(t,e,a))}};function gd(e,t,a,n,l,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!zl(a,n)||!zl(l,r):!0}function vd(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&&Ds.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 xd(e){Li(e)}function bd(e){console.error(e)}function Sd(e){Li(e)}function sr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function jd(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 _s(e,t,a){return a=Ba(a),a.tag=3,a.payload={element:null},a.callback=function(){sr(e,t)},a}function Rd(e){return e=Ba(e),e.tag=3,e}function Ed(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(){jd(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){jd(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 jy(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?br():a.alternate===null&&Fe===0&&(Fe=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Ki?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),au(e,n,l)),!1;case 22:return a.flags|=65536,n===Ki?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)),au(e,n,l)),!1}throw Error(s(435,a.tag))}return au(e,n,l),br(),!1}if(Te)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Jo&&(e=Error(s(422),{cause:n}),_l(qt(e,a)))):(n!==Jo&&(t=Error(s(423),{cause:n}),_l(qt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=qt(n,a),l=_s(e.stateNode,n,l),os(e,l),Fe!==4&&(Fe=2)),!1;var r=Error(s(520),{cause:n});if(r=qt(r,a),Jl===null?Jl=[r]:Jl.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=_s(a.stateNode,n,e),os(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=Rd(l),Ed(l,e,a,n),os(a,l),!1}a=a.return}while(a!==null);return!1}var Os=Error(s(461)),tt=!1;function dt(e,t,a,n){t.child=e===null?zf(t,null,a,n):dn(t,e.child,a,n)}function Td(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return sn(t),n=ps(e,t,a,d,r,l),m=hs(),e!==null&&!tt?(ms(e,t,l),ya(e,t,l)):(Te&&m&&Wo(t),t.flags|=1,dt(e,t,n,l),t.child)}function Ad(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Qo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Cd(e,t,r,n,l)):(e=Vi(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!qs(e,l)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:zl,a(d,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 Cd(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,qs(e,l))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,ya(e,t,l)}return ks(e,t,a,n,l)}function zd(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 wd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fi(t,r!==null?r.cachePool:null),r!==null?_f(t,r):us(),Of(t);else return n=t.lanes=536870912,wd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Fi(t,r.cachePool),_f(t,r),Ha(),t.memoizedState=null):(e!==null&&Fi(t,null),us(),Ha());return dt(e,t,l,a),t.child}function Vl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wd(e,t,a,n,l){var r=ns();return r=r===null?null:{parent:Pe._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Fi(t,null),us(),Of(t),e!==null&&qn(e,t,n,!0),t.childLanes=l,null}function ur(e,t){return t=fr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dd(e,t,a){return dn(t,e.child,null,a),e=ur(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function Ry(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=ur(t,n),t.lanes=536870912,Vl(null,e);if(fs(t),(e=Ge)?(e=Yp(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=pf(e),a.return=t,t.child=a,ct=t,Ge=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return ur(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(fs(t),l)if(t.flags&256)t.flags&=-257,t=Dd(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=Le,n!==null&&(d=xc(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,nn(e,d),Rt(n,e,d),Os;br(),t=Dd(e,t,a)}else e=r.treeContext,Ge=Qt(d.nextSibling),ct=t,Te=!0,Da=null,Vt=!1,e!==null&&yf(t,e),t=ur(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 cr(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 ks(e,t,a,n,l){return sn(t),a=ps(e,t,a,n,void 0,l),n=hs(),e!==null&&!tt?(ms(e,t,l),ya(e,t,l)):(Te&&n&&Wo(t),t.flags|=1,dt(e,t,a,l),t.child)}function _d(e,t,a,n,l,r){return sn(t),t.updateQueue=null,a=Bf(t,n,a,l),kf(e),n=hs(),e!==null&&!tt?(ms(e,t,r),ya(e,t,r)):(Te&&n&&Wo(t),t.flags|=1,dt(e,t,a,r),t.child)}function Od(e,t,a,n,l){if(sn(t),t.stateNode===null){var r=Nn,d=a.contextType;typeof d=="object"&&d!==null&&(r=ft(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Ds,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},is(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ft(d):Nn,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(ws(t,a,d,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&Ds.enqueueReplaceState(r,r.state,null),Ul(t,n,r,l),Hl(),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;d=Nn,typeof L=="object"&&L!==null&&(d=ft(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!==d)&&vd(t,r,n,d),ka=!1;var O=t.memoizedState;r.state=O,Ul(t,n,r,l),Hl(),w=t.memoizedState,m||O!==w||ka?(typeof G=="function"&&(ws(t,a,G,n),w=t.memoizedState),(j=ka||gd(t,a,j,n,O,w,d))?(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=d,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,rs(e,t),d=t.memoizedProps,L=hn(a,d),r.props=L,G=t.pendingProps,O=r.context,w=a.contextType,j=Nn,typeof w=="object"&&w!==null&&(j=ft(w)),m=a.getDerivedStateFromProps,(w=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==G||O!==j)&&vd(t,r,n,j),ka=!1,O=t.memoizedState,r.state=O,Ul(t,n,r,l),Hl();var H=t.memoizedState;d!==G||O!==H||ka||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof m=="function"&&(ws(t,a,m,n),H=t.memoizedState),(L=ka||gd(t,a,L,n,O,H,j)||e!==null&&e.dependencies!==null&&Qi(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"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),r.props=n,r.state=H,r.context=j,n=L):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,cr(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=dn(t,e.child,null,l),t.child=dn(t,null,a,l)):dt(e,t,a,l),t.memoizedState=r.state,e=t.child):e=ya(e,t,l),e}function kd(e,t,a,n){return rn(),t.flags|=256,dt(e,t,a,n),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ms(e){return{baseLanes:e,cachePool:jf()}}function Ns(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Bt),e}function Bd(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),d&&(l=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(l?Na(t):Ha(),(e=Ge)?(e=Yp(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=pf(e),a.return=t,t.child=a,ct=t,Ge=null)):e=null,e===null)throw _a(t);return vu(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(Ha(),l=t.mode,m=fr({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=Ms(a),n.childLanes=Ns(e,d,a),t.memoizedState=Bs,Vl(null,n)):(Na(t),Hs(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=Us(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),m=n.fallback,l=t.mode,n=fr({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,dn(t,e.child,null,a),n=t.child,n.memoizedState=Ms(a),n.childLanes=Ns(e,d,a),t.memoizedState=Bs,t=Vl(null,n));else if(Na(t),vu(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var w=d.dgst;d=w,n=Error(s(419)),n.stack="",n.digest=d,_l({value:n,source:null,stack:null}),t=Us(e,t,a)}else if(tt||qn(e,t,a,!1),d=(a&e.childLanes)!==0,tt||d){if(d=Le,d!==null&&(n=xc(d,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,nn(e,n),Rt(d,e,n),Os;gu(m)||br(),t=Us(e,t,a)}else gu(m)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Ge=Qt(m.nextSibling),ct=t,Te=!0,Da=null,Vt=!1,e!==null&&yf(t,e),t=Hs(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,Vl(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ms(a):(l=m.cachePool,l!==null?(j=Pe._currentValue,l=l.parent!==j?{parent:j,pool:j}:l):l=jf(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=Ns(e,d,a),t.memoizedState=Bs,Vl(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&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Hs(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Us(e,t,a){return dn(t,e.child,null,a),e=Hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Md(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Po(e.return,t,a)}function Ls(e,t,a,n,l,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=l,d.treeForkCount=r)}function Nd(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var d=Ke.current,m=(d&2)!==0;if(m?(d=d&1|2,t.flags|=128):d&=1,Y(Ke,d),dt(e,t,n,a),n=Te?Dl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,a,t);else if(e.tag===19)Md(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&&Pi(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Ls(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&&Pi(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Ls(t,!0,a,null,r,n);break;case"together":Ls(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 qs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function Ey(e,t,a){switch(t.tag){case 3:st(t,t.stateNode.containerInfo),Oa(t,Pe,e.memoizedState.cache),rn();break;case 27:case 5:ml(t);break;case 4:st(t,t.stateNode.containerInfo);break;case 10:Oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fs(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?Bd(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 Nd(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,zd(e,t,a,t.pendingProps);case 24:Oa(t,Pe,e.memoizedState.cache)}return ya(e,t,a)}function Hd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!qs(e,a)&&(t.flags&128)===0)return tt=!1,Ey(e,t,a);tt=(e.flags&131072)!==0}else tt=!1,Te&&(t.flags&1048576)!==0&&mf(t,Dl,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")Qo(e)?(n=hn(e,n),t.tag=1,t=Od(null,t,e,n,a)):(t.tag=0,t=ks(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===ne){t.tag=11,t=Td(null,t,e,n,a);break e}else if(l===K){t.tag=14,t=Ad(null,t,e,n,a);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return ks(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=hn(n,t.pendingProps),Od(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,rs(e,t),Ul(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Oa(t,Pe,n),n!==r.cache&&es(t,[Pe],a,!0),Hl(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=kd(e,t,n,a);break e}else if(n!==l){l=qt(Error(s(424)),t),_l(l),t=kd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=Qt(e.firstChild),ct=t,Te=!0,Da=null,Vt=!0,a=zf(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}dt(e,t,n,a)}t=t.child}return t;case 26:return cr(e,t),e===null?(a=Wp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Te||(a=t.type,e=t.pendingProps,n=Cr(ue.current).createElement(a),n[ut]=t,n[gt]=e,pt(n,a,e),it(n),t.stateNode=n):t.memoizedState=Wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ml(t),e===null&&Te&&(n=t.stateNode=Qp(t.type,t.pendingProps,ue.current),ct=t,Vt=!0,l=Ge,Qa(t.type)?(xu=l,Ge=Qt(n.firstChild)):Ge=l),dt(e,t,t.pendingProps.children,a),cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((l=n=Ge)&&(n=eg(n,t.type,t.pendingProps,Vt),n!==null?(t.stateNode=n,ct=t,Ge=Qt(n.firstChild),Vt=!1,l=!0):l=!1),l||_a(t)),ml(t),l=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,hu(l,r)?n=null:d!==null&&hu(l,d)&&(t.flags|=32),t.memoizedState!==null&&(l=ps(e,t,my,null,null,a),li._currentValue=l),cr(e,t),dt(e,t,n,a),t.child;case 6:return e===null&&Te&&((e=a=Ge)&&(a=tg(a,t.pendingProps,Vt),a!==null?(t.stateNode=a,ct=t,Ge=null,e=!0):e=!1),e||_a(t)),null;case 13:return Bd(e,t,a);case 4:return st(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=dn(t,null,n,a):dt(e,t,n,a),t.child;case 11:return Td(e,t,t.type,t.pendingProps,a);case 7:return dt(e,t,t.pendingProps,a),t.child;case 8:return dt(e,t,t.pendingProps.children,a),t.child;case 12:return dt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Oa(t,t.type,n.value),dt(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,sn(t),l=ft(l),n=n(l),t.flags|=1,dt(e,t,n,a),t.child;case 14:return Ad(e,t,t.type,t.pendingProps,a);case 15:return Cd(e,t,t.type,t.pendingProps,a);case 19:return Nd(e,t,a);case 31:return Ry(e,t,a);case 22:return zd(e,t,a,t.pendingProps);case 24:return sn(t),n=ft(Pe),e===null?(l=ns(),l===null&&(l=Le,r=ts(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},is(t),Oa(t,Pe,l)):((e.lanes&a)!==0&&(rs(e,t),Ul(t,null,null,a),Hl()),l=e.memoizedState,r=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Oa(t,Pe,n)):(n=r.cache,Oa(t,Pe,n),n!==l.cache&&es(t,[Pe],a,!0))),dt(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 Gs(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(cp())e.flags|=8192;else throw fn=Ki,ls}else e.flags&=-16777217}function Ud(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pp(t))if(cp())e.flags|=8192;else throw fn=Ki,ls}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yc():536870912,e.lanes|=t,$n|=t)}function Xl(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 Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Ty(e,t,a){var n=t.pendingProps;switch(Ko(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),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,Io())),Ye(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ga(t),r!==null?(Ye(t),Ud(t,r)):(Ye(t),Gs(t,l,null,n,a))):r?r!==e.memoizedState?(ga(t),Ye(t),Ud(t,r)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ga(t),Ye(t),Gs(t,l,e,n,a)),null;case 27:if(Ri(t),a=ue.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 Ye(t),null}e=V.current,Ln(t)?gf(t):(e=Qp(l,n,a),t.stateNode=e,ga(t))}return Ye(t),null;case 5:if(Ri(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 Ye(t),null}if(r=V.current,Ln(t))gf(t);else{var d=Cr(ue.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(l,{is:n.is}):d.createElement(l)}}r[ut]=t,r[gt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(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 Ye(t),Gs(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=ue.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||Bp(e.nodeValue,a)),e||_a(t,!0)}else e=Cr(e).createTextNode(n),e[ut]=t,t.stateNode=e}return Ye(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;Ye(t),e=!1}else a=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=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;Ye(t),l=!1}else l=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==l&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),dr(t,t.updateQueue),Ye(t),null);case 4:return We(),e===null&&uu(t.stateNode.containerInfo),Ye(t),null;case 10:return pa(t.type),Ye(t),null;case 19:if(M(Ke),n=t.memoizedState,n===null)return Ye(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)Xl(n,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Pi(e),r!==null){for(t.flags|=128,Xl(n,!1),e=r.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)df(a,e),a=a.sibling;return Y(Ke,Ke.current&1|2),Te&&fa(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&At()>gr&&(t.flags|=128,l=!0,Xl(n,!1),t.lanes=4194304)}else{if(!l)if(e=Pi(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Xl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Te)return Ye(t),null}else 2*At()-n.renderingStartTime>gr&&a!==536870912&&(t.flags|=128,l=!0,Xl(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&&fa(t,n.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ot(t),cs(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),a=t.updateQueue,a!==null&&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),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ay(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return 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 Ri(t),null;case 31:if(t.memoizedState!==null){if(Ot(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(Ot(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 Ot(t),cs(),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 Ld(e,t){switch(Ko(t),t.tag){case 3:pa(Pe),We();break;case 26:case 27:case 5:Ri(t);break;case 4:We();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:M(Ke);break;case 10:pa(t.type);break;case 22:case 23:Ot(t),cs(),e!==null&&M(un);break;case 24:pa(Pe)}}function Ql(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==l)}}catch(m){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 d=n.inst,m=d.destroy;if(m!==void 0){d.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 qd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Df(t,a)}catch(n){Be(e,e.return,n)}}}function Gd(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Be(e,t,n)}}function Zl(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 Yd(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 Ys(e,t,a){try{var n=e.stateNode;Wy(n,e.type,a,t),n[gt]=t}catch(l){Be(e,e.return,l)}}function Vd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vd(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 Xs(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(Xs(e,t,a),e=e.sibling;e!==null;)Xs(e,t,a),e=e.sibling}function pr(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(pr(e,t,a),e=e.sibling;e!==null;)pr(e,t,a),e=e.sibling}function Xd(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 va=!1,at=!1,Qs=!1,Qd=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Cy(e,t){if(e=e.containerInfo,du=Br,e=af(e),Uo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,m=-1,j=-1,w=0,L=0,G=e,O=null;t:for(;;){for(var H;G!==a||l!==0&&G.nodeType!==3||(m=d+l),G!==r||n!==0&&G.nodeType!==3||(j=d+n),G.nodeType===3&&(d+=G.nodeValue.length),(H=G.firstChild)!==null;)O=G,G=H;for(;;){if(G===e)break t;if(O===a&&++w===l&&(m=d),O===r&&++L===n&&(j=d),(H=G.nextSibling)!==null)break;G=O,O=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(pu={focusedElem:e,selectionRange:a},Br=!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 J=hn(a.type,l);e=n.getSnapshotBeforeUpdate(J,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(le){Be(a,a.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)yu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yu(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 Zd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:ba(e,a),n&4&&Ql(5,a);break;case 1:if(ba(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Be(a,a.return,d)}else{var l=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Be(a,a.return,d)}}n&64&&qd(a),n&512&&Zl(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{Df(e,t)}catch(d){Be(a,a.return,d)}}break;case 27:t===null&&n&4&&Xd(a);case 26:case 5:ba(e,a),t===null&&n&4&&Yd(a),n&512&&Zl(a,a.return);break;case 12:ba(e,a);break;case 31:ba(e,a),n&4&&Kd(e,a);break;case 13:ba(e,a),n&4&&Jd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ny.bind(null,a),ag(e,a))));break;case 22:if(n=a.memoizedState!==null||va,!n){t=t!==null&&t.memoizedState!==null||at,l=va;var r=at;va=n,(at=t)&&!r?Sa(e,a,(a.subtreeFlags&8772)!==0):ba(e,a),va=l,at=r}break;case 30:break;default:ba(e,a)}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&So(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,xt=!1;function xa(e,t,a){for(a=a.child;a!==null;)Wd(e,t,a),a=a.sibling}function Wd(e,t,a){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(yl,a)}catch{}switch(a.tag){case 26:at||ta(a,t),xa(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=xt;Qa(a.type)&&(Xe=a.stateNode,xt=!1),xa(e,t,a),ti(a.stateNode),Xe=n,xt=l;break;case 5:at||ta(a,t);case 6:if(n=Xe,l=xt,Xe=null,xa(e,t,a),Xe=n,xt=l,Xe!==null)if(xt)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&&(xt?(e=Xe,qp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),rl(e)):qp(Xe,a.stateNode));break;case 4:n=Xe,l=xt,Xe=a.stateNode.containerInfo,xt=!0,xa(e,t,a),Xe=n,xt=l;break;case 0:case 11:case 14:case 15:Ua(2,a,t),at||Ua(4,a,t),xa(e,t,a);break;case 1:at||(ta(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Gd(a,t,n)),xa(e,t,a);break;case 21:xa(e,t,a);break;case 22:at=(n=at)||a.memoizedState!==null,xa(e,t,a),at=n;break;default:xa(e,t,a)}}function Kd(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 Jd(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 zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qd),t;default:throw Error(s(435,e.tag))}}function hr(e,t){var a=zy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=Hy.bind(null,e,n);n.then(l,l)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 27:if(Qa(m.type)){Xe=m.stateNode,xt=!1;break e}break;case 5:Xe=m.stateNode,xt=!1;break e;case 3:case 4:Xe=m.stateNode.containerInfo,xt=!0;break e}m=m.return}if(Xe===null)throw Error(s(160));Wd(r,d,l),Xe=null,xt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Id(t,e),t=t.sibling}var Kt=null;function Id(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),Ql(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&&va&&(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 d=Ip("link","href",l).get(n+(a.href||""));if(d){for(var m=0;m<d.length;m++)if(r=d[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(m,1);break t}}r=l.createElement(n),pt(r,n,a),l.head.appendChild(r);break;case"meta":if(d=Ip("meta","content",l).get(n+(a.content||""))){for(m=0;m<d.length;m++)if(r=d[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(m,1);break t}}r=l.createElement(n),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 $p(l,e.type,e.stateNode);else e.stateNode=Jp(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?$p(l,e.type,e.stateNode):Jp(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ys(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&&Ys(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(J){Be(e,e.return,J)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,Ys(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Qs=!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(J){Be(e,e.return,J)}}break;case 3:if(Dr=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(J){Be(e,e.return,J)}Qs&&(Qs=!1,$d(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,hr(e,n)));break;case 13:bt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(yr=At()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,hr(e,n)));break;case 22:l=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,w=va,L=at;if(va=w||l,at=L||j,bt(t,e),at=L,va=w,St(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||j||va||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)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=j.stateNode;var G=j.memoizedProps.style,O=G!=null&&G.hasOwnProperty("display")?G.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){Be(j,j.return,J)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=l?"":j.memoizedProps}catch(J){Be(j,j.return,J)}}}else if(t.tag===18){if(a===null){j=t;try{var H=j.stateNode;l?Gp(H,!0):Gp(j.stateNode,!1)}catch(J){Be(j,j.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,hr(e,a))));break;case 19:bt(t,e),St(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,hr(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(Vd(n)){a=n;break}n=n.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var l=a.stateNode,r=Vs(e);pr(e,r,l);break;case 5:var d=a.stateNode;a.flags&32&&(wn(d,""),a.flags&=-33);var m=Vs(e);pr(e,m,d);break;case 3:case 4:var j=a.stateNode.containerInfo,w=Vs(e);Xs(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 $d(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$d(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;)Zd(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"&&Gd(t,t.return,a),mn(t);break;case 27:ti(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,d=r.flags;switch(r.tag){case 0:case 11:case 15:Sa(l,r,a),Ql(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++)wf(j[l],m)}catch(w){Be(n,n.return,w)}}a&&d&64&&qd(r),Zl(r,r.return);break;case 27:Xd(r);case 26:case 5:Sa(l,r,a),a&&n===null&&d&4&&Yd(r),Zl(r,r.return);break;case 12:Sa(l,r,a);break;case 31:Sa(l,r,a),a&&d&4&&Kd(l,r);break;case 13:Sa(l,r,a),a&&d&4&&Jd(l,r);break;case 22:r.memoizedState===null&&Sa(l,r,a),Zl(r,r.return);break;case 30:break;default:Sa(l,r,a)}t=t.sibling}}function Zs(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&&Ol(a))}function Fs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ol(e))}function Jt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Pd(e,t,a,n),t=t.sibling}function Pd(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,n),l&2048&&Ql(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&&Ol(e)));break;case 12:if(l&2048){Jt(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,m=r.onPostCommit;typeof m=="function"&&m(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){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,d=t.alternate,t.memoizedState!==null?r._visibility&2?Jt(e,t,a,n):Fl(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&&Zs(d,t);break;case 24:Jt(e,t,a,n),l&2048&&Fs(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,d=t,m=a,j=n,w=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(r,d,m,j,l),Ql(8,d);break;case 23:break;case 22:var L=d.stateNode;d.memoizedState!==null?L._visibility&2?Kn(r,d,m,j,l):Fl(r,d):(L._visibility|=2,Kn(r,d,m,j,l)),l&&w&2048&&Zs(d.alternate,d);break;case 24:Kn(r,d,m,j,l),l&&w&2048&&Fs(d.alternate,d);break;default:Kn(r,d,m,j,l)}t=t.sibling}}function Fl(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:Fl(a,n),l&2048&&Zs(n.alternate,n);break;case 24:Fl(a,n),l&2048&&Fs(n.alternate,n);break;default:Fl(a,n)}t=t.sibling}}var Wl=8192;function Jn(e,t,a){if(e.subtreeFlags&Wl)for(e=e.child;e!==null;)ep(e,t,a),e=e.sibling}function ep(e,t,a){switch(e.tag){case 26:Jn(e,t,a),e.flags&Wl&&e.memoizedState!==null&&hg(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=Wl,Wl=16777216,Jn(e,t,a),Wl=n):Jn(e,t,a));break;default:Jn(e,t,a)}}function tp(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 Kl(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,np(n,e)}tp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ap(e),e=e.sibling}function ap(e){switch(e.tag){case 0:case 11:case 15:Kl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Kl(e);break;case 12:Kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,mr(e)):Kl(e);break;default:Kl(e)}}function mr(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,np(n,e)}tp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),mr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,mr(t));break;default:mr(t)}e=e.sibling}}function np(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:Ol(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(Fd(n),n===a){rt=null;break e}if(l!==null){l.return=r,rt=l;break e}rt=r}}}var wy={getCacheForType:function(e){var t=ft(Pe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ft(Pe).controller.signal}},Dy=typeof WeakMap=="function"?WeakMap:Map,De=0,Le=null,xe=null,je=0,ke=0,kt=null,La=!1,In=!1,Ws=!1,ja=0,Fe=0,qa=0,yn=0,Ks=0,Bt=0,$n=0,Jl=null,jt=null,Js=!1,yr=0,lp=0,gr=1/0,vr=null,Ga=null,lt=0,Ya=null,Pn=null,Ra=0,Is=0,$s=null,ip=null,Il=0,Ps=null;function Mt(){return(De&2)!==0&&je!==0?je&-je:B.T!==null?iu():bc()}function rp(){if(Bt===0)if((je&536870912)===0||Te){var e=Ai;Ai<<=1,(Ai&3932160)===0&&(Ai=262144),Bt=e}else Bt=536870912;return e=_t.current,e!==null&&(e.flags|=32),Bt}function Rt(e,t,a){(e===Le&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(el(e,0),Va(e,je,Bt,!1)),vl(e,a),((De&2)===0||e!==Le)&&(e===Le&&((De&2)===0&&(yn|=a),Fe===4&&Va(e,je,Bt,!1)),aa(e))}function op(e,t,a){if((De&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||gl(e,t),l=n?ky(e,t):tu(e,t,!0),r=n;do{if(l===0){In&&!n&&Va(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!_y(a)){l=tu(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var m=e;l=Jl;var j=m.current.memoizedState.isDehydrated;if(j&&(el(m,d).flags|=256),d=tu(m,d,!1),d!==2){if(Ws&&!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=d}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=yr+300-At(),10<l)){if(Va(n,t,Bt,!La),zi(n,0,!0)!==0)break e;Ra=t,n.timeoutHandle=Up(sp.bind(null,n,a,jt,vr,Js,t,Bt,yn,$n,La,r,"Throttled",-0,0),l);break e}sp(n,a,jt,vr,Js,t,Bt,yn,$n,La,r,null,-0,0)}}break}while(!0);aa(e)}function sp(e,t,a,n,l,r,d,m,j,w,L,G,O,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},ep(t,r,G);var J=(r&62914560)===r?yr-At():(r&4194048)===r?lp-At():0;if(J=mg(G,J),J!==null){Ra=r,e.cancelPendingCommit=J(yp.bind(null,e,t,r,a,n,l,d,m,j,L,G,null,O,H)),Va(e,r,d,!w);return}}yp(e,t,r,a,n,l,d,m,j)}function _y(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&=~Ks,t&=~yn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-zt(l),d=1<<r;n[r]=-1,l&=~d}a!==0&&gc(e,a,t)}function xr(){return(De&6)===0?($l(0),!1):!0}function eu(){if(xe!==null){if(ke===0)var e=xe.return;else e=xe,da=on=null,ys(e),Xn=null,Bl=0,e=xe;for(;e!==null;)Ld(e.alternate,e),e=e.return;xe=null}}function el(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Iy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ra=0,eu(),Le=e,xe=a=ca(e.current,null),je=t,ke=0,kt=null,La=!1,In=gl(e,t),Ws=!1,$n=Bt=Ks=yn=qa=Fe=0,jt=Jl=null,Js=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-zt(n),r=1<<l;t|=e[l],n&=~r}return ja=t,qi(),a}function up(e,t){de=null,B.H=Yl,t===Vn||t===Wi?(t=Tf(),ke=3):t===ls?(t=Tf(),ke=4):ke=t===Os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kt=t,xe===null&&(Fe=1,sr(e,qt(t,e.current)))}function cp(){var e=_t.current;return e===null?!0:(je&4194048)===je?Xt===null:(je&62914560)===je||(je&536870912)!==0?e===Xt:!1}function fp(){var e=B.H;return B.H=Yl,e===null?Yl:e}function dp(){var e=B.A;return B.A=wy,e}function br(){Fe=4,La||(je&4194048)!==je&&_t.current!==null||(In=!0),(qa&134217727)===0&&(yn&134217727)===0||Le===null||Va(Le,je,Bt,!1)}function tu(e,t,a){var n=De;De|=2;var l=fp(),r=dp();(Le!==e||je!==t)&&(vr=null,el(e,t)),t=!1;var d=Fe;e:do try{if(ke!==0&&xe!==null){var m=xe,j=kt;switch(ke){case 8:eu(),d=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var w=ke;if(ke=0,kt=null,tl(e,m,j,w),a&&In){d=0;break e}break;default:w=ke,ke=0,kt=null,tl(e,m,j,w)}}Oy(),d=Fe;break}catch(L){up(e,L)}while(!0);return t&&e.shellSuspendCounter++,da=on=null,De=n,B.H=l,B.A=r,xe===null&&(Le=null,je=0,qi()),d}function Oy(){for(;xe!==null;)pp(xe)}function ky(e,t){var a=De;De|=2;var n=fp(),l=dp();Le!==e||je!==t?(vr=null,gr=At()+500,el(e,t)):In=gl(e,t);e:do try{if(ke!==0&&xe!==null){t=xe;var r=kt;t:switch(ke){case 1:ke=0,kt=null,tl(e,t,r,1);break;case 2:case 9:if(Rf(r)){ke=0,kt=null,hp(t);break}t=function(){ke!==2&&ke!==9||Le!==e||(ke=7),aa(e)},r.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Rf(r)?(ke=0,kt=null,hp(t)):(ke=0,kt=null,tl(e,t,r,7));break;case 5:var d=null;switch(xe.tag){case 26:d=xe.memoizedState;case 5:case 27:var m=xe;if(d?Pp(d):m.stateNode.complete){ke=0,kt=null;var j=m.sibling;if(j!==null)xe=j;else{var w=m.return;w!==null?(xe=w,Sr(w)):xe=null}break t}}ke=0,kt=null,tl(e,t,r,5);break;case 6:ke=0,kt=null,tl(e,t,r,6);break;case 8:eu(),Fe=6;break e;default:throw Error(s(462))}}By();break}catch(L){up(e,L)}while(!0);return da=on=null,B.H=n,B.A=l,De=a,xe!==null?0:(Le=null,je=0,qi(),Fe)}function By(){for(;xe!==null&&!n0();)pp(xe)}function pp(e){var t=Hd(e.alternate,e,ja);e.memoizedProps=e.pendingProps,t===null?Sr(e):xe=t}function hp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=_d(a,t,t.pendingProps,t.type,void 0,je);break;case 11:t=_d(a,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:ys(t);default:Ld(a,t),t=xe=df(t,ja),t=Hd(a,t,ja)}e.memoizedProps=e.pendingProps,t===null?Sr(e):xe=t}function tl(e,t,a,n){da=on=null,ys(t),Xn=null,Bl=0;var l=t.return;try{if(jy(e,l,t,a,je)){Fe=1,sr(e,qt(a,e.current)),xe=null;return}}catch(r){if(l!==null)throw xe=l,r;Fe=1,sr(e,qt(a,e.current)),xe=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))),mp(t,e)):Sr(t)}function Sr(e){var t=e;do{if((t.flags&32768)!==0){mp(t,La);return}e=t.return;var a=Ty(t.alternate,t,ja);if(a!==null){xe=a;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Fe===0&&(Fe=5)}function mp(e,t){do{var a=Ay(e.alternate,e);if(a!==null){a.flags&=32767,xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=a}while(e!==null);Fe=6,xe=null}function yp(e,t,a,n,l,r,d,m,j){e.cancelPendingCommit=null;do jr();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|=Vo,p0(e,a,r,d,m,j),e===Le&&(xe=Le=null,je=0),Pn=t,Ya=e,Ra=a,Is=r,$s=l,ip=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uy(Ei,function(){return Sp(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null,l=Q.p,Q.p=2,d=De,De|=4;try{Cy(e,t,a)}finally{De=d,Q.p=l,B.T=n}}lt=1,gp(),vp(),xp()}}function gp(){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=Q.p;Q.p=2;var l=De;De|=4;try{Id(t,e);var r=pu,d=af(e.containerInfo),m=r.focusedElem,j=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&tf(m.ownerDocument.documentElement,m)){if(j!==null&&Uo(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,O=G&&G.defaultView||window;if(O.getSelection){var H=O.getSelection(),J=m.textContent.length,le=Math.min(j.start,J),Ue=j.end===void 0?le:Math.min(j.end,J);!H.extend&&le>Ue&&(d=Ue,Ue=le,le=d);var T=ef(m,le),R=ef(m,Ue);if(T&&R&&(H.rangeCount!==1||H.anchorNode!==T.node||H.anchorOffset!==T.offset||H.focusNode!==R.node||H.focusOffset!==R.offset)){var z=G.createRange();z.setStart(T.node,T.offset),H.removeAllRanges(),le>Ue?(H.addRange(z),H.extend(R.node,R.offset)):(z.setEnd(R.node,R.offset),H.addRange(z))}}}}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}}Br=!!du,pu=du=null}finally{De=l,Q.p=n,B.T=a}}e.current=t,lt=2}}function vp(){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=Q.p;Q.p=2;var l=De;De|=4;try{Zd(e,t.alternate,t)}finally{De=l,Q.p=n,B.T=a}}lt=3}}function xp(){if(lt===4||lt===3){lt=0,l0();var e=Ya,t=Pn,a=Ra,n=ip;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Pn=Ya=null,bp(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(Ga=null),xo(a),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(yl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=B.T,l=Q.p,Q.p=2,B.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var m=n[d];r(m.value,{componentStack:m.stack})}}finally{B.T=t,Q.p=l}}(Ra&3)!==0&&jr(),aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Ps?Il++:(Il=0,Ps=e):Il=0,$l(0)}}function bp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ol(t)))}function jr(){return gp(),vp(),xp(),Sp()}function Sp(){if(lt!==5)return!1;var e=Ya,t=Is;Is=0;var a=xo(Ra),n=B.T,l=Q.p;try{Q.p=32>a?32:a,B.T=null,a=$s,$s=null;var r=Ya,d=Ra;if(lt=0,Pn=Ya=null,Ra=0,(De&6)!==0)throw Error(s(331));var m=De;if(De|=4,ap(r.current),Pd(r,r.current,d,a),De=m,$l(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(yl,r)}catch{}return!0}finally{Q.p=l,B.T=n,bp(e,t)}}function jp(e,t,a){t=qt(a,t),t=_s(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(vl(e,2),aa(e))}function Be(e,t,a){if(e.tag===3)jp(e,e,a);else for(;t!==null;){if(t.tag===3){jp(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=Rd(2),n=Ma(t,a,2),n!==null&&(Ed(a,n,t,e),vl(n,2),aa(n));break}}t=t.return}}function au(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Dy;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)||(Ws=!0,l.add(a),e=My.bind(null,e,t,a),t.then(e,e))}function My(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(je&a)===a&&(Fe===4||Fe===3&&(je&62914560)===je&&300>At()-yr?(De&2)===0&&el(e,0):Ks|=a,$n===je&&($n=0)),aa(e)}function Rp(e,t){t===0&&(t=yc()),e=nn(e,t),e!==null&&(vl(e,t),aa(e))}function Ny(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Rp(e,a)}function Hy(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),Rp(e,a)}function Uy(e,t){return mo(e,t)}var Rr=null,al=null,nu=!1,Er=!1,lu=!1,Xa=0;function aa(e){e!==al&&e.next===null&&(al===null?Rr=al=e:al=al.next=e),Er=!0,nu||(nu=!0,qy())}function $l(e,t){if(!lu&&Er){lu=!0;do for(var a=!1,n=Rr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var d=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-zt(42|e)+1)-1,r&=l&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Cp(n,r))}else r=je,r=zi(n,n===Le?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||gl(n,r)||(a=!0,Cp(n,r));n=n.next}while(a);lu=!1}}function Ly(){Ep()}function Ep(){Er=nu=!1;var e=0;Xa!==0&&Jy()&&(e=Xa);for(var t=At(),a=null,n=Rr;n!==null;){var l=n.next,r=Tp(n,t);r===0?(n.next=null,a===null?Rr=l:a.next=l,l===null&&(al=a)):(a=n,(e!==0||(r&3)!==0)&&(Er=!0)),n=l}lt!==0&<!==5||$l(e),Xa!==0&&(Xa=0)}function Tp(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-zt(r),m=1<<d,j=l[d];j===-1?((m&a)===0||(m&n)!==0)&&(l[d]=d0(m,t)):j<=t&&(e.expiredLanes|=m),r&=~m}if(t=Le,a=je,a=zi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&yo(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||gl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&yo(n),xo(a)){case 2:case 8:a=hc;break;case 32:a=Ei;break;case 268435456:a=mc;break;default:a=Ei}return n=Ap.bind(null,e),a=mo(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&yo(n),e.callbackPriority=2,e.callbackNode=null,2}function Ap(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(jr()&&e.callbackNode!==a)return null;var n=je;return n=zi(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(op(e,n,t),Tp(e,At()),e.callbackNode!=null&&e.callbackNode===a?Ap.bind(null,e):null)}function Cp(e,t){if(jr())return null;op(e,t,!0)}function qy(){$y(function(){(De&6)!==0?mo(pc,Ly):Ep()})}function iu(){if(Xa===0){var e=Gn;e===0&&(e=Ti,Ti<<=1,(Ti&261888)===0&&(Ti=256)),Xa=e}return Xa}function zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Oi(""+e)}function wp(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 Gy(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=zp((l[gt]||null).action),d=n.submitter;d&&(t=(t=d[gt]||null)?zp(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var m=new Ni("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Xa!==0){var j=d?wp(l,d):new FormData(l);Ts(a,{pending:!0,data:j,method:l.method,action:r},null,j)}}else typeof r=="function"&&(m.preventDefault(),j=d?wp(l,d):new FormData(l),Ts(a,{pending:!0,data:j,method:l.method,action:r},r,j))},currentTarget:l}]})}}for(var ru=0;ru<Yo.length;ru++){var ou=Yo[ru],Yy=ou.toLowerCase(),Vy=ou[0].toUpperCase()+ou.slice(1);Wt(Yy,"on"+Vy)}Wt(rf,"onAnimationEnd"),Wt(of,"onAnimationIteration"),Wt(sf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(iy,"onTransitionRun"),Wt(ry,"onTransitionStart"),Wt(oy,"onTransitionCancel"),Wt(uf,"onTransitionEnd"),Cn("onMouseEnter",["mouseout","mouseover"]),Cn("onMouseLeave",["mouseout","mouseover"]),Cn("onPointerEnter",["pointerout","pointerover"]),Cn("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 Pl="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(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pl));function Dp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var m=n[d],j=m.instance,w=m.currentTarget;if(m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=w;try{r(l)}catch(L){Li(L)}l.currentTarget=null,r=j}else for(d=0;d<n.length;d++){if(m=n[d],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){Li(L)}l.currentTarget=null,r=j}}}}function be(e,t){var a=t[bo];a===void 0&&(a=t[bo]=new Set);var n=e+"__bubble";a.has(n)||(_p(t,e,2,!1),a.add(n))}function su(e,t,a){var n=0;t&&(n|=4),_p(a,e,n,t)}var Tr="_reactListening"+Math.random().toString(36).slice(2);function uu(e){if(!e[Tr]){e[Tr]=!0,Rc.forEach(function(a){a!=="selectionchange"&&(Xy.has(a)||su(a,!1,e),su(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tr]||(t[Tr]=!0,su("selectionchange",!1,t))}}function _p(e,t,a,n){switch(rh(t)){case 2:var l=vg;break;case 8:l=xg;break;default:l=Eu}a=l.bind(null,t,a,e),l=void 0,!wo||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 cu(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var m=n.stateNode.containerInfo;if(m===l)break;if(d===4)for(d=n.return;d!==null;){var j=d.tag;if((j===3||j===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;m!==null;){if(d=En(m),d===null)return;if(j=d.tag,j===5||j===6||j===26||j===27){n=r=d;continue e}m=m.parentNode}}n=n.return}Mc(function(){var w=r,L=Co(a),G=[];e:{var O=cf.get(e);if(O!==void 0){var H=Ni,J=e;switch(e){case"keypress":if(Bi(a)===0)break e;case"keydown":case"keyup":H=H0;break;case"focusin":J="focus",H=ko;break;case"focusout":J="blur",H=ko;break;case"beforeblur":case"afterblur":H=ko;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=Uc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=q0;break;case rf:case of:case sf:H=z0;break;case uf:H=Y0;break;case"scroll":case"scrollend":H=R0;break;case"wheel":H=X0;break;case"copy":case"cut":case"paste":H=D0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=qc;break;case"toggle":case"beforetoggle":H=Z0}var le=(t&4)!==0,Ue=!le&&(e==="scroll"||e==="scrollend"),T=le?O!==null?O+"Capture":null:O;le=[];for(var R=w,z;R!==null;){var q=R;if(z=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||z===null||T===null||(q=Sl(R,T),q!=null&&le.push(ei(R,q,z))),Ue)break;R=R.return}0<le.length&&(O=new H(O,J,null,a,L),G.push({event:O,listeners:le}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",O&&a!==Ao&&(J=a.relatedTarget||a.fromElement)&&(En(J)||J[Rn]))break e;if((H||O)&&(O=L.window===L?L:(O=L.ownerDocument)?O.defaultView||O.parentWindow:window,H?(J=a.relatedTarget||a.toElement,H=w,J=J?En(J):null,J!==null&&(Ue=p(J),le=J.tag,J!==Ue||le!==5&&le!==27&&le!==6)&&(J=null)):(H=null,J=w),H!==J)){if(le=Uc,q="onMouseLeave",T="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(le=qc,q="onPointerLeave",T="onPointerEnter",R="pointer"),Ue=H==null?O:bl(H),z=J==null?O:bl(J),O=new le(q,R+"leave",H,a,L),O.target=Ue,O.relatedTarget=z,q=null,En(L)===w&&(le=new le(T,R+"enter",J,a,L),le.target=z,le.relatedTarget=Ue,q=le),Ue=q,H&&J)t:{for(le=Qy,T=H,R=J,z=0,q=T;q;q=le(q))z++;q=0;for(var ae=R;ae;ae=le(ae))q++;for(;0<z-q;)T=le(T),z--;for(;0<q-z;)R=le(R),q--;for(;z--;){if(T===R||R!==null&&T===R.alternate){le=T;break t}T=le(T),R=le(R)}le=null}else le=null;H!==null&&Op(G,O,H,le,!1),J!==null&&Ue!==null&&Op(G,Ue,J,le,!0)}}e:{if(O=w?bl(w):window,H=O.nodeName&&O.nodeName.toLowerCase(),H==="select"||H==="input"&&O.type==="file")var ze=Wc;else if(Zc(O))if(Kc)ze=ay;else{ze=ey;var ee=P0}else H=O.nodeName,!H||H.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?w&&To(w.elementType)&&(ze=Wc):ze=ty;if(ze&&(ze=ze(e,w))){Fc(G,ze,a,L);break e}ee&&ee(e,O,w),e==="focusout"&&w&&O.type==="number"&&w.memoizedProps.value!=null&&Eo(O,"number",O.value)}switch(ee=w?bl(w):window,e){case"focusin":(Zc(ee)||ee.contentEditable==="true")&&(kn=ee,Lo=w,wl=null);break;case"focusout":wl=Lo=kn=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,nf(G,a,L);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":nf(G,a,L)}var he;if(Mo)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 On?Xc(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(Gc&&a.locale!=="ko"&&(On||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&On&&(he=Nc()):(za=L,Do="value"in za?za.value:za.textContent,On=!0)),ee=Ar(w,Re),0<ee.length&&(Re=new Lc(Re,e,null,a,L),G.push({event:Re,listeners:ee}),he?Re.data=he:(he=Qc(a),he!==null&&(Re.data=he)))),(he=W0?K0(e,a):J0(e,a))&&(Re=Ar(w,"onBeforeInput"),0<Re.length&&(ee=new Lc("onBeforeInput","beforeinput",null,a,L),G.push({event:ee,listeners:Re}),ee.data=he)),Gy(G,e,w,a,L)}Dp(G,t)})}function ei(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ar(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=Sl(e,a),l!=null&&n.unshift(ei(e,l,r)),l=Sl(e,t),l!=null&&n.push(ei(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Op(e,t,a,n,l){for(var r=t._reactName,d=[];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=Sl(a,r),w!=null&&d.unshift(ei(a,w,j))):l||(w=Sl(a,r),w!=null&&d.push(ei(a,w,j)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Zy=/\r\n?/g,Fy=/\u0000|\uFFFD/g;function kp(e){return(typeof e=="string"?e:""+e).replace(Zy,`
|
|
9
|
+
`).replace(Fy,"")}function Bp(e,t){return t=kp(t),kp(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":Di(e,"class",n);break;case"tabIndex":Di(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Di(e,a,n);break;case"style":kc(e,n,r);break;case"data":if(t!=="object"){Di(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=Oi(""+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=Oi(""+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=Oi(""+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),wi(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":wi(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=S0.get(a)||a,wi(e,a,n))}}function fu(e,t,a,n,l,r){switch(a){case"style":kc(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(!Ec.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,""):wi(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 d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,r,d,a,null)}}l&&He(e,t,"srcSet",a.srcSet,a,null),n&&He(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var m=r=d=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":d=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)}}wc(e,r,m,j,w,d,l,!1);return;case"select":be("invalid",e),n=d=r=null;for(l in a)if(a.hasOwnProperty(l)&&(m=a[l],m!=null))switch(l){case"value":r=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:He(e,t,l,m,a,null)}t=r,a=d,e.multiple=!!n,t!=null?zn(e,!!n,t,!1):a!=null&&zn(e,!!n,a,!0);return;case"textarea":be("invalid",e),r=l=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":l=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:He(e,t,d,m,a,null)}_c(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<Pl.length;n++)be(Pl[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(To(t)){for(L in a)a.hasOwnProperty(L)&&(n=a[L],n!==void 0&&fu(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 Wy(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,d=null,m=null,j=null,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 O in n){var H=n[O];if(G=a[O],n.hasOwnProperty(O)&&(H!=null||G!=null))switch(O){case"type":r=H;break;case"name":l=H;break;case"checked":w=H;break;case"defaultChecked":L=H;break;case"value":d=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:H!==G&&He(e,t,O,H,n,G)}}Ro(e,d,m,j,w,L,r,l);return;case"select":H=d=m=O=null;for(r in a)if(j=a[r],a.hasOwnProperty(r)&&j!=null)switch(r){case"value":break;case"multiple":H=j;default:n.hasOwnProperty(r)||He(e,t,r,null,n,j)}for(l in n)if(r=n[l],j=a[l],n.hasOwnProperty(l)&&(r!=null||j!=null))switch(l){case"value":O=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==j&&He(e,t,l,r,n,j)}t=m,a=d,n=H,O!=null?zn(e,!!a,O,!1):!!n!=!!a&&(t!=null?zn(e,!!a,t,!0):zn(e,!!a,a?[]:"",!1));return;case"textarea":H=O=null;for(m in a)if(l=a[m],a.hasOwnProperty(m)&&l!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:He(e,t,m,null,n,l)}for(d in n)if(l=n[d],r=a[d],n.hasOwnProperty(d)&&(l!=null||r!=null))switch(d){case"value":O=l;break;case"defaultValue":H=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(s(91));break;default:l!==r&&He(e,t,d,l,n,r)}Dc(e,O,H);return;case"option":for(var J in a)O=a[J],a.hasOwnProperty(J)&&O!=null&&!n.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:He(e,t,J,null,n,O));for(j in n)O=n[j],H=a[j],n.hasOwnProperty(j)&&O!==H&&(O!=null||H!=null)&&(j==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":He(e,t,j,O,n,H));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in a)O=a[le],a.hasOwnProperty(le)&&O!=null&&!n.hasOwnProperty(le)&&He(e,t,le,null,n,O);for(w in n)if(O=n[w],H=a[w],n.hasOwnProperty(w)&&O!==H&&(O!=null||H!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:He(e,t,w,O,n,H)}return;default:if(To(t)){for(var Ue in a)O=a[Ue],a.hasOwnProperty(Ue)&&O!==void 0&&!n.hasOwnProperty(Ue)&&fu(e,t,Ue,void 0,n,O);for(L in n)O=n[L],H=a[L],!n.hasOwnProperty(L)||O===H||O===void 0&&H===void 0||fu(e,t,L,O,n,H);return}}for(var T in a)O=a[T],a.hasOwnProperty(T)&&O!=null&&!n.hasOwnProperty(T)&&He(e,t,T,null,n,O);for(G in n)O=n[G],H=a[G],!n.hasOwnProperty(G)||O===H||O==null&&H==null||He(e,t,G,O,n,H)}function Mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ky(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],r=l.transferSize,d=l.initiatorType,m=l.duration;if(r&&m&&Mp(d)){for(d=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&&Mp(G)&&(j=j.responseEnd,d+=L*(j<m?1:(m-w)/(j-w)))}if(--n,t+=8*(r+d)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var du=null,pu=null;function Cr(e){return e.nodeType===9?e:e.ownerDocument}function Np(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 Hp(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 hu(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 mu=null;function Jy(){var e=window.event;return e&&e.type==="popstate"?e===mu?!1:(mu=e,!0):(mu=null,!1)}var Up=typeof setTimeout=="function"?setTimeout:void 0,Iy=typeof clearTimeout=="function"?clearTimeout:void 0,Lp=typeof Promise=="function"?Promise:void 0,$y=typeof queueMicrotask=="function"?queueMicrotask:typeof Lp<"u"?function(e){return Lp.resolve(null).then(e).catch(Py)}:Up;function Py(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function qp(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")ti(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ti(a);for(var r=a.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[xl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&ti(e.ownerDocument.body);a=l}while(a);rl(t)}function Gp(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 yu(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":yu(a),So(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function eg(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 tg(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 Yp(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 gu(e){return e.data==="$?"||e.data==="$~"}function vu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ag(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 xu=null;function Vp(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 Xp(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 Qp(e,t,a){switch(t=Cr(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 ti(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);So(e)}var Zt=new Map,Zp=new Set;function zr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=Q.d;Q.d={f:ng,r:lg,D:ig,C:rg,L:og,m:sg,X:cg,S:ug,M:fg};function ng(){var e=Ea.f(),t=xr();return e||t}function lg(e){var t=Tn(e);t!==null&&t.tag===5&&t.type==="form"?ud(t):Ea.r(e)}var nl=typeof document>"u"?null:document;function Fp(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+'"]'),Zp.has(l)||(Zp.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 ig(e){Ea.D(e),Fp("dns-prefetch",e,null)}function rg(e,t){Ea.C(e,t),Fp("preconnect",e,t)}function og(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(ai(r))||t==="script"&&n.querySelector(ni(r))||(t=n.createElement("link"),pt(t,"link",e),it(t),n.head.appendChild(t)))}}function sg(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(ni(r)))return}n=a.createElement("link"),pt(n,"link",e),it(n),a.head.appendChild(n)}}}function ug(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 d=l.get(r);if(!d){var m={loading:0,preload:null};if(d=n.querySelector(ai(r)))m.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Zt.get(r))&&bu(e,a);var j=d=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,wr(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},l.set(r,d)}}}function cg(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(ni(l)),r||(e=g({src:e,async:!0},t),(t=Zt.get(l))&&Su(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 fg(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(ni(l)),r||(e=g({src:e,async:!0,type:"module"},t),(t=Zt.get(l))&&Su(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 Wp(e,t,a,n){var l=(l=ue.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,d=r.get(e);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=l.querySelector(ai(e)))&&!r._p&&(d.instance=r,d.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||dg(l,e,a,d.state))),t&&n===null)throw Error(s(528,""));return d}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=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 ai(e){return'link[rel="stylesheet"]['+e+"]"}function Kp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function dg(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 ni(e){return"script[async]"+e}function Jp(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),wr(n,a.precedence,e),t.instance=n;case"stylesheet":l=ll(a.href);var r=e.querySelector(ai(l));if(r)return t.state.loading|=4,t.instance=r,it(r),r;n=Kp(a),(l=Zt.get(l))&&bu(n,l),r=(e.ownerDocument||e).createElement("link"),it(r);var d=r;return d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),pt(r,"link",n),t.state.loading|=4,wr(r,a.precedence,e),t.instance=r;case"script":return r=il(a.src),(l=e.querySelector(ni(r)))?(t.instance=l,it(l),l):(n=a,(l=Zt.get(r))&&(n=g({},a),Su(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,wr(n,a.precedence,e));return t.instance}function wr(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,r=l,d=0;d<n.length;d++){var m=n[d];if(m.dataset.precedence===t)r=m;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function bu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Su(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Dr=null;function Ip(e,t,a){if(Dr===null){var n=new Map,l=Dr=new Map;l.set(a,n)}else l=Dr,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 d=r.getAttribute(t)||"";d=e+d;var m=n.get(d);m?m.push(r):n.set(d,[r])}}return n}function $p(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function pg(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 Pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function hg(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=ll(n.href),r=t.querySelector(ai(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_r.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,it(r);return}r=t.ownerDocument||t,n=Kp(n),(l=Zt.get(l))&&bu(n,l),r=r.createElement("link"),it(r);var d=r;d._p=new Promise(function(m,j){d.onload=m,d.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=_r.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ju=0;function mg(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&&ju===0&&(ju=62500*Ky());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>ju?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function _r(){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 Or=null;function kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Or=new Map,t.forEach(yg,e),Or=null,_r.call(e))}function yg(e,t){if(!(t.state.loading&4)){var a=Or.get(e);if(a)var n=a.get(null);else{a=new Map,Or.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var d=l[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}l=t.instance,d=l.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,l),a.set(d,l),this.count++,n=_r.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 li={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function gg(e,t,a,n,l,r,d,m,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function eh(e,t,a,n,l,r,d,m,j,w,L,G){return e=new gg(e,t,a,d,j,w,L,G,m),t=1,r===!0&&(t|=24),r=Dt(3,null,null,t),e.current=r,r.stateNode=e,t=ts(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},is(r),e}function th(e){return e?(e=Nn,e):Nn}function ah(e,t,a,n,l,r){l=th(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),Nl(a,e,t))}function nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ru(e,t){nh(e,t),(e=e.alternate)&&nh(e,t)}function lh(e){if(e.tag===13||e.tag===31){var t=nn(e,67108864);t!==null&&Rt(t,e,67108864),Ru(e,67108864)}}function ih(e){if(e.tag===13||e.tag===31){var t=Mt();t=vo(t);var a=nn(e,t);a!==null&&Rt(a,e,t),Ru(e,t)}}var Br=!0;function vg(e,t,a,n){var l=B.T;B.T=null;var r=Q.p;try{Q.p=2,Eu(e,t,a,n)}finally{Q.p=r,B.T=l}}function xg(e,t,a,n){var l=B.T;B.T=null;var r=Q.p;try{Q.p=8,Eu(e,t,a,n)}finally{Q.p=r,B.T=l}}function Eu(e,t,a,n){if(Br){var l=Tu(n);if(l===null)cu(e,t,n,Mr,a),oh(e,n);else if(Sg(l,e,t,a,n))n.stopPropagation();else if(oh(e,n),t&4&&-1<bg.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 d=$a(r.pendingLanes);if(d!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var j=1<<31-zt(d);m.entanglements[1]|=j,d&=~j}aa(r),(De&6)===0&&(gr=At()+500,$l(0))}}break;case 31:case 13:m=nn(r,2),m!==null&&Rt(m,r,2),xr(),Ru(r,2)}if(r=Tu(n),r===null&&cu(e,t,n,Mr,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else cu(e,t,n,null,a)}}function Tu(e){return e=Co(e),Au(e)}var Mr=null;function Au(e){if(Mr=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=v(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 Mr=e,null}function rh(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(i0()){case pc:return 2;case hc:return 8;case Ei:case r0:return 32;case mc:return 268435456;default:return 32}default:return 32}}var Cu=!1,Za=null,Fa=null,Wa=null,ii=new Map,ri=new Map,Ka=[],bg="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 oh(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":ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function oi(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&&lh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Sg(e,t,a,n,l){switch(t){case"focusin":return Za=oi(Za,e,t,a,n,l),!0;case"dragenter":return Fa=oi(Fa,e,t,a,n,l),!0;case"mouseover":return Wa=oi(Wa,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return ii.set(r,oi(ii.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ri.set(r,oi(ri.get(r)||null,e,t,a,n,l)),!0}return!1}function sh(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,Sc(e.priority,function(){ih(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Sc(e.priority,function(){ih(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 Nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Tu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Ao=n,a.target.dispatchEvent(n),Ao=null}else return t=Tn(a),t!==null&&lh(t),e.blockedOn=a,!1;t.shift()}return!0}function uh(e,t,a){Nr(e)&&a.delete(t)}function jg(){Cu=!1,Za!==null&&Nr(Za)&&(Za=null),Fa!==null&&Nr(Fa)&&(Fa=null),Wa!==null&&Nr(Wa)&&(Wa=null),ii.forEach(uh),ri.forEach(uh)}function Hr(e,t){e.blockedOn===t&&(e.blockedOn=null,Cu||(Cu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jg)))}var Ur=null;function ch(e){Ur!==e&&(Ur=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ur===e&&(Ur=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(Au(n||a)===null)continue;break}var r=Tn(a);r!==null&&(e.splice(t,3),t-=3,Ts(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function rl(e){function t(j){return Hr(j,e)}Za!==null&&Hr(Za,e),Fa!==null&&Hr(Fa,e),Wa!==null&&Hr(Wa,e),ii.forEach(t),ri.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);)sh(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],d=l[gt]||null;if(typeof r=="function")d||ch(a);else if(d){var m=null;if(r&&r.hasAttribute("formAction")){if(l=r,d=r[gt]||null)m=d.formAction;else if(Au(l)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),ch(a)}}}function fh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return l=d})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function zu(e){this._internalRoot=e}Lr.prototype.render=zu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=Mt();ah(a,n,e,t,null,null)},Lr.prototype.unmount=zu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ah(e.current,2,null,e,null,null),xr(),t[Rn]=null}};function Lr(e){this._internalRoot=e}Lr.prototype.unstable_scheduleHydration=function(e){if(e){var t=bc();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&&sh(e)}};var dh=o.version;if(dh!=="19.2.4")throw Error(s(527,dh,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Rg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qr.isDisabled&&qr.supportsFiber)try{yl=qr.inject(Rg),Ct=qr}catch{}}return ui.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,n="",l=xd,r=bd,d=Sd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=eh(e,1,!1,null,null,a,n,null,l,r,d,fh),e[Rn]=t.current,uu(e),new zu(t)},ui.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var n=!1,l="",r=xd,d=bd,m=Sd,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=eh(e,1,!0,t,a??null,n,l,j,r,d,m,fh),t.context=th(null),a=t.current,n=Mt(),n=vo(n),l=Ba(n),l.callback=null,Ma(a,l,n),a=n,t.current.lanes=a,vl(t,a),aa(t),e[Rn]=t.current,uu(e),new Lr(t)},ui.version="19.2.4",ui}var jh;function kg(){if(jh)return _u.exports;jh=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(),_u.exports=Og(),_u.exports}var Bg=kg();const Mg=lm(Bg);var Rh="popstate";function Eh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ng(i={}){function o(s,f){let p=f.state?.masked,{pathname:h,search:v,hash:b}=p||s.location;return Xu("",{pathname:h,search:v,hash:b},f.state&&f.state.usr||null,f.state&&f.state.key||"default",p?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function c(s,f){return typeof f=="string"?f:pi(f)}return Ug(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 Hg(){return Math.random().toString(36).substring(2,10)}function Th(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 Xu(i,o,c=null,s,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?fl(o):o,state:c,key:o&&o.key||s||Hg(),unstable_mask:f}}function pi({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 fl(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 Ug(i,o,c,s={}){let{window:f=document.defaultView,v5Compat:p=!1}=s,h=f.history,v="POP",b=null,y=x();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function x(){return(h.state||{idx:null}).idx}function g(){v="POP";let D=x(),Z=D==null?null:D-y;y=D,b&&b({action:v,location:U.location,delta:Z})}function C(D,Z){v="PUSH";let P=Eh(D)?D:Xu(U.location,D,Z);y=x()+1;let X=Th(P,y),ne=U.createHref(P.unstable_mask||P);try{h.pushState(X,"",ne)}catch(fe){if(fe instanceof DOMException&&fe.name==="DataCloneError")throw fe;f.location.assign(ne)}p&&b&&b({action:v,location:U.location,delta:1})}function _(D,Z){v="REPLACE";let P=Eh(D)?D:Xu(U.location,D,Z);y=x();let X=Th(P,y),ne=U.createHref(P.unstable_mask||P);h.replaceState(X,"",ne),p&&b&&b({action:v,location:U.location,delta:0})}function A(D){return Lg(D)}let U={get action(){return v},get location(){return i(f,h)},listen(D){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(Rh,g),b=D,()=>{f.removeEventListener(Rh,g),b=null}},createHref(D){return o(f,D)},createURL:A,encodeLocation(D){let Z=A(D);return{pathname:Z.pathname,search:Z.search,hash:Z.hash}},push:C,replace:_,go(D){return h.go(D)}};return U}function Lg(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:pi(i);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=c+s),new URL(s,c)}function im(i,o,c="/"){return qg(i,o,c,!1)}function qg(i,o,c,s){let f=typeof o=="string"?fl(o):o,p=Ta(f.pathname||"/",c);if(p==null)return null;let h=rm(i);Gg(h);let v=null;for(let b=0;v==null&&b<h.length;++b){let y=$g(p);v=Jg(h[b],y,s)}return v}function rm(i,o=[],c=[],s="",f=!1){let p=(h,v,b=f,y)=>{let x={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:v,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&b)return;Qe(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let g=la([s,x.relativePath]),C=c.concat(x);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}".`),rm(h.children,o,C,g,b)),!(h.path==null&&!h.index)&&o.push({path:g,score:Wg(g,h.index),routesMeta:C})};return i.forEach((h,v)=>{if(h.path===""||!h.path?.includes("?"))p(h,v);else for(let b of om(h.path))p(h,v,!0,b)}),o}function om(i){let o=i.split("/");if(o.length===0)return[];let[c,...s]=o,f=c.endsWith("?"),p=c.replace(/\?$/,"");if(s.length===0)return f?[p,""]:[p];let h=om(s.join("/")),v=[];return v.push(...h.map(b=>b===""?p:[p,b].join("/"))),f&&v.push(...h),v.map(b=>i.startsWith("/")&&b===""?"/":b)}function Gg(i){i.sort((o,c)=>o.score!==c.score?c.score-o.score:Kg(o.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var Yg=/^:[\w-]+$/,Vg=3,Xg=2,Qg=1,Zg=10,Fg=-2,Ah=i=>i==="*";function Wg(i,o){let c=i.split("/"),s=c.length;return c.some(Ah)&&(s+=Fg),o&&(s+=Xg),c.filter(f=>!Ah(f)).reduce((f,p)=>f+(Yg.test(p)?Vg:p===""?Qg:Zg),s)}function Kg(i,o){return i.length===o.length&&i.slice(0,-1).every((s,f)=>s===o[f])?i[i.length-1]-o[o.length-1]:0}function Jg(i,o,c=!1){let{routesMeta:s}=i,f={},p="/",h=[];for(let v=0;v<s.length;++v){let b=s[v],y=v===s.length-1,x=p==="/"?o:o.slice(p.length)||"/",g=$r({path:b.relativePath,caseSensitive:b.caseSensitive,end:y},x),C=b.route;if(!g&&y&&c&&!s[s.length-1].route.index&&(g=$r({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},x)),!g)return null;Object.assign(f,g.params),h.push({params:f,pathname:la([p,g.pathname]),pathnameBase:a1(la([p,g.pathnameBase])),route:C}),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]=Ig(i.path,i.caseSensitive,i.end),f=o.match(c);if(!f)return null;let p=f[0],h=p.replace(/(.)\/+$/,"$1"),v=f.slice(1);return{params:s.reduce((y,{paramName:x,isOptional:g},C)=>{if(x==="*"){let A=v[C]||"";h=p.slice(0,p.length-A.length).replace(/(.)\/+$/,"$1")}const _=v[C];return g&&!_?y[x]=void 0:y[x]=(_||"").replace(/%2F/g,"/"),y},{}),pathname:p,pathnameBase:h,pattern:i}}function Ig(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=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,v,b,y,x)=>{if(s.push({paramName:v,isOptional:b!=null}),b){let g=x.charAt(y+h.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),s]}function $g(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return 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 Pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function e1(i,o="/"){let{pathname:c,search:s="",hash:f=""}=typeof i=="string"?fl(i):i,p;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?p=Ch(c.substring(1),"/"):p=Ch(c,o)):p=o,{pathname:p,search:n1(s),hash:l1(f)}}function Ch(i,o){let c=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function Mu(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 t1(i){return i.filter((o,c)=>c===0||o.route.path&&o.route.path.length>0)}function ec(i){let o=t1(i);return o.map((c,s)=>s===o.length-1?c.pathname:c.pathnameBase)}function to(i,o,c,s=!1){let f;typeof i=="string"?f=fl(i):(f={...i},Qe(!f.pathname||!f.pathname.includes("?"),Mu("?","pathname","search",f)),Qe(!f.pathname||!f.pathname.includes("#"),Mu("#","pathname","hash",f)),Qe(!f.search||!f.search.includes("#"),Mu("#","search","hash",f)));let p=i===""||f.pathname==="",h=p?"/":f.pathname,v;if(h==null)v=c;else{let g=o.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),g-=1;f.pathname=C.join("/")}v=g>=0?o[g]:"/"}let b=e1(f,v),y=h&&h!=="/"&&h.endsWith("/"),x=(p||h===".")&&c.endsWith("/");return!b.pathname.endsWith("/")&&(y||x)&&(b.pathname+="/"),b}var la=i=>i.join("/").replace(/\/\/+/g,"/"),a1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),n1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,l1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,i1=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 r1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function o1(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var sm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function um(i,o){let c=i;if(typeof c!="string"||!Pg.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let s=c,f=!1;if(sm)try{let p=new URL(window.location.href),h=c.startsWith("//")?new URL(p.protocol+c):new URL(c),v=Ta(h.pathname,o);h.origin===p.origin&&v!=null?c=v+h.search+h.hash:f=!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:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cm=["POST","PUT","PATCH","DELETE"];new Set(cm);var s1=["GET",...cm];new Set(s1);var dl=E.createContext(null);dl.displayName="DataRouter";var ao=E.createContext(null);ao.displayName="DataRouterState";var u1=E.createContext(!1),fm=E.createContext({isTransitioning:!1});fm.displayName="ViewTransition";var c1=E.createContext(new Map);c1.displayName="Fetchers";var f1=E.createContext(null);f1.displayName="Await";var Nt=E.createContext(null);Nt.displayName="Navigation";var yi=E.createContext(null);yi.displayName="Location";var ia=E.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var tc=E.createContext(null);tc.displayName="RouteError";var dm="REACT_ROUTER_ERROR",d1="REDIRECT",p1="ROUTE_ERROR_RESPONSE";function h1(i){if(i.startsWith(`${dm}:${d1}:{`))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 m1(i){if(i.startsWith(`${dm}:${p1}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new i1(o.status,o.statusText,o.data)}catch{}}function y1(i,{relative:o}={}){Qe(pl(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=E.useContext(Nt),{hash:f,pathname:p,search:h}=gi(i,{relative:o}),v=p;return c!=="/"&&(v=p==="/"?c:la([c,p])),s.createHref({pathname:v,search:h,hash:f})}function pl(){return E.useContext(yi)!=null}function ra(){return Qe(pl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(yi).location}var pm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hm(i){E.useContext(Nt).static||E.useLayoutEffect(i)}function no(){let{isDataRoute:i}=E.useContext(ia);return i?w1():g1()}function g1(){Qe(pl(),"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:f}=ra(),p=JSON.stringify(ec(s)),h=E.useRef(!1);return hm(()=>{h.current=!0}),E.useCallback((b,y={})=>{if(It(h.current,pm),!h.current)return;if(typeof b=="number"){c.go(b);return}let x=to(b,JSON.parse(p),f,y.relative==="path");i==null&&o!=="/"&&(x.pathname=x.pathname==="/"?o:la([o,x.pathname])),(y.replace?c.replace:c.push)(x,y.state,y)},[o,c,p,f,i])}E.createContext(null);function gi(i,{relative:o}={}){let{matches:c}=E.useContext(ia),{pathname:s}=ra(),f=JSON.stringify(ec(c));return E.useMemo(()=>to(i,JSON.parse(f),s,o==="path"),[i,f,s,o])}function v1(i,o){return mm(i,o)}function mm(i,o,c){Qe(pl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Nt),{matches:f}=E.useContext(ia),p=f[f.length-1],h=p?p.params:{},v=p?p.pathname:"/",b=p?p.pathnameBase:"/",y=p&&p.route;{let D=y&&y.path||"";gm(v,!y||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${D}">) 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="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=ra(),g;if(o){let D=typeof o=="string"?fl(o):o;Qe(b==="/"||D.pathname?.startsWith(b),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${D.pathname}" was given in the \`location\` prop.`),g=D}else g=x;let C=g.pathname||"/",_=C;if(b!=="/"){let D=b.replace(/^\//,"").split("/");_="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let A=im(i,{pathname:_});It(y||A!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),It(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.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=R1(A&&A.map(D=>Object.assign({},D,{params:Object.assign({},h,D.params),pathname:la([b,s.encodeLocation?s.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?b:la([b,s.encodeLocation?s.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),f,c);return o&&U?E.createElement(yi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},U):U}function x1(){let i=z1(),o=r1(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)",f={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:f},c):null,h)}var b1=E.createElement(x1,null),ym=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=m1(i.digest);c&&(i=c)}let o=i!==void 0?E.createElement(ia.Provider,{value:this.props.routeContext},E.createElement(tc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(S1,{error:i},o):o}};ym.contextType=u1;var Nu=new WeakMap;function S1({children:i,error:o}){let{basename:c}=E.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=h1(o.digest);if(s){let f=Nu.get(o);if(f)throw f;let p=um(s.location,c);if(sm&&!Nu.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 Nu.set(o,h),h}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return i}function j1({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 R1(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 f=i,p=s?.errors;if(p!=null){let x=f.findIndex(g=>g.route.id&&p?.[g.route.id]!==void 0);Qe(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let h=!1,v=-1;if(c&&s){h=s.renderFallback;for(let x=0;x<f.length;x++){let g=f[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(v=x),g.route.id){let{loaderData:C,errors:_}=s,A=g.route.loader&&!C.hasOwnProperty(g.route.id)&&(!_||_[g.route.id]===void 0);if(g.route.lazy||A){c.isStatic&&(h=!0),v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}}let b=c?.onError,y=s&&b?(x,g)=>{b(x,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:o1(s.matches),errorInfo:g})}:void 0;return f.reduceRight((x,g,C)=>{let _,A=!1,U=null,D=null;s&&(_=p&&g.route.id?p[g.route.id]:void 0,U=g.route.errorElement||b1,h&&(v<0&&C===0?(gm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,D=null):v===C&&(A=!0,D=g.route.hydrateFallbackElement||null)));let Z=o.concat(f.slice(0,C+1)),P=()=>{let X;return _?X=U:A?X=D:g.route.Component?X=E.createElement(g.route.Component,null):g.route.element?X=g.route.element:X=x,E.createElement(j1,{match:g,routeContext:{outlet:x,matches:Z,isDataRoute:s!=null},children:X})};return s&&(g.route.ErrorBoundary||g.route.errorElement||C===0)?E.createElement(ym,{location:s.location,revalidation:s.revalidation,component:U,error:_,children:P(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:y}):P()},null)}function ac(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E1(i){let o=E.useContext(dl);return Qe(o,ac(i)),o}function T1(i){let o=E.useContext(ao);return Qe(o,ac(i)),o}function A1(i){let o=E.useContext(ia);return Qe(o,ac(i)),o}function nc(i){let o=A1(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 C1(){return nc("useRouteId")}function z1(){let i=E.useContext(tc),o=T1("useRouteError"),c=nc("useRouteError");return i!==void 0?i:o.errors?.[c]}function w1(){let{router:i}=E1("useNavigate"),o=nc("useNavigate"),c=E.useRef(!1);return hm(()=>{c.current=!0}),E.useCallback(async(f,p={})=>{It(c.current,pm),c.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:o,...p}))},[i,o])}var zh={};function gm(i,o,c){!o&&!zh[i]&&(zh[i]=!0,It(!1,c))}E.memo(D1);function D1({routes:i,future:o,state:c,isStatic:s,onError:f}){return mm(i,void 0,{state:c,isStatic:s,onError:f})}function _1({to:i,replace:o,state:c,relative:s}){Qe(pl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=E.useContext(Nt);It(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:p}=E.useContext(ia),{pathname:h}=ra(),v=no(),b=to(i,ec(p),h,s==="path"),y=JSON.stringify(b);return E.useEffect(()=>{v(JSON.parse(y),{replace:o,state:c,relative:s})},[v,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 O1({basename:i="/",children:o=null,location:c,navigationType:s="POP",navigator:f,static:p=!1,unstable_useTransitions:h}){Qe(!pl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=i.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:v,navigator:f,static:p,unstable_useTransitions:h,future:{}}),[v,f,p,h]);typeof c=="string"&&(c=fl(c));let{pathname:y="/",search:x="",hash:g="",state:C=null,key:_="default",unstable_mask:A}=c,U=E.useMemo(()=>{let D=Ta(y,v);return D==null?null:{location:{pathname:D,search:x,hash:g,state:C,key:_,unstable_mask:A},navigationType:s}},[v,y,x,g,C,_,s,A]);return It(U!=null,`<Router basename="${v}"> is not able to match the URL "${y}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:E.createElement(Nt.Provider,{value:b},E.createElement(yi.Provider,{children:o,value:U}))}function k1({children:i,location:o}){return v1(Qu(i),o)}function Qu(i,o=[]){let c=[];return E.Children.forEach(i,(s,f)=>{if(!E.isValidElement(s))return;let p=[...o,f];if(s.type===E.Fragment){c.push.apply(c,Qu(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=Qu(s.props.children,p)),c.push(h)}),c}var Qr="get",Zr="application/x-www-form-urlencoded";function lo(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function B1(i){return lo(i)&&i.tagName.toLowerCase()==="button"}function M1(i){return lo(i)&&i.tagName.toLowerCase()==="form"}function N1(i){return lo(i)&&i.tagName.toLowerCase()==="input"}function H1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function U1(i,o){return i.button===0&&(!o||o==="_self")&&!H1(i)}var Gr=null;function L1(){if(Gr===null)try{new FormData(document.createElement("form"),0),Gr=!1}catch{Gr=!0}return Gr}var q1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hu(i){return i!=null&&!q1.has(i)?(It(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zr}"`),null):i}function G1(i,o){let c,s,f,p,h;if(M1(i)){let v=i.getAttribute("action");s=v?Ta(v,o):null,c=i.getAttribute("method")||Qr,f=Hu(i.getAttribute("enctype"))||Zr,p=new FormData(i)}else if(B1(i)||N1(i)&&(i.type==="submit"||i.type==="image")){let v=i.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=i.getAttribute("formaction")||v.getAttribute("action");if(s=b?Ta(b,o):null,c=i.getAttribute("formmethod")||v.getAttribute("method")||Qr,f=Hu(i.getAttribute("formenctype"))||Hu(v.getAttribute("enctype"))||Zr,p=new FormData(v,i),!L1()){let{name:y,type:x,value:g}=i;if(x==="image"){let C=y?`${y}.`:"";p.append(`${C}x`,"0"),p.append(`${C}y`,"0")}else y&&p.append(y,g)}}else{if(lo(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Qr,s=null,f=Zr,h=i}return p&&f==="text/plain"&&(h=p,p=void 0),{action:s,method:c.toLowerCase(),encType:f,formData:p,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function lc(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Y1(i,o,c,s){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:o&&Ta(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function V1(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 X1(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 Q1(i,o,c){let s=await Promise.all(i.map(async f=>{let p=o.routes[f.route.id];if(p){let h=await V1(p,c);return h.links?h.links():[]}return[]}));return K1(s.flat(1).filter(X1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function wh(i,o,c,s,f,p){let h=(b,y)=>c[y]?b.route.id!==c[y].route.id:!0,v=(b,y)=>c[y].pathname!==b.pathname||c[y].route.path?.endsWith("*")&&c[y].params["*"]!==b.params["*"];return p==="assets"?o.filter((b,y)=>h(b,y)||v(b,y)):p==="data"?o.filter((b,y)=>{let x=s.routes[b.route.id];if(!x||!x.hasLoader)return!1;if(h(b,y)||v(b,y))return!0;if(b.route.shouldRevalidate){let g=b.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Z1(i,o,{includeHydrateFallback:c}={}){return F1(i.map(s=>{let f=o.routes[s.route.id];if(!f)return[];let p=[f.module];return f.clientActionModule&&(p=p.concat(f.clientActionModule)),f.clientLoaderModule&&(p=p.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(p=p.concat(f.hydrateFallbackModule)),f.imports&&(p=p.concat(f.imports)),p}).flat(1))}function F1(i){return[...new Set(i)]}function W1(i){let o={},c=Object.keys(i).sort();for(let s of c)o[s]=i[s];return o}function K1(i,o){let c=new Set;return new Set(o),i.reduce((s,f)=>{let p=JSON.stringify(W1(f));return c.has(p)||(c.add(p),s.push({key:p,link:f})),s},[])}function vm(){let i=E.useContext(dl);return lc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function J1(){let i=E.useContext(ao);return lc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var ic=E.createContext(void 0);ic.displayName="FrameworkContext";function xm(){let i=E.useContext(ic);return lc(i,"You must render this element inside a <HydratedRouter> element"),i}function I1(i,o){let c=E.useContext(ic),[s,f]=E.useState(!1),[p,h]=E.useState(!1),{onFocus:v,onBlur:b,onMouseEnter:y,onMouseLeave:x,onTouchStart:g}=o,C=E.useRef(null);E.useEffect(()=>{if(i==="render"&&h(!0),i==="viewport"){let U=Z=>{Z.forEach(P=>{h(P.isIntersecting)})},D=new IntersectionObserver(U,{threshold:.5});return C.current&&D.observe(C.current),()=>{D.disconnect()}}},[i]),E.useEffect(()=>{if(s){let U=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(U)}}},[s]);let _=()=>{f(!0)},A=()=>{f(!1),h(!1)};return c?i!=="intent"?[p,C,{}]:[p,C,{onFocus:ci(v,_),onBlur:ci(b,A),onMouseEnter:ci(y,_),onMouseLeave:ci(x,A),onTouchStart:ci(g,_)}]:[!1,C,{}]}function ci(i,o){return c=>{i&&i(c),c.defaultPrevented||o(c)}}function $1({page:i,...o}){let{router:c}=vm(),s=E.useMemo(()=>im(c.routes,i,c.basename),[c.routes,i,c.basename]);return s?E.createElement(ev,{page:i,matches:s,...o}):null}function P1(i){let{manifest:o,routeModules:c}=xm(),[s,f]=E.useState([]);return E.useEffect(()=>{let p=!1;return Q1(i,o,c).then(h=>{p||f(h)}),()=>{p=!0}},[i,o,c]),s}function ev({page:i,matches:o,...c}){let s=ra(),{future:f,manifest:p,routeModules:h}=xm(),{basename:v}=vm(),{loaderData:b,matches:y}=J1(),x=E.useMemo(()=>wh(i,o,y,p,s,"data"),[i,o,y,p,s]),g=E.useMemo(()=>wh(i,o,y,p,s,"assets"),[i,o,y,p,s]),C=E.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let U=new Set,D=!1;if(o.forEach(P=>{let X=p.routes[P.route.id];!X||!X.hasLoader||(!x.some(ne=>ne.route.id===P.route.id)&&P.route.id in b&&h[P.route.id]?.shouldRevalidate||X.hasClientLoader?D=!0:U.add(P.route.id))}),U.size===0)return[];let Z=Y1(i,v,f.unstable_trailingSlashAwareDataRequests,"data");return D&&U.size>0&&Z.searchParams.set("_routes",o.filter(P=>U.has(P.route.id)).map(P=>P.route.id).join(",")),[Z.pathname+Z.search]},[v,f.unstable_trailingSlashAwareDataRequests,b,s,p,x,o,i,h]),_=E.useMemo(()=>Z1(g,p),[g,p]),A=P1(g);return E.createElement(E.Fragment,null,C.map(U=>E.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...c})),_.map(U=>E.createElement("link",{key:U,rel:"modulepreload",href:U,...c})),A.map(({key:U,link:D})=>E.createElement("link",{key:U,nonce:c.nonce,...D,crossOrigin:D.crossOrigin??c.crossOrigin})))}function tv(...i){return o=>{i.forEach(c=>{typeof c=="function"?c(o):c!=null&&(c.current=o)})}}var av=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{av&&(window.__reactRouterVersion="7.13.1")}catch{}function nv({basename:i,children:o,unstable_useTransitions:c,window:s}){let f=E.useRef();f.current==null&&(f.current=Ng({window:s,v5Compat:!0}));let p=f.current,[h,v]=E.useState({action:p.action,location:p.location}),b=E.useCallback(y=>{c===!1?v(y):E.startTransition(()=>v(y))},[c]);return E.useLayoutEffect(()=>p.listen(b),[p,b]),E.createElement(O1,{basename:i,children:o,location:h.location,navigationType:h.action,navigator:p,unstable_useTransitions:c})}var bm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sm=E.forwardRef(function({onClick:o,discover:c="render",prefetch:s="none",relative:f,reloadDocument:p,replace:h,unstable_mask:v,state:b,target:y,to:x,preventScrollReset:g,viewTransition:C,unstable_defaultShouldRevalidate:_,...A},U){let{basename:D,navigator:Z,unstable_useTransitions:P}=E.useContext(Nt),X=typeof x=="string"&&bm.test(x),ne=um(x,D);x=ne.to;let fe=y1(x,{relative:f}),ve=ra(),K=null;if(v){let Oe=to(v,[],ve.unstable_mask?ve.unstable_mask.pathname:"/",!0);D!=="/"&&(Oe.pathname=Oe.pathname==="/"?D:la([D,Oe.pathname])),K=Z.createHref(Oe)}let[_e,Me,ot]=I1(s,A),$e=ov(x,{replace:h,unstable_mask:v,state:b,target:y,preventScrollReset:g,relative:f,viewTransition:C,unstable_defaultShouldRevalidate:_,unstable_useTransitions:P});function F(Oe){o&&o(Oe),Oe.defaultPrevented||$e(Oe)}let pe=!(ne.isExternal||p),Se=E.createElement("a",{...A,...ot,href:(pe?K:void 0)||ne.absoluteURL||fe,onClick:pe?F:o,ref:tv(U,Me),target:y,"data-discover":!X&&c==="render"?"true":void 0});return _e&&!X?E.createElement(E.Fragment,null,Se,E.createElement($1,{page:fe})):Se});Sm.displayName="Link";var lv=E.forwardRef(function({"aria-current":o="page",caseSensitive:c=!1,className:s="",end:f=!1,style:p,to:h,viewTransition:v,children:b,...y},x){let g=gi(h,{relative:y.relative}),C=ra(),_=E.useContext(ao),{navigator:A,basename:U}=E.useContext(Nt),D=_!=null&&dv(g)&&v===!0,Z=A.encodeLocation?A.encodeLocation(g).pathname:g.pathname,P=C.pathname,X=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;c||(P=P.toLowerCase(),X=X?X.toLowerCase():null,Z=Z.toLowerCase()),X&&U&&(X=Ta(X,U)||X);const ne=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let fe=P===Z||!f&&P.startsWith(Z)&&P.charAt(ne)==="/",ve=X!=null&&(X===Z||!f&&X.startsWith(Z)&&X.charAt(Z.length)==="/"),K={isActive:fe,isPending:ve,isTransitioning:D},_e=fe?o:void 0,Me;typeof s=="function"?Me=s(K):Me=[s,fe?"active":null,ve?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let ot=typeof p=="function"?p(K):p;return E.createElement(Sm,{...y,"aria-current":_e,className:Me,ref:x,style:ot,to:h,viewTransition:v},typeof b=="function"?b(K):b)});lv.displayName="NavLink";var iv=E.forwardRef(({discover:i="render",fetcherKey:o,navigate:c,reloadDocument:s,replace:f,state:p,method:h=Qr,action:v,onSubmit:b,relative:y,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:C,..._},A)=>{let{unstable_useTransitions:U}=E.useContext(Nt),D=cv(),Z=fv(v,{relative:y}),P=h.toLowerCase()==="get"?"get":"post",X=typeof v=="string"&&bm.test(v),ne=fe=>{if(b&&b(fe),fe.defaultPrevented)return;fe.preventDefault();let ve=fe.nativeEvent.submitter,K=ve?.getAttribute("formmethod")||h,_e=()=>D(ve||fe.currentTarget,{fetcherKey:o,method:K,navigate:c,replace:f,state:p,relative:y,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:C});U&&c!==!1?E.startTransition(()=>_e()):_e()};return E.createElement("form",{ref:A,method:P,action:Z,onSubmit:s?b:ne,..._,"data-discover":!X&&i==="render"?"true":void 0})});iv.displayName="Form";function rv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jm(i){let o=E.useContext(dl);return Qe(o,rv(i)),o}function ov(i,{target:o,replace:c,unstable_mask:s,state:f,preventScrollReset:p,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:b,unstable_useTransitions:y}={}){let x=no(),g=ra(),C=gi(i,{relative:h});return E.useCallback(_=>{if(U1(_,o)){_.preventDefault();let A=c!==void 0?c:pi(g)===pi(C),U=()=>x(i,{replace:A,unstable_mask:s,state:f,preventScrollReset:p,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:b});y?E.startTransition(()=>U()):U()}},[g,x,C,c,s,f,o,i,p,h,v,b,y])}var sv=0,uv=()=>`__${String(++sv)}__`;function cv(){let{router:i}=jm("useSubmit"),{basename:o}=E.useContext(Nt),c=C1(),s=i.fetch,f=i.navigate;return E.useCallback(async(p,h={})=>{let{action:v,method:b,encType:y,formData:x,body:g}=G1(p,o);if(h.navigate===!1){let C=h.fetcherKey||uv();await s(C,c,h.action||v,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:g,formMethod:h.method||b,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||v,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:g,formMethod:h.method||b,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,f,o,c])}function fv(i,{relative:o}={}){let{basename:c}=E.useContext(Nt),s=E.useContext(ia);Qe(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),p={...gi(i||".",{relative:o})},h=ra();if(i==null){p.search=h.search;let v=new URLSearchParams(p.search),b=v.getAll("index");if(b.some(x=>x==="")){v.delete("index"),b.filter(g=>g).forEach(g=>v.append("index",g));let x=v.toString();p.search=x?`?${x}`:""}}return(!i||i===".")&&f.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(p.pathname=p.pathname==="/"?c:la([c,p.pathname])),pi(p)}function dv(i,{relative:o}={}){let c=E.useContext(fm);Qe(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=jm("useViewTransitionState"),f=gi(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(f.pathname,h)!=null||$r(f.pathname,p)!=null}const Rm=(...i)=>i.filter((o,c,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===c).join(" ").trim();const pv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,c,s)=>s?s.toUpperCase():c.toLowerCase());const Dh=i=>{const o=hv(i);return o.charAt(0).toUpperCase()+o.slice(1)};var mv={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 yv=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const gv=E.forwardRef(({color:i="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:s,className:f="",children:p,iconNode:h,...v},b)=>E.createElement("svg",{ref:b,...mv,width:o,height:o,stroke:i,strokeWidth:s?Number(c)*24/Number(o):c,className:Rm("lucide",f),...!p&&!yv(v)&&{"aria-hidden":"true"},...v},[...h.map(([y,x])=>E.createElement(y,x)),...Array.isArray(p)?p:[p]]));const oe=(i,o)=>{const c=E.forwardRef(({className:s,...f},p)=>E.createElement(gv,{ref:p,iconNode:o,className:Rm(`lucide-${pv(Dh(i))}`,`lucide-${i}`,s),...f}));return c.displayName=Dh(i),c};const vv=[["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"}]],Em=oe("activity",vv);const xv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],bv=oe("arrow-left",xv);const Sv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jv=oe("arrow-right",Sv);const Rv=[["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"}]],_h=oe("bot",Rv);const Ev=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Tv=oe("brain",Ev);const Av=[["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"}]],Cv=oe("camera",Av);const zv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hi=oe("check",zv);const wv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Dv=oe("chevron-down",wv);const _v=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ov=oe("chevron-left",_v);const kv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ol=oe("chevron-right",kv);const Bv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Mv=oe("chevron-up",Bv);const Nv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Tm=oe("clock",Nv);const Hv=[["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"}]],Uv=oe("download",Hv);const Lv=[["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"}]],qv=oe("eye-off",Lv);const Gv=[["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"}]],Am=oe("eye",Gv);const Yv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Yr=oe("file-code",Yv);const Vv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["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"}]],Uu=oe("file-image",Vv);const Xv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Zu=oe("file-text",Xv);const Qv=[["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"}]],Oh=oe("file",Qv);const Zv=[["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"}]],kh=oe("folder-plus",Zv);const Fv=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Cm=oe("folder",Fv);const Wv=[["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"}]],Kv=oe("funnel",Wv);const Jv=[["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"}]],Iv=oe("github",Jv);const $v=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],zm=oe("globe",$v);const Pv=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],wm=oe("hard-drive",Pv);const ex=[["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"}]],tx=oe("layout-dashboard",ex);const ax=[["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"}]],nx=oe("linkedin",ax);const lx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ix=oe("loader-circle",lx);const rx=[["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"}]],ox=oe("log-out",rx);const sx=[["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"}]],Fu=oe("message-square",sx);const ux=[["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"}]],cx=oe("mic-off",ux);const fx=[["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"}]],Wu=oe("mic",fx);const dx=[["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"}]],px=oe("play",dx);const hx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mx=oe("plus",hx);const yx=[["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"}]],gx=oe("refresh-cw",yx);const vx=[["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"}]],Bh=oe("rotate-ccw",vx);const xx=[["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"}]],bx=oe("save",xx);const Sx=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],jx=oe("send",Sx);const Rx=[["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"}]],Ex=oe("settings",Rx);const Tx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ul=oe("shield",Tx);const Ax=[["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"}]],Cx=oe("sparkles",Ax);const zx=[["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"}]],Dm=oe("trash-2",zx);const wx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_m=oe("triangle-alert",wx);const Dx=[["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"}]],_x=oe("twitter",Dx);const Ox=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],kx=oe("upload",Ox);const Bx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Om=oe("user",Bx);const Mx=[["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"}]],mi=oe("wrench",Mx);const Nx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Mh=oe("x",Nx);const Hx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Sn=oe("zap",Hx),Ux=[{icon:tx,label:"Dashboard",labelHi:"डैशबोर्ड",path:"/"},{icon:Fu,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:wm,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:mi,label:"Tool Packs",labelHi:"टूल पैक्स",path:"/tools"},{icon:Sn,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:ul,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Ex,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function Lx({user:i,isOpen:o,onToggle:c,onLogout:s}){const f=no(),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:()=>f("/"),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(Ov,{size:18}):u.jsx(ol,{size:18})})]}),u.jsx("nav",{style:nt.nav,children:Ux.map(h=>{const v=h.icon,b=p.pathname===h.path||h.path!=="/"&&p.pathname.startsWith(h.path);return u.jsxs("button",{onClick:()=>f(h.path),style:{...nt.navItem,...b?nt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:h.label,children:[u.jsx(v,{size:20,style:{minWidth:"20px"}}),o&&u.jsx("span",{children:h.label}),b&&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(ox,{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 km(i,o){return function(){return i.apply(o,arguments)}}const{toString:qx}=Object.prototype,{getPrototypeOf:rc}=Object,{iterator:io,toStringTag:Bm}=Symbol,ro=(i=>o=>{const c=qx.call(o);return i[c]||(i[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),$t=i=>(i=i.toLowerCase(),o=>ro(o)===i),oo=i=>o=>typeof o===i,{isArray:hl}=Array,cl=oo("undefined");function vi(i){return i!==null&&!cl(i)&&i.constructor!==null&&!cl(i.constructor)&&Et(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const Mm=$t("ArrayBuffer");function Gx(i){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(i):o=i&&i.buffer&&Mm(i.buffer),o}const Yx=oo("string"),Et=oo("function"),Nm=oo("number"),xi=i=>i!==null&&typeof i=="object",Vx=i=>i===!0||i===!1,Fr=i=>{if(ro(i)!=="object")return!1;const o=rc(i);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Bm in i)&&!(io in i)},Xx=i=>{if(!xi(i)||vi(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},Qx=$t("Date"),Zx=$t("File"),Fx=$t("Blob"),Wx=$t("FileList"),Kx=i=>xi(i)&&Et(i.pipe),Jx=i=>{let o;return i&&(typeof FormData=="function"&&i instanceof FormData||Et(i.append)&&((o=ro(i))==="formdata"||o==="object"&&Et(i.toString)&&i.toString()==="[object FormData]"))},Ix=$t("URLSearchParams"),[$x,Px,eb,tb]=["ReadableStream","Request","Response","Headers"].map($t),ab=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function bi(i,o,{allOwnKeys:c=!1}={}){if(i===null||typeof i>"u")return;let s,f;if(typeof i!="object"&&(i=[i]),hl(i))for(s=0,f=i.length;s<f;s++)o.call(null,i[s],s,i);else{if(vi(i))return;const p=c?Object.getOwnPropertyNames(i):Object.keys(i),h=p.length;let v;for(s=0;s<h;s++)v=p[s],o.call(null,i[v],v,i)}}function Hm(i,o){if(vi(i))return null;o=o.toLowerCase();const c=Object.keys(i);let s=c.length,f;for(;s-- >0;)if(f=c[s],o===f.toLowerCase())return f;return null}const xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Um=i=>!cl(i)&&i!==xn;function Ku(){const{caseless:i,skipUndefined:o}=Um(this)&&this||{},c={},s=(f,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")return;const h=i&&Hm(c,p)||p;Fr(c[h])&&Fr(f)?c[h]=Ku(c[h],f):Fr(f)?c[h]=Ku({},f):hl(f)?c[h]=f.slice():(!o||!cl(f))&&(c[h]=f)};for(let f=0,p=arguments.length;f<p;f++)arguments[f]&&bi(arguments[f],s);return c}const nb=(i,o,c,{allOwnKeys:s}={})=>(bi(o,(f,p)=>{c&&Et(f)?Object.defineProperty(i,p,{value:km(f,c),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,p,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),i),lb=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),ib=(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)},rb=(i,o,c,s)=>{let f,p,h;const v={};if(o=o||{},i==null)return o;do{for(f=Object.getOwnPropertyNames(i),p=f.length;p-- >0;)h=f[p],(!s||s(h,i,o))&&!v[h]&&(o[h]=i[h],v[h]=!0);i=c!==!1&&rc(i)}while(i&&(!c||c(i,o))&&i!==Object.prototype);return o},ob=(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},sb=i=>{if(!i)return null;if(hl(i))return i;let o=i.length;if(!Nm(o))return null;const c=new Array(o);for(;o-- >0;)c[o]=i[o];return c},ub=(i=>o=>i&&o instanceof i)(typeof Uint8Array<"u"&&rc(Uint8Array)),cb=(i,o)=>{const s=(i&&i[io]).call(i);let f;for(;(f=s.next())&&!f.done;){const p=f.value;o.call(i,p[0],p[1])}},fb=(i,o)=>{let c;const s=[];for(;(c=i.exec(o))!==null;)s.push(c);return s},db=$t("HTMLFormElement"),pb=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,s,f){return s.toUpperCase()+f}),Nh=(({hasOwnProperty:i})=>(o,c)=>i.call(o,c))(Object.prototype),hb=$t("RegExp"),Lm=(i,o)=>{const c=Object.getOwnPropertyDescriptors(i),s={};bi(c,(f,p)=>{let h;(h=o(f,p,i))!==!1&&(s[p]=h||f)}),Object.defineProperties(i,s)},mb=i=>{Lm(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+"'")})}})},yb=(i,o)=>{const c={},s=f=>{f.forEach(p=>{c[p]=!0})};return hl(i)?s(i):s(String(i).split(o)),c},gb=()=>{},vb=(i,o)=>i!=null&&Number.isFinite(i=+i)?i:o;function xb(i){return!!(i&&Et(i.append)&&i[Bm]==="FormData"&&i[io])}const bb=i=>{const o=new Array(10),c=(s,f)=>{if(xi(s)){if(o.indexOf(s)>=0)return;if(vi(s))return s;if(!("toJSON"in s)){o[f]=s;const p=hl(s)?[]:{};return bi(s,(h,v)=>{const b=c(h,f+1);!cl(b)&&(p[v]=b)}),o[f]=void 0,p}}return s};return c(i,0)},Sb=$t("AsyncFunction"),jb=i=>i&&(xi(i)||Et(i))&&Et(i.then)&&Et(i.catch),qm=((i,o)=>i?setImmediate:o?((c,s)=>(xn.addEventListener("message",({source:f,data:p})=>{f===xn&&p===c&&s.length&&s.shift()()},!1),f=>{s.push(f),xn.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",Et(xn.postMessage)),Rb=typeof queueMicrotask<"u"?queueMicrotask.bind(xn):typeof process<"u"&&process.nextTick||qm,Eb=i=>i!=null&&Et(i[io]),N={isArray:hl,isArrayBuffer:Mm,isBuffer:vi,isFormData:Jx,isArrayBufferView:Gx,isString:Yx,isNumber:Nm,isBoolean:Vx,isObject:xi,isPlainObject:Fr,isEmptyObject:Xx,isReadableStream:$x,isRequest:Px,isResponse:eb,isHeaders:tb,isUndefined:cl,isDate:Qx,isFile:Zx,isBlob:Fx,isRegExp:hb,isFunction:Et,isStream:Kx,isURLSearchParams:Ix,isTypedArray:ub,isFileList:Wx,forEach:bi,merge:Ku,extend:nb,trim:ab,stripBOM:lb,inherits:ib,toFlatObject:rb,kindOf:ro,kindOfTest:$t,endsWith:ob,toArray:sb,forEachEntry:cb,matchAll:fb,isHTMLForm:db,hasOwnProperty:Nh,hasOwnProp:Nh,reduceDescriptors:Lm,freezeMethods:mb,toObjectSet:yb,toCamelCase:pb,noop:gb,toFiniteNumber:vb,findKey:Hm,global:xn,isContextDefined:Um,isSpecCompliantForm:xb,toJSONObject:bb,isAsyncFn:Sb,isThenable:jb,setImmediate:qm,asap:Rb,isIterable:Eb};let se=class Gm extends Error{static from(o,c,s,f,p,h){const v=new Gm(o.message,c||o.code,s,f,p);return v.cause=o,v.name=o.name,h&&Object.assign(v,h),v}constructor(o,c,s,f,p){super(o),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),s&&(this.config=s),f&&(this.request=f),p&&(this.response=p,this.status=p.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const Tb=null;function Ju(i){return N.isPlainObject(i)||N.isArray(i)}function Ym(i){return N.endsWith(i,"[]")?i.slice(0,-2):i}function Hh(i,o,c){return i?i.concat(o).map(function(f,p){return f=Ym(f),!c&&p?"["+f+"]":f}).join(c?".":""):o}function Ab(i){return N.isArray(i)&&!i.some(Ju)}const Cb=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function so(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,D){return!N.isUndefined(D[U])});const s=c.metaTokens,f=c.visitor||x,p=c.dots,h=c.indexes,b=(c.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(f))throw new TypeError("visitor must be a function");function y(A){if(A===null)return"";if(N.isDate(A))return A.toISOString();if(N.isBoolean(A))return A.toString();if(!b&&N.isBlob(A))throw new se("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(A)||N.isTypedArray(A)?b&&typeof Blob=="function"?new Blob([A]):Buffer.from(A):A}function x(A,U,D){let Z=A;if(A&&!D&&typeof A=="object"){if(N.endsWith(U,"{}"))U=s?U:U.slice(0,-2),A=JSON.stringify(A);else if(N.isArray(A)&&Ab(A)||(N.isFileList(A)||N.endsWith(U,"[]"))&&(Z=N.toArray(A)))return U=Ym(U),Z.forEach(function(X,ne){!(N.isUndefined(X)||X===null)&&o.append(h===!0?Hh([U],ne,p):h===null?U:U+"[]",y(X))}),!1}return Ju(A)?!0:(o.append(Hh(D,U,p),y(A)),!1)}const g=[],C=Object.assign(Cb,{defaultVisitor:x,convertValue:y,isVisitable:Ju});function _(A,U){if(!N.isUndefined(A)){if(g.indexOf(A)!==-1)throw Error("Circular reference detected in "+U.join("."));g.push(A),N.forEach(A,function(Z,P){(!(N.isUndefined(Z)||Z===null)&&f.call(o,Z,N.isString(P)?P.trim():P,U,C))===!0&&_(Z,U?U.concat(P):[P])}),g.pop()}}if(!N.isObject(i))throw new TypeError("data must be an object");return _(i),o}function Uh(i){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function oc(i,o){this._pairs=[],i&&so(i,this,o)}const Vm=oc.prototype;Vm.append=function(o,c){this._pairs.push([o,c])};Vm.toString=function(o){const c=o?function(s){return o.call(this,s,Uh)}:Uh;return this._pairs.map(function(f){return c(f[0])+"="+c(f[1])},"").join("&")};function zb(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xm(i,o,c){if(!o)return i;const s=c&&c.encode||zb,f=N.isFunction(c)?{serialize:c}:c,p=f&&f.serialize;let h;if(p?h=p(o,f):h=N.isURLSearchParams(o)?o.toString():new oc(o,f).toString(s),h){const v=i.indexOf("#");v!==-1&&(i=i.slice(0,v)),i+=(i.indexOf("?")===-1?"?":"&")+h}return i}class Lh{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 sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},wb=typeof URLSearchParams<"u"?URLSearchParams:oc,Db=typeof FormData<"u"?FormData:null,_b=typeof Blob<"u"?Blob:null,Ob={isBrowser:!0,classes:{URLSearchParams:wb,FormData:Db,Blob:_b},protocols:["http","https","file","blob","url","data"]},uc=typeof window<"u"&&typeof document<"u",Iu=typeof navigator=="object"&&navigator||void 0,kb=uc&&(!Iu||["ReactNative","NativeScript","NS"].indexOf(Iu.product)<0),Bb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mb=uc&&window.location.href||"http://localhost",Nb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uc,hasStandardBrowserEnv:kb,hasStandardBrowserWebWorkerEnv:Bb,navigator:Iu,origin:Mb},Symbol.toStringTag,{value:"Module"})),mt={...Nb,...Ob};function Hb(i,o){return so(i,new mt.classes.URLSearchParams,{visitor:function(c,s,f,p){return mt.isNode&&N.isBuffer(c)?(this.append(s,c.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...o})}function Ub(i){return N.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Lb(i){const o={},c=Object.keys(i);let s;const f=c.length;let p;for(s=0;s<f;s++)p=c[s],o[p]=i[p];return o}function Qm(i){function o(c,s,f,p){let h=c[p++];if(h==="__proto__")return!0;const v=Number.isFinite(+h),b=p>=c.length;return h=!h&&N.isArray(f)?f.length:h,b?(N.hasOwnProp(f,h)?f[h]=[f[h],s]:f[h]=s,!v):((!f[h]||!N.isObject(f[h]))&&(f[h]=[]),o(c,s,f[h],p)&&N.isArray(f[h])&&(f[h]=Lb(f[h])),!v)}if(N.isFormData(i)&&N.isFunction(i.entries)){const c={};return N.forEachEntry(i,(s,f)=>{o(Ub(s),f,c,0)}),c}return null}function qb(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 Si={transitional:sc,adapter:["xhr","http","fetch"],transformRequest:[function(o,c){const s=c.getContentType()||"",f=s.indexOf("application/json")>-1,p=N.isObject(o);if(p&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return f?JSON.stringify(Qm(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 v;if(p){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Hb(o,this.formSerializer).toString();if((v=N.isFileList(o))||s.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return so(v?{"files[]":o}:o,b&&new b,this.formSerializer)}}return p||f?(c.setContentType("application/json",!1),qb(o)):o}],transformResponse:[function(o){const c=this.transitional||Si.transitional,s=c&&c.forcedJSONParsing,f=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(s&&!this.responseType||f)){const h=!(c&&c.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(v){if(h)throw v.name==="SyntaxError"?se.from(v,se.ERR_BAD_RESPONSE,this,null,this.response):v}}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=>{Si.headers[i]={}});const Gb=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"]),Yb=i=>{const o={};let c,s,f;return i&&i.split(`
|
|
12
|
+
`).forEach(function(h){f=h.indexOf(":"),c=h.substring(0,f).trim().toLowerCase(),s=h.substring(f+1).trim(),!(!c||o[c]&&Gb[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 fi(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 Vb(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 Xb=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Lu(i,o,c,s,f){if(N.isFunction(s))return s.call(this,o,c);if(f&&(o=c),!!N.isString(o)){if(N.isString(s))return o.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(o)}}function Qb(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,c,s)=>c.toUpperCase()+s)}function Zb(i,o){const c=N.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(i,s+c,{value:function(f,p,h){return this[s].call(this,o,f,p,h)},configurable:!0})})}let Tt=class{constructor(o){o&&this.set(o)}set(o,c,s){const f=this;function p(v,b,y){const x=fi(b);if(!x)throw new Error("header name must be a non-empty string");const g=N.findKey(f,x);(!g||f[g]===void 0||y===!0||y===void 0&&f[g]!==!1)&&(f[g||b]=Wr(v))}const h=(v,b)=>N.forEach(v,(y,x)=>p(y,x,b));if(N.isPlainObject(o)||o instanceof this.constructor)h(o,c);else if(N.isString(o)&&(o=o.trim())&&!Xb(o))h(Yb(o),c);else if(N.isObject(o)&&N.isIterable(o)){let v={},b,y;for(const x of o){if(!N.isArray(x))throw TypeError("Object iterator must return a key-value pair");v[y=x[0]]=(b=v[y])?N.isArray(b)?[...b,x[1]]:[b,x[1]]:x[1]}h(v,c)}else o!=null&&p(c,o,s);return this}get(o,c){if(o=fi(o),o){const s=N.findKey(this,o);if(s){const f=this[s];if(!c)return f;if(c===!0)return Vb(f);if(N.isFunction(c))return c.call(this,f,s);if(N.isRegExp(c))return c.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,c){if(o=fi(o),o){const s=N.findKey(this,o);return!!(s&&this[s]!==void 0&&(!c||Lu(this,this[s],s,c)))}return!1}delete(o,c){const s=this;let f=!1;function p(h){if(h=fi(h),h){const v=N.findKey(s,h);v&&(!c||Lu(s,s[v],v,c))&&(delete s[v],f=!0)}}return N.isArray(o)?o.forEach(p):p(o),f}clear(o){const c=Object.keys(this);let s=c.length,f=!1;for(;s--;){const p=c[s];(!o||Lu(this,this[p],p,o,!0))&&(delete this[p],f=!0)}return f}normalize(o){const c=this,s={};return N.forEach(this,(f,p)=>{const h=N.findKey(s,p);if(h){c[h]=Wr(f),delete c[p];return}const v=o?Qb(p):String(p).trim();v!==p&&delete c[p],c[v]=Wr(f),s[v]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const c=Object.create(null);return N.forEach(this,(s,f)=>{s!=null&&s!==!1&&(c[f]=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(f=>s.set(f)),s}static accessor(o){const s=(this[qh]=this[qh]={accessors:{}}).accessors,f=this.prototype;function p(h){const v=fi(h);s[v]||(Zb(f,h),s[v]=!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 qu(i,o){const c=this||Si,s=o||c,f=Tt.from(s.headers);let p=s.data;return N.forEach(i,function(v){p=v.call(c,p,f.normalize(),o?o.status:void 0)}),f.normalize(),p}function Zm(i){return!!(i&&i.__CANCEL__)}let ji=class extends se{constructor(o,c,s){super(o??"canceled",se.ERR_CANCELED,c,s),this.name="CanceledError",this.__CANCEL__=!0}};function Fm(i,o,c){const s=c.config.validateStatus;!c.status||!s||s(c.status)?i(c):o(new se("Request failed with status code "+c.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function Fb(i){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return o&&o[1]||""}function Wb(i,o){i=i||10;const c=new Array(i),s=new Array(i);let f=0,p=0,h;return o=o!==void 0?o:1e3,function(b){const y=Date.now(),x=s[p];h||(h=y),c[f]=b,s[f]=y;let g=p,C=0;for(;g!==f;)C+=c[g++],g=g%i;if(f=(f+1)%i,f===p&&(p=(p+1)%i),y-h<o)return;const _=x&&y-x;return _?Math.round(C*1e3/_):void 0}}function Kb(i,o){let c=0,s=1e3/o,f,p;const h=(y,x=Date.now())=>{c=x,f=null,p&&(clearTimeout(p),p=null),i(...y)};return[(...y)=>{const x=Date.now(),g=x-c;g>=s?h(y,x):(f=y,p||(p=setTimeout(()=>{p=null,h(f)},s-g)))},()=>f&&h(f)]}const Pr=(i,o,c=3)=>{let s=0;const f=Wb(50,250);return Kb(p=>{const h=p.loaded,v=p.lengthComputable?p.total:void 0,b=h-s,y=f(b),x=h<=v;s=h;const g={loaded:h,total:v,progress:v?h/v:void 0,bytes:b,rate:y||void 0,estimated:y&&v&&x?(v-h)/y:void 0,event:p,lengthComputable:v!=null,[o?"download":"upload"]:!0};i(g)},c)},Gh=(i,o)=>{const c=i!=null;return[s=>o[0]({lengthComputable:c,total:i,loaded:s}),o[1]]},Yh=i=>(...o)=>N.asap(()=>i(...o)),Jb=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,Ib=mt.hasStandardBrowserEnv?{write(i,o,c,s,f,p,h){if(typeof document>"u")return;const v=[`${i}=${encodeURIComponent(o)}`];N.isNumber(c)&&v.push(`expires=${new Date(c).toUTCString()}`),N.isString(s)&&v.push(`path=${s}`),N.isString(f)&&v.push(`domain=${f}`),p===!0&&v.push("secure"),N.isString(h)&&v.push(`SameSite=${h}`),document.cookie=v.join("; ")},read(i){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $b(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function Pb(i,o){return o?i.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):i}function Wm(i,o,c){let s=!$b(o);return i&&(s||c==!1)?Pb(i,o):o}const Vh=i=>i instanceof Tt?{...i}:i;function jn(i,o){o=o||{};const c={};function s(y,x,g,C){return N.isPlainObject(y)&&N.isPlainObject(x)?N.merge.call({caseless:C},y,x):N.isPlainObject(x)?N.merge({},x):N.isArray(x)?x.slice():x}function f(y,x,g,C){if(N.isUndefined(x)){if(!N.isUndefined(y))return s(void 0,y,g,C)}else return s(y,x,g,C)}function p(y,x){if(!N.isUndefined(x))return s(void 0,x)}function h(y,x){if(N.isUndefined(x)){if(!N.isUndefined(y))return s(void 0,y)}else return s(void 0,x)}function v(y,x,g){if(g in o)return s(y,x);if(g in i)return s(void 0,y)}const b={url:p,method:p,data:p,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:v,headers:(y,x,g)=>f(Vh(y),Vh(x),g,!0)};return N.forEach(Object.keys({...i,...o}),function(x){if(x==="__proto__"||x==="constructor"||x==="prototype")return;const g=N.hasOwnProp(b,x)?b[x]:f,C=g(i[x],o[x],x);N.isUndefined(C)&&g!==v||(c[x]=C)}),c}const Km=i=>{const o=jn({},i);let{data:c,withXSRFToken:s,xsrfHeaderName:f,xsrfCookieName:p,headers:h,auth:v}=o;if(o.headers=h=Tt.from(h),o.url=Xm(Wm(o.baseURL,o.url,o.allowAbsoluteUrls),i.params,i.paramsSerializer),v&&h.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):""))),N.isFormData(c)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(N.isFunction(c.getHeaders)){const b=c.getHeaders(),y=["content-type","content-length"];Object.entries(b).forEach(([x,g])=>{y.includes(x.toLowerCase())&&h.set(x,g)})}}if(mt.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(o)),s||s!==!1&&Jb(o.url))){const b=f&&p&&Ib.read(p);b&&h.set(f,b)}return o},e2=typeof XMLHttpRequest<"u",t2=e2&&function(i){return new Promise(function(c,s){const f=Km(i);let p=f.data;const h=Tt.from(f.headers).normalize();let{responseType:v,onUploadProgress:b,onDownloadProgress:y}=f,x,g,C,_,A;function U(){_&&_(),A&&A(),f.cancelToken&&f.cancelToken.unsubscribe(x),f.signal&&f.signal.removeEventListener("abort",x)}let D=new XMLHttpRequest;D.open(f.method.toUpperCase(),f.url,!0),D.timeout=f.timeout;function Z(){if(!D)return;const X=Tt.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders()),fe={data:!v||v==="text"||v==="json"?D.responseText:D.response,status:D.status,statusText:D.statusText,headers:X,config:i,request:D};Fm(function(K){c(K),U()},function(K){s(K),U()},fe),D=null}"onloadend"in D?D.onloadend=Z:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.indexOf("file:")===0)||setTimeout(Z)},D.onabort=function(){D&&(s(new se("Request aborted",se.ECONNABORTED,i,D)),D=null)},D.onerror=function(ne){const fe=ne&&ne.message?ne.message:"Network Error",ve=new se(fe,se.ERR_NETWORK,i,D);ve.event=ne||null,s(ve),D=null},D.ontimeout=function(){let ne=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const fe=f.transitional||sc;f.timeoutErrorMessage&&(ne=f.timeoutErrorMessage),s(new se(ne,fe.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,i,D)),D=null},p===void 0&&h.setContentType(null),"setRequestHeader"in D&&N.forEach(h.toJSON(),function(ne,fe){D.setRequestHeader(fe,ne)}),N.isUndefined(f.withCredentials)||(D.withCredentials=!!f.withCredentials),v&&v!=="json"&&(D.responseType=f.responseType),y&&([C,A]=Pr(y,!0),D.addEventListener("progress",C)),b&&D.upload&&([g,_]=Pr(b),D.upload.addEventListener("progress",g),D.upload.addEventListener("loadend",_)),(f.cancelToken||f.signal)&&(x=X=>{D&&(s(!X||X.type?new ji(null,i,D):X),D.abort(),D=null)},f.cancelToken&&f.cancelToken.subscribe(x),f.signal&&(f.signal.aborted?x():f.signal.addEventListener("abort",x)));const P=Fb(f.url);if(P&&mt.protocols.indexOf(P)===-1){s(new se("Unsupported protocol "+P+":",se.ERR_BAD_REQUEST,i));return}D.send(p||null)})},a2=(i,o)=>{const{length:c}=i=i?i.filter(Boolean):[];if(o||c){let s=new AbortController,f;const p=function(y){if(!f){f=!0,v();const x=y instanceof Error?y:this.reason;s.abort(x instanceof se?x:new ji(x instanceof Error?x.message:x))}};let h=o&&setTimeout(()=>{h=null,p(new se(`timeout of ${o}ms exceeded`,se.ETIMEDOUT))},o);const v=()=>{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:b}=s;return b.unsubscribe=()=>N.asap(v),b}},n2=function*(i,o){let c=i.byteLength;if(c<o){yield i;return}let s=0,f;for(;s<c;)f=s+o,yield i.slice(s,f),s=f},l2=async function*(i,o){for await(const c of i2(i))yield*n2(c,o)},i2=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()}},Xh=(i,o,c,s)=>{const f=l2(i,o);let p=0,h,v=b=>{h||(h=!0,s&&s(b))};return new ReadableStream({async pull(b){try{const{done:y,value:x}=await f.next();if(y){v(),b.close();return}let g=x.byteLength;if(c){let C=p+=g;c(C)}b.enqueue(new Uint8Array(x))}catch(y){throw v(y),y}},cancel(b){return v(b),f.return()}},{highWaterMark:2})},Qh=64*1024,{isFunction:Vr}=N,r2=(({Request:i,Response:o})=>({Request:i,Response:o}))(N.global),{ReadableStream:Zh,TextEncoder:Fh}=N.global,Wh=(i,...o)=>{try{return!!i(...o)}catch{return!1}},o2=i=>{i=N.merge.call({skipUndefined:!0},r2,i);const{fetch:o,Request:c,Response:s}=i,f=o?Vr(o):typeof fetch=="function",p=Vr(c),h=Vr(s);if(!f)return!1;const v=f&&Vr(Zh),b=f&&(typeof Fh=="function"?(A=>U=>A.encode(U))(new Fh):async A=>new Uint8Array(await new c(A).arrayBuffer())),y=p&&v&&Wh(()=>{let A=!1;const U=new c(mt.origin,{body:new Zh,method:"POST",get duplex(){return A=!0,"half"}}).headers.has("Content-Type");return A&&!U}),x=h&&v&&Wh(()=>N.isReadableStream(new s("").body)),g={stream:x&&(A=>A.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(A=>{!g[A]&&(g[A]=(U,D)=>{let Z=U&&U[A];if(Z)return Z.call(U);throw new se(`Response type '${A}' is not supported`,se.ERR_NOT_SUPPORT,D)})});const C=async A=>{if(A==null)return 0;if(N.isBlob(A))return A.size;if(N.isSpecCompliantForm(A))return(await new c(mt.origin,{method:"POST",body:A}).arrayBuffer()).byteLength;if(N.isArrayBufferView(A)||N.isArrayBuffer(A))return A.byteLength;if(N.isURLSearchParams(A)&&(A=A+""),N.isString(A))return(await b(A)).byteLength},_=async(A,U)=>{const D=N.toFiniteNumber(A.getContentLength());return D??C(U)};return async A=>{let{url:U,method:D,data:Z,signal:P,cancelToken:X,timeout:ne,onDownloadProgress:fe,onUploadProgress:ve,responseType:K,headers:_e,withCredentials:Me="same-origin",fetchOptions:ot}=Km(A),$e=o||fetch;K=K?(K+"").toLowerCase():"text";let F=a2([P,X&&X.toAbortSignal()],ne),pe=null;const Se=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let Oe;try{if(ve&&y&&D!=="get"&&D!=="head"&&(Oe=await _(_e,Z))!==0){let S=new c(U,{method:"POST",body:Z,duplex:"half"}),M;if(N.isFormData(Z)&&(M=S.headers.get("content-type"))&&_e.setContentType(M),S.body){const[Y,V]=Gh(Oe,Pr(Yh(ve)));Z=Xh(S.body,Qh,Y,V)}}N.isString(Me)||(Me=Me?"include":"omit");const B=p&&"credentials"in c.prototype,Q={...ot,signal:F,method:D.toUpperCase(),headers:_e.normalize().toJSON(),body:Z,duplex:"half",credentials:B?Me:void 0};pe=p&&new c(U,Q);let te=await(p?$e(pe,ot):$e(U,Q));const Ae=x&&(K==="stream"||K==="response");if(x&&(fe||Ae&&Se)){const S={};["status","statusText","headers"].forEach($=>{S[$]=te[$]});const M=N.toFiniteNumber(te.headers.get("content-length")),[Y,V]=fe&&Gh(M,Pr(Yh(fe),!0))||[];te=new s(Xh(te.body,Qh,Y,()=>{V&&V(),Se&&Se()}),S)}K=K||"text";let W=await g[N.findKey(g,K)||"text"](te,A);return!Ae&&Se&&Se(),await new Promise((S,M)=>{Fm(S,M,{data:W,headers:Tt.from(te.headers),status:te.status,statusText:te.statusText,config:A,request:pe})})}catch(B){throw Se&&Se(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,A,pe,B&&B.response),{cause:B.cause||B}):se.from(B,B&&B.code,A,pe,B&&B.response)}}},s2=new Map,Jm=i=>{let o=i&&i.env||{};const{fetch:c,Request:s,Response:f}=o,p=[s,f,c];let h=p.length,v=h,b,y,x=s2;for(;v--;)b=p[v],y=x.get(b),y===void 0&&x.set(b,y=v?new Map:o2(o)),x=y;return y};Jm();const cc={http:Tb,xhr:t2,fetch:{get:Jm}};N.forEach(cc,(i,o)=>{if(i){try{Object.defineProperty(i,"name",{value:o})}catch{}Object.defineProperty(i,"adapterName",{value:o})}});const Kh=i=>`- ${i}`,u2=i=>N.isFunction(i)||i===null||i===!1;function c2(i,o){i=N.isArray(i)?i:[i];const{length:c}=i;let s,f;const p={};for(let h=0;h<c;h++){s=i[h];let v;if(f=s,!u2(s)&&(f=cc[(v=String(s)).toLowerCase()],f===void 0))throw new se(`Unknown adapter '${v}'`);if(f&&(N.isFunction(f)||(f=f.get(o))))break;p[v||"#"+h]=f}if(!f){const h=Object.entries(p).map(([b,y])=>`adapter ${b} `+(y===!1?"is not supported by the environment":"is not available in the build"));let v=c?h.length>1?`since :
|
|
14
|
+
`+h.map(Kh).join(`
|
|
15
|
+
`):" "+Kh(h[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return f}const Im={getAdapter:c2,adapters:cc};function Gu(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new ji(null,i)}function Jh(i){return Gu(i),i.headers=Tt.from(i.headers),i.data=qu.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),Im.getAdapter(i.adapter||Si.adapter,i)(i).then(function(s){return Gu(i),s.data=qu.call(i,i.transformResponse,s),s.headers=Tt.from(s.headers),s},function(s){return Zm(s)||(Gu(i),s&&s.response&&(s.response.data=qu.call(i,i.transformResponse,s.response),s.response.headers=Tt.from(s.response.headers))),Promise.reject(s)})}const $m="1.13.5",uo={};["object","boolean","number","function","string","symbol"].forEach((i,o)=>{uo[i]=function(s){return typeof s===i||"a"+(o<1?"n ":" ")+i}});const Ih={};uo.transitional=function(o,c,s){function f(p,h){return"[Axios v"+$m+"] Transitional option '"+p+"'"+h+(s?". "+s:"")}return(p,h,v)=>{if(o===!1)throw new se(f(h," has been removed"+(c?" in "+c:"")),se.ERR_DEPRECATED);return c&&!Ih[h]&&(Ih[h]=!0,console.warn(f(h," has been deprecated since v"+c+" and will be removed in the near future"))),o?o(p,h,v):!0}};uo.spelling=function(o){return(c,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function f2(i,o,c){if(typeof i!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const s=Object.keys(i);let f=s.length;for(;f-- >0;){const p=s[f],h=o[p];if(h){const v=i[p],b=v===void 0||h(v,p,i);if(b!==!0)throw new se("option "+p+" must be "+b,se.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new se("Unknown option "+p,se.ERR_BAD_OPTION)}}const Kr={assertOptions:f2,validators:uo},Ft=Kr.validators;let bn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Lh,response:new Lh}}async request(o,c){try{return await this._request(o,c)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=f.stack?f.stack.replace(/^.+\n/,""):"";try{s.stack?p&&!String(s.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
16
|
+
`+p):s.stack=p}catch{}}throw s}}_request(o,c){typeof o=="string"?(c=c||{},c.url=o):c=o||{},c=jn(this.defaults,c);const{transitional:s,paramsSerializer:f,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),f!=null&&(N.isFunction(f)?c.paramsSerializer={serialize:f}:Kr.assertOptions(f,{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"],A=>{delete p[A]}),c.headers=Tt.concat(h,p);const v=[];let b=!0;this.interceptors.request.forEach(function(U){if(typeof U.runWhen=="function"&&U.runWhen(c)===!1)return;b=b&&U.synchronous;const D=c.transitional||sc;D&&D.legacyInterceptorReqResOrdering?v.unshift(U.fulfilled,U.rejected):v.push(U.fulfilled,U.rejected)});const y=[];this.interceptors.response.forEach(function(U){y.push(U.fulfilled,U.rejected)});let x,g=0,C;if(!b){const A=[Jh.bind(this),void 0];for(A.unshift(...v),A.push(...y),C=A.length,x=Promise.resolve(c);g<C;)x=x.then(A[g++],A[g++]);return x}C=v.length;let _=c;for(;g<C;){const A=v[g++],U=v[g++];try{_=A(_)}catch(D){U.call(this,D);break}}try{x=Jh.call(this,_)}catch(A){return Promise.reject(A)}for(g=0,C=y.length;g<C;)x=x.then(y[g++],y[g++]);return x}getUri(o){o=jn(this.defaults,o);const c=Wm(o.baseURL,o.url,o.allowAbsoluteUrls);return Xm(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,v){return this.request(jn(v||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:p,data:h}))}}bn.prototype[o]=c(),bn.prototype[o+"Form"]=c(!0)});let d2=class Pm{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(p){c=p});const s=this;this.promise.then(f=>{if(!s._listeners)return;let p=s._listeners.length;for(;p-- >0;)s._listeners[p](f);s._listeners=null}),this.promise.then=f=>{let p;const h=new Promise(v=>{s.subscribe(v),p=v}).then(f);return h.cancel=function(){s.unsubscribe(p)},h},o(function(p,h,v){s.reason||(s.reason=new ji(p,h,v),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 Pm(function(f){o=f}),cancel:o}}};function p2(i){return function(c){return i.apply(null,c)}}function h2(i){return N.isObject(i)&&i.isAxiosError===!0}const $u={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($u).forEach(([i,o])=>{$u[o]=i});function e0(i){const o=new bn(i),c=km(bn.prototype.request,o);return N.extend(c,bn.prototype,o,{allOwnKeys:!0}),N.extend(c,o,null,{allOwnKeys:!0}),c.create=function(f){return e0(jn(i,f))},c}const Ie=e0(Si);Ie.Axios=bn;Ie.CanceledError=ji;Ie.CancelToken=d2;Ie.isCancel=Zm;Ie.VERSION=$m;Ie.toFormData=so;Ie.AxiosError=se;Ie.Cancel=Ie.CanceledError;Ie.all=function(o){return Promise.all(o)};Ie.spread=p2;Ie.isAxiosError=h2;Ie.mergeConfig=jn;Ie.AxiosHeaders=Tt;Ie.formToJSON=i=>Qm(N.isHTMLForm(i)?new FormData(i):i);Ie.getAdapter=Im.getAdapter;Ie.HttpStatusCode=$u;Ie.default=Ie;const{Axios:U2,AxiosError:L2,CanceledError:q2,isCancel:G2,CancelToken:Y2,VERSION:V2,all:X2,Cancel:Q2,isAxiosError:Z2,spread:F2,toFormData:W2,AxiosHeaders:K2,HttpStatusCode:J2,formToJSON:I2,getAdapter:$2,mergeConfig:P2}=Ie,t0="/api",Ve=Ie.create({baseURL:t0,headers:{"Content-Type":"application/json"}});Ve.interceptors.request.use(i=>{const o=localStorage.getItem("samarthya_token");return o&&(i.headers.Authorization=`Bearer ${o}`),i});const sl={register:i=>Ve.post("/auth/register",i),login:i=>Ve.post("/auth/login",i),demoLogin:()=>Ve.post("/auth/demo"),getProfile:()=>Ve.get("/auth/profile"),updateProfile:i=>Ve.put("/auth/profile",i)},di={sendMessage:i=>Ve.post("/chat/message",i),getConversations:()=>Ve.get("/chat/conversations"),getConversation:i=>Ve.get(`/chat/conversations/${i}`),deleteConversation:i=>Ve.delete(`/chat/conversations/${i}`),togglePin:i=>Ve.patch(`/chat/conversations/${i}/pin`)},Jr={getLogs:i=>Ve.get("/audit/logs",{params:i}),getStats:()=>Ve.get("/audit/stats"),rollback:i=>Ve.post(`/audit/rollback/${i}`)},Ir={getAll:()=>Ve.get("/tools"),getPacks:()=>Ve.get("/tools/packs"),getPackTools:i=>Ve.get(`/tools/packs/${i}`)},m2={analyze:(i,o)=>Ve.post("/screen/analyze",{image:i,prompt:o}),getSupported:()=>Ve.get("/screen/supported")},gn={list:i=>Ve.get("/files/list",{params:{path:i}}),read:i=>Ve.get("/files/read",{params:{path:i}}),download:i=>`${t0}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,o)=>Ve.post("/files/mkdir",{name:i,parentPath:o}),upload:(i,o,c)=>Ve.post("/files/upload",{filename:i,content:o,parentPath:c}),deleteFile:i=>Ve.delete("/files/delete",{params:{path:i}}),getStats:()=>Ve.get("/files/stats")},y2=[{emoji:"🔍",text:"Web search karo",textEn:"Search the web"},{emoji:"📝",text:"Note likh do",textEn:"Take a note"},{emoji:"🧮",text:"Calculate karo",textEn:"Do a calculation"},{emoji:"⏰",text:"Reminder set karo",textEn:"Set a reminder"},{emoji:"📅",text:"Calendar mein add karo",textEn:"Add to calendar"},{emoji:"💳",text:"UPI link banao",textEn:"Generate UPI link"}],g2=i=>{if(!i)return"";const o=new Date(i);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},v2=i=>{const o={};return i.forEach(c=>{const s=c.createdAt?new Date(c.createdAt):new Date;if(isNaN(s))return;const f=new Date,p=new Date;p.setDate(f.getDate()-1);let h;s.toDateString()===f.toDateString()?h="Today":s.toDateString()===p.toDateString()?h="Yesterday":h=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[h]||(o[h]=[]),o[h].push(c)}),o},$h=i=>i?i.split(`
|
|
17
|
+
`).map((o,c)=>{const s=[];let f=o;const p=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let h;for(;(h=p.exec(f))!==null;){if(h.index>0){const v=f.substring(0,h.index);s.push(u.jsx("span",{children:v.replace(/\*\*/g,"")},`t-${h.index}`))}s.push(u.jsx("a",{href:h[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:h[1].replace(/\*\*/g,"")},`l-${h.index}`)),f=f.substring(h.index+h[0].length)}if(f.length>0){let v=f;v.startsWith("- ")&&(v="• "+v.substring(2)),s.push(u.jsx("span",{children:v.replace(/\*\*/g,"")},`end-${c}`))}return u.jsxs(eo.Fragment,{children:[s.length>0?s:u.jsx("span",{children:o.replace(/\*\*/g,"")}),u.jsx("br",{})]},c)}):null;function Ph({user:i}){const[o,c]=E.useState([]),[s,f]=E.useState(null),[p,h]=E.useState([]),[v,b]=E.useState(""),[y,x]=E.useState(!1),[g,C]=E.useState(!1),[_,A]=E.useState(!1),[U,D]=E.useState(!1),[Z,P]=E.useState(null),X=E.useRef(null),ne=E.useRef(null),[fe,ve]=E.useState(""),K=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(),V=X.current.createGain();Y.type="triangle",Y.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{ne.current&&X.current&&(Y.frequency.setValueAtTime(800,X.current.currentTime),Y.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),V.gain.value=.1,Y.connect(V),V.connect(X.current.destination),Y.start(),ne.current=Y}P(S)},$e=()=>{P(null),ne.current&&(ne.current.stop(),ne.current=null),X.current&&(X.current.close(),X.current=null)};E.useEffect(()=>(Se(),F(),()=>{K.current&&K.current.abort()}),[]),E.useEffect(()=>{_e.current?.scrollIntoView({behavior:"smooth"})},[p]);const F=()=>{const W=window.SpeechRecognition||window.webkitSpeechRecognition;if(!W)return;D(!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 V=0;V<M.results.length;V++)Y+=M.results[V][0].transcript;ve(Y),b(Y),M.results[M.results.length-1].isFinal&&setTimeout(()=>{A(!1),Y.trim()&&B(Y.trim())},500)},S.onerror=M=>{console.error("Voice error:",M.error),A(!1)},S.onend=()=>{A(!1)},K.current=S},pe=()=>{K.current&&(_?(K.current.stop(),A(!1)):(ve(""),K.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",K.current.start(),A(!0)))},Se=async()=>{try{const W=await di.getConversations();c(W.data.conversations||[])}catch{console.error("Failed to load conversations")}},Oe=async W=>{try{const S=await di.getConversation(W);f(S.data.conversation),h(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},B=async W=>{const S=W||v.trim();if(!S||y)return;b("");const M={role:"user",content:S,createdAt:new Date};h(Y=>[...Y,M]),x(!0),C(!0);try{const V=(await di.sendMessage({message:S,conversationId:s?._id})).data;s||(f({_id:V.conversationId}),Se());const $={role:"assistant",content:V.message.content,toolCalls:V.message.toolCalls,sensitiveDataWarnings:V.message.sensitiveDataWarnings,createdAt:new Date};h(ue=>[...ue,$]),$.toolCalls&&$.toolCalls.forEach(ue=>{if(ue.toolName==="reminder_set"&&ue.notificationParams){const{delayMs:Ce,message:st}=ue.notificationParams;setTimeout(()=>{ot(st)},Ce||5e3)}})}catch{h(V=>[...V,{role:"assistant",content:i?.language==="english"?"❌ Oops, an error occurred. Check the server or try again.":"❌ Arre, kuch error aa gaya. Server check karo ya dubara try karo.",createdAt:new Date}])}finally{x(!1),C(!1),Me.current?.focus()}},Q=()=>{f(null),h([]),Me.current?.focus()},te=async(W,S)=>{S.stopPropagation();try{await di.deleteConversation(W),s?._id===W&&Q(),Se()}catch{console.error("Delete failed")}},Ae=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),B())};return u.jsxs("div",{style:I.container,children:[Z&&u.jsx("div",{style:I.alarmPopupLayer,children:u.jsxs("div",{style:I.alarmBox,children:[u.jsx("div",{style:I.alarmIcon,children:"⏰"}),u.jsxs("div",{style:I.alarmContent,children:[u.jsx("h4",{style:I.alarmTitle,children:"Reminder"}),u.jsx("p",{style:I.alarmMessage,children:Z})]}),u.jsx("button",{onClick:$e,style:I.alarmStopBtn,children:"Stop Alarm"})]})}),u.jsxs("div",{style:I.convSidebar,children:[u.jsxs("div",{style:I.convHeader,children:[u.jsx("h3",{style:I.convTitle,children:"💬 Conversations"}),u.jsx("button",{onClick:Q,style:I.newBtn,title:"New Chat",children:u.jsx(mx,{size:18})})]}),u.jsxs("div",{style:I.convList,children:[o.map(W=>u.jsxs("button",{onClick:()=>Oe(W._id),style:{...I.convItem,...s?._id===W._id?I.convItemActive:{}},children:[u.jsx("span",{style:I.convItemTitle,children:W.title}),u.jsx("div",{style:I.convActions,children:u.jsx("button",{onClick:S=>te(W._id,S),style:I.convDelBtn,children:u.jsx(Dm,{size:14})})})]},W._id)),o.length===0&&u.jsx("p",{style:I.emptyConv,children:i?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),u.jsxs("div",{style:I.chatArea,children:[_&&u.jsxs("div",{style:I.voiceOverlay,children:[u.jsx("div",{style:I.voicePulseRing,children:u.jsx(Wu,{size:36,color:"#FF9933"})}),u.jsx("p",{style:I.voiceText,children:fe||(i?.language==="hindi"?"बोलिए...":i?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),u.jsx("p",{style:I.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),u.jsxs("button",{onClick:pe,style:I.voiceStopBtn,children:[u.jsx(cx,{size:18})," Stop Listening"]})]}),u.jsxs("div",{style:I.messages,children:[p.length===0&&u.jsxs("div",{style:I.welcome,children:[u.jsx("div",{style:I.welcomeLogo,children:"स"}),u.jsxs("h2",{style:I.welcomeTitle,children:[i?.language==="english"?"Hello":"Namaste",", ",i?.name||"User","! 🙏"]}),u.jsx("p",{style:I.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:I.quickActions,children:y2.map((W,S)=>u.jsxs("button",{onClick:()=>B(i?.language==="english"?W.textEn:W.text),style:I.quickActionBtn,children:[u.jsx("span",{style:I.quickEmoji,children:W.emoji}),u.jsx("span",{children:i?.language==="english"?W.textEn:W.text})]},S))})]}),Object.entries(v2(p)).map(([W,S],M)=>u.jsxs(eo.Fragment,{children:[u.jsx("div",{style:I.dateDivider,children:u.jsx("span",{style:I.dateBadge,children:W})}),S.map((Y,V)=>u.jsxs("div",{style:{...I.message,...Y.role==="user"?I.userMessage:I.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[u.jsx("div",{style:Y.role==="user"?I.userAvatar:I.assistantAvatar,children:Y.role==="user"?u.jsx(Om,{size:16}):u.jsx(_h,{size:16})}),u.jsxs("div",{style:I.messageContent,children:[Y.sensitiveDataWarnings?.length>0&&u.jsxs("div",{style:I.warningBanner,children:[u.jsx(_m,{size:14}),u.jsxs("span",{children:["⚠️ Sensitive data detected: ",Y.sensitiveDataWarnings.map($=>$.type).join(", ")]})]}),u.jsx("div",{style:I.messageText,children:$h(Y.content)}),Y.toolCalls?.length>0&&u.jsx("div",{style:I.toolCalls,children:Y.toolCalls.map(($,ue)=>u.jsxs("div",{style:I.toolCall,children:[u.jsxs("div",{style:I.toolCallHeader,children:[u.jsxs("span",{style:{...I.toolBadge,background:$.status==="completed"?"rgba(16,185,129,0.15)":$.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:$.status==="completed"?"#10b981":$.status==="blocked"?"#ef4444":"#f59e0b"},children:[$.status==="completed"?"✅":$.status==="blocked"?"🚫":"⏳"," ",$.toolName]}),u.jsxs("span",{style:I.toolRisk,children:["Risk: ",$.riskLevel]})]}),$.result&&u.jsx("div",{style:I.toolResult,children:$h($.result)})]},ue))}),u.jsx("div",{style:{...I.msgTime,color:Y.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:g2(Y.createdAt)})]})]},`msg-${M}-${V}`))]},`group-${M}`)),g&&u.jsxs("div",{style:{...I.message,...I.assistantMessage},children:[u.jsx("div",{style:I.assistantAvatar,children:u.jsx(_h,{size:16})}),u.jsxs("div",{style:I.typingIndicator,children:[u.jsx("span",{style:{...I.typingDot,animationDelay:"0s"}}),u.jsx("span",{style:{...I.typingDot,animationDelay:"0.2s"}}),u.jsx("span",{style:{...I.typingDot,animationDelay:"0.4s"}})]})]}),u.jsx("div",{ref:_e})]}),u.jsxs("div",{style:I.inputArea,children:[u.jsxs("div",{style:I.inputWrap,children:[u.jsx("textarea",{ref:Me,value:v,onChange:W=>b(W.target.value),onKeyDown:Ae,placeholder:i?.language==="hindi"?"यहां टाइप करें...":i?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:I.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){x(!0),h(M=>[...M,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),C(!0);try{const M=new FileReader;M.onload=async()=>{const Y=M.result,V=await m2.analyze(Y,v.trim()||"Is screenshot mein kya hai? Next step batao.");h($=>[...$,{role:"assistant",content:`👁️ **Screen Analysis:**
|
|
18
|
+
|
|
19
|
+
${V.data.analysis.content}`,createdAt:new Date}]),b("")},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{x(!1),C(!1),W.target.value=""}}}}),u.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:I.voiceBtn,title:"Screenshot upload for AI analysis",children:u.jsx(Cv,{size:20})}),U&&u.jsx("button",{onClick:pe,style:{...I.voiceBtn,..._?I.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:u.jsx(Wu,{size:20})}),u.jsx("button",{onClick:()=>B(),disabled:y||!v.trim(),style:{...I.sendBtn,opacity:y||!v.trim()?.5:1},children:y?u.jsx(ix,{size:20,style:{animation:"spin 1s linear infinite"}}):u.jsx(jx,{size:20})})]}),u.jsx("p",{style:I.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const I={container:{display:"flex",height:"100vh",background:"var(--bg-primary)"},alarmPopupLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},alarmBox:{background:"rgba(20, 20, 35, 0.95)",border:"2px solid rgba(255, 107, 0, 0.5)",borderRadius:"var(--radius-lg)",padding:"32px",boxShadow:"0 20px 50px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",maxWidth:"400px",textAlign:"center",animation:"pulseAlarm 1s infinite alternate"},alarmIcon:{fontSize:"4rem",animation:"ringAlarm 0.5s infinite alternate"},alarmTitle:{fontSize:"1.4rem",fontWeight:"bold",color:"var(--text-primary)",margin:0},alarmMessage:{fontSize:"1.1rem",color:"var(--text-secondary)",margin:0},alarmStopBtn:{background:"#ef4444",color:"white",border:"none",borderRadius:"var(--radius-md)",padding:"12px 24px",fontSize:"1rem",fontWeight:"bold",cursor:"pointer",boxShadow:"0 4px 15px rgba(239,68,68,0.3)",transition:"all 0.2s ease"},convSidebar:{width:"280px",minWidth:"200px",maxWidth:"500px",resize:"horizontal",overflowX:"hidden",background:"var(--bg-secondary)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",flexShrink:0},convHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)"},convTitle:{fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},newBtn:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)"},convList:{flex:1,overflow:"auto",padding:"8px"},convItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"12px",background:"transparent",border:"none",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",textAlign:"left",transition:"all var(--transition-fast)",marginBottom:"2px"},convItemActive:{background:"rgba(255, 153, 51, 0.1)",color:"var(--text-primary)"},convItemTitle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},convActions:{display:"flex",gap:"4px",flexShrink:0},convDelBtn:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",transition:"all var(--transition-fast)"},emptyConv:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem"},chatArea:{flex:1,display:"flex",flexDirection:"column",minWidth:0},messages:{flex:1,overflow:"auto",padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},welcome:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,textAlign:"center",padding:"40px 20px",animation:"fadeInUp 0.6s ease-out"},welcomeLogo:{fontSize:"4rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",marginBottom:"16px",animation:"float 4s ease-in-out infinite"},welcomeTitle:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},welcomeSubtitle:{fontSize:"1rem",color:"var(--text-muted)",marginBottom:"32px",maxWidth:"500px",fontFamily:"var(--font-primary)"},dateDivider:{display:"flex",justifyContent:"center",margin:"16px 0",width:"100%"},dateBadge:{backgroundColor:"var(--bg-card)",color:"var(--text-muted)",fontSize:"0.75rem",padding:"4px 12px",borderRadius:"16px",border:"1px solid var(--border-subtle)"},quickActions:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",maxWidth:"680px",width:"100%"},quickActionBtn:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",textAlign:"left"},quickEmoji:{fontSize:"1.2rem"},message:{display:"flex",gap:"12px",maxWidth:"85%",animation:"fadeIn 0.3s ease-out"},userMessage:{alignSelf:"flex-end",flexDirection:"row-reverse"},assistantMessage:{alignSelf:"flex-start"},userAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-saffron)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},assistantAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},messageContent:{maxWidth:"100%"},messageText:{padding:"14px 18px",borderRadius:"var(--radius-lg)",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)",fontSize:"0.9rem",lineHeight:1.7,wordBreak:"break-word"},warningBanner:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-sm)",color:"#f59e0b",fontSize:"0.8rem",marginBottom:"8px"},msgTime:{fontSize:"0.7rem",textAlign:"right",marginTop:"4px",fontWeight:"500"},toolCalls:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"6px"},toolCall:{padding:"10px 14px",background:"rgba(99, 102, 241, 0.06)",border:"1px solid rgba(99, 102, 241, 0.15)",borderRadius:"var(--radius-sm)",fontSize:"0.8rem"},toolCallHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"},toolBadge:{padding:"2px 8px",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:600},toolRisk:{fontSize:"0.7rem",color:"var(--text-muted)",textTransform:"uppercase"},toolResult:{color:"var(--text-secondary)",fontSize:"0.8rem",lineHeight:1.5,whiteSpace:"pre-wrap"},typingIndicator:{display:"flex",gap:"6px",padding:"14px 18px",background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)"},typingDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",animation:"typing 1.4s ease-in-out infinite",display:"inline-block"},inputArea:{padding:"16px 24px 20px",borderTop:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},inputWrap:{display:"flex",alignItems:"flex-end",gap:"12px",padding:"6px 6px 6px 18px",background:"var(--bg-input)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-lg)",transition:"all var(--transition-normal)"},textarea:{flex:1,background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.95rem",padding:"10px 0",resize:"none",outline:"none",maxHeight:"120px",lineHeight:1.5},sendBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"#0D0D0D",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"transparent",border:"1px solid var(--border-subtle)",color:"var(--text-muted)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"var(--accent-saffron)",color:"var(--accent-saffron)",animation:"voicePulse 1.5s infinite"},voiceOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(13, 13, 13, 0.92)",backdropFilter:"blur(20px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:50,animation:"fadeIn 0.3s ease-out",gap:"16px"},voicePulseRing:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255, 153, 51, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 1.5s infinite"},voiceText:{fontSize:"1.2rem",fontWeight:600,color:"var(--text-primary)",maxWidth:"400px",textAlign:"center"},voiceHint:{fontSize:"0.82rem",color:"var(--text-muted)"},voiceStopBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",color:"#ef4444",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)"},inputHint:{fontSize:"0.7rem",color:"var(--text-muted)",textAlign:"center",marginTop:"8px"}};function x2({user:i}){const o=no(),[c,s]=E.useState(null),[f,p]=E.useState([]),[h,v]=E.useState([]);E.useEffect(()=>{b()},[]);const b=async()=>{try{const[x,g]=await Promise.all([di.getConversations().catch(()=>({data:{conversations:[]}})),Ir.getPacks().catch(()=>({data:{packs:[]}}))]);p(x.data.conversations?.slice(0,5)||[]),v(g.data.packs||[]);try{const C=await Jr.getStats();s(C.data.stats)}catch{s({totalActions:0,byCategory:{},byStatus:{}})}}catch(x){console.error("Dashboard load error:",x)}},y=[{icon:Fu,label:"Conversations",labelHi:"बातचीत",value:f.length,color:"#6366f1",gradient:"linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.08) 100%)"},{icon:Em,label:"Total Actions",labelHi:"कुल एक्शन",value:c?.totalActions||0,color:"#14b8a6",gradient:"linear-gradient(135deg, rgba(20,184,166,0.15) 0%, rgba(16,185,129,0.08) 100%)"},{icon:ul,label:"Security Scans",labelHi:"सुरक्षा स्कैन",value:c?.byCategory?.security||0,color:"#f59e0b",gradient:"linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(251,191,36,0.08) 100%)"},{icon:mi,label:"Tools Used",labelHi:"टूल्स इस्तेमाल",value:c?.byCategory?.tool||0,color:"#f43f5e",gradient:"linear-gradient(135deg, rgba(244,63,94,0.15) 0%, rgba(239,68,68,0.08) 100%)"}];return u.jsxs("div",{style:ge.container,children:[u.jsxs("div",{style:ge.header,children:[u.jsxs("div",{children:[u.jsxs("h1",{style:ge.title,children:["Namaste, ",i?.name||"User","! 🙏"]}),u.jsxs("p",{style:ge.subtitle,children:["Welcome to your AI command center • ",i?.activePack," pack active"]})]}),u.jsxs("button",{onClick:()=>o("/chat"),style:ge.newChatBtn,children:[u.jsx(Sn,{size:18}),"New Chat"]})]}),u.jsx("div",{style:ge.statsGrid,children:y.map((x,g)=>{const C=x.icon;return u.jsxs("div",{style:{...ge.statCard,background:x.gradient,animationDelay:`${g*.1}s`},children:[u.jsx("div",{style:{...ge.statIcon,background:`${x.color}20`,color:x.color},children:u.jsx(C,{size:22})}),u.jsxs("div",{style:ge.statInfo,children:[u.jsx("div",{style:ge.statValue,children:x.value}),u.jsx("div",{style:ge.statLabel,children:x.label})]})]},g)})}),u.jsxs("div",{style:ge.mainGrid,children:[u.jsxs("div",{style:ge.card,children:[u.jsxs("div",{style:ge.cardHeader,children:[u.jsxs("h3",{style:ge.cardTitle,children:[u.jsx(Fu,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Conversations"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:ge.viewAllBtn,children:["View All ",u.jsx(ol,{size:14})]})]}),u.jsx("div",{style:ge.cardBody,children:f.length>0?f.map(x=>u.jsxs("button",{onClick:()=>o(`/chat/${x._id}`),style:ge.convRow,children:[u.jsx("div",{style:ge.convDot}),u.jsxs("div",{style:ge.convInfo,children:[u.jsx("span",{style:ge.convName,children:x.title}),u.jsx("span",{style:ge.convTime,children:new Date(x.updatedAt).toLocaleDateString("en-IN",{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"})})]}),u.jsx(ol,{size:14,style:{color:"var(--text-muted)"}})]},x._id)):u.jsxs("div",{style:ge.emptyState,children:[u.jsx(Tv,{size:40,style:{color:"var(--text-muted)",marginBottom:"12px"}}),u.jsx("p",{children:"No conversations yet. Start chatting with SamarthyaBot!"}),u.jsx("button",{onClick:()=>o("/chat"),style:ge.startBtn,children:"Start Conversation 🚀"})]})})]}),u.jsxs("div",{style:ge.card,children:[u.jsxs("div",{style:ge.cardHeader,children:[u.jsxs("h3",{style:ge.cardTitle,children:[u.jsx(mi,{size:18,style:{color:"var(--accent-gold)"}}),"Tool Packs"]}),u.jsxs("button",{onClick:()=>o("/tools"),style:ge.viewAllBtn,children:["Manage ",u.jsx(ol,{size:14})]})]}),u.jsx("div",{style:ge.cardBody,children:h.map((x,g)=>u.jsxs("div",{style:{...ge.packRow,...x.id===i?.activePack?ge.packRowActive:{}},children:[u.jsx("span",{style:ge.packIcon,children:x.id==="student"?"🎓":x.id==="business"?"🏢":x.id==="developer"?"👨💻":"🏠"}),u.jsxs("div",{style:ge.packInfo,children:[u.jsx("span",{style:ge.packName,children:x.name}),u.jsxs("span",{style:ge.packDesc,children:[x.toolCount," tools"]})]}),x.id===i?.activePack&&u.jsx("span",{style:ge.activeBadge,children:"Active"})]},g))})]})]}),u.jsx("div",{style:ge.banner,children:u.jsxs("div",{style:ge.bannerContent,children:[u.jsx(zm,{size:20,style:{color:"var(--accent-saffron)"}}),u.jsxs("div",{children:[u.jsx("strong",{children:"🇮🇳 Indian-Optimized AI"}),u.jsx("span",{style:{color:"var(--text-muted)",marginLeft:"8px"},children:"Hindi + Hinglish + English • PAN/Aadhaar detection • GST Reminders • UPI Links"})]})]})})]})}const ge={container:{padding:"28px 32px",maxWidth:"1200px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px",flexWrap:"wrap",gap:"16px"},title:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px",textTransform:"capitalize"},newChatBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 24px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.95rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"24px"},statCard:{padding:"22px",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)",display:"flex",alignItems:"center",gap:"16px",animation:"fadeInUp 0.4s ease-out both",transition:"all var(--transition-normal)"},statIcon:{width:"48px",height:"48px",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",justifyContent:"center"},statInfo:{flex:1},statValue:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.8rem",color:"var(--text-muted)",fontWeight:500},mainGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(400px, 1fr))",gap:"20px",marginBottom:"24px"},card:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"18px 20px",borderBottom:"1px solid var(--border-subtle)"},cardTitle:{display:"flex",alignItems:"center",gap:"8px",fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},viewAllBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"var(--accent-primary)",fontSize:"0.8rem",fontWeight:500,cursor:"pointer",fontFamily:"var(--font-primary)"},cardBody:{padding:"12px"},convRow:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",borderRadius:"var(--radius-md)",background:"transparent",border:"none",width:"100%",cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",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:"2px",minWidth:0},convName:{fontSize:"0.875rem",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},convTime:{fontSize:"0.75rem",color:"var(--text-muted)"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"32px 16px",color:"var(--text-muted)",fontSize:"0.85rem",textAlign:"center"},startBtn:{marginTop:"12px",padding:"10px 20px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",cursor:"pointer",fontSize:"0.85rem",fontWeight:600,fontFamily:"var(--font-primary)"},packRow:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",borderRadius:"var(--radius-md)",transition:"all var(--transition-fast)"},packRowActive:{background:"rgba(99, 102, 241, 0.08)",border:"1px solid rgba(99, 102, 241, 0.2)"},packIcon:{fontSize:"1.4rem"},packInfo:{flex:1,display:"flex",flexDirection:"column"},packName:{fontSize:"0.875rem",fontWeight:600,color:"var(--text-primary)"},packDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},activeBadge:{padding:"3px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.7rem",fontWeight:600},banner:{background:"linear-gradient(135deg, rgba(255,107,53,0.08) 0%, rgba(19,136,8,0.05) 100%)",border:"1px solid rgba(255,107,53,0.15)",borderRadius:"var(--radius-lg)",padding:"16px 20px"},bannerContent:{display:"flex",alignItems:"center",gap:"12px",fontSize:"0.875rem",color:"var(--text-primary)",flexWrap:"wrap"}};function b2({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"}}),[f,p]=E.useState(!1),[h,v]=E.useState(!1),b=async()=>{p(!0);try{const g=await sl.updateProfile(c);o(g.data.user),v(!0),setTimeout(()=>v(!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:"कभी नहीं"}],x=[{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:ie.container,children:[u.jsxs("div",{style:ie.header,children:[u.jsx("h1",{style:ie.title,children:"⚙️ Settings"}),u.jsx("button",{onClick:b,disabled:f,style:ie.saveBtn,children:h?u.jsxs(u.Fragment,{children:[u.jsx(hi,{size:18})," Saved!"]}):f?"Saving...":u.jsxs(u.Fragment,{children:[u.jsx(bx,{size:18})," Save Changes"]})})]}),u.jsxs("div",{style:ie.grid,children:[u.jsxs("div",{style:ie.section,children:[u.jsxs("div",{style:ie.sectionHeader,children:[u.jsx(Om,{size:20,style:{color:"var(--accent-primary)"}}),u.jsx("h2",{style:ie.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),u.jsxs("div",{style:ie.sectionBody,children:[u.jsxs("div",{style:ie.field,children:[u.jsx("label",{style:ie.label,children:"Name / नाम"}),u.jsx("input",{style:ie.input,value:c.name,onChange:g=>s({...c,name:g.target.value}),placeholder:"Your name"})]}),u.jsxs("div",{style:ie.fieldRow,children:[u.jsxs("div",{style:ie.field,children:[u.jsx("label",{style:ie.label,children:"City / शहर"}),u.jsx("input",{style:ie.input,value:c.city,onChange:g=>s({...c,city:g.target.value}),placeholder:"Mumbai, Delhi, etc."})]}),u.jsxs("div",{style:ie.field,children:[u.jsx("label",{style:ie.label,children:"Work Type"}),u.jsxs("select",{style:ie.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:ie.section,children:[u.jsxs("div",{style:ie.sectionHeader,children:[u.jsx(zm,{size:20,style:{color:"var(--accent-saffron)"}}),u.jsx("h2",{style:ie.sectionTitle,children:"Language / भाषा"})]}),u.jsx("div",{style:ie.sectionBody,children:u.jsx("div",{style:ie.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:{...ie.langCard,...c.language===g.value?ie.langCardActive:{}},children:[u.jsx("span",{style:ie.langIcon,children:g.icon}),u.jsx("span",{style:ie.langLabel,children:g.label}),u.jsx("span",{style:ie.langDesc,children:g.desc}),c.language===g.value&&u.jsx(hi,{size:16,style:ie.langCheck})]},g.value))})})]}),u.jsxs("div",{style:ie.section,children:[u.jsxs("div",{style:ie.sectionHeader,children:[u.jsx(ul,{size:20,style:{color:"var(--accent-teal)"}}),u.jsx("h2",{style:ie.sectionTitle,children:"Active Pack / टूल पैक"})]}),u.jsx("div",{style:ie.sectionBody,children:u.jsx("div",{style:ie.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:{...ie.packCard,...c.activePack===g.id?ie.packCardActive:{}},children:[u.jsx("span",{style:ie.packIcon,children:g.icon}),u.jsx("span",{style:ie.packName,children:g.name}),u.jsx("span",{style:ie.packDesc,children:g.desc})]},g.id))})})]}),u.jsxs("div",{style:ie.section,children:[u.jsxs("div",{style:ie.sectionHeader,children:[u.jsx(ul,{size:20,style:{color:"var(--accent-rose)"}}),u.jsx("h2",{style:ie.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),u.jsx("div",{style:ie.sectionBody,children:x.map(g=>u.jsxs("div",{style:ie.permRow,children:[u.jsxs("div",{style:ie.permInfo,children:[u.jsx("span",{style:ie.permIcon,children:g.icon}),u.jsxs("div",{children:[u.jsx("div",{style:ie.permLabel,children:g.label}),u.jsx("div",{style:ie.permDesc,children:g.desc})]})]}),u.jsx("select",{style:ie.permSelect,value:c.permissions[g.key],onChange:C=>s({...c,permissions:{...c.permissions,[g.key]:C.target.value}}),children:y.map(C=>u.jsx("option",{value:C.value,children:C.label},C.value))})]},g.key))})]})]})]})}const ie={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"}},Yu={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:"🛠️"}},em={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 S2({user:i}){const[o,c]=E.useState([]),[s,f]=E.useState(null),[p,h]=E.useState(""),[v,b]=E.useState(!0);E.useEffect(()=>{y()},[p]);const y=async()=>{b(!0);try{const g={};p&&(g.category=p);const[C,_]=await Promise.all([Jr.getLogs(g),Jr.getStats()]);c(C.data.logs||[]),f(_.data.stats||null)}catch{console.error("Failed to load audit data"),c([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{b(!1)}},x=async g=>{try{await Jr.rollback(g),y()}catch{console.error("Rollback failed")}};return u.jsxs("div",{style:ye.container,children:[u.jsx("div",{style:ye.header,children:u.jsxs("div",{children:[u.jsx("h1",{style:ye.title,children:"🔐 Audit Log / ऑडिट लॉग"}),u.jsx("p",{style:ye.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),u.jsxs("div",{style:ye.statsRow,children:[u.jsxs("div",{style:ye.statCard,children:[u.jsx(Em,{size:20,style:{color:"var(--accent-primary)"}}),u.jsxs("div",{children:[u.jsx("div",{style:ye.statValue,children:s?.totalActions||0}),u.jsx("div",{style:ye.statLabel,children:"Total Actions"})]})]}),u.jsxs("div",{style:ye.statCard,children:[u.jsx(ul,{size:20,style:{color:"#10b981"}}),u.jsxs("div",{children:[u.jsx("div",{style:ye.statValue,children:s?.byStatus?.success||0}),u.jsx("div",{style:ye.statLabel,children:"Successful"})]})]}),u.jsxs("div",{style:ye.statCard,children:[u.jsx(_m,{size:20,style:{color:"#f59e0b"}}),u.jsxs("div",{children:[u.jsx("div",{style:ye.statValue,children:s?.byStatus?.blocked||0}),u.jsx("div",{style:ye.statLabel,children:"Blocked"})]})]}),u.jsxs("div",{style:ye.statCard,children:[u.jsx(Bh,{size:20,style:{color:"#8b5cf6"}}),u.jsxs("div",{children:[u.jsx("div",{style:ye.statValue,children:s?.byStatus?.rolled_back||0}),u.jsx("div",{style:ye.statLabel,children:"Rolled Back"})]})]})]}),u.jsxs("div",{style:ye.filters,children:[u.jsx(Kv,{size:16,style:{color:"var(--text-muted)"}}),u.jsx("button",{onClick:()=>h(""),style:{...ye.filterBtn,...p===""?ye.filterBtnActive:{}},children:"All"}),Object.entries(Yu).map(([g,C])=>u.jsxs("button",{onClick:()=>h(g),style:{...ye.filterBtn,...p===g?ye.filterBtnActive:{}},children:[C.icon," ",g]},g))]}),u.jsx("div",{style:ye.timeline,children:v?u.jsxs("div",{style:ye.loadingState,children:[u.jsx("div",{style:ye.spinner}),u.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?u.jsxs("div",{style:ye.emptyState,children:[u.jsx(ul,{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,C)=>{const _=Yu[g.category]||Yu.system,A=em[g.status]||em.success;return u.jsxs("div",{style:ye.logEntry,children:[u.jsxs("div",{style:ye.logTimeline,children:[u.jsx("div",{style:{...ye.logDot,background:_.color}}),C<o.length-1&&u.jsx("div",{style:ye.logLine})]}),u.jsxs("div",{style:ye.logContent,children:[u.jsxs("div",{style:ye.logHeader,children:[u.jsxs("span",{style:{...ye.logCategory,background:_.bg,color:_.color},children:[_.icon," ",g.category]}),u.jsx("span",{style:{...ye.logStatus,background:A.bg,color:A.color},children:g.status}),g.details?.riskLevel&&g.details.riskLevel!=="low"&&u.jsxs("span",{style:ye.riskBadge,children:["⚠️ ",g.details.riskLevel," risk"]})]}),u.jsx("div",{style:ye.logAction,children:g.action}),g.details?.toolName&&u.jsxs("div",{style:ye.logDetail,children:["Tool: ",g.details.toolName]}),u.jsxs("div",{style:ye.logTime,children:[u.jsx(Tm,{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:()=>x(g._id),style:ye.rollbackBtn,children:[u.jsx(Bh,{size:14})," Undo / Rollback"]})]})]},g._id||C)})})]})}const ye={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"}},tm={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 j2({user:i}){const[o,c]=E.useState([]),[s,f]=E.useState([]),[p,h]=E.useState(null),[v,b]=E.useState([]);E.useEffect(()=>{y()},[]);const y=async()=>{try{const[_,A]=await Promise.all([Ir.getPacks(),Ir.getAll()]);c(_.data.packs||[]),f(A.data.tools||[])}catch{console.error("Failed to load tools")}},x=async _=>{h(_);try{const A=await Ir.getPackTools(_);b(A.data.tools||[])}catch{b([])}},g=async _=>{try{await sl.updateProfile({activePack:_})}catch{console.error("Failed to activate pack")}},C=i?.language==="english";return u.jsxs("div",{style:qe.container,children:[u.jsx("div",{style:qe.header,children:u.jsxs("div",{children:[u.jsxs("h1",{style:qe.title,children:["🛠️ ",C?"Tool Packs":"टूल पैक्स"]}),u.jsx("p",{style:qe.subtitle,children:C?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),u.jsx("div",{style:qe.packsGrid,children:o.map((_,A)=>{const U=i?.activePack===_.id,D=p===_.id;return u.jsxs("div",{onClick:()=>x(_.id),style:{...qe.packCard,...U?qe.packCardActive:{},...D?qe.packCardSelected:{},animationDelay:`${A*.1}s`},children:[u.jsxs("div",{style:qe.packHeader,children:[u.jsx("span",{style:qe.packEmoji,children:_.id==="student"?"🎓":_.id==="business"?"🏢":_.id==="developer"?"👨💻":"🏠"}),U&&u.jsxs("span",{style:qe.activeBadge,children:[u.jsx(hi,{size:12})," ",C?"Active":"सक्रिय"]})]}),u.jsx("h3",{style:qe.packName,children:C?_.name:_.nameHi||_.name}),u.jsx("p",{style:qe.packDesc,children:C?_.description:_.descriptionHi||_.description}),u.jsxs("div",{style:qe.packMeta,children:[u.jsxs("span",{style:qe.toolCount,children:[u.jsx(mi,{size:14})," ",_.toolCount," tools"]}),u.jsx(ol,{size:16,style:{color:"var(--text-muted)"}})]}),!U&&u.jsxs("button",{onClick:Z=>{Z.stopPropagation(),g(_.id)},style:qe.activateBtn,children:[u.jsx(Sn,{size:14})," ",C?"Activate":"एक्टिवेट करें"]})]},_.id)})}),u.jsxs("div",{style:qe.section,children:[u.jsxs("h2",{style:qe.sectionTitle,children:[u.jsx(mi,{size:20,style:{color:"var(--accent-primary)"}}),p?C?`Tools in ${p} pack`:`${p} पैक के टूल्स`:C?"All Available Tools":"सभी टूल्स"]}),u.jsx("div",{style:qe.toolsGrid,children:(p?v:s).map((_,A)=>{const U=tm[_.riskLevel]||tm.low;return u.jsxs("div",{style:{...qe.toolCard,animationDelay:`${A*.05}s`},children:[u.jsxs("div",{style:qe.toolHeader,children:[u.jsx("span",{style:qe.toolName,children:_.name}),u.jsx("span",{style:{...qe.riskBadge,background:U.bg,color:U.color},children:U.label})]}),u.jsx("p",{style:qe.toolDesc,children:C?_.description:_.descriptionHi||_.description}),u.jsx("div",{style:qe.toolMeta,children:u.jsxs("span",{style:qe.toolCategory,children:[_.category==="file"?"📁":_.category==="email"?"📧":_.category==="search"?"🔍":_.category==="calendar"?"📅":"🛠️"," ",_.category]})})]},_.name)})})]})]})}const qe={container:{padding:"28px 32px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},packsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"32px"},packCard:{padding:"22px",background:"var(--bg-secondary)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",cursor:"pointer",transition:"all var(--transition-normal)",animation:"fadeInUp 0.4s ease-out both"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.05)"},packCardSelected:{borderColor:"var(--accent-gold)",boxShadow:"0 0 16px rgba(245, 158, 11, 0.15)"},packHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},packEmoji:{fontSize:"2rem"},activeBadge:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600},packName:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px"},packDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"12px"},packMeta:{display:"flex",alignItems:"center",justifyContent:"space-between"},toolCount:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.8rem",color:"var(--text-muted)"},activateBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"10px",marginTop:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},section:{marginBottom:"20px"},sectionTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.1rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"16px",textTransform:"capitalize"},toolsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},toolCard:{padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",animation:"fadeIn 0.3s ease-out both",transition:"all var(--transition-fast)"},toolHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",flexWrap:"wrap",gap:"6px"},toolName:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)",fontFamily:"monospace"},riskBadge:{padding:"3px 8px",borderRadius:"var(--radius-full)",fontSize:"0.68rem",fontWeight:600},toolDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"4px"},toolMeta:{display:"flex",alignItems:"center",gap:"8px"},toolCategory:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"}},R2=[{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 E2({onLogin:i}){const[o,c]=E.useState(!1),[s,f]=E.useState({name:"",email:"",password:"",language:"hinglish",city:"",workType:"personal"}),[p,h]=E.useState(!1),[v,b]=E.useState(""),[y,x]=E.useState(!1),g=async _=>{_.preventDefault(),b(""),x(!0);try{const A=o?await sl.register(s):await sl.login({email:s.email,password:s.password});i(A.data.user,A.data.token)}catch(A){b(A.response?.data?.message||"Something went wrong")}finally{x(!1)}},C=async()=>{x(!0),b("");try{const _=await sl.demoLogin();i(_.data.user,_.data.token)}catch(_){b(_.response?.data?.message||"Demo login failed")}finally{x(!1)}};return u.jsxs("div",{style:re.container,children:[u.jsx("div",{style:re.bgOrb1}),u.jsx("div",{style:re.bgOrb2}),u.jsx("div",{style:re.bgOrb3}),u.jsxs("div",{style:re.content,children:[u.jsxs("div",{style:re.left,children:[u.jsxs("div",{style:re.logo,children:[u.jsx("span",{style:re.logoIcon,children:"भ"}),u.jsxs("div",{children:[u.jsx("h1",{style:re.logoText,children:"SamarthyaBot"}),u.jsx("p",{style:re.logoSub,children:"समर्थ्य बोट"})]})]}),u.jsxs("h2",{style:re.tagline,children:["Privacy-first Personal AI Operator",u.jsx("br",{}),u.jsx("span",{style:re.taglineHi,children:"भारतीय कार्यप्रवाह के लिए बनाया गया"})]}),u.jsx("div",{style:re.features,children:R2.map((_,A)=>u.jsxs("div",{style:{...re.featureCard,animationDelay:`${A*.1}s`},children:[u.jsx("span",{style:re.featureIcon,children:_.icon}),u.jsxs("div",{children:[u.jsx("div",{style:re.featureTitle,children:_.title}),u.jsx("div",{style:re.featureDesc,children:_.desc})]})]},A))})]}),u.jsx("div",{style:re.right,children:u.jsxs("div",{style:re.formCard,children:[u.jsxs("h3",{style:re.formTitle,children:[o?"Create Account":"Welcome Back"," ✨"]}),u.jsx("p",{style:re.formSubtitle,children:o?"Start your AI journey":"Login to continue your AI journey"}),v&&u.jsx("div",{style:re.error,children:v}),u.jsxs("form",{onSubmit:g,style:re.form,children:[o&&u.jsxs("div",{style:re.field,children:[u.jsx("label",{style:re.label,children:"Name"}),u.jsx("input",{style:re.input,type:"text",placeholder:"Aapka naam",value:s.name,onChange:_=>f({...s,name:_.target.value}),required:!0})]}),u.jsxs("div",{style:re.field,children:[u.jsx("label",{style:re.label,children:"Email"}),u.jsx("input",{style:re.input,type:"email",placeholder:"your@email.com",value:s.email,onChange:_=>f({...s,email:_.target.value}),required:!0})]}),u.jsxs("div",{style:re.field,children:[u.jsx("label",{style:re.label,children:"Password"}),u.jsxs("div",{style:re.passwordWrap,children:[u.jsx("input",{style:{...re.input,paddingRight:"44px"},type:p?"text":"password",placeholder:"••••••••",value:s.password,onChange:_=>f({...s,password:_.target.value}),required:!0}),u.jsx("button",{type:"button",onClick:()=>h(!p),style:re.eyeBtn,children:p?u.jsx(qv,{size:18}):u.jsx(Am,{size:18})})]})]}),o&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:re.field,children:[u.jsx("label",{style:re.label,children:"Language / भाषा"}),u.jsxs("select",{style:re.input,value:s.language,onChange:_=>f({...s,language:_.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:re.row,children:[u.jsxs("div",{style:{...re.field,flex:1},children:[u.jsx("label",{style:re.label,children:"City / शहर"}),u.jsx("input",{style:re.input,type:"text",placeholder:"Mumbai",value:s.city,onChange:_=>f({...s,city:_.target.value})})]}),u.jsxs("div",{style:{...re.field,flex:1},children:[u.jsx("label",{style:re.label,children:"Work Type"}),u.jsxs("select",{style:re.input,value:s.workType,onChange:_=>f({...s,workType:_.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:re.submitBtn,disabled:y,children:y?u.jsx("span",{style:re.spinner}):u.jsxs(u.Fragment,{children:[o?"Create Account":"Login"," ",u.jsx(Sn,{size:16})]})})]}),u.jsx("div",{style:re.divider,children:u.jsx("span",{children:"or"})}),u.jsxs("button",{onClick:C,style:re.demoBtn,disabled:y,children:[u.jsx(Cx,{size:16})," Quick Demo Login"]}),u.jsxs("p",{style:re.switchText,children:[o?"Already have an account?":"Don't have an account?"," ",u.jsx("button",{onClick:()=>{c(!o),b("")},style:re.switchBtn,children:o?"Login":"Register"})]})]})})]})]})}const re={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"}},am=[{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"}],vn=[{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"}],T2=[{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:"📱"}],A2=[{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 रेटिंग"}],C2=[{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 z2({onNavigateToLogin:i}){const[o,c]=E.useState(0),[s,f]=E.useState(new Set),[p,h]=E.useState(""),v=["File my GST","IRCTC ticket book karo","UPI link banao ₹500 ka","Mera Aadhaar safe rakh"],[b,y]=E.useState(0);E.useEffect(()=>{const g=v[b];let C=0;h("");const _=setInterval(()=>{C<=g.length?(h(g.substring(0,C)),C++):(clearInterval(_),setTimeout(()=>{y(A=>(A+1)%v.length)},2e3))},60);return()=>clearInterval(_)},[b]),E.useEffect(()=>{const g=new IntersectionObserver(C=>{C.forEach(_=>{_.isIntersecting&&f(A=>new Set([...A,_.target.id]))})},{threshold:.15});return document.querySelectorAll("[data-animate]").forEach(C=>g.observe(C)),()=>g.disconnect()},[]);const x=g=>s.has(g);return u.jsxs("div",{style:k.page,children:[u.jsx("nav",{style:k.nav,children:u.jsxs("div",{style:k.navInner,children:[u.jsxs("div",{style:k.navBrand,children:[u.jsx("span",{style:k.navLogo,children:"स"}),u.jsx("span",{style:k.navName,children:"SamarthyaBot"})]}),u.jsxs("div",{style:k.navLinks,children:[u.jsx("a",{href:"#features",style:k.navLink,children:"Features"}),u.jsx("a",{href:"#packs",style:k.navLink,children:"Tool Packs"}),u.jsx("a",{href:"#pricing",style:k.navLink,children:"Pricing"}),u.jsxs("button",{onClick:i,style:k.navCta,children:["Launch App ",u.jsx(jv,{size:16})]})]})]})}),u.jsxs("section",{style:k.hero,children:[u.jsx("div",{style:k.heroOrb1}),u.jsx("div",{style:k.heroOrb2}),u.jsx("div",{style:k.heroOrb3}),u.jsxs("div",{style:k.heroContent,children:[u.jsxs("div",{style:k.heroBadge,children:[u.jsx("span",{style:k.heroBadgeDot}),"🇮🇳 Privacy-first AI Operator — Built for India"]}),u.jsxs("h1",{style:k.heroTitle,children:["Your Personal AI Assistant",u.jsx("br",{}),u.jsx("span",{style:k.heroTitleAccent,children:"That Actually Understands India"})]}),u.jsxs("p",{style:k.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:k.terminal,children:[u.jsxs("div",{style:k.terminalHeader,children:[u.jsxs("div",{style:k.terminalDots,children:[u.jsx("span",{style:{...k.terminalDot,background:"#ef4444"}}),u.jsx("span",{style:{...k.terminalDot,background:"#f59e0b"}}),u.jsx("span",{style:{...k.terminalDot,background:"#138808"}})]}),u.jsx("span",{style:k.terminalTitle,children:"SamarthyaBot — Live Demo"})]}),u.jsxs("div",{style:k.terminalBody,children:[u.jsxs("div",{style:k.terminalLine,children:[u.jsx("span",{style:k.terminalPrompt,children:"You →"}),u.jsx("span",{style:k.terminalTyped,children:p}),u.jsx("span",{style:k.terminalCursor,children:"|"})]}),u.jsxs("div",{style:k.terminalResponse,children:[u.jsx("span",{style:k.terminalBot,children:"स Bot →"}),u.jsxs("span",{style:k.terminalText,children:[b===0&&"✅ GSTR-3B auto-filled! Deadline: 20th March. Reminder set.",b===1&&"🚆 Tatkal booked! PNR: 4521789036. Delhi→Mumbai Rajdhani 2A.",b===2&&"💳 UPI Link: upi://pay?am=500&cu=INR — GPay/PhonePe ready!",b===3&&"🔐 Aadhaar detected & masked: XXXX XXXX 9012. Safe mode ON."]})]})]})]}),u.jsxs("div",{style:k.heroCtas,children:[u.jsxs("button",{onClick:i,style:k.heroBtn,children:["Start Free ",u.jsx(Sn,{size:18})]}),u.jsxs("button",{style:k.heroBtn2,children:[u.jsx(px,{size:18})," Watch How It Works"]})]})]})]}),u.jsx("section",{style:k.trustBar,children:A2.map((g,C)=>u.jsxs("div",{style:k.trustItem,children:[u.jsx("span",{style:k.trustIcon,children:g.icon}),u.jsxs("div",{children:[u.jsx("div",{style:k.trustLabel,children:g.label}),u.jsx("div",{style:k.trustLabelHi,children:g.labelHi})]})]},C))}),u.jsx("section",{id:"features","data-animate":!0,style:{...k.section,opacity:x("features")?1:0,transform:x("features")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:k.sectionInner,children:[u.jsx("div",{style:k.sectionBadge,children:"✨ A Day with SamarthyaBot"}),u.jsx("h2",{style:k.sectionTitle,children:"One AI. Your Entire Day, Handled."}),u.jsx("p",{style:k.sectionSubtitle,children:"Subah se raat tak, har kaam automate — bilkul aapke tarike se."}),u.jsx("div",{style:k.timeline,children:am.map((g,C)=>u.jsxs("div",{style:k.timelineItem,children:[u.jsxs("div",{style:k.timelineLeft,children:[u.jsx("div",{style:{...k.timelineDot,background:g.color}}),C<am.length-1&&u.jsx("div",{style:k.timelineLine})]}),u.jsxs("div",{style:k.timelineCard,children:[u.jsxs("div",{style:k.timelineTime,children:[u.jsx(Tm,{size:13})," ",g.time]}),u.jsxs("div",{style:k.timelineEventTitle,children:[u.jsx("span",{style:k.timelineIcon,children:g.icon})," ",g.title]}),u.jsx("div",{style:k.timelineDesc,children:g.desc})]})]},C))})]})}),u.jsx("section",{id:"voice","data-animate":!0,style:{...k.section,background:"var(--bg-secondary)",opacity:x("voice")?1:0,transform:x("voice")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:k.sectionInner,children:[u.jsx("div",{style:k.sectionBadge,children:"🎤 Voice-First Design"}),u.jsx("h2",{style:k.sectionTitle,children:"Bolo, Mat Likho."}),u.jsx("p",{style:k.sectionSubtitle,children:"90% Indians prefer voice. SamarthyaBot Hindi aur Hinglish voice commands samajhta hai."}),u.jsxs("div",{style:k.voiceGrid,children:[u.jsxs("div",{style:k.voiceCard,children:[u.jsx("div",{style:k.voiceMicWrap,children:u.jsx("div",{style:k.voiceMic,children:u.jsx(Wu,{size:32,color:"#FF9933"})})}),u.jsx("h3",{style:k.voiceCardTitle,children:"🗣️ Voice Commands"}),u.jsx("p",{style:k.voiceCardDesc,children:'"GST ki deadline kab hai?" — Bolo aur kaam ho jaye'})]}),u.jsxs("div",{style:k.voiceCard,children:[u.jsx("div",{style:k.voiceFeatureIcon,children:"🌐"}),u.jsx("h3",{style:k.voiceCardTitle,children:"Offline Mode"}),u.jsx("p",{style:k.voiceCardDesc,children:"Internet nahi? No problem. Local Ollama se chalega."})]}),u.jsxs("div",{style:k.voiceCard,children:[u.jsx("div",{style:k.voiceFeatureIcon,children:"📱"}),u.jsx("h3",{style:k.voiceCardTitle,children:"WhatsApp Native"}),u.jsx("p",{style:k.voiceCardDesc,children:'WhatsApp pe bolo "Remind me" — bot sun lega.'})]}),u.jsxs("div",{style:k.voiceCard,children:[u.jsx("div",{style:k.voiceFeatureIcon,children:"👁️"}),u.jsx("h3",{style:k.voiceCardTitle,children:"Screen Understanding"}),u.jsx("p",{style:k.voiceCardDesc,children:"Screenshot bhejo, AI samajh ke action lega."})]})]})]})}),u.jsx("section",{id:"packs","data-animate":!0,style:{...k.section,opacity:x("packs")?1:0,transform:x("packs")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:k.sectionInner,children:[u.jsx("div",{style:k.sectionBadge,children:"🛠️ Verticalized Tool Packs"}),u.jsx("h2",{style:k.sectionTitle,children:"Choose Your Superpower"}),u.jsx("p",{style:k.sectionSubtitle,children:"Generic AI nahi. Aapke kaam ke liye specialized tools."}),u.jsx("div",{style:k.packsRow,children:vn.map((g,C)=>u.jsxs("button",{onClick:()=>c(C),style:{...k.packTab,...o===C?{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:k.packDetail,children:[u.jsxs("div",{style:k.packDetailLeft,children:[u.jsx("span",{style:k.packDetailIcon,children:vn[o].icon}),u.jsx("h3",{style:k.packDetailName,children:vn[o].name}),u.jsx("p",{style:k.packDetailNameHi,children:vn[o].nameHi})]}),u.jsx("div",{style:k.packDetailTools,children:vn[o].tools.map((g,C)=>u.jsxs("div",{style:{...k.packToolChip,borderColor:`${vn[o].color}40`,animationDelay:`${C*.08}s`},children:[u.jsx(hi,{size:14,color:vn[o].color})," ",g]},C))})]})]})}),u.jsx("section",{id:"compare","data-animate":!0,style:{...k.section,background:"var(--bg-secondary)",opacity:x("compare")?1:0,transform:x("compare")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:k.sectionInner,children:[u.jsx("div",{style:k.sectionBadge,children:"⚔️ Bold Comparison"}),u.jsx("h2",{style:k.sectionTitle,children:"Why SamarthyaBot vs Generic AI?"}),u.jsx("p",{style:k.sectionSubtitle,children:"India-specific problems need India-specific solutions."}),u.jsx("div",{style:k.compareGrid,children:T2.map((g,C)=>u.jsx("div",{style:k.compareCard,children:u.jsxs("div",{style:k.compareRow,children:[u.jsxs("div",{style:k.compareCompetitor,children:[u.jsxs("div",{style:k.compareName,children:[g.icon," ",g.competitor]}),u.jsx("p",{style:k.compareText,children:g.competitorResponse})]}),u.jsx("div",{style:k.compareVs,children:"VS"}),u.jsxs("div",{style:k.compareSamarthya,children:[u.jsxs("div",{style:k.compareName,children:[u.jsx("span",{style:k.compareSmLogo,children:"स"})," SamarthyaBot"]}),u.jsx("p",{style:k.compareTextWin,children:g.samarthyaResponse})]})]})},C))})]})}),u.jsx("section",{id:"pricing","data-animate":!0,style:{...k.section,opacity:x("pricing")?1:0,transform:x("pricing")?"translateY(0)":"translateY(30px)",transition:"all 0.8s ease-out"},children:u.jsxs("div",{style:k.sectionInner,children:[u.jsx("div",{style:k.sectionBadge,children:"💰 Indian Pricing"}),u.jsx("h2",{style:k.sectionTitle,children:"Simple, Transparent, in ₹ Rupees"}),u.jsx("p",{style:k.sectionSubtitle,children:"No dollar pricing. No hidden charges. UPI se pay karo."}),u.jsx("div",{style:k.pricingGrid,children:C2.map((g,C)=>u.jsxs("div",{style:{...k.pricingCard,...g.popular?k.pricingPopular:{}},children:[g.popular&&u.jsx("div",{style:k.popularBadge,children:"🔥 Most Popular"}),u.jsx("h3",{style:k.pricingName,children:g.name}),u.jsx("p",{style:k.pricingNameHi,children:g.nameHi}),u.jsxs("div",{style:k.pricingPrice,children:[u.jsx("span",{style:{...k.pricingAmount,color:g.color},children:g.price}),u.jsx("span",{style:k.pricingPeriod,children:g.period})]}),u.jsx("ul",{style:k.pricingFeatures,children:g.features.map((_,A)=>u.jsxs("li",{style:k.pricingFeature,children:[u.jsx(hi,{size:15,color:g.color})," ",_]},A))}),u.jsx("button",{style:{...k.pricingCta,...g.popular?{background:"var(--gradient-primary)",color:"#0D0D0D"}:{}},children:g.cta})]},C))}),u.jsxs("div",{style:k.paymentMethods,children:[u.jsx("span",{style:k.paymentLabel,children:"Payment Methods:"}),u.jsx("span",{style:k.paymentBadge,children:"UPI"}),u.jsx("span",{style:k.paymentBadge,children:"Credit Card"}),u.jsx("span",{style:k.paymentBadge,children:"Net Banking"}),u.jsx("span",{style:k.paymentBadge,children:"PhonePe"}),u.jsx("span",{style:k.paymentBadge,children:"GPay"})]})]})}),u.jsxs("section",{style:k.ctaSection,children:[u.jsx("div",{style:k.ctaOrb}),u.jsx("h2",{style:k.ctaTitle,children:"Ready to Supercharge Your Day?"}),u.jsx("p",{style:k.ctaSubtitle,children:"Aaj hi shuru karo. 100 free actions. No credit card needed."}),u.jsxs("button",{onClick:i,style:k.ctaBtn,children:["Start Free Now ",u.jsx(Sn,{size:20})]})]}),u.jsx("footer",{style:k.footer,children:u.jsxs("div",{style:k.footerInner,children:[u.jsxs("div",{style:k.footerBrand,children:[u.jsx("span",{style:k.footerLogo,children:"स"}),u.jsx("span",{style:k.footerName,children:"SamarthyaBot"})]}),u.jsx("p",{style:k.footerTagline,children:"Built with ❤️ in India"}),u.jsxs("div",{style:k.footerLinks,children:[u.jsx("a",{href:"#",style:k.footerLink,children:u.jsx(_x,{size:18})}),u.jsx("a",{href:"#",style:k.footerLink,children:u.jsx(nx,{size:18})}),u.jsx("a",{href:"#",style:k.footerLink,children:u.jsx(Iv,{size:18})})]}),u.jsx("p",{style:k.footerCopy,children:"© 2025 SamarthyaBot. All rights reserved."})]})})]})}const k={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)"}},Xr=[{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:""}]}],w2={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 D2({user:i}){const[o,c]=E.useState(Xr.reduce((y,x)=>({...y,[x.id]:!0}),{})),[s,f]=E.useState("all"),p=y=>{c(x=>({...x,[y]:!x[y]}))},h=Xr.map(y=>({...y,items:s==="all"?y.items:y.items.filter(x=>x.status===s)})).filter(y=>y.items.length>0),v=Xr.flatMap(y=>y.items).filter(y=>y.status==="live").length,b=Xr.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:v})," 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 (${v+b})`},{key:"live",label:`✅ Live (${v})`},{key:"coming",label:`🔜 Coming (${b})`}].map(y=>u.jsx("button",{onClick:()=>f(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(Mv,{size:20}):u.jsx(Dv,{size:20})]}),o[y.id]&&u.jsx("div",{style:Ee.grid,children:y.items.map((x,g)=>{const C=w2[x.status];return u.jsxs("div",{style:Ee.card,children:[u.jsxs("div",{style:Ee.cardTop,children:[u.jsx("span",{style:Ee.cardIcon,children:x.icon}),u.jsxs("div",{style:Ee.cardInfo,children:[u.jsx("h3",{style:Ee.cardName,children:x.name}),u.jsx("p",{style:Ee.cardNameHi,children:x.nameHi})]}),x.tag&&u.jsx("span",{style:{...Ee.tag,background:x.tag.includes("Real")?"rgba(19,136,8,0.3)":x.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:x.tag.includes("Real")?"#4ade80":x.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:x.tag})]}),u.jsx("p",{style:Ee.cardDesc,children:x.desc}),u.jsx("div",{style:{...Ee.statusBadge,background:C.bg,color:C.color},children:C.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"}},Vu={folder:{icon:Cm,color:"#FF9933"},txt:{icon:Zu,color:"#94a3b8"},md:{icon:Zu,color:"#60a5fa"},json:{icon:Yr,color:"#fbbf24"},js:{icon:Yr,color:"#fbbf24"},html:{icon:Yr,color:"#f97316"},css:{icon:Yr,color:"#38bdf8"},png:{icon:Uu,color:"#a78bfa"},jpg:{icon:Uu,color:"#a78bfa"},jpeg:{icon:Uu,color:"#a78bfa"},pdf:{icon:Oh,color:"#ef4444"},default:{icon:Oh,color:"#64748b"}};function _2(i){return i.type==="folder"?Vu.folder:Vu[i.extension]||Vu.default}function nm(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function O2(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 k2({user:i}){const[o,c]=E.useState([]),[s,f]=E.useState(""),[p,h]=E.useState(!1),[v,b]=E.useState(null),[y,x]=E.useState(null),[g,C]=E.useState(!1),[_,A]=E.useState(""),[U,D]=E.useState(""),Z=E.useRef(null);E.useEffect(()=>{P(),X()},[s]);const P=async()=>{h(!0),D("");try{const F=await gn.list(s);c(F.data.items||[])}catch(F){D(F.response?.data?.error||"Failed to load files"),c([])}finally{h(!1)}},X=async()=>{try{const F=await gn.getStats();b(F.data.stats)}catch{}},ne=F=>{F.type==="folder"?f(F.path):ve(F)},fe=()=>{const F=s.split("/");F.pop(),f(F.join("/"))},ve=async F=>{try{const pe=await gn.read(F.path);x(pe.data)}catch{D("Cannot preview this file")}},K=F=>{const pe=gn.download(F.path);window.open(pe,"_blank")},_e=async F=>{const pe=F.type==="folder"?`Delete folder "${F.name}" and all its contents?`:`Delete file "${F.name}"?`;if(window.confirm(pe))try{await gn.deleteFile(F.path),P(),X()}catch(Se){D(Se.response?.data?.error||"Delete failed")}},Me=async()=>{if(_.trim())try{await gn.mkdir(_.trim(),s),A(""),C(!1),P()}catch(F){D(F.response?.data?.error||"Failed to create folder")}},ot=async F=>{const pe=F.target.files?.[0];if(!pe)return;const Se=new FileReader;Se.onload=async()=>{try{await gn.upload(pe.name,Se.result,s),P(),X()}catch(Oe){D(Oe.response?.data?.error||"Upload failed")}},pe.type.startsWith("text/")||["application/json","application/javascript"].includes(pe.type)?Se.readAsText(pe):Se.readAsDataURL(pe),F.target.value=""},$e=["My Stuff",...s.split("/").filter(Boolean)];return u.jsxs("div",{style:me.container,children:[u.jsxs("div",{style:me.header,children:[u.jsxs("div",{style:me.headerLeft,children:[u.jsx(wm,{size:24,color:"#FF9933"}),u.jsx("h1",{style:me.title,children:"My Stuff"}),v&&u.jsxs("span",{style:me.statsTag,children:[v.fileCount," files · ",v.folderCount," folders · ",v.totalSizeFormatted]})]}),u.jsxs("div",{style:me.headerActions,children:[u.jsxs("button",{onClick:()=>C(!0),style:me.actionBtn,children:[u.jsx(kh,{size:16})," New Folder"]}),u.jsxs("button",{onClick:()=>Z.current?.click(),style:me.actionBtn,children:[u.jsx(kx,{size:16})," Upload"]}),u.jsx("button",{onClick:P,style:me.actionBtnIcon,children:u.jsx(gx,{size:16})}),u.jsx("input",{ref:Z,type:"file",onChange:ot,style:{display:"none"}})]})]}),u.jsx("div",{style:me.breadcrumb,children:$e.map((F,pe)=>u.jsxs(eo.Fragment,{children:[pe>0&&u.jsx(ol,{size:14,color:"#64748b"}),u.jsx("button",{onClick:()=>{if(pe===0)f("");else{const Se=s.split("/").slice(0,pe).join("/");f(Se)}},style:{...me.crumbItem,color:pe===$e.length-1?"#FF9933":"#94a3b8"},children:F})]},pe))}),g&&u.jsxs("div",{style:me.newFolderRow,children:[u.jsx(kh,{size:18,color:"#FF9933"}),u.jsx("input",{type:"text",value:_,onChange:F=>A(F.target.value),onKeyDown:F=>F.key==="Enter"&&Me(),placeholder:"Folder name...",style:me.newFolderInput,autoFocus:!0}),u.jsx("button",{onClick:Me,style:me.newFolderOk,children:"Create"}),u.jsx("button",{onClick:()=>{C(!1),A("")},style:me.newFolderCancel,children:u.jsx(Mh,{size:16})})]}),U&&u.jsxs("div",{style:me.error,children:["❌ ",U,u.jsx("button",{onClick:()=>D(""),style:me.errorClose,children:"×"})]}),s&&u.jsxs("button",{onClick:fe,style:me.backBtn,children:[u.jsx(bv,{size:16})," Back"]}),p?u.jsx("div",{style:me.loadingBox,children:"Loading..."}):o.length===0?u.jsxs("div",{style:me.emptyBox,children:[u.jsx(Cm,{size:48,color:"#333"}),u.jsx("p",{style:me.emptyText,children:"This folder is empty"}),u.jsx("p",{style:me.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):u.jsx("div",{style:me.fileGrid,children:o.map((F,pe)=>{const Se=_2(F),Oe=Se.icon;return u.jsxs("div",{style:me.fileCard,onDoubleClick:()=>ne(F),children:[u.jsxs("div",{style:me.fileCardTop,onClick:()=>ne(F),children:[u.jsx(Oe,{size:32,color:Se.color}),u.jsxs("div",{style:me.fileInfo,children:[u.jsx("span",{style:me.fileName,children:F.name}),u.jsxs("span",{style:me.fileMeta,children:[F.type==="folder"?"Folder":nm(F.size),F.modified&&` · ${O2(F.modified)}`]})]})]}),u.jsxs("div",{style:me.fileActions,children:[F.type==="file"&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>ve(F),style:me.fileActionBtn,title:"Preview",children:u.jsx(Am,{size:14})}),u.jsx("button",{onClick:()=>K(F),style:me.fileActionBtn,title:"Download",children:u.jsx(Uv,{size:14})})]}),u.jsx("button",{onClick:()=>_e(F),style:{...me.fileActionBtn,...me.deleteBtn},title:"Delete",children:u.jsx(Dm,{size:14})})]})]},pe)})}),y&&u.jsx("div",{style:me.modalOverlay,onClick:()=>x(null),children:u.jsxs("div",{style:me.modal,onClick:F=>F.stopPropagation(),children:[u.jsxs("div",{style:me.modalHeader,children:[u.jsxs("h3",{style:me.modalTitle,children:[u.jsx(Zu,{size:18,color:"#FF9933"}),y.name]}),u.jsxs("span",{style:me.modalMeta,children:[nm(y.size)," · ",y.extension?.toUpperCase()]}),u.jsx("button",{onClick:()=>x(null),style:me.modalClose,children:u.jsx(Mh,{size:20})})]}),u.jsx("pre",{style:me.previewContent,children:y.content})]})})]})}const me={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 B2(){const[i,o]=E.useState(null),[c,s]=E.useState(!0),[f,p]=E.useState(!0),[h,v]=E.useState(!1);E.useEffect(()=>{b()},[]);const b=async()=>{if(localStorage.getItem("samarthya_token"))try{const _=await sl.getProfile();o(_.data.user)}catch{localStorage.removeItem("samarthya_token")}s(!1)},y=(C,_)=>{localStorage.setItem("samarthya_token",_),o(C),v(!1)},x=()=>{localStorage.removeItem("samarthya_token"),o(null),v(!1)},g=C=>{o(C)};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(nv,{children:u.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[u.jsx(Lx,{user:i,isOpen:f,onToggle:()=>p(!f),onLogout:x}),u.jsx("main",{style:{flex:1,minHeight:"100vh"},children:u.jsxs(k1,{children:[u.jsx(na,{path:"/",element:u.jsx(x2,{user:i})}),u.jsx(na,{path:"/chat",element:u.jsx(Ph,{user:i})}),u.jsx(na,{path:"/chat/:id",element:u.jsx(Ph,{user:i})}),u.jsx(na,{path:"/settings",element:u.jsx(b2,{user:i,onUpdate:g})}),u.jsx(na,{path:"/audit",element:u.jsx(S2,{user:i})}),u.jsx(na,{path:"/tools",element:u.jsx(j2,{user:i})}),u.jsx(na,{path:"/integrations",element:u.jsx(D2,{user:i})}),u.jsx(na,{path:"/my-stuff",element:u.jsx(k2,{user:i})}),u.jsx(na,{path:"*",element:u.jsx(_1,{to:"/"})})]})})]})}):h?u.jsx(E2,{onLogin:y,onBack:()=>v(!1)}):u.jsx(z2,{onNavigateToLogin:()=>v(!0)})}Mg.createRoot(document.getElementById("root")).render(u.jsx(eo.StrictMode,{children:u.jsx(B2,{})}));
|