samarthya-bot 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +340 -353
  3. package/backend/bin/samarthya.js +29 -10
  4. package/backend/config/constants.js +4 -4
  5. package/backend/controllers/chatController.js +72 -0
  6. package/backend/controllers/telegramController.js +8 -0
  7. package/backend/package.json +1 -1
  8. package/backend/public/assets/index-DiMx9ERJ.css +1 -0
  9. package/backend/public/assets/index-Dn5WYZTH.js +32 -0
  10. package/backend/public/index.html +186 -16
  11. package/backend/public/robots.txt +32 -0
  12. package/backend/public/sitemap.xml +39 -0
  13. package/backend/services/agent/commandService.js +168 -0
  14. package/backend/services/llm/llmService.js +8 -0
  15. package/backend/services/planner/plannerService.js +17 -0
  16. package/backend/services/security/sandboxService.js +11 -4
  17. package/backend/services/system/platform.js +150 -0
  18. package/backend/services/tools/toolRegistry.js +521 -36
  19. package/backend/services/worker/workerClient.js +141 -29
  20. package/package.json +1 -1
  21. package/backend/public/assets/index-6PCzI3K2.js +0 -40
  22. package/backend/public/assets/index-6TF5jVRQ.js +0 -149
  23. package/backend/public/assets/index-B0U7rt6f.js +0 -46
  24. package/backend/public/assets/index-BF0RZh9i.js +0 -149
  25. package/backend/public/assets/index-BFRAq8Y1.js +0 -149
  26. package/backend/public/assets/index-CGw8cc8z.js +0 -149
  27. package/backend/public/assets/index-Ckf0GO1B.css +0 -1
  28. package/backend/public/assets/index-Cx0Ei-z7.js +0 -149
  29. package/backend/public/assets/index-DIPdcLv-.js +0 -25
  30. package/backend/public/assets/index-Da1E-MYB.js +0 -53
  31. package/backend/public/assets/index-DdCKkq38.js +0 -149
  32. package/backend/public/assets/index-Do4jNsZS.js +0 -19
  33. package/backend/public/assets/index-DyjpBYmS.js +0 -51
  34. package/backend/public/assets/index-DzlXcaXT.js +0 -149
  35. package/backend/public/assets/index-J7XSVHCz.css +0 -1
  36. package/backend/public/assets/index-Ui-pyZvK.js +0 -25
  37. package/backend/public/assets/index-kzffNwzo.js +0 -149
@@ -0,0 +1,32 @@
1
+ (function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();function cm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var js={exports:{}},ni={};var xp;function Cg(){if(xp)return ni;xp=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,c,h){var p=null;if(h!==void 0&&(p=""+h),c.key!==void 0&&(p=""+c.key),"key"in c){h={};for(var g in c)g!=="key"&&(h[g]=c[g])}else h=c;return c=h.ref,{$$typeof:i,type:o,key:p,ref:c!==void 0?c:null,props:h}}return ni.Fragment=u,ni.jsx=s,ni.jsxs=s,ni}var bp;function _g(){return bp||(bp=1,js.exports=Cg()),js.exports}var d=_g(),Cs={exports:{}},oe={};var Sp;function wg(){if(Sp)return oe;Sp=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function k(S){return S===null||typeof S!="object"?null:(S=N&&S[N]||S["@@iterator"],typeof S=="function"?S:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,_={};function Q(S,M,G){this.props=S,this.context=M,this.refs=_,this.updater=G||z}Q.prototype.isReactComponent={},Q.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")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Y(){}Y.prototype=Q.prototype;function V(S,M,G){this.props=S,this.context=M,this.refs=_,this.updater=G||z}var ae=V.prototype=new Y;ae.constructor=V,H(ae,Q.prototype),ae.isPureReactComponent=!0;var re=Array.isArray;function me(){}var F={H:null,A:null,T:null,S:null},_e=Object.prototype.hasOwnProperty;function De(S,M,G){var X=G.ref;return{$$typeof:i,type:S,key:M,ref:X!==void 0?X:null,props:G}}function it(S,M){return De(S.type,M,S.props)}function $e(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function K(S){var M={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return M[G]})}var ce=/\/+/g;function ve(S,M){return typeof S=="object"&&S!==null&&S.key!=null?K(""+S.key):M.toString(36)}function we(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(me,me):(S.status="pending",S.then(function(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 O(S,M,G,X,I){var ue=typeof S;(ue==="undefined"||ue==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(ue){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case i:case u:Te=!0;break;case b:return Te=S._init,O(Te(S._payload),M,G,X,I)}}if(Te)return I=I(S),Te=X===""?"."+ve(S,0):X,re(I)?(G="",Te!=null&&(G=Te.replace(ce,"$&/")+"/"),O(I,M,G,"",function(cl){return cl})):I!=null&&($e(I)&&(I=it(I,G+(I.key==null||S&&S.key===I.key?"":(""+I.key).replace(ce,"$&/")+"/")+Te)),M.push(I)),1;Te=0;var rt=X===""?".":X+":";if(re(S))for(var Ze=0;Ze<S.length;Ze++)X=S[Ze],ue=rt+ve(X,Ze),Te+=O(X,M,G,ue,I);else if(Ze=k(S),typeof Ze=="function")for(S=Ze.call(S),Ze=0;!(X=S.next()).done;)X=X.value,ue=rt+ve(X,Ze++),Te+=O(X,M,G,ue,I);else if(ue==="object"){if(typeof S.then=="function")return O(we(S),M,G,X,I);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 Te}function Z(S,M,G){if(S==null)return S;var X=[],I=0;return O(S,X,"","",function(ue){return M.call(G,ue,I++)}),X}function ee(S){if(S._status===-1){var M=S._result;M=M(),M.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=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)},J={map:Z,forEach:function(S,M,G){Z(S,function(){M.apply(this,arguments)},G)},count:function(S){var M=0;return Z(S,function(){M++}),M},toArray:function(S){return Z(S,function(M){return M})||[]},only:function(S){if(!$e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return oe.Activity=v,oe.Children=J,oe.Component=Q,oe.Fragment=s,oe.Profiler=c,oe.PureComponent=V,oe.StrictMode=o,oe.Suspense=x,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,oe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},oe.cache=function(S){return function(){return S.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(S,M,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var X=H({},S.props),I=S.key;if(M!=null)for(ue in M.key!==void 0&&(I=""+M.key),M)!_e.call(M,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&M.ref===void 0||(X[ue]=M[ue]);var ue=arguments.length-2;if(ue===1)X.children=G;else if(1<ue){for(var Te=Array(ue),rt=0;rt<ue;rt++)Te[rt]=arguments[rt+2];X.children=Te}return De(S.type,I,X)},oe.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},oe.createElement=function(S,M,G){var X,I={},ue=null;if(M!=null)for(X in M.key!==void 0&&(ue=""+M.key),M)_e.call(M,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(I[X]=M[X]);var Te=arguments.length-2;if(Te===1)I.children=G;else if(1<Te){for(var rt=Array(Te),Ze=0;Ze<Te;Ze++)rt[Ze]=arguments[Ze+2];I.children=rt}if(S&&S.defaultProps)for(X in Te=S.defaultProps,Te)I[X]===void 0&&(I[X]=Te[X]);return De(S,ue,I)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(S){return{$$typeof:g,render:S}},oe.isValidElement=$e,oe.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ee}},oe.memo=function(S,M){return{$$typeof:y,type:S,compare:M===void 0?null:M}},oe.startTransition=function(S){var M=F.T,G={};F.T=G;try{var X=S(),I=F.S;I!==null&&I(G,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(me,Ae)}catch(ue){Ae(ue)}finally{M!==null&&G.types!==null&&(M.types=G.types),F.T=M}},oe.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},oe.use=function(S){return F.H.use(S)},oe.useActionState=function(S,M,G){return F.H.useActionState(S,M,G)},oe.useCallback=function(S,M){return F.H.useCallback(S,M)},oe.useContext=function(S){return F.H.useContext(S)},oe.useDebugValue=function(){},oe.useDeferredValue=function(S,M){return F.H.useDeferredValue(S,M)},oe.useEffect=function(S,M){return F.H.useEffect(S,M)},oe.useEffectEvent=function(S){return F.H.useEffectEvent(S)},oe.useId=function(){return F.H.useId()},oe.useImperativeHandle=function(S,M,G){return F.H.useImperativeHandle(S,M,G)},oe.useInsertionEffect=function(S,M){return F.H.useInsertionEffect(S,M)},oe.useLayoutEffect=function(S,M){return F.H.useLayoutEffect(S,M)},oe.useMemo=function(S,M){return F.H.useMemo(S,M)},oe.useOptimistic=function(S,M){return F.H.useOptimistic(S,M)},oe.useReducer=function(S,M,G){return F.H.useReducer(S,M,G)},oe.useRef=function(S){return F.H.useRef(S)},oe.useState=function(S){return F.H.useState(S)},oe.useSyncExternalStore=function(S,M,G){return F.H.useSyncExternalStore(S,M,G)},oe.useTransition=function(){return F.H.useTransition()},oe.version="19.2.4",oe}var Ep;function nc(){return Ep||(Ep=1,Cs.exports=wg()),Cs.exports}var T=nc();const Wr=cm(T);var _s={exports:{}},li={},ws={exports:{}},Os={};var Rp;function Og(){return Rp||(Rp=1,(function(i){function u(O,Z){var ee=O.length;O.push(Z);e:for(;0<ee;){var Ae=ee-1>>>1,J=O[Ae];if(0<c(J,Z))O[Ae]=Z,O[ee]=J,ee=Ae;else break e}}function s(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Z=O[0],ee=O.pop();if(ee!==Z){O[0]=ee;e:for(var Ae=0,J=O.length,S=J>>>1;Ae<S;){var M=2*(Ae+1)-1,G=O[M],X=M+1,I=O[X];if(0>c(G,ee))X<J&&0>c(I,G)?(O[Ae]=I,O[X]=ee,Ae=X):(O[Ae]=G,O[M]=ee,Ae=M);else if(X<J&&0>c(I,ee))O[Ae]=I,O[X]=ee,Ae=X;else break e}}return Z}function c(O,Z){var ee=O.sortIndex-Z.sortIndex;return ee!==0?ee:O.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();i.unstable_now=function(){return p.now()-g}}var x=[],y=[],b=1,v=null,N=3,k=!1,z=!1,H=!1,_=!1,Q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ae(O){for(var Z=s(y);Z!==null;){if(Z.callback===null)o(y);else if(Z.startTime<=O)o(y),Z.sortIndex=Z.expirationTime,u(x,Z);else break;Z=s(y)}}function re(O){if(H=!1,ae(O),!z)if(s(x)!==null)z=!0,me||(me=!0,K());else{var Z=s(y);Z!==null&&we(re,Z.startTime-O)}}var me=!1,F=-1,_e=5,De=-1;function it(){return _?!0:!(i.unstable_now()-De<_e)}function $e(){if(_=!1,me){var O=i.unstable_now();De=O;var Z=!0;try{e:{z=!1,H&&(H=!1,Y(F),F=-1),k=!0;var ee=N;try{t:{for(ae(O),v=s(x);v!==null&&!(v.expirationTime>O&&it());){var Ae=v.callback;if(typeof Ae=="function"){v.callback=null,N=v.priorityLevel;var J=Ae(v.expirationTime<=O);if(O=i.unstable_now(),typeof J=="function"){v.callback=J,ae(O),Z=!0;break t}v===s(x)&&o(x),ae(O)}else o(x);v=s(x)}if(v!==null)Z=!0;else{var S=s(y);S!==null&&we(re,S.startTime-O),Z=!1}}break e}finally{v=null,N=ee,k=!1}Z=void 0}}finally{Z?K():me=!1}}}var K;if(typeof V=="function")K=function(){V($e)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ve=ce.port2;ce.port1.onmessage=$e,K=function(){ve.postMessage(null)}}else K=function(){Q($e,0)};function we(O,Z){F=Q(function(){O(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_e=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(O){switch(N){case 1:case 2:case 3:var Z=3;break;default:Z=N}var ee=N;N=Z;try{return O()}finally{N=ee}},i.unstable_requestPaint=function(){_=!0},i.unstable_runWithPriority=function(O,Z){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ee=N;N=O;try{return Z()}finally{N=ee}},i.unstable_scheduleCallback=function(O,Z,ee){var Ae=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ae+ee:Ae):ee=Ae,O){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ee+J,O={id:b++,callback:Z,priorityLevel:O,startTime:ee,expirationTime:J,sortIndex:-1},ee>Ae?(O.sortIndex=ee,u(y,O),s(x)===null&&O===s(y)&&(H?(Y(F),F=-1):H=!0,we(re,ee-Ae))):(O.sortIndex=J,u(x,O),z||k||(z=!0,me||(me=!0,K()))),O},i.unstable_shouldYield=it,i.unstable_wrapCallback=function(O){var Z=N;return function(){var ee=N;N=Z;try{return O.apply(this,arguments)}finally{N=ee}}}})(Os)),Os}var Ap;function Mg(){return Ap||(Ap=1,ws.exports=Og()),ws.exports}var Ms={exports:{}},dt={};var Tp;function Dg(){if(Tp)return dt;Tp=1;var i=nc();function u(x){var y="https://react.dev/errors/"+x;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+x+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(x,y,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:x,containerInfo:y,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,dt.createPortal=function(x,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return h(x,y,null,b)},dt.flushSync=function(x){var y=p.T,b=o.p;try{if(p.T=null,o.p=2,x)return x()}finally{p.T=y,o.p=b,o.d.f()}},dt.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(x,y))},dt.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},dt.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin),N=typeof y.integrity=="string"?y.integrity:void 0,k=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?o.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:k}):b==="script"&&o.d.X(x,{crossOrigin:v,integrity:N,fetchPriority:k,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dt.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);o.d.M(x,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(x)},dt.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin);o.d.L(x,b,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},dt.preloadModule=function(x,y){if(typeof x=="string")if(y){var b=g(y.as,y.crossOrigin);o.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(x)},dt.requestFormReset=function(x){o.d.r(x)},dt.unstable_batchedUpdates=function(x,y){return x(y)},dt.useFormState=function(x,y,b){return p.H.useFormState(x,y,b)},dt.useFormStatus=function(){return p.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var zp;function Ng(){if(zp)return Ms.exports;zp=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(u){console.error(u)}}return i(),Ms.exports=Dg(),Ms.exports}var jp;function Bg(){if(jp)return li;jp=1;var i=Mg(),u=nc(),s=Ng();function o(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(h(e)!==e)throw Error(o(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return x(l),e;if(r===n)return x(l),t;r=r.sibling}throw Error(o(188))}if(a.return!==n.return)a=l,n=r;else{for(var f=!1,m=l.child;m;){if(m===a){f=!0,a=l,n=r;break}if(m===n){f=!0,n=l,a=r;break}m=m.sibling}if(!f){for(m=r.child;m;){if(m===a){f=!0,a=r,n=l;break}if(m===n){f=!0,n=r,a=l;break}m=m.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,N=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),$e=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=$e&&e[$e]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case Q:return"Profiler";case _:return"StrictMode";case re:return"Suspense";case me:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case V:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var we=Array.isArray,O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ae=[],J=-1;function S(e){return{current:e}}function M(e){0>J||(e.current=Ae[J],Ae[J]=null,J--)}function G(e,t){J++,Ae[J]=e.current,e.current=t}var X=S(null),I=S(null),ue=S(null),Te=S(null);function rt(e,t){switch(G(ue,t),G(I,e),G(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yh(t),e=Vh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(X),G(X,e)}function Ze(){M(X),M(I),M(ue)}function cl(e){e.memoizedState!==null&&G(Te,e);var t=X.current,a=Vh(t,e.type);t!==a&&(G(I,e),G(X,a))}function vi(e){I.current===e&&(M(X),M(I)),Te.current===e&&(M(Te),Pl._currentValue=ee)}var ou,gc;function Wa(e){if(ou===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ou=t&&t[1]||"",gc=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+ou+e+gc}var su=!1;function cu(e,t){if(!e||su)return"";su=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(B){var w=B}Reflect.construct(e,[],q)}else{try{q.call()}catch(B){w=B}e.call(q.prototype)}}else{try{throw Error()}catch(B){w=B}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(B){if(B&&w&&typeof B.stack=="string")return[B.stack,w.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),f=r[0],m=r[1];if(f&&m){var E=f.split(`
4
+ `),C=m.split(`
5
+ `);for(l=n=0;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;for(;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;if(n===E.length||l===C.length)for(n=E.length-1,l=C.length-1;1<=n&&0<=l&&E[n]!==C[l];)l--;for(;1<=n&&0<=l;n--,l--)if(E[n]!==C[l]){if(n!==1||l!==1)do if(n--,l--,0>l||E[n]!==C[l]){var U=`
6
+ `+E[n].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=n&&0<=l);break}}}finally{su=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function i0(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return cu(e.type,!1);case 11:return cu(e.type.render,!1);case 1:return cu(e.type,!0);case 31:return Wa("Activity");default:return""}}function vc(e){try{var t="",a=null;do t+=i0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var fu=Object.prototype.hasOwnProperty,du=i.unstable_scheduleCallback,hu=i.unstable_cancelCallback,r0=i.unstable_shouldYield,u0=i.unstable_requestPaint,Tt=i.unstable_now,o0=i.unstable_getCurrentPriorityLevel,xc=i.unstable_ImmediatePriority,bc=i.unstable_UserBlockingPriority,xi=i.unstable_NormalPriority,s0=i.unstable_LowPriority,Sc=i.unstable_IdlePriority,c0=i.log,f0=i.unstable_setDisableYieldValue,fl=null,zt=null;function Ta(e){if(typeof c0=="function"&&f0(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(fl,e)}catch{}}var jt=Math.clz32?Math.clz32:p0,d0=Math.log,h0=Math.LN2;function p0(e){return e>>>=0,e===0?32:31-(d0(e)/h0|0)|0}var bi=256,Si=262144,Ei=4194304;function Ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ri(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?l=Ia(n):(f&=m,f!==0?l=Ia(f):a||(a=m&~e,a!==0&&(l=Ia(a))))):(m=n&~r,m!==0?l=Ia(m):f!==0?l=Ia(f):a||(a=n&~e,a!==0&&(l=Ia(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function dl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function m0(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 Ec(){var e=Ei;return Ei<<=1,(Ei&62914560)===0&&(Ei=4194304),e}function pu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function y0(e,t,a,n,l,r){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,E=e.expirationTimes,C=e.hiddenUpdates;for(a=f&~a;0<a;){var U=31-jt(a),q=1<<U;m[U]=0,E[U]=-1;var w=C[U];if(w!==null)for(C[U]=null,U=0;U<w.length;U++){var B=w[U];B!==null&&(B.lane&=-536870913)}a&=~q}n!==0&&Rc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(f&~t))}function Rc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-jt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Ac(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-jt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function Tc(e,t){var a=t&-t;return a=(a&42)!==0?1:mu(a),(a&(e.suspendedLanes|t))!==0?0:a}function mu(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 yu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zc(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function jc(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var za=Math.random().toString(36).slice(2),ut="__reactFiber$"+za,mt="__reactProps$"+za,Sn="__reactContainer$"+za,gu="__reactEvents$"+za,g0="__reactListeners$"+za,v0="__reactHandles$"+za,Cc="__reactResources$"+za,pl="__reactMarker$"+za;function vu(e){delete e[ut],delete e[mt],delete e[gu],delete e[g0],delete e[v0]}function En(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Sn]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=$h(e);e!==null;){if(a=e[ut])return a;e=$h(e)}return t}e=a,a=e.parentNode}return null}function Rn(e){if(e=e[ut]||e[Sn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ml(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function An(e){var t=e[Cc];return t||(t=e[Cc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[pl]=!0}var _c=new Set,wc={};function Pa(e,t){Tn(e,t),Tn(e+"Capture",t)}function Tn(e,t){for(wc[e]=t,e=0;e<t.length;e++)_c.add(t[e])}var x0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Oc={},Mc={};function b0(e){return fu.call(Mc,e)?!0:fu.call(Oc,e)?!1:x0.test(e)?Mc[e]=!0:(Oc[e]=!0,!1)}function Ai(e,t,a){if(b0(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 Ti(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ra(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S0(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xu(e){if(!e._valueTracker){var t=Dc(e)?"checked":"value";e._valueTracker=S0(e,t,""+e[t])}}function Nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Dc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function zi(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 E0=/[\n"\\]/g;function Ut(e){return e.replace(E0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bu(e,t,a,n,l,r,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Su(e,f,Ht(t)):a!=null?Su(e,f,Ht(a)):n!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Ht(m):e.removeAttribute("name")}function Bc(e,t,a,n,l,r,f,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){xu(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),xu(e)}function Su(e,t,a){t==="number"&&zi(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 Hc(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 Uc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(we(n)){if(1<n.length)throw Error(o(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),xu(e)}function jn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var R0=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 kc(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||R0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Lc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(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&&kc(e,l,n)}else for(var r in t)t.hasOwnProperty(r)&&kc(e,r,t[r])}function Eu(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 A0=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"]]),T0=/^[\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 ji(e){return T0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var Ru=null;function Au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cn=null,_n=null;function qc(e){var t=Rn(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(bu(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[mt]||null;if(!l)throw Error(o(90));bu(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&&Nc(n)}break e;case"textarea":Hc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zn(e,!!a.multiple,t,!1)}}}var Tu=!1;function Gc(e,t,a){if(Tu)return e(t,a);Tu=!0;try{var n=e(t);return n}finally{if(Tu=!1,(Cn!==null||_n!==null)&&(pr(),Cn&&(t=Cn,e=_n,_n=Cn=null,qc(t),e)))for(t=0;t<e.length;t++)qc(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[mt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zu=!1;if(oa)try{var gl={};Object.defineProperty(gl,"passive",{get:function(){zu=!0}}),window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{zu=!1}var ja=null,ju=null,Ci=null;function Yc(){if(Ci)return Ci;var e,t=ju,a=t.length,n,l="value"in ja?ja.value:ja.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===l[r-n];n++);return Ci=l.slice(e,1<n?1-n:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wi(){return!0}function Vc(){return!1}function yt(e){function t(a,n,l,r,f){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?wi:Vc,this.isPropagationStopped=Vc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oi=yt(en),vl=v({},en,{view:0,detail:0}),z0=yt(vl),Cu,_u,xl,Mi=v({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xl&&(xl&&e.type==="mousemove"?(Cu=e.screenX-xl.screenX,_u=e.screenY-xl.screenY):_u=Cu=0,xl=e),Cu)},movementY:function(e){return"movementY"in e?e.movementY:_u}}),Xc=yt(Mi),j0=v({},Mi,{dataTransfer:0}),C0=yt(j0),_0=v({},vl,{relatedTarget:0}),wu=yt(_0),w0=v({},en,{animationName:0,elapsedTime:0,pseudoElement:0}),O0=yt(w0),M0=v({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D0=yt(M0),N0=v({},en,{data:0}),Qc=yt(N0),B0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H0={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"},U0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U0[e])?!!t[e]:!1}function Ou(){return k0}var L0=v({},vl,{key:function(e){if(e.key){var t=B0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q0=yt(L0),G0=v({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zc=yt(G0),Y0=v({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),V0=yt(Y0),X0=v({},en,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q0=yt(X0),Z0=v({},Mi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),K0=yt(Z0),J0=v({},en,{newState:0,oldState:0}),F0=yt(J0),$0=[9,13,27,32],Mu=oa&&"CompositionEvent"in window,bl=null;oa&&"documentMode"in document&&(bl=document.documentMode);var W0=oa&&"TextEvent"in window&&!bl,Kc=oa&&(!Mu||bl&&8<bl&&11>=bl),Jc=" ",Fc=!1;function $c(e,t){switch(e){case"keyup":return $0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function I0(e,t){switch(e){case"compositionend":return Wc(t);case"keypress":return t.which!==32?null:(Fc=!0,Jc);case"textInput":return e=t.data,e===Jc&&Fc?null:e;default:return null}}function P0(e,t){if(wn)return e==="compositionend"||!Mu&&$c(e,t)?(e=Yc(),Ci=ju=ja=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kc&&t.locale!=="ko"?null:t.data;default:return null}}var ey={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 Ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ey[e.type]:t==="textarea"}function Pc(e,t,a,n){Cn?_n?_n.push(n):_n=[n]:Cn=n,t=Sr(t,"onChange"),0<t.length&&(a=new Oi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Sl=null,El=null;function ty(e){Hh(e,0)}function Di(e){var t=ml(e);if(Nc(t))return e}function ef(e,t){if(e==="change")return t}var tf=!1;if(oa){var Du;if(oa){var Nu="oninput"in document;if(!Nu){var af=document.createElement("div");af.setAttribute("oninput","return;"),Nu=typeof af.oninput=="function"}Du=Nu}else Du=!1;tf=Du&&(!document.documentMode||9<document.documentMode)}function nf(){Sl&&(Sl.detachEvent("onpropertychange",lf),El=Sl=null)}function lf(e){if(e.propertyName==="value"&&Di(El)){var t=[];Pc(t,El,e,Au(e)),Gc(ty,t)}}function ay(e,t,a){e==="focusin"?(nf(),Sl=t,El=a,Sl.attachEvent("onpropertychange",lf)):e==="focusout"&&nf()}function ny(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Di(El)}function ly(e,t){if(e==="click")return Di(t)}function iy(e,t){if(e==="input"||e==="change")return Di(t)}function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:ry;function Rl(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!fu.call(t,l)||!Ct(e[l],t[l]))return!1}return!0}function rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uf(e,t){var a=rf(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=rf(a)}}function of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zi(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=zi(e.document)}return t}function Bu(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 uy=oa&&"documentMode"in document&&11>=document.documentMode,On=null,Hu=null,Al=null,Uu=!1;function cf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uu||On==null||On!==zi(n)||(n=On,"selectionStart"in n&&Bu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Al&&Rl(Al,n)||(Al=n,n=Sr(Hu,"onSelect"),0<n.length&&(t=new Oi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=On)))}function tn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Mn={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")},ku={},ff={};oa&&(ff=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function an(e){if(ku[e])return ku[e];if(!Mn[e])return e;var t=Mn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ff)return ku[e]=t[a];return e}var df=an("animationend"),hf=an("animationiteration"),pf=an("animationstart"),oy=an("transitionrun"),sy=an("transitionstart"),cy=an("transitioncancel"),mf=an("transitionend"),yf=new Map,Lu="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(" ");Lu.push("scrollEnd");function Kt(e,t){yf.set(e,t),Pa(t,[e])}var Ni=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kt=[],Dn=0,qu=0;function Bi(){for(var e=Dn,t=qu=Dn=0;t<e;){var a=kt[t];kt[t++]=null;var n=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var r=kt[t];if(kt[t++]=null,n!==null&&l!==null){var f=n.pending;f===null?l.next=l:(l.next=f.next,f.next=l),n.pending=l}r!==0&&gf(a,l,r)}}function Hi(e,t,a,n){kt[Dn++]=e,kt[Dn++]=t,kt[Dn++]=a,kt[Dn++]=n,qu|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Gu(e,t,a,n){return Hi(e,t,a,n),Ui(e)}function nn(e,t){return Hi(e,null,null,t),Ui(e)}function gf(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-jt(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Ui(e){if(50<Zl)throw Zl=0,Wo=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Nn={};function fy(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,a,n){return new fy(e,t,a,n)}function Yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=_t(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function vf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,a,n,l,r){var f=0;if(n=e,typeof e=="function")Yu(e)&&(f=1);else if(typeof e=="string")f=yg(e,a,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=_t(31,a,t,l),e.elementType=De,e.lanes=r,e;case H:return ln(a.children,l,r,t);case _:f=8,l|=24;break;case Q:return e=_t(12,a,t,l|2),e.elementType=Q,e.lanes=r,e;case re:return e=_t(13,a,t,l),e.elementType=re,e.lanes=r,e;case me:return e=_t(19,a,t,l),e.elementType=me,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:f=10;break e;case Y:f=9;break e;case ae:f=11;break e;case F:f=14;break e;case _e:f=16,n=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=_t(f,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function ln(e,t,a,n){return e=_t(7,e,n,t),e.lanes=a,e}function Vu(e,t,a){return e=_t(6,e,null,t),e.lanes=a,e}function xf(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Xu(e,t,a){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bf=new WeakMap;function Lt(e,t){if(typeof e=="object"&&e!==null){var a=bf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vc(t)},bf.set(e,t),t)}return{value:e,source:t,stack:vc(t)}}var Bn=[],Hn=0,Li=null,Tl=0,qt=[],Gt=0,Ca=null,ea=1,ta="";function ca(e,t){Bn[Hn++]=Tl,Bn[Hn++]=Li,Li=e,Tl=t}function Sf(e,t,a){qt[Gt++]=ea,qt[Gt++]=ta,qt[Gt++]=Ca,Ca=e;var n=ea;e=ta;var l=32-jt(n)-1;n&=~(1<<l),a+=1;var r=32-jt(t)+l;if(30<r){var f=l-l%5;r=(n&(1<<f)-1).toString(32),n>>=f,l-=f,ea=1<<32-jt(t)+l|a<<l|n,ta=r+e}else ea=1<<r|a<<l|n,ta=e}function Qu(e){e.return!==null&&(ca(e,1),Sf(e,1,0))}function Zu(e){for(;e===Li;)Li=Bn[--Hn],Bn[Hn]=null,Tl=Bn[--Hn],Bn[Hn]=null;for(;e===Ca;)Ca=qt[--Gt],qt[Gt]=null,ta=qt[--Gt],qt[Gt]=null,ea=qt[--Gt],qt[Gt]=null}function Ef(e,t){qt[Gt++]=ea,qt[Gt++]=ta,qt[Gt++]=Ca,ea=t.id,ta=t.overflow,Ca=e}var ot=null,qe=null,Re=!1,_a=null,Yt=!1,Ku=Error(o(519));function wa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zl(Lt(t,e)),Ku}function Rf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ut]=e,t[mt]=n,a){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)ge(Jl[a],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),Bc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),Uc(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||qh(t.textContent,a)?(n.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),n.onScroll!=null&&ge("scroll",t),n.onScrollEnd!=null&&ge("scrollend",t),n.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||wa(e,!0)}function Af(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ot=ot.return}}function Un(e){if(e!==ot)return!1;if(!Re)return Af(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ds(e.type,e.memoizedProps)),a=!a),a&&qe&&wa(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=Fh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=Fh(e)}else t===27?(t=qe,Xa(e.type)?(e=gs,gs=null,qe=e):qe=t):qe=ot?Xt(e.stateNode.nextSibling):null;return!0}function rn(){qe=ot=null,Re=!1}function Ju(){var e=_a;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),_a=null),e}function zl(e){_a===null?_a=[e]:_a.push(e)}var Fu=S(null),un=null,fa=null;function Oa(e,t,a){G(Fu,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Fu.current,M(Fu)}function $u(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 Wu(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var f=l.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=l;for(var E=0;E<t.length;E++)if(m.context===t[E]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),$u(r.return,a,e),n||(f=null);break e}r=m.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error(o(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),$u(f,a,e),f=null}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===e){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function kn(e,t,a,n){e=null;for(var l=t,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var f=l.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var m=l.type;Ct(l.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(l===Te.current){if(f=l.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}l=l.return}e!==null&&Wu(t,e,a,n),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){un=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Tf(un,e)}function Gi(e,t){return un===null&&on(e),Tf(e,t)}function Tf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fa===null){if(e===null)throw Error(o(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return a}var dy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},hy=i.unstable_scheduleCallback,py=i.unstable_NormalPriority,We={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Iu(){return{controller:new dy,data:new Map,refCount:0}}function jl(e){e.refCount--,e.refCount===0&&hy(py,function(){e.controller.abort()})}var Cl=null,Pu=0,Ln=0,qn=null;function my(e,t){if(Cl===null){var a=Cl=[];Pu=0,Ln=ns(),qn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Pu++,t.then(zf,zf),t}function zf(){if(--Pu===0&&Cl!==null){qn!==null&&(qn.status="fulfilled");var e=Cl;Cl=null,Ln=0,qn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yy(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var jf=O.S;O.S=function(e,t){ch=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&my(e,t),jf!==null&&jf(e,t)};var sn=S(null);function eo(){var e=sn.current;return e!==null?e:ke.pooledCache}function Yi(e,t){t===null?G(sn,sn.current):G(sn,t.pool)}function Cf(){var e=eo();return e===null?null:{parent:We._currentValue,pool:e}}var Gn=Error(o(460)),to=Error(o(474)),Vi=Error(o(542)),Xi={then:function(){}};function _f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ua,ua),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mf(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Mf(e),e}throw fn=t,Gn}}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,Gn):a}}var fn=null;function Of(){if(fn===null)throw Error(o(459));var e=fn;return fn=null,e}function Mf(e){if(e===Gn||e===Vi)throw Error(o(483))}var Yn=null,_l=0;function Qi(e){var t=_l;return _l+=1,Yn===null&&(Yn=[]),wf(Yn,e,t)}function wl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Df(e){function t(A,R){if(e){var j=A.deletions;j===null?(A.deletions=[R],A.flags|=16):j.push(R)}}function a(A,R){if(!e)return null;for(;R!==null;)t(A,R),R=R.sibling;return null}function n(A){for(var R=new Map;A!==null;)A.key!==null?R.set(A.key,A):R.set(A.index,A),A=A.sibling;return R}function l(A,R){return A=sa(A,R),A.index=0,A.sibling=null,A}function r(A,R,j){return A.index=j,e?(j=A.alternate,j!==null?(j=j.index,j<R?(A.flags|=67108866,R):j):(A.flags|=67108866,R)):(A.flags|=1048576,R)}function f(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function m(A,R,j,L){return R===null||R.tag!==6?(R=Vu(j,A.mode,L),R.return=A,R):(R=l(R,j),R.return=A,R)}function E(A,R,j,L){var te=j.type;return te===H?U(A,R,j.props.children,L,j.key):R!==null&&(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===_e&&cn(te)===R.type)?(R=l(R,j.props),wl(R,j),R.return=A,R):(R=ki(j.type,j.key,j.props,null,A.mode,L),wl(R,j),R.return=A,R)}function C(A,R,j,L){return R===null||R.tag!==4||R.stateNode.containerInfo!==j.containerInfo||R.stateNode.implementation!==j.implementation?(R=Xu(j,A.mode,L),R.return=A,R):(R=l(R,j.children||[]),R.return=A,R)}function U(A,R,j,L,te){return R===null||R.tag!==7?(R=ln(j,A.mode,L,te),R.return=A,R):(R=l(R,j),R.return=A,R)}function q(A,R,j){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Vu(""+R,A.mode,j),R.return=A,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case k:return j=ki(R.type,R.key,R.props,null,A.mode,j),wl(j,R),j.return=A,j;case z:return R=Xu(R,A.mode,j),R.return=A,R;case _e:return R=cn(R),q(A,R,j)}if(we(R)||K(R))return R=ln(R,A.mode,j,null),R.return=A,R;if(typeof R.then=="function")return q(A,Qi(R),j);if(R.$$typeof===V)return q(A,Gi(A,R),j);Zi(A,R)}return null}function w(A,R,j,L){var te=R!==null?R.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return te!==null?null:m(A,R,""+j,L);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case k:return j.key===te?E(A,R,j,L):null;case z:return j.key===te?C(A,R,j,L):null;case _e:return j=cn(j),w(A,R,j,L)}if(we(j)||K(j))return te!==null?null:U(A,R,j,L,null);if(typeof j.then=="function")return w(A,R,Qi(j),L);if(j.$$typeof===V)return w(A,R,Gi(A,j),L);Zi(A,j)}return null}function B(A,R,j,L,te){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return A=A.get(j)||null,m(R,A,""+L,te);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case k:return A=A.get(L.key===null?j:L.key)||null,E(R,A,L,te);case z:return A=A.get(L.key===null?j:L.key)||null,C(R,A,L,te);case _e:return L=cn(L),B(A,R,j,L,te)}if(we(L)||K(L))return A=A.get(j)||null,U(R,A,L,te,null);if(typeof L.then=="function")return B(A,R,j,Qi(L),te);if(L.$$typeof===V)return B(A,R,j,Gi(R,L),te);Zi(R,L)}return null}function $(A,R,j,L){for(var te=null,ze=null,P=R,fe=R=0,be=null;P!==null&&fe<j.length;fe++){P.index>fe?(be=P,P=null):be=P.sibling;var je=w(A,P,j[fe],L);if(je===null){P===null&&(P=be);break}e&&P&&je.alternate===null&&t(A,P),R=r(je,R,fe),ze===null?te=je:ze.sibling=je,ze=je,P=be}if(fe===j.length)return a(A,P),Re&&ca(A,fe),te;if(P===null){for(;fe<j.length;fe++)P=q(A,j[fe],L),P!==null&&(R=r(P,R,fe),ze===null?te=P:ze.sibling=P,ze=P);return Re&&ca(A,fe),te}for(P=n(P);fe<j.length;fe++)be=B(P,A,fe,j[fe],L),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?fe:be.key),R=r(be,R,fe),ze===null?te=be:ze.sibling=be,ze=be);return e&&P.forEach(function(Fa){return t(A,Fa)}),Re&&ca(A,fe),te}function ne(A,R,j,L){if(j==null)throw Error(o(151));for(var te=null,ze=null,P=R,fe=R=0,be=null,je=j.next();P!==null&&!je.done;fe++,je=j.next()){P.index>fe?(be=P,P=null):be=P.sibling;var Fa=w(A,P,je.value,L);if(Fa===null){P===null&&(P=be);break}e&&P&&Fa.alternate===null&&t(A,P),R=r(Fa,R,fe),ze===null?te=Fa:ze.sibling=Fa,ze=Fa,P=be}if(je.done)return a(A,P),Re&&ca(A,fe),te;if(P===null){for(;!je.done;fe++,je=j.next())je=q(A,je.value,L),je!==null&&(R=r(je,R,fe),ze===null?te=je:ze.sibling=je,ze=je);return Re&&ca(A,fe),te}for(P=n(P);!je.done;fe++,je=j.next())je=B(P,A,fe,je.value,L),je!==null&&(e&&je.alternate!==null&&P.delete(je.key===null?fe:je.key),R=r(je,R,fe),ze===null?te=je:ze.sibling=je,ze=je);return e&&P.forEach(function(jg){return t(A,jg)}),Re&&ca(A,fe),te}function He(A,R,j,L){if(typeof j=="object"&&j!==null&&j.type===H&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case k:e:{for(var te=j.key;R!==null;){if(R.key===te){if(te=j.type,te===H){if(R.tag===7){a(A,R.sibling),L=l(R,j.props.children),L.return=A,A=L;break e}}else if(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===_e&&cn(te)===R.type){a(A,R.sibling),L=l(R,j.props),wl(L,j),L.return=A,A=L;break e}a(A,R);break}else t(A,R);R=R.sibling}j.type===H?(L=ln(j.props.children,A.mode,L,j.key),L.return=A,A=L):(L=ki(j.type,j.key,j.props,null,A.mode,L),wl(L,j),L.return=A,A=L)}return f(A);case z:e:{for(te=j.key;R!==null;){if(R.key===te)if(R.tag===4&&R.stateNode.containerInfo===j.containerInfo&&R.stateNode.implementation===j.implementation){a(A,R.sibling),L=l(R,j.children||[]),L.return=A,A=L;break e}else{a(A,R);break}else t(A,R);R=R.sibling}L=Xu(j,A.mode,L),L.return=A,A=L}return f(A);case _e:return j=cn(j),He(A,R,j,L)}if(we(j))return $(A,R,j,L);if(K(j)){if(te=K(j),typeof te!="function")throw Error(o(150));return j=te.call(j),ne(A,R,j,L)}if(typeof j.then=="function")return He(A,R,Qi(j),L);if(j.$$typeof===V)return He(A,R,Gi(A,j),L);Zi(A,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,R!==null&&R.tag===6?(a(A,R.sibling),L=l(R,j),L.return=A,A=L):(a(A,R),L=Vu(j,A.mode,L),L.return=A,A=L),f(A)):a(A,R)}return function(A,R,j,L){try{_l=0;var te=He(A,R,j,L);return Yn=null,te}catch(P){if(P===Gn||P===Vi)throw P;var ze=_t(29,P,null,A.mode);return ze.lanes=L,ze.return=A,ze}}}var dn=Df(!0),Nf=Df(!1),Ma=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function no(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Ui(e),gf(e,null,a),t}return Hi(e,n,t,a),Ui(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ac(e,a)}}function lo(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=f:r=r.next=f,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var io=!1;function Ml(){if(io){var e=qn;if(e!==null)throw e}}function Dl(e,t,a,n){io=!1;var l=e.updateQueue;Ma=!1;var r=l.firstBaseUpdate,f=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var E=m,C=E.next;E.next=null,f===null?r=C:f.next=C,f=E;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==f&&(m===null?U.firstBaseUpdate=C:m.next=C,U.lastBaseUpdate=E))}if(r!==null){var q=l.baseState;f=0,U=C=E=null,m=r;do{var w=m.lane&-536870913,B=w!==m.lane;if(B?(xe&w)===w:(n&w)===w){w!==0&&w===Ln&&(io=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var $=e,ne=m;w=t;var He=a;switch(ne.tag){case 1:if($=ne.payload,typeof $=="function"){q=$.call(He,q,w);break e}q=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ne.payload,w=typeof $=="function"?$.call(He,q,w):$,w==null)break e;q=v({},q,w);break e;case 2:Ma=!0}}w=m.callback,w!==null&&(e.flags|=64,B&&(e.flags|=8192),B=l.callbacks,B===null?l.callbacks=[w]:B.push(w))}else B={lane:w,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(C=U=B,E=q):U=U.next=B,f|=w;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;B=m,m=B.next,B.next=null,l.lastBaseUpdate=B,l.shared.pending=null}}while(!0);U===null&&(E=q),l.baseState=E,l.firstBaseUpdate=C,l.lastBaseUpdate=U,r===null&&(l.shared.lanes=0),La|=f,e.lanes=f,e.memoizedState=q}}function Bf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Hf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Bf(a[e],t)}var Vn=S(null),Ki=S(0);function Uf(e,t){e=Sa,G(Ki,e),G(Vn,t),Sa=e|t.baseLanes}function ro(){G(Ki,Sa),G(Vn,Vn.current)}function uo(){Sa=Ki.current,M(Vn),M(Ki)}var wt=S(null),Vt=null;function Ba(e){var t=e.alternate;G(Ke,Ke.current&1),G(wt,e),Vt===null&&(t===null||Vn.current!==null||t.memoizedState!==null)&&(Vt=e)}function oo(e){G(Ke,Ke.current),G(wt,e),Vt===null&&(Vt=e)}function kf(e){e.tag===22?(G(Ke,Ke.current),G(wt,e),Vt===null&&(Vt=e)):Ha()}function Ha(){G(Ke,Ke.current),G(wt,wt.current)}function Ot(e){M(wt),Vt===e&&(Vt=null),M(Ke)}var Ke=S(0);function Ji(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ms(a)||ys(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,se=null,Ne=null,Ie=null,Fi=!1,Xn=!1,hn=!1,$i=0,Nl=0,Qn=null,gy=0;function Xe(){throw Error(o(321))}function so(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function co(e,t,a,n,l,r){return ha=r,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Sd:zo,hn=!1,r=a(n,l),hn=!1,Xn&&(r=qf(t,a,n,l)),Lf(e),r}function Lf(e){O.H=Ul;var t=Ne!==null&&Ne.next!==null;if(ha=0,Ie=Ne=se=null,Fi=!1,Nl=0,Qn=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&qi(e)&&(Pe=!0))}function qf(e,t,a,n){se=e;var l=0;do{if(Xn&&(Qn=null),Nl=0,Xn=!1,25<=l)throw Error(o(301));if(l+=1,Ie=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)}O.H=Ed,r=t(a,n)}while(Xn);return r}function vy(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Bl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(se.flags|=1024),t}function fo(){var e=$i!==0;return $i=0,e}function ho(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function po(e){if(Fi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fi=!1}ha=0,Ie=Ne=se=null,Xn=!1,Nl=$i=0,Qn=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?se.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Je(){if(Ne===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ie===null?se.memoizedState:Ie.next;if(t!==null)Ie=t,Ne=e;else{if(e===null)throw se.alternate===null?Error(o(467)):Error(o(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ie===null?se.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Wi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(e){var t=Nl;return Nl+=1,Qn===null&&(Qn=[]),e=wf(Qn,e,t),t=se,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Sd:zo),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bl(e);if(e.$$typeof===V)return st(e)}throw Error(o(438,String(e)))}function mo(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=se.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=Wi(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=it;return t.index++,a}function pa(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=Je();return yo(t,Ne,e)}function yo(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var l=e.baseQueue,r=n.pending;if(r!==null){if(l!==null){var f=l.next;l.next=r.next,r.next=f}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var m=f=null,E=null,C=t,U=!1;do{var q=C.lane&-536870913;if(q!==C.lane?(xe&q)===q:(ha&q)===q){var w=C.revertLane;if(w===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),q===Ln&&(U=!0);else if((ha&w)===w){C=C.next,w===Ln&&(U=!0);continue}else q={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(m=E=q,f=r):E=E.next=q,se.lanes|=w,La|=w;q=C.action,hn&&a(r,q),r=C.hasEagerState?C.eagerState:a(r,q)}else w={lane:q,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(m=E=w,f=r):E=E.next=w,se.lanes|=q,La|=q;C=C.next}while(C!==null&&C!==t);if(E===null?f=r:E.next=m,!Ct(r,e.memoizedState)&&(Pe=!0,U&&(a=qn,a!==null)))throw a;e.memoizedState=r,e.baseState=f,e.baseQueue=E,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function go(e){var t=Je(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,r=t.memoizedState;if(l!==null){a.pending=null;var f=l=l.next;do r=e(r,f.action),f=f.next;while(f!==l);Ct(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Gf(e,t,a){var n=se,l=Je(),r=Re;if(r){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!Ct((Ne||l).memoizedState,a);if(f&&(l.memoizedState=a,Pe=!0),l=l.queue,bo(Xf.bind(null,n,l,e),[e]),l.getSnapshot!==t||f||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Zn(9,{destroy:void 0},Vf.bind(null,n,l,a,t),null),ke===null)throw Error(o(349));r||(ha&127)!==0||Yf(n,t,a)}return a}function Yf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=Wi(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Vf(e,t,a,n){t.value=a,t.getSnapshot=n,Qf(t)&&Zf(e)}function Xf(e,t,a){return a(function(){Qf(t)&&Zf(e)})}function Qf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Zf(e){var t=nn(e,2);t!==null&&St(t,e,2)}function vo(e){var t=pt();if(typeof e=="function"){var a=e;if(e=a(),hn){Ta(!0);try{a()}finally{Ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function Kf(e,t,a,n){return e.baseState=a,yo(e,Ne,typeof n=="function"?n:pa)}function xy(e,t,a,n,l){if(ar(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};O.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Jf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Jf(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=O.T,f={};O.T=f;try{var m=a(l,n),E=O.S;E!==null&&E(f,m),Ff(e,t,m)}catch(C){xo(e,t,C)}finally{r!==null&&f.types!==null&&(r.types=f.types),O.T=r}}else try{r=a(l,n),Ff(e,t,r)}catch(C){xo(e,t,C)}}function Ff(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){$f(e,t,n)},function(n){return xo(e,t,n)}):$f(e,t,a)}function $f(e,t,a){t.status="fulfilled",t.value=a,Wf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Jf(e,a)))}function xo(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Wf(t),t=t.next;while(t!==n)}e.action=null}function Wf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function If(e,t){return t}function Pf(e,t){if(Re){var a=ke.formState;if(a!==null){e:{var n=se;if(Re){if(qe){t:{for(var l=qe,r=Yt;l.nodeType!==8;){if(!r){l=null;break t}if(l=Xt(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){qe=Xt(l.nextSibling),n=l.data==="F!";break e}}wa(n)}n=!1}n&&(t=a[0])}}return a=pt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:If,lastRenderedState:t},a.queue=n,a=vd.bind(null,se,n),n.dispatch=a,n=vo(!1),r=To.bind(null,se,!1,n.queue),n=pt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=xy.bind(null,se,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function ed(e){var t=Je();return td(t,Ne,e)}function td(e,t,a){if(t=yo(e,t,If)[0],e=Pi(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Bl(t)}catch(f){throw f===Gn?Vi:f}else n=t;t=Je();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(se.flags|=2048,Zn(9,{destroy:void 0},by.bind(null,l,a),null)),[n,r,e]}function by(e,t){e.action=t}function ad(e){var t=Je(),a=Ne;if(a!==null)return td(t,a,e);Je(),t=t.memoizedState,a=Je();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Zn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=se.updateQueue,t===null&&(t=Wi(),se.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 nd(){return Je().memoizedState}function er(e,t,a,n){var l=pt();se.flags|=e,l.memoizedState=Zn(1|t,{destroy:void 0},a,n===void 0?null:n)}function tr(e,t,a,n){var l=Je();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&so(n,Ne.memoizedState.deps)?l.memoizedState=Zn(t,r,a,n):(se.flags|=e,l.memoizedState=Zn(1|t,r,a,n))}function ld(e,t){er(8390656,8,e,t)}function bo(e,t){tr(2048,8,e,t)}function Sy(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Wi(),se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function id(e){var t=Je().memoizedState;return Sy({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function rd(e,t){return tr(4,2,e,t)}function ud(e,t){return tr(4,4,e,t)}function od(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 sd(e,t,a){a=a!=null?a.concat([e]):null,tr(4,4,od.bind(null,t,e),a)}function So(){}function cd(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&so(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function fd(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&so(t,n[1]))return n[0];if(n=e(),hn){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[n,t],n}function Eo(e,t,a){return a===void 0||(ha&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dh(),se.lanes|=e,La|=e,a)}function dd(e,t,a,n){return Ct(a,t)?a:Vn.current!==null?(e=Eo(e,a,n),Ct(e,t)||(Pe=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(xe&261930)===0?(Pe=!0,e.memoizedState=a):(e=dh(),se.lanes|=e,La|=e,t)}function hd(e,t,a,n,l){var r=Z.p;Z.p=r!==0&&8>r?r:8;var f=O.T,m={};O.T=m,To(e,!1,t,a);try{var E=l(),C=O.S;if(C!==null&&C(m,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var U=yy(E,n);Hl(e,t,U,Nt(e))}else Hl(e,t,n,Nt(e))}catch(q){Hl(e,t,{then:function(){},status:"rejected",reason:q},Nt())}finally{Z.p=r,f!==null&&m.types!==null&&(f.types=m.types),O.T=f}}function Ey(){}function Ro(e,t,a,n){if(e.tag!==5)throw Error(o(476));var l=pd(e).queue;hd(e,l,t,ee,a===null?Ey:function(){return md(e),a(n)})}function pd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function md(e){var t=pd(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},Nt())}function Ao(){return st(Pl)}function yd(){return Je().memoizedState}function gd(){return Je().memoizedState}function Ry(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Da(a);var n=Na(t,e,a);n!==null&&(St(n,t,a),Ol(n,t,a)),t={cache:Iu()},e.payload=t;return}t=t.return}}function Ay(e,t,a){var n=Nt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ar(e)?xd(t,a):(a=Gu(e,t,a,n),a!==null&&(St(a,e,n),bd(a,t,n)))}function vd(e,t,a){var n=Nt();Hl(e,t,a,n)}function Hl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ar(e))xd(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var f=t.lastRenderedState,m=r(f,a);if(l.hasEagerState=!0,l.eagerState=m,Ct(m,f))return Hi(e,t,l,0),ke===null&&Bi(),!1}catch{}if(a=Gu(e,t,l,n),a!==null)return St(a,e,n),bd(a,t,n),!0}return!1}function To(e,t,a,n){if(n={lane:2,revertLane:ns(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(t)throw Error(o(479))}else t=Gu(e,a,n,2),t!==null&&St(t,e,2)}function ar(e){var t=e.alternate;return e===se||t!==null&&t===se}function xd(e,t){Xn=Fi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function bd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ac(e,a)}}var Ul={readContext:st,use:Ii,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Ul.useEffectEvent=Xe;var Sd={readContext:st,use:Ii,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:ld,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,er(4194308,4,od.bind(null,t,e),a)},useLayoutEffect:function(e,t){return er(4194308,4,e,t)},useInsertionEffect:function(e,t){er(4,2,e,t)},useMemo:function(e,t){var a=pt();t=t===void 0?null:t;var n=e();if(hn){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=pt();if(a!==void 0){var l=a(t);if(hn){Ta(!0);try{a(t)}finally{Ta(!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=Ay.bind(null,se,e),[n.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=vo(e);var t=e.queue,a=vd.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:So,useDeferredValue:function(e,t){var a=pt();return Eo(a,e,t)},useTransition:function(){var e=vo(!1);return e=hd.bind(null,se,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=se,l=pt();if(Re){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),ke===null)throw Error(o(349));(xe&127)!==0||Yf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,ld(Xf.bind(null,n,r,e),[e]),n.flags|=2048,Zn(9,{destroy:void 0},Vf.bind(null,n,r,a,t),null),a},useId:function(){var e=pt(),t=ke.identifierPrefix;if(Re){var a=ta,n=ea;a=(n&~(1<<32-jt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$i++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=gy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ao,useFormState:Pf,useActionState:Pf,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=To.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:mo,useCacheRefresh:function(){return pt().memoizedState=Ry.bind(null,se)},useEffectEvent:function(e){var t=pt(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},zo={readContext:st,use:Ii,useCallback:cd,useContext:st,useEffect:bo,useImperativeHandle:sd,useInsertionEffect:rd,useLayoutEffect:ud,useMemo:fd,useReducer:Pi,useRef:nd,useState:function(){return Pi(pa)},useDebugValue:So,useDeferredValue:function(e,t){var a=Je();return dd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Pi(pa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Gf,useId:yd,useHostTransitionStatus:Ao,useFormState:ed,useActionState:ed,useOptimistic:function(e,t){var a=Je();return Kf(a,Ne,e,t)},useMemoCache:mo,useCacheRefresh:gd};zo.useEffectEvent=id;var Ed={readContext:st,use:Ii,useCallback:cd,useContext:st,useEffect:bo,useImperativeHandle:sd,useInsertionEffect:rd,useLayoutEffect:ud,useMemo:fd,useReducer:go,useRef:nd,useState:function(){return go(pa)},useDebugValue:So,useDeferredValue:function(e,t){var a=Je();return Ne===null?Eo(a,e,t):dd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=go(pa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Gf,useId:yd,useHostTransitionStatus:Ao,useFormState:ad,useActionState:ad,useOptimistic:function(e,t){var a=Je();return Ne!==null?Kf(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:mo,useCacheRefresh:gd};Ed.useEffectEvent=id;function jo(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Co={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Nt(),l=Da(n);l.payload=t,a!=null&&(l.callback=a),t=Na(e,l,n),t!==null&&(St(t,e,n),Ol(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Nt(),l=Da(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Na(e,l,n),t!==null&&(St(t,e,n),Ol(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),n=Da(a);n.tag=2,t!=null&&(n.callback=t),t=Na(e,n,a),t!==null&&(St(t,e,a),Ol(t,e,a))}};function Rd(e,t,a,n,l,r,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,f):t.prototype&&t.prototype.isPureReactComponent?!Rl(a,n)||!Rl(l,r):!0}function Ad(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&&Co.enqueueReplaceState(t,t.state,null)}function pn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Td(e){Ni(e)}function zd(e){console.error(e)}function jd(e){Ni(e)}function nr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Cd(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 _o(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){nr(e,t)},a}function _d(e){return e=Da(e),e.tag=3,e}function wd(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(){Cd(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Cd(t,a,n),typeof l!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function Ty(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&kn(t,a,l,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?mr():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Xi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),es(e,n,l)),!1;case 22:return a.flags|=65536,n===Xi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),es(e,n,l)),!1}throw Error(o(435,a.tag))}return es(e,n,l),mr(),!1}if(Re)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Ku&&(e=Error(o(422),{cause:n}),zl(Lt(e,a)))):(n!==Ku&&(t=Error(o(423),{cause:n}),zl(Lt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Lt(n,a),l=_o(e.stateNode,n,l),lo(e,l),Qe!==4&&(Qe=2)),!1;var r=Error(o(520),{cause:n});if(r=Lt(r,a),Ql===null?Ql=[r]:Ql.push(r),Qe!==4&&(Qe=2),t===null)return!0;n=Lt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=_o(a.stateNode,n,e),lo(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(qa===null||!qa.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=_d(l),wd(l,e,a,n),lo(a,l),!1}a=a.return}while(a!==null);return!1}var wo=Error(o(461)),Pe=!1;function ct(e,t,a,n){t.child=e===null?Nf(t,null,a,n):dn(t,e.child,a,n)}function Od(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var f={};for(var m in n)m!=="ref"&&(f[m]=n[m])}else f=n;return on(t),n=co(e,t,a,f,r,l),m=fo(),e!==null&&!Pe?(ho(e,t,l),ma(e,t,l)):(Re&&m&&Qu(t),t.flags|=1,ct(e,t,n,l),t.child)}function Md(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Yu(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Dd(e,t,r,n,l)):(e=ki(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!ko(e,l)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:Rl,a(f,n)&&e.ref===t.ref)return ma(e,t,l)}return t.flags|=1,e=sa(r,n),e.ref=t.ref,e.return=t,t.child=e}function Dd(e,t,a,n,l){if(e!==null){var r=e.memoizedProps;if(Rl(r,n)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=n=r,ko(e,l))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,ma(e,t,l)}return Oo(e,t,a,n,l)}function Nd(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 Bd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(t,r!==null?r.cachePool:null),r!==null?Uf(t,r):ro(),kf(t);else return n=t.lanes=536870912,Bd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Yi(t,r.cachePool),Uf(t,r),Ha(),t.memoizedState=null):(e!==null&&Yi(t,null),ro(),Ha());return ct(e,t,l,a),t.child}function kl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bd(e,t,a,n,l){var r=eo();return r=r===null?null:{parent:We._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yi(t,null),ro(),kf(t),e!==null&&kn(e,t,n,!0),t.childLanes=l,null}function lr(e,t){return t=rr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hd(e,t,a){return dn(t,e.child,null,a),e=lr(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function zy(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(n.mode==="hidden")return e=lr(t,n),t.lanes=536870912,kl(null,e);if(oo(t),(e=qe)?(e=Jh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},a=xf(e),a.return=t,t.child=a,ot=t,qe=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return lr(t,n)}var r=e.memoizedState;if(r!==null){var f=r.dehydrated;if(oo(t),l)if(t.flags&256)t.flags&=-257,t=Hd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||kn(e,t,a,!1),l=(a&e.childLanes)!==0,Pe||l){if(n=ke,n!==null&&(f=Tc(n,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,nn(e,f),St(n,e,f),wo;mr(),t=Hd(e,t,a)}else e=r.treeContext,qe=Xt(f.nextSibling),ot=t,Re=!0,_a=null,Yt=!1,e!==null&&Ef(t,e),t=lr(t,n),t.flags|=4096;return t}return e=sa(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ir(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Oo(e,t,a,n,l){return on(t),a=co(e,t,a,n,void 0,l),n=fo(),e!==null&&!Pe?(ho(e,t,l),ma(e,t,l)):(Re&&n&&Qu(t),t.flags|=1,ct(e,t,a,l),t.child)}function Ud(e,t,a,n,l,r){return on(t),t.updateQueue=null,a=qf(t,n,a,l),Lf(e),n=fo(),e!==null&&!Pe?(ho(e,t,r),ma(e,t,r)):(Re&&n&&Qu(t),t.flags|=1,ct(e,t,a,r),t.child)}function kd(e,t,a,n,l){if(on(t),t.stateNode===null){var r=Nn,f=a.contextType;typeof f=="object"&&f!==null&&(r=st(f)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Co,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},ao(t),f=a.contextType,r.context=typeof f=="object"&&f!==null?st(f):Nn,r.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(jo(t,a,f,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&Co.enqueueReplaceState(r,r.state,null),Dl(t,n,r,l),Ml(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,E=pn(a,m);r.props=E;var C=r.context,U=a.contextType;f=Nn,typeof U=="object"&&U!==null&&(f=st(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,U||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||C!==f)&&Ad(t,r,n,f),Ma=!1;var w=t.memoizedState;r.state=w,Dl(t,n,r,l),Ml(),C=t.memoizedState,m||w!==C||Ma?(typeof q=="function"&&(jo(t,a,q,n),C=t.memoizedState),(E=Ma||Rd(t,a,E,n,w,C,f))?(U||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=C),r.props=n,r.state=C,r.context=f,n=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,no(e,t),f=t.memoizedProps,U=pn(a,f),r.props=U,q=t.pendingProps,w=r.context,C=a.contextType,E=Nn,typeof C=="object"&&C!==null&&(E=st(C)),m=a.getDerivedStateFromProps,(C=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==q||w!==E)&&Ad(t,r,n,E),Ma=!1,w=t.memoizedState,r.state=w,Dl(t,n,r,l),Ml();var B=t.memoizedState;f!==q||w!==B||Ma||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof m=="function"&&(jo(t,a,m,n),B=t.memoizedState),(U=Ma||Rd(t,a,U,n,w,B,E)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,B,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,B,E)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=B),r.props=n,r.state=B,r.context=E,n=U):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,ir(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=dn(t,e.child,null,l),t.child=dn(t,null,a,l)):ct(e,t,a,l),t.memoizedState=r.state,e=t.child):e=ma(e,t,l),e}function Ld(e,t,a,n){return rn(),t.flags|=256,ct(e,t,a,n),t.child}var Mo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Do(e){return{baseLanes:e,cachePool:Cf()}}function No(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Dt),e}function qd(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,f;if((f=r)||(f=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),f&&(l=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(l?Ba(t):Ha(),(e=qe)?(e=Jh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},a=xf(e),a.return=t,t.child=a,ot=t,qe=null)):e=null,e===null)throw wa(t);return ys(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(Ha(),l=t.mode,m=rr({mode:"hidden",children:m},l),n=ln(n,l,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Do(a),n.childLanes=No(e,f,a),t.memoizedState=Mo,kl(null,n)):(Ba(t),Bo(t,m))}var E=e.memoizedState;if(E!==null&&(m=E.dehydrated,m!==null)){if(r)t.flags&256?(Ba(t),t.flags&=-257,t=Ho(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),m=n.fallback,l=t.mode,n=rr({mode:"visible",children:n.children},l),m=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=Do(a),n.childLanes=No(e,f,a),t.memoizedState=Mo,t=kl(null,n));else if(Ba(t),ys(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var C=f.dgst;f=C,n=Error(o(419)),n.stack="",n.digest=f,zl({value:n,source:null,stack:null}),t=Ho(e,t,a)}else if(Pe||kn(e,t,a,!1),f=(a&e.childLanes)!==0,Pe||f){if(f=ke,f!==null&&(n=Tc(f,a),n!==0&&n!==E.retryLane))throw E.retryLane=n,nn(e,n),St(f,e,n),wo;ms(m)||mr(),t=Ho(e,t,a)}else ms(m)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,qe=Xt(m.nextSibling),ot=t,Re=!0,_a=null,Yt=!1,e!==null&&Ef(t,e),t=Bo(t,n.children),t.flags|=4096);return t}return l?(Ha(),m=n.fallback,l=t.mode,E=e.child,C=E.sibling,n=sa(E,{mode:"hidden",children:n.children}),n.subtreeFlags=E.subtreeFlags&65011712,C!==null?m=sa(C,m):(m=ln(m,l,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,kl(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Do(a):(l=m.cachePool,l!==null?(E=We._currentValue,l=l.parent!==E?{parent:E,pool:E}:l):l=Cf(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=No(e,f,a),t.memoizedState=Mo,kl(e.child,n)):(Ba(t),a=e.child,e=a.sibling,a=sa(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Bo(e,t){return t=rr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rr(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Ho(e,t,a){return dn(t,e.child,null,a),e=Bo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),$u(e.return,t,a)}function Uo(e,t,a,n,l,r){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=l,f.treeForkCount=r)}function Yd(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var f=Ke.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,G(Ke,f),ct(e,t,n,a),n=Re?Tl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gd(e,a,t);else if(e.tag===19)Gd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Ji(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Uo(t,!1,l,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ji(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Uo(t,!0,a,null,r,n);break;case"together":Uo(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(kn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ko(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qi(e)))}function jy(e,t,a){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Oa(t,We,e.memoizedState.cache),rn();break;case 27:case 5:cl(t);break;case 4:rt(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,oo(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?qd(e,t,a):(Ba(t),e=ma(e,t,a),e!==null?e.sibling:null);Ba(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(kn(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Yd(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),G(Ke,Ke.current),n)break;return null;case 22:return t.lanes=0,Nd(e,t,a,t.pendingProps);case 24:Oa(t,We,e.memoizedState.cache)}return ma(e,t,a)}function Vd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!ko(e,a)&&(t.flags&128)===0)return Pe=!1,jy(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,Re&&(t.flags&1048576)!==0&&Sf(t,Tl,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")Yu(e)?(n=pn(e,n),t.tag=1,t=kd(null,t,e,n,a)):(t.tag=0,t=Oo(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===ae){t.tag=11,t=Od(null,t,e,n,a);break e}else if(l===F){t.tag=14,t=Md(null,t,e,n,a);break e}}throw t=ve(e)||e,Error(o(306,t,""))}}return t;case 0:return Oo(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=pn(n,t.pendingProps),kd(e,t,n,l,a);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,no(e,t),Dl(t,n,null,a);var f=t.memoizedState;if(n=f.cache,Oa(t,We,n),n!==r.cache&&Wu(t,[We],a,!0),Ml(),n=f.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Ld(e,t,n,a);break e}else if(n!==l){l=Lt(Error(o(424)),t),zl(l),t=Ld(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=Xt(e.firstChild),ot=t,Re=!0,_a=null,Yt=!0,a=Nf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(rn(),n===l){t=ma(e,t,a);break e}ct(e,t,n,a)}t=t.child}return t;case 26:return ir(e,t),e===null?(a=ep(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,n=Er(ue.current).createElement(a),n[ut]=t,n[mt]=e,ft(n,a,e),at(n),t.stateNode=n):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return cl(t),e===null&&Re&&(n=t.stateNode=Wh(t.type,t.pendingProps,ue.current),ot=t,Yt=!0,l=qe,Xa(t.type)?(gs=l,qe=Xt(n.firstChild)):qe=l),ct(e,t,t.pendingProps.children,a),ir(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((l=n=qe)&&(n=ng(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ot=t,qe=Xt(n.firstChild),Yt=!1,l=!0):l=!1),l||wa(t)),cl(t),l=t.type,r=t.pendingProps,f=e!==null?e.memoizedProps:null,n=r.children,ds(l,r)?n=null:f!==null&&ds(l,f)&&(t.flags|=32),t.memoizedState!==null&&(l=co(e,t,vy,null,null,a),Pl._currentValue=l),ir(e,t),ct(e,t,n,a),t.child;case 6:return e===null&&Re&&((e=a=qe)&&(a=lg(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ot=t,qe=null,e=!0):e=!1),e||wa(t)),null;case 13:return qd(e,t,a);case 4:return rt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=dn(t,null,n,a):ct(e,t,n,a),t.child;case 11:return Od(e,t,t.type,t.pendingProps,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Oa(t,t.type,n.value),ct(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,on(t),l=st(l),n=n(l),t.flags|=1,ct(e,t,n,a),t.child;case 14:return Md(e,t,t.type,t.pendingProps,a);case 15:return Dd(e,t,t.type,t.pendingProps,a);case 19:return Yd(e,t,a);case 31:return zy(e,t,a);case 22:return Nd(e,t,a,t.pendingProps);case 24:return on(t),n=st(We),e===null?(l=eo(),l===null&&(l=ke,r=Iu(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},ao(t),Oa(t,We,l)):((e.lanes&a)!==0&&(no(e,t),Dl(t,null,null,a),Ml()),l=e.memoizedState,r=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Oa(t,We,n)):(n=r.cache,Oa(t,We,n),n!==l.cache&&Wu(t,[We],a,!0))),ct(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ya(e){e.flags|=4}function Lo(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(yh())e.flags|=8192;else throw fn=Xi,to}else e.flags&=-16777217}function Xd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t))if(yh())e.flags|=8192;else throw fn=Xi,to}function ur(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ec():536870912,e.lanes|=t,$n|=t)}function Ll(e,t){if(!Re)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 Ge(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 Cy(e,t,a){var n=t.pendingProps;switch(Zu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),da(We),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Un(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ju())),Ge(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ya(t),r!==null?(Ge(t),Xd(t,r)):(Ge(t),Lo(t,l,null,n,a))):r?r!==e.memoizedState?(ya(t),Ge(t),Xd(t,r)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ya(t),Ge(t),Lo(t,l,e,n,a)),null;case 27:if(vi(t),a=ue.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ge(t),null}e=X.current,Un(t)?Rf(t):(e=Wh(l,n,a),t.stateNode=e,ya(t))}return Ge(t),null;case 5:if(vi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ge(t),null}if(r=X.current,Un(t))Rf(t);else{var f=Er(ue.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?f.createElement(l,{is:n.is}):f.createElement(l)}}r[ut]=t,r[mt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=r;e:switch(ft(r,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ya(t)}}return Ge(t),Lo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=ue.current,Un(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ot,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||qh(e.nodeValue,a)),e||wa(t,!0)}else e=Er(e).createTextNode(n),e[ut]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Un(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[ut]=t}else rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else a=Ju(),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(o(558))}return Ge(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Un(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));l[ut]=t}else rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),l=!1}else l=Ju(),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),ur(t,t.updateQueue),Ge(t),null);case 4:return Ze(),e===null&&us(t.stateNode.containerInfo),Ge(t),null;case 10:return da(t.type),Ge(t),null;case 19:if(M(Ke),n=t.memoizedState,n===null)return Ge(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)Ll(n,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ji(e),r!==null){for(t.flags|=128,Ll(n,!1),e=r.updateQueue,t.updateQueue=e,ur(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)vf(a,e),a=a.sibling;return G(Ke,Ke.current&1|2),Re&&ca(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Tt()>dr&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304)}else{if(!l)if(e=Ji(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,ur(t,e),Ll(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Re)return Ge(t),null}else 2*Tt()-n.renderingStartTime>dr&&a!==536870912&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Tt(),e.sibling=null,a=Ke.current,G(Ke,l?a&1|2:a&1),Re&&ca(t,n.treeForkCount),e):(Ge(t),null);case 22:case 23:return Ot(t),uo(),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&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&ur(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(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(We),Ge(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function _y(e,t){switch(Zu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(We),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vi(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(o(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(o(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(Ke),null;case 4:return Ze(),null;case 10:return da(t.type),null;case 22:case 23:return Ot(t),uo(),e!==null&&M(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(We),null;case 25:return null;default:return null}}function Qd(e,t){switch(Zu(t),t.tag){case 3:da(We),Ze();break;case 26:case 27:case 5:vi(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:M(Ke);break;case 10:da(t.type);break;case 22:case 23:Ot(t),uo(),e!==null&&M(sn);break;case 24:da(We)}}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,f=a.inst;n=r(),f.destroy=n}a=a.next}while(a!==l)}}catch(m){Me(t,t.return,m)}}function Ua(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){var f=n.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,l=t;var E=a,C=m;try{C()}catch(U){Me(l,E,U)}}}n=n.next}while(n!==r)}}catch(U){Me(t,t.return,U)}}function Zd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Hf(t,a)}catch(n){Me(e,e.return,n)}}}function Kd(e,t,a){a.props=pn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(e,t,n)}}function Gl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){Me(e,t,l)}}function aa(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Me(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Me(e,t,l)}else a.current=null}function Jd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Me(e,e.return,l)}}function qo(e,t,a){try{var n=e.stateNode;Wy(n,e.type,a,t),n[mt]=t}catch(l){Me(e,e.return,l)}}function Fd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Go(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yo(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=ua));else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Yo(e,t,a),e=e.sibling;e!==null;)Yo(e,t,a),e=e.sibling}function or(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(or(e,t,a),e=e.sibling;e!==null;)or(e,t,a),e=e.sibling}function $d(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);ft(t,n,a),t[ut]=e,t[mt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,et=!1,Vo=!1,Wd=typeof WeakSet=="function"?WeakSet:Set,nt=null;function wy(e,t){if(e=e.containerInfo,cs=_r,e=sf(e),Bu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var f=0,m=-1,E=-1,C=0,U=0,q=e,w=null;t:for(;;){for(var B;q!==a||l!==0&&q.nodeType!==3||(m=f+l),q!==r||n!==0&&q.nodeType!==3||(E=f+n),q.nodeType===3&&(f+=q.nodeValue.length),(B=q.firstChild)!==null;)w=q,q=B;for(;;){if(q===e)break t;if(w===a&&++C===l&&(m=f),w===r&&++U===n&&(E=f),(B=q.nextSibling)!==null)break;q=w,w=q.parentNode}q=B}a=m===-1||E===-1?null:{start:m,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(fs={focusedElem:e,selectionRange:a},_r=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,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 $=pn(a.type,l);e=n.getSnapshotBeforeUpdate($,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Me(a,a.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ps(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ps(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function Id(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),n&4&&ql(5,a);break;case 1:if(xa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(a,a.return,f)}else{var l=pn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(a,a.return,f)}}n&64&&Zd(a),n&512&&Gl(a,a.return);break;case 3:if(xa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Hf(e,t)}catch(f){Me(a,a.return,f)}}break;case 27:t===null&&n&4&&$d(a);case 26:case 5:xa(e,a),t===null&&n&4&&Jd(a),n&512&&Gl(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&th(e,a);break;case 13:xa(e,a),n&4&&ah(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ly.bind(null,a),ig(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||et,l=ga;var r=et;ga=n,(et=t)&&!r?ba(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ga=l,et=r}break;case 30:break;default:xa(e,a)}}function Pd(e){var t=e.alternate;t!==null&&(e.alternate=null,Pd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vu(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 Ye=null,gt=!1;function va(e,t,a){for(a=a.child;a!==null;)eh(e,t,a),a=a.sibling}function eh(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:et||aa(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:et||aa(a,t);var n=Ye,l=gt;Xa(a.type)&&(Ye=a.stateNode,gt=!1),va(e,t,a),$l(a.stateNode),Ye=n,gt=l;break;case 5:et||aa(a,t);case 6:if(n=Ye,l=gt,Ye=null,va(e,t,a),Ye=n,gt=l,Ye!==null)if(gt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Ye.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Ye!==null&&(gt?(e=Ye,Zh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ll(e)):Zh(Ye,a.stateNode));break;case 4:n=Ye,l=gt,Ye=a.stateNode.containerInfo,gt=!0,va(e,t,a),Ye=n,gt=l;break;case 0:case 11:case 14:case 15:Ua(2,a,t),et||Ua(4,a,t),va(e,t,a);break;case 1:et||(aa(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Kd(a,t,n)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:et=(n=et)||a.memoizedState!==null,va(e,t,a),et=n;break;default:va(e,t,a)}}function th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ll(e)}catch(a){Me(t,t.return,a)}}}function ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ll(e)}catch(a){Me(t,t.return,a)}}function Oy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wd),t;default:throw Error(o(435,e.tag))}}function sr(e,t){var a=Oy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=qy.bind(null,e,n);n.then(l,l)}})}function vt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(Xa(m.type)){Ye=m.stateNode,gt=!1;break e}break;case 5:Ye=m.stateNode,gt=!1;break e;case 3:case 4:Ye=m.stateNode.containerInfo,gt=!0;break e}m=m.return}if(Ye===null)throw Error(o(160));eh(r,f,l),Ye=null,gt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)nh(t,e),t=t.sibling}var Jt=null;function nh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),xt(e),n&4&&(Ua(3,e,e.return),ql(3,e),Ua(5,e,e.return));break;case 1:vt(t,e),xt(e),n&512&&(et||a===null||aa(a,a.return)),n&64&&ga&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=Jt;if(vt(t,e),xt(e),n&512&&(et||a===null||aa(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":r=l.getElementsByTagName("title")[0],(!r||r[pl]||r[ut]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(n),l.head.insertBefore(r,l.querySelector("head > title"))),ft(r,n,a),r[ut]=e,at(r),n=r;break e;case"link":var f=np("link","href",l).get(n+(a.href||""));if(f){for(var m=0;m<f.length;m++)if(r=f[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(m,1);break t}}r=l.createElement(n),ft(r,n,a),l.head.appendChild(r);break;case"meta":if(f=np("meta","content",l).get(n+(a.content||""))){for(m=0;m<f.length;m++)if(r=f[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(m,1);break t}}r=l.createElement(n),ft(r,n,a),l.head.appendChild(r);break;default:throw Error(o(468,n))}r[ut]=e,at(r),n=r}e.stateNode=n}else lp(l,e.type,e.stateNode);else e.stateNode=ap(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?lp(l,e.type,e.stateNode):ap(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&qo(e,e.memoizedProps,a.memoizedProps)}break;case 27:vt(t,e),xt(e),n&512&&(et||a===null||aa(a,a.return)),a!==null&&n&4&&qo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(vt(t,e),xt(e),n&512&&(et||a===null||aa(a,a.return)),e.flags&32){l=e.stateNode;try{jn(l,"")}catch($){Me(e,e.return,$)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,qo(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Vo=!0);break;case 6:if(vt(t,e),xt(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch($){Me(e,e.return,$)}}break;case 3:if(Tr=null,l=Jt,Jt=Rr(t.containerInfo),vt(t,e),Jt=l,xt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{ll(t.containerInfo)}catch($){Me(e,e.return,$)}Vo&&(Vo=!1,lh(e));break;case 4:n=Jt,Jt=Rr(e.stateNode.containerInfo),vt(t,e),xt(e),Jt=n;break;case 12:vt(t,e),xt(e);break;case 31:vt(t,e),xt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,sr(e,n)));break;case 13:vt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(fr=Tt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,sr(e,n)));break;case 22:l=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,C=ga,U=et;if(ga=C||l,et=U||E,vt(t,e),et=U,ga=C,xt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||E||ga||et||mn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(r=E.stateNode,l)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=E.stateNode;var q=E.memoizedProps.style,w=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch($){Me(E,E.return,$)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=l?"":E.memoizedProps}catch($){Me(E,E.return,$)}}}else if(t.tag===18){if(a===null){E=t;try{var B=E.stateNode;l?Kh(B,!0):Kh(E.stateNode,!1)}catch($){Me(E,E.return,$)}}}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,sr(e,a))));break;case 19:vt(t,e),xt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,sr(e,n)));break;case 30:break;case 21:break;default:vt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Fd(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var l=a.stateNode,r=Go(e);or(e,r,l);break;case 5:var f=a.stateNode;a.flags&32&&(jn(f,""),a.flags&=-33);var m=Go(e);or(e,m,f);break;case 3:case 4:var E=a.stateNode.containerInfo,C=Go(e);Yo(e,C,E);break;default:throw Error(o(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Id(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:aa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Kd(t,t.return,a),mn(t);break;case 27:$l(t.stateNode);case 26:case 5:aa(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 ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,r=t,f=r.flags;switch(r.tag){case 0:case 11:case 15:ba(l,r,a),ql(4,r);break;case 1:if(ba(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(C){Me(n,n.return,C)}if(n=r,l=n.updateQueue,l!==null){var m=n.stateNode;try{var E=l.shared.hiddenCallbacks;if(E!==null)for(l.shared.hiddenCallbacks=null,l=0;l<E.length;l++)Bf(E[l],m)}catch(C){Me(n,n.return,C)}}a&&f&64&&Zd(r),Gl(r,r.return);break;case 27:$d(r);case 26:case 5:ba(l,r,a),a&&n===null&&f&4&&Jd(r),Gl(r,r.return);break;case 12:ba(l,r,a);break;case 31:ba(l,r,a),a&&f&4&&th(l,r);break;case 13:ba(l,r,a),a&&f&4&&ah(l,r);break;case 22:r.memoizedState===null&&ba(l,r,a),Gl(r,r.return);break;case 30:break;default:ba(l,r,a)}t=t.sibling}}function Xo(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&&jl(a))}function Qo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jl(e))}function Ft(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ih(e,t,a,n),t=t.sibling}function ih(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,a,n),l&2048&&ql(9,t);break;case 1:Ft(e,t,a,n);break;case 3:Ft(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jl(e)));break;case 12:if(l&2048){Ft(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,f=r.id,m=r.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Me(t,t.return,E)}}else Ft(e,t,a,n);break;case 31:Ft(e,t,a,n);break;case 13:Ft(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,f=t.alternate,t.memoizedState!==null?r._visibility&2?Ft(e,t,a,n):Yl(e,t):r._visibility&2?Ft(e,t,a,n):(r._visibility|=2,Kn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Xo(f,t);break;case 24:Ft(e,t,a,n),l&2048&&Qo(t.alternate,t);break;default:Ft(e,t,a,n)}}function Kn(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,f=t,m=a,E=n,C=f.flags;switch(f.tag){case 0:case 11:case 15:Kn(r,f,m,E,l),ql(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?Kn(r,f,m,E,l):Yl(r,f):(U._visibility|=2,Kn(r,f,m,E,l)),l&&C&2048&&Xo(f.alternate,f);break;case 24:Kn(r,f,m,E,l),l&&C&2048&&Qo(f.alternate,f);break;default:Kn(r,f,m,E,l)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:Yl(a,n),l&2048&&Xo(n.alternate,n);break;case 24:Yl(a,n),l&2048&&Qo(n.alternate,n);break;default:Yl(a,n)}t=t.sibling}}var Vl=8192;function Jn(e,t,a){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)rh(e,t,a),e=e.sibling}function rh(e,t,a){switch(e.tag){case 26:Jn(e,t,a),e.flags&Vl&&e.memoizedState!==null&&gg(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:Jn(e,t,a);break;case 3:case 4:var n=Jt;Jt=Rr(e.stateNode.containerInfo),Jn(e,t,a),Jt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Vl,Vl=16777216,Jn(e,t,a),Vl=n):Jn(e,t,a));break;default:Jn(e,t,a)}}function uh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,sh(n,e)}uh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oh(e),e=e.sibling}function oh(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cr(e)):Xl(e);break;default:Xl(e)}}function cr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,sh(n,e)}uh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),cr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cr(t));break;default:cr(t)}e=e.sibling}}function sh(e,t){for(;nt!==null;){var a=nt;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:jl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,nt=n;else e:for(a=e;nt!==null;){n=nt;var l=n.sibling,r=n.return;if(Pd(n),n===a){nt=null;break e}if(l!==null){l.return=r,nt=l;break e}nt=r}}}var My={getCacheForType:function(e){var t=st(We),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return st(We).controller.signal}},Dy=typeof WeakMap=="function"?WeakMap:Map,Ce=0,ke=null,ye=null,xe=0,Oe=0,Mt=null,ka=!1,Fn=!1,Zo=!1,Sa=0,Qe=0,La=0,yn=0,Ko=0,Dt=0,$n=0,Ql=null,bt=null,Jo=!1,fr=0,ch=0,dr=1/0,hr=null,qa=null,tt=0,Ga=null,Wn=null,Ea=0,Fo=0,$o=null,fh=null,Zl=0,Wo=null;function Nt(){return(Ce&2)!==0&&xe!==0?xe&-xe:O.T!==null?ns():zc()}function dh(){if(Dt===0)if((xe&536870912)===0||Re){var e=Si;Si<<=1,(Si&3932160)===0&&(Si=262144),Dt=e}else Dt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Dt}function St(e,t,a){(e===ke&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(In(e,0),Ya(e,xe,Dt,!1)),hl(e,a),((Ce&2)===0||e!==ke)&&(e===ke&&((Ce&2)===0&&(yn|=a),Qe===4&&Ya(e,xe,Dt,!1)),na(e))}function hh(e,t,a){if((Ce&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dl(e,t),l=n?Hy(e,t):Po(e,t,!0),r=n;do{if(l===0){Fn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Ny(a)){l=Po(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;l=Ql;var E=m.current.memoizedState.isDehydrated;if(E&&(In(m,f).flags|=256),f=Po(m,f,!1),f!==2){if(Zo&&!E){m.errorRecoveryDisabledLanes|=r,yn|=r,l=4;break e}r=bt,bt=l,r!==null&&(bt===null?bt=r:bt.push.apply(bt,r))}l=f}if(r=!1,l!==2)continue}}if(l===1){In(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,r=l,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,Dt,!ka);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(l=fr+300-Tt(),10<l)){if(Ya(n,t,Dt,!ka),Ri(n,0,!0)!==0)break e;Ea=t,n.timeoutHandle=Xh(ph.bind(null,n,a,bt,hr,Jo,t,Dt,yn,$n,ka,r,"Throttled",-0,0),l);break e}ph(n,a,bt,hr,Jo,t,Dt,yn,$n,ka,r,null,-0,0)}}break}while(!0);na(e)}function ph(e,t,a,n,l,r,f,m,E,C,U,q,w,B){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ua},rh(t,r,q);var $=(r&62914560)===r?fr-Tt():(r&4194048)===r?ch-Tt():0;if($=vg(q,$),$!==null){Ea=r,e.cancelPendingCommit=$(Eh.bind(null,e,t,r,a,n,l,f,m,E,U,q,null,w,B)),Ya(e,r,f,!C);return}}Eh(e,t,r,a,n,l,f,m,E)}function Ny(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],r=l.getSnapshot;l=l.value;try{if(!Ct(r(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ya(e,t,a,n){t&=~Ko,t&=~yn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-jt(l),f=1<<r;n[r]=-1,l&=~f}a!==0&&Rc(e,a,t)}function pr(){return(Ce&6)===0?(Kl(0),!1):!0}function Io(){if(ye!==null){if(Oe===0)var e=ye.return;else e=ye,fa=un=null,po(e),Yn=null,_l=0,e=ye;for(;e!==null;)Qd(e.alternate,e),e=e.return;ye=null}}function In(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,eg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ea=0,Io(),ke=e,ye=a=sa(e.current,null),xe=t,Oe=0,Mt=null,ka=!1,Fn=dl(e,t),Zo=!1,$n=Dt=Ko=yn=La=Qe=0,bt=Ql=null,Jo=!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-jt(n),r=1<<l;t|=e[l],n&=~r}return Sa=t,Bi(),a}function mh(e,t){se=null,O.H=Ul,t===Gn||t===Vi?(t=Of(),Oe=3):t===to?(t=Of(),Oe=4):Oe=t===wo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,ye===null&&(Qe=1,nr(e,Lt(t,e.current)))}function yh(){var e=wt.current;return e===null?!0:(xe&4194048)===xe?Vt===null:(xe&62914560)===xe||(xe&536870912)!==0?e===Vt:!1}function gh(){var e=O.H;return O.H=Ul,e===null?Ul:e}function vh(){var e=O.A;return O.A=My,e}function mr(){Qe=4,ka||(xe&4194048)!==xe&&wt.current!==null||(Fn=!0),(La&134217727)===0&&(yn&134217727)===0||ke===null||Ya(ke,xe,Dt,!1)}function Po(e,t,a){var n=Ce;Ce|=2;var l=gh(),r=vh();(ke!==e||xe!==t)&&(hr=null,In(e,t)),t=!1;var f=Qe;e:do try{if(Oe!==0&&ye!==null){var m=ye,E=Mt;switch(Oe){case 8:Io(),f=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var C=Oe;if(Oe=0,Mt=null,Pn(e,m,E,C),a&&Fn){f=0;break e}break;default:C=Oe,Oe=0,Mt=null,Pn(e,m,E,C)}}By(),f=Qe;break}catch(U){mh(e,U)}while(!0);return t&&e.shellSuspendCounter++,fa=un=null,Ce=n,O.H=l,O.A=r,ye===null&&(ke=null,xe=0,Bi()),f}function By(){for(;ye!==null;)xh(ye)}function Hy(e,t){var a=Ce;Ce|=2;var n=gh(),l=vh();ke!==e||xe!==t?(hr=null,dr=Tt()+500,In(e,t)):Fn=dl(e,t);e:do try{if(Oe!==0&&ye!==null){t=ye;var r=Mt;t:switch(Oe){case 1:Oe=0,Mt=null,Pn(e,t,r,1);break;case 2:case 9:if(_f(r)){Oe=0,Mt=null,bh(t);break}t=function(){Oe!==2&&Oe!==9||ke!==e||(Oe=7),na(e)},r.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:_f(r)?(Oe=0,Mt=null,bh(t)):(Oe=0,Mt=null,Pn(e,t,r,7));break;case 5:var f=null;switch(ye.tag){case 26:f=ye.memoizedState;case 5:case 27:var m=ye;if(f?ip(f):m.stateNode.complete){Oe=0,Mt=null;var E=m.sibling;if(E!==null)ye=E;else{var C=m.return;C!==null?(ye=C,yr(C)):ye=null}break t}}Oe=0,Mt=null,Pn(e,t,r,5);break;case 6:Oe=0,Mt=null,Pn(e,t,r,6);break;case 8:Io(),Qe=6;break e;default:throw Error(o(462))}}Uy();break}catch(U){mh(e,U)}while(!0);return fa=un=null,O.H=n,O.A=l,Ce=a,ye!==null?0:(ke=null,xe=0,Bi(),Qe)}function Uy(){for(;ye!==null&&!r0();)xh(ye)}function xh(e){var t=Vd(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?yr(e):ye=t}function bh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ud(a,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Ud(a,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:po(t);default:Qd(a,t),t=ye=vf(t,Sa),t=Vd(a,t,Sa)}e.memoizedProps=e.pendingProps,t===null?yr(e):ye=t}function Pn(e,t,a,n){fa=un=null,po(t),Yn=null,_l=0;var l=t.return;try{if(Ty(e,l,t,a,xe)){Qe=1,nr(e,Lt(a,e.current)),ye=null;return}}catch(r){if(l!==null)throw ye=l,r;Qe=1,nr(e,Lt(a,e.current)),ye=null;return}t.flags&32768?(Re||n===1?e=!0:Fn||(xe&536870912)!==0?e=!1:(ka=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Sh(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){Sh(t,ka);return}e=t.return;var a=Cy(t.alternate,t,Sa);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Qe===0&&(Qe=5)}function Sh(e,t){do{var a=_y(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);Qe=6,ye=null}function Eh(e,t,a,n,l,r,f,m,E){e.cancelPendingCommit=null;do gr();while(tt!==0);if((Ce&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=qu,y0(e,a,r,f,m,E),e===ke&&(ye=ke=null,xe=0),Wn=t,Ga=e,Ea=a,Fo=r,$o=l,fh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gy(xi,function(){return jh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null,l=Z.p,Z.p=2,f=Ce,Ce|=4;try{wy(e,t,a)}finally{Ce=f,Z.p=l,O.T=n}}tt=1,Rh(),Ah(),Th()}}function Rh(){if(tt===1){tt=0;var e=Ga,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var n=Z.p;Z.p=2;var l=Ce;Ce|=4;try{nh(t,e);var r=fs,f=sf(e.containerInfo),m=r.focusedElem,E=r.selectionRange;if(f!==m&&m&&m.ownerDocument&&of(m.ownerDocument.documentElement,m)){if(E!==null&&Bu(m)){var C=E.start,U=E.end;if(U===void 0&&(U=C),"selectionStart"in m)m.selectionStart=C,m.selectionEnd=Math.min(U,m.value.length);else{var q=m.ownerDocument||document,w=q&&q.defaultView||window;if(w.getSelection){var B=w.getSelection(),$=m.textContent.length,ne=Math.min(E.start,$),He=E.end===void 0?ne:Math.min(E.end,$);!B.extend&&ne>He&&(f=He,He=ne,ne=f);var A=uf(m,ne),R=uf(m,He);if(A&&R&&(B.rangeCount!==1||B.anchorNode!==A.node||B.anchorOffset!==A.offset||B.focusNode!==R.node||B.focusOffset!==R.offset)){var j=q.createRange();j.setStart(A.node,A.offset),B.removeAllRanges(),ne>He?(B.addRange(j),B.extend(R.node,R.offset)):(j.setEnd(R.node,R.offset),B.addRange(j))}}}}for(q=[],B=m;B=B.parentNode;)B.nodeType===1&&q.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<q.length;m++){var L=q[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}_r=!!cs,fs=cs=null}finally{Ce=l,Z.p=n,O.T=a}}e.current=t,tt=2}}function Ah(){if(tt===2){tt=0;var e=Ga,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var n=Z.p;Z.p=2;var l=Ce;Ce|=4;try{Id(e,t.alternate,t)}finally{Ce=l,Z.p=n,O.T=a}}tt=3}}function Th(){if(tt===4||tt===3){tt=0,u0();var e=Ga,t=Wn,a=Ea,n=fh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,Wn=Ga=null,zh(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qa=null),yu(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(fl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=O.T,l=Z.p,Z.p=2,O.T=null;try{for(var r=e.onRecoverableError,f=0;f<n.length;f++){var m=n[f];r(m.value,{componentStack:m.stack})}}finally{O.T=t,Z.p=l}}(Ea&3)!==0&&gr(),na(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Wo?Zl++:(Zl=0,Wo=e):Zl=0,Kl(0)}}function zh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,jl(t)))}function gr(){return Rh(),Ah(),Th(),jh()}function jh(){if(tt!==5)return!1;var e=Ga,t=Fo;Fo=0;var a=yu(Ea),n=O.T,l=Z.p;try{Z.p=32>a?32:a,O.T=null,a=$o,$o=null;var r=Ga,f=Ea;if(tt=0,Wn=Ga=null,Ea=0,(Ce&6)!==0)throw Error(o(331));var m=Ce;if(Ce|=4,oh(r.current),ih(r,r.current,f,a),Ce=m,Kl(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(fl,r)}catch{}return!0}finally{Z.p=l,O.T=n,zh(e,t)}}function Ch(e,t,a){t=Lt(a,t),t=_o(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(hl(e,2),na(e))}function Me(e,t,a){if(e.tag===3)Ch(e,e,a);else for(;t!==null;){if(t.tag===3){Ch(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qa===null||!qa.has(n))){e=Lt(a,e),a=_d(2),n=Na(t,a,2),n!==null&&(wd(a,n,t,e),hl(n,2),na(n));break}}t=t.return}}function es(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)||(Zo=!0,l.add(a),e=ky.bind(null,e,t,a),t.then(e,e))}function ky(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(xe&a)===a&&(Qe===4||Qe===3&&(xe&62914560)===xe&&300>Tt()-fr?(Ce&2)===0&&In(e,0):Ko|=a,$n===xe&&($n=0)),na(e)}function _h(e,t){t===0&&(t=Ec()),e=nn(e,t),e!==null&&(hl(e,t),na(e))}function Ly(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_h(e,a)}function qy(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(o(314))}n!==null&&n.delete(t),_h(e,a)}function Gy(e,t){return du(e,t)}var vr=null,el=null,ts=!1,xr=!1,as=!1,Va=0;function na(e){e!==el&&e.next===null&&(el===null?vr=el=e:el=el.next=e),xr=!0,ts||(ts=!0,Vy())}function Kl(e,t){if(!as&&xr){as=!0;do for(var a=!1,n=vr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var f=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-jt(42|e)+1)-1,r&=l&~(f&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Dh(n,r))}else r=xe,r=Ri(n,n===ke?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||dl(n,r)||(a=!0,Dh(n,r));n=n.next}while(a);as=!1}}function Yy(){wh()}function wh(){xr=ts=!1;var e=0;Va!==0&&Py()&&(e=Va);for(var t=Tt(),a=null,n=vr;n!==null;){var l=n.next,r=Oh(n,t);r===0?(n.next=null,a===null?vr=l:a.next=l,l===null&&(el=a)):(a=n,(e!==0||(r&3)!==0)&&(xr=!0)),n=l}tt!==0&&tt!==5||Kl(e),Va!==0&&(Va=0)}function Oh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var f=31-jt(r),m=1<<f,E=l[f];E===-1?((m&a)===0||(m&n)!==0)&&(l[f]=m0(m,t)):E<=t&&(e.expiredLanes|=m),r&=~m}if(t=ke,a=xe,a=Ri(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&hu(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&hu(n),yu(a)){case 2:case 8:a=bc;break;case 32:a=xi;break;case 268435456:a=Sc;break;default:a=xi}return n=Mh.bind(null,e),a=du(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&hu(n),e.callbackPriority=2,e.callbackNode=null,2}function Mh(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(gr()&&e.callbackNode!==a)return null;var n=xe;return n=Ri(e,e===ke?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(hh(e,n,t),Oh(e,Tt()),e.callbackNode!=null&&e.callbackNode===a?Mh.bind(null,e):null)}function Dh(e,t){if(gr())return null;hh(e,t,!0)}function Vy(){tg(function(){(Ce&6)!==0?du(xc,Yy):wh()})}function ns(){if(Va===0){var e=Ln;e===0&&(e=bi,bi<<=1,(bi&261888)===0&&(bi=256)),Va=e}return Va}function Nh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ji(""+e)}function Bh(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 Xy(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=Nh((l[mt]||null).action),f=n.submitter;f&&(t=(t=f[mt]||null)?Nh(t.formAction):f.getAttribute("formAction"),t!==null&&(r=t,f=null));var m=new Oi("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Va!==0){var E=f?Bh(l,f):new FormData(l);Ro(a,{pending:!0,data:E,method:l.method,action:r},null,E)}}else typeof r=="function"&&(m.preventDefault(),E=f?Bh(l,f):new FormData(l),Ro(a,{pending:!0,data:E,method:l.method,action:r},r,E))},currentTarget:l}]})}}for(var ls=0;ls<Lu.length;ls++){var is=Lu[ls],Qy=is.toLowerCase(),Zy=is[0].toUpperCase()+is.slice(1);Kt(Qy,"on"+Zy)}Kt(df,"onAnimationEnd"),Kt(hf,"onAnimationIteration"),Kt(pf,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(oy,"onTransitionRun"),Kt(sy,"onTransitionStart"),Kt(cy,"onTransitionCancel"),Kt(mf,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("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 Jl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function Hh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var f=n.length-1;0<=f;f--){var m=n[f],E=m.instance,C=m.currentTarget;if(m=m.listener,E!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=C;try{r(l)}catch(U){Ni(U)}l.currentTarget=null,r=E}else for(f=0;f<n.length;f++){if(m=n[f],E=m.instance,C=m.currentTarget,m=m.listener,E!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=C;try{r(l)}catch(U){Ni(U)}l.currentTarget=null,r=E}}}}function ge(e,t){var a=t[gu];a===void 0&&(a=t[gu]=new Set);var n=e+"__bubble";a.has(n)||(Uh(t,e,2,!1),a.add(n))}function rs(e,t,a){var n=0;t&&(n|=4),Uh(a,e,n,t)}var br="_reactListening"+Math.random().toString(36).slice(2);function us(e){if(!e[br]){e[br]=!0,_c.forEach(function(a){a!=="selectionchange"&&(Ky.has(a)||rs(a,!1,e),rs(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[br]||(t[br]=!0,rs("selectionchange",!1,t))}}function Uh(e,t,a,n){switch(dp(t)){case 2:var l=Sg;break;case 8:l=Eg;break;default:l=Es}a=l.bind(null,t,a,e),l=void 0,!zu||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 os(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var m=n.stateNode.containerInfo;if(m===l)break;if(f===4)for(f=n.return;f!==null;){var E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===l)return;f=f.return}for(;m!==null;){if(f=En(m),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){n=r=f;continue e}m=m.parentNode}}n=n.return}Gc(function(){var C=r,U=Au(a),q=[];e:{var w=yf.get(e);if(w!==void 0){var B=Oi,$=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":B=q0;break;case"focusin":$="focus",B=wu;break;case"focusout":$="blur",B=wu;break;case"beforeblur":case"afterblur":B=wu;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":B=Xc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=C0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=V0;break;case df:case hf:case pf:B=O0;break;case mf:B=Q0;break;case"scroll":case"scrollend":B=z0;break;case"wheel":B=K0;break;case"copy":case"cut":case"paste":B=D0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Zc;break;case"toggle":case"beforetoggle":B=F0}var ne=(t&4)!==0,He=!ne&&(e==="scroll"||e==="scrollend"),A=ne?w!==null?w+"Capture":null:w;ne=[];for(var R=C,j;R!==null;){var L=R;if(j=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||j===null||A===null||(L=yl(R,A),L!=null&&ne.push(Fl(R,L,j))),He)break;R=R.return}0<ne.length&&(w=new B(w,$,null,a,U),q.push({event:w,listeners:ne}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",w&&a!==Ru&&($=a.relatedTarget||a.fromElement)&&(En($)||$[Sn]))break e;if((B||w)&&(w=U.window===U?U:(w=U.ownerDocument)?w.defaultView||w.parentWindow:window,B?($=a.relatedTarget||a.toElement,B=C,$=$?En($):null,$!==null&&(He=h($),ne=$.tag,$!==He||ne!==5&&ne!==27&&ne!==6)&&($=null)):(B=null,$=C),B!==$)){if(ne=Xc,L="onMouseLeave",A="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Zc,L="onPointerLeave",A="onPointerEnter",R="pointer"),He=B==null?w:ml(B),j=$==null?w:ml($),w=new ne(L,R+"leave",B,a,U),w.target=He,w.relatedTarget=j,L=null,En(U)===C&&(ne=new ne(A,R+"enter",$,a,U),ne.target=j,ne.relatedTarget=He,L=ne),He=L,B&&$)t:{for(ne=Jy,A=B,R=$,j=0,L=A;L;L=ne(L))j++;L=0;for(var te=R;te;te=ne(te))L++;for(;0<j-L;)A=ne(A),j--;for(;0<L-j;)R=ne(R),L--;for(;j--;){if(A===R||R!==null&&A===R.alternate){ne=A;break t}A=ne(A),R=ne(R)}ne=null}else ne=null;B!==null&&kh(q,w,B,ne,!1),$!==null&&He!==null&&kh(q,He,$,ne,!0)}}e:{if(w=C?ml(C):window,B=w.nodeName&&w.nodeName.toLowerCase(),B==="select"||B==="input"&&w.type==="file")var ze=ef;else if(Ic(w))if(tf)ze=iy;else{ze=ny;var P=ay}else B=w.nodeName,!B||B.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?C&&Eu(C.elementType)&&(ze=ef):ze=ly;if(ze&&(ze=ze(e,C))){Pc(q,ze,a,U);break e}P&&P(e,w,C),e==="focusout"&&C&&w.type==="number"&&C.memoizedProps.value!=null&&Su(w,"number",w.value)}switch(P=C?ml(C):window,e){case"focusin":(Ic(P)||P.contentEditable==="true")&&(On=P,Hu=C,Al=null);break;case"focusout":Al=Hu=On=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,cf(q,a,U);break;case"selectionchange":if(uy)break;case"keydown":case"keyup":cf(q,a,U)}var fe;if(Mu)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else wn?$c(e,a)&&(be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(be="onCompositionStart");be&&(Kc&&a.locale!=="ko"&&(wn||be!=="onCompositionStart"?be==="onCompositionEnd"&&wn&&(fe=Yc()):(ja=U,ju="value"in ja?ja.value:ja.textContent,wn=!0)),P=Sr(C,be),0<P.length&&(be=new Qc(be,e,null,a,U),q.push({event:be,listeners:P}),fe?be.data=fe:(fe=Wc(a),fe!==null&&(be.data=fe)))),(fe=W0?I0(e,a):P0(e,a))&&(be=Sr(C,"onBeforeInput"),0<be.length&&(P=new Qc("onBeforeInput","beforeinput",null,a,U),q.push({event:P,listeners:be}),P.data=fe)),Xy(q,e,C,a,U)}Hh(q,t)})}function Fl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Sr(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=yl(e,a),l!=null&&n.unshift(Fl(e,l,r)),l=yl(e,t),l!=null&&n.push(Fl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Jy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kh(e,t,a,n,l){for(var r=t._reactName,f=[];a!==null&&a!==n;){var m=a,E=m.alternate,C=m.stateNode;if(m=m.tag,E!==null&&E===n)break;m!==5&&m!==26&&m!==27||C===null||(E=C,l?(C=yl(a,r),C!=null&&f.unshift(Fl(a,C,E))):l||(C=yl(a,r),C!=null&&f.push(Fl(a,C,E)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Fy=/\r\n?/g,$y=/\u0000|\uFFFD/g;function Lh(e){return(typeof e=="string"?e:""+e).replace(Fy,`
9
+ `).replace($y,"")}function qh(e,t){return t=Lh(t),Lh(e)===t}function Be(e,t,a,n,l,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||jn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&jn(e,""+n);break;case"className":Ti(e,"class",n);break;case"tabIndex":Ti(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(e,a,n);break;case"style":Lc(e,n,r);break;case"data":if(t!=="object"){Ti(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=ji(""+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"&&Be(e,t,"name",l.name,l,null),Be(e,t,"formEncType",l.formEncType,l,null),Be(e,t,"formMethod",l.formMethod,l,null),Be(e,t,"formTarget",l.formTarget,l,null)):(Be(e,t,"encType",l.encType,l,null),Be(e,t,"method",l.method,l,null),Be(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=ji(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ua);break;case"onScroll":n!=null&&ge("scroll",e);break;case"onScrollEnd":n!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(o(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=ji(""+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":ge("beforetoggle",e),ge("toggle",e),Ai(e,"popover",n);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ai(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=A0.get(a)||a,Ai(e,a,n))}}function ss(e,t,a,n,l,r){switch(a){case"style":Lc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?jn(e,n):(typeof n=="number"||typeof n=="bigint")&&jn(e,""+n);break;case"onScroll":n!=null&&ge("scroll",e);break;case"onScrollEnd":n!=null&&ge("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wc.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[mt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,l),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ai(e,a,n)}}}function ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var n=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=null)switch(r){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Be(e,t,r,f,a,null)}}l&&Be(e,t,"srcSet",a.srcSet,a,null),n&&Be(e,t,"src",a.src,a,null);return;case"input":ge("invalid",e);var m=r=f=l=null,E=null,C=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":l=U;break;case"type":f=U;break;case"checked":E=U;break;case"defaultChecked":C=U;break;case"value":r=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:Be(e,t,n,U,a,null)}}Bc(e,r,m,E,C,f,l,!1);return;case"select":ge("invalid",e),n=f=r=null;for(l in a)if(a.hasOwnProperty(l)&&(m=a[l],m!=null))switch(l){case"value":r=m;break;case"defaultValue":f=m;break;case"multiple":n=m;default:Be(e,t,l,m,a,null)}t=r,a=f,e.multiple=!!n,t!=null?zn(e,!!n,t,!1):a!=null&&zn(e,!!n,a,!0);return;case"textarea":ge("invalid",e),r=l=n=null;for(f in a)if(a.hasOwnProperty(f)&&(m=a[f],m!=null))switch(f){case"value":n=m;break;case"defaultValue":l=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:Be(e,t,f,m,a,null)}Uc(e,n,l,r);return;case"option":for(E in a)a.hasOwnProperty(E)&&(n=a[E],n!=null)&&(E==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Be(e,t,E,n,a,null));return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(n=0;n<Jl.length;n++)ge(Jl[n],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("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(C in a)if(a.hasOwnProperty(C)&&(n=a[C],n!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Be(e,t,C,n,a,null)}return;default:if(Eu(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&ss(e,t,U,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&Be(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,f=null,m=null,E=null,C=null,U=null;for(B in a){var q=a[B];if(a.hasOwnProperty(B)&&q!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=q;default:n.hasOwnProperty(B)||Be(e,t,B,null,n,q)}}for(var w in n){var B=n[w];if(q=a[w],n.hasOwnProperty(w)&&(B!=null||q!=null))switch(w){case"type":r=B;break;case"name":l=B;break;case"checked":C=B;break;case"defaultChecked":U=B;break;case"value":f=B;break;case"defaultValue":m=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:B!==q&&Be(e,t,w,B,n,q)}}bu(e,f,m,E,C,U,r,l);return;case"select":B=f=m=w=null;for(r in a)if(E=a[r],a.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":B=E;default:n.hasOwnProperty(r)||Be(e,t,r,null,n,E)}for(l in n)if(r=n[l],E=a[l],n.hasOwnProperty(l)&&(r!=null||E!=null))switch(l){case"value":w=r;break;case"defaultValue":m=r;break;case"multiple":f=r;default:r!==E&&Be(e,t,l,r,n,E)}t=m,a=f,n=B,w!=null?zn(e,!!a,w,!1):!!n!=!!a&&(t!=null?zn(e,!!a,t,!0):zn(e,!!a,a?[]:"",!1));return;case"textarea":B=w=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:Be(e,t,m,null,n,l)}for(f in n)if(l=n[f],r=a[f],n.hasOwnProperty(f)&&(l!=null||r!=null))switch(f){case"value":w=l;break;case"defaultValue":B=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(o(91));break;default:l!==r&&Be(e,t,f,l,n,r)}Hc(e,w,B);return;case"option":for(var $ in a)w=a[$],a.hasOwnProperty($)&&w!=null&&!n.hasOwnProperty($)&&($==="selected"?e.selected=!1:Be(e,t,$,null,n,w));for(E in n)w=n[E],B=a[E],n.hasOwnProperty(E)&&w!==B&&(w!=null||B!=null)&&(E==="selected"?e.selected=w&&typeof w!="function"&&typeof w!="symbol":Be(e,t,E,w,n,B));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 ne in a)w=a[ne],a.hasOwnProperty(ne)&&w!=null&&!n.hasOwnProperty(ne)&&Be(e,t,ne,null,n,w);for(C in n)if(w=n[C],B=a[C],n.hasOwnProperty(C)&&w!==B&&(w!=null||B!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:Be(e,t,C,w,n,B)}return;default:if(Eu(t)){for(var He in a)w=a[He],a.hasOwnProperty(He)&&w!==void 0&&!n.hasOwnProperty(He)&&ss(e,t,He,void 0,n,w);for(U in n)w=n[U],B=a[U],!n.hasOwnProperty(U)||w===B||w===void 0&&B===void 0||ss(e,t,U,w,n,B);return}}for(var A in a)w=a[A],a.hasOwnProperty(A)&&w!=null&&!n.hasOwnProperty(A)&&Be(e,t,A,null,n,w);for(q in n)w=n[q],B=a[q],!n.hasOwnProperty(q)||w===B||w==null&&B==null||Be(e,t,q,w,n,B)}function Gh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Iy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],r=l.transferSize,f=l.initiatorType,m=l.duration;if(r&&m&&Gh(f)){for(f=0,m=l.responseEnd,n+=1;n<a.length;n++){var E=a[n],C=E.startTime;if(C>m)break;var U=E.transferSize,q=E.initiatorType;U&&Gh(q)&&(E=E.responseEnd,f+=U*(E<m?1:(m-C)/(E-C)))}if(--n,t+=8*(r+f)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cs=null,fs=null;function Er(e){return e.nodeType===9?e:e.ownerDocument}function Yh(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 Vh(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 ds(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 hs=null;function Py(){var e=window.event;return e&&e.type==="popstate"?e===hs?!1:(hs=e,!0):(hs=null,!1)}var Xh=typeof setTimeout=="function"?setTimeout:void 0,eg=typeof clearTimeout=="function"?clearTimeout:void 0,Qh=typeof Promise=="function"?Promise:void 0,tg=typeof queueMicrotask=="function"?queueMicrotask:typeof Qh<"u"?function(e){return Qh.resolve(null).then(e).catch(ag)}:Xh;function ag(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Zh(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),ll(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")$l(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$l(a);for(var r=a.firstChild;r;){var f=r.nextSibling,m=r.nodeName;r[pl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&$l(e.ownerDocument.body);a=l}while(a);ll(t)}function Kh(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 ps(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":ps(a),vu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ng(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function lg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Xt(e.nextSibling),e===null))return null;return e}function Jh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function ms(e){return e.data==="$?"||e.data==="$~"}function ys(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ig(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var gs=null;function Fh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Xt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function $h(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 Wh(e,t,a){switch(t=Er(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var Qt=new Map,Ih=new Set;function Rr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=Z.d;Z.d={f:rg,r:ug,D:og,C:sg,L:cg,m:fg,X:hg,S:dg,M:pg};function rg(){var e=Ra.f(),t=pr();return e||t}function ug(e){var t=Rn(e);t!==null&&t.tag===5&&t.type==="form"?md(t):Ra.r(e)}var tl=typeof document>"u"?null:document;function Ph(e,t,a){var n=tl;if(n&&typeof t=="string"&&t){var l=Ut(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Ih.has(l)||(Ih.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),ft(t,"link",e),at(t),n.head.appendChild(t)))}}function og(e){Ra.D(e),Ph("dns-prefetch",e,null)}function sg(e,t){Ra.C(e,t),Ph("preconnect",e,t)}function cg(e,t,a){Ra.L(e,t,a);var n=tl;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=al(e);break;case"script":r=nl(e)}Qt.has(r)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qt.set(r,e),n.querySelector(l)!==null||t==="style"&&n.querySelector(Wl(r))||t==="script"&&n.querySelector(Il(r))||(t=n.createElement("link"),ft(t,"link",e),at(t),n.head.appendChild(t)))}}function fg(e,t){Ra.m(e,t);var a=tl;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=nl(e)}if(!Qt.has(r)&&(e=v({rel:"modulepreload",href:e},t),Qt.set(r,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Il(r)))return}n=a.createElement("link"),ft(n,"link",e),at(n),a.head.appendChild(n)}}}function dg(e,t,a){Ra.S(e,t,a);var n=tl;if(n&&e){var l=An(n).hoistableStyles,r=al(e);t=t||"default";var f=l.get(r);if(!f){var m={loading:0,preload:null};if(f=n.querySelector(Wl(r)))m.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(r))&&vs(e,a);var E=f=n.createElement("link");at(E),ft(E,"link",e),E._p=new Promise(function(C,U){E.onload=C,E.onerror=U}),E.addEventListener("load",function(){m.loading|=1}),E.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Ar(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:m},l.set(r,f)}}}function hg(e,t){Ra.X(e,t);var a=tl;if(a&&e){var n=An(a).hoistableScripts,l=nl(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=v({src:e,async:!0},t),(t=Qt.get(l))&&xs(e,t),r=a.createElement("script"),at(r),ft(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function pg(e,t){Ra.M(e,t);var a=tl;if(a&&e){var n=An(a).hoistableScripts,l=nl(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=v({src:e,async:!0,type:"module"},t),(t=Qt.get(l))&&xs(e,t),r=a.createElement("script"),at(r),ft(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function ep(e,t,a,n){var l=(l=ue.current)?Rr(l):null;if(!l)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=al(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=al(a.href);var r=An(l).hoistableStyles,f=r.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,f),(r=l.querySelector(Wl(e)))&&!r._p&&(f.instance=r,f.state.loading=5),Qt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Qt.set(e,a),r||mg(l,e,a,f.state))),t&&n===null)throw Error(o(528,""));return f}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=nl(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(o(444,e))}}function al(e){return'href="'+Ut(e)+'"'}function Wl(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function mg(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ft(t,"link",a),at(t),e.head.appendChild(t))}function nl(e){return'[src="'+Ut(e)+'"]'}function Il(e){return"script[async]"+e}function ap(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,at(n),n;var l=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),at(n),ft(n,"style",l),Ar(n,a.precedence,e),t.instance=n;case"stylesheet":l=al(a.href);var r=e.querySelector(Wl(l));if(r)return t.state.loading|=4,t.instance=r,at(r),r;n=tp(a),(l=Qt.get(l))&&vs(n,l),r=(e.ownerDocument||e).createElement("link"),at(r);var f=r;return f._p=new Promise(function(m,E){f.onload=m,f.onerror=E}),ft(r,"link",n),t.state.loading|=4,Ar(r,a.precedence,e),t.instance=r;case"script":return r=nl(a.src),(l=e.querySelector(Il(r)))?(t.instance=l,at(l),l):(n=a,(l=Qt.get(r))&&(n=v({},a),xs(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),ft(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Ar(n,a.precedence,e));return t.instance}function Ar(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,r=l,f=0;f<n.length;f++){var m=n[f];if(m.dataset.precedence===t)r=m;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function vs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tr=null;function np(e,t,a){if(Tr===null){var n=new Map,l=Tr=new Map;l.set(a,n)}else l=Tr,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var r=a[l];if(!(r[pl]||r[ut]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(t)||"";f=e+f;var m=n.get(f);m?m.push(r):n.set(f,[r])}}return n}function lp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function yg(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 ip(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function gg(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=al(n.href),r=t.querySelector(Wl(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,at(r);return}r=t.ownerDocument||t,n=tp(n),(l=Qt.get(l))&&vs(n,l),r=r.createElement("link"),at(r);var f=r;f._p=new Promise(function(m,E){f.onload=m,f.onerror=E}),ft(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=zr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bs=0;function vg(e,t){return e.stylesheets&&e.count===0&&Cr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Cr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&bs===0&&(bs=62500*Iy());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Cr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>bs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function zr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var jr=null;function Cr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,jr=new Map,t.forEach(xg,e),jr=null,zr.call(e))}function xg(e,t){if(!(t.state.loading&4)){var a=jr.get(e);if(a)var n=a.get(null);else{a=new Map,jr.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var f=l[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}l=t.instance,f=l.getAttribute("data-precedence"),r=a.get(f)||n,r===n&&a.set(null,l),a.set(f,l),this.count++,n=zr.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:V,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function bg(e,t,a,n,l,r,f,m,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.hiddenUpdates=pu(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function rp(e,t,a,n,l,r,f,m,E,C,U,q){return e=new bg(e,t,a,f,E,C,U,q,m),t=1,r===!0&&(t|=24),r=_t(3,null,null,t),e.current=r,r.stateNode=e,t=Iu(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},ao(r),e}function up(e){return e?(e=Nn,e):Nn}function op(e,t,a,n,l,r){l=up(l),n.context===null?n.context=l:n.pendingContext=l,n=Da(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Na(e,n,t),a!==null&&(St(a,e,t),Ol(a,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ss(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=nn(e,67108864);t!==null&&St(t,e,67108864),Ss(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=Nt();t=mu(t);var a=nn(e,t);a!==null&&St(a,e,t),Ss(e,t)}}var _r=!0;function Sg(e,t,a,n){var l=O.T;O.T=null;var r=Z.p;try{Z.p=2,Es(e,t,a,n)}finally{Z.p=r,O.T=l}}function Eg(e,t,a,n){var l=O.T;O.T=null;var r=Z.p;try{Z.p=8,Es(e,t,a,n)}finally{Z.p=r,O.T=l}}function Es(e,t,a,n){if(_r){var l=Rs(n);if(l===null)os(e,t,n,wr,a),hp(e,n);else if(Ag(l,e,t,a,n))n.stopPropagation();else if(hp(e,n),t&4&&-1<Rg.indexOf(e)){for(;l!==null;){var r=Rn(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Ia(r.pendingLanes);if(f!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var E=1<<31-jt(f);m.entanglements[1]|=E,f&=~E}na(r),(Ce&6)===0&&(dr=Tt()+500,Kl(0))}}break;case 31:case 13:m=nn(r,2),m!==null&&St(m,r,2),pr(),Ss(r,2)}if(r=Rs(n),r===null&&os(e,t,n,wr,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else os(e,t,n,null,a)}}function Rs(e){return e=Au(e),As(e)}var wr=null;function As(e){if(wr=null,e=En(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wr=e,null}function dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(o0()){case xc:return 2;case bc:return 8;case xi:case s0:return 32;case Sc:return 268435456;default:return 32}default:return 32}}var Ts=!1,Qa=null,Za=null,Ka=null,ei=new Map,ti=new Map,Ja=[],Rg="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 hp(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,n,l,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[l]},t!==null&&(t=Rn(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Ag(e,t,a,n,l){switch(t){case"focusin":return Qa=ai(Qa,e,t,a,n,l),!0;case"dragenter":return Za=ai(Za,e,t,a,n,l),!0;case"mouseover":return Ka=ai(Ka,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return ei.set(r,ai(ei.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ti.set(r,ai(ti.get(r)||null,e,t,a,n,l)),!0}return!1}function pp(e){var t=En(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,jc(e.priority,function(){fp(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,jc(e.priority,function(){fp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Or(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Rs(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Ru=n,a.target.dispatchEvent(n),Ru=null}else return t=Rn(a),t!==null&&cp(t),e.blockedOn=a,!1;t.shift()}return!0}function mp(e,t,a){Or(e)&&a.delete(t)}function Tg(){Ts=!1,Qa!==null&&Or(Qa)&&(Qa=null),Za!==null&&Or(Za)&&(Za=null),Ka!==null&&Or(Ka)&&(Ka=null),ei.forEach(mp),ti.forEach(mp)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ts||(Ts=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Tg)))}var Dr=null;function yp(e){Dr!==e&&(Dr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Dr===e&&(Dr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(As(n||a)===null)continue;break}var r=Rn(a);r!==null&&(e.splice(t,3),t-=3,Ro(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function ll(e){function t(E){return Mr(E,e)}Qa!==null&&Mr(Qa,e),Za!==null&&Mr(Za,e),Ka!==null&&Mr(Ka,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Ja.length;a++){var n=Ja[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)pp(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],r=a[n+1],f=l[mt]||null;if(typeof r=="function")f||yp(a);else if(f){var m=null;if(r&&r.hasAttribute("formAction")){if(l=r,f=r[mt]||null)m=f.formAction;else if(As(l)!==null)continue}else m=f.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),yp(a)}}}function gp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return l=f})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function zs(e){this._internalRoot=e}Nr.prototype.render=zs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=Nt();op(a,n,e,t,null,null)},Nr.prototype.unmount=zs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),pr(),t[Sn]=null}};function Nr(e){this._internalRoot=e}Nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=zc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&pp(e)}};var vp=u.version;if(vp!=="19.2.4")throw Error(o(527,vp,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var zg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Br.isDisabled&&Br.supportsFiber)try{fl=Br.inject(zg),zt=Br}catch{}}return li.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,n="",l=Td,r=zd,f=jd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=rp(e,1,!1,null,null,a,n,null,l,r,f,gp),e[Sn]=t.current,us(e),new zs(t)},li.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var n=!1,l="",r=Td,f=zd,m=jd,E=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),t=rp(e,1,!0,t,a??null,n,l,E,r,f,m,gp),t.context=up(null),a=t.current,n=Nt(),n=mu(n),l=Da(n),l.callback=null,Na(a,l,n),a=n,t.current.lanes=a,hl(t,a),na(t),e[Sn]=t.current,us(e),new Nr(t)},li.version="19.2.4",li}var Cp;function Hg(){if(Cp)return _s.exports;Cp=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(u){console.error(u)}}return i(),_s.exports=Bg(),_s.exports}var Ug=Hg();const kg=cm(Ug);var _p="popstate";function wp(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Lg(i={}){function u(o,c){let h=c.state?.masked,{pathname:p,search:g,hash:x}=h||o.location;return Qs("",{pathname:p,search:g,hash:x},c.state&&c.state.usr||null,c.state&&c.state.key||"default",h?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function s(o,c){return typeof c=="string"?c:oi(c)}return Gg(u,s,null,i)}function Ve(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Wt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function qg(){return Math.random().toString(36).substring(2,10)}function Op(i,u){return{usr:i.state,key:i.key,idx:u,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Qs(i,u,s=null,o,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?rl(u):u,state:s,key:u&&u.key||o||qg(),unstable_mask:c}}function oi({pathname:i="/",search:u="",hash:s=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function rl(i){let u={};if(i){let s=i.indexOf("#");s>=0&&(u.hash=i.substring(s),i=i.substring(0,s));let o=i.indexOf("?");o>=0&&(u.search=i.substring(o),i=i.substring(0,o)),i&&(u.pathname=i)}return u}function Gg(i,u,s,o={}){let{window:c=document.defaultView,v5Compat:h=!1}=o,p=c.history,g="POP",x=null,y=b();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function b(){return(p.state||{idx:null}).idx}function v(){g="POP";let _=b(),Q=_==null?null:_-y;y=_,x&&x({action:g,location:H.location,delta:Q})}function N(_,Q){g="PUSH";let Y=wp(_)?_:Qs(H.location,_,Q);y=b()+1;let V=Op(Y,y),ae=H.createHref(Y.unstable_mask||Y);try{p.pushState(V,"",ae)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;c.location.assign(ae)}h&&x&&x({action:g,location:H.location,delta:1})}function k(_,Q){g="REPLACE";let Y=wp(_)?_:Qs(H.location,_,Q);y=b();let V=Op(Y,y),ae=H.createHref(Y.unstable_mask||Y);p.replaceState(V,"",ae),h&&x&&x({action:g,location:H.location,delta:0})}function z(_){return Yg(_)}let H={get action(){return g},get location(){return i(c,p)},listen(_){if(x)throw new Error("A history only accepts one active listener");return c.addEventListener(_p,v),x=_,()=>{c.removeEventListener(_p,v),x=null}},createHref(_){return u(c,_)},createURL:z,encodeLocation(_){let Q=z(_);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:N,replace:k,go(_){return p.go(_)}};return H}function Yg(i,u=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(s,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:oi(i);return o=o.replace(/ $/,"%20"),!u&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function fm(i,u,s="/"){return Vg(i,u,s,!1)}function Vg(i,u,s,o){let c=typeof u=="string"?rl(u):u,h=Aa(c.pathname||"/",s);if(h==null)return null;let p=dm(i);Xg(p);let g=null;for(let x=0;g==null&&x<p.length;++x){let y=t1(h);g=Pg(p[x],y,o)}return g}function dm(i,u=[],s=[],o="",c=!1){let h=(p,g,x=c,y)=>{let b={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:g,route:p};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&x)return;Ve(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let v=la([o,b.relativePath]),N=s.concat(b);p.children&&p.children.length>0&&(Ve(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),dm(p.children,u,N,v,x)),!(p.path==null&&!p.index)&&u.push({path:v,score:Wg(v,p.index),routesMeta:N})};return i.forEach((p,g)=>{if(p.path===""||!p.path?.includes("?"))h(p,g);else for(let x of hm(p.path))h(p,g,!0,x)}),u}function hm(i){let u=i.split("/");if(u.length===0)return[];let[s,...o]=u,c=s.endsWith("?"),h=s.replace(/\?$/,"");if(o.length===0)return c?[h,""]:[h];let p=hm(o.join("/")),g=[];return g.push(...p.map(x=>x===""?h:[h,x].join("/"))),c&&g.push(...p),g.map(x=>i.startsWith("/")&&x===""?"/":x)}function Xg(i){i.sort((u,s)=>u.score!==s.score?s.score-u.score:Ig(u.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var Qg=/^:[\w-]+$/,Zg=3,Kg=2,Jg=1,Fg=10,$g=-2,Mp=i=>i==="*";function Wg(i,u){let s=i.split("/"),o=s.length;return s.some(Mp)&&(o+=$g),u&&(o+=Kg),s.filter(c=>!Mp(c)).reduce((c,h)=>c+(Qg.test(h)?Zg:h===""?Jg:Fg),o)}function Ig(i,u){return i.length===u.length&&i.slice(0,-1).every((o,c)=>o===u[c])?i[i.length-1]-u[u.length-1]:0}function Pg(i,u,s=!1){let{routesMeta:o}=i,c={},h="/",p=[];for(let g=0;g<o.length;++g){let x=o[g],y=g===o.length-1,b=h==="/"?u:u.slice(h.length)||"/",v=Jr({path:x.relativePath,caseSensitive:x.caseSensitive,end:y},b),N=x.route;if(!v&&y&&s&&!o[o.length-1].route.index&&(v=Jr({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},b)),!v)return null;Object.assign(c,v.params),p.push({params:c,pathname:la([h,v.pathname]),pathnameBase:i1(la([h,v.pathnameBase])),route:N}),v.pathnameBase!=="/"&&(h=la([h,v.pathnameBase]))}return p}function Jr(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,o]=e1(i.path,i.caseSensitive,i.end),c=u.match(s);if(!c)return null;let h=c[0],p=h.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:o.reduce((y,{paramName:b,isOptional:v},N)=>{if(b==="*"){let z=g[N]||"";p=h.slice(0,h.length-z.length).replace(/(.)\/+$/,"$1")}const k=g[N];return v&&!k?y[b]=void 0:y[b]=(k||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:p,pattern:i}}function e1(i,u=!1,s=!0){Wt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,x,y,b)=>{if(o.push({paramName:g,isOptional:x!=null}),x){let v=b.charAt(y+p.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,u?void 0:"i"),o]}function t1(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Wt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function Aa(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let s=u.endsWith("/")?u.length-1:u.length,o=i.charAt(s);return o&&o!=="/"?null:i.slice(s)||"/"}var a1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function n1(i,u="/"){let{pathname:s,search:o="",hash:c=""}=typeof i=="string"?rl(i):i,h;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?h=Dp(s.substring(1),"/"):h=Dp(s,u)):h=u,{pathname:h,search:r1(o),hash:u1(c)}}function Dp(i,u){let s=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Ds(i,u,s,o){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function l1(i){return i.filter((u,s)=>s===0||u.route.path&&u.route.path.length>0)}function lc(i){let u=l1(i);return u.map((s,o)=>o===u.length-1?s.pathname:s.pathnameBase)}function Ir(i,u,s,o=!1){let c;typeof i=="string"?c=rl(i):(c={...i},Ve(!c.pathname||!c.pathname.includes("?"),Ds("?","pathname","search",c)),Ve(!c.pathname||!c.pathname.includes("#"),Ds("#","pathname","hash",c)),Ve(!c.search||!c.search.includes("#"),Ds("#","search","hash",c)));let h=i===""||c.pathname==="",p=h?"/":c.pathname,g;if(p==null)g=s;else{let v=u.length-1;if(!o&&p.startsWith("..")){let N=p.split("/");for(;N[0]==="..";)N.shift(),v-=1;c.pathname=N.join("/")}g=v>=0?u[v]:"/"}let x=n1(c,g),y=p&&p!=="/"&&p.endsWith("/"),b=(h||p===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(y||b)&&(x.pathname+="/"),x}var la=i=>i.join("/").replace(/\/\/+/g,"/"),i1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),r1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,u1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,o1=class{constructor(i,u,s,o=!1){this.status=i,this.statusText=u||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function s1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function c1(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function mm(i,u){let s=i;if(typeof s!="string"||!a1.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,c=!1;if(pm)try{let h=new URL(window.location.href),p=s.startsWith("//")?new URL(h.protocol+s):new URL(s),g=Aa(p.pathname,u);p.origin===h.origin&&g!=null?s=g+p.search+p.hash:c=!0}catch{Wt(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ym=["POST","PUT","PATCH","DELETE"];new Set(ym);var f1=["GET",...ym];new Set(f1);var ul=T.createContext(null);ul.displayName="DataRouter";var Pr=T.createContext(null);Pr.displayName="DataRouterState";var d1=T.createContext(!1),gm=T.createContext({isTransitioning:!1});gm.displayName="ViewTransition";var h1=T.createContext(new Map);h1.displayName="Fetchers";var p1=T.createContext(null);p1.displayName="Await";var Bt=T.createContext(null);Bt.displayName="Navigation";var ci=T.createContext(null);ci.displayName="Location";var ia=T.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var ic=T.createContext(null);ic.displayName="RouteError";var vm="REACT_ROUTER_ERROR",m1="REDIRECT",y1="ROUTE_ERROR_RESPONSE";function g1(i){if(i.startsWith(`${vm}:${m1}:{`))try{let u=JSON.parse(i.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function v1(i){if(i.startsWith(`${vm}:${y1}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new o1(u.status,u.statusText,u.data)}catch{}}function x1(i,{relative:u}={}){Ve(ol(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=T.useContext(Bt),{hash:c,pathname:h,search:p}=fi(i,{relative:u}),g=h;return s!=="/"&&(g=h==="/"?s:la([s,h])),o.createHref({pathname:g,search:p,hash:c})}function ol(){return T.useContext(ci)!=null}function It(){return Ve(ol(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ci).location}var xm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bm(i){T.useContext(Bt).static||T.useLayoutEffect(i)}function eu(){let{isDataRoute:i}=T.useContext(ia);return i?M1():b1()}function b1(){Ve(ol(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(ul),{basename:u,navigator:s}=T.useContext(Bt),{matches:o}=T.useContext(ia),{pathname:c}=It(),h=JSON.stringify(lc(o)),p=T.useRef(!1);return bm(()=>{p.current=!0}),T.useCallback((x,y={})=>{if(Wt(p.current,xm),!p.current)return;if(typeof x=="number"){s.go(x);return}let b=Ir(x,JSON.parse(h),c,y.relative==="path");i==null&&u!=="/"&&(b.pathname=b.pathname==="/"?u:la([u,b.pathname])),(y.replace?s.replace:s.push)(b,y.state,y)},[u,s,h,c,i])}T.createContext(null);function fi(i,{relative:u}={}){let{matches:s}=T.useContext(ia),{pathname:o}=It(),c=JSON.stringify(lc(s));return T.useMemo(()=>Ir(i,JSON.parse(c),o,u==="path"),[i,c,o,u])}function S1(i,u){return Sm(i,u)}function Sm(i,u,s){Ve(ol(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=T.useContext(Bt),{matches:c}=T.useContext(ia),h=c[c.length-1],p=h?h.params:{},g=h?h.pathname:"/",x=h?h.pathnameBase:"/",y=h&&h.route;{let _=y&&y.path||"";Rm(g,!y||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+
11
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let b=It(),v;if(u){let _=typeof u=="string"?rl(u):u;Ve(x==="/"||_.pathname?.startsWith(x),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${_.pathname}" was given in the \`location\` prop.`),v=_}else v=b;let N=v.pathname||"/",k=N;if(x!=="/"){let _=x.replace(/^\//,"").split("/");k="/"+N.replace(/^\//,"").split("/").slice(_.length).join("/")}let z=fm(i,{pathname:k});Wt(y||z!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Wt(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let H=z1(z&&z.map(_=>Object.assign({},_,{params:Object.assign({},p,_.params),pathname:la([x,o.encodeLocation?o.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?x:la([x,o.encodeLocation?o.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),c,s);return u&&H?T.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},H):H}function E1(){let i=O1(),u=s1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:h},"ErrorBoundary")," or"," ",T.createElement("code",{style:h},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},u),s?T.createElement("pre",{style:c},s):null,p)}var R1=T.createElement(E1,null),Em=class extends T.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,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){this.props.onError?this.props.onError(i,u):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 s=v1(i.digest);s&&(i=s)}let u=i!==void 0?T.createElement(ia.Provider,{value:this.props.routeContext},T.createElement(ic.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?T.createElement(A1,{error:i},u):u}};Em.contextType=d1;var Ns=new WeakMap;function A1({children:i,error:u}){let{basename:s}=T.useContext(Bt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let o=g1(u.digest);if(o){let c=Ns.get(u);if(c)throw c;let h=mm(o.location,s);if(pm&&!Ns.get(u))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Ns.set(u,p),p}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function T1({routeContext:i,match:u,children:s}){let o=T.useContext(ul);return o&&o.static&&o.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=u.route.id),T.createElement(ia.Provider,{value:i},s)}function z1(i,u=[],s){let o=s?.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let c=i,h=o?.errors;if(h!=null){let b=c.findIndex(v=>v.route.id&&h?.[v.route.id]!==void 0);Ve(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let p=!1,g=-1;if(s&&o){p=o.renderFallback;for(let b=0;b<c.length;b++){let v=c[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=b),v.route.id){let{loaderData:N,errors:k}=o,z=v.route.loader&&!N.hasOwnProperty(v.route.id)&&(!k||k[v.route.id]===void 0);if(v.route.lazy||z){s.isStatic&&(p=!0),g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}}let x=s?.onError,y=o&&x?(b,v)=>{x(b,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:c1(o.matches),errorInfo:v})}:void 0;return c.reduceRight((b,v,N)=>{let k,z=!1,H=null,_=null;o&&(k=h&&v.route.id?h[v.route.id]:void 0,H=v.route.errorElement||R1,p&&(g<0&&N===0?(Rm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,_=null):g===N&&(z=!0,_=v.route.hydrateFallbackElement||null)));let Q=u.concat(c.slice(0,N+1)),Y=()=>{let V;return k?V=H:z?V=_:v.route.Component?V=T.createElement(v.route.Component,null):v.route.element?V=v.route.element:V=b,T.createElement(T1,{match:v,routeContext:{outlet:b,matches:Q,isDataRoute:o!=null},children:V})};return o&&(v.route.ErrorBoundary||v.route.errorElement||N===0)?T.createElement(Em,{location:o.location,revalidation:o.revalidation,component:H,error:k,children:Y(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:y}):Y()},null)}function rc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j1(i){let u=T.useContext(ul);return Ve(u,rc(i)),u}function C1(i){let u=T.useContext(Pr);return Ve(u,rc(i)),u}function _1(i){let u=T.useContext(ia);return Ve(u,rc(i)),u}function uc(i){let u=_1(i),s=u.matches[u.matches.length-1];return Ve(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function w1(){return uc("useRouteId")}function O1(){let i=T.useContext(ic),u=C1("useRouteError"),s=uc("useRouteError");return i!==void 0?i:u.errors?.[s]}function M1(){let{router:i}=j1("useNavigate"),u=uc("useNavigate"),s=T.useRef(!1);return bm(()=>{s.current=!0}),T.useCallback(async(c,h={})=>{Wt(s.current,xm),s.current&&(typeof c=="number"?await i.navigate(c):await i.navigate(c,{fromRouteId:u,...h}))},[i,u])}var Np={};function Rm(i,u,s){!u&&!Np[i]&&(Np[i]=!0,Wt(!1,s))}T.memo(D1);function D1({routes:i,future:u,state:s,isStatic:o,onError:c}){return Sm(i,void 0,{state:s,isStatic:o,onError:c})}function Bp({to:i,replace:u,state:s,relative:o}){Ve(ol(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=T.useContext(Bt);Wt(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=T.useContext(ia),{pathname:p}=It(),g=eu(),x=Ir(i,lc(h),p,o==="path"),y=JSON.stringify(x);return T.useEffect(()=>{g(JSON.parse(y),{replace:u,state:s,relative:o})},[g,y,o,u,s]),null}function $t(i){Ve(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function N1({basename:i="/",children:u=null,location:s,navigationType:o="POP",navigator:c,static:h=!1,unstable_useTransitions:p}){Ve(!ol(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),x=T.useMemo(()=>({basename:g,navigator:c,static:h,unstable_useTransitions:p,future:{}}),[g,c,h,p]);typeof s=="string"&&(s=rl(s));let{pathname:y="/",search:b="",hash:v="",state:N=null,key:k="default",unstable_mask:z}=s,H=T.useMemo(()=>{let _=Aa(y,g);return _==null?null:{location:{pathname:_,search:b,hash:v,state:N,key:k,unstable_mask:z},navigationType:o}},[g,y,b,v,N,k,o,z]);return Wt(H!=null,`<Router basename="${g}"> is not able to match the URL "${y}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:T.createElement(Bt.Provider,{value:x},T.createElement(ci.Provider,{children:u,value:H}))}function B1({children:i,location:u}){return S1(Zs(i),u)}function Zs(i,u=[]){let s=[];return T.Children.forEach(i,(o,c)=>{if(!T.isValidElement(o))return;let h=[...u,c];if(o.type===T.Fragment){s.push.apply(s,Zs(o.props.children,h));return}Ve(o.type===$t,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!o.props.index||!o.props.children,"An index route cannot have child routes.");let p={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(p.children=Zs(o.props.children,h)),s.push(p)}),s}var Yr="get",Vr="application/x-www-form-urlencoded";function tu(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function H1(i){return tu(i)&&i.tagName.toLowerCase()==="button"}function U1(i){return tu(i)&&i.tagName.toLowerCase()==="form"}function k1(i){return tu(i)&&i.tagName.toLowerCase()==="input"}function L1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function q1(i,u){return i.button===0&&(!u||u==="_self")&&!L1(i)}var Hr=null;function G1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var Y1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bs(i){return i!=null&&!Y1.has(i)?(Wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vr}"`),null):i}function V1(i,u){let s,o,c,h,p;if(U1(i)){let g=i.getAttribute("action");o=g?Aa(g,u):null,s=i.getAttribute("method")||Yr,c=Bs(i.getAttribute("enctype"))||Vr,h=new FormData(i)}else if(H1(i)||k1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=i.getAttribute("formaction")||g.getAttribute("action");if(o=x?Aa(x,u):null,s=i.getAttribute("formmethod")||g.getAttribute("method")||Yr,c=Bs(i.getAttribute("formenctype"))||Bs(g.getAttribute("enctype"))||Vr,h=new FormData(g,i),!G1()){let{name:y,type:b,value:v}=i;if(b==="image"){let N=y?`${y}.`:"";h.append(`${N}x`,"0"),h.append(`${N}y`,"0")}else y&&h.append(y,v)}}else{if(tu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Yr,o=null,c=Vr,p=i}return h&&c==="text/plain"&&(p=h,h=void 0),{action:o,method:s.toLowerCase(),encType:c,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oc(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function X1(i,u,s,o){let c=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:c.pathname==="/"?c.pathname=`_root.${o}`:u&&Aa(c.pathname,u)==="/"?c.pathname=`${u.replace(/\/$/,"")}/_root.${o}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${o}`,c}async function Q1(i,u){if(i.id in u)return u[i.id];try{let s=await import(i.module);return u[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Z1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function K1(i,u,s){let o=await Promise.all(i.map(async c=>{let h=u.routes[c.route.id];if(h){let p=await Q1(h,s);return p.links?p.links():[]}return[]}));return W1(o.flat(1).filter(Z1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Hp(i,u,s,o,c,h){let p=(x,y)=>s[y]?x.route.id!==s[y].route.id:!0,g=(x,y)=>s[y].pathname!==x.pathname||s[y].route.path?.endsWith("*")&&s[y].params["*"]!==x.params["*"];return h==="assets"?u.filter((x,y)=>p(x,y)||g(x,y)):h==="data"?u.filter((x,y)=>{let b=o.routes[x.route.id];if(!b||!b.hasLoader)return!1;if(p(x,y)||g(x,y))return!0;if(x.route.shouldRevalidate){let v=x.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function J1(i,u,{includeHydrateFallback:s}={}){return F1(i.map(o=>{let c=u.routes[o.route.id];if(!c)return[];let h=[c.module];return c.clientActionModule&&(h=h.concat(c.clientActionModule)),c.clientLoaderModule&&(h=h.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(h=h.concat(c.hydrateFallbackModule)),c.imports&&(h=h.concat(c.imports)),h}).flat(1))}function F1(i){return[...new Set(i)]}function $1(i){let u={},s=Object.keys(i).sort();for(let o of s)u[o]=i[o];return u}function W1(i,u){let s=new Set;return new Set(u),i.reduce((o,c)=>{let h=JSON.stringify($1(c));return s.has(h)||(s.add(h),o.push({key:h,link:c})),o},[])}function Am(){let i=T.useContext(ul);return oc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function I1(){let i=T.useContext(Pr);return oc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var sc=T.createContext(void 0);sc.displayName="FrameworkContext";function Tm(){let i=T.useContext(sc);return oc(i,"You must render this element inside a <HydratedRouter> element"),i}function P1(i,u){let s=T.useContext(sc),[o,c]=T.useState(!1),[h,p]=T.useState(!1),{onFocus:g,onBlur:x,onMouseEnter:y,onMouseLeave:b,onTouchStart:v}=u,N=T.useRef(null);T.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let H=Q=>{Q.forEach(Y=>{p(Y.isIntersecting)})},_=new IntersectionObserver(H,{threshold:.5});return N.current&&_.observe(N.current),()=>{_.disconnect()}}},[i]),T.useEffect(()=>{if(o){let H=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(H)}}},[o]);let k=()=>{c(!0)},z=()=>{c(!1),p(!1)};return s?i!=="intent"?[h,N,{}]:[h,N,{onFocus:ii(g,k),onBlur:ii(x,z),onMouseEnter:ii(y,k),onMouseLeave:ii(b,z),onTouchStart:ii(v,k)}]:[!1,N,{}]}function ii(i,u){return s=>{i&&i(s),s.defaultPrevented||u(s)}}function ev({page:i,...u}){let{router:s}=Am(),o=T.useMemo(()=>fm(s.routes,i,s.basename),[s.routes,i,s.basename]);return o?T.createElement(av,{page:i,matches:o,...u}):null}function tv(i){let{manifest:u,routeModules:s}=Tm(),[o,c]=T.useState([]);return T.useEffect(()=>{let h=!1;return K1(i,u,s).then(p=>{h||c(p)}),()=>{h=!0}},[i,u,s]),o}function av({page:i,matches:u,...s}){let o=It(),{future:c,manifest:h,routeModules:p}=Tm(),{basename:g}=Am(),{loaderData:x,matches:y}=I1(),b=T.useMemo(()=>Hp(i,u,y,h,o,"data"),[i,u,y,h,o]),v=T.useMemo(()=>Hp(i,u,y,h,o,"assets"),[i,u,y,h,o]),N=T.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,_=!1;if(u.forEach(Y=>{let V=h.routes[Y.route.id];!V||!V.hasLoader||(!b.some(ae=>ae.route.id===Y.route.id)&&Y.route.id in x&&p[Y.route.id]?.shouldRevalidate||V.hasClientLoader?_=!0:H.add(Y.route.id))}),H.size===0)return[];let Q=X1(i,g,c.unstable_trailingSlashAwareDataRequests,"data");return _&&H.size>0&&Q.searchParams.set("_routes",u.filter(Y=>H.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[Q.pathname+Q.search]},[g,c.unstable_trailingSlashAwareDataRequests,x,o,h,b,u,i,p]),k=T.useMemo(()=>J1(v,h),[v,h]),z=tv(v);return T.createElement(T.Fragment,null,N.map(H=>T.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...s})),k.map(H=>T.createElement("link",{key:H,rel:"modulepreload",href:H,...s})),z.map(({key:H,link:_})=>T.createElement("link",{key:H,nonce:s.nonce,..._,crossOrigin:_.crossOrigin??s.crossOrigin})))}function nv(...i){return u=>{i.forEach(s=>{typeof s=="function"?s(u):s!=null&&(s.current=u)})}}var lv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lv&&(window.__reactRouterVersion="7.13.1")}catch{}function iv({basename:i,children:u,unstable_useTransitions:s,window:o}){let c=T.useRef();c.current==null&&(c.current=Lg({window:o,v5Compat:!0}));let h=c.current,[p,g]=T.useState({action:h.action,location:h.location}),x=T.useCallback(y=>{s===!1?g(y):T.startTransition(()=>g(y))},[s]);return T.useLayoutEffect(()=>h.listen(x),[h,x]),T.createElement(N1,{basename:i,children:u,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:s})}var zm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jm=T.forwardRef(function({onClick:u,discover:s="render",prefetch:o="none",relative:c,reloadDocument:h,replace:p,unstable_mask:g,state:x,target:y,to:b,preventScrollReset:v,viewTransition:N,unstable_defaultShouldRevalidate:k,...z},H){let{basename:_,navigator:Q,unstable_useTransitions:Y}=T.useContext(Bt),V=typeof b=="string"&&zm.test(b),ae=mm(b,_);b=ae.to;let re=x1(b,{relative:c}),me=It(),F=null;if(g){let we=Ir(g,[],me.unstable_mask?me.unstable_mask.pathname:"/",!0);_!=="/"&&(we.pathname=we.pathname==="/"?_:la([_,we.pathname])),F=Q.createHref(we)}let[_e,De,it]=P1(o,z),$e=sv(b,{replace:p,unstable_mask:g,state:x,target:y,preventScrollReset:v,relative:c,viewTransition:N,unstable_defaultShouldRevalidate:k,unstable_useTransitions:Y});function K(we){u&&u(we),we.defaultPrevented||$e(we)}let ce=!(ae.isExternal||h),ve=T.createElement("a",{...z,...it,href:(ce?F:void 0)||ae.absoluteURL||re,onClick:ce?K:u,ref:nv(H,De),target:y,"data-discover":!V&&s==="render"?"true":void 0});return _e&&!V?T.createElement(T.Fragment,null,ve,T.createElement(ev,{page:re})):ve});jm.displayName="Link";var rv=T.forwardRef(function({"aria-current":u="page",caseSensitive:s=!1,className:o="",end:c=!1,style:h,to:p,viewTransition:g,children:x,...y},b){let v=fi(p,{relative:y.relative}),N=It(),k=T.useContext(Pr),{navigator:z,basename:H}=T.useContext(Bt),_=k!=null&&pv(v)&&g===!0,Q=z.encodeLocation?z.encodeLocation(v).pathname:v.pathname,Y=N.pathname,V=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;s||(Y=Y.toLowerCase(),V=V?V.toLowerCase():null,Q=Q.toLowerCase()),V&&H&&(V=Aa(V,H)||V);const ae=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let re=Y===Q||!c&&Y.startsWith(Q)&&Y.charAt(ae)==="/",me=V!=null&&(V===Q||!c&&V.startsWith(Q)&&V.charAt(Q.length)==="/"),F={isActive:re,isPending:me,isTransitioning:_},_e=re?u:void 0,De;typeof o=="function"?De=o(F):De=[o,re?"active":null,me?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let it=typeof h=="function"?h(F):h;return T.createElement(jm,{...y,"aria-current":_e,className:De,ref:b,style:it,to:p,viewTransition:g},typeof x=="function"?x(F):x)});rv.displayName="NavLink";var uv=T.forwardRef(({discover:i="render",fetcherKey:u,navigate:s,reloadDocument:o,replace:c,state:h,method:p=Yr,action:g,onSubmit:x,relative:y,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:N,...k},z)=>{let{unstable_useTransitions:H}=T.useContext(Bt),_=dv(),Q=hv(g,{relative:y}),Y=p.toLowerCase()==="get"?"get":"post",V=typeof g=="string"&&zm.test(g),ae=re=>{if(x&&x(re),re.defaultPrevented)return;re.preventDefault();let me=re.nativeEvent.submitter,F=me?.getAttribute("formmethod")||p,_e=()=>_(me||re.currentTarget,{fetcherKey:u,method:F,navigate:s,replace:c,state:h,relative:y,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:N});H&&s!==!1?T.startTransition(()=>_e()):_e()};return T.createElement("form",{ref:z,method:Y,action:Q,onSubmit:o?x:ae,...k,"data-discover":!V&&i==="render"?"true":void 0})});uv.displayName="Form";function ov(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cm(i){let u=T.useContext(ul);return Ve(u,ov(i)),u}function sv(i,{target:u,replace:s,unstable_mask:o,state:c,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:x,unstable_useTransitions:y}={}){let b=eu(),v=It(),N=fi(i,{relative:p});return T.useCallback(k=>{if(q1(k,u)){k.preventDefault();let z=s!==void 0?s:oi(v)===oi(N),H=()=>b(i,{replace:z,unstable_mask:o,state:c,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:x});y?T.startTransition(()=>H()):H()}},[v,b,N,s,o,c,u,i,h,p,g,x,y])}var cv=0,fv=()=>`__${String(++cv)}__`;function dv(){let{router:i}=Cm("useSubmit"),{basename:u}=T.useContext(Bt),s=w1(),o=i.fetch,c=i.navigate;return T.useCallback(async(h,p={})=>{let{action:g,method:x,encType:y,formData:b,body:v}=V1(h,u);if(p.navigate===!1){let N=p.fetcherKey||fv();await o(N,s,p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:v,formMethod:p.method||x,formEncType:p.encType||y,flushSync:p.flushSync})}else await c(p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:v,formMethod:p.method||x,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:s,flushSync:p.flushSync,viewTransition:p.viewTransition})},[o,c,u,s])}function hv(i,{relative:u}={}){let{basename:s}=T.useContext(Bt),o=T.useContext(ia);Ve(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),h={...fi(i||".",{relative:u})},p=It();if(i==null){h.search=p.search;let g=new URLSearchParams(h.search),x=g.getAll("index");if(x.some(b=>b==="")){g.delete("index"),x.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();h.search=b?`?${b}`:""}}return(!i||i===".")&&c.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:la([s,h.pathname])),oi(h)}function pv(i,{relative:u}={}){let s=T.useContext(gm);Ve(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Cm("useViewTransitionState"),c=fi(i,{relative:u});if(!s.isTransitioning)return!1;let h=Aa(s.currentLocation.pathname,o)||s.currentLocation.pathname,p=Aa(s.nextLocation.pathname,o)||s.nextLocation.pathname;return Jr(c.pathname,p)!=null||Jr(c.pathname,h)!=null}const _m=(...i)=>i.filter((u,s,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===s).join(" ").trim();const mv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const yv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,s,o)=>o?o.toUpperCase():s.toLowerCase());const Up=i=>{const u=yv(i);return u.charAt(0).toUpperCase()+u.slice(1)};var gv={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 vv=i=>{for(const u in i)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};const xv=T.forwardRef(({color:i="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:h,iconNode:p,...g},x)=>T.createElement("svg",{ref:x,...gv,width:u,height:u,stroke:i,strokeWidth:o?Number(s)*24/Number(u):s,className:_m("lucide",c),...!h&&!vv(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,b])=>T.createElement(y,b)),...Array.isArray(h)?h:[h]]));const ie=(i,u)=>{const s=T.forwardRef(({className:o,...c},h)=>T.createElement(xv,{ref:h,iconNode:u,className:_m(`lucide-${mv(Up(i))}`,`lucide-${i}`,o),...c}));return s.displayName=Up(i),s};const bv=[["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"}]],Ks=ie("activity",bv);const Sv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ev=ie("arrow-left",Sv);const Rv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Av=ie("arrow-right",Rv);const Tv=[["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"}]],Js=ie("bot",Tv);const zv=[["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"}]],jv=ie("brain",zv);const Cv=[["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"}]],_v=ie("camera",Cv);const wv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fs=ie("check",wv);const Ov=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mv=ie("chevron-down",Ov);const Dv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Nv=ie("chevron-left",Dv);const Bv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],di=ie("chevron-right",Bv);const Hv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Uv=ie("chevron-up",Hv);const kv=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Lv=ie("circle-play",kv);const qv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],$s=ie("clock",qv);const Gv=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Yv=ie("cpu",Gv);const Vv=[["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"}]],Xv=ie("download",Vv);const Qv=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Zv=ie("eye",Qv);const Kv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Ur=ie("file-code",Kv);const Jv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["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"}]],Hs=ie("file-image",Jv);const Fv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ws=ie("file-text",Fv);const $v=[["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"}]],kp=ie("file",$v);const Wv=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Lp=ie("folder-plus",Wv);const Iv=[["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"}]],wm=ie("folder",Iv);const Pv=[["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"}]],ex=ie("funnel",Pv);const tx=[["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"}]],Om=ie("globe",tx);const ax=[["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"}]],Mm=ie("hard-drive",ax);const nx=[["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"}]],lx=ie("layout-dashboard",nx);const ix=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rx=ie("loader-circle",ix);const ux=[["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"}]],Is=ie("message-square",ux);const ox=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],sx=ie("mic-off",ox);const cx=[["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"}]],qp=ie("mic",cx);const fx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],dx=ie("panels-top-left",fx);const hx=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],px=ie("plug",hx);const mx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yx=ie("plus",mx);const gx=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],vx=ie("power",gx);const xx=[["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"}]],bx=ie("refresh-cw",xx);const Sx=[["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"}]],Gp=ie("rotate-ccw",Sx);const Ex=[["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"}]],Rx=ie("save",Ex);const Ax=[["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"}]],Tx=ie("send",Ax);const zx=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],jx=ie("server",zx);const Cx=[["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"}]],_x=ie("settings",Cx);const wx=[["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"}]],si=ie("shield",wx);const Ox=[["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=ie("trash-2",Ox);const Mx=[["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"}]],Nm=ie("triangle-alert",Mx);const Dx=[["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"}]],Nx=ie("upload",Dx);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"}]],Bm=ie("user",Bx);const Hx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Fr=ie("wrench",Hx);const Ux=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yp=ie("x",Ux);const kx=[["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"}]],au=ie("zap",kx),Lx=[{icon:lx,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:Is,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:Mm,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Fr,label:"Modules",path:"/tools"},{icon:au,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:si,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:_x,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function qx({user:i,isOpen:u,onToggle:s,onLogout:o}){const c=eu(),h=It();return d.jsxs("aside",{style:{...lt.sidebar,width:u?"280px":"72px",resize:u?"horizontal":"none",minWidth:u?"200px":"72px",maxWidth:u?"500px":"72px"},children:[d.jsxs("div",{style:lt.header,children:[d.jsxs("div",{style:lt.brand,onClick:()=>c("/"),children:[d.jsx("div",{style:lt.logoWrap,children:d.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"32px",height:"32px",objectFit:"contain"}})}),u&&d.jsxs("div",{style:lt.brandText,children:[d.jsx("span",{style:lt.brandName,children:"SamarthyaBot"}),d.jsx("span",{style:lt.brandSub,children:"v1.0.0"})]})]}),d.jsx("button",{onClick:s,style:lt.toggleBtn,children:u?d.jsx(Nv,{size:18}):d.jsx(di,{size:18})})]}),d.jsx("nav",{style:lt.nav,children:Lx.map(p=>{const g=p.icon,x=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return d.jsxs("button",{onClick:()=>c(p.path),style:{...lt.navItem,...x?lt.navItemActive:{},justifyContent:u?"flex-start":"center"},title:u?void 0:p.label,children:[d.jsx(g,{size:20,style:{minWidth:"20px"}}),u&&d.jsx("span",{children:p.label}),x&&d.jsx("div",{style:lt.activeIndicator})]},p.path)})}),d.jsx("div",{style:lt.footer,children:u&&d.jsxs("div",{style:lt.userInfo,children:[d.jsx("div",{style:lt.avatar,children:(i?.name||"U").charAt(0).toUpperCase()}),d.jsxs("div",{style:lt.userText,children:[d.jsx("div",{style:lt.userName,children:i?.name||"Local Admin"}),d.jsx("div",{style:lt.userStatus,children:"AI Agent Operator"})]})]})})]})}const lt={sidebar:{position:"sticky",top:0,height:"100vh",background:"rgba(6, 6, 10, 0.97)",backdropFilter:"blur(24px)",borderRight:"1px solid #1e1e28",display:"flex",flexDirection:"column",zIndex:100,overflow:"hidden",transition:"width 0.25s cubic-bezier(0.4,0,0.2,1)"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 14px",borderBottom:"1px solid #1e1e28",minHeight:"68px"},brand:{display:"flex",alignItems:"center",gap:"10px",cursor:"pointer",overflow:"hidden"},logoWrap:{width:"38px",height:"38px",borderRadius:"10px",background:"#0e0e16",border:"1px solid #2a2a38",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden"},brandText:{display:"flex",flexDirection:"column",whiteSpace:"nowrap"},brandName:{fontWeight:800,fontSize:"1rem",color:"#f0f0ff",letterSpacing:"-0.3px"},brandSub:{fontSize:"0.68rem",color:"#3a3a4e",fontWeight:600,letterSpacing:"0.5px"},toggleBtn:{background:"transparent",border:"1px solid #1e1e28",color:"#3a3a4e",width:"28px",height:"28px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.15s ease",flexShrink:0},nav:{flex:1,padding:"12px 10px",display:"flex",flexDirection:"column",gap:"3px"},navItem:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 12px",borderRadius:"10px",background:"transparent",border:"none",color:"#8888a8",fontSize:"0.875rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",position:"relative",fontFamily:"'Inter', -apple-system, sans-serif",whiteSpace:"nowrap",width:"100%"},navItemActive:{background:"rgba(255, 153, 51, 0.10)",color:"#FF9933",borderLeft:"2px solid #FF9933"},activeIndicator:{display:"none"},footer:{padding:"14px",borderTop:"1px solid #1e1e28",display:"flex",flexDirection:"column",gap:"10px"},userInfo:{display:"flex",alignItems:"center",gap:"10px",overflow:"hidden",padding:"8px 10px",borderRadius:"10px",background:"#0e0e16",border:"1px solid #1e1e28"},avatar:{width:"34px",height:"34px",borderRadius:"8px",background:"linear-gradient(135deg,#FF9933,#e8851d)",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:800,fontSize:"0.88rem",flexShrink:0},userText:{overflow:"hidden",whiteSpace:"nowrap"},userName:{fontWeight:700,fontSize:"0.83rem",color:"#f0f0ff"},userStatus:{fontSize:"0.72rem",color:"#3a3a4e",marginTop:"2px"}};function Hm(i,u){return function(){return i.apply(u,arguments)}}const{toString:Gx}=Object.prototype,{getPrototypeOf:cc}=Object,{iterator:nu,toStringTag:Um}=Symbol,lu=(i=>u=>{const s=Gx.call(u);return i[s]||(i[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=i=>(i=i.toLowerCase(),u=>lu(u)===i),iu=i=>u=>typeof u===i,{isArray:sl}=Array,il=iu("undefined");function hi(i){return i!==null&&!il(i)&&i.constructor!==null&&!il(i.constructor)&&Rt(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const km=Pt("ArrayBuffer");function Yx(i){let u;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?u=ArrayBuffer.isView(i):u=i&&i.buffer&&km(i.buffer),u}const Vx=iu("string"),Rt=iu("function"),Lm=iu("number"),pi=i=>i!==null&&typeof i=="object",Xx=i=>i===!0||i===!1,Xr=i=>{if(lu(i)!=="object")return!1;const u=cc(i);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(Um in i)&&!(nu in i)},Qx=i=>{if(!pi(i)||hi(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},Zx=Pt("Date"),Kx=Pt("File"),Jx=Pt("Blob"),Fx=Pt("FileList"),$x=i=>pi(i)&&Rt(i.pipe),Wx=i=>{let u;return i&&(typeof FormData=="function"&&i instanceof FormData||Rt(i.append)&&((u=lu(i))==="formdata"||u==="object"&&Rt(i.toString)&&i.toString()==="[object FormData]"))},Ix=Pt("URLSearchParams"),[Px,e2,t2,a2]=["ReadableStream","Request","Response","Headers"].map(Pt),n2=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mi(i,u,{allOwnKeys:s=!1}={}){if(i===null||typeof i>"u")return;let o,c;if(typeof i!="object"&&(i=[i]),sl(i))for(o=0,c=i.length;o<c;o++)u.call(null,i[o],o,i);else{if(hi(i))return;const h=s?Object.getOwnPropertyNames(i):Object.keys(i),p=h.length;let g;for(o=0;o<p;o++)g=h[o],u.call(null,i[g],g,i)}}function qm(i,u){if(hi(i))return null;u=u.toLowerCase();const s=Object.keys(i);let o=s.length,c;for(;o-- >0;)if(c=s[o],u===c.toLowerCase())return c;return null}const vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gm=i=>!il(i)&&i!==vn;function Ps(){const{caseless:i,skipUndefined:u}=Gm(this)&&this||{},s={},o=(c,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=i&&qm(s,h)||h;Xr(s[p])&&Xr(c)?s[p]=Ps(s[p],c):Xr(c)?s[p]=Ps({},c):sl(c)?s[p]=c.slice():(!u||!il(c))&&(s[p]=c)};for(let c=0,h=arguments.length;c<h;c++)arguments[c]&&mi(arguments[c],o);return s}const l2=(i,u,s,{allOwnKeys:o}={})=>(mi(u,(c,h)=>{s&&Rt(c)?Object.defineProperty(i,h,{value:Hm(c,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,h,{value:c,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),i),i2=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),r2=(i,u,s,o)=>{i.prototype=Object.create(u.prototype,o),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(i,"super",{value:u.prototype}),s&&Object.assign(i.prototype,s)},u2=(i,u,s,o)=>{let c,h,p;const g={};if(u=u||{},i==null)return u;do{for(c=Object.getOwnPropertyNames(i),h=c.length;h-- >0;)p=c[h],(!o||o(p,i,u))&&!g[p]&&(u[p]=i[p],g[p]=!0);i=s!==!1&&cc(i)}while(i&&(!s||s(i,u))&&i!==Object.prototype);return u},o2=(i,u,s)=>{i=String(i),(s===void 0||s>i.length)&&(s=i.length),s-=u.length;const o=i.indexOf(u,s);return o!==-1&&o===s},s2=i=>{if(!i)return null;if(sl(i))return i;let u=i.length;if(!Lm(u))return null;const s=new Array(u);for(;u-- >0;)s[u]=i[u];return s},c2=(i=>u=>i&&u instanceof i)(typeof Uint8Array<"u"&&cc(Uint8Array)),f2=(i,u)=>{const o=(i&&i[nu]).call(i);let c;for(;(c=o.next())&&!c.done;){const h=c.value;u.call(i,h[0],h[1])}},d2=(i,u)=>{let s;const o=[];for(;(s=i.exec(u))!==null;)o.push(s);return o},h2=Pt("HTMLFormElement"),p2=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,c){return o.toUpperCase()+c}),Vp=(({hasOwnProperty:i})=>(u,s)=>i.call(u,s))(Object.prototype),m2=Pt("RegExp"),Ym=(i,u)=>{const s=Object.getOwnPropertyDescriptors(i),o={};mi(s,(c,h)=>{let p;(p=u(c,h,i))!==!1&&(o[h]=p||c)}),Object.defineProperties(i,o)},y2=i=>{Ym(i,(u,s)=>{if(Rt(i)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const o=i[s];if(Rt(o)){if(u.enumerable=!1,"writable"in u){u.writable=!1;return}u.set||(u.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},g2=(i,u)=>{const s={},o=c=>{c.forEach(h=>{s[h]=!0})};return sl(i)?o(i):o(String(i).split(u)),s},v2=()=>{},x2=(i,u)=>i!=null&&Number.isFinite(i=+i)?i:u;function b2(i){return!!(i&&Rt(i.append)&&i[Um]==="FormData"&&i[nu])}const S2=i=>{const u=new Array(10),s=(o,c)=>{if(pi(o)){if(u.indexOf(o)>=0)return;if(hi(o))return o;if(!("toJSON"in o)){u[c]=o;const h=sl(o)?[]:{};return mi(o,(p,g)=>{const x=s(p,c+1);!il(x)&&(h[g]=x)}),u[c]=void 0,h}}return o};return s(i,0)},E2=Pt("AsyncFunction"),R2=i=>i&&(pi(i)||Rt(i))&&Rt(i.then)&&Rt(i.catch),Vm=((i,u)=>i?setImmediate:u?((s,o)=>(vn.addEventListener("message",({source:c,data:h})=>{c===vn&&h===s&&o.length&&o.shift()()},!1),c=>{o.push(c),vn.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Rt(vn.postMessage)),A2=typeof queueMicrotask<"u"?queueMicrotask.bind(vn):typeof process<"u"&&process.nextTick||Vm,T2=i=>i!=null&&Rt(i[nu]),D={isArray:sl,isArrayBuffer:km,isBuffer:hi,isFormData:Wx,isArrayBufferView:Yx,isString:Vx,isNumber:Lm,isBoolean:Xx,isObject:pi,isPlainObject:Xr,isEmptyObject:Qx,isReadableStream:Px,isRequest:e2,isResponse:t2,isHeaders:a2,isUndefined:il,isDate:Zx,isFile:Kx,isBlob:Jx,isRegExp:m2,isFunction:Rt,isStream:$x,isURLSearchParams:Ix,isTypedArray:c2,isFileList:Fx,forEach:mi,merge:Ps,extend:l2,trim:n2,stripBOM:i2,inherits:r2,toFlatObject:u2,kindOf:lu,kindOfTest:Pt,endsWith:o2,toArray:s2,forEachEntry:f2,matchAll:d2,isHTMLForm:h2,hasOwnProperty:Vp,hasOwnProp:Vp,reduceDescriptors:Ym,freezeMethods:y2,toObjectSet:g2,toCamelCase:p2,noop:v2,toFiniteNumber:x2,findKey:qm,global:vn,isContextDefined:Gm,isSpecCompliantForm:b2,toJSONObject:S2,isAsyncFn:E2,isThenable:R2,setImmediate:Vm,asap:A2,isIterable:T2};let le=class Xm extends Error{static from(u,s,o,c,h,p){const g=new Xm(u.message,s||u.code,o,c,h);return g.cause=u,g.name=u.name,p&&Object.assign(g,p),g}constructor(u,s,o,c,h){super(u),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),o&&(this.config=o),c&&(this.request=c),h&&(this.response=h,this.status=h.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.status}}};le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";le.ERR_BAD_OPTION="ERR_BAD_OPTION";le.ECONNABORTED="ECONNABORTED";le.ETIMEDOUT="ETIMEDOUT";le.ERR_NETWORK="ERR_NETWORK";le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";le.ERR_DEPRECATED="ERR_DEPRECATED";le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";le.ERR_BAD_REQUEST="ERR_BAD_REQUEST";le.ERR_CANCELED="ERR_CANCELED";le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";le.ERR_INVALID_URL="ERR_INVALID_URL";const z2=null;function ec(i){return D.isPlainObject(i)||D.isArray(i)}function Qm(i){return D.endsWith(i,"[]")?i.slice(0,-2):i}function Xp(i,u,s){return i?i.concat(u).map(function(c,h){return c=Qm(c),!s&&h?"["+c+"]":c}).join(s?".":""):u}function j2(i){return D.isArray(i)&&!i.some(ec)}const C2=D.toFlatObject(D,{},null,function(u){return/^is[A-Z]/.test(u)});function ru(i,u,s){if(!D.isObject(i))throw new TypeError("target must be an object");u=u||new FormData,s=D.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(H,_){return!D.isUndefined(_[H])});const o=s.metaTokens,c=s.visitor||b,h=s.dots,p=s.indexes,x=(s.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(u);if(!D.isFunction(c))throw new TypeError("visitor must be a function");function y(z){if(z===null)return"";if(D.isDate(z))return z.toISOString();if(D.isBoolean(z))return z.toString();if(!x&&D.isBlob(z))throw new le("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(z)||D.isTypedArray(z)?x&&typeof Blob=="function"?new Blob([z]):Buffer.from(z):z}function b(z,H,_){let Q=z;if(z&&!_&&typeof z=="object"){if(D.endsWith(H,"{}"))H=o?H:H.slice(0,-2),z=JSON.stringify(z);else if(D.isArray(z)&&j2(z)||(D.isFileList(z)||D.endsWith(H,"[]"))&&(Q=D.toArray(z)))return H=Qm(H),Q.forEach(function(V,ae){!(D.isUndefined(V)||V===null)&&u.append(p===!0?Xp([H],ae,h):p===null?H:H+"[]",y(V))}),!1}return ec(z)?!0:(u.append(Xp(_,H,h),y(z)),!1)}const v=[],N=Object.assign(C2,{defaultVisitor:b,convertValue:y,isVisitable:ec});function k(z,H){if(!D.isUndefined(z)){if(v.indexOf(z)!==-1)throw Error("Circular reference detected in "+H.join("."));v.push(z),D.forEach(z,function(Q,Y){(!(D.isUndefined(Q)||Q===null)&&c.call(u,Q,D.isString(Y)?Y.trim():Y,H,N))===!0&&k(Q,H?H.concat(Y):[Y])}),v.pop()}}if(!D.isObject(i))throw new TypeError("data must be an object");return k(i),u}function Qp(i){const u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(o){return u[o]})}function fc(i,u){this._pairs=[],i&&ru(i,this,u)}const Zm=fc.prototype;Zm.append=function(u,s){this._pairs.push([u,s])};Zm.toString=function(u){const s=u?function(o){return u.call(this,o,Qp)}:Qp;return this._pairs.map(function(c){return s(c[0])+"="+s(c[1])},"").join("&")};function _2(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Km(i,u,s){if(!u)return i;const o=s&&s.encode||_2,c=D.isFunction(s)?{serialize:s}:s,h=c&&c.serialize;let p;if(h?p=h(u,c):p=D.isURLSearchParams(u)?u.toString():new fc(u,c).toString(o),p){const g=i.indexOf("#");g!==-1&&(i=i.slice(0,g)),i+=(i.indexOf("?")===-1?"?":"&")+p}return i}class Zp{constructor(){this.handlers=[]}use(u,s,o){return this.handlers.push({fulfilled:u,rejected:s,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(u){this.handlers[u]&&(this.handlers[u]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(u){D.forEach(this.handlers,function(o){o!==null&&u(o)})}}const dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},w2=typeof URLSearchParams<"u"?URLSearchParams:fc,O2=typeof FormData<"u"?FormData:null,M2=typeof Blob<"u"?Blob:null,D2={isBrowser:!0,classes:{URLSearchParams:w2,FormData:O2,Blob:M2},protocols:["http","https","file","blob","url","data"]},hc=typeof window<"u"&&typeof document<"u",tc=typeof navigator=="object"&&navigator||void 0,N2=hc&&(!tc||["ReactNative","NativeScript","NS"].indexOf(tc.product)<0),B2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",H2=hc&&window.location.href||"http://localhost",U2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hc,hasStandardBrowserEnv:N2,hasStandardBrowserWebWorkerEnv:B2,navigator:tc,origin:H2},Symbol.toStringTag,{value:"Module"})),ht={...U2,...D2};function k2(i,u){return ru(i,new ht.classes.URLSearchParams,{visitor:function(s,o,c,h){return ht.isNode&&D.isBuffer(s)?(this.append(o,s.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...u})}function L2(i){return D.matchAll(/\w+|\[(\w*)]/g,i).map(u=>u[0]==="[]"?"":u[1]||u[0])}function q2(i){const u={},s=Object.keys(i);let o;const c=s.length;let h;for(o=0;o<c;o++)h=s[o],u[h]=i[h];return u}function Jm(i){function u(s,o,c,h){let p=s[h++];if(p==="__proto__")return!0;const g=Number.isFinite(+p),x=h>=s.length;return p=!p&&D.isArray(c)?c.length:p,x?(D.hasOwnProp(c,p)?c[p]=[c[p],o]:c[p]=o,!g):((!c[p]||!D.isObject(c[p]))&&(c[p]=[]),u(s,o,c[p],h)&&D.isArray(c[p])&&(c[p]=q2(c[p])),!g)}if(D.isFormData(i)&&D.isFunction(i.entries)){const s={};return D.forEachEntry(i,(o,c)=>{u(L2(o),c,s,0)}),s}return null}function G2(i,u,s){if(D.isString(i))try{return(u||JSON.parse)(i),D.trim(i)}catch(o){if(o.name!=="SyntaxError")throw o}return(s||JSON.stringify)(i)}const yi={transitional:dc,adapter:["xhr","http","fetch"],transformRequest:[function(u,s){const o=s.getContentType()||"",c=o.indexOf("application/json")>-1,h=D.isObject(u);if(h&&D.isHTMLForm(u)&&(u=new FormData(u)),D.isFormData(u))return c?JSON.stringify(Jm(u)):u;if(D.isArrayBuffer(u)||D.isBuffer(u)||D.isStream(u)||D.isFile(u)||D.isBlob(u)||D.isReadableStream(u))return u;if(D.isArrayBufferView(u))return u.buffer;if(D.isURLSearchParams(u))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),u.toString();let g;if(h){if(o.indexOf("application/x-www-form-urlencoded")>-1)return k2(u,this.formSerializer).toString();if((g=D.isFileList(u))||o.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return ru(g?{"files[]":u}:u,x&&new x,this.formSerializer)}}return h||c?(s.setContentType("application/json",!1),G2(u)):u}],transformResponse:[function(u){const s=this.transitional||yi.transitional,o=s&&s.forcedJSONParsing,c=this.responseType==="json";if(D.isResponse(u)||D.isReadableStream(u))return u;if(u&&D.isString(u)&&(o&&!this.responseType||c)){const p=!(s&&s.silentJSONParsing)&&c;try{return JSON.parse(u,this.parseReviver)}catch(g){if(p)throw g.name==="SyntaxError"?le.from(g,le.ERR_BAD_RESPONSE,this,null,this.response):g}}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],i=>{yi.headers[i]={}});const Y2=D.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"]),V2=i=>{const u={};let s,o,c;return i&&i.split(`
12
+ `).forEach(function(p){c=p.indexOf(":"),s=p.substring(0,c).trim().toLowerCase(),o=p.substring(c+1).trim(),!(!s||u[s]&&Y2[s])&&(s==="set-cookie"?u[s]?u[s].push(o):u[s]=[o]:u[s]=u[s]?u[s]+", "+o:o)}),u},Kp=Symbol("internals");function ri(i){return i&&String(i).trim().toLowerCase()}function Qr(i){return i===!1||i==null?i:D.isArray(i)?i.map(Qr):String(i)}function X2(i){const u=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=s.exec(i);)u[o[1]]=o[2];return u}const Q2=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Us(i,u,s,o,c){if(D.isFunction(o))return o.call(this,u,s);if(c&&(u=s),!!D.isString(u)){if(D.isString(o))return u.indexOf(o)!==-1;if(D.isRegExp(o))return o.test(u)}}function Z2(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(u,s,o)=>s.toUpperCase()+o)}function K2(i,u){const s=D.toCamelCase(" "+u);["get","set","has"].forEach(o=>{Object.defineProperty(i,o+s,{value:function(c,h,p){return this[o].call(this,u,c,h,p)},configurable:!0})})}let At=class{constructor(u){u&&this.set(u)}set(u,s,o){const c=this;function h(g,x,y){const b=ri(x);if(!b)throw new Error("header name must be a non-empty string");const v=D.findKey(c,b);(!v||c[v]===void 0||y===!0||y===void 0&&c[v]!==!1)&&(c[v||x]=Qr(g))}const p=(g,x)=>D.forEach(g,(y,b)=>h(y,b,x));if(D.isPlainObject(u)||u instanceof this.constructor)p(u,s);else if(D.isString(u)&&(u=u.trim())&&!Q2(u))p(V2(u),s);else if(D.isObject(u)&&D.isIterable(u)){let g={},x,y;for(const b of u){if(!D.isArray(b))throw TypeError("Object iterator must return a key-value pair");g[y=b[0]]=(x=g[y])?D.isArray(x)?[...x,b[1]]:[x,b[1]]:b[1]}p(g,s)}else u!=null&&h(s,u,o);return this}get(u,s){if(u=ri(u),u){const o=D.findKey(this,u);if(o){const c=this[o];if(!s)return c;if(s===!0)return X2(c);if(D.isFunction(s))return s.call(this,c,o);if(D.isRegExp(s))return s.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(u,s){if(u=ri(u),u){const o=D.findKey(this,u);return!!(o&&this[o]!==void 0&&(!s||Us(this,this[o],o,s)))}return!1}delete(u,s){const o=this;let c=!1;function h(p){if(p=ri(p),p){const g=D.findKey(o,p);g&&(!s||Us(o,o[g],g,s))&&(delete o[g],c=!0)}}return D.isArray(u)?u.forEach(h):h(u),c}clear(u){const s=Object.keys(this);let o=s.length,c=!1;for(;o--;){const h=s[o];(!u||Us(this,this[h],h,u,!0))&&(delete this[h],c=!0)}return c}normalize(u){const s=this,o={};return D.forEach(this,(c,h)=>{const p=D.findKey(o,h);if(p){s[p]=Qr(c),delete s[h];return}const g=u?Z2(h):String(h).trim();g!==h&&delete s[h],s[g]=Qr(c),o[g]=!0}),this}concat(...u){return this.constructor.concat(this,...u)}toJSON(u){const s=Object.create(null);return D.forEach(this,(o,c)=>{o!=null&&o!==!1&&(s[c]=u&&D.isArray(o)?o.join(", "):o)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([u,s])=>u+": "+s).join(`
13
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(u){return u instanceof this?u:new this(u)}static concat(u,...s){const o=new this(u);return s.forEach(c=>o.set(c)),o}static accessor(u){const o=(this[Kp]=this[Kp]={accessors:{}}).accessors,c=this.prototype;function h(p){const g=ri(p);o[g]||(K2(c,p),o[g]=!0)}return D.isArray(u)?u.forEach(h):h(u),this}};At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(At.prototype,({value:i},u)=>{let s=u[0].toUpperCase()+u.slice(1);return{get:()=>i,set(o){this[s]=o}}});D.freezeMethods(At);function ks(i,u){const s=this||yi,o=u||s,c=At.from(o.headers);let h=o.data;return D.forEach(i,function(g){h=g.call(s,h,c.normalize(),u?u.status:void 0)}),c.normalize(),h}function Fm(i){return!!(i&&i.__CANCEL__)}let gi=class extends le{constructor(u,s,o){super(u??"canceled",le.ERR_CANCELED,s,o),this.name="CanceledError",this.__CANCEL__=!0}};function $m(i,u,s){const o=s.config.validateStatus;!s.status||!o||o(s.status)?i(s):u(new le("Request failed with status code "+s.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function J2(i){const u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return u&&u[1]||""}function F2(i,u){i=i||10;const s=new Array(i),o=new Array(i);let c=0,h=0,p;return u=u!==void 0?u:1e3,function(x){const y=Date.now(),b=o[h];p||(p=y),s[c]=x,o[c]=y;let v=h,N=0;for(;v!==c;)N+=s[v++],v=v%i;if(c=(c+1)%i,c===h&&(h=(h+1)%i),y-p<u)return;const k=b&&y-b;return k?Math.round(N*1e3/k):void 0}}function $2(i,u){let s=0,o=1e3/u,c,h;const p=(y,b=Date.now())=>{s=b,c=null,h&&(clearTimeout(h),h=null),i(...y)};return[(...y)=>{const b=Date.now(),v=b-s;v>=o?p(y,b):(c=y,h||(h=setTimeout(()=>{h=null,p(c)},o-v)))},()=>c&&p(c)]}const $r=(i,u,s=3)=>{let o=0;const c=F2(50,250);return $2(h=>{const p=h.loaded,g=h.lengthComputable?h.total:void 0,x=p-o,y=c(x),b=p<=g;o=p;const v={loaded:p,total:g,progress:g?p/g:void 0,bytes:x,rate:y||void 0,estimated:y&&g&&b?(g-p)/y:void 0,event:h,lengthComputable:g!=null,[u?"download":"upload"]:!0};i(v)},s)},Jp=(i,u)=>{const s=i!=null;return[o=>u[0]({lengthComputable:s,total:i,loaded:o}),u[1]]},Fp=i=>(...u)=>D.asap(()=>i(...u)),W2=ht.hasStandardBrowserEnv?((i,u)=>s=>(s=new URL(s,ht.origin),i.protocol===s.protocol&&i.host===s.host&&(u||i.port===s.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,I2=ht.hasStandardBrowserEnv?{write(i,u,s,o,c,h,p){if(typeof document>"u")return;const g=[`${i}=${encodeURIComponent(u)}`];D.isNumber(s)&&g.push(`expires=${new Date(s).toUTCString()}`),D.isString(o)&&g.push(`path=${o}`),D.isString(c)&&g.push(`domain=${c}`),h===!0&&g.push("secure"),D.isString(p)&&g.push(`SameSite=${p}`),document.cookie=g.join("; ")},read(i){if(typeof document>"u")return null;const u=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return u?decodeURIComponent(u[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function P2(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function eb(i,u){return u?i.replace(/\/?\/$/,"")+"/"+u.replace(/^\/+/,""):i}function Wm(i,u,s){let o=!P2(u);return i&&(o||s==!1)?eb(i,u):u}const $p=i=>i instanceof At?{...i}:i;function bn(i,u){u=u||{};const s={};function o(y,b,v,N){return D.isPlainObject(y)&&D.isPlainObject(b)?D.merge.call({caseless:N},y,b):D.isPlainObject(b)?D.merge({},b):D.isArray(b)?b.slice():b}function c(y,b,v,N){if(D.isUndefined(b)){if(!D.isUndefined(y))return o(void 0,y,v,N)}else return o(y,b,v,N)}function h(y,b){if(!D.isUndefined(b))return o(void 0,b)}function p(y,b){if(D.isUndefined(b)){if(!D.isUndefined(y))return o(void 0,y)}else return o(void 0,b)}function g(y,b,v){if(v in u)return o(y,b);if(v in i)return o(void 0,y)}const x={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(y,b,v)=>c($p(y),$p(b),v,!0)};return D.forEach(Object.keys({...i,...u}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const v=D.hasOwnProp(x,b)?x[b]:c,N=v(i[b],u[b],b);D.isUndefined(N)&&v!==g||(s[b]=N)}),s}const Im=i=>{const u=bn({},i);let{data:s,withXSRFToken:o,xsrfHeaderName:c,xsrfCookieName:h,headers:p,auth:g}=u;if(u.headers=p=At.from(p),u.url=Km(Wm(u.baseURL,u.url,u.allowAbsoluteUrls),i.params,i.paramsSerializer),g&&p.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),D.isFormData(s)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(D.isFunction(s.getHeaders)){const x=s.getHeaders(),y=["content-type","content-length"];Object.entries(x).forEach(([b,v])=>{y.includes(b.toLowerCase())&&p.set(b,v)})}}if(ht.hasStandardBrowserEnv&&(o&&D.isFunction(o)&&(o=o(u)),o||o!==!1&&W2(u.url))){const x=c&&h&&I2.read(h);x&&p.set(c,x)}return u},tb=typeof XMLHttpRequest<"u",ab=tb&&function(i){return new Promise(function(s,o){const c=Im(i);let h=c.data;const p=At.from(c.headers).normalize();let{responseType:g,onUploadProgress:x,onDownloadProgress:y}=c,b,v,N,k,z;function H(){k&&k(),z&&z(),c.cancelToken&&c.cancelToken.unsubscribe(b),c.signal&&c.signal.removeEventListener("abort",b)}let _=new XMLHttpRequest;_.open(c.method.toUpperCase(),c.url,!0),_.timeout=c.timeout;function Q(){if(!_)return;const V=At.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),re={data:!g||g==="text"||g==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:V,config:i,request:_};$m(function(F){s(F),H()},function(F){o(F),H()},re),_=null}"onloadend"in _?_.onloadend=Q:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(Q)},_.onabort=function(){_&&(o(new le("Request aborted",le.ECONNABORTED,i,_)),_=null)},_.onerror=function(ae){const re=ae&&ae.message?ae.message:"Network Error",me=new le(re,le.ERR_NETWORK,i,_);me.event=ae||null,o(me),_=null},_.ontimeout=function(){let ae=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const re=c.transitional||dc;c.timeoutErrorMessage&&(ae=c.timeoutErrorMessage),o(new le(ae,re.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,i,_)),_=null},h===void 0&&p.setContentType(null),"setRequestHeader"in _&&D.forEach(p.toJSON(),function(ae,re){_.setRequestHeader(re,ae)}),D.isUndefined(c.withCredentials)||(_.withCredentials=!!c.withCredentials),g&&g!=="json"&&(_.responseType=c.responseType),y&&([N,z]=$r(y,!0),_.addEventListener("progress",N)),x&&_.upload&&([v,k]=$r(x),_.upload.addEventListener("progress",v),_.upload.addEventListener("loadend",k)),(c.cancelToken||c.signal)&&(b=V=>{_&&(o(!V||V.type?new gi(null,i,_):V),_.abort(),_=null)},c.cancelToken&&c.cancelToken.subscribe(b),c.signal&&(c.signal.aborted?b():c.signal.addEventListener("abort",b)));const Y=J2(c.url);if(Y&&ht.protocols.indexOf(Y)===-1){o(new le("Unsupported protocol "+Y+":",le.ERR_BAD_REQUEST,i));return}_.send(h||null)})},nb=(i,u)=>{const{length:s}=i=i?i.filter(Boolean):[];if(u||s){let o=new AbortController,c;const h=function(y){if(!c){c=!0,g();const b=y instanceof Error?y:this.reason;o.abort(b instanceof le?b:new gi(b instanceof Error?b.message:b))}};let p=u&&setTimeout(()=>{p=null,h(new le(`timeout of ${u}ms exceeded`,le.ETIMEDOUT))},u);const g=()=>{i&&(p&&clearTimeout(p),p=null,i.forEach(y=>{y.unsubscribe?y.unsubscribe(h):y.removeEventListener("abort",h)}),i=null)};i.forEach(y=>y.addEventListener("abort",h));const{signal:x}=o;return x.unsubscribe=()=>D.asap(g),x}},lb=function*(i,u){let s=i.byteLength;if(s<u){yield i;return}let o=0,c;for(;o<s;)c=o+u,yield i.slice(o,c),o=c},ib=async function*(i,u){for await(const s of rb(i))yield*lb(s,u)},rb=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const u=i.getReader();try{for(;;){const{done:s,value:o}=await u.read();if(s)break;yield o}}finally{await u.cancel()}},Wp=(i,u,s,o)=>{const c=ib(i,u);let h=0,p,g=x=>{p||(p=!0,o&&o(x))};return new ReadableStream({async pull(x){try{const{done:y,value:b}=await c.next();if(y){g(),x.close();return}let v=b.byteLength;if(s){let N=h+=v;s(N)}x.enqueue(new Uint8Array(b))}catch(y){throw g(y),y}},cancel(x){return g(x),c.return()}},{highWaterMark:2})},Ip=64*1024,{isFunction:kr}=D,ub=(({Request:i,Response:u})=>({Request:i,Response:u}))(D.global),{ReadableStream:Pp,TextEncoder:em}=D.global,tm=(i,...u)=>{try{return!!i(...u)}catch{return!1}},ob=i=>{i=D.merge.call({skipUndefined:!0},ub,i);const{fetch:u,Request:s,Response:o}=i,c=u?kr(u):typeof fetch=="function",h=kr(s),p=kr(o);if(!c)return!1;const g=c&&kr(Pp),x=c&&(typeof em=="function"?(z=>H=>z.encode(H))(new em):async z=>new Uint8Array(await new s(z).arrayBuffer())),y=h&&g&&tm(()=>{let z=!1;const H=new s(ht.origin,{body:new Pp,method:"POST",get duplex(){return z=!0,"half"}}).headers.has("Content-Type");return z&&!H}),b=p&&g&&tm(()=>D.isReadableStream(new o("").body)),v={stream:b&&(z=>z.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(z=>{!v[z]&&(v[z]=(H,_)=>{let Q=H&&H[z];if(Q)return Q.call(H);throw new le(`Response type '${z}' is not supported`,le.ERR_NOT_SUPPORT,_)})});const N=async z=>{if(z==null)return 0;if(D.isBlob(z))return z.size;if(D.isSpecCompliantForm(z))return(await new s(ht.origin,{method:"POST",body:z}).arrayBuffer()).byteLength;if(D.isArrayBufferView(z)||D.isArrayBuffer(z))return z.byteLength;if(D.isURLSearchParams(z)&&(z=z+""),D.isString(z))return(await x(z)).byteLength},k=async(z,H)=>{const _=D.toFiniteNumber(z.getContentLength());return _??N(H)};return async z=>{let{url:H,method:_,data:Q,signal:Y,cancelToken:V,timeout:ae,onDownloadProgress:re,onUploadProgress:me,responseType:F,headers:_e,withCredentials:De="same-origin",fetchOptions:it}=Im(z),$e=u||fetch;F=F?(F+"").toLowerCase():"text";let K=nb([Y,V&&V.toAbortSignal()],ae),ce=null;const ve=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let we;try{if(me&&y&&_!=="get"&&_!=="head"&&(we=await k(_e,Q))!==0){let S=new s(H,{method:"POST",body:Q,duplex:"half"}),M;if(D.isFormData(Q)&&(M=S.headers.get("content-type"))&&_e.setContentType(M),S.body){const[G,X]=Jp(we,$r(Fp(me)));Q=Wp(S.body,Ip,G,X)}}D.isString(De)||(De=De?"include":"omit");const O=h&&"credentials"in s.prototype,Z={...it,signal:K,method:_.toUpperCase(),headers:_e.normalize().toJSON(),body:Q,duplex:"half",credentials:O?De:void 0};ce=h&&new s(H,Z);let ee=await(h?$e(ce,it):$e(H,Z));const Ae=b&&(F==="stream"||F==="response");if(b&&(re||Ae&&ve)){const S={};["status","statusText","headers"].forEach(I=>{S[I]=ee[I]});const M=D.toFiniteNumber(ee.headers.get("content-length")),[G,X]=re&&Jp(M,$r(Fp(re),!0))||[];ee=new o(Wp(ee.body,Ip,G,()=>{X&&X(),ve&&ve()}),S)}F=F||"text";let J=await v[D.findKey(v,F)||"text"](ee,z);return!Ae&&ve&&ve(),await new Promise((S,M)=>{$m(S,M,{data:J,headers:At.from(ee.headers),status:ee.status,statusText:ee.statusText,config:z,request:ce})})}catch(O){throw ve&&ve(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,z,ce,O&&O.response),{cause:O.cause||O}):le.from(O,O&&O.code,z,ce,O&&O.response)}}},sb=new Map,Pm=i=>{let u=i&&i.env||{};const{fetch:s,Request:o,Response:c}=u,h=[o,c,s];let p=h.length,g=p,x,y,b=sb;for(;g--;)x=h[g],y=b.get(x),y===void 0&&b.set(x,y=g?new Map:ob(u)),b=y;return y};Pm();const pc={http:z2,xhr:ab,fetch:{get:Pm}};D.forEach(pc,(i,u)=>{if(i){try{Object.defineProperty(i,"name",{value:u})}catch{}Object.defineProperty(i,"adapterName",{value:u})}});const am=i=>`- ${i}`,cb=i=>D.isFunction(i)||i===null||i===!1;function fb(i,u){i=D.isArray(i)?i:[i];const{length:s}=i;let o,c;const h={};for(let p=0;p<s;p++){o=i[p];let g;if(c=o,!cb(o)&&(c=pc[(g=String(o)).toLowerCase()],c===void 0))throw new le(`Unknown adapter '${g}'`);if(c&&(D.isFunction(c)||(c=c.get(u))))break;h[g||"#"+p]=c}if(!c){const p=Object.entries(h).map(([x,y])=>`adapter ${x} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=s?p.length>1?`since :
14
+ `+p.map(am).join(`
15
+ `):" "+am(p[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return c}const e0={getAdapter:fb,adapters:pc};function Ls(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new gi(null,i)}function nm(i){return Ls(i),i.headers=At.from(i.headers),i.data=ks.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),e0.getAdapter(i.adapter||yi.adapter,i)(i).then(function(o){return Ls(i),o.data=ks.call(i,i.transformResponse,o),o.headers=At.from(o.headers),o},function(o){return Fm(o)||(Ls(i),o&&o.response&&(o.response.data=ks.call(i,i.transformResponse,o.response),o.response.headers=At.from(o.response.headers))),Promise.reject(o)})}const t0="1.13.5",uu={};["object","boolean","number","function","string","symbol"].forEach((i,u)=>{uu[i]=function(o){return typeof o===i||"a"+(u<1?"n ":" ")+i}});const lm={};uu.transitional=function(u,s,o){function c(h,p){return"[Axios v"+t0+"] Transitional option '"+h+"'"+p+(o?". "+o:"")}return(h,p,g)=>{if(u===!1)throw new le(c(p," has been removed"+(s?" in "+s:"")),le.ERR_DEPRECATED);return s&&!lm[p]&&(lm[p]=!0,console.warn(c(p," has been deprecated since v"+s+" and will be removed in the near future"))),u?u(h,p,g):!0}};uu.spelling=function(u){return(s,o)=>(console.warn(`${o} is likely a misspelling of ${u}`),!0)};function db(i,u,s){if(typeof i!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const o=Object.keys(i);let c=o.length;for(;c-- >0;){const h=o[c],p=u[h];if(p){const g=i[h],x=g===void 0||p(g,h,i);if(x!==!0)throw new le("option "+h+" must be "+x,le.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new le("Unknown option "+h,le.ERR_BAD_OPTION)}}const Zr={assertOptions:db,validators:uu},Zt=Zr.validators;let xn=class{constructor(u){this.defaults=u||{},this.interceptors={request:new Zp,response:new Zp}}async request(u,s){try{return await this._request(u,s)}catch(o){if(o instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const h=c.stack?c.stack.replace(/^.+\n/,""):"";try{o.stack?h&&!String(o.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(o.stack+=`
16
+ `+h):o.stack=h}catch{}}throw o}}_request(u,s){typeof u=="string"?(s=s||{},s.url=u):s=u||{},s=bn(this.defaults,s);const{transitional:o,paramsSerializer:c,headers:h}=s;o!==void 0&&Zr.assertOptions(o,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean),legacyInterceptorReqResOrdering:Zt.transitional(Zt.boolean)},!1),c!=null&&(D.isFunction(c)?s.paramsSerializer={serialize:c}:Zr.assertOptions(c,{encode:Zt.function,serialize:Zt.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Zr.assertOptions(s,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let p=h&&D.merge(h.common,h[s.method]);h&&D.forEach(["delete","get","head","post","put","patch","common"],z=>{delete h[z]}),s.headers=At.concat(p,h);const g=[];let x=!0;this.interceptors.request.forEach(function(H){if(typeof H.runWhen=="function"&&H.runWhen(s)===!1)return;x=x&&H.synchronous;const _=s.transitional||dc;_&&_.legacyInterceptorReqResOrdering?g.unshift(H.fulfilled,H.rejected):g.push(H.fulfilled,H.rejected)});const y=[];this.interceptors.response.forEach(function(H){y.push(H.fulfilled,H.rejected)});let b,v=0,N;if(!x){const z=[nm.bind(this),void 0];for(z.unshift(...g),z.push(...y),N=z.length,b=Promise.resolve(s);v<N;)b=b.then(z[v++],z[v++]);return b}N=g.length;let k=s;for(;v<N;){const z=g[v++],H=g[v++];try{k=z(k)}catch(_){H.call(this,_);break}}try{b=nm.call(this,k)}catch(z){return Promise.reject(z)}for(v=0,N=y.length;v<N;)b=b.then(y[v++],y[v++]);return b}getUri(u){u=bn(this.defaults,u);const s=Wm(u.baseURL,u.url,u.allowAbsoluteUrls);return Km(s,u.params,u.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(u){xn.prototype[u]=function(s,o){return this.request(bn(o||{},{method:u,url:s,data:(o||{}).data}))}});D.forEach(["post","put","patch"],function(u){function s(o){return function(h,p,g){return this.request(bn(g||{},{method:u,headers:o?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}xn.prototype[u]=s(),xn.prototype[u+"Form"]=s(!0)});let hb=class a0{constructor(u){if(typeof u!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(h){s=h});const o=this;this.promise.then(c=>{if(!o._listeners)return;let h=o._listeners.length;for(;h-- >0;)o._listeners[h](c);o._listeners=null}),this.promise.then=c=>{let h;const p=new Promise(g=>{o.subscribe(g),h=g}).then(c);return p.cancel=function(){o.unsubscribe(h)},p},u(function(h,p,g){o.reason||(o.reason=new gi(h,p,g),s(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(u){if(this.reason){u(this.reason);return}this._listeners?this._listeners.push(u):this._listeners=[u]}unsubscribe(u){if(!this._listeners)return;const s=this._listeners.indexOf(u);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const u=new AbortController,s=o=>{u.abort(o)};return this.subscribe(s),u.signal.unsubscribe=()=>this.unsubscribe(s),u.signal}static source(){let u;return{token:new a0(function(c){u=c}),cancel:u}}};function pb(i){return function(s){return i.apply(null,s)}}function mb(i){return D.isObject(i)&&i.isAxiosError===!0}const ac={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(ac).forEach(([i,u])=>{ac[u]=i});function n0(i){const u=new xn(i),s=Hm(xn.prototype.request,u);return D.extend(s,xn.prototype,u,{allOwnKeys:!0}),D.extend(s,u,null,{allOwnKeys:!0}),s.create=function(c){return n0(bn(i,c))},s}const Fe=n0(yi);Fe.Axios=xn;Fe.CanceledError=gi;Fe.CancelToken=hb;Fe.isCancel=Fm;Fe.VERSION=t0;Fe.toFormData=ru;Fe.AxiosError=le;Fe.Cancel=Fe.CanceledError;Fe.all=function(u){return Promise.all(u)};Fe.spread=pb;Fe.isAxiosError=mb;Fe.mergeConfig=bn;Fe.AxiosHeaders=At;Fe.formToJSON=i=>Jm(D.isHTMLForm(i)?new FormData(i):i);Fe.getAdapter=e0.getAdapter;Fe.HttpStatusCode=ac;Fe.default=Fe;const{Axios:Ub,AxiosError:kb,CanceledError:Lb,isCancel:qb,CancelToken:Gb,VERSION:Yb,all:Vb,Cancel:Xb,isAxiosError:Qb,spread:Zb,toFormData:Kb,AxiosHeaders:Jb,HttpStatusCode:Fb,formToJSON:$b,getAdapter:Wb,mergeConfig:Ib}=Fe,l0="/api",Ue=Fe.create({baseURL:l0,headers:{"Content-Type":"application/json"}});Ue.interceptors.request.use(i=>{const u=localStorage.getItem("samarthya_token");return u&&(i.headers.Authorization=`Bearer ${u}`),i});const mc={register:i=>Ue.post("/auth/register",i),login:i=>Ue.post("/auth/login",i),demoLogin:()=>Ue.post("/auth/demo"),getProfile:()=>Ue.get("/auth/profile"),updateProfile:i=>Ue.put("/auth/profile",i)},ui={sendMessage:i=>Ue.post("/chat/message",i),getConversations:()=>Ue.get("/chat/conversations"),getConversation:i=>Ue.get(`/chat/conversations/${i}`),deleteConversation:i=>Ue.delete(`/chat/conversations/${i}`),togglePin:i=>Ue.patch(`/chat/conversations/${i}/pin`)},Kr={getLogs:i=>Ue.get("/audit/logs",{params:i}),getStats:()=>Ue.get("/audit/stats"),rollback:i=>Ue.post(`/audit/rollback/${i}`)},qs={getAll:()=>Ue.get("/tools"),getPacks:()=>Ue.get("/tools/packs"),getPackTools:i=>Ue.get(`/tools/packs/${i}`)},yb={analyze:(i,u)=>Ue.post("/screen/analyze",{image:i,prompt:u}),getSupported:()=>Ue.get("/screen/supported")},gn={list:i=>Ue.get("/files/list",{params:{path:i}}),read:i=>Ue.get("/files/read",{params:{path:i}}),download:i=>`${l0}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,u)=>Ue.post("/files/mkdir",{name:i,parentPath:u}),upload:(i,u,s)=>Ue.post("/files/upload",{filename:i,content:u,parentPath:s}),deleteFile:i=>Ue.delete("/files/delete",{params:{path:i}}),getStats:()=>Ue.get("/files/stats")},Gs={getStatus:()=>Ue.get("/platform/status"),getJobs:()=>Ue.get("/platform/jobs"),emergencyStop:()=>Ue.post("/platform/emergency-stop")},gb=[{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"}],vb=i=>{if(!i)return"";const u=new Date(i);return isNaN(u)?"":u.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},xb=i=>{const u={};return i.forEach(s=>{const o=s.createdAt?new Date(s.createdAt):new Date;if(isNaN(o))return;const c=new Date,h=new Date;h.setDate(c.getDate()-1);let p;o.toDateString()===c.toDateString()?p="Today":o.toDateString()===h.toDateString()?p="Yesterday":p=o.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),u[p]||(u[p]=[]),u[p].push(s)}),u},im=i=>i?i.split(`
17
+ `).map((u,s)=>{const o=[];let c=u;const h=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let p;for(;(p=h.exec(c))!==null;){if(p.index>0){const g=c.substring(0,p.index);o.push(d.jsx("span",{children:g.replace(/\*\*/g,"")},`t-${p.index}`))}o.push(d.jsx("a",{href:p[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:p[1].replace(/\*\*/g,"")},`l-${p.index}`)),c=c.substring(p.index+p[0].length)}if(c.length>0){let g=c;g.startsWith("- ")&&(g="• "+g.substring(2)),o.push(d.jsx("span",{children:g.replace(/\*\*/g,"")},`end-${s}`))}return d.jsxs(Wr.Fragment,{children:[o.length>0?o:d.jsx("span",{children:u.replace(/\*\*/g,"")}),d.jsx("br",{})]},s)}):null;function rm({user:i}){const[u,s]=T.useState([]),[o,c]=T.useState(null),[h,p]=T.useState([]),[g,x]=T.useState(""),[y,b]=T.useState(!1),[v,N]=T.useState(!1),[k,z]=T.useState(!1),[H,_]=T.useState(!1),[Q,Y]=T.useState(null),V=T.useRef(null),ae=T.useRef(null),[re,me]=T.useState(""),F=T.useRef(null),_e=T.useRef(null),De=T.useRef(null);T.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const it=J=>{const S=J||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const M=window.AudioContext||window.webkitAudioContext;if(M){V.current=new M;const G=V.current.createOscillator(),X=V.current.createGain();G.type="triangle",G.frequency.setValueAtTime(600,V.current.currentTime),setInterval(()=>{ae.current&&V.current&&(G.frequency.setValueAtTime(800,V.current.currentTime),G.frequency.exponentialRampToValueAtTime(400,V.current.currentTime+.3))},500),X.gain.value=.1,G.connect(X),X.connect(V.current.destination),G.start(),ae.current=G}Y(S)},$e=()=>{Y(null),ae.current&&(ae.current.stop(),ae.current=null),V.current&&(V.current.close(),V.current=null)};T.useEffect(()=>(ve(),K(),()=>{F.current&&F.current.abort()}),[]),T.useEffect(()=>{_e.current?.scrollIntoView({behavior:"smooth"})},[h]);const K=()=>{const J=window.SpeechRecognition||window.webkitSpeechRecognition;if(!J)return;_(!0);const S=new J;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=M=>{let G="";for(let X=0;X<M.results.length;X++)G+=M.results[X][0].transcript;me(G),x(G),M.results[M.results.length-1].isFinal&&setTimeout(()=>{z(!1),G.trim()&&O(G.trim())},500)},S.onerror=M=>{console.error("Voice error:",M.error),z(!1)},S.onend=()=>{z(!1)},F.current=S},ce=()=>{F.current&&(k?(F.current.stop(),z(!1)):(me(""),F.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",F.current.start(),z(!0)))},ve=async()=>{try{const J=await ui.getConversations();s(J.data.conversations||[])}catch{console.error("Failed to load conversations")}},we=async J=>{try{const S=await ui.getConversation(J);c(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},O=async J=>{const S=J||g.trim();if(!S||y)return;x("");const M={role:"user",content:S,createdAt:new Date};p(G=>[...G,M]),b(!0),N(!0);try{const X=(await ui.sendMessage({message:S,conversationId:o?._id})).data;o||(c({_id:X.conversationId}),ve());const I={role:"assistant",content:X.message.content,toolCalls:X.message.toolCalls,sensitiveDataWarnings:X.message.sensitiveDataWarnings,createdAt:new Date};p(ue=>[...ue,I]),I.toolCalls&&I.toolCalls.forEach(ue=>{if(ue.toolName==="reminder_set"&&ue.notificationParams){const{delayMs:Te,message:rt}=ue.notificationParams;setTimeout(()=>{it(rt)},Te||5e3)}})}catch{p(X=>[...X,{role:"assistant",content:i?.language==="english"?"❌ Oops, an error occurred. Check the server or try again.":"❌ Arre, kuch error aa gaya. Server check karo ya dubara try karo.",createdAt:new Date}])}finally{b(!1),N(!1),De.current?.focus()}},Z=()=>{c(null),p([]),De.current?.focus()},ee=async(J,S)=>{S.stopPropagation();try{await ui.deleteConversation(J),o?._id===J&&Z(),ve()}catch{console.error("Delete failed")}},Ae=J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),O())};return d.jsxs("div",{style:W.container,children:[Q&&d.jsx("div",{style:W.alarmPopupLayer,children:d.jsxs("div",{style:W.alarmBox,children:[d.jsx("div",{style:W.alarmIcon,children:"⏰"}),d.jsxs("div",{style:W.alarmContent,children:[d.jsx("h4",{style:W.alarmTitle,children:"Reminder"}),d.jsx("p",{style:W.alarmMessage,children:Q})]}),d.jsx("button",{onClick:$e,style:W.alarmStopBtn,children:"Stop Alarm"})]})}),d.jsxs("div",{style:W.convSidebar,children:[d.jsxs("div",{style:W.convHeader,children:[d.jsx("h3",{style:W.convTitle,children:"💬 Conversations"}),d.jsx("button",{onClick:Z,style:W.newBtn,title:"New Chat",children:d.jsx(yx,{size:18})})]}),d.jsxs("div",{style:W.convList,children:[u.map(J=>d.jsxs("button",{onClick:()=>we(J._id),style:{...W.convItem,...o?._id===J._id?W.convItemActive:{}},children:[d.jsx("span",{style:W.convItemTitle,children:J.title}),d.jsx("div",{style:W.convActions,children:d.jsx("button",{onClick:S=>ee(J._id,S),style:W.convDelBtn,children:d.jsx(Dm,{size:14})})})]},J._id)),u.length===0&&d.jsx("p",{style:W.emptyConv,children:i?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),d.jsxs("div",{style:W.chatArea,children:[k&&d.jsxs("div",{style:W.voiceOverlay,children:[d.jsx("div",{style:W.voicePulseRing,children:d.jsx(qp,{size:36,color:"#FF9933"})}),d.jsx("p",{style:W.voiceText,children:re||(i?.language==="hindi"?"बोलिए...":i?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),d.jsx("p",{style:W.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),d.jsxs("button",{onClick:ce,style:W.voiceStopBtn,children:[d.jsx(sx,{size:18})," Stop Listening"]})]}),d.jsxs("div",{style:W.messages,children:[h.length===0&&d.jsxs("div",{style:W.welcome,children:[d.jsx("div",{style:W.welcomeLogo,children:"स"}),d.jsxs("h2",{style:W.welcomeTitle,children:[i?.language==="english"?"Hello":"Namaste",", ",i?.name||"User","! 🙏"]}),d.jsx("p",{style:W.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?"}),d.jsx("div",{style:W.quickActions,children:gb.map((J,S)=>d.jsxs("button",{onClick:()=>O(i?.language==="english"?J.textEn:J.text),style:W.quickActionBtn,children:[d.jsx("span",{style:W.quickEmoji,children:J.emoji}),d.jsx("span",{children:i?.language==="english"?J.textEn:J.text})]},S))})]}),Object.entries(xb(h)).map(([J,S],M)=>d.jsxs(Wr.Fragment,{children:[d.jsx("div",{style:W.dateDivider,children:d.jsx("span",{style:W.dateBadge,children:J})}),S.map((G,X)=>d.jsxs("div",{style:{...W.message,...G.role==="user"?W.userMessage:W.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[d.jsx("div",{style:G.role==="user"?W.userAvatar:W.assistantAvatar,children:G.role==="user"?d.jsx(Bm,{size:16}):d.jsx(Js,{size:16})}),d.jsxs("div",{style:W.messageContent,children:[G.sensitiveDataWarnings?.length>0&&d.jsxs("div",{style:W.warningBanner,children:[d.jsx(Nm,{size:14}),d.jsxs("span",{children:["⚠️ Sensitive data detected: ",G.sensitiveDataWarnings.map(I=>I.type).join(", ")]})]}),d.jsx("div",{style:W.messageText,children:im(G.content)}),G.toolCalls?.length>0&&d.jsx("div",{style:W.toolCalls,children:G.toolCalls.map((I,ue)=>d.jsxs("div",{style:W.toolCall,children:[d.jsxs("div",{style:W.toolCallHeader,children:[d.jsxs("span",{style:{...W.toolBadge,background:I.status==="completed"?"rgba(16,185,129,0.15)":I.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:I.status==="completed"?"#10b981":I.status==="blocked"?"#ef4444":"#f59e0b"},children:[I.status==="completed"?"✅":I.status==="blocked"?"🚫":"⏳"," ",I.toolName]}),d.jsxs("span",{style:W.toolRisk,children:["Risk: ",I.riskLevel]})]}),I.result&&d.jsx("div",{style:W.toolResult,children:im(I.result)})]},ue))}),d.jsx("div",{style:{...W.msgTime,color:G.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:vb(G.createdAt)})]})]},`msg-${M}-${X}`))]},`group-${M}`)),v&&d.jsxs("div",{style:{...W.message,...W.assistantMessage},children:[d.jsx("div",{style:W.assistantAvatar,children:d.jsx(Js,{size:16})}),d.jsxs("div",{style:W.typingIndicator,children:[d.jsx("span",{style:{...W.typingDot,animationDelay:"0s"}}),d.jsx("span",{style:{...W.typingDot,animationDelay:"0.2s"}}),d.jsx("span",{style:{...W.typingDot,animationDelay:"0.4s"}})]})]}),d.jsx("div",{ref:_e})]}),d.jsxs("div",{style:W.inputArea,children:[d.jsxs("div",{style:W.inputWrap,children:[d.jsx("textarea",{ref:De,value:g,onChange:J=>x(J.target.value),onKeyDown:Ae,placeholder:i?.language==="hindi"?"यहां टाइप करें...":i?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:W.textarea,rows:1,disabled:y}),d.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:J=>{J&&(J._screenInput=!0)},id:"screenInput",onChange:async J=>{const S=J.target.files?.[0];if(S){b(!0),p(M=>[...M,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),N(!0);try{const M=new FileReader;M.onload=async()=>{const G=M.result,X=await yb.analyze(G,g.trim()||"Is screenshot mein kya hai? Next step batao.");p(I=>[...I,{role:"assistant",content:`👁️ **Screen Analysis:**
18
+
19
+ ${X.data.analysis.content}`,createdAt:new Date}]),x("")},M.readAsDataURL(S)}catch{p(G=>[...G,{role:"assistant",content:i?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{b(!1),N(!1),J.target.value=""}}}}),d.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:W.voiceBtn,title:"Screenshot upload for AI analysis",children:d.jsx(_v,{size:20})}),H&&d.jsx("button",{onClick:ce,style:{...W.voiceBtn,...k?W.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:d.jsx(qp,{size:20})}),d.jsx("button",{onClick:()=>O(),disabled:y||!g.trim(),style:{...W.sendBtn,opacity:y||!g.trim()?.5:1},children:y?d.jsx(rx,{size:20,style:{animation:"spin 1s linear infinite"}}):d.jsx(Tx,{size:20})})]}),d.jsx("p",{style:W.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const W={container:{display:"flex",height:"100vh",background:"var(--bg-primary)"},alarmPopupLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},alarmBox:{background:"rgba(20, 20, 35, 0.95)",border:"2px solid rgba(255, 107, 0, 0.5)",borderRadius:"var(--radius-lg)",padding:"32px",boxShadow:"0 20px 50px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",maxWidth:"400px",textAlign:"center",animation:"pulseAlarm 1s infinite alternate"},alarmIcon:{fontSize:"4rem",animation:"ringAlarm 0.5s infinite alternate"},alarmTitle:{fontSize:"1.4rem",fontWeight:"bold",color:"var(--text-primary)",margin:0},alarmMessage:{fontSize:"1.1rem",color:"var(--text-secondary)",margin:0},alarmStopBtn:{background:"#ef4444",color:"white",border:"none",borderRadius:"var(--radius-md)",padding:"12px 24px",fontSize:"1rem",fontWeight:"bold",cursor:"pointer",boxShadow:"0 4px 15px rgba(239,68,68,0.3)",transition:"all 0.2s ease"},convSidebar:{width:"280px",minWidth:"200px",maxWidth:"500px",resize:"horizontal",overflowX:"hidden",background:"var(--bg-secondary)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",flexShrink:0},convHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)"},convTitle:{fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},newBtn:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)"},convList:{flex:1,overflow:"auto",padding:"8px"},convItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"12px",background:"transparent",border:"none",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",textAlign:"left",transition:"all var(--transition-fast)",marginBottom:"2px"},convItemActive:{background:"rgba(255, 153, 51, 0.1)",color:"var(--text-primary)"},convItemTitle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},convActions:{display:"flex",gap:"4px",flexShrink:0},convDelBtn:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",transition:"all var(--transition-fast)"},emptyConv:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem"},chatArea:{flex:1,display:"flex",flexDirection:"column",minWidth:0},messages:{flex:1,overflow:"auto",padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},welcome:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,textAlign:"center",padding:"40px 20px",animation:"fadeInUp 0.6s ease-out"},welcomeLogo:{fontSize:"4rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",marginBottom:"16px",animation:"float 4s ease-in-out infinite"},welcomeTitle:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},welcomeSubtitle:{fontSize:"1rem",color:"var(--text-muted)",marginBottom:"32px",maxWidth:"500px",fontFamily:"var(--font-primary)"},dateDivider:{display:"flex",justifyContent:"center",margin:"16px 0",width:"100%"},dateBadge:{backgroundColor:"var(--bg-card)",color:"var(--text-muted)",fontSize:"0.75rem",padding:"4px 12px",borderRadius:"16px",border:"1px solid var(--border-subtle)"},quickActions:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",maxWidth:"680px",width:"100%"},quickActionBtn:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",textAlign:"left"},quickEmoji:{fontSize:"1.2rem"},message:{display:"flex",gap:"12px",maxWidth:"85%",animation:"fadeIn 0.3s ease-out"},userMessage:{alignSelf:"flex-end",flexDirection:"row-reverse"},assistantMessage:{alignSelf:"flex-start"},userAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-saffron)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},assistantAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},messageContent:{maxWidth:"100%"},messageText:{padding:"14px 18px",borderRadius:"var(--radius-lg)",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)",fontSize:"0.9rem",lineHeight:1.7,wordBreak:"break-word"},warningBanner:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-sm)",color:"#f59e0b",fontSize:"0.8rem",marginBottom:"8px"},msgTime:{fontSize:"0.7rem",textAlign:"right",marginTop:"4px",fontWeight:"500"},toolCalls:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"6px"},toolCall:{padding:"10px 14px",background:"rgba(99, 102, 241, 0.06)",border:"1px solid rgba(99, 102, 241, 0.15)",borderRadius:"var(--radius-sm)",fontSize:"0.8rem"},toolCallHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"},toolBadge:{padding:"2px 8px",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:600},toolRisk:{fontSize:"0.7rem",color:"var(--text-muted)",textTransform:"uppercase"},toolResult:{color:"var(--text-secondary)",fontSize:"0.8rem",lineHeight:1.5,whiteSpace:"pre-wrap"},typingIndicator:{display:"flex",gap:"6px",padding:"14px 18px",background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)"},typingDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",animation:"typing 1.4s ease-in-out infinite",display:"inline-block"},inputArea:{padding:"16px 24px 20px",borderTop:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},inputWrap:{display:"flex",alignItems:"flex-end",gap:"12px",padding:"6px 6px 6px 18px",background:"var(--bg-input)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-lg)",transition:"all var(--transition-normal)"},textarea:{flex:1,background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.95rem",padding:"10px 0",resize:"none",outline:"none",maxHeight:"120px",lineHeight:1.5},sendBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"#0D0D0D",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"transparent",border:"1px solid var(--border-subtle)",color:"var(--text-muted)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"var(--accent-saffron)",color:"var(--accent-saffron)",animation:"voicePulse 1.5s infinite"},voiceOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(13, 13, 13, 0.92)",backdropFilter:"blur(20px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:50,animation:"fadeIn 0.3s ease-out",gap:"16px"},voicePulseRing:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255, 153, 51, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 1.5s infinite"},voiceText:{fontSize:"1.2rem",fontWeight:600,color:"var(--text-primary)",maxWidth:"400px",textAlign:"center"},voiceHint:{fontSize:"0.82rem",color:"var(--text-muted)"},voiceStopBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",color:"#ef4444",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)"},inputHint:{fontSize:"0.7rem",color:"var(--text-muted)",textAlign:"center",marginTop:"8px"}},Et="#FF9933",bb="#FFFFFF",Ys="#138808",Sb="rgba(255,153,51,0.15)",Eb="rgba(19,136,8,0.15)";function Rb({user:i}){const u=eu(),[s,o]=T.useState(null),[c,h]=T.useState(null),[p,g]=T.useState([]),[x,y]=T.useState([]),[b,v]=T.useState(!0),[N,k]=T.useState(new Date);T.useEffect(()=>{H();const Y=setInterval(()=>z(),15e3),V=setInterval(()=>k(new Date),1e3);return()=>{clearInterval(Y),clearInterval(V)}},[]);const z=async()=>{try{const[Y,V]=await Promise.all([Gs.getStatus().catch(()=>({data:{status:null}})),Gs.getJobs().catch(()=>({data:{jobs:[]}}))]);h(Y.data.status),g(V.data.jobs||[])}catch{}},H=async()=>{v(!0);try{const[Y,V]=await Promise.all([ui.getConversations().catch(()=>({data:{conversations:[]}})),Kr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);y(Y.data.conversations?.slice(0,5)||[]),o(V.data.stats),await z()}catch(Y){console.error("Dashboard load error:",Y)}finally{v(!1)}},_=Y=>{if(!Y)return"0h 0m";const V=Math.floor(Y/86400),ae=Math.floor(Y%86400/3600),re=Math.floor(Y%3600/60);return V>0?`${V}d ${ae}h`:`${ae}h ${re}m`},Q=()=>{const Y=N.getHours();return Y<5?"🌙 Good Night":Y<12?"🌅 Good Morning":Y<17?"☀️ Good Afternoon":Y<21?"🌆 Good Evening":"🌙 Good Night"};return b?d.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",background:"#0a0a0f",flexDirection:"column",gap:"16px"},children:[d.jsx("div",{style:{width:"48px",height:"48px",border:`3px solid ${Et}20`,borderTopColor:Et,borderRadius:"50%",animation:"spin 0.8s linear infinite"}}),d.jsx("span",{style:{color:"#888",fontSize:"0.9rem"},children:"Initializing SamarthyaBot..."})]}):d.jsxs("div",{style:he.container,children:[d.jsx("div",{style:{height:"3px",background:`linear-gradient(90deg, ${Et}, ${bb}40, ${Ys})`,borderRadius:"4px",marginBottom:"28px"}}),d.jsxs("div",{style:he.heroSection,children:[d.jsxs("div",{style:he.heroLeft,children:[d.jsx("div",{style:he.greeting,children:Q()}),d.jsxs("h1",{style:he.heroTitle,children:[d.jsx("span",{style:{color:Et},children:"Samarthya"}),d.jsx("span",{style:{color:"#e0e0e0"},children:"Bot"}),d.jsx("span",{style:he.versionBadge,children:"v2.0"})]}),d.jsxs("p",{style:he.heroSub,children:["🇮🇳 Privacy-first Agentic AI · ",N.toLocaleString("en-IN",{timeZone:"Asia/Kolkata",dateStyle:"medium",timeStyle:"short"})," IST"]}),d.jsxs("div",{style:he.statusRow,children:[d.jsxs("span",{style:he.onlinePill,children:[d.jsx("span",{style:he.pulseDot})," ONLINE"]}),d.jsxs("span",{style:he.infoPill,children:[d.jsx(jv,{size:12})," ",c?.activeProvider?.toUpperCase()||"GEMINI"]}),d.jsxs("span",{style:he.infoPill,children:[d.jsx(jx,{size:12})," ",c?.osName||"Linux"]})]})]}),d.jsxs("div",{style:he.heroRight,children:[d.jsxs("button",{onClick:()=>u("/chat"),style:he.heroBtn,children:[d.jsx(au,{size:20})," Talk to Agent"]}),d.jsxs("button",{onClick:async()=>{window.confirm("🚨 Kill all background processes?")&&(await Gs.emergencyStop(),z())},style:he.killBtn,children:[d.jsx(vx,{size:16})," Kill Switch"]})]})]}),d.jsxs("div",{style:he.statsGrid,children:[d.jsx(Lr,{icon:d.jsx($s,{size:24}),value:_(c?.uptime),label:"Agent Uptime",color:"#818cf8",gradient:"linear-gradient(135deg, rgba(129,140,248,0.15), rgba(99,102,241,0.05))"}),d.jsx(Lr,{icon:d.jsx(Yv,{size:24}),value:`${c?.ramUsage||0}%`,label:"Memory Usage",color:"#2dd4bf",gradient:"linear-gradient(135deg, rgba(45,212,191,0.15), rgba(20,184,166,0.05))"}),d.jsx(Lr,{icon:d.jsx(Ks,{size:24}),value:s?.totalActions||0,label:"Tasks Executed",color:Et,gradient:`linear-gradient(135deg, ${Sb}, rgba(255,153,51,0.03))`}),d.jsx(Lr,{icon:d.jsx(px,{size:24}),value:`${c?.totalTools||0}`,label:"Active Tools",color:Ys,gradient:`linear-gradient(135deg, ${Eb}, rgba(19,136,8,0.03))`})]}),d.jsxs("div",{style:he.mainGrid,children:[d.jsxs("div",{style:he.glassCard,children:[d.jsxs("div",{style:he.cardHeader,children:[d.jsxs("div",{style:he.cardTitleRow,children:[d.jsx(Ks,{size:18,style:{color:"#10b981"}}),d.jsx("span",{style:he.cardTitle,children:"Autonomous Processes"})]}),d.jsxs("span",{style:he.liveBadge,children:[d.jsx("span",{style:he.pulseDotSmall})," LIVE"]})]}),d.jsx("div",{style:he.cardBody,children:p.length>0?d.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:p.map(Y=>d.jsxs("div",{style:he.jobCard,children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:[d.jsx("span",{style:{fontWeight:600,color:"#e0e0e0",fontSize:"0.9rem"},children:Y.taskName}),d.jsx("span",{style:Y.isActive?he.activePill:he.stoppedPill,children:Y.isActive?"● RUNNING":"○ STOPPED"})]}),d.jsxs("div",{style:{fontSize:"0.8rem",color:"#888",fontStyle:"italic",marginBottom:"6px"},children:['"',Y.prompt,'"']}),d.jsxs("div",{style:{display:"flex",gap:"14px",fontSize:"0.72rem",color:"#666"},children:[d.jsxs("span",{children:[d.jsx($s,{size:11})," ",Y.intervalMinutes,"m"]}),d.jsxs("span",{children:[d.jsx(Lv,{size:11})," Next: ",new Date(Y.nextRunAt).toLocaleTimeString()]})]})]},Y._id))}):d.jsxs("div",{style:he.emptyState,children:[d.jsx(Js,{size:36,style:{color:"#333",marginBottom:"8px"}}),d.jsx("p",{style:{color:"#666",margin:0},children:"No autonomous tasks running"}),d.jsx("span",{style:{fontSize:"0.75rem",color:"#555"},children:"Ask the agent to schedule a background task!"})]})})]}),d.jsxs("div",{style:he.glassCard,children:[d.jsxs("div",{style:he.cardHeader,children:[d.jsxs("div",{style:he.cardTitleRow,children:[d.jsx(Is,{size:18,style:{color:Et}}),d.jsx("span",{style:he.cardTitle,children:"Recent Interactions"})]}),d.jsxs("button",{onClick:()=>u("/chat"),style:he.linkBtn,children:["All ",d.jsx(di,{size:14})]})]}),d.jsx("div",{style:he.cardBody,children:x.length>0?x.map(Y=>d.jsxs("button",{onClick:()=>u(`/chat/${Y._id}`),style:he.convRow,children:[d.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",background:Et,flexShrink:0}}),d.jsxs("div",{style:{flex:1,minWidth:0},children:[d.jsx("div",{style:{fontSize:"0.88rem",fontWeight:500,color:"#e0e0e0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Y.title}),d.jsxs("div",{style:{fontSize:"0.72rem",color:"#666"},children:[new Date(Y.updatedAt).toLocaleDateString("en-IN")," · ",new Date(Y.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),d.jsx(Av,{size:14,style:{color:"#444"}})]},Y._id)):d.jsxs("div",{style:he.emptyState,children:[d.jsx(Is,{size:32,style:{color:"#333"}}),d.jsx("p",{style:{color:"#666",margin:"8px 0 0"},children:"No conversations yet"})]})})]})]}),d.jsxs("div",{style:he.servicesBar,children:[d.jsx($a,{icon:"🔒",label:"Vault",active:!0}),d.jsx($a,{icon:"🔐",label:"Sandbox",active:!0}),d.jsx($a,{icon:"💓",label:"Heartbeat",active:!0}),d.jsx($a,{icon:"🎙️",label:"Voice"}),d.jsx($a,{icon:"🚀",label:"Spawn",active:!0}),d.jsx($a,{icon:"🔌",label:"Plugins",active:!0}),d.jsx($a,{icon:"🟣",label:"Discord"}),d.jsx($a,{icon:"✈️",label:"Telegram"})]}),d.jsxs("div",{style:he.quickGrid,children:[d.jsx(qr,{icon:d.jsx(Fr,{size:20}),label:"Tool Packs",sub:"Manage agents",color:"#818cf8",onClick:()=>u("/tools")}),d.jsx(qr,{icon:d.jsx(si,{size:20}),label:"Audit Log",sub:"Execution history",color:"#10b981",onClick:()=>u("/audit")}),d.jsx(qr,{icon:d.jsx(Om,{size:20}),label:"Integrations",sub:"Channels & APIs",color:Et,onClick:()=>u("/integrations")}),d.jsx(qr,{icon:d.jsx(dx,{size:20}),label:"Settings",sub:"Configure agent",color:"#f472b6",onClick:()=>u("/settings")})]}),d.jsxs("div",{style:he.footer,children:[d.jsx("div",{style:{height:"2px",background:`linear-gradient(90deg, transparent, ${Et}40, ${Ys}40, transparent)`,marginBottom:"16px"}}),d.jsx("span",{style:{color:"#444",fontSize:"0.78rem"},children:"🇮🇳 Built with ❤️ in India by Bishnu Sahu · SamarthyaBot v2.0.0"})]})]})}function Lr({icon:i,value:u,label:s,color:o,gradient:c}){return d.jsxs("div",{style:{background:c,border:`1px solid ${o}20`,borderRadius:"16px",padding:"20px",display:"flex",alignItems:"center",gap:"16px",transition:"transform 0.2s, box-shadow 0.2s",cursor:"default"},onMouseEnter:h=>{h.currentTarget.style.transform="translateY(-2px)",h.currentTarget.style.boxShadow=`0 8px 30px ${o}15`},onMouseLeave:h=>{h.currentTarget.style.transform="translateY(0)",h.currentTarget.style.boxShadow="none"},children:[d.jsx("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:`${o}18`,color:o,display:"flex",alignItems:"center",justifyContent:"center"},children:i}),d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:"1.6rem",fontWeight:700,color:"#e8e8e8",lineHeight:1.1},children:u}),d.jsx("div",{style:{fontSize:"0.8rem",color:"#888",fontWeight:500,marginTop:"2px"},children:s})]})]})}function $a({icon:i,label:u,active:s}){return d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",borderRadius:"20px",background:s?"rgba(19,136,8,0.08)":"rgba(100,100,100,0.08)",border:`1px solid ${s?"rgba(19,136,8,0.2)":"rgba(100,100,100,0.15)"}`,fontSize:"0.78rem",fontWeight:500,color:s?"#4ade80":"#666"},children:[d.jsx("span",{children:i}),d.jsx("span",{children:u}),s&&d.jsx("span",{style:{width:"5px",height:"5px",borderRadius:"50%",background:"#4ade80"}})]})}function qr({icon:i,label:u,sub:s,color:o,onClick:c}){return d.jsxs("button",{onClick:c,style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"14px",padding:"18px",display:"flex",alignItems:"center",gap:"14px",cursor:"pointer",transition:"all 0.2s",color:"#e0e0e0",textAlign:"left",width:"100%"},onMouseEnter:h=>{h.currentTarget.style.background=`${o}10`,h.currentTarget.style.borderColor=`${o}30`},onMouseLeave:h=>{h.currentTarget.style.background="rgba(255,255,255,0.03)",h.currentTarget.style.borderColor="rgba(255,255,255,0.06)"},children:[d.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"10px",background:`${o}15`,color:o,display:"flex",alignItems:"center",justifyContent:"center"},children:i}),d.jsxs("div",{children:[d.jsx("div",{style:{fontWeight:600,fontSize:"0.9rem"},children:u}),d.jsx("div",{style:{fontSize:"0.75rem",color:"#888"},children:s})]}),d.jsx(di,{size:16,style:{marginLeft:"auto",color:"#444"}})]})}const he={container:{padding:"24px 32px 40px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out",minHeight:"100vh",background:"#0a0a0f"},heroSection:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"32px",flexWrap:"wrap",gap:"20px"},heroLeft:{},heroRight:{display:"flex",gap:"10px",alignItems:"center"},greeting:{fontSize:"0.9rem",color:"#888",marginBottom:"4px",fontWeight:500},heroTitle:{fontSize:"2.2rem",fontWeight:800,letterSpacing:"-1px",margin:0,lineHeight:1.1},versionBadge:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",background:`${Et}20`,color:Et,borderRadius:"6px",marginLeft:"10px",verticalAlign:"super"},heroSub:{color:"#666",fontSize:"0.85rem",marginTop:"8px",marginBottom:"12px"},statusRow:{display:"flex",gap:"8px",flexWrap:"wrap"},onlinePill:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",background:"rgba(16,185,129,0.1)",color:"#4ade80",borderRadius:"20px",fontSize:"0.72rem",fontWeight:700,border:"1px solid rgba(16,185,129,0.2)"},infoPill:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"4px 10px",background:"rgba(255,255,255,0.04)",color:"#888",borderRadius:"20px",fontSize:"0.72rem",fontWeight:500,border:"1px solid rgba(255,255,255,0.08)"},pulseDot:{width:"7px",height:"7px",backgroundColor:"#4ade80",borderRadius:"50%",boxShadow:"0 0 0 0 rgba(74,222,128,0.7)",animation:"pulse 1.5s infinite"},pulseDotSmall:{width:"5px",height:"5px",backgroundColor:"#10b981",borderRadius:"50%",animation:"pulse 1.5s infinite"},heroBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 28px",background:`linear-gradient(135deg, ${Et}, #e67300)`,color:"#fff",border:"none",borderRadius:"12px",fontSize:"0.95rem",fontWeight:700,cursor:"pointer",boxShadow:`0 4px 20px ${Et}40`,transition:"all 0.2s"},killBtn:{display:"flex",alignItems:"center",gap:"6px",padding:"10px 16px",background:"rgba(239,68,68,0.08)",color:"#f87171",border:"1px solid rgba(239,68,68,0.2)",borderRadius:"10px",fontSize:"0.82rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"16px",marginBottom:"28px"},mainGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(340px, 1fr))",gap:"20px",marginBottom:"24px"},glassCard:{background:"rgba(255,255,255,0.025)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"16px",overflow:"hidden",backdropFilter:"blur(10px)"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 18px",borderBottom:"1px solid rgba(255,255,255,0.05)"},cardTitleRow:{display:"flex",alignItems:"center",gap:"8px"},cardTitle:{fontSize:"0.95rem",fontWeight:600,color:"#d0d0d0"},liveBadge:{display:"flex",alignItems:"center",gap:"5px",fontSize:"0.68rem",fontWeight:700,color:"#10b981",background:"rgba(16,185,129,0.1)",padding:"3px 8px",borderRadius:"6px"},linkBtn:{display:"flex",alignItems:"center",gap:"3px",background:"none",border:"none",color:Et,fontSize:"0.82rem",fontWeight:600,cursor:"pointer"},cardBody:{padding:"14px 18px"},jobCard:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.05)",borderRadius:"10px",padding:"12px"},activePill:{fontSize:"0.65rem",padding:"2px 8px",background:"rgba(16,185,129,0.1)",color:"#4ade80",borderRadius:"6px",fontWeight:700},stoppedPill:{fontSize:"0.65rem",padding:"2px 8px",background:"rgba(239,68,68,0.08)",color:"#f87171",borderRadius:"6px",fontWeight:700},convRow:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 8px",borderRadius:"10px",background:"transparent",border:"none",width:"100%",cursor:"pointer",textAlign:"left",color:"#e0e0e0",transition:"background 0.15s"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"36px 16px",textAlign:"center"},servicesBar:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"24px",padding:"16px",background:"rgba(255,255,255,0.02)",borderRadius:"14px",border:"1px solid rgba(255,255,255,0.04)"},quickGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(230px, 1fr))",gap:"12px",marginBottom:"32px"},footer:{textAlign:"center",paddingTop:"8px"}},yc=document.createElement("style");yc.type="text/css";yc.innerText=`
20
+ @keyframes pulse {
21
+ 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
22
+ 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
23
+ 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
24
+ }
25
+ @keyframes fadeIn {
26
+ from { opacity: 0; transform: translateY(8px); }
27
+ to { opacity: 1; transform: translateY(0); }
28
+ }
29
+ @keyframes spin {
30
+ to { transform: rotate(360deg); }
31
+ }
32
+ `;document.head.appendChild(yc);function Ab({user:i,onUpdate:u}){const[s,o]=T.useState({name:i?.name||"",language:i?.language||"hinglish",city:i?.city||"",permissions:i?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[c,h]=T.useState(!1),[p,g]=T.useState(!1),x=async()=>{h(!0);try{const v=await mc.updateProfile(s);u(v.data.user),g(!0),setTimeout(()=>g(!1),3e3)}catch{console.error("Save failed")}finally{h(!1)}},y=[{value:"ask",label:"🔔 Ask Every Time",labelHi:"हर बार पूछो"},{value:"allow_always",label:"✅ Always Allow",labelHi:"हमेशा अनुमति"},{value:"allow_once",label:"☑️ Allow Once",labelHi:"एक बार अनुमति"},{value:"never",label:"🚫 Never Allow",labelHi:"कभी नहीं"}],b=[{key:"fileAccess",label:"File Access",labelHi:"फ़ाइल एक्सेस",icon:"📁",desc:"Read, write, and delete files on your system"},{key:"emailAccess",label:"Email Access",labelHi:"ईमेल एक्सेस",icon:"📧",desc:"Send and read emails on your behalf"},{key:"browserAccess",label:"Browser Automation",labelHi:"ब्राउज़र ऑटोमेशन",icon:"🌐",desc:"Automate web browsing, form filling, scraping"},{key:"calendarAccess",label:"Calendar Access",labelHi:"कैलेंडर एक्सेस",icon:"📅",desc:"Schedule and manage calendar events"}];return d.jsxs("div",{style:Se.container,children:[d.jsxs("div",{style:Se.header,children:[d.jsx("h1",{style:Se.title,children:"⚙️ Settings"}),d.jsx("button",{onClick:x,disabled:c,style:Se.saveBtn,children:p?d.jsxs(d.Fragment,{children:[d.jsx(Fs,{size:18})," Saved!"]}):c?"Saving...":d.jsxs(d.Fragment,{children:[d.jsx(Rx,{size:18})," Save Changes"]})})]}),d.jsxs("div",{style:Se.grid,children:[d.jsxs("div",{style:Se.section,children:[d.jsxs("div",{style:Se.sectionHeader,children:[d.jsx(Bm,{size:20,style:{color:"var(--accent-primary)"}}),d.jsx("h2",{style:Se.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),d.jsxs("div",{style:Se.sectionBody,children:[d.jsxs("div",{style:Se.field,children:[d.jsx("label",{style:Se.label,children:"Name / नाम"}),d.jsx("input",{style:Se.input,value:s.name,onChange:v=>o({...s,name:v.target.value}),placeholder:"Your name"})]}),d.jsxs("div",{style:Se.field,children:[d.jsx("label",{style:Se.label,children:"City / शहर"}),d.jsx("input",{style:Se.input,value:s.city,onChange:v=>o({...s,city:v.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),d.jsxs("div",{style:Se.section,children:[d.jsxs("div",{style:Se.sectionHeader,children:[d.jsx(Om,{size:20,style:{color:"var(--accent-saffron)"}}),d.jsx("h2",{style:Se.sectionTitle,children:"Language / भाषा"})]}),d.jsx("div",{style:Se.sectionBody,children:d.jsx("div",{style:Se.langOptions,children:[{value:"hinglish",label:"Hinglish",desc:"Hindi + English mix",icon:"🗣️"},{value:"hindi",label:"हिंदी",desc:"Pure Hindi responses",icon:"🇮🇳"},{value:"english",label:"English",desc:"English only",icon:"🌍"}].map(v=>d.jsxs("button",{onClick:()=>o({...s,language:v.value}),style:{...Se.langCard,...s.language===v.value?Se.langCardActive:{}},children:[d.jsx("span",{style:Se.langIcon,children:v.icon}),d.jsx("span",{style:Se.langLabel,children:v.label}),d.jsx("span",{style:Se.langDesc,children:v.desc}),s.language===v.value&&d.jsx(Fs,{size:16,style:Se.langCheck})]},v.value))})})]}),d.jsxs("div",{style:Se.section,children:[d.jsxs("div",{style:Se.sectionHeader,children:[d.jsx(si,{size:20,style:{color:"var(--accent-rose)"}}),d.jsx("h2",{style:Se.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),d.jsx("div",{style:Se.sectionBody,children:b.map(v=>d.jsxs("div",{style:Se.permRow,children:[d.jsxs("div",{style:Se.permInfo,children:[d.jsx("span",{style:Se.permIcon,children:v.icon}),d.jsxs("div",{children:[d.jsx("div",{style:Se.permLabel,children:v.label}),d.jsx("div",{style:Se.permDesc,children:v.desc})]})]}),d.jsx("select",{style:Se.permSelect,value:s.permissions[v.key],onChange:N=>o({...s,permissions:{...s.permissions,[v.key]:N.target.value}}),children:y.map(N=>d.jsx("option",{value:N.value,children:N.label},N.value))})]},v.key))})]})]})]})}const Se={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},saveBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 22px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},grid:{display:"flex",flexDirection:"column",gap:"20px"},section:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:"10px",padding:"18px 22px",borderBottom:"1px solid var(--border-subtle)"},sectionTitle:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},sectionBody:{padding:"22px"},field:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"16px",flex:1},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"11px 16px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.9rem",outline:"none",transition:"all 0.2s"},langOptions:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},langCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"18px 14px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer",transition:"all var(--transition-fast)",fontFamily:"var(--font-primary)",position:"relative",color:"var(--text-primary)"},langCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},langIcon:{fontSize:"1.5rem"},langLabel:{fontWeight:600,fontSize:"0.9rem"},langDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},langCheck:{position:"absolute",top:"8px",right:"8px",color:"var(--accent-primary)"},permRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:"1px solid var(--border-subtle)",gap:"16px"},permInfo:{display:"flex",alignItems:"center",gap:"12px",flex:1},permIcon:{fontSize:"1.3rem"},permLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},permDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},permSelect:{padding:"8px 12px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.8rem",outline:"none",minWidth:"170px"}},Vs={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:"🛠️"}},um={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 Tb({user:i}){const[u,s]=T.useState([]),[o,c]=T.useState(null),[h,p]=T.useState(""),[g,x]=T.useState(!0);T.useEffect(()=>{y()},[h]);const y=async()=>{x(!0);try{const v={};h&&(v.category=h);const[N,k]=await Promise.all([Kr.getLogs(v),Kr.getStats()]);s(N.data.logs||[]),c(k.data.stats||null)}catch{console.error("Failed to load audit data"),s([]),c({totalActions:0,byCategory:{},byStatus:{}})}finally{x(!1)}},b=async v=>{try{await Kr.rollback(v),y()}catch{console.error("Rollback failed")}};return d.jsxs("div",{style:pe.container,children:[d.jsx("div",{style:pe.header,children:d.jsxs("div",{children:[d.jsx("h1",{style:pe.title,children:"🔐 Audit Log / ऑडिट लॉग"}),d.jsx("p",{style:pe.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),d.jsxs("div",{style:pe.statsRow,children:[d.jsxs("div",{style:pe.statCard,children:[d.jsx(Ks,{size:20,style:{color:"var(--accent-primary)"}}),d.jsxs("div",{children:[d.jsx("div",{style:pe.statValue,children:o?.totalActions||0}),d.jsx("div",{style:pe.statLabel,children:"Total Actions"})]})]}),d.jsxs("div",{style:pe.statCard,children:[d.jsx(si,{size:20,style:{color:"#10b981"}}),d.jsxs("div",{children:[d.jsx("div",{style:pe.statValue,children:o?.byStatus?.success||0}),d.jsx("div",{style:pe.statLabel,children:"Successful"})]})]}),d.jsxs("div",{style:pe.statCard,children:[d.jsx(Nm,{size:20,style:{color:"#f59e0b"}}),d.jsxs("div",{children:[d.jsx("div",{style:pe.statValue,children:o?.byStatus?.blocked||0}),d.jsx("div",{style:pe.statLabel,children:"Blocked"})]})]}),d.jsxs("div",{style:pe.statCard,children:[d.jsx(Gp,{size:20,style:{color:"#8b5cf6"}}),d.jsxs("div",{children:[d.jsx("div",{style:pe.statValue,children:o?.byStatus?.rolled_back||0}),d.jsx("div",{style:pe.statLabel,children:"Rolled Back"})]})]})]}),d.jsxs("div",{style:pe.filters,children:[d.jsx(ex,{size:16,style:{color:"var(--text-muted)"}}),d.jsx("button",{onClick:()=>p(""),style:{...pe.filterBtn,...h===""?pe.filterBtnActive:{}},children:"All"}),Object.entries(Vs).map(([v,N])=>d.jsxs("button",{onClick:()=>p(v),style:{...pe.filterBtn,...h===v?pe.filterBtnActive:{}},children:[N.icon," ",v]},v))]}),d.jsx("div",{style:pe.timeline,children:g?d.jsxs("div",{style:pe.loadingState,children:[d.jsx("div",{style:pe.spinner}),d.jsx("span",{children:"Loading audit logs..."})]}):u.length===0?d.jsxs("div",{style:pe.emptyState,children:[d.jsx(si,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),d.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):u.map((v,N)=>{const k=Vs[v.category]||Vs.system,z=um[v.status]||um.success;return d.jsxs("div",{style:pe.logEntry,children:[d.jsxs("div",{style:pe.logTimeline,children:[d.jsx("div",{style:{...pe.logDot,background:k.color}}),N<u.length-1&&d.jsx("div",{style:pe.logLine})]}),d.jsxs("div",{style:pe.logContent,children:[d.jsxs("div",{style:pe.logHeader,children:[d.jsxs("span",{style:{...pe.logCategory,background:k.bg,color:k.color},children:[k.icon," ",v.category]}),d.jsx("span",{style:{...pe.logStatus,background:z.bg,color:z.color},children:v.status}),v.details?.riskLevel&&v.details.riskLevel!=="low"&&d.jsxs("span",{style:pe.riskBadge,children:["⚠️ ",v.details.riskLevel," risk"]})]}),d.jsx("div",{style:pe.logAction,children:v.action}),v.details?.toolName&&d.jsxs("div",{style:pe.logDetail,children:["Tool: ",v.details.toolName]}),d.jsxs("div",{style:pe.logTime,children:[d.jsx($s,{size:12}),new Date(v.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),v.canRollback&&v.status!=="rolled_back"&&d.jsxs("button",{onClick:()=>b(v._id),style:pe.rollbackBtn,children:[d.jsx(Gp,{size:14})," Undo / Rollback"]})]})]},v._id||N)})})]})}const pe={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"}},om={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 zb({user:i}){const[u,s]=T.useState([]),[o,c]=T.useState([]),[h,p]=T.useState(null),[g,x]=T.useState([]);T.useEffect(()=>{y()},[]);const y=async()=>{try{const[k,z]=await Promise.all([qs.getPacks(),qs.getAll()]);s(k.data.packs||[]),c(z.data.tools||[])}catch{console.error("Failed to load tools")}},b=async k=>{p(k);try{const z=await qs.getPackTools(k);x(z.data.tools||[])}catch{x([])}},v=async k=>{try{await mc.updateProfile({activePack:k})}catch{console.error("Failed to activate pack")}},N=i?.language==="english";return d.jsxs("div",{style:Le.container,children:[d.jsx("div",{style:Le.header,children:d.jsxs("div",{children:[d.jsxs("h1",{style:Le.title,children:["🛠️ ",N?"Tool Packs":"टूल पैक्स"]}),d.jsx("p",{style:Le.subtitle,children:N?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),d.jsx("div",{style:Le.packsGrid,children:u.map((k,z)=>{const H=i?.activePack===k.id,_=h===k.id;return d.jsxs("div",{onClick:()=>b(k.id),style:{...Le.packCard,...H?Le.packCardActive:{},..._?Le.packCardSelected:{},animationDelay:`${z*.1}s`},children:[d.jsxs("div",{style:Le.packHeader,children:[d.jsx("span",{style:Le.packEmoji,children:k.id==="student"?"🎓":k.id==="business"?"🏢":k.id==="developer"?"👨‍💻":"🏠"}),H&&d.jsxs("span",{style:Le.activeBadge,children:[d.jsx(Fs,{size:12})," ",N?"Active":"सक्रिय"]})]}),d.jsx("h3",{style:Le.packName,children:N?k.name:k.nameHi||k.name}),d.jsx("p",{style:Le.packDesc,children:N?k.description:k.descriptionHi||k.description}),d.jsxs("div",{style:Le.packMeta,children:[d.jsxs("span",{style:Le.toolCount,children:[d.jsx(Fr,{size:14})," ",k.toolCount," tools"]}),d.jsx(di,{size:16,style:{color:"var(--text-muted)"}})]}),!H&&d.jsxs("button",{onClick:Q=>{Q.stopPropagation(),v(k.id)},style:Le.activateBtn,children:[d.jsx(au,{size:14})," ",N?"Activate":"एक्टिवेट करें"]})]},k.id)})}),d.jsxs("div",{style:Le.section,children:[d.jsxs("h2",{style:Le.sectionTitle,children:[d.jsx(Fr,{size:20,style:{color:"var(--accent-primary)"}}),h?N?`Tools in ${h} pack`:`${h} पैक के टूल्स`:N?"All Available Tools":"सभी टूल्स"]}),d.jsx("div",{style:Le.toolsGrid,children:(h?g:o).map((k,z)=>{const H=om[k.riskLevel]||om.low;return d.jsxs("div",{style:{...Le.toolCard,animationDelay:`${z*.05}s`},children:[d.jsxs("div",{style:Le.toolHeader,children:[d.jsx("span",{style:Le.toolName,children:k.name}),d.jsx("span",{style:{...Le.riskBadge,background:H.bg,color:H.color},children:H.label})]}),d.jsx("p",{style:Le.toolDesc,children:N?k.description:k.descriptionHi||k.description}),d.jsx("div",{style:Le.toolMeta,children:d.jsxs("span",{style:Le.toolCategory,children:[k.category==="file"?"📁":k.category==="email"?"📧":k.category==="search"?"🔍":k.category==="calendar"?"📅":"🛠️"," ",k.category]})})]},k.name)})})]})]})}const Le={container:{padding:"28px 32px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},packsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"32px"},packCard:{padding:"22px",background:"var(--bg-secondary)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",cursor:"pointer",transition:"all var(--transition-normal)",animation:"fadeInUp 0.4s ease-out both"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.05)"},packCardSelected:{borderColor:"var(--accent-gold)",boxShadow:"0 0 16px rgba(245, 158, 11, 0.15)"},packHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},packEmoji:{fontSize:"2rem"},activeBadge:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600},packName:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px"},packDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"12px"},packMeta:{display:"flex",alignItems:"center",justifyContent:"space-between"},toolCount:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.8rem",color:"var(--text-muted)"},activateBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"10px",marginTop:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},section:{marginBottom:"20px"},sectionTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.1rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"16px",textTransform:"capitalize"},toolsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},toolCard:{padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",animation:"fadeIn 0.3s ease-out both",transition:"all var(--transition-fast)"},toolHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",flexWrap:"wrap",gap:"6px"},toolName:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)",fontFamily:"monospace"},riskBadge:{padding:"3px 8px",borderRadius:"var(--radius-full)",fontSize:"0.68rem",fontWeight:600},toolDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"4px"},toolMeta:{display:"flex",alignItems:"center",gap:"8px"},toolCategory:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"}},Gr=[{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:"live",tag:"Active"},{name:"WebChat",nameHi:"वेबचैट",icon:"💬",desc:"Browser-based UI (this app)",status:"live",tag:""},{name:"Discord",nameHi:"डिस्कॉर्ड",icon:"🟣",desc:"Gateway API — servers, channels & DMs",status:"live",tag:"New ✨"},{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:"live",tag:""},{name:"Anthropic Claude",nameHi:"एंथ्रोपिक क्लॉड",icon:"🧠",desc:"Claude Sonnet/Opus (Native API)",status:"live",tag:"New ✨"},{name:"DeepSeek",nameHi:"डीपसीक",icon:"🔍",desc:"DeepSeek Chat & Coder",status:"live",tag:"New ✨"},{name:"Qwen",nameHi:"क्वेन",icon:"🐉",desc:"Alibaba Qwen Plus",status:"live",tag:"New ✨"},{name:"OpenRouter",nameHi:"ओपनराउटर",icon:"🌐",desc:"100+ models via single API key",status:"live",tag:"New ✨"},{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:"Groq Whisper",nameHi:"ग्रोक व्हिस्पर",icon:"🎧",desc:"Telegram voice note transcription (cloud)",status:"live",tag:"New ✨"}]},{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:"Workspace Sandbox",nameHi:"वर्कस्पेस सैंडबॉक्स",icon:"🔒",desc:"File/exec restricted to workspace folder",status:"live",tag:"New ✨"},{name:"Local-First",nameHi:"लोकल-फर्स्ट",icon:"🏠",desc:"Ollama for offline private AI",status:"live",tag:""}]},{id:"automation",title:"⟩ Automation & Agents",subtitle:"Autonomous operations — heartbeat tasks, sub-agents, and background work.",items:[{name:"Heartbeat Tasks",nameHi:"हार्टबीट",icon:"💓",desc:"Periodic autonomous tasks from HEARTBEAT.md",status:"live",tag:"New ✨"},{name:"Sub-Agent Spawn",nameHi:"सब-एजेंट",icon:"🚀",desc:"Non-blocking background agents for long tasks",status:"live",tag:"New ✨"},{name:"Background CRON",nameHi:"बैकग्राउंड",icon:"🔄",desc:"Autonomous ReAct planning loops",status:"live",tag:""},{name:"Plugin System",nameHi:"प्लगइन",icon:"🔌",desc:"Drop-in .js plugins for new skills",status:"live",tag:""}]}],jb={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 Cb({user:i}){const[u,s]=T.useState(Gr.reduce((y,b)=>({...y,[b.id]:!0}),{})),[o,c]=T.useState("all"),h=y=>{s(b=>({...b,[y]:!b[y]}))},p=Gr.map(y=>({...y,items:o==="all"?y.items:y.items.filter(b=>b.status===o)})).filter(y=>y.items.length>0),g=Gr.flatMap(y=>y.items).filter(y=>y.status==="live").length,x=Gr.flatMap(y=>y.items).filter(y=>y.status==="coming").length;return d.jsxs("div",{style:Ee.container,children:[d.jsxs("div",{style:Ee.header,children:[d.jsxs("h1",{style:Ee.title,children:[d.jsx(au,{size:28,color:"#FF9933"}),"Integrations"]}),d.jsxs("p",{style:Ee.subtitle,children:[d.jsx("span",{style:Ee.countBadge,children:g})," live integrations with real tools & services.",d.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),d.jsx("div",{style:Ee.filterBar,children:[{key:"all",label:`All (${g+x})`},{key:"live",label:`✅ Live (${g})`},{key:"coming",label:`🔜 Coming (${x})`}].map(y=>d.jsx("button",{onClick:()=>c(y.key),style:{...Ee.filterBtn,...o===y.key?Ee.filterBtnActive:{}},children:y.label},y.key))}),p.map(y=>d.jsxs("div",{style:Ee.category,children:[d.jsxs("button",{onClick:()=>h(y.id),style:Ee.categoryHeader,children:[d.jsxs("div",{children:[d.jsx("h2",{style:Ee.categoryTitle,children:y.title}),d.jsx("p",{style:Ee.categorySubtitle,children:y.subtitle})]}),u[y.id]?d.jsx(Uv,{size:20}):d.jsx(Mv,{size:20})]}),u[y.id]&&d.jsx("div",{style:Ee.grid,children:y.items.map((b,v)=>{const N=jb[b.status];return d.jsxs("div",{style:Ee.card,children:[d.jsxs("div",{style:Ee.cardTop,children:[d.jsx("span",{style:Ee.cardIcon,children:b.icon}),d.jsxs("div",{style:Ee.cardInfo,children:[d.jsx("h3",{style:Ee.cardName,children:b.name}),d.jsx("p",{style:Ee.cardNameHi,children:b.nameHi})]}),b.tag&&d.jsx("span",{style:{...Ee.tag,background:b.tag.includes("Real")?"rgba(19,136,8,0.3)":b.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:b.tag.includes("Real")?"#4ade80":b.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:b.tag})]}),d.jsx("p",{style:Ee.cardDesc,children:b.desc}),d.jsx("div",{style:{...Ee.statusBadge,background:N.bg,color:N.color},children:N.label})]},v)})})]},y.id)),d.jsxs("div",{style:Ee.footerCTA,children:[d.jsx("h2",{style:Ee.ctaTitle,children:"🔧 Want to add more integrations?"}),d.jsxs("p",{style:Ee.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",d.jsx("code",{style:Ee.code,children:"toolRegistry.js"})]}),d.jsxs("div",{style:Ee.ctaButtons,children:[d.jsxs("div",{style:Ee.ctaCard,children:[d.jsx("span",{style:Ee.ctaIcon,children:"📧"}),d.jsx("strong",{children:"Email Setup"}),d.jsx("p",{style:Ee.ctaSmall,children:"Add Gmail App Password to .env"})]}),d.jsxs("div",{style:Ee.ctaCard,children:[d.jsx("span",{style:Ee.ctaIcon,children:"📱"}),d.jsx("strong",{children:"WhatsApp Setup"}),d.jsx("p",{style:Ee.ctaSmall,children:"Meta Business API token"})]}),d.jsxs("div",{style:Ee.ctaCard,children:[d.jsx("span",{style:Ee.ctaIcon,children:"🏠"}),d.jsx("strong",{children:"Offline Mode"}),d.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"}},Xs={folder:{icon:wm,color:"#FF9933"},txt:{icon:Ws,color:"#94a3b8"},md:{icon:Ws,color:"#60a5fa"},json:{icon:Ur,color:"#fbbf24"},js:{icon:Ur,color:"#fbbf24"},html:{icon:Ur,color:"#f97316"},css:{icon:Ur,color:"#38bdf8"},png:{icon:Hs,color:"#a78bfa"},jpg:{icon:Hs,color:"#a78bfa"},jpeg:{icon:Hs,color:"#a78bfa"},pdf:{icon:kp,color:"#ef4444"},default:{icon:kp,color:"#64748b"}};function _b(i){return i.type==="folder"?Xs.folder:Xs[i.extension]||Xs.default}function sm(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function wb(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 Ob({user:i}){const[u,s]=T.useState([]),[o,c]=T.useState(""),[h,p]=T.useState(!1),[g,x]=T.useState(null),[y,b]=T.useState(null),[v,N]=T.useState(!1),[k,z]=T.useState(""),[H,_]=T.useState(""),Q=T.useRef(null);T.useEffect(()=>{Y(),V()},[o]);const Y=async()=>{p(!0),_("");try{const K=await gn.list(o);s(K.data.items||[])}catch(K){_(K.response?.data?.error||"Failed to load files"),s([])}finally{p(!1)}},V=async()=>{try{const K=await gn.getStats();x(K.data.stats)}catch{}},ae=K=>{K.type==="folder"?c(K.path):me(K)},re=()=>{const K=o.split("/");K.pop(),c(K.join("/"))},me=async K=>{try{const ce=await gn.read(K.path);b(ce.data)}catch{_("Cannot preview this file")}},F=K=>{const ce=gn.download(K.path);window.open(ce,"_blank")},_e=async K=>{const ce=K.type==="folder"?`Delete folder "${K.name}" and all its contents?`:`Delete file "${K.name}"?`;if(window.confirm(ce))try{await gn.deleteFile(K.path),Y(),V()}catch(ve){_(ve.response?.data?.error||"Delete failed")}},De=async()=>{if(k.trim())try{await gn.mkdir(k.trim(),o),z(""),N(!1),Y()}catch(K){_(K.response?.data?.error||"Failed to create folder")}},it=async K=>{const ce=K.target.files?.[0];if(!ce)return;const ve=new FileReader;ve.onload=async()=>{try{await gn.upload(ce.name,ve.result,o),Y(),V()}catch(we){_(we.response?.data?.error||"Upload failed")}},ce.type.startsWith("text/")||["application/json","application/javascript"].includes(ce.type)?ve.readAsText(ce):ve.readAsDataURL(ce),K.target.value=""},$e=["My Stuff",...o.split("/").filter(Boolean)];return d.jsxs("div",{style:de.container,children:[d.jsxs("div",{style:de.header,children:[d.jsxs("div",{style:de.headerLeft,children:[d.jsx(Mm,{size:24,color:"#FF9933"}),d.jsx("h1",{style:de.title,children:"My Stuff"}),g&&d.jsxs("span",{style:de.statsTag,children:[g.fileCount," files · ",g.folderCount," folders · ",g.totalSizeFormatted]})]}),d.jsxs("div",{style:de.headerActions,children:[d.jsxs("button",{onClick:()=>N(!0),style:de.actionBtn,children:[d.jsx(Lp,{size:16})," New Folder"]}),d.jsxs("button",{onClick:()=>Q.current?.click(),style:de.actionBtn,children:[d.jsx(Nx,{size:16})," Upload"]}),d.jsx("button",{onClick:Y,style:de.actionBtnIcon,children:d.jsx(bx,{size:16})}),d.jsx("input",{ref:Q,type:"file",onChange:it,style:{display:"none"}})]})]}),d.jsx("div",{style:de.breadcrumb,children:$e.map((K,ce)=>d.jsxs(Wr.Fragment,{children:[ce>0&&d.jsx(di,{size:14,color:"#64748b"}),d.jsx("button",{onClick:()=>{if(ce===0)c("");else{const ve=o.split("/").slice(0,ce).join("/");c(ve)}},style:{...de.crumbItem,color:ce===$e.length-1?"#FF9933":"#94a3b8"},children:K})]},ce))}),v&&d.jsxs("div",{style:de.newFolderRow,children:[d.jsx(Lp,{size:18,color:"#FF9933"}),d.jsx("input",{type:"text",value:k,onChange:K=>z(K.target.value),onKeyDown:K=>K.key==="Enter"&&De(),placeholder:"Folder name...",style:de.newFolderInput,autoFocus:!0}),d.jsx("button",{onClick:De,style:de.newFolderOk,children:"Create"}),d.jsx("button",{onClick:()=>{N(!1),z("")},style:de.newFolderCancel,children:d.jsx(Yp,{size:16})})]}),H&&d.jsxs("div",{style:de.error,children:["❌ ",H,d.jsx("button",{onClick:()=>_(""),style:de.errorClose,children:"×"})]}),o&&d.jsxs("button",{onClick:re,style:de.backBtn,children:[d.jsx(Ev,{size:16})," Back"]}),h?d.jsx("div",{style:de.loadingBox,children:"Loading..."}):u.length===0?d.jsxs("div",{style:de.emptyBox,children:[d.jsx(wm,{size:48,color:"#333"}),d.jsx("p",{style:de.emptyText,children:"This folder is empty"}),d.jsx("p",{style:de.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):d.jsx("div",{style:de.fileGrid,children:u.map((K,ce)=>{const ve=_b(K),we=ve.icon;return d.jsxs("div",{style:de.fileCard,onDoubleClick:()=>ae(K),children:[d.jsxs("div",{style:de.fileCardTop,onClick:()=>ae(K),children:[d.jsx(we,{size:32,color:ve.color}),d.jsxs("div",{style:de.fileInfo,children:[d.jsx("span",{style:de.fileName,children:K.name}),d.jsxs("span",{style:de.fileMeta,children:[K.type==="folder"?"Folder":sm(K.size),K.modified&&` · ${wb(K.modified)}`]})]})]}),d.jsxs("div",{style:de.fileActions,children:[K.type==="file"&&d.jsxs(d.Fragment,{children:[d.jsx("button",{onClick:()=>me(K),style:de.fileActionBtn,title:"Preview",children:d.jsx(Zv,{size:14})}),d.jsx("button",{onClick:()=>F(K),style:de.fileActionBtn,title:"Download",children:d.jsx(Xv,{size:14})})]}),d.jsx("button",{onClick:()=>_e(K),style:{...de.fileActionBtn,...de.deleteBtn},title:"Delete",children:d.jsx(Dm,{size:14})})]})]},ce)})}),y&&d.jsx("div",{style:de.modalOverlay,onClick:()=>b(null),children:d.jsxs("div",{style:de.modal,onClick:K=>K.stopPropagation(),children:[d.jsxs("div",{style:de.modalHeader,children:[d.jsxs("h3",{style:de.modalTitle,children:[d.jsx(Ws,{size:18,color:"#FF9933"}),y.name]}),d.jsxs("span",{style:de.modalMeta,children:[sm(y.size)," · ",y.extension?.toUpperCase()]}),d.jsx("button",{onClick:()=>b(null),style:de.modalClose,children:d.jsx(Yp,{size:20})})]}),d.jsx("pre",{style:de.previewContent,children:y.content})]})})]})}const de={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"}},Mb=({user:i,loading:u,updateUser:s,sidebarOpen:o,setSidebarOpen:c})=>(It(),u?d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[d.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),d.jsx("span",{style:{color:"var(--text-muted)",marginTop:"16px"},children:"Loading SamarthyaBot..."})]}):d.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[d.jsx(qx,{user:i,isOpen:o,onToggle:()=>c(!o)}),d.jsx("main",{style:{flex:1,minHeight:"100vh"},children:d.jsxs(B1,{children:[d.jsx($t,{path:"/",element:d.jsx(Rb,{user:i})}),d.jsx($t,{path:"/dashboard",element:d.jsx(Bp,{to:"/",replace:!0})}),d.jsx($t,{path:"/chat",element:d.jsx(rm,{user:i})}),d.jsx($t,{path:"/chat/:id",element:d.jsx(rm,{user:i})}),d.jsx($t,{path:"/settings",element:d.jsx(Ab,{user:i,onUpdate:s})}),d.jsx($t,{path:"/audit",element:d.jsx(Tb,{user:i})}),d.jsx($t,{path:"/tools",element:d.jsx(zb,{user:i})}),d.jsx($t,{path:"/integrations",element:d.jsx(Cb,{user:i})}),d.jsx($t,{path:"/my-stuff",element:d.jsx(Ob,{user:i})}),d.jsx($t,{path:"*",element:d.jsx(Bp,{to:"/"})})]})})]}));function Db(){const[i,u]=T.useState(null),[s,o]=T.useState(!0),[c,h]=T.useState(!0);T.useEffect(()=>{(async()=>{try{const x=await mc.getProfile();u(x.data.user)}catch(x){console.error(x)}o(!1)})()},[]);const p=g=>{u(g)};return d.jsx(iv,{children:d.jsx(Mb,{user:i,loading:s,updateUser:p,sidebarOpen:c,setSidebarOpen:h})})}kg.createRoot(document.getElementById("root")).render(d.jsx(Wr.StrictMode,{children:d.jsx(Db,{})}));