@c4a/server-cli 0.4.11-beta.1 → 0.4.12-alpha.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 (67) hide show
  1. package/index.js +795 -3402
  2. package/package.json +1 -1
  3. package/serve.js +3223 -4183
  4. package/web/assets/index--UyZtsHr.js +238 -0
  5. package/web/assets/index-15FuETM5.js +238 -0
  6. package/web/assets/index-1O90ZcBt.js +238 -0
  7. package/web/assets/index-2ZaXHlEm.js +12 -0
  8. package/web/assets/index-5SgaIe6K.js +238 -0
  9. package/web/assets/index-69TE-Dt9.js +238 -0
  10. package/web/assets/index-6qWMAJjW.js +12 -0
  11. package/web/assets/index-8bavzcKH.js +238 -0
  12. package/web/assets/index-B2JcVRax.js +238 -0
  13. package/web/assets/index-B3a1j3cz.js +238 -0
  14. package/web/assets/index-B6EqO_Cg.js +12 -0
  15. package/web/assets/index-B7OJ5sV_.js +238 -0
  16. package/web/assets/index-B9YWtkC-.js +12 -0
  17. package/web/assets/index-BD162a_1.js +238 -0
  18. package/web/assets/index-BF50bkqY.css +1 -0
  19. package/web/assets/index-BPMcNaXa.css +1 -0
  20. package/web/assets/index-BPlwhwPb.css +1 -0
  21. package/web/assets/index-BW9aouHt.js +238 -0
  22. package/web/assets/index-BbZvxZvZ.css +1 -0
  23. package/web/assets/index-BkYFml7g.css +1 -0
  24. package/web/assets/index-Bnn0CunM.js +238 -0
  25. package/web/assets/index-BosC7CbW.css +1 -0
  26. package/web/assets/index-BrJa-9jA.css +1 -0
  27. package/web/assets/index-C63Z-8cw.js +238 -0
  28. package/web/assets/index-C6ydhyiL.js +238 -0
  29. package/web/assets/index-CAXoXe3-.css +1 -0
  30. package/web/assets/index-CDG7D9Wo.css +1 -0
  31. package/web/assets/index-CNruo9jb.js +238 -0
  32. package/web/assets/index-CUGq5bZG.js +12 -0
  33. package/web/assets/index-CVB_F0xd.js +238 -0
  34. package/web/assets/index-CVct6UjO.css +1 -0
  35. package/web/assets/index-CX2QKHgP.js +12 -0
  36. package/web/assets/index-Cok56quU.css +1 -0
  37. package/web/assets/index-Ct-X2M8U.js +12 -0
  38. package/web/assets/index-CtnVCeI7.css +1 -0
  39. package/web/assets/index-Cu6ttPtz.js +12 -0
  40. package/web/assets/index-CvTLDILA.css +1 -0
  41. package/web/assets/index-D0x9zuj2.js +238 -0
  42. package/web/assets/index-D3-qG0Hp.js +238 -0
  43. package/web/assets/index-D3UsEQTE.css +1 -0
  44. package/web/assets/index-D5WvCk3U.js +238 -0
  45. package/web/assets/index-D6QqUdMz.css +1 -0
  46. package/web/assets/index-D7EkgIsu.js +12 -0
  47. package/web/assets/index-DB_YWOXK.js +12 -0
  48. package/web/assets/index-DBaysFVi.css +1 -0
  49. package/web/assets/index-DGYdHfUt.js +238 -0
  50. package/web/assets/index-DIzfj2PR.css +1 -0
  51. package/web/assets/index-DJiYLRIW.css +1 -0
  52. package/web/assets/index-DQcztEye.js +238 -0
  53. package/web/assets/index-DSnxWXVs.css +1 -0
  54. package/web/assets/index-DX1UQEJF.css +1 -0
  55. package/web/assets/index-DgtV8nwc.js +238 -0
  56. package/web/assets/index-DqdyIshw.js +12 -0
  57. package/web/assets/index-DyF2kEj9.js +238 -0
  58. package/web/assets/index-H6Rs5Fbq.js +12 -0
  59. package/web/assets/index-O5LI2GNV.js +238 -0
  60. package/web/assets/index-SnFvyzm_.css +1 -0
  61. package/web/assets/index-bnfl0N-T.css +1 -0
  62. package/web/assets/index-cMgxghVE.css +1 -0
  63. package/web/assets/index-dDuVahj-.js +12 -0
  64. package/web/assets/index-fG23cf-l.js +238 -0
  65. package/web/assets/index-it-5oMch.css +1 -0
  66. package/web/assets/index-yq497d-W.js +12 -0
  67. package/web/index.html +2 -2
@@ -0,0 +1,238 @@
1
+ function TR(o,s){for(var i=0;i<s.length;i++){const c=s[i];if(typeof c!="string"&&!Array.isArray(c)){for(const u in c)if(u!=="default"&&!(u in o)){const f=Object.getOwnPropertyDescriptor(c,u);f&&Object.defineProperty(o,u,f.get?f:{enumerable:!0,get:()=>c[u]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))c(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();function _R(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var gg={exports:{}},vf={},bg={exports:{}},Yc={exports:{}};Yc.exports;var TS;function OR(){return TS||(TS=1,(function(o,s){(function(){function i(N,z){Object.defineProperty(f.prototype,N,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",z[0],z[1])}})}function c(N){return N===null||typeof N!="object"?null:(N=Ze&&N[Ze]||N["@@iterator"],typeof N=="function"?N:null)}function u(N,z){N=(N=N.constructor)&&(N.displayName||N.name)||"ReactClass";var ee=N+"."+z;$e[ee]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",z,N),$e[ee]=!0)}function f(N,z,ee){this.props=N,this.context=z,this.refs=dt,this.updater=ee||ta}function h(){}function p(N,z,ee){this.props=N,this.context=z,this.refs=dt,this.updater=ee||ta}function y(){}function x(N){return""+N}function w(N){try{x(N);var z=!1}catch{z=!0}if(z){z=console;var ee=z.error,ce=typeof Symbol=="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object";return ee.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ce),x(N)}}function v(N){if(N==null)return null;if(typeof N=="function")return N.$$typeof===li?null:N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case q:return"Fragment";case Oe:return"Profiler";case ge:return"StrictMode";case lt:return"Suspense";case ea:return"SuspenseList";case P:return"Activity"}if(typeof N=="object")switch(typeof N.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),N.$$typeof){case xe:return"Portal";case ct:return N.displayName||"Context";case Se:return(N._context.displayName||"Context")+".Consumer";case At:var z=N.render;return N=N.displayName,N||(N=z.displayName||z.name||"",N=N!==""?"ForwardRef("+N+")":"ForwardRef"),N;case Gt:return z=N.displayName||null,z!==null?z:v(N.type)||"Memo";case Ia:z=N._payload,N=N._init;try{return v(N(z))}catch{}}return null}function E(N){if(N===q)return"<>";if(typeof N=="object"&&N!==null&&N.$$typeof===Ia)return"<...>";try{var z=v(N);return z?"<"+z+">":"<...>"}catch{return"<...>"}}function R(){var N=Ne.A;return N===null?null:N.getOwner()}function A(){return Error("react-stack-top-frame")}function H(N){if(bs.call(N,"key")){var z=Object.getOwnPropertyDescriptor(N,"key").get;if(z&&z.isReactWarning)return!1}return N.key!==void 0}function V(N,z){function ee(){zo||(zo=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",z))}ee.isReactWarning=!0,Object.defineProperty(N,"key",{get:ee,configurable:!0})}function I(){var N=v(this.type);return pn[N]||(pn[N]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),N=this.props.ref,N!==void 0?N:null}function Z(N,z,ee,ce,Ee,Ve){var Re=ee.ref;return N={$$typeof:he,type:N,key:z,props:ee,_owner:ce},(Re!==void 0?Re:null)!==null?Object.defineProperty(N,"ref",{enumerable:!1,get:I}):Object.defineProperty(N,"ref",{enumerable:!1,value:null}),N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(N,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(N,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.defineProperty(N,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ve}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N}function le(N,z){return z=Z(N.type,z,N.props,N._owner,N._debugStack,N._debugTask),N._store&&(z._store.validated=N._store.validated),z}function ae(N){K(N)?N._store&&(N._store.validated=1):typeof N=="object"&&N!==null&&N.$$typeof===Ia&&(N._payload.status==="fulfilled"?K(N._payload.value)&&N._payload.value._store&&(N._payload.value._store.validated=1):N._store&&(N._store.validated=1))}function K(N){return typeof N=="object"&&N!==null&&N.$$typeof===he}function se(N){var z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ee){return z[ee]})}function re(N,z){return typeof N=="object"&&N!==null&&N.key!=null?(w(N.key),se(""+N.key)):z.toString(36)}function j(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(y,y):(N.status="pending",N.then(function(z){N.status==="pending"&&(N.status="fulfilled",N.value=z)},function(z){N.status==="pending"&&(N.status="rejected",N.reason=z)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function W(N,z,ee,ce,Ee){var Ve=typeof N;(Ve==="undefined"||Ve==="boolean")&&(N=null);var Re=!1;if(N===null)Re=!0;else switch(Ve){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(N.$$typeof){case he:case xe:Re=!0;break;case Ia:return Re=N._init,W(Re(N._payload),z,ee,ce,Ee)}}if(Re){Re=N,Ee=Ee(Re);var tt=ce===""?"."+re(Re,0):ce;return Xt(Ee)?(ee="",tt!=null&&(ee=tt.replace(Ha,"$&/")+"/"),W(Ee,z,ee,"",function(sa){return sa})):Ee!=null&&(K(Ee)&&(Ee.key!=null&&(Re&&Re.key===Ee.key||w(Ee.key)),ee=le(Ee,ee+(Ee.key==null||Re&&Re.key===Ee.key?"":(""+Ee.key).replace(Ha,"$&/")+"/")+tt),ce!==""&&Re!=null&&K(Re)&&Re.key==null&&Re._store&&!Re._store.validated&&(ee._store.validated=2),Ee=ee),z.push(Ee)),1}if(Re=0,tt=ce===""?".":ce+":",Xt(N))for(var Ye=0;Ye<N.length;Ye++)ce=N[Ye],Ve=tt+re(ce,Ye),Re+=W(ce,z,ee,Ve,Ee);else if(Ye=c(N),typeof Ye=="function")for(Ye===N.entries&&(gn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gn=!0),N=Ye.call(N),Ye=0;!(ce=N.next()).done;)ce=ce.value,Ve=tt+re(ce,Ye++),Re+=W(ce,z,ee,Ve,Ee);else if(Ve==="object"){if(typeof N.then=="function")return W(j(N),z,ee,ce,Ee);throw z=String(N),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Re}function Q(N,z,ee){if(N==null)return N;var ce=[],Ee=0;return W(N,ce,"","",function(Ve){return z.call(ee,Ve,Ee++)}),ce}function oe(N){if(N._status===-1){var z=N._ioInfo;z!=null&&(z.start=z.end=performance.now()),z=N._result;var ee=z();if(ee.then(function(Ee){if(N._status===0||N._status===-1){N._status=1,N._result=Ee;var Ve=N._ioInfo;Ve!=null&&(Ve.end=performance.now()),ee.status===void 0&&(ee.status="fulfilled",ee.value=Ee)}},function(Ee){if(N._status===0||N._status===-1){N._status=2,N._result=Ee;var Ve=N._ioInfo;Ve!=null&&(Ve.end=performance.now()),ee.status===void 0&&(ee.status="rejected",ee.reason=Ee)}}),z=N._ioInfo,z!=null){z.value=ee;var ce=ee.displayName;typeof ce=="string"&&(z.name=ce)}N._status===-1&&(N._status=0,N._result=ee)}if(N._status===1)return z=N._result,z===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,z),"default"in z||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,z),z.default;throw N._result}function $(){var N=Ne.H;return N===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),N}function ue(){Ne.asyncTransitions--}function ve(N){if(Lo===null)try{var z=("require"+Math.random()).slice(0,7);Lo=(o&&o[z]).call(o,"timers").setImmediate}catch{Lo=function(ce){vs===!1&&(vs=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ee=new MessageChannel;Ee.port1.onmessage=ce,Ee.port2.postMessage(void 0)}}return Lo(N)}function Te(N){return 1<N.length&&typeof AggregateError=="function"?new AggregateError(N):N[0]}function J(N,z){z!==bn-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),bn=z}function de(N,z,ee){var ce=Ne.actQueue;if(ce!==null)if(ce.length!==0)try{fe(ce),ve(function(){return de(N,z,ee)});return}catch(Ee){Ne.thrownErrors.push(Ee)}else Ne.actQueue=null;0<Ne.thrownErrors.length?(ce=Te(Ne.thrownErrors),Ne.thrownErrors.length=0,ee(ce)):z(N)}function fe(N){if(!ya){ya=!0;var z=0;try{for(;z<N.length;z++){var ee=N[z];do{Ne.didUsePromise=!1;var ce=ee(!1);if(ce!==null){if(Ne.didUsePromise){N[z]=ee,N.splice(0,z);return}ee=ce}else break}while(!0)}N.length=0}catch(Ee){N.splice(0,z+1),Ne.thrownErrors.push(Ee)}finally{ya=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var he=Symbol.for("react.transitional.element"),xe=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),Oe=Symbol.for("react.profiler"),Se=Symbol.for("react.consumer"),ct=Symbol.for("react.context"),At=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),ea=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),Ia=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Ze=Symbol.iterator,$e={},ta={isMounted:function(){return!1},enqueueForceUpdate:function(N){u(N,"forceUpdate")},enqueueReplaceState:function(N){u(N,"replaceState")},enqueueSetState:function(N){u(N,"setState")}},Za=Object.assign,dt={};Object.freeze(dt),f.prototype.isReactComponent={},f.prototype.setState=function(N,z){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,z,"setState")},f.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};var wt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Vn in wt)wt.hasOwnProperty(Vn)&&i(Vn,wt[Vn]);h.prototype=f.prototype,wt=p.prototype=new h,wt.constructor=p,Za(wt,f.prototype),wt.isPureReactComponent=!0;var Xt=Array.isArray,li=Symbol.for("react.client.reference"),Ne={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bs=Object.prototype.hasOwnProperty,hn=console.createTask?console.createTask:function(){return null};wt={react_stack_bottom_frame:function(N){return N()}};var zo,to,pn={},Ln=wt.react_stack_bottom_frame.bind(wt,A)(),ys=hn(E(A)),gn=!1,Ha=/\/+/g,Da=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},vs=!1,Lo=null,bn=0,Vo=!1,ya=!1,Ho=typeof queueMicrotask=="function"?function(N){queueMicrotask(function(){return queueMicrotask(N)})}:ve;wt=Object.freeze({__proto__:null,c:function(N){return $().useMemoCache(N)}});var Vn={map:Q,forEach:function(N,z,ee){Q(N,function(){z.apply(this,arguments)},ee)},count:function(N){var z=0;return Q(N,function(){z++}),z},toArray:function(N){return Q(N,function(z){return z})||[]},only:function(N){if(!K(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};s.Activity=P,s.Children=Vn,s.Component=f,s.Fragment=q,s.Profiler=Oe,s.PureComponent=p,s.StrictMode=ge,s.Suspense=lt,s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ne,s.__COMPILER_RUNTIME=wt,s.act=function(N){var z=Ne.actQueue,ee=bn;bn++;var ce=Ne.actQueue=z!==null?z:[],Ee=!1;try{var Ve=N()}catch(Ye){Ne.thrownErrors.push(Ye)}if(0<Ne.thrownErrors.length)throw J(z,ee),N=Te(Ne.thrownErrors),Ne.thrownErrors.length=0,N;if(Ve!==null&&typeof Ve=="object"&&typeof Ve.then=="function"){var Re=Ve;return Ho(function(){Ee||Vo||(Vo=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ye,sa){Ee=!0,Re.then(function(Ra){if(J(z,ee),ee===0){try{fe(ce),ve(function(){return de(Ra,Ye,sa)})}catch($o){Ne.thrownErrors.push($o)}if(0<Ne.thrownErrors.length){var Bo=Te(Ne.thrownErrors);Ne.thrownErrors.length=0,sa(Bo)}}else Ye(Ra)},function(Ra){J(z,ee),0<Ne.thrownErrors.length&&(Ra=Te(Ne.thrownErrors),Ne.thrownErrors.length=0),sa(Ra)})}}}var tt=Ve;if(J(z,ee),ee===0&&(fe(ce),ce.length!==0&&Ho(function(){Ee||Vo||(Vo=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ne.actQueue=null),0<Ne.thrownErrors.length)throw N=Te(Ne.thrownErrors),Ne.thrownErrors.length=0,N;return{then:function(Ye,sa){Ee=!0,ee===0?(Ne.actQueue=ce,ve(function(){return de(tt,Ye,sa)})):Ye(tt)}}},s.cache=function(N){return function(){return N.apply(null,arguments)}},s.cacheSignal=function(){return null},s.captureOwnerStack=function(){var N=Ne.getCurrentStack;return N===null?null:N()},s.cloneElement=function(N,z,ee){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ce=Za({},N.props),Ee=N.key,Ve=N._owner;if(z!=null){var Re;e:{if(bs.call(z,"ref")&&(Re=Object.getOwnPropertyDescriptor(z,"ref").get)&&Re.isReactWarning){Re=!1;break e}Re=z.ref!==void 0}Re&&(Ve=R()),H(z)&&(w(z.key),Ee=""+z.key);for(tt in z)!bs.call(z,tt)||tt==="key"||tt==="__self"||tt==="__source"||tt==="ref"&&z.ref===void 0||(ce[tt]=z[tt])}var tt=arguments.length-2;if(tt===1)ce.children=ee;else if(1<tt){Re=Array(tt);for(var Ye=0;Ye<tt;Ye++)Re[Ye]=arguments[Ye+2];ce.children=Re}for(ce=Z(N.type,Ee,ce,Ve,N._debugStack,N._debugTask),Ee=2;Ee<arguments.length;Ee++)ae(arguments[Ee]);return ce},s.createContext=function(N){return N={$$typeof:ct,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:Se,_context:N},N._currentRenderer=null,N._currentRenderer2=null,N},s.createElement=function(N,z,ee){for(var ce=2;ce<arguments.length;ce++)ae(arguments[ce]);ce={};var Ee=null;if(z!=null)for(Ye in to||!("__self"in z)||"key"in z||(to=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),H(z)&&(w(z.key),Ee=""+z.key),z)bs.call(z,Ye)&&Ye!=="key"&&Ye!=="__self"&&Ye!=="__source"&&(ce[Ye]=z[Ye]);var Ve=arguments.length-2;if(Ve===1)ce.children=ee;else if(1<Ve){for(var Re=Array(Ve),tt=0;tt<Ve;tt++)Re[tt]=arguments[tt+2];Object.freeze&&Object.freeze(Re),ce.children=Re}if(N&&N.defaultProps)for(Ye in Ve=N.defaultProps,Ve)ce[Ye]===void 0&&(ce[Ye]=Ve[Ye]);Ee&&V(ce,typeof N=="function"?N.displayName||N.name||"Unknown":N);var Ye=1e4>Ne.recentlyCreatedOwnerStacks++;return Z(N,Ee,ce,R(),Ye?Error("react-stack-top-frame"):Ln,Ye?hn(E(N)):ys)},s.createRef=function(){var N={current:null};return Object.seal(N),N},s.forwardRef=function(N){N!=null&&N.$$typeof===Gt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof N!="function"?console.error("forwardRef requires a render function but was given %s.",N===null?"null":typeof N):N.length!==0&&N.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",N.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),N!=null&&N.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var z={$$typeof:At,render:N},ee;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(ce){ee=ce,N.name||N.displayName||(Object.defineProperty(N,"name",{value:ce}),N.displayName=ce)}}),z},s.isValidElement=K,s.lazy=function(N){N={_status:-1,_result:N};var z={$$typeof:Ia,_payload:N,_init:oe},ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return N._ioInfo=ee,z._debugInfo=[{awaited:ee}],z},s.memo=function(N,z){N==null&&console.error("memo: The first argument must be a component. Instead received: %s",N===null?"null":typeof N),z={$$typeof:Gt,type:N,compare:z===void 0?null:z};var ee;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(ce){ee=ce,N.name||N.displayName||(Object.defineProperty(N,"name",{value:ce}),N.displayName=ce)}}),z},s.startTransition=function(N){var z=Ne.T,ee={};ee._updatedFibers=new Set,Ne.T=ee;try{var ce=N(),Ee=Ne.S;Ee!==null&&Ee(ee,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&(Ne.asyncTransitions++,ce.then(ue,ue),ce.then(y,Da))}catch(Ve){Da(Ve)}finally{z===null&&ee._updatedFibers&&(N=ee._updatedFibers.size,ee._updatedFibers.clear(),10<N&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),z!==null&&ee.types!==null&&(z.types!==null&&z.types!==ee.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=ee.types),Ne.T=z}},s.unstable_useCacheRefresh=function(){return $().useCacheRefresh()},s.use=function(N){return $().use(N)},s.useActionState=function(N,z,ee){return $().useActionState(N,z,ee)},s.useCallback=function(N,z){return $().useCallback(N,z)},s.useContext=function(N){var z=$();return N.$$typeof===Se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),z.useContext(N)},s.useDebugValue=function(N,z){return $().useDebugValue(N,z)},s.useDeferredValue=function(N,z){return $().useDeferredValue(N,z)},s.useEffect=function(N,z){return N==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useEffect(N,z)},s.useEffectEvent=function(N){return $().useEffectEvent(N)},s.useId=function(){return $().useId()},s.useImperativeHandle=function(N,z,ee){return $().useImperativeHandle(N,z,ee)},s.useInsertionEffect=function(N,z){return N==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useInsertionEffect(N,z)},s.useLayoutEffect=function(N,z){return N==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useLayoutEffect(N,z)},s.useMemo=function(N,z){return $().useMemo(N,z)},s.useOptimistic=function(N,z){return $().useOptimistic(N,z)},s.useReducer=function(N,z,ee){return $().useReducer(N,z,ee)},s.useRef=function(N){return $().useRef(N)},s.useState=function(N){return $().useState(N)},s.useSyncExternalStore=function(N,z,ee){return $().useSyncExternalStore(N,z,ee)},s.useTransition=function(){return $().useTransition()},s.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Yc,Yc.exports)),Yc.exports}var _S;function eu(){return _S||(_S=1,bg.exports=OR()),bg.exports}var OS;function UR(){if(OS)return vf;OS=1;return(function(){function o(q){if(q==null)return null;if(typeof q=="function")return q.$$typeof===oe?null:q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case V:return"Fragment";case Z:return"Profiler";case I:return"StrictMode";case se:return"Suspense";case re:return"SuspenseList";case Q:return"Activity"}if(typeof q=="object")switch(typeof q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case H:return"Portal";case ae:return q.displayName||"Context";case le:return(q._context.displayName||"Context")+".Consumer";case K:var ge=q.render;return q=q.displayName,q||(q=ge.displayName||ge.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case j:return ge=q.displayName||null,ge!==null?ge:o(q.type)||"Memo";case W:ge=q._payload,q=q._init;try{return o(q(ge))}catch{}}return null}function s(q){return""+q}function i(q){try{s(q);var ge=!1}catch{ge=!0}if(ge){ge=console;var Oe=ge.error,Se=typeof Symbol=="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return Oe.call(ge,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Se),s(q)}}function c(q){if(q===V)return"<>";if(typeof q=="object"&&q!==null&&q.$$typeof===W)return"<...>";try{var ge=o(q);return ge?"<"+ge+">":"<...>"}catch{return"<...>"}}function u(){var q=$.A;return q===null?null:q.getOwner()}function f(){return Error("react-stack-top-frame")}function h(q){if(ue.call(q,"key")){var ge=Object.getOwnPropertyDescriptor(q,"key").get;if(ge&&ge.isReactWarning)return!1}return q.key!==void 0}function p(q,ge){function Oe(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ge))}Oe.isReactWarning=!0,Object.defineProperty(q,"key",{get:Oe,configurable:!0})}function y(){var q=o(this.type);return de[q]||(de[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function x(q,ge,Oe,Se,ct,At){var lt=Oe.ref;return q={$$typeof:A,type:q,key:ge,props:Oe,_owner:Se},(lt!==void 0?lt:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:y}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ct}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:At}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function w(q,ge,Oe,Se,ct,At){var lt=ge.children;if(lt!==void 0)if(Se)if(ve(lt)){for(Se=0;Se<lt.length;Se++)v(lt[Se]);Object.freeze&&Object.freeze(lt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(lt);if(ue.call(ge,"key")){lt=o(q);var ea=Object.keys(ge).filter(function(Ia){return Ia!=="key"});Se=0<ea.length?"{key: someKey, "+ea.join(": ..., ")+": ...}":"{key: someKey}",xe[lt+Se]||(ea=0<ea.length?"{"+ea.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,Se,lt,ea,lt),xe[lt+Se]=!0)}if(lt=null,Oe!==void 0&&(i(Oe),lt=""+Oe),h(ge)&&(i(ge.key),lt=""+ge.key),"key"in ge){Oe={};for(var Gt in ge)Gt!=="key"&&(Oe[Gt]=ge[Gt])}else Oe=ge;return lt&&p(Oe,typeof q=="function"?q.displayName||q.name||"Unknown":q),x(q,lt,Oe,u(),ct,At)}function v(q){E(q)?q._store&&(q._store.validated=1):typeof q=="object"&&q!==null&&q.$$typeof===W&&(q._payload.status==="fulfilled"?E(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function E(q){return typeof q=="object"&&q!==null&&q.$$typeof===A}var R=eu(),A=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),$=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,ve=Array.isArray,Te=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(q){return q()}};var J,de={},fe=R.react_stack_bottom_frame.bind(R,f)(),he=Te(c(f)),xe={};vf.Fragment=V,vf.jsxDEV=function(q,ge,Oe,Se){var ct=1e4>$.recentlyCreatedOwnerStacks++;return w(q,ge,Oe,Se,ct?Error("react-stack-top-frame"):fe,ct?Te(c(q)):he)}})(),vf}var US;function AR(){return US||(US=1,gg.exports=UR()),gg.exports}var g=AR();const qe=o=>typeof o=="string",zc=()=>{let o,s;const i=new Promise((c,u)=>{o=c,s=u});return i.resolve=o,i.reject=s,i},AS=o=>o==null?"":""+o,kR=(o,s,i)=>{o.forEach(c=>{s[c]&&(i[c]=s[c])})},jR=/###/g,kS=o=>o&&o.indexOf("###")>-1?o.replace(jR,"."):o,jS=o=>!o||qe(o),Xc=(o,s,i)=>{const c=qe(s)?s.split("."):s;let u=0;for(;u<c.length-1;){if(jS(o))return{};const f=kS(c[u]);!o[f]&&i&&(o[f]=new i),Object.prototype.hasOwnProperty.call(o,f)?o=o[f]:o={},++u}return jS(o)?{}:{obj:o,k:kS(c[u])}},MS=(o,s,i)=>{const{obj:c,k:u}=Xc(o,s,Object);if(c!==void 0||s.length===1){c[u]=i;return}let f=s[s.length-1],h=s.slice(0,s.length-1),p=Xc(o,h,Object);for(;p.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),p=Xc(o,h,Object),p?.obj&&typeof p.obj[`${p.k}.${f}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${f}`]=i},MR=(o,s,i,c)=>{const{obj:u,k:f}=Xc(o,s,Object);u[f]=u[f]||[],u[f].push(i)},Of=(o,s)=>{const{obj:i,k:c}=Xc(o,s);if(i&&Object.prototype.hasOwnProperty.call(i,c))return i[c]},zR=(o,s,i)=>{const c=Of(o,i);return c!==void 0?c:Of(s,i)},IN=(o,s,i)=>{for(const c in s)c!=="__proto__"&&c!=="constructor"&&(c in o?qe(o[c])||o[c]instanceof String||qe(s[c])||s[c]instanceof String?i&&(o[c]=s[c]):IN(o[c],s[c],i):o[c]=s[c]);return o},Ir=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var LR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const VR=o=>qe(o)?o.replace(/[&<>"'\/]/g,s=>LR[s]):o;class HR{constructor(s){this.capacity=s,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(s){const i=this.regExpMap.get(s);if(i!==void 0)return i;const c=new RegExp(s);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(s,c),this.regExpQueue.push(s),c}}const BR=[" ",",","?","!",";"],$R=new HR(20),YR=(o,s,i)=>{s=s||"",i=i||"";const c=BR.filter(h=>s.indexOf(h)<0&&i.indexOf(h)<0);if(c.length===0)return!0;const u=$R.getRegExp(`(${c.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!u.test(o);if(!f){const h=o.indexOf(i);h>0&&!u.test(o.substring(0,h))&&(f=!0)}return f},Mg=(o,s,i=".")=>{if(!o)return;if(o[s])return Object.prototype.hasOwnProperty.call(o,s)?o[s]:void 0;const c=s.split(i);let u=o;for(let f=0;f<c.length;){if(!u||typeof u!="object")return;let h,p="";for(let y=f;y<c.length;++y)if(y!==f&&(p+=i),p+=c[y],h=u[p],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&y<c.length-1)continue;f+=y-f+1;break}u=h}return u},Ic=o=>o?.replace("_","-"),qR={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,s){console?.[o]?.apply?.(console,s)}};class Uf{constructor(s,i={}){this.init(s,i)}init(s,i={}){this.prefix=i.prefix||"i18next:",this.logger=s||qR,this.options=i,this.debug=i.debug}log(...s){return this.forward(s,"log","",!0)}warn(...s){return this.forward(s,"warn","",!0)}error(...s){return this.forward(s,"error","")}deprecate(...s){return this.forward(s,"warn","WARNING DEPRECATED: ",!0)}forward(s,i,c,u){return u&&!this.debug?null:(qe(s[0])&&(s[0]=`${c}${this.prefix} ${s[0]}`),this.logger[i](s))}create(s){return new Uf(this.logger,{prefix:`${this.prefix}:${s}:`,...this.options})}clone(s){return s=s||this.options,s.prefix=s.prefix||this.prefix,new Uf(this.logger,s)}}var ko=new Uf;class jf{constructor(){this.observers={}}on(s,i){return s.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const u=this.observers[c].get(i)||0;this.observers[c].set(i,u+1)}),this}off(s,i){if(this.observers[s]){if(!i){delete this.observers[s];return}this.observers[s].delete(i)}}emit(s,...i){this.observers[s]&&Array.from(this.observers[s].entries()).forEach(([u,f])=>{for(let h=0;h<f;h++)u(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,f])=>{for(let h=0;h<f;h++)u.apply(u,[s,...i])})}}class zS extends jf{constructor(s,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=s||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}removeNamespaces(s){const i=this.options.ns.indexOf(s);i>-1&&this.options.ns.splice(i,1)}getResource(s,i,c,u={}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,h=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;s.indexOf(".")>-1?p=s.split("."):(p=[s,i],c&&(Array.isArray(c)?p.push(...c):qe(c)&&f?p.push(...c.split(f)):p.push(c)));const y=Of(this.data,p);return!y&&!i&&!c&&s.indexOf(".")>-1&&(s=p[0],i=p[1],c=p.slice(2).join(".")),y||!h||!qe(c)?y:Mg(this.data?.[s]?.[i],c,f)}addResource(s,i,c,u,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let p=[s,i];c&&(p=p.concat(h?c.split(h):c)),s.indexOf(".")>-1&&(p=s.split("."),u=i,i=p[1]),this.addNamespaces(i),MS(this.data,p,u),f.silent||this.emit("added",s,i,c,u)}addResources(s,i,c,u={silent:!1}){for(const f in c)(qe(c[f])||Array.isArray(c[f]))&&this.addResource(s,i,f,c[f],{silent:!0});u.silent||this.emit("added",s,i,c)}addResourceBundle(s,i,c,u,f,h={silent:!1,skipCopy:!1}){let p=[s,i];s.indexOf(".")>-1&&(p=s.split("."),u=c,c=i,i=p[1]),this.addNamespaces(i);let y=Of(this.data,p)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?IN(y,c,f):y={...y,...c},MS(this.data,p,y),h.silent||this.emit("added",s,i,c)}removeResourceBundle(s,i){this.hasResourceBundle(s,i)&&delete this.data[s][i],this.removeNamespaces(i),this.emit("removed",s,i)}hasResourceBundle(s,i){return this.getResource(s,i)!==void 0}getResourceBundle(s,i){return i||(i=this.options.defaultNS),this.getResource(s,i)}getDataByLanguage(s){return this.data[s]}hasLanguageSomeTranslations(s){const i=this.getDataByLanguage(s);return!!(i&&Object.keys(i)||[]).find(u=>i[u]&&Object.keys(i[u]).length>0)}toJSON(){return this.data}}var ZN={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,s,i,c,u){return o.forEach(f=>{s=this.processors[f]?.process(s,i,c,u)??s}),s}};const JN=Symbol("i18next/PATH_KEY");function GR(){const o=[],s=Object.create(null);let i;return s.get=(c,u)=>(i?.revoke?.(),u===JN?o:(o.push(u),i=Proxy.revocable(c,s),i.proxy)),Proxy.revocable(Object.create(null),s).proxy}function zg(o,s){const{[JN]:i}=o(GR());return i.join(s?.keySeparator??".")}const LS={},yg=o=>!qe(o)&&typeof o!="boolean"&&typeof o!="number";class Af extends jf{constructor(s,i={}){super(),kR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ko.create("translator")}changeLanguage(s){s&&(this.language=s)}exists(s,i={interpolation:{}}){const c={...i};if(s==null)return!1;const u=this.resolve(s,c);if(u?.res===void 0)return!1;const f=yg(u.res);return!(c.returnObjects===!1&&f)}extractFromKey(s,i){let c=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let f=i.ns||this.options.defaultNS||[];const h=c&&s.indexOf(c)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!YR(s,c,u);if(h&&!p){const y=s.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:s,namespaces:qe(f)?[f]:f};const x=s.split(c);(c!==u||c===u&&this.options.ns.indexOf(x[0])>-1)&&(f=x.shift()),s=x.join(u)}return{key:s,namespaces:qe(f)?[f]:f}}translate(s,i,c){let u=typeof i=="object"?{...i}:i;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),s==null)return"";typeof s=="function"&&(s=zg(s,{...this.options,...u})),Array.isArray(s)||(s=[String(s)]);const f=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:p,namespaces:y}=this.extractFromKey(s[s.length-1],u),x=y[y.length-1];let w=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;w===void 0&&(w=":");const v=u.lng||this.language,E=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return E?f?{res:`${x}${w}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:`${x}${w}${p}`:f?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:p;const R=this.resolve(s,u);let A=R?.res;const H=R?.usedKey||p,V=R?.exactUsedKey||p,I=["[object Number]","[object Function]","[object RegExp]"],Z=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,le=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=u.count!==void 0&&!qe(u.count),K=Af.hasDefaultValue(u),se=ae?this.pluralResolver.getSuffix(v,u.count,u):"",re=u.ordinal&&ae?this.pluralResolver.getSuffix(v,u.count,{ordinal:!1}):"",j=ae&&!u.ordinal&&u.count===0,W=j&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${se}`]||u[`defaultValue${re}`]||u.defaultValue;let Q=A;le&&!A&&K&&(Q=W);const oe=yg(Q),$=Object.prototype.toString.apply(Q);if(le&&Q&&oe&&I.indexOf($)<0&&!(qe(Z)&&Array.isArray(Q))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,Q,{...u,ns:y}):`key '${p} (${this.language})' returned an object instead of string.`;return f?(R.res=ue,R.usedParams=this.getUsedParamsDetails(u),R):ue}if(h){const ue=Array.isArray(Q),ve=ue?[]:{},Te=ue?V:H;for(const J in Q)if(Object.prototype.hasOwnProperty.call(Q,J)){const de=`${Te}${h}${J}`;K&&!A?ve[J]=this.translate(de,{...u,defaultValue:yg(W)?W[J]:void 0,joinArrays:!1,ns:y}):ve[J]=this.translate(de,{...u,joinArrays:!1,ns:y}),ve[J]===de&&(ve[J]=Q[J])}A=ve}}else if(le&&qe(Z)&&Array.isArray(A))A=A.join(Z),A&&(A=this.extendTranslation(A,s,u,c));else{let ue=!1,ve=!1;!this.isValidLookup(A)&&K&&(ue=!0,A=W),this.isValidLookup(A)||(ve=!0,A=p);const J=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ve?void 0:A,de=K&&W!==A&&this.options.updateMissing;if(ve||ue||de){if(this.logger.log(de?"updateKey":"missingKey",v,x,p,de?W:A),h){const q=this.resolve(p,{...u,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let fe=[];const he=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&he&&he[0])for(let q=0;q<he.length;q++)fe.push(he[q]);else this.options.saveMissingTo==="all"?fe=this.languageUtils.toResolveHierarchy(u.lng||this.language):fe.push(u.lng||this.language);const xe=(q,ge,Oe)=>{const Se=K&&Oe!==A?Oe:J;this.options.missingKeyHandler?this.options.missingKeyHandler(q,x,ge,Se,de,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,x,ge,Se,de,u),this.emit("missingKey",q,x,ge,A)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ae?fe.forEach(q=>{const ge=this.pluralResolver.getSuffixes(q,u);j&&u[`defaultValue${this.options.pluralSeparator}zero`]&&ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&ge.push(`${this.options.pluralSeparator}zero`),ge.forEach(Oe=>{xe([q],p+Oe,u[`defaultValue${Oe}`]||W)})}):xe(fe,p,W))}A=this.extendTranslation(A,s,u,R,c),ve&&A===p&&this.options.appendNamespaceToMissingKey&&(A=`${x}${w}${p}`),(ve||ue)&&this.options.parseMissingKeyHandler&&(A=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${w}${p}`:p,ue?A:void 0,u))}return f?(R.res=A,R.usedParams=this.getUsedParamsDetails(u),R):A}extendTranslation(s,i,c,u,f){if(this.i18nFormat?.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const y=qe(s)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(y){const v=s.match(this.interpolator.nestingRegexp);x=v&&v.length}let w=c.replace&&!qe(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(w={...this.options.interpolation.defaultVariables,...w}),s=this.interpolator.interpolate(s,w,c.lng||this.language||u.usedLng,c),y){const v=s.match(this.interpolator.nestingRegexp),E=v&&v.length;x<E&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(s=this.interpolator.nest(s,(...v)=>f?.[0]===v[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${i[0]}`),null):this.translate(...v,i),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,p=qe(h)?[h]:h;return s!=null&&p?.length&&c.applyPostProcessor!==!1&&(s=ZN.handle(p,s,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),s}resolve(s,i={}){let c,u,f,h,p;return qe(s)&&(s=[s]),s.forEach(y=>{if(this.isValidLookup(c))return;const x=this.extractFromKey(y,i),w=x.key;u=w;let v=x.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const E=i.count!==void 0&&!qe(i.count),R=E&&!i.ordinal&&i.count===0,A=i.context!==void 0&&(qe(i.context)||typeof i.context=="number")&&i.context!=="",H=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);v.forEach(V=>{this.isValidLookup(c)||(p=V,!LS[`${H[0]}-${V}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(LS[`${H[0]}-${V}`]=!0,this.logger.warn(`key "${u}" for languages "${H.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),H.forEach(I=>{if(this.isValidLookup(c))return;h=I;const Z=[w];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(Z,w,I,V,i);else{let ae;E&&(ae=this.pluralResolver.getSuffix(I,i.count,i));const K=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(i.ordinal&&ae.indexOf(se)===0&&Z.push(w+ae.replace(se,this.options.pluralSeparator)),Z.push(w+ae),R&&Z.push(w+K)),A){const re=`${w}${this.options.contextSeparator||"_"}${i.context}`;Z.push(re),E&&(i.ordinal&&ae.indexOf(se)===0&&Z.push(re+ae.replace(se,this.options.pluralSeparator)),Z.push(re+ae),R&&Z.push(re+K))}}let le;for(;le=Z.pop();)this.isValidLookup(c)||(f=le,c=this.getResource(I,V,le,i))}))})}),{res:c,usedKey:u,exactUsedKey:f,usedLng:h,usedNS:p}}isValidLookup(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}getResource(s,i,c,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(s,i,c,u):this.resourceStore.getResource(s,i,c,u)}getUsedParamsDetails(s={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=s.replace&&!qe(s.replace);let u=c?s.replace:s;if(c&&typeof s.count<"u"&&(u.count=s.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!c){u={...u};for(const f of i)delete u[f]}return u}static hasDefaultValue(s){const i="defaultValue";for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&i===c.substring(0,i.length)&&s[c]!==void 0)return!0;return!1}}class VS{constructor(s){this.options=s,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ko.create("languageUtils")}getScriptPartFromCode(s){if(s=Ic(s),!s||s.indexOf("-")<0)return null;const i=s.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(s){if(s=Ic(s),!s||s.indexOf("-")<0)return s;const i=s.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(s){if(qe(s)&&s.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(s)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?s.toLowerCase():s)}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(s){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(s=this.getLanguagePartFromCode(s)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(s)>-1}getBestMatchFromCodes(s){if(!s)return null;let i;return s.forEach(c=>{if(i)return;const u=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(u))&&(i=u)}),!i&&this.options.supportedLngs&&s.forEach(c=>{if(i)return;const u=this.getScriptPartFromCode(c);if(this.isSupportedCode(u))return i=u;const f=this.getLanguagePartFromCode(c);if(this.isSupportedCode(f))return i=f;i=this.options.supportedLngs.find(h=>{if(h===f)return h;if(!(h.indexOf("-")<0&&f.indexOf("-")<0)&&(h.indexOf("-")>0&&f.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===f||h.indexOf(f)===0&&f.length>1))return h})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(s,i){if(!s)return[];if(typeof s=="function"&&(s=s(i)),qe(s)&&(s=[s]),Array.isArray(s))return s;if(!i)return s.default||[];let c=s[i];return c||(c=s[this.getScriptPartFromCode(i)]),c||(c=s[this.formatLanguageCode(i)]),c||(c=s[this.getLanguagePartFromCode(i)]),c||(c=s.default),c||[]}toResolveHierarchy(s,i){const c=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],s),u=[],f=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return qe(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(s)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(s)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(s))):qe(s)&&f(this.formatLanguageCode(s)),c.forEach(h=>{u.indexOf(h)<0&&f(this.formatLanguageCode(h))}),u}}const HS={zero:0,one:1,two:2,few:3,many:4,other:5},BS={select:o=>o===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class XR{constructor(s,i={}){this.languageUtils=s,this.options=i,this.logger=ko.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(s,i={}){const c=Ic(s==="dev"?"en":s),u=i.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:c,type:u});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(c,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),BS;if(!s.match(/-|_/))return BS;const y=this.languageUtils.getLanguagePartFromCode(s);h=this.getRule(y,i)}return this.pluralRulesCache[f]=h,h}needsPlural(s,i={}){let c=this.getRule(s,i);return c||(c=this.getRule("dev",i)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(s,i,c={}){return this.getSuffixes(s,c).map(u=>`${i}${u}`)}getSuffixes(s,i={}){let c=this.getRule(s,i);return c||(c=this.getRule("dev",i)),c?c.resolvedOptions().pluralCategories.sort((u,f)=>HS[u]-HS[f]).map(u=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(s,i,c={}){const u=this.getRule(s,c);return u?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${u.select(i)}`:(this.logger.warn(`no plural rule found for: ${s}`),this.getSuffix("dev",i,c))}}const $S=(o,s,i,c=".",u=!0)=>{let f=zR(o,s,i);return!f&&u&&qe(i)&&(f=Mg(o,i,c),f===void 0&&(f=Mg(s,i,c))),f},vg=o=>o.replace(/\$/g,"$$$$");class YS{constructor(s={}){this.logger=ko.create("interpolator"),this.options=s,this.format=s?.interpolation?.format||(i=>i),this.init(s)}init(s={}){s.interpolation||(s.interpolation={escapeValue:!0});const{escape:i,escapeValue:c,useRawValueToEscape:u,prefix:f,prefixEscaped:h,suffix:p,suffixEscaped:y,formatSeparator:x,unescapeSuffix:w,unescapePrefix:v,nestingPrefix:E,nestingPrefixEscaped:R,nestingSuffix:A,nestingSuffixEscaped:H,nestingOptionsSeparator:V,maxReplaces:I,alwaysFormat:Z}=s.interpolation;this.escape=i!==void 0?i:VR,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=f?Ir(f):h||"{{",this.suffix=p?Ir(p):y||"}}",this.formatSeparator=x||",",this.unescapePrefix=w?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":w||"",this.nestingPrefix=E?Ir(E):R||Ir("$t("),this.nestingSuffix=A?Ir(A):H||Ir(")"),this.nestingOptionsSeparator=V||",",this.maxReplaces=I||1e3,this.alwaysFormat=Z!==void 0?Z:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const s=(i,c)=>i?.source===c?(i.lastIndex=0,i):new RegExp(c,"g");this.regexp=s(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=s(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=s(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(s,i,c,u){let f,h,p;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=R=>{if(R.indexOf(this.formatSeparator)<0){const I=$S(i,y,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(I,void 0,c,{...u,...i,interpolationkey:R}):I}const A=R.split(this.formatSeparator),H=A.shift().trim(),V=A.join(this.formatSeparator).trim();return this.format($S(i,y,H,this.options.keySeparator,this.options.ignoreJSONStructure),V,c,{...u,...i,interpolationkey:H})};this.resetRegExp();const w=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>vg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?vg(this.escape(R)):vg(R)}].forEach(R=>{for(p=0;f=R.regex.exec(s);){const A=f[1].trim();if(h=x(A),h===void 0)if(typeof w=="function"){const V=w(s,f,u);h=qe(V)?V:""}else if(u&&Object.prototype.hasOwnProperty.call(u,A))h="";else if(v){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${s}`),h="";else!qe(h)&&!this.useRawValueToEscape&&(h=AS(h));const H=R.safeValue(h);if(s=s.replace(f[0],H),v?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),s}nest(s,i,c={}){let u,f,h;const p=(y,x)=>{const w=this.nestingOptionsSeparator;if(y.indexOf(w)<0)return y;const v=y.split(new RegExp(`${Ir(w)}[ ]*{`));let E=`{${v[1]}`;y=v[0],E=this.interpolate(E,h);const R=E.match(/'/g),A=E.match(/"/g);((R?.length??0)%2===0&&!A||(A?.length??0)%2!==0)&&(E=E.replace(/'/g,'"'));try{h=JSON.parse(E),x&&(h={...x,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,H),`${y}${w}${E}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,y};for(;u=this.nestingRegexp.exec(s);){let y=[];h={...c},h=h.replace&&!qe(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const x=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(x!==-1&&(y=u[1].slice(x).split(this.formatSeparator).map(w=>w.trim()).filter(Boolean),u[1]=u[1].slice(0,x)),f=i(p.call(this,u[1].trim(),h),h),f&&u[0]===s&&!qe(f))return f;qe(f)||(f=AS(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${s}`),f=""),y.length&&(f=y.reduce((w,v)=>this.format(w,v,c.lng,{...c,interpolationkey:u[1].trim()}),f.trim())),s=s.replace(u[0],f),this.regexp.lastIndex=0}return s}}const QR=o=>{let s=o.toLowerCase().trim();const i={};if(o.indexOf("(")>-1){const c=o.split("(");s=c[0].toLowerCase().trim();const u=c[1].substring(0,c[1].length-1);s==="currency"&&u.indexOf(":")<0?i.currency||(i.currency=u.trim()):s==="relativetime"&&u.indexOf(":")<0?i.range||(i.range=u.trim()):u.split(";").forEach(h=>{if(h){const[p,...y]=h.split(":"),x=y.join(":").trim().replace(/^'+|'+$/g,""),w=p.trim();i[w]||(i[w]=x),x==="false"&&(i[w]=!1),x==="true"&&(i[w]=!0),isNaN(x)||(i[w]=parseInt(x,10))}})}return{formatName:s,formatOptions:i}},qS=o=>{const s={};return(i,c,u)=>{let f=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(f={...f,[u.interpolationkey]:void 0});const h=c+JSON.stringify(f);let p=s[h];return p||(p=o(Ic(c),u),s[h]=p),p(i)}},FR=o=>(s,i,c)=>o(Ic(i),c)(s);class IR{constructor(s={}){this.logger=ko.create("formatter"),this.options=s,this.init(s)}init(s,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const c=i.cacheInBuiltFormats?qS:FR;this.formats={number:c((u,f)=>{const h=new Intl.NumberFormat(u,{...f});return p=>h.format(p)}),currency:c((u,f)=>{const h=new Intl.NumberFormat(u,{...f,style:"currency"});return p=>h.format(p)}),datetime:c((u,f)=>{const h=new Intl.DateTimeFormat(u,{...f});return p=>h.format(p)}),relativetime:c((u,f)=>{const h=new Intl.RelativeTimeFormat(u,{...f});return p=>h.format(p,f.range||"day")}),list:c((u,f)=>{const h=new Intl.ListFormat(u,{...f});return p=>h.format(p)})}}add(s,i){this.formats[s.toLowerCase().trim()]=i}addCached(s,i){this.formats[s.toLowerCase().trim()]=qS(i)}format(s,i,c,u={}){const f=i.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(p=>p.indexOf(")")>-1)){const p=f.findIndex(y=>y.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,p)].join(this.formatSeparator)}return f.reduce((p,y)=>{const{formatName:x,formatOptions:w}=QR(y);if(this.formats[x]){let v=p;try{const E=u?.formatParams?.[u.interpolationkey]||{},R=E.locale||E.lng||u.locale||u.lng||c;v=this.formats[x](p,R,{...w,...u,...E})}catch(E){this.logger.warn(E)}return v}else this.logger.warn(`there was no format function for ${x}`);return p},s)}}const ZR=(o,s)=>{o.pending[s]!==void 0&&(delete o.pending[s],o.pendingCount--)};class JR extends jf{constructor(s,i,c,u={}){super(),this.backend=s,this.store=i,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=ko.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,u.backend,u)}queueLoad(s,i,c,u){const f={},h={},p={},y={};return s.forEach(x=>{let w=!0;i.forEach(v=>{const E=`${x}|${v}`;!c.reload&&this.store.hasResourceBundle(x,v)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?h[E]===void 0&&(h[E]=!0):(this.state[E]=1,w=!1,h[E]===void 0&&(h[E]=!0),f[E]===void 0&&(f[E]=!0),y[v]===void 0&&(y[v]=!0)))}),w||(p[x]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(y)}}loaded(s,i,c){const u=s.split("|"),f=u[0],h=u[1];i&&this.emit("failedLoading",f,h,i),!i&&c&&this.store.addResourceBundle(f,h,c,void 0,void 0,{skipCopy:!0}),this.state[s]=i?-1:2,i&&c&&(this.state[s]=0);const p={};this.queue.forEach(y=>{MR(y.loaded,[f],h),ZR(y,s),i&&y.errors.push(i),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(x=>{p[x]||(p[x]={});const w=y.loaded[x];w.length&&w.forEach(v=>{p[x][v]===void 0&&(p[x][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(y=>!y.done)}read(s,i,c,u=0,f=this.retryTimeout,h){if(!s.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:i,fcName:c,tried:u,wait:f,callback:h});return}this.readingCalls++;const p=(x,w)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(x&&w&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,s,i,c,u+1,f*2,h)},f);return}h(x,w)},y=this.backend[c].bind(this.backend);if(y.length===2){try{const x=y(s,i);x&&typeof x.then=="function"?x.then(w=>p(null,w)).catch(p):p(null,x)}catch(x){p(x)}return}return y(s,i,p)}prepareLoading(s,i,c={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();qe(s)&&(s=this.languageUtils.toResolveHierarchy(s)),qe(i)&&(i=[i]);const f=this.queueLoad(s,i,c,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(s,i,c){this.prepareLoading(s,i,{},c)}reload(s,i,c){this.prepareLoading(s,i,{reload:!0},c)}loadOne(s,i=""){const c=s.split("|"),u=c[0],f=c[1];this.read(u,f,"read",void 0,void 0,(h,p)=>{h&&this.logger.warn(`${i}loading namespace ${f} for language ${u} failed`,h),!h&&p&&this.logger.log(`${i}loaded namespace ${f} for language ${u}`,p),this.loaded(s,h,p)})}saveMissing(s,i,c,u,f,h={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${c}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend?.create){const y={...h,isUpdate:f},x=this.backend.create.bind(this.backend);if(x.length<6)try{let w;x.length===5?w=x(s,i,c,u,y):w=x(s,i,c,u),w&&typeof w.then=="function"?w.then(v=>p(null,v)).catch(p):p(null,w)}catch(w){p(w)}else x(s,i,c,u,p,y)}!s||!s[0]||this.store.addResource(s[0],i,c,u)}}}const xg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o=>{let s={};if(typeof o[1]=="object"&&(s=o[1]),qe(o[1])&&(s.defaultValue=o[1]),qe(o[2])&&(s.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const i=o[3]||o[2];Object.keys(i).forEach(c=>{s[c]=i[c]})}return s},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),GS=o=>(qe(o.ns)&&(o.ns=[o.ns]),qe(o.fallbackLng)&&(o.fallbackLng=[o.fallbackLng]),qe(o.fallbackNS)&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs?.indexOf?.("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),typeof o.initImmediate=="boolean"&&(o.initAsync=o.initImmediate),o),xf=()=>{},PR=o=>{Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(i=>{typeof o[i]=="function"&&(o[i]=o[i].bind(o))})},PN="__i18next_supportNoticeShown",KR=()=>typeof globalThis<"u"&&!!globalThis[PN],WR=()=>{typeof globalThis<"u"&&(globalThis[PN]=!0)},eC=o=>!!(o?.modules?.backend?.name?.indexOf("Locize")>0||o?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||o?.options?.backend?.backends&&o.options.backend.backends.some(s=>s?.name?.indexOf("Locize")>0||s?.constructor?.name?.indexOf("Locize")>0)||o?.options?.backend?.projectId||o?.options?.backend?.backendOptions&&o.options.backend.backendOptions.some(s=>s?.projectId));class Qc extends jf{constructor(s={},i){if(super(),this.options=GS(s),this.services={},this.logger=ko,this.modules={external:[]},PR(this),i&&!this.isInitialized&&!s.isClone){if(!this.options.initAsync)return this.init(s,i),this;setTimeout(()=>{this.init(s,i)},0)}}init(s={},i){this.isInitializing=!0,typeof s=="function"&&(i=s,s={}),s.defaultNS==null&&s.ns&&(qe(s.ns)?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const c=xg();this.options={...c,...this.options,...GS(s)},this.options.interpolation={...c.interpolation,...this.options.interpolation},s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!eC(this)&&!KR()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),WR());const u=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?ko.init(u(this.modules.logger),this.options):ko.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=IR;const w=new VS(this.options);this.store=new zS(this.options.resources,this.options);const v=this.services;v.logger=ko,v.resourceStore=this.store,v.languageUtils=w,v.pluralResolver=new XR(w,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),x&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(v.formatter=u(x),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new YS(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new JR(u(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(R,...A)=>{this.emit(R,...A)}),this.modules.languageDetector&&(v.languageDetector=u(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=u(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Af(this.services,this.options),this.translator.on("*",(R,...A)=>{this.emit(R,...A)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,i||(i=xf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(x=>{this[x]=(...w)=>this.store[x](...w)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...w)=>(this.store[x](...w),this)});const p=zc(),y=()=>{const x=(w,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),i(w,v)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),p}loadResources(s,i=xf){let c=i;const u=qe(s)?s:this.language;if(typeof s=="function"&&(c=s),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const f=[],h=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(x=>{x!=="cimode"&&f.indexOf(x)<0&&f.push(x)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>h(y)),this.options.preload?.forEach?.(p=>h(p)),this.services.backendConnector.load(f,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(p)})}else c(null)}reloadResources(s,i,c){const u=zc();return typeof s=="function"&&(c=s,s=void 0),typeof i=="function"&&(c=i,i=void 0),s||(s=this.languages),i||(i=this.options.ns),c||(c=xf),this.services.backendConnector.reload(s,i,f=>{u.resolve(),c(f)}),u}use(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&ZN.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}setResolvedLanguage(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1)){for(let i=0;i<this.languages.length;i++){const c=this.languages[i];if(!(["cimode","dev"].indexOf(c)>-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(s)<0&&this.store.hasLanguageSomeTranslations(s)&&(this.resolvedLanguage=s,this.languages.unshift(s))}}changeLanguage(s,i){this.isLanguageChangingTo=s;const c=zc();this.emit("languageChanging",s);const u=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},f=(p,y)=>{y?this.isLanguageChangingTo===s&&(u(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,c.resolve((...x)=>this.t(...x)),i&&i(p,(...x)=>this.t(...x))},h=p=>{!s&&!p&&this.services.languageDetector&&(p=[]);const y=qe(p)?p:p&&p[0],x=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(qe(p)?[p]:p);x&&(this.language||u(x),this.translator.language||this.translator.changeLanguage(x),this.services.languageDetector?.cacheUserLanguage?.(x)),this.loadResources(x,w=>{f(w,x)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(s),c}getFixedT(s,i,c){const u=(f,h,...p)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([f,h].concat(p)):y={...h},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs,y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||c||u.keyPrefix);const x=this.options.keySeparator||".";let w;return y.keyPrefix&&Array.isArray(f)?w=f.map(v=>(typeof v=="function"&&(v=zg(v,{...this.options,...h})),`${y.keyPrefix}${x}${v}`)):(typeof f=="function"&&(f=zg(f,{...this.options,...h})),w=y.keyPrefix?`${y.keyPrefix}${x}${f}`:f),this.t(w,y)};return qe(s)?u.lng=s:u.lngs=s,u.ns=i,u.keyPrefix=c,u}t(...s){return this.translator?.translate(...s)}exists(...s){return this.translator?.exists(...s)}setDefaultNamespace(s){this.options.defaultNS=s}hasLoadedNamespace(s,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=i.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const h=(p,y)=>{const x=this.services.backendConnector.state[`${p}|${y}`];return x===-1||x===0||x===2};if(i.precheck){const p=i.precheck(this,h);if(p!==void 0)return p}return!!(this.hasResourceBundle(c,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,s)&&(!u||h(f,s)))}loadNamespaces(s,i){const c=zc();return this.options.ns?(qe(s)&&(s=[s]),s.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{c.resolve(),i&&i(u)}),c):(i&&i(),Promise.resolve())}loadLanguages(s,i){const c=zc();qe(s)&&(s=[s]);const u=this.options.preload||[],f=s.filter(h=>u.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return f.length?(this.options.preload=u.concat(f),this.loadResources(h=>{c.resolve(),i&&i(h)}),c):(i&&i(),Promise.resolve())}dir(s){if(s||(s=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!s)return"rtl";try{const u=new Intl.Locale(s);if(u&&u.getTextInfo){const f=u.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services?.languageUtils||new VS(xg());return s.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(c.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(s={},i){const c=new Qc(s,i);return c.createInstance=Qc.createInstance,c}cloneInstance(s={},i=xf){const c=s.forkResourceStore;c&&delete s.forkResourceStore;const u={...this.options,...s,isClone:!0},f=new Qc(u);if((s.debug!==void 0||s.prefix!==void 0)&&(f.logger=f.logger.clone(s)),["store","services","language"].forEach(p=>{f[p]=this[p]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},c){const p=Object.keys(this.store.data).reduce((y,x)=>(y[x]={...this.store.data[x]},y[x]=Object.keys(y[x]).reduce((w,v)=>(w[v]={...y[x][v]},w),y[x]),y),{});f.store=new zS(p,u),f.services.resourceStore=f.store}if(s.interpolation){const y={...xg().interpolation,...this.options.interpolation,...s.interpolation},x={...u,interpolation:y};f.services.interpolator=new YS(x)}return f.translator=new Af(f.services,u),f.translator.on("*",(p,...y)=>{f.emit(p,...y)}),f.init(u,i),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Va=Qc.createInstance();Va.createInstance;Va.dir;Va.init;Va.loadResources;Va.reloadResources;Va.use;Va.changeLanguage;Va.getFixedT;Va.t;Va.exists;Va.setDefaultNamespace;Va.hasLoadedNamespace;Va.loadNamespaces;Va.loadLanguages;var D=eu();const ni=_R(D),tC=TR({__proto__:null,default:ni},[D]),aC=(o,s,i,c)=>{const u=[i,{code:s,...c||{}}];if(o?.services?.logger?.forward)return o.services.logger.forward(u,"warn","react-i18next::",!0);Jr(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),o?.services?.logger?.warn?o.services.logger.warn(...u):console?.warn&&console.warn(...u)},XS={},KN=(o,s,i,c)=>{Jr(i)&&XS[i]||(Jr(i)&&(XS[i]=new Date),aC(o,s,i,c))},WN=(o,s)=>()=>{if(o.isInitialized)s();else{const i=()=>{setTimeout(()=>{o.off("initialized",i)},0),s()};o.on("initialized",i)}},Lg=(o,s,i)=>{o.loadNamespaces(s,WN(o,i))},QS=(o,s,i,c)=>{if(Jr(i)&&(i=[i]),o.options.preload&&o.options.preload.indexOf(s)>-1)return Lg(o,i,c);i.forEach(u=>{o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),o.loadLanguages(s,WN(o,c))},nC=(o,s,i={})=>!s.languages||!s.languages.length?(KN(s,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:s.languages}),!0):s.hasLoadedNamespace(o,{lng:i.lng,precheck:(c,u)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!u(c.isLanguageChangingTo,o))return!1}}),Jr=o=>typeof o=="string",oC=o=>typeof o=="object"&&o!==null,sC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rC={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},lC=o=>rC[o],iC=o=>o.replace(sC,lC);let Vg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:iC,transDefaultProps:void 0};const cC=(o={})=>{Vg={...Vg,...o}},uC=()=>Vg;let eE;const dC=o=>{eE=o},fC=()=>eE,mC={type:"3rdParty",init(o){cC(o.options.react),dC(o)}},hC=D.createContext();class pC{constructor(){this.usedNamespaces={}}addUsedNamespaces(s){s.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Sg={exports:{}},Ng={},FS;function gC(){if(FS)return Ng;FS=1;return(function(){function o(R,A){return R===A&&(R!==0||1/R===1/A)||R!==R&&A!==A}function s(R,A){w||u.startTransition===void 0||(w=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var H=A();if(!v){var V=A();f(H,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}V=h({inst:{value:H,getSnapshot:A}});var I=V[0].inst,Z=V[1];return y(function(){I.value=H,I.getSnapshot=A,i(I)&&Z({inst:I})},[R,H,A]),p(function(){return i(I)&&Z({inst:I}),R(function(){i(I)&&Z({inst:I})})},[R]),x(H),H}function i(R){var A=R.getSnapshot;R=R.value;try{var H=A();return!f(R,H)}catch{return!0}}function c(R,A){return A()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=eu(),f=typeof Object.is=="function"?Object.is:o,h=u.useState,p=u.useEffect,y=u.useLayoutEffect,x=u.useDebugValue,w=!1,v=!1,E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;Ng.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ng}var IS;function bC(){return IS||(IS=1,Sg.exports=gC()),Sg.exports}var yC=bC();const vC=(o,s)=>Jr(s)?s:oC(s)&&Jr(s.defaultValue)?s.defaultValue:Array.isArray(o)?o[o.length-1]:o,xC={t:vC,ready:!1},SC=()=>()=>{},Ie=(o,s={})=>{const{i18n:i}=s,{i18n:c,defaultNS:u}=D.useContext(hC)||{},f=i||c||fC();f&&!f.reportNamespaces&&(f.reportNamespaces=new pC),f||KN(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=D.useMemo(()=>({...uC(),...f?.options?.react,...s}),[f,s]),{useSuspense:p,keyPrefix:y}=h,x=u||f?.options?.defaultNS,w=Jr(x)?[x]:x||["translation"],v=D.useMemo(()=>w,w);f?.reportNamespaces?.addUsedNamespaces?.(v);const E=D.useRef(0),R=D.useCallback(W=>{if(!f)return SC;const{bindI18n:Q,bindI18nStore:oe}=h,$=()=>{E.current+=1,W()};return Q&&f.on(Q,$),oe&&f.store.on(oe,$),()=>{Q&&Q.split(" ").forEach(ue=>f.off(ue,$)),oe&&oe.split(" ").forEach(ue=>f.store.off(ue,$))}},[f,h]),A=D.useRef(),H=D.useCallback(()=>{if(!f)return xC;const W=!!(f.isInitialized||f.initializedStoreOnce)&&v.every(Te=>nC(Te,f,h)),Q=s.lng||f.language,oe=E.current,$=A.current;if($&&$.ready===W&&$.lng===Q&&$.keyPrefix===y&&$.revision===oe)return $;const ve={t:f.getFixedT(Q,h.nsMode==="fallback"?v:v[0],y),ready:W,lng:Q,keyPrefix:y,revision:oe};return A.current=ve,ve},[f,v,y,h,s.lng]),[V,I]=D.useState(0),{t:Z,ready:le}=yC.useSyncExternalStore(R,H,H);D.useEffect(()=>{if(f&&!le&&!p){const W=()=>I(Q=>Q+1);s.lng?QS(f,s.lng,v,W):Lg(f,v,W)}},[f,s.lng,v,le,p,V]);const ae=f||{},K=D.useRef(null),se=D.useRef(),re=W=>{const Q=Object.getOwnPropertyDescriptors(W);Q.__original&&delete Q.__original;const oe=Object.create(Object.getPrototypeOf(W),Q);if(!Object.prototype.hasOwnProperty.call(oe,"__original"))try{Object.defineProperty(oe,"__original",{value:W,writable:!1,enumerable:!1,configurable:!1})}catch{}return oe},j=D.useMemo(()=>{const W=ae,Q=W?.language;let oe=W;W&&(K.current&&K.current.__original===W?se.current!==Q?(oe=re(W),K.current=oe,se.current=Q):oe=K.current:(oe=re(W),K.current=oe,se.current=Q));const $=[Z,oe,le];return $.t=Z,$.i18n=oe,$.ready=le,$},[Z,ae,le,ae.resolvedLanguage,ae.language,ae.languages]);if(f&&p&&!le)throw new Promise(W=>{const Q=()=>W();s.lng?QS(f,s.lng,v,Q):Lg(f,v,Q)});return j},{slice:NC,forEach:EC}=[];function wC(o){return EC.call(NC.call(arguments,1),s=>{if(s)for(const i in s)o[i]===void 0&&(o[i]=s[i])}),o}function DC(o){return typeof o!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(i=>i.test(o))}const ZS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,RC=function(o,s){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(s);let f=`${o}=${u}`;if(c.maxAge>0){const h=c.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(h)}`}if(c.domain){if(!ZS.test(c.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${c.domain}`}if(c.path){if(!ZS.test(c.path))throw new TypeError("option path is invalid");f+=`; Path=${c.path}`}if(c.expires){if(typeof c.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${c.expires.toUTCString()}`}if(c.httpOnly&&(f+="; HttpOnly"),c.secure&&(f+="; Secure"),c.sameSite)switch(typeof c.sameSite=="string"?c.sameSite.toLowerCase():c.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c.partitioned&&(f+="; Partitioned"),f},JS={create(o,s,i,c){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+i*60*1e3)),c&&(u.domain=c),document.cookie=RC(o,s,u)},read(o){const s=`${o}=`,i=document.cookie.split(";");for(let c=0;c<i.length;c++){let u=i[c];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(s)===0)return u.substring(s.length,u.length)}return null},remove(o,s){this.create(o,"",-1,s)}};var CC={name:"cookie",lookup(o){let{lookupCookie:s}=o;if(s&&typeof document<"u")return JS.read(s)||void 0},cacheUserLanguage(o,s){let{lookupCookie:i,cookieMinutes:c,cookieDomain:u,cookieOptions:f}=s;i&&typeof document<"u"&&JS.create(i,o,c,u,f)}},TC={name:"querystring",lookup(o){let{lookupQuerystring:s}=o,i;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const f=c.substring(1).split("&");for(let h=0;h<f.length;h++){const p=f[h].indexOf("=");p>0&&f[h].substring(0,p)===s&&(i=f[h].substring(p+1))}}return i}},_C={name:"hash",lookup(o){let{lookupHash:s,lookupFromHashIndex:i}=o,c;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const f=u.substring(1);if(s){const h=f.split("&");for(let p=0;p<h.length;p++){const y=h[p].indexOf("=");y>0&&h[p].substring(0,y)===s&&(c=h[p].substring(y+1))}}if(c)return c;if(!c&&i>-1){const h=u.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?h[typeof i=="number"?i:0]?.replace("/",""):void 0}}}return c}};let ei=null;const PS=()=>{if(ei!==null)return ei;try{if(ei=typeof window<"u"&&window.localStorage!==null,!ei)return!1;const o="i18next.translate.boo";window.localStorage.setItem(o,"foo"),window.localStorage.removeItem(o)}catch{ei=!1}return ei};var OC={name:"localStorage",lookup(o){let{lookupLocalStorage:s}=o;if(s&&PS())return window.localStorage.getItem(s)||void 0},cacheUserLanguage(o,s){let{lookupLocalStorage:i}=s;i&&PS()&&window.localStorage.setItem(i,o)}};let ti=null;const KS=()=>{if(ti!==null)return ti;try{if(ti=typeof window<"u"&&window.sessionStorage!==null,!ti)return!1;const o="i18next.translate.boo";window.sessionStorage.setItem(o,"foo"),window.sessionStorage.removeItem(o)}catch{ti=!1}return ti};var UC={name:"sessionStorage",lookup(o){let{lookupSessionStorage:s}=o;if(s&&KS())return window.sessionStorage.getItem(s)||void 0},cacheUserLanguage(o,s){let{lookupSessionStorage:i}=s;i&&KS()&&window.sessionStorage.setItem(i,o)}},AC={name:"navigator",lookup(o){const s=[];if(typeof navigator<"u"){const{languages:i,userLanguage:c,language:u}=navigator;if(i)for(let f=0;f<i.length;f++)s.push(i[f]);c&&s.push(c),u&&s.push(u)}return s.length>0?s:void 0}},kC={name:"htmlTag",lookup(o){let{htmlTag:s}=o,i;const c=s||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(i=c.getAttribute("lang")),i}},jC={name:"path",lookup(o){let{lookupFromPathIndex:s}=o;if(typeof window>"u")return;const i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof s=="number"?s:0]?.replace("/",""):void 0}},MC={name:"subdomain",lookup(o){let{lookupFromSubdomainIndex:s}=o;const i=typeof s=="number"?s+1:1,c=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(c)return c[i]}};let tE=!1;try{document.cookie,tE=!0}catch{}const aE=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];tE||aE.splice(1,1);const zC=()=>({order:aE,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:o=>o});class nE{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(s,i)}init(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s,this.options=wC(i,this.options||{},zC()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=c,this.addDetector(CC),this.addDetector(TC),this.addDetector(OC),this.addDetector(UC),this.addDetector(AC),this.addDetector(kC),this.addDetector(jC),this.addDetector(MC),this.addDetector(_C)}addDetector(s){return this.detectors[s.name]=s,this}detect(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,i=[];return s.forEach(c=>{if(this.detectors[c]){let u=this.detectors[c].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(i=i.concat(u))}}),i=i.filter(c=>c!=null&&!DC(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}cacheUserLanguage(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(s)>-1||i.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(s,this.options)}))}}nE.type="languageDetector";const LC={"nav.home":"Home","nav.studio":"Studio","nav.docs":"Docs","nav.login":"Login","nav.logout":"Logout","header.status.connected":"Connected","header.status.disconnected":"Disconnected","header.status.reconnecting":"Reconnecting","footer.copyright":"GitHub · @Context4AI {{year}}. All rights reserved.","footer.tagline":"Knowledge Factory","footer.theme.dark":"Dark","footer.theme.light":"Light","footer.theme.system":"System","studio.sidebar.sources":"Sources","studio.sidebar.modeling":"Modeling","studio.sidebar.brain":"Brain","studio.sidebar.discovery":"Discovery","studio.sidebar.sharing":"Sharing","studio.sidebar.collaboration":"Collaboration","studio.sidebar.settings":"Settings","placeholder.coming":"Coming in {{version}}","page.login.title":"Login","page.login.description":"Authentication and user management.","page.docs.title":"Docs","page.docs.description":"Public documentation portal.","page.sources.title":"Sources","page.sources.description":"Add code repositories, documents, and other input materials for your brain to index.","page.modeling.title":"Modeling","page.modeling.description":"Model indexed content with AI — only what stands up to scrutiny gets written to the knowledge graph.","page.brain.title":"Brain","page.brain.description":"All modeled knowledge lives here — browse, search, analyze, and use it anytime.","page.discovery.title":"Discovery","page.discovery.description":"Explore knowledge curated by others and add what's useful to your own brain.","page.sharing.title":"Sharing","page.sharing.description":"Package and export knowledge from your brain for others and AI to use directly.","page.collaboration.title":"Collaboration","page.collaboration.description":"Stay in sync with other brains — get notified on updates, no manual transfer needed.","page.settings.title":"Settings","page.settings.description":"Manage workspace members and configuration.","page.code_setup.title":"Code Setup","page.code_setup.description":"Repository selection and configuration for code modeling.","page.code_compile.title":"Code Compile","page.code_compile.description":"Compilation progress tracking for code modeling.","page.code_review.title":"Code Review","page.code_review.description":"Review and approve modeling results.","page.code_result.title":"Code Result","page.code_result.description":"View final modeling results and generated knowledge graph.","home.hero.title":"Context For AI","home.hero.description":"Transform code repositories and business documents into structured knowledge graphs.","home.hero.cta.studio":"Enter Studio","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home","sources.menu.add_client":"Add Client","sources.menu.online":"online","sources.menu.offline":"offline","sources.library.default_cloud_name":"Personal Cloud","sources.library.rename":"Rename","sources.library.rename_placeholder":"Enter library name","sources.header.daemon_status":"{{online}}/{{total}} online","sources.header.all_offline":"All offline","sources.actions.new_folder":"New Folder","sources.folder.name_placeholder":"Enter folder name","sources.actions.import_repo":"Import Repository","sources.actions.rename":"Rename","sources.actions.move_to":"Move to...","sources.actions.delete":"Delete","sources.filter.all":"All","sources.filter.indexed":"Indexed","sources.filter.not_indexed":"Not Indexed","sources.status.none":"None","sources.status.indexed":"Indexed","sources.status.stale":"Stale","sources.type.code":"Code","sources.type.doc":"Document","sources.empty.cloud.title":"Your personal knowledge input zone","sources.empty.cloud.description":"Create folders to organize your documents and materials. These are visible only to you and will serve as the foundation for building your digital brain. (Document upload coming soon)","sources.empty.daemon.title":"Connect your local code assets","sources.empty.daemon.description":"Import local code repositories. The system will automatically extract code structures and technical documents, transforming them into structured knowledge.","sources.empty.indexed.title":"Knowledge not yet indexed","sources.empty.indexed.description":"Select sources and complete indexing. They will be transformed into structured summaries, providing material for your future speculations.","sources.safety.notice":"Your code has absolute privacy. Source code never leaves your computer. The system only extracts structured summaries for knowledge modeling (function signatures, dependencies, etc.).","sources.import.title":"Import Repository","sources.import.step.select":"Select Repository","sources.import.step.version":"Version Selection","sources.import.step.confirm":"Confirm Import","sources.import.daemon_offline":"Client {{name}} is not connected. Please start the local Daemon and connect to the server before importing.","sources.import.view_guide":"View Connection Guide","sources.import.select_root":"Select repository root directory","sources.import.current_path":"Current path","sources.import.not_git":"This directory is not a Git repository. Please select a directory containing .git.","sources.import.branch":"Branch","sources.import.commit":"Commit","sources.import.branch_warning":"Currently based on {{branch}} branch HEAD","sources.import.uncommitted_warning":"Uncommitted changes will not be collected","sources.import.recognized":"Recognized {{packages}} packages and {{docs}} documents","sources.import.no_packages":"No package structure detected. Will be imported as a single-package repository.","sources.import.confirm_heading":"About to import the following repository to {{name}}:","sources.import.packages":"Packages","sources.import.documents":"Documents","sources.import.importing":"Importing...","sources.import.success":"Import complete","sources.add_client.title":"Connect Local Knowledge Source","sources.add_client.description":"Start a client (Daemon) on your local computer to mount local code repositories as input material into your digital brain.","sources.add_client.step1":"Install Daemon","sources.add_client.step2":"Start Daemon","sources.add_client.step3":"Wait for connection","sources.add_client.step3_desc":"This page will update automatically once connected.","sources.add_client.waiting":"Waiting for client connection...","sources.add_client.detected":"New client detected","sources.add_client.machine_name":"Machine ID","sources.add_client.os":"Operating system","sources.add_client.daemon_version":"Daemon version","sources.add_client.client_name":"Client name","sources.add_client.confirm":"Confirm Add","sources.add_client.reconnected":"Client {{name}} has reconnected","sources.add_client.go_to":"Go to {{name}}","sources.detail.tab.original":"Original","sources.detail.tab.overview":"Overview","sources.detail.tab.digest":"Digest","sources.detail.tab.modeling":"Modeling Result","sources.detail.digest_placeholder":"Structured summary will be available here after indexing is complete.","sources.detail.modeling_placeholder":"Knowledge entities derived from this source will appear here after modeling in the speculation zone.","sources.detail.type":"Type","sources.detail.origin":"Origin","sources.detail.origin.upload":"Upload","sources.detail.origin.local":"Local file","sources.detail.path":"Path","sources.detail.status":"Status","sources.detail.repo":"Repository","sources.detail.branch":"Branch","sources.detail.commit":"Commit","sources.detail.tech_stack":"Tech stack","sources.detail.original_code_placeholder":"Package overview will be available after indexing.","sources.detail.original_doc_placeholder":"Document content will be available after upload.","sources.detail.dependencies":"Dependencies","sources.delete.confirm_title":"Confirm Delete","sources.delete.resource":"Are you sure you want to delete {{name}}?","sources.delete.resource_impact":"The following data will be permanently deleted: original content, structured digest (if any).","sources.delete.session_warning":"If your personal speculation zone is using this source, related candidate speculations will be affected.","sources.delete.entity_safe":"Formal knowledge already merged into the brain will not be affected.","sources.delete.folder":"Are you sure you want to delete folder {{name}}?","sources.delete.folder_impact":"All resources inside will be recursively deleted: {{folders}} sub-folders, {{sources}} sources.","sources.delete.folder_impact_generic":"All sub-folders and resources inside will be recursively deleted.","sources.delete.irreversible":"This action cannot be undone.","sources.delete.repo":"Are you sure you want to remove repository {{name}} from {{library}}?","sources.delete.repo_impact":"Will delete: {{packages}} package index records, {{docs}} document index records.","sources.delete.repo_impact_generic":"All package and document index records will be deleted.","sources.delete.local_safe":"Local files will not be affected.","sources.delete.client":"Are you sure you want to delete client {{name}}?","sources.delete.client_impact":"All imported repository records and related index data under this client will be deleted.","sources.delete.client_reregister":"This client will need to re-register on next connection.","sources.error.name_conflict":'An item named "{{name}}" already exists in this directory.',"sources.move.current":"Current","sources.move.target":"Move to","sources.breadcrumb.sources":"Sources","common.cancel":"Cancel","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.previous":"Previous","common.items":"{{count}} items","common.loading":"Loading...","sources.import.no_entries":"No entries found"},VC={"nav.home":"首页","nav.studio":"工作台","nav.docs":"文档","nav.login":"登录","nav.logout":"退出登录","header.status.connected":"已连接","header.status.disconnected":"已断开","header.status.reconnecting":"重连中","footer.copyright":"GitHub · @Context4AI {{year}}. 版权所有 ","footer.tagline":"知识工厂","footer.theme.dark":"暗色","footer.theme.light":"亮色","footer.theme.system":"跟随系统","studio.sidebar.sources":"知识索引","studio.sidebar.modeling":"知识建模","studio.sidebar.brain":"知识大脑","studio.sidebar.discovery":"发现知识","studio.sidebar.sharing":"分享知识","studio.sidebar.collaboration":"知识协同","studio.sidebar.settings":"设置","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.sources.title":"知识索引","page.sources.description":"添加代码仓库、文档等输入材料,让大脑完成初步索引。","page.modeling.title":"知识建模","page.modeling.description":"和 AI 一起对索引内容建模,只有经得起推敲的才写入知识图谱。","page.brain.title":"知识大脑","page.brain.description":"建模完成的全部知识都在这里——浏览、搜索、分析,随时调用。","page.discovery.title":"发现知识","page.discovery.description":"看看别人整理好的知识,发现有用的一键补充到自己的大脑。","page.sharing.title":"分享知识","page.sharing.description":"把大脑中的知识打包输出,让别人和 AI 都能直接使用。","page.collaboration.title":"知识协同","page.collaboration.description":"和其他大脑保持同步,知识更新时自动通知,不用手动搬运。","page.settings.title":"设置","page.settings.description":"管理大脑的成员和配置。","page.code_setup.title":"代码设置","page.code_setup.description":"代码建模的仓库选择与配置。","page.code_compile.title":"代码编译","page.code_compile.description":"代码建模的编译进度追踪。","page.code_review.title":"代码审查","page.code_review.description":"审查并确认建模结果。","page.code_result.title":"代码结果","page.code_result.description":"查看最终建模结果与生成的知识图谱。","home.hero.title":"Context For AI","home.hero.description":"将代码仓库和业务文档转化为结构化知识图谱。","home.hero.cta.studio":"进入工作台","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页","sources.menu.add_client":"添加客户端","sources.menu.online":"在线","sources.menu.offline":"离线","sources.library.default_cloud_name":"个人云","sources.library.rename":"重命名","sources.library.rename_placeholder":"输入名称","sources.header.daemon_status":"{{online}}/{{total}} 在线","sources.header.all_offline":"全部离线","sources.actions.new_folder":"新建文件夹","sources.folder.name_placeholder":"输入文件夹名称","sources.actions.import_repo":"导入仓库","sources.actions.rename":"重命名","sources.actions.move_to":"移动到...","sources.actions.delete":"删除","sources.filter.all":"全部","sources.filter.indexed":"已索引","sources.filter.not_indexed":"未索引","sources.status.none":"未索引","sources.status.indexed":"已索引","sources.status.stale":"索引过期","sources.type.code":"代码","sources.type.doc":"文档","sources.empty.cloud.title":"这里是你专属的知识输入区","sources.empty.cloud.description":"创建文件夹来整理你的文档和材料。这些内容仅你个人可见,将成为后续推演、构建数字大脑的基础。(文档上传功能即将推出)","sources.empty.daemon.title":"连接你的本地代码资产","sources.empty.daemon.description":"导入本地代码仓库,系统会自动提取代码结构与技术文档,将其转化为结构化知识。","sources.empty.indexed.title":"这些知识尚未被索引","sources.empty.indexed.description":"选择资源并完成索引后,它们将转化为结构化摘要,为你后续的推演提供素材。","sources.safety.notice":"你的代码保有绝对隐私。源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","sources.import.title":"导入代码仓库","sources.import.step.select":"选择仓库","sources.import.step.version":"版本选择","sources.import.step.confirm":"确认导入","sources.import.daemon_offline":"客户端 {{name}} 未连接,请先启动本地 Daemon 并连接到服务器后再导入仓库。","sources.import.view_guide":"查看连接指引","sources.import.select_root":"选择仓库根目录","sources.import.current_path":"当前路径","sources.import.not_git":"该目录不是 Git 仓库,请选择包含 .git 的目录。","sources.import.branch":"分支","sources.import.commit":"提交","sources.import.branch_warning":"当前基于 {{branch}} 分支的 HEAD","sources.import.uncommitted_warning":"未提交的修改不会被采集","sources.import.recognized":"已识别 {{packages}} 个包和 {{docs}} 篇文档","sources.import.no_packages":"未识别到包结构,将作为单包仓库导入。","sources.import.confirm_heading":"即将导入以下仓库到 {{name}}:","sources.import.packages":"包数","sources.import.documents":"文档","sources.import.importing":"导入中...","sources.import.success":"导入完成","sources.add_client.title":"接入本地知识源","sources.add_client.description":"在本地计算机上启动客户端 (Daemon),即可将本地代码仓库作为输入材料,挂载到你的数字大脑中。","sources.add_client.step1":"安装 Daemon","sources.add_client.step2":"启动 Daemon","sources.add_client.step3":"等待连接","sources.add_client.step3_desc":"连接成功后,本页面将自动更新。","sources.add_client.waiting":"等待客户端连接...","sources.add_client.detected":"检测到新的本地客户端","sources.add_client.machine_name":"机器标识","sources.add_client.os":"操作系统","sources.add_client.daemon_version":"Daemon 版本","sources.add_client.client_name":"客户端名称","sources.add_client.confirm":"确认添加","sources.add_client.reconnected":"客户端 {{name}} 已重新连接","sources.add_client.go_to":"前往 {{name}}","sources.detail.tab.original":"原文","sources.detail.tab.overview":"概览","sources.detail.tab.digest":"摘要","sources.detail.tab.modeling":"建模结果","sources.detail.digest_placeholder":"完成索引后,即可在此查看结构化摘要。","sources.detail.modeling_placeholder":"在推演区完成建模后,此处将展示由该源产生的知识实体。","sources.detail.type":"类型","sources.detail.origin":"来源","sources.detail.origin.upload":"直接上传","sources.detail.origin.local":"本地文件","sources.detail.path":"路径","sources.detail.status":"状态","sources.detail.repo":"仓库","sources.detail.branch":"分支","sources.detail.commit":"提交","sources.detail.tech_stack":"技术栈","sources.detail.original_code_placeholder":"完成索引后即可查看包概览。","sources.detail.original_doc_placeholder":"文档内容将在上传后展示。","sources.detail.dependencies":"依赖","sources.delete.confirm_title":"确认删除","sources.delete.resource":"确定要删除 {{name}}?","sources.delete.resource_impact":"以下数据将被永久删除:原文内容、结构化摘要(如有)。","sources.delete.session_warning":"如果你的个人推演区正在使用此知识源,相关的候选推演将受到影响。","sources.delete.entity_safe":"已汇入大脑的正式知识不受影响。","sources.delete.folder":"确定要删除文件夹 {{name}}?","sources.delete.folder_impact":"文件夹内的所有资源将被递归删除:{{folders}} 个子文件夹、{{sources}} 个知识源。","sources.delete.folder_impact_generic":"文件夹内的所有子文件夹和知识源将被递归删除。","sources.delete.irreversible":"此操作不可撤销。","sources.delete.repo":"确定要从 {{library}} 中移除仓库 {{name}}?","sources.delete.repo_impact":"将删除:{{packages}} 个包的索引记录、{{docs}} 篇文档的索引记录。","sources.delete.repo_impact_generic":"所有包和文档的索引记录将被删除。","sources.delete.local_safe":"本地文件不受影响。","sources.delete.client":"确定要删除客户端 {{name}}?","sources.delete.client_impact":"该客户端下的所有已导入仓库记录和相关索引数据将被删除。","sources.delete.client_reregister":"该客户端下次连接时将触发重新注册。","sources.error.name_conflict":'该目录下已存在同名项"{{name}}"。',"sources.move.current":"当前位置","sources.move.target":"移动到","sources.breadcrumb.sources":"知识索引","common.cancel":"取消","common.confirm":"确认","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.items":"{{count}} 项","common.loading":"加载中...","sources.import.no_entries":"未找到任何条目"};Va.use(nE).use(mC).init({resources:{en:{translation:LC},zh:{translation:VC}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var Eg={exports:{}},Lc={},wg={exports:{}},Dg={},WS;function HC(){return WS||(WS=1,(function(o){(function(){function s(){if(K=!1,W){var J=o.unstable_now();$=J;var de=!0;try{e:{le=!1,ae&&(ae=!1,re(Q),Q=-1),Z=!0;var fe=I;try{t:{for(h(J),V=c(R);V!==null&&!(V.expirationTime>J&&y());){var he=V.callback;if(typeof he=="function"){V.callback=null,I=V.priorityLevel;var xe=he(V.expirationTime<=J);if(J=o.unstable_now(),typeof xe=="function"){V.callback=xe,h(J),de=!0;break t}V===c(R)&&u(R),h(J)}else u(R);V=c(R)}if(V!==null)de=!0;else{var q=c(A);q!==null&&x(p,q.startTime-J),de=!1}}break e}finally{V=null,I=fe,Z=!1}de=void 0}}finally{de?ue():W=!1}}}function i(J,de){var fe=J.length;J.push(de);e:for(;0<fe;){var he=fe-1>>>1,xe=J[he];if(0<f(xe,de))J[he]=de,J[fe]=xe,fe=he;else break e}}function c(J){return J.length===0?null:J[0]}function u(J){if(J.length===0)return null;var de=J[0],fe=J.pop();if(fe!==de){J[0]=fe;e:for(var he=0,xe=J.length,q=xe>>>1;he<q;){var ge=2*(he+1)-1,Oe=J[ge],Se=ge+1,ct=J[Se];if(0>f(Oe,fe))Se<xe&&0>f(ct,Oe)?(J[he]=ct,J[Se]=fe,he=Se):(J[he]=Oe,J[ge]=fe,he=ge);else if(Se<xe&&0>f(ct,fe))J[he]=ct,J[Se]=fe,he=Se;else break e}}return de}function f(J,de){var fe=J.sortIndex-de.sortIndex;return fe!==0?fe:J.id-de.id}function h(J){for(var de=c(A);de!==null;){if(de.callback===null)u(A);else if(de.startTime<=J)u(A),de.sortIndex=de.expirationTime,i(R,de);else break;de=c(A)}}function p(J){if(ae=!1,h(J),!le)if(c(R)!==null)le=!0,W||(W=!0,ue());else{var de=c(A);de!==null&&x(p,de.startTime-J)}}function y(){return K?!0:!(o.unstable_now()-$<oe)}function x(J,de){Q=se(function(){J(o.unstable_now())},de)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;o.unstable_now=function(){return w.now()}}else{var v=Date,E=v.now();o.unstable_now=function(){return v.now()-E}}var R=[],A=[],H=1,V=null,I=3,Z=!1,le=!1,ae=!1,K=!1,se=typeof setTimeout=="function"?setTimeout:null,re=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null,W=!1,Q=-1,oe=5,$=-1;if(typeof j=="function")var ue=function(){j(s)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Te=ve.port2;ve.port1.onmessage=s,ue=function(){Te.postMessage(null)}}else ue=function(){se(s,0)};o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(J){J.callback=null},o.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<J?Math.floor(1e3/J):5},o.unstable_getCurrentPriorityLevel=function(){return I},o.unstable_next=function(J){switch(I){case 1:case 2:case 3:var de=3;break;default:de=I}var fe=I;I=de;try{return J()}finally{I=fe}},o.unstable_requestPaint=function(){K=!0},o.unstable_runWithPriority=function(J,de){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var fe=I;I=J;try{return de()}finally{I=fe}},o.unstable_scheduleCallback=function(J,de,fe){var he=o.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?he+fe:he):fe=he,J){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=fe+xe,J={id:H++,callback:de,priorityLevel:J,startTime:fe,expirationTime:xe,sortIndex:-1},fe>he?(J.sortIndex=fe,i(A,J),c(R)===null&&J===c(A)&&(ae?(re(Q),Q=-1):ae=!0,x(p,fe-he))):(J.sortIndex=xe,i(R,J),le||Z||(le=!0,W||(W=!0,ue()))),J},o.unstable_shouldYield=y,o.unstable_wrapCallback=function(J){var de=I;return function(){var fe=I;I=de;try{return J.apply(this,arguments)}finally{I=fe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Dg)),Dg}var eN;function BC(){return eN||(eN=1,wg.exports=HC()),wg.exports}var Rg={exports:{}},Ea={},tN;function $C(){if(tN)return Ea;tN=1;return(function(){function o(){}function s(v){return""+v}function i(v,E,R){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{s(A);var H=!1}catch{H=!0}return H&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object"),s(A)),{$$typeof:x,key:A==null?null:""+A,children:v,containerInfo:E,implementation:R}}function c(v,E){if(v==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}function u(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function f(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function h(){var v=w.H;return v===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var p=eu(),y={d:{f:o,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},x=Symbol.for("react.portal"),w=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ea.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Ea.createPortal=function(v,E){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error("Target container is not a DOM element.");return i(v,E,null,R)},Ea.flushSync=function(v){var E=w.T,R=y.p;try{if(w.T=null,y.p=2,v)return v()}finally{w.T=E,y.p=R,y.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Ea.preconnect=function(v,E){typeof v=="string"&&v?E!=null&&typeof E!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",f(E)):E!=null&&typeof E.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(E.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,y.d.C(v,E))},Ea.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v));else if(1<arguments.length){var E=arguments[1];typeof E=="object"&&E.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(E)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(E))}typeof v=="string"&&y.d.D(v)},Ea.preinit=function(v,E){if(typeof v=="string"&&v?E==null||typeof E!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",f(E)):E.as!=="style"&&E.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',f(E.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&E&&typeof E.as=="string"){var R=E.as,A=c(R,E.crossOrigin),H=typeof E.integrity=="string"?E.integrity:void 0,V=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;R==="style"?y.d.S(v,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:A,integrity:H,fetchPriority:V}):R==="script"&&y.d.X(v,{crossOrigin:A,integrity:H,fetchPriority:V,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},Ea.preinitModule=function(v,E){var R="";typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),E!==void 0&&typeof E!="object"?R+=" The `options` argument encountered was "+u(E)+".":E&&"as"in E&&E.as!=="script"&&(R+=" The `as` option encountered was "+f(E.as)+"."),R?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",R):(R=E&&typeof E.as=="string"?E.as:"script",R)==="script"||(R=f(R),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',R,v)),typeof v=="string"&&(typeof E=="object"&&E!==null?(E.as==null||E.as==="script")&&(R=c(E.as,E.crossOrigin),y.d.M(v,{crossOrigin:R,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})):E==null&&y.d.M(v))},Ea.preload=function(v,E){var R="";if(typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),E==null||typeof E!="object"?R+=" The `options` argument encountered was "+u(E)+".":typeof E.as=="string"&&E.as||(R+=" The `as` option encountered was "+u(E.as)+"."),R&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',R),typeof v=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){R=E.as;var A=c(R,E.crossOrigin);y.d.L(v,R,{crossOrigin:A,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},Ea.preloadModule=function(v,E){var R="";typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),E!==void 0&&typeof E!="object"?R+=" The `options` argument encountered was "+u(E)+".":E&&"as"in E&&typeof E.as!="string"&&(R+=" The `as` option encountered was "+u(E.as)+"."),R&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',R),typeof v=="string"&&(E?(R=c(E.as,E.crossOrigin),y.d.m(v,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:R,integrity:typeof E.integrity=="string"?E.integrity:void 0})):y.d.m(v))},Ea.requestFormReset=function(v){y.d.r(v)},Ea.unstable_batchedUpdates=function(v,E){return v(E)},Ea.useFormState=function(v,E,R){return h().useFormState(v,E,R)},Ea.useFormStatus=function(){return h().useHostTransitionStatus()},Ea.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ea}var aN;function YC(){return aN||(aN=1,Rg.exports=$C()),Rg.exports}var nN;function qC(){if(nN)return Lc;nN=1;return(function(){function o(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function s(e,t,a,n){if(a>=t.length)return n;var r=t[a],l=aa(e)?e.slice():Ke({},e);return l[r]=s(e[r],t,a+1,n),l}function i(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var n=0;n<a.length-1;n++)if(t[n]!==a[n]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,n){var r=t[n],l=aa(e)?e.slice():Ke({},e);return n+1===t.length?(l[a[n]]=l[r],aa(l)?l.splice(r,1):delete l[r]):l[r]=c(e[r],t,a,n+1),l}function u(e,t,a){var n=t[a],r=aa(e)?e.slice():Ke({},e);return a+1===t.length?(aa(r)?r.splice(n,1):delete r[n],r):(r[n]=u(e[n],t,a+1),r)}function f(){return!1}function h(){return null}function p(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function x(){}function w(){}function v(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function E(e,t,a,n){return new pw(e,t,a,n)}function R(e,t){e.context===$s&&(Mh(e.current,2,t,e,null,null),dl())}function A(e,t){if(En!==null){var a=t.staleFamilies;t=t.updatedFamilies,Ui(),jb(e.current,t,a),dl()}}function H(e){En=e}function V(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function I(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 Z(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 le(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 ae(e){if(I(e)!==e)throw Error("Unable to find node on an unmounted component.")}function K(e){var t=e.alternate;if(!t){if(t=I(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var l=r.alternate;if(l===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===l.child){for(l=r.child;l;){if(l===a)return ae(r),e;if(l===n)return ae(r),t;l=l.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==n.return)a=r,n=l;else{for(var d=!1,m=r.child;m;){if(m===a){d=!0,a=r,n=l;break}if(m===n){d=!0,n=r,a=l;break}m=m.sibling}if(!d){for(m=l.child;m;){if(m===a){d=!0,a=l,n=r;break}if(m===n){d=!0,n=l,a=r;break}m=m.sibling}if(!d)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function se(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=se(e),t!==null)return t;e=e.sibling}return null}function re(e){return e===null||typeof e!="object"?null:(e=$0&&e[$0]||e["@@iterator"],typeof e=="function"?e:null)}function j(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===L4?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yl:return"Fragment";case Yh:return"Profiler";case fd:return"StrictMode";case Gh:return"Suspense";case Xh:return"SuspenseList";case Qh:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case bl:return"Portal";case Eo:return e.displayName||"Context";case qh:return(e._context.displayName||"Context")+".Consumer";case $i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case md:return t=e.displayName||null,t!==null?t:j(e.type)||"Memo";case nn:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}function W(e){return typeof e.tag=="number"?Q(e):typeof e.name=="string"?e.name:null}function Q(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(t);case 8:return t===fd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return Q(e.return)}return null}function oe(e){return{current:e}}function $(e,t){0>Po?console.error("Unexpected pop."):(t!==Ih[Po]&&console.error("Unexpected Fiber popped."),e.current=Fh[Po],Fh[Po]=null,Ih[Po]=null,Po--)}function ue(e,t,a){Po++,Fh[Po]=e.current,Ih[Po]=a,e.current=t}function ve(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Te(e,t){ue(Ms,t,e),ue(Yi,e,e),ue(js,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?d0(t):fs;break;default:if(a=t.tagName,t=t.namespaceURI)t=d0(t),t=f0(t,a);else switch(a){case"svg":t=Kl;break;case"math":t=ff;break;default:t=fs}}a=a.toLowerCase(),a=lu(null,a),a={context:t,ancestorInfo:a},$(js,e),ue(js,a,e)}function J(e){$(js,e),$(Yi,e),$(Ms,e)}function de(){return ve(js.current)}function fe(e){e.memoizedState!==null&&ue(hd,e,e);var t=ve(js.current),a=e.type,n=f0(t.context,a);a=lu(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(ue(Yi,e,e),ue(js,n,e))}function he(e){Yi.current===e&&($(js,e),$(Yi,e)),hd.current===e&&($(hd,e),kc._currentValue=Fr)}function xe(){}function q(){if(qi===0){Y0=console.log,q0=console.info,G0=console.warn,X0=console.error,Q0=console.group,F0=console.groupCollapsed,I0=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}qi++}function ge(){if(qi--,qi===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:Y0}),info:Ke({},e,{value:q0}),warn:Ke({},e,{value:G0}),error:Ke({},e,{value:X0}),group:Ke({},e,{value:Q0}),groupCollapsed:Ke({},e,{value:F0}),groupEnd:Ke({},e,{value:I0})})}0>qi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Oe(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
23
+ `)&&(e=e.slice(29)),t=e.indexOf(`
24
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
25
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Se(e){if(Zh===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Zh=t&&t[1]||"",Z0=-1<a.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+Zh+e+Z0}function ct(e,t){if(!e||Jh)return"";var a=Ph.get(e);if(a!==void 0)return a;Jh=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=X.H,X.H=null,q();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(me){var B=me}Reflect.construct(e,[],_)}else{try{_.call()}catch(me){B=me}e.call(_.prototype)}}else{try{throw Error()}catch(me){B=me}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(me){if(me&&B&&typeof me.stack=="string")return[me.stack,B.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),m=d[0],b=d[1];if(m&&b){var S=m.split(`
28
+ `),k=b.split(`
29
+ `);for(d=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;d<k.length&&!k[d].includes("DetermineComponentFrameRoot");)d++;if(l===S.length||d===k.length)for(l=S.length-1,d=k.length-1;1<=l&&0<=d&&S[l]!==k[d];)d--;for(;1<=l&&0<=d;l--,d--)if(S[l]!==k[d]){if(l!==1||d!==1)do if(l--,d--,0>d||S[l]!==k[d]){var M=`
30
+ `+S[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ph.set(e,M),M}while(1<=l&&0<=d);break}}}finally{Jh=!1,X.H=n,ge(),Error.prepareStackTrace=a}return S=(S=e?e.displayName||e.name:"")?Se(S):"",typeof e=="function"&&Ph.set(e,S),S}function At(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se("Lazy");case 13:return e.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return Se("Activity");default:return""}}function lt(e){try{var t="",a=null;do{t+=At(e,a);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var l=n[r];if(typeof l.name=="string"){var d=t;e:{var m=l.name,b=l.env,S=l.debugLocation;if(S!=null){var k=Oe(S),M=k.lastIndexOf(`
31
+ `),_=M===-1?k:k.slice(M+1);if(_.indexOf(m)!==-1){var B=`
32
+ `+_;break e}}B=Se(m+(b?" ["+b+"]":""))}t=d+B}}a=e,e=e.return}while(e);return t}catch(me){return`
33
+ Error generating stack: `+me.message+`
34
+ `+me.stack}}function ea(e){return(e=e?e.displayName||e.name:"")?Se(e):""}function Gt(){if(on===null)return null;var e=on._debugOwner;return e!=null?W(e):null}function Ia(){if(on===null)return"";var e=on;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Se(e.type);break;case 13:t+=Se("Suspense");break;case 19:t+=Se("SuspenseList");break;case 31:t+=Se("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ea(e.type));break;case 11:e._debugOwner||t!==""||(t+=ea(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var n=a._debugStack;if(e&&n){var r=Oe(n);r!==""&&(t+=`
35
+ `+r)}}else if(e.debugStack!=null){var l=e.debugStack;(e=e.owner)&&l&&(t+=`
36
+ `+Oe(l))}else break;var d=t}catch(m){d=`
37
+ Error generating stack: `+m.message+`
38
+ `+m.stack}return d}function P(e,t,a,n,r,l,d){var m=on;Ze(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,n,r,l,d)):t(a,n,r,l,d)}finally{Ze(m)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ze(e){X.getCurrentStack=e===null?null:Ia,wo=!1,on=e}function $e(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function ta(e){try{return Za(e),!1}catch{return!0}}function Za(e){return""+e}function dt(e,t){if(ta(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,$e(e)),Za(e)}function wt(e,t){if(ta(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,$e(e)),Za(e)}function Xt(e){if(ta(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",$e(e)),Za(e)}function li(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xl=t.inject(e),Sa=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function Ne(e){if(typeof G4=="function"&&X4(e),Sa&&typeof Sa.setStrictMode=="function")try{Sa.setStrictMode(xl,e)}catch(t){Do||(Do=!0,console.error("React instrumentation encountered an error: %o",t))}}function bs(e){return e>>>=0,e===0?32:31-(Q4(e)/F4|0)|0}function hn(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function zo(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~l,n!==0?r=hn(n):(d&=m,d!==0?r=hn(d):a||(a=m&~e,a!==0&&(r=hn(a))))):(m=n&~l,m!==0?r=hn(m):d!==0?r=hn(d):a||(a=n&~e,a!==0&&(r=hn(a)))),r===0?0:t!==0&&t!==r&&(t&l)===0&&(l=r&-r,a=t&-t,l>=a||l===32&&(a&4194048)!==0)?t:r}function to(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pn(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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function Ln(){var e=bd;return bd<<=1,(bd&62914560)===0&&(bd=4194304),e}function ys(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ha(e,t,a,n,r,l){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,b=e.expirationTimes,S=e.hiddenUpdates;for(a=d&~a;0<a;){var k=31-_a(a),M=1<<k;m[k]=0,b[k]=-1;var _=S[k];if(_!==null)for(S[k]=null,k=0;k<_.length;k++){var B=_[k];B!==null&&(B.lane&=-536870913)}a&=~M}n!==0&&Da(e,n,0),l!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=l&~(d&~t))}function Da(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-_a(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function vs(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-_a(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function Lo(e,t){var a=t&-t;return a=(a&42)!==0?1:bn(a),(a&(e.suspendedLanes|t))!==0?0:a}function bn(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 Vo(e,t,a){if(Ro)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-_a(a),r=1<<n;e[n].add(t),a&=~r}}function ya(e,t){if(Ro)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var r=31-_a(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(l){var d=l.alternate;d!==null&&n.has(d)||n.add(l)}),r.clear()),t&=~e}}function Ho(e){return e&=-e,xn<e?Co<e?(e&134217727)!==0?Ko:yd:Co:xn}function Vn(){var e=pt.p;return e!==0?e:(e=window.event,e===void 0?Ko:j0(e.type))}function N(e,t){var a=pt.p;try{return pt.p=e,t()}finally{pt.p=a}}function z(e){delete e[ga],delete e[Oa],delete e[ap],delete e[I4],delete e[Z4]}function ee(e){var t=e[ga];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ls]||a[ga]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=x0(e);e!==null;){if(a=e[ga])return a;e=x0(e)}return t}e=a,a=e.parentNode}return null}function ce(e){if(e=e[ga]||e[Ls]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ve(e){var t=e[J0];return t||(t=e[J0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Re(e){e[Gi]=!0}function tt(e,t){Ye(e,t),Ye(e+"Capture",t)}function Ye(e,t){wr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),wr[e]=t;var a=e.toLowerCase();for(np[a]=e,e==="onDoubleClick"&&(np.ondblclick=e),e=0;e<t.length;e++)P0.add(t[e])}function sa(e,t){J4[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ra(e){return Qn.call(W0,e)?!0:Qn.call(K0,e)?!1:P4.test(e)?W0[e]=!0:(K0[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Bo(e,t,a){if(Ra(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(dt(a,t),e===""+a?a:e)}}function $o(e,t,a){if(Ra(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}}dt(a,t),e.setAttribute(t,""+a)}}function tl(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}dt(a,t),e.setAttribute(t,""+a)}}function Hn(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}dt(n,a),e.setAttributeNS(t,a,""+n)}}function T(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Xt(e),e;default:return""}}function L(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G(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 r=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){Xt(d),a=""+d,l.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){Xt(d),a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ne(e){if(!e._valueTracker){var t=L(e)?"checked":"value";e._valueTracker=G(e,t,""+e[t])}}function ie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=L(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ce(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}}function be(e){return e.replace(K4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ue(e,t){t.checked===void 0||t.defaultChecked===void 0||tx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component",t.type),tx=!0),t.value===void 0||t.defaultValue===void 0||ex||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component",t.type),ex=!0)}function we(e,t,a,n,r,l,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(dt(d,"type"),e.type=d):e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+T(t)):e.value!==""+T(t)&&(e.value=""+T(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?je(e,d,T(t)):a!=null?je(e,d,T(a)):n!=null&&e.removeAttribute("value"),r==null&&l!=null&&(e.defaultChecked=!!l),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?(dt(m,"name"),e.name=""+T(m)):e.removeAttribute("name")}function Me(e,t,a,n,r,l,d,m){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(dt(l,"type"),e.type=l),t!=null||a!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){ne(e);return}a=a!=null?""+T(a):"",t=t!=null?""+T(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(dt(d,"name"),e.name=d),ne(e)}function je(e,t,a){t==="number"&&Ce(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function _e(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?$h.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||nx||(nx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||ox||(ox=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||ax||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ax=!0)}function ft(){var e=Gt();return e?`
39
+
40
+ Check the render method of \``+e+"`.":""}function We(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+T(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Dt(e,t){for(e=0;e<rx.length;e++){var a=rx[e];if(t[a]!=null){var n=aa(t[a]);t.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,ft()):!t.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,ft())}}t.value===void 0||t.defaultValue===void 0||sx||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),sx=!0)}function Bt(e,t){t.value===void 0||t.defaultValue===void 0||lx||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component"),lx=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ra(e,t,a){if(t!=null&&(t=""+T(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+T(a):""}function mt(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(aa(n)){if(1<n.length)throw Error("<textarea> can only have at most one child.");n=n[0]}a=n}a==null&&(a=""),t=a}a=T(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),ne(e)}function Ca(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ca(e.children[0],t):e}function $t(e){return" "+" ".repeat(e)}function yn(e){return"+ "+" ".repeat(e)}function va(e){return"- "+" ".repeat(e)}function Ja(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Yo(e,t){return ix.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function ao(e,t,a){var n=120-2*a;if(t===null)return yn(a)+Yo(e,n)+`
41
+ `;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>n-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),yn(a)+Yo(e,n)+`
42
+ `+va(a)+Yo(t,n)+`
43
+ `}return $t(a)+Yo(e,n)+`
44
+ `}function Bn(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function no(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(aa(e))return"[...]";if(e.$$typeof===No)return(t=j(e.type))?"<"+t+">":"<...>";var a=Bn(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var r=JSON.stringify(n);if(r!=='"'+n+'"'&&(n=r),t-=n.length-2,r=no(e[n],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function $n(e,t){return typeof e!="string"||ix.test(e)?"{"+no(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function nt(e,t,a){var n=120-a.length-e.length,r=[],l;for(l in t)if(t.hasOwnProperty(l)&&l!=="children"){var d=$n(t[l],120-a.length-l.length-1);n-=l.length+d.length+2,r.push(l+"="+d)}return r.length===0?a+"<"+e+`>
45
+ `:0<n?a+"<"+e+" "+r.join(" ")+`>
46
+ `:a+"<"+e+`
47
+ `+a+" "+r.join(`
48
+ `+a+" ")+`
49
+ `+a+`>
50
+ `}function la(e,t,a){var n="",r=Ke({},t),l;for(l in e)if(e.hasOwnProperty(l)){delete r[l];var d=120-2*a-l.length-2,m=no(e[l],d);t.hasOwnProperty(l)?(d=no(t[l],d),n+=yn(a)+l+": "+m+`
51
+ `,n+=va(a)+l+": "+d+`
52
+ `):n+=yn(a)+l+": "+m+`
53
+ `}for(var b in r)r.hasOwnProperty(b)&&(e=no(r[b],120-2*a-b.length-2),n+=va(a)+b+": "+e+`
54
+ `);return n}function xs(e,t,a,n){var r="",l=new Map;for(S in a)a.hasOwnProperty(S)&&l.set(S.toLowerCase(),S);if(l.size===1&&l.has("children"))r+=nt(e,t,$t(n));else{for(var d in t)if(t.hasOwnProperty(d)&&d!=="children"){var m=120-2*(n+1)-d.length-1,b=l.get(d.toLowerCase());if(b!==void 0){l.delete(d.toLowerCase());var S=t[d];b=a[b];var k=$n(S,m);m=$n(b,m),typeof S=="object"&&S!==null&&typeof b=="object"&&b!==null&&Bn(S)==="Object"&&Bn(b)==="Object"&&(2<Object.keys(S).length||2<Object.keys(b).length||-1<k.indexOf("...")||-1<m.indexOf("..."))?r+=$t(n+1)+d+`={{
55
+ `+la(S,b,n+2)+$t(n+1)+`}}
56
+ `:(r+=yn(n+1)+d+"="+k+`
57
+ `,r+=va(n+1)+d+"="+m+`
58
+ `)}else r+=$t(n+1)+d+"="+$n(t[d],m)+`
59
+ `}l.forEach(function(M){if(M!=="children"){var _=120-2*(n+1)-M.length-1;r+=va(n+1)+M+"="+$n(a[M],_)+`
60
+ `}}),r=r===""?$t(n)+"<"+e+`>
61
+ `:$t(n)+"<"+e+`
62
+ `+r+$t(n)+`>
63
+ `}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(l="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(l=""+t),r+=ao(l,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+ao(""+t,null,n+1):r+ao(""+t,void 0,n+1)),r}function oo(e,t){var a=Ja(e);if(a===null){for(a="",e=e.child;e;)a+=oo(e,t),e=e.sibling;return a}return $t(t)+"<"+a+`>
64
+ `}function Rt(e,t){var a=Ca(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return $t(t)+`...
65
+ `+Rt(a,t+1);a="";var n=e.fiber._debugInfo;if(n)for(var r=0;r<n.length;r++){var l=n[r].name;typeof l=="string"&&(a+=$t(t)+"<"+l+`>
66
+ `,t++)}if(n="",r=e.fiber.pendingProps,e.fiber.tag===6)n=ao(r,e.serverProps,t),t++;else if(l=Ja(e.fiber),l!==null)if(e.serverProps===void 0){n=t;var d=120-2*n-l.length-2,m="";for(S in r)if(r.hasOwnProperty(S)&&S!=="children"){var b=$n(r[S],15);if(d-=S.length+b.length+2,0>d){m+=" ...";break}m+=" "+S+"="+b}n=$t(n)+"<"+l+m+`>
67
+ `,t++}else e.serverProps===null?(n=nt(l,r,yn(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(n=xs(l,r,e.serverProps,t),t++);var S="";for(r=e.fiber.child,l=0;r&&l<e.children.length;)d=e.children[l],d.fiber===r?(S+=Rt(d,t),l++):S+=oo(r,t),r=r.sibling;for(r&&0<e.children.length&&(S+=$t(t)+`...
68
+ `),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)l=r[e],S=typeof l=="string"?S+(va(t)+Yo(l,120-2*t)+`
69
+ `):S+nt(l.type,l.props,va(t));return a+n+S}function Ss(e){try{return`
70
+
71
+ `+Rt(e,0)}catch{return""}}function ii(e,t,a){for(var n=t,r=null,l=0;n;)n===e&&(l=0),r={fiber:n,children:r!==null?[r]:[],serverProps:n===t?a:n===e?null:void 0,serverTail:[],distanceFromLeaf:l},l++,n=n.return;return r!==null?Ss(r).replaceAll(/^[+-]/gm,">"):""}function lu(e,t){var a=Ke({},e||ux),n={tag:t};return cx.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),eD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),W4.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=n,t==="form"&&(a.formTag=n),t==="a"&&(a.aTagInScope=n),t==="button"&&(a.buttonTagInScope=n),t==="nobr"&&(a.nobrTagInScope=n),t==="p"&&(a.pTagInButtonScope=n),t==="li"&&(a.listItemTagAutoclosing=n),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=n),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=n),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function rb(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return tD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function ZE(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function lb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Yf(e,t){t=t||ux;var a=t.current;if(t=(a=rb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:ZE(e,t),t=a||t,!t)return!0;var n=t.tag;if(t=String(!!a)+"|"+e+"|"+n,vd[t])return!1;vd[t]=!0;var r=(t=on)?lb(t.return,n):null,l=t!==null&&r!==null?ii(r,t,null):"",d="<"+e+">";return a?(a="",n==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
+ This will cause a hydration error.%s`,d,n,a,l)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
+ This will cause a hydration error.%s`,d,n,l),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||P(r,function(){console.error(`<%s> cannot contain a nested %s.
74
+ See this log for the ancestor stack trace.`,n,d)})),!1}function iu(e,t,a){if(a||rb("#text",t,!1))return!0;if(a="#text|"+t,vd[a])return!1;vd[a]=!0;var n=(a=on)?lb(a,t):null;return a=a!==null&&n!==null?ii(n,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
+ This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
+ This will cause a hydration error.%s`,t,a),!1}function ci(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function JE(e){return e.replace(oD,function(t,a){return a.toUpperCase()})}function ib(e,t,a){var n=t.indexOf("--")===0;n||(-1<t.indexOf("-")?Sl.hasOwnProperty(t)&&Sl[t]||(Sl[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,JE(t.replace(nD,"ms-")))):aD.test(t)?Sl.hasOwnProperty(t)&&Sl[t]||(Sl[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!mx.test(a)||sp.hasOwnProperty(a)&&sp[a]||(sp[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(mx,""))),typeof a=="number"&&(isNaN(a)?hx||(hx=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||px||(px=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),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||gx.has(t)?t==="float"?e.cssFloat=a:(wt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function cb(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var n={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var l=op[r]||[r],d=0;d<l.length;d++)n[l[d]]=r}for(var m in t)if(t.hasOwnProperty(m)&&(!a||a[m]!==t[m]))for(r=op[m]||[m],l=0;l<r.length;l++)n[r[l]]=m;m={};for(var b in t)for(r=op[b]||[b],l=0;l<r.length;l++)m[r[l]]=b;b={};for(var S in n)if(r=n[S],(l=m[S])&&r!==l&&(d=r+","+l,!b[d])){b[d]=!0,d=console;var k=t[r];d.error.call(d,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",k==null||typeof k=="boolean"||k===""?"Removing":"Updating",r,l)}}for(var M in a)!a.hasOwnProperty(M)||t!=null&&t.hasOwnProperty(M)||(M.indexOf("--")===0?e.setProperty(M,""):M==="float"?e.cssFloat="":e[M]="");for(var _ in t)S=t[_],t.hasOwnProperty(_)&&a[_]!==S&&ib(e,_,S)}else for(n in t)t.hasOwnProperty(n)&&ib(e,n,t[n])}function ui(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}}function ub(e){return sD.get(e)||e}function PE(e,t){if(Qn.call(El,t)&&El[t])return!0;if(lD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=bx.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),El[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),El[t]=!0}if(rD.test(t)){if(e=t.toLowerCase(),e=bx.hasOwnProperty(e)?e:null,e==null)return El[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),El[t]=!0)}return!0}function KE(e,t){var a=[],n;for(n in t)PE(e,n)||a.push(n);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function WE(e,t,a,n){if(Qn.call(Ua,t)&&Ua[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ua[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(n!=null){if(e=n.possibleRegistrationNames,n.registrationNameDependencies.hasOwnProperty(t))return!0;if(n=e.hasOwnProperty(r)?e[r]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),Ua[t]=!0;if(vx.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ua[t]=!0}else if(vx.test(t))return iD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ua[t]=!0;if(cD.test(t)||uD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ua[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ua[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Ua[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Ua[t]=!0;if(Sd.hasOwnProperty(r)){if(r=Sd[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Ua[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Ua[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Ua[t]=!0)}case"function":case"symbol":return Ua[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Ua[t]=!0}}return!0}function ew(e,t,a){var n=[],r;for(r in t)WE(e,r,t[r],a)||n.push(r);t=n.map(function(l){return"`"+l+"`"}).join(", "),n.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<n.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function di(e){return dD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qo(){}function qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function db(e){var t=ce(e);if(t&&(e=t.stateNode)){var a=e[Oa]||null;e:switch(e=t.stateNode,t.type){case"input":if(we(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(dt(t,"name"),a=a.querySelectorAll('input[name="'+be(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[Oa]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");we(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ie(n)}break e;case"textarea":ra(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&We(e,!!a.multiple,t,!1)}}}function fb(e,t,a){if(rp)return e(t,a);rp=!0;try{var n=e(t);return n}finally{if(rp=!1,(wl!==null||Dl!==null)&&(dl(),wl&&(t=wl,e=Dl,Dl=wl=null,db(t),e)))for(t=0;t<e.length;t++)db(e[t])}}function fi(e,t){var a=e.stateNode;if(a===null)return null;var n=a[Oa]||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("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function mb(){if(Nd)return Nd;var e,t=ip,a=t.length,n,r="value"in Vs?Vs.value:Vs.textContent,l=r.length;for(e=0;e<a&&t[e]===r[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===r[l-n];n++);return Nd=r.slice(e,1<n?1-n:void 0)}function cu(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 uu(){return!0}function hb(){return!1}function Ba(e){function t(a,n,r,l,d){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(l):l[m]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?uu:hb,this.isPropagationStopped=hb,this}return Ke(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=uu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),t}function tw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wD[e])?!!t[e]:!1}function Gf(){return tw}function pb(e,t){switch(e){case"keyup":return zD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Ex;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function aw(e,t){switch(e){case"compositionend":return gb(t);case"keypress":return t.which!==Dx?null:(Cx=!0,Rx);case"textInput":return e=t.data,e===Rx&&Cx?null:e;default:return null}}function nw(e,t){if(Rl)return e==="compositionend"||!fp&&pb(e,t)?(e=mb(),Nd=ip=Vs=null,Rl=!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 wx&&t.locale!=="ko"?null:t.data;default:return null}}function bb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!VD[e.type]:t==="textarea"}function ow(e){if(!To)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function yb(e,t,a,n){wl?Dl?Dl.push(n):Dl=[n]:wl=n,t=ad(t,"onChange"),0<t.length&&(a=new Ed("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function sw(e){e0(e,0)}function du(e){var t=Ee(e);if(ie(t))return e}function vb(e,t){if(e==="change")return t}function xb(){Ji&&(Ji.detachEvent("onpropertychange",Sb),Pi=Ji=null)}function Sb(e){if(e.propertyName==="value"&&du(Pi)){var t=[];yb(t,Pi,e,qf(e)),fb(sw,t)}}function rw(e,t,a){e==="focusin"?(xb(),Ji=t,Pi=a,Ji.attachEvent("onpropertychange",Sb)):e==="focusout"&&xb()}function lw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return du(Pi)}function iw(e,t){if(e==="click")return du(t)}function cw(e,t){if(e==="input"||e==="change")return du(t)}function uw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function mi(e,t){if(Aa(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 r=a[n];if(!Qn.call(t,r)||!Aa(e[r],t[r]))return!1}return!0}function Nb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Eb(e,t){var a=Nb(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=Nb(a)}}function wb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Db(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ce(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=Ce(e.document)}return t}function Xf(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")}function Rb(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hp||Cl==null||Cl!==Ce(n)||(n=Cl,"selectionStart"in n&&Xf(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}),Ki&&mi(Ki,n)||(Ki=n,n=ad(mp,"onSelect"),0<n.length&&(t=new Ed("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Cl)))}function ur(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function dr(e){if(pp[e])return pp[e];if(!Tl[e])return e;var t=Tl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in _x)return pp[e]=t[a];return e}function Yn(e,t){jx.set(e,t),tt(t,[e])}function dw(e){for(var t=Dd,a=0;a<e.length;a++){var n=e[a];if(typeof n=="object"&&n!==null)if(aa(n)&&n.length===2&&typeof n[0]=="string"){if(t!==Dd&&t!==xp)return yp;t=xp}else return yp;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==Dd&&t!==vp)return yp;t=vp}}return t}function Qf(e,t,a,n){for(var r in e)Qn.call(e,r)&&r[0]!=="_"&&so(r,e[r],t,a,n)}function so(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===No){var l=j(t.type)||"…",d=t.key;t=t.props;var m=Object.keys(t),b=m.length;if(d==null&&b===0){t="<"+l+" />";break}if(3>n||b===1&&m[0]==="children"&&d==null){t="<"+l+" … />";break}a.push([r+"  ".repeat(n)+e,"<"+l]),d!==null&&so("key",d,a,n+1,r),e=!1;for(var S in t)S==="children"?t.children!=null&&(!aa(t.children)||0<t.children.length)&&(e=!0):Qn.call(t,S)&&S[0]!=="_"&&so(S,t[S],a,n+1,r);a.push(["",e?">…</"+l+">":"/>"]);return}if(l=Object.prototype.toString.call(t),l=l.slice(8,l.length-1),l==="Array"){if(S=dw(t),S===vp||S===Dd){t=JSON.stringify(t);break}else if(S===xp){for(a.push([r+"  ".repeat(n)+e,""]),e=0;e<t.length;e++)l=t[e],so(l[0],l[1],a,n+1,r);return}}if(l==="Promise"){if(t.status==="fulfilled"){if(l=a.length,so(e,t.value,a,n,r),a.length>l){a=a[l],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(l=a.length,so(e,t.reason,a,n,r),a.length>l)){a=a[l],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(n)+e,"Promise"]);return}l==="Object"&&(S=Object.getPrototypeOf(t))&&typeof S.constructor=="function"&&(l=S.constructor.name),a.push([r+"  ".repeat(n)+e,l==="Object"?3>n?"":"…":l]),3>n&&Qf(t,a,n+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===XD?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+"  ".repeat(n)+e,t])}function Cb(e,t,a,n){var r=!0;for(d in e)d in t||(a.push([Rd+"  ".repeat(n)+d,"…"]),r=!1);for(var l in t)if(l in e){var d=e[l],m=t[l];if(d!==m){if(n===0&&l==="children")r="  ".repeat(n)+l,a.push([Rd+r,"…"],[Cd+r,"…"]);else{if(!(3<=n)){if(typeof d=="object"&&typeof m=="object"&&d!==null&&m!==null&&d.$$typeof===m.$$typeof)if(m.$$typeof===No){if(d.type===m.type&&d.key===m.key){d=j(m.type)||"…",r="  ".repeat(n)+l,d="<"+d+" … />",a.push([Rd+r,d],[Cd+r,d]),r=!1;continue}}else{var b=Object.prototype.toString.call(d),S=Object.prototype.toString.call(m);if(b===S&&(S==="[object Object]"||S==="[object Array]")){b=[Lx+"  ".repeat(n)+l,S==="[object Array]"?"Array":""],a.push(b),S=a.length,Cb(d,m,a,n+1)?S===a.length&&(b[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof d=="function"&&typeof m=="function"&&d.name===m.name&&d.length===m.length&&(b=Function.prototype.toString.call(d),S=Function.prototype.toString.call(m),b===S)){d=m.name===""?"() => {}":m.name+"() {}",a.push([Lx+"  ".repeat(n)+l,d+" Referentially unequal function closure. Consider memoization."]);continue}}so(l,d,a,n,Rd),so(l,m,a,n,Cd)}r=!1}}else a.push([Cd+"  ".repeat(n)+l,"…"]),r=!1;return r}function qn(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ro(e,t,a,n){Ct&&(Bs.start=t,Bs.end=a,Wo.color="warning",Wo.tooltipText=n,Wo.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Bs)):performance.measure(n,Bs))}function fu(e,t,a){ro(e,t,a,"Reconnect")}function mu(e,t,a,n,r){var l=Q(e);if(l!==null&&Ct){var d=e.alternate,m=e.actualDuration;if(d===null||d.child!==e.child)for(var b=e.child;b!==null;b=b.sibling)m-=b.actualDuration;n=.5>m?n?"tertiary-light":"primary-light":10>m?n?"tertiary":"primary":100>m?n?"tertiary-dark":"primary-dark":"error";var S=e.memoizedProps;m=e._debugTask,S!==null&&d!==null&&d.memoizedProps!==S?(b=[QD],S=Cb(d.memoizedProps,S,b,0),1<b.length&&(S&&!Hs&&(d.lanes&r)===0&&100<e.actualDuration?(Hs=!0,b[0]=FD,Wo.color="warning",Wo.tooltipText=Vx):(Wo.color=n,Wo.tooltipText=l),Wo.properties=b,Bs.start=t,Bs.end=a,m!=null?m.run(performance.measure.bind(performance,"​"+l,Bs)):performance.measure("​"+l,Bs))):m!=null?m.run(console.timeStamp.bind(console,l,t,a,Sn,void 0,n)):console.timeStamp(l,t,a,Sn,void 0,n)}}function Ff(e,t,a,n){if(Ct){var r=Q(e);if(r!==null){for(var l=null,d=[],m=0;m<n.length;m++){var b=n[m];l==null&&b.source!==null&&(l=b.source._debugTask),b=b.value,d.push(["Error",typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b)])}e.key!==null&&so("key",e.key,d,0,""),e.memoizedProps!==null&&Qf(e.memoizedProps,d,0,""),l==null&&(l=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Sn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},l?l.run(performance.measure.bind(performance,"​"+r,e)):performance.measure("​"+r,e)}}}function lo(e,t,a,n,r){if(r!==null){if(Ct){var l=Q(e);if(l!==null){n=[];for(var d=0;d<r.length;d++){var m=r[d].value;n.push(["Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)])}e.key!==null&&so("key",e.key,n,0,""),e.memoizedProps!==null&&Qf(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Sn,tooltipText:"A lifecycle or effect errored",properties:n}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+l,t)):performance.measure("​"+l,t)}}}else l=Q(e),l!==null&&Ct&&(r=1>n?"secondary-light":100>n?"secondary":500>n?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,l,t,a,Sn,void 0,r)):console.timeStamp(l,t,a,Sn,void 0,r))}function fw(e,t,a,n){if(Ct&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",n?n.run(console.timeStamp.bind(console,a,e,t,it,st,r)):console.timeStamp(a,e,t,it,st,r)}}function Tb(e,t,a,n){!Ct||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Prewarm",e,t,it,st,a)):console.timeStamp("Prewarm",e,t,it,st,a))}function _b(e,t,a,n){!Ct||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Suspended",e,t,it,st,a)):console.timeStamp("Suspended",e,t,it,st,a))}function mw(e,t,a,n,r,l){if(Ct&&!(t<=e)){a=[];for(var d=0;d<n.length;d++){var m=n[d].value;a.push(["Recoverable Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:it,trackGroup:st,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},l?l.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function If(e,t,a,n){!Ct||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,it,st,"error")):console.timeStamp("Errored",e,t,it,st,"error"))}function hw(e,t,a,n){!Ct||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,it,st,"secondary-light")):console.timeStamp(a,e,t,it,st,"secondary-light"))}function Ob(e,t,a,n,r){if(Ct&&!(t<=e)){for(var l=[],d=0;d<a.length;d++){var m=a[d].value;l.push(["Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)])}e={start:e,end:t,detail:{devtools:{color:"error",track:it,trackGroup:st,tooltipText:n?"Remaining Effects Errored":"Commit Errored",properties:l}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Zf(e,t,a){!Ct||t<=e||console.timeStamp("Animating",e,t,it,st,"secondary-dark")}function hu(){for(var e=_l,t=Sp=_l=0;t<e;){var a=Nn[t];Nn[t++]=null;var n=Nn[t];Nn[t++]=null;var r=Nn[t];Nn[t++]=null;var l=Nn[t];if(Nn[t++]=null,n!==null&&r!==null){var d=n.pending;d===null?r.next=r:(r.next=d.next,d.next=r),n.pending=r}l!==0&&Ub(a,r,l)}}function pu(e,t,a,n){Nn[_l++]=e,Nn[_l++]=t,Nn[_l++]=a,Nn[_l++]=n,Sp|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Jf(e,t,a,n){return pu(e,t,a,n),gu(e)}function xa(e,t){return pu(e,null,null,t),gu(e)}function Ub(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,l=e.return;l!==null;)l.childLanes|=a,n=l.alternate,n!==null&&(n.childLanes|=a),l.tag===22&&(e=l.stateNode,e===null||e._visibility&Wi||(r=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,r&&t!==null&&(r=31-_a(a),e=l.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),l):null}function gu(e){if(Rc>cR)throw $r=Rc=0,Cc=eg=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");$r>uR&&($r=0,Cc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Fv(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Fv(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function fr(e){if(En===null)return e;var t=En(e);return t===void 0?e:t.current}function Pf(e){if(En===null)return e;var t=En(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=fr(e.render),e.render!==t)?(t={$$typeof:$i,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Ab(e,t){if(En===null)return!1;var a=e.elementType;t=t.type;var n=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(n=!0);break;case 0:(typeof t=="function"||r===nn)&&(n=!0);break;case 11:(r===$i||r===nn)&&(n=!0);break;case 14:case 15:(r===md||r===nn)&&(n=!0);break;default:return!1}return!!(n&&(e=En(a),e!==void 0&&e===En(t)))}function kb(e){En!==null&&typeof WeakSet=="function"&&(Ol===null&&(Ol=new WeakSet),Ol.add(e))}function jb(e,t,a){do{var n=e,r=n.alternate,l=n.child,d=n.sibling,m=n.tag;n=n.type;var b=null;switch(m){case 0:case 15:case 1:b=n;break;case 11:b=n.render}if(En===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(n=!1,b!==null&&(b=En(b),b!==void 0&&(a.has(b)?n=!0:t.has(b)&&(m===1?n=!0:S=!0))),Ol!==null&&(Ol.has(e)||r!==null&&Ol.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||S)&&(r=xa(e,2),r!==null&&Mt(r,e,2)),l===null||n||jb(l,t,a),d===null)break;e=d}while(!0)}function pw(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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hx||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Kf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Go(e,t){var a=e.alternate;switch(a===null?(a=E(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=fr(e.type);break;case 1:a.type=fr(e.type);break;case 11:a.type=Pf(e.type)}return a}function Mb(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Wf(e,t,a,n,r,l){var d=0,m=e;if(typeof e=="function")Kf(e)&&(d=1),m=fr(m);else if(typeof e=="string")d=de(),d=w4(e,a,d)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Qh:return t=E(31,a,t,r),t.elementType=Qh,t.lanes=l,t;case yl:return mr(a.children,r,l,t);case fd:d=8,r|=Na,r|=Fn;break;case Yh:return e=a,n=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=E(12,e,t,n|Xe),t.elementType=Yh,t.lanes=l,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Gh:return t=E(13,a,t,r),t.elementType=Gh,t.lanes=l,t;case Xh:return t=E(19,a,t,r),t.elementType=Xh,t.lanes=l,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Eo:d=10;break e;case qh:d=9;break e;case $i:d=11,m=Pf(m);break e;case md:d=14;break e;case nn:d=16,m=null;break e}m="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":aa(e)?a="array":e!==void 0&&e.$$typeof===No?(a="<"+(j(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=n?W(n):null)&&(m+=`
77
+
78
+ Check the render method of \``+d+"`."),d=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+m)),m=null}return t=E(d,a,t,r),t.elementType=e,t.type=m,t.lanes=l,t._debugOwner=n,t}function bu(e,t,a){return t=Wf(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function mr(e,t,a,n){return e=E(7,e,n,t),e.lanes=a,e}function em(e,t,a){return e=E(6,e,null,t),e.lanes=a,e}function zb(e){var t=E(18,null,null,Le);return t.stateNode=e,t}function tm(e,t,a){return t=E(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pa(e,t){if(typeof e=="object"&&e!==null){var a=Np.get(e);return a!==void 0?a:(t={value:e,source:t,stack:lt(t)},Np.set(e,t),t)}return{value:e,source:t,stack:lt(t)}}function Xo(e,t){Ns(),Ul[Al++]=ec,Ul[Al++]=Td,Td=e,ec=t}function Lb(e,t,a){Ns(),wn[Dn++]=ts,wn[Dn++]=as,wn[Dn++]=Rr,Rr=e;var n=ts;e=as;var r=32-_a(n)-1;n&=~(1<<r),a+=1;var l=32-_a(t)+r;if(30<l){var d=r-r%5;l=(n&(1<<d)-1).toString(32),n>>=d,r-=d,ts=1<<32-_a(t)+r|a<<r|n,as=l+e}else ts=1<<l|a<<r|n,as=e}function am(e){Ns(),e.return!==null&&(Xo(e,1),Lb(e,1,0))}function nm(e){for(;e===Td;)Td=Ul[--Al],Ul[Al]=null,ec=Ul[--Al],Ul[Al]=null;for(;e===Rr;)Rr=wn[--Dn],wn[Dn]=null,as=wn[--Dn],wn[Dn]=null,ts=wn[--Dn],wn[Dn]=null}function Vb(){return Ns(),Rr!==null?{id:ts,overflow:as}:null}function Hb(e,t){Ns(),wn[Dn++]=ts,wn[Dn++]=as,wn[Dn++]=Rr,ts=t.id,as=t.overflow,Rr=e}function Ns(){at||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function hr(e,t){if(e.return===null){if(sn===null)sn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(sn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");sn.distanceFromLeaf>t&&(sn.distanceFromLeaf=t)}return sn}var a=hr(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function Bb(){at&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function yu(e,t){_o||(e=hr(e,0),e.serverProps=null,t!==null&&(t=y0(t),e.serverTail.push(t)))}function Es(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=sn;throw n!==null&&(sn=null,a=Ss(n)),hi(Pa(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+a),e)),Ep}function $b(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ga]=e,t[Oa]=n,Eh(a,n),a){case"dialog":ot("cancel",t),ot("close",t);break;case"iframe":case"object":case"embed":ot("load",t);break;case"video":case"audio":for(a=0;a<Tc.length;a++)ot(Tc[a],t);break;case"source":ot("error",t);break;case"img":case"image":case"link":ot("error",t),ot("load",t);break;case"details":ot("toggle",t);break;case"input":sa("input",n),ot("invalid",t),Ue(t,n),Me(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":_e(t,n);break;case"select":sa("select",n),ot("invalid",t),Dt(t,n);break;case"textarea":sa("textarea",n),ot("invalid",t),Bt(t,n),mt(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||o0(t.textContent,a)?(n.popover!=null&&(ot("beforetoggle",t),ot("toggle",t)),n.onScroll!=null&&ot("scroll",t),n.onScrollEnd!=null&&ot("scrollend",t),n.onClick!=null&&(t.onclick=qo),t=!0):t=!1,t||Es(e,!0)}function Yb(e){for(ba=e.return;ba;)switch(ba.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:ba=ba.return}}function al(e){if(e!==ba)return!1;if(!at)return Yb(e),at=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Th(e.type,e.memoizedProps)),a=!a),a&&Tt){for(a=Tt;a;){var n=hr(e,0),r=y0(a);n.serverTail.push(r),a=r.type==="Suspense"?Ah(a):an(a.nextSibling)}Es(e)}if(Yb(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Tt=Ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Tt=Ah(e)}else t===27?(t=Tt,ks(e.type)?(e=fg,fg=null,Tt=e):Tt=t):Tt=ba?an(e.stateNode.nextSibling):null;return!0}function pr(){Tt=ba=null,_o=at=!1}function om(){var e=Ys;return e!==null&&(za===null?za=e:za.push.apply(za,e),Ys=null),e}function hi(e){Ys===null?Ys=[e]:Ys.push(e)}function sm(){var e=sn;if(e!==null){sn=null;for(var t=Ss(e);0<e.children.length;)e=e.children[0];P(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function vu(){kl=_d=null,jl=!1}function ws(e,t,a){ue(wp,t._currentValue,e),t._currentValue=a,ue(Dp,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==$x&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=$x}function Qo(e,t){e._currentValue=wp.current;var a=Dp.current;$(Dp,t),e._currentRenderer=a,$(wp,t)}function rm(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}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function lm(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var l=r.dependencies;if(l!==null){var d=r.child;l=l.firstContext;e:for(;l!==null;){var m=l;l=r;for(var b=0;b<t.length;b++)if(m.context===t[b]){l.lanes|=a,m=l.alternate,m!==null&&(m.lanes|=a),rm(l.return,a,e),n||(d=null);break e}l=m.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");d.lanes|=a,l=d.alternate,l!==null&&(l.lanes|=a),rm(d,a,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function nl(e,t,a,n){e=null;for(var r=t,l=!1;r!==null;){if(!l){if((r.flags&524288)!==0)l=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var m=r.type;Aa(r.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(r===hd.current){if(d=r.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(kc):e=[kc])}r=r.return}e!==null&&lm(t,e,a,n),t.flags|=262144}function xu(e){for(e=e.firstContext;e!==null;){if(!Aa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gr(e){_d=e,kl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return jl&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),qb(_d,e)}function Su(e,t){return _d===null&&gr(e),qb(e,t)}function qb(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},kl===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");kl=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else kl=kl.next=t;return a}function im(){return{controller:new JD,data:new Map,refCount:0}}function br(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function pi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&PD(KD,function(){e.controller.abort()})}function io(e,t,a){(e&127)!==0?0>Oo&&(Oo=It(),ac=Od(t),Rp=t,a!=null&&(Cp=Q(a)),(ut&(oa|cn))!==fa&&(zt=!0,Gs=tc),e=zi(),t=Mi(),e!==Ml||t!==nc?Ml=-1.1:t!==null&&(Gs=tc),_r=e,nc=t):(e&4194048)!==0&&0>Cn&&(Cn=It(),oc=Od(t),Yx=t,a!=null&&(qx=Q(a)),0>rs)&&(e=zi(),t=Mi(),(e!==Qs||t!==Or)&&(Qs=-1.1),Xs=e,Or=t)}function gw(e){if(0>Oo){Oo=It(),ac=e._debugTask!=null?e._debugTask:null,(ut&(oa|cn))!==fa&&(Gs=tc);var t=zi(),a=Mi();t!==Ml||a!==nc?Ml=-1.1:a!==null&&(Gs=tc),_r=t,nc=a}0>Cn&&(Cn=It(),oc=e._debugTask!=null?e._debugTask:null,0>rs)&&(e=zi(),t=Mi(),(e!==Qs||t!==Or)&&(Qs=-1.1),Xs=e,Or=t)}function Fo(){var e=Cr;return Cr=0,e}function Nu(e){var t=Cr;return Cr=e,t}function gi(e){var t=Cr;return Cr+=e,t}function Eu(){ze=ke=-1.1}function Ka(){var e=ke;return ke=-1.1,e}function Wa(e){0<=e&&(ke=e)}function co(){var e=kt;return kt=-0,e}function uo(e){0<=e&&(kt=e)}function fo(){var e=Ut;return Ut=null,e}function mo(){var e=zt;return zt=!1,e}function cm(e){ka=It(),0>e.actualStartTime&&(e.actualStartTime=ka)}function um(e){if(0<=ka){var t=It()-ka;e.actualDuration+=t,e.selfBaseDuration=t,ka=-1}}function Gb(e){if(0<=ka){var t=It()-ka;e.actualDuration+=t,ka=-1}}function ho(){if(0<=ka){var e=It(),t=e-ka;ka=-1,Cr+=t,kt+=t,ze=e}}function Xb(e){Ut===null&&(Ut=[]),Ut.push(e),os===null&&(os=[]),os.push(e)}function po(){ka=It(),0>ke&&(ke=ka)}function bi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function bw(e,t){if(rc===null){var a=rc=[];_p=0,Ur=vh(),zl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return _p++,t.then(Qb,Qb),t}function Qb(){if(--_p===0&&(-1<Cn||(rs=-1.1),rc!==null)){zl!==null&&(zl.status="fulfilled");var e=rc;rc=null,Ur=0,zl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yw(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}function dm(){var e=Ar.current;return e!==null?e:St.pooledCache}function wu(e,t){t===null?ue(Ar,Ar.current,e):ue(Ar,t.pool,e)}function Fb(){var e=dm();return e===null?null:{parent:Ft._currentValue,pool:e}}function Ib(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Zb(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jb(e,t,a){X.actQueue!==null&&(X.didUsePromise=!0);var n=e.thenables;if(a=n[a],a===void 0?n.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(qo,qo),t=a),t._debugInfo===void 0){e=performance.now(),n=t.displayName;var r={name:typeof n=="string"?n:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kb(e),e;default:if(typeof t.status=="string")t.then(qo,qo);else{if(e=St,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=l}},function(l){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kb(e),e}throw jr=t,mc=!0,Ll}}function Ds(e){try{return nR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(jr=t,mc=!0,Ll):t}}function Pb(){if(jr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=jr;return jr=null,mc=!1,e}function Kb(e){if(e===Ll||e===Vd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ma(e){var t=Qe;return e!=null&&(Qe=t===null?e:t.concat(e)),t}function fm(){var e=Qe;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function Du(e,t,a){for(var n=Object.keys(e.props),r=0;r<n.length;r++){var l=n[r];if(l!=="children"&&l!=="key"){t===null&&(t=bu(e,a.mode,0),t._debugInfo=Qe,t.return=a),P(t,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d)},l);break}}}function Ru(e){var t=hc;return hc+=1,Vl===null&&(Vl=Ib()),Jb(Vl,e,t)}function yi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wb(e,t){throw t.$$typeof===M4?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Cu(e,t){var a=fm();a!==null?a.run(Wb.bind(null,e,t)):Wb(e,t)}function ey(e,t){var a=Q(e)||"Component";c1[a]||(c1[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,a,t,a))}function Tu(e,t){var a=fm();a!==null?a.run(ey.bind(null,e,t)):ey(e,t)}function ty(e,t){var a=Q(e)||"Component";u1[a]||(u1[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,a,t,a))}function _u(e,t){var a=fm();a!==null?a.run(ty.bind(null,e,t)):ty(e,t)}function ay(e){function t(C,O){if(e){var U=C.deletions;U===null?(C.deletions=[O],C.flags|=16):U.push(O)}}function a(C,O){if(!e)return null;for(;O!==null;)t(C,O),O=O.sibling;return null}function n(C){for(var O=new Map;C!==null;)C.key!==null?O.set(C.key,C):O.set(C.index,C),C=C.sibling;return O}function r(C,O){return C=Go(C,O),C.index=0,C.sibling=null,C}function l(C,O,U){return C.index=U,e?(U=C.alternate,U!==null?(U=U.index,U<O?(C.flags|=67108866,O):U):(C.flags|=67108866,O)):(C.flags|=1048576,O)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function m(C,O,U,F){return O===null||O.tag!==6?(O=em(U,C.mode,F),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=Qe,O):(O=r(O,U),O.return=C,O._debugInfo=Qe,O)}function b(C,O,U,F){var pe=U.type;return pe===yl?(O=k(C,O,U.props.children,F,U.key),Du(U,O,C),O):O!==null&&(O.elementType===pe||Ab(O,U)||typeof pe=="object"&&pe!==null&&pe.$$typeof===nn&&Ds(pe)===O.type)?(O=r(O,U.props),yi(O,U),O.return=C,O._debugOwner=U._owner,O._debugInfo=Qe,O):(O=bu(U,C.mode,F),yi(O,U),O.return=C,O._debugInfo=Qe,O)}function S(C,O,U,F){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=tm(U,C.mode,F),O.return=C,O._debugInfo=Qe,O):(O=r(O,U.children||[]),O.return=C,O._debugInfo=Qe,O)}function k(C,O,U,F,pe){return O===null||O.tag!==7?(O=mr(U,C.mode,F,pe),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=Qe,O):(O=r(O,U),O.return=C,O._debugInfo=Qe,O)}function M(C,O,U){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=em(""+O,C.mode,U),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=Qe,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case No:return U=bu(O,C.mode,U),yi(U,O),U.return=C,C=ma(O._debugInfo),U._debugInfo=Qe,Qe=C,U;case bl:return O=tm(O,C.mode,U),O.return=C,O._debugInfo=Qe,O;case nn:var F=ma(O._debugInfo);return O=Ds(O),C=M(C,O,U),Qe=F,C}if(aa(O)||re(O))return U=mr(O,C.mode,U,null),U.return=C,U._debugOwner=C,U._debugTask=C._debugTask,C=ma(O._debugInfo),U._debugInfo=Qe,Qe=C,U;if(typeof O.then=="function")return F=ma(O._debugInfo),C=M(C,Ru(O),U),Qe=F,C;if(O.$$typeof===Eo)return M(C,Su(C,O),U);Cu(C,O)}return typeof O=="function"&&Tu(C,O),typeof O=="symbol"&&_u(C,O),null}function _(C,O,U,F){var pe=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return pe!==null?null:m(C,O,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case No:return U.key===pe?(pe=ma(U._debugInfo),C=b(C,O,U,F),Qe=pe,C):null;case bl:return U.key===pe?S(C,O,U,F):null;case nn:return pe=ma(U._debugInfo),U=Ds(U),C=_(C,O,U,F),Qe=pe,C}if(aa(U)||re(U))return pe!==null?null:(pe=ma(U._debugInfo),C=k(C,O,U,F,null),Qe=pe,C);if(typeof U.then=="function")return pe=ma(U._debugInfo),C=_(C,O,Ru(U),F),Qe=pe,C;if(U.$$typeof===Eo)return _(C,O,Su(C,U),F);Cu(C,U)}return typeof U=="function"&&Tu(C,U),typeof U=="symbol"&&_u(C,U),null}function B(C,O,U,F,pe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return C=C.get(U)||null,m(O,C,""+F,pe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case No:return U=C.get(F.key===null?U:F.key)||null,C=ma(F._debugInfo),O=b(O,U,F,pe),Qe=C,O;case bl:return C=C.get(F.key===null?U:F.key)||null,S(O,C,F,pe);case nn:var Be=ma(F._debugInfo);return F=Ds(F),O=B(C,O,U,F,pe),Qe=Be,O}if(aa(F)||re(F))return U=C.get(U)||null,C=ma(F._debugInfo),O=k(O,U,F,pe,null),Qe=C,O;if(typeof F.then=="function")return Be=ma(F._debugInfo),O=B(C,O,U,Ru(F),pe),Qe=Be,O;if(F.$$typeof===Eo)return B(C,O,U,Su(O,F),pe);Cu(O,F)}return typeof F=="function"&&Tu(O,F),typeof F=="symbol"&&_u(O,F),null}function me(C,O,U,F){if(typeof U!="object"||U===null)return F;switch(U.$$typeof){case No:case bl:w(C,O,U);var pe=U.key;if(typeof pe!="string")break;if(F===null){F=new Set,F.add(pe);break}if(!F.has(pe)){F.add(pe);break}P(O,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",pe)});break;case nn:U=Ds(U),me(C,O,U,F)}return F}function ye(C,O,U,F){for(var pe=null,Be=null,Ae=null,De=O,Ge=O=0,_t=null;De!==null&&Ge<U.length;Ge++){De.index>Ge?(_t=De,De=null):_t=De.sibling;var qt=_(C,De,U[Ge],F);if(qt===null){De===null&&(De=_t);break}pe=me(C,qt,U[Ge],pe),e&&De&&qt.alternate===null&&t(C,De),O=l(qt,O,Ge),Ae===null?Be=qt:Ae.sibling=qt,Ae=qt,De=_t}if(Ge===U.length)return a(C,De),at&&Xo(C,Ge),Be;if(De===null){for(;Ge<U.length;Ge++)De=M(C,U[Ge],F),De!==null&&(pe=me(C,De,U[Ge],pe),O=l(De,O,Ge),Ae===null?Be=De:Ae.sibling=De,Ae=De);return at&&Xo(C,Ge),Be}for(De=n(De);Ge<U.length;Ge++)_t=B(De,C,Ge,U[Ge],F),_t!==null&&(pe=me(C,_t,U[Ge],pe),e&&_t.alternate!==null&&De.delete(_t.key===null?Ge:_t.key),O=l(_t,O,Ge),Ae===null?Be=_t:Ae.sibling=_t,Ae=_t);return e&&De.forEach(function(hs){return t(C,hs)}),at&&Xo(C,Ge),Be}function Et(C,O,U,F){if(U==null)throw Error("An iterable object provided no iterator.");for(var pe=null,Be=null,Ae=O,De=O=0,Ge=null,_t=null,qt=U.next();Ae!==null&&!qt.done;De++,qt=U.next()){Ae.index>De?(Ge=Ae,Ae=null):Ge=Ae.sibling;var hs=_(C,Ae,qt.value,F);if(hs===null){Ae===null&&(Ae=Ge);break}_t=me(C,hs,qt.value,_t),e&&Ae&&hs.alternate===null&&t(C,Ae),O=l(hs,O,De),Be===null?pe=hs:Be.sibling=hs,Be=hs,Ae=Ge}if(qt.done)return a(C,Ae),at&&Xo(C,De),pe;if(Ae===null){for(;!qt.done;De++,qt=U.next())Ae=M(C,qt.value,F),Ae!==null&&(_t=me(C,Ae,qt.value,_t),O=l(Ae,O,De),Be===null?pe=Ae:Be.sibling=Ae,Be=Ae);return at&&Xo(C,De),pe}for(Ae=n(Ae);!qt.done;De++,qt=U.next())Ge=B(Ae,C,De,qt.value,F),Ge!==null&&(_t=me(C,Ge,qt.value,_t),e&&Ge.alternate!==null&&Ae.delete(Ge.key===null?De:Ge.key),O=l(Ge,O,De),Be===null?pe=Ge:Be.sibling=Ge,Be=Ge);return e&&Ae.forEach(function(CR){return t(C,CR)}),at&&Xo(C,De),pe}function rt(C,O,U,F){if(typeof U=="object"&&U!==null&&U.type===yl&&U.key===null&&(Du(U,null,C),U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case No:var pe=ma(U._debugInfo);e:{for(var Be=U.key;O!==null;){if(O.key===Be){if(Be=U.type,Be===yl){if(O.tag===7){a(C,O.sibling),F=r(O,U.props.children),F.return=C,F._debugOwner=U._owner,F._debugInfo=Qe,Du(U,F,C),C=F;break e}}else if(O.elementType===Be||Ab(O,U)||typeof Be=="object"&&Be!==null&&Be.$$typeof===nn&&Ds(Be)===O.type){a(C,O.sibling),F=r(O,U.props),yi(F,U),F.return=C,F._debugOwner=U._owner,F._debugInfo=Qe,C=F;break e}a(C,O);break}else t(C,O);O=O.sibling}U.type===yl?(F=mr(U.props.children,C.mode,F,U.key),F.return=C,F._debugOwner=C,F._debugTask=C._debugTask,F._debugInfo=Qe,Du(U,F,C),C=F):(F=bu(U,C.mode,F),yi(F,U),F.return=C,F._debugInfo=Qe,C=F)}return C=d(C),Qe=pe,C;case bl:e:{for(pe=U,U=pe.key;O!==null;){if(O.key===U)if(O.tag===4&&O.stateNode.containerInfo===pe.containerInfo&&O.stateNode.implementation===pe.implementation){a(C,O.sibling),F=r(O,pe.children||[]),F.return=C,C=F;break e}else{a(C,O);break}else t(C,O);O=O.sibling}F=tm(pe,C.mode,F),F.return=C,C=F}return d(C);case nn:return pe=ma(U._debugInfo),U=Ds(U),C=rt(C,O,U,F),Qe=pe,C}if(aa(U))return pe=ma(U._debugInfo),C=ye(C,O,U,F),Qe=pe,C;if(re(U)){if(pe=ma(U._debugInfo),Be=re(U),typeof Be!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ae=Be.call(U);return Ae===U?(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ae)!=="[object Generator]")&&(l1||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),l1=!0):U.entries!==Be||kp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kp=!0),C=Et(C,O,Ae,F),Qe=pe,C}if(typeof U.then=="function")return pe=ma(U._debugInfo),C=rt(C,O,Ru(U),F),Qe=pe,C;if(U.$$typeof===Eo)return rt(C,O,Su(C,U),F);Cu(C,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(pe=""+U,O!==null&&O.tag===6?(a(C,O.sibling),F=r(O,pe),F.return=C,C=F):(a(C,O),F=em(pe,C.mode,F),F.return=C,F._debugOwner=C,F._debugTask=C._debugTask,F._debugInfo=Qe,C=F),d(C)):(typeof U=="function"&&Tu(C,U),typeof U=="symbol"&&_u(C,U),a(C,O))}return function(C,O,U,F){var pe=Qe;Qe=null;try{hc=0;var Be=rt(C,O,U,F);return Vl=null,Be}catch(_t){if(_t===Ll||_t===Vd)throw _t;var Ae=E(29,_t,null,C.mode);Ae.lanes=F,Ae.return=C;var De=Ae._debugInfo=Qe;if(Ae._debugOwner=C._debugOwner,Ae._debugTask=C._debugTask,De!=null){for(var Ge=De.length-1;0<=Ge;Ge--)if(typeof De[Ge].stack=="string"){Ae._debugOwner=De[Ge],Ae._debugTask=De[Ge].debugTask;break}}return Ae}finally{Qe=pe}}}function ny(e,t){var a=aa(e);return e=!a&&typeof re(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function mm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hm(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 Rs(e){return{lane:e,tag:f1,payload:null,callback:null,next:null}}function Cs(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Mp===n&&!p1){var r=Q(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,r),p1=!0}return(ut&oa)!==fa?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=gu(e),Ub(e,null,a),t):(pu(e,n,t,a),gu(e))}function vi(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,vs(e,a)}}function Ou(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,l=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};l===null?r=l=d:l=l.next=d,a=a.next}while(a!==null);l===null?r=l=t:l=l.next=t}else r=l=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:l,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function xi(){if(zp){var e=zl;if(e!==null)throw e}}function Si(e,t,a,n){zp=!1;var r=e.updateQueue;Fs=!1,Mp=r.shared;var l=r.firstBaseUpdate,d=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var b=m,S=b.next;b.next=null,d===null?l=S:d.next=S,d=b;var k=e.alternate;k!==null&&(k=k.updateQueue,m=k.lastBaseUpdate,m!==d&&(m===null?k.firstBaseUpdate=S:m.next=S,k.lastBaseUpdate=b))}if(l!==null){var M=r.baseState;d=0,k=S=b=null,m=l;do{var _=m.lane&-536870913,B=_!==m.lane;if(B?(Fe&_)===_:(n&_)===_){_!==0&&_===Ur&&(zp=!0),k!==null&&(k=k.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{_=e;var me=m,ye=t,Et=a;switch(me.tag){case m1:if(me=me.payload,typeof me=="function"){jl=!0;var rt=me.call(Et,M,ye);if(_.mode&Na){Ne(!0);try{me.call(Et,M,ye)}finally{Ne(!1)}}jl=!1,M=rt;break e}M=me;break e;case jp:_.flags=_.flags&-65537|128;case f1:if(rt=me.payload,typeof rt=="function"){if(jl=!0,me=rt.call(Et,M,ye),_.mode&Na){Ne(!0);try{rt.call(Et,M,ye)}finally{Ne(!1)}}jl=!1}else me=rt;if(me==null)break e;M=Ke({},M,me);break e;case h1:Fs=!0}}_=m.callback,_!==null&&(e.flags|=64,B&&(e.flags|=8192),B=r.callbacks,B===null?r.callbacks=[_]:B.push(_))}else B={lane:_,tag:m.tag,payload:m.payload,callback:m.callback,next:null},k===null?(S=k=B,b=M):k=k.next=B,d|=_;if(m=m.next,m===null){if(m=r.shared.pending,m===null)break;B=m,m=B.next,B.next=null,r.lastBaseUpdate=B,r.shared.pending=null}}while(!0);k===null&&(b=M),r.baseState=b,r.firstBaseUpdate=S,r.lastBaseUpdate=k,l===null&&(r.shared.lanes=0),Js|=d,e.lanes=d,e.memoizedState=M}Mp=null}function oy(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function vw(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)oy(a[e],t)}function sy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)oy(a[e],t)}function ry(e,t){var a=Ao;ue(Bd,a,e),ue(Hl,t,e),Ao=a|t.baseLanes}function pm(e){ue(Bd,Ao,e),ue(Hl,Hl.current,e)}function gm(e){Ao=Bd.current,$(Hl,e),$(Bd,e)}function Ts(e){var t=e.alternate;ue(Yt,Yt.current&Bl,e),ue(rn,e,e),Tn===null&&(t===null||Hl.current!==null||t.memoizedState!==null)&&(Tn=e)}function bm(e){ue(Yt,Yt.current,e),ue(rn,e,e),Tn===null&&(Tn=e)}function ly(e){e.tag===22?(ue(Yt,Yt.current,e),ue(rn,e,e),Tn===null&&(Tn=e)):_s(e)}function _s(e){ue(Yt,Yt.current,e),ue(rn,rn.current,e)}function en(e){$(rn,e),Tn===e&&(Tn=null),$(Yt,e)}function Uu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Oh(a)||Uh(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}function Pe(){var e=Y;On===null?On=[e]:On.push(e)}function te(){var e=Y;if(On!==null&&(cs++,On[cs]!==e)){var t=Q(He);if(!g1.has(t)&&(g1.add(t),On!==null)){for(var a="",n=0;n<=cs;n++){var r=On[n],l=n===cs?e:r;for(r=n+1+". "+r;30>r.length;)r+=" ";r+=l+`
108
+ `,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,a)}}}function ol(e){e==null||aa(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Y,typeof e)}function Au(){var e=Q(He);y1.has(e)||(y1.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Lt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ym(e,t){if(bc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Y),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,Y,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Aa(e[a],t[a]))return!1;return!0}function vm(e,t,a,n,r,l){ls=l,He=t,On=e!==null?e._debugHookTypes:null,cs=-1,bc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(l=Q(He),Lp.has(l)||(Lp.add(l),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",l===null?"An unknown Component":"<"+l+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,X.H=e!==null&&e.memoizedState!==null?Hp:On!==null?v1:Vp,zr=l=(t.mode&Na)!==Le;var d=Op(a,n,r);if(zr=!1,Yl&&(d=xm(t,a,n,r)),l){Ne(!0);try{d=xm(t,a,n,r)}finally{Ne(!1)}}return iy(e,t),d}function iy(e,t){t._debugHookTypes=On,t.dependencies===null?is!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:is}):t.dependencies._debugThenableState=is,X.H=yc;var a=xt!==null&&xt.next!==null;if(ls=0,On=Y=Zt=xt=He=null,cs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Yd=!1,gc=0,is=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Jt||(e=e.dependencies,e!==null&&xu(e)&&(Jt=!0)),mc?(mc=!1,e=!0):e=!1,e&&(t=Q(t)||"Unknown",b1.has(t)||Lp.has(t)||(b1.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function xm(e,t,a,n){He=e;var r=0;do{if(Yl&&(is=null),gc=0,Yl=!1,r>=sR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,bc=!1,Zt=xt=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}cs=-1,X.H=x1,l=Op(t,a,n)}while(Yl);return l}function xw(){var e=X.H,t=e.useState()[0];return t=typeof t.then=="function"?Ni(t):t,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&(He.flags|=1024),t}function Sm(){var e=qd!==0;return qd=0,e}function Nm(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Fn)!==Le?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Em(e){if(Yd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yd=!1}ls=0,On=Zt=xt=He=null,cs=-1,Y=null,Yl=!1,gc=qd=0,is=null}function Ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?He.memoizedState=Zt=e:Zt=Zt.next=e,Zt}function gt(){if(xt===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=Zt===null?He.memoizedState:Zt.next;if(t!==null)Zt=t,xt=e;else{if(e===null)throw He.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Zt===null?He.memoizedState=Zt=e:Zt=Zt.next=e}return Zt}function ku(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ni(e){var t=gc;return gc+=1,is===null&&(is=Ib()),e=Jb(is,e,t),t=He,(Zt===null?t.memoizedState:Zt.next)===null&&(t=t.alternate,X.H=t!==null&&t.memoizedState!==null?Hp:Vp),e}function Os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ni(e);if(e.$$typeof===Eo)return Ot(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function yr(e){var t=null,a=He.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=He.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ku(),He.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||bc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=z4;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Gn(e,t){return typeof t=="function"?t(e):t}function wm(e,t,a){var n=Ta();if(a!==void 0){var r=a(t);if(zr){Ne(!0);try{a(t)}finally{Ne(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=Dw.bind(null,He,e),[n.memoizedState,e]}function sl(e){var t=gt();return Dm(t,xt,e)}function Dm(e,t,a){var n=e.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=a;var r=e.baseQueue,l=n.pending;if(l!==null){if(r!==null){var d=r.next;r.next=l.next,l.next=d}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=l,n.pending=null}if(l=e.baseState,r===null)e.memoizedState=l;else{t=r.next;var m=d=null,b=null,S=t,k=!1;do{var M=S.lane&-536870913;if(M!==S.lane?(Fe&M)===M:(ls&M)===M){var _=S.revertLane;if(_===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),M===Ur&&(k=!0);else if((ls&_)===_){S=S.next,_===Ur&&(k=!0);continue}else M={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},b===null?(m=b=M,d=l):b=b.next=M,He.lanes|=_,Js|=_;M=S.action,zr&&a(l,M),l=S.hasEagerState?S.eagerState:a(l,M)}else _={lane:M,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},b===null?(m=b=_,d=l):b=b.next=_,He.lanes|=M,Js|=M;S=S.next}while(S!==null&&S!==t);if(b===null?d=l:b.next=m,!Aa(l,e.memoizedState)&&(Jt=!0,k&&(a=zl,a!==null)))throw a;e.memoizedState=l,e.baseState=d,e.baseQueue=b,n.lastRenderedState=l}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ei(e){var t=gt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,l=t.memoizedState;if(r!==null){a.pending=null;var d=r=r.next;do l=e(l,d.action),d=d.next;while(d!==r);Aa(l,t.memoizedState)||(Jt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),a.lastRenderedState=l}return[l,n]}function Rm(e,t,a){var n=He,r=Ta();if(at){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var l=a();$l||l===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),$l=!0)}else{if(l=t(),$l||(a=t(),Aa(l,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),$l=!0)),St===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Fe&127)!==0||cy(n,t,l)}return r.memoizedState=l,a={value:l,getSnapshot:t},r.queue=a,Lu(dy.bind(null,n,a,e),[e]),n.flags|=2048,ll(_n|Ma,{destroy:void 0},uy.bind(null,n,a,l,t),null),l}function ju(e,t,a){var n=He,r=gt(),l=at;if(l){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!$l){var d=t();Aa(a,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),$l=!0)}(d=!Aa((xt||r).memoizedState,a))&&(r.memoizedState=a,Jt=!0),r=r.queue;var m=dy.bind(null,n,r,e);if($a(2048,Ma,m,[e]),r.getSnapshot!==t||d||Zt!==null&&Zt.memoizedState.tag&_n){if(n.flags|=2048,ll(_n|Ma,{destroy:void 0},uy.bind(null,n,r,a,t),null),St===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");l||(ls&127)!==0||cy(n,t,a)}return a}function cy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=He.updateQueue,t===null?(t=ku(),He.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function uy(e,t,a,n){t.value=a,t.getSnapshot=n,fy(t)&&my(e)}function dy(e,t,a){return a(function(){fy(t)&&(io(2,"updateSyncExternalStore()",e),my(e))})}function fy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Aa(e,a)}catch{return!0}}function my(e){var t=xa(e,2);t!==null&&Mt(t,e,2)}function Cm(e){var t=Ta();if(typeof e=="function"){var a=e;if(e=a(),zr){Ne(!0);try{a()}finally{Ne(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function Tm(e){e=Cm(e);var t=e.queue,a=Ay.bind(null,He,t);return t.dispatch=a,[e.memoizedState,a]}function _m(e){var t=Ta();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qm.bind(null,He,!0,a),a.dispatch=t,[e,t]}function hy(e,t){var a=gt();return py(a,xt,e,t)}function py(e,t,a,n){return e.baseState=a,Dm(e,xt,typeof n=="function"?n:Gn)}function gy(e,t){var a=gt();return xt!==null?py(a,xt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function Sw(e,t,a,n,r){if(qu(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var l={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){l.listeners.push(d)}};X.T!==null?a(!0):l.isTransition=!1,n(l),a=t.pending,a===null?(l.next=t.pending=l,by(t,l)):(l.next=a.next,t.pending=a.next=l)}}function by(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var l=X.T,d={};d._updatedFibers=new Set,X.T=d;try{var m=a(r,n),b=X.S;b!==null&&b(d,m),yy(e,t,m)}catch(S){Om(e,t,S)}finally{l!==null&&d.types!==null&&(l.types!==null&&l.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),l.types=d.types),X.T=l,l===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{d=a(r,n),yy(e,t,d)}catch(S){Om(e,t,S)}}function yy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(X.asyncTransitions++,a.then(Yu,Yu),a.then(function(n){vy(e,t,n)},function(n){return Om(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):vy(e,t,a)}function vy(e,t,a){t.status="fulfilled",t.value=a,xy(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,by(e,a)))}function Om(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,xy(t),t=t.next;while(t!==n)}e.action=null}function xy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Sy(e,t){return t}function rl(e,t){if(at){var a=St.formState;if(a!==null){e:{var n=He;if(at){if(Tt){t:{for(var r=Tt,l=Rn;r.nodeType!==8;){if(!l){r=null;break t}if(r=an(r.nextSibling),r===null){r=null;break t}}l=r.data,r=l===ig||l===sS?r:null}if(r){Tt=an(r.nextSibling),n=r.data===ig;break e}}Es(n)}n=!1}n&&(t=a[0])}}return a=Ta(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sy,lastRenderedState:t},a.queue=n,a=Ay.bind(null,He,n),n.dispatch=a,n=Cm(!1),l=qm.bind(null,He,!1,n.queue),n=Ta(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=Sw.bind(null,He,r,l,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Mu(e){var t=gt();return Ny(t,xt,e)}function Ny(e,t,a){if(t=Dm(e,t,Sy)[0],e=sl(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ni(t)}catch(d){throw d===Ll?Vd:d}else n=t;t=gt();var r=t.queue,l=r.dispatch;return a!==t.memoizedState&&(He.flags|=2048,ll(_n|Ma,{destroy:void 0},Nw.bind(null,r,a),null)),[n,l,e]}function Nw(e,t){e.action=t}function zu(e){var t=gt(),a=xt;if(a!==null)return Ny(t,a,e);gt(),t=t.memoizedState,a=gt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function ll(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=He.updateQueue,t===null&&(t=ku(),He.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 Um(e){var t=Ta();return e={current:e},t.memoizedState=e}function vr(e,t,a,n){var r=Ta();He.flags|=e,r.memoizedState=ll(_n|t,{destroy:void 0},a,n===void 0?null:n)}function $a(e,t,a,n){var r=gt();n=n===void 0?null:n;var l=r.memoizedState.inst;xt!==null&&n!==null&&ym(n,xt.memoizedState.deps)?r.memoizedState=ll(t,l,a,n):(He.flags|=e,r.memoizedState=ll(_n|t,l,a,n))}function Lu(e,t){(He.mode&Fn)!==Le?vr(276826112,Ma,e,t):vr(8390656,Ma,e,t)}function Ew(e){He.flags|=4;var t=He.updateQueue;if(t===null)t=ku(),He.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Am(e){var t=Ta(),a={impl:e};return t.memoizedState=a,function(){if((ut&oa)!==fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Vu(e){var t=gt().memoizedState;return Ew({ref:t,nextImpl:e}),function(){if((ut&oa)!==fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function km(e,t){var a=4194308;return(He.mode&Fn)!==Le&&(a|=134217728),vr(a,ln,e,t)}function Ey(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function jm(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var n=4194308;(He.mode&Fn)!==Le&&(n|=134217728),vr(n,ln,Ey.bind(null,t,e),a)}function Hu(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,$a(4,ln,Ey.bind(null,t,e),a)}function Mm(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e}function Bu(e,t){var a=gt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&ym(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function zm(e,t){var a=Ta();t=t===void 0?null:t;var n=e();if(zr){Ne(!0);try{e()}finally{Ne(!1)}}return a.memoizedState=[n,t],n}function $u(e,t){var a=gt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&ym(t,n[1]))return n[0];if(n=e(),zr){Ne(!0);try{e()}finally{Ne(!1)}}return a.memoizedState=[n,t],n}function Lm(e,t){var a=Ta();return Vm(a,e,t)}function wy(e,t){var a=gt();return Ry(a,xt.memoizedState,e,t)}function Dy(e,t){var a=gt();return xt===null?Vm(a,e,t):Ry(a,xt.memoizedState,e,t)}function Vm(e,t,a){return a===void 0||(ls&1073741824)!==0&&(Fe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Cv(),He.lanes|=e,Js|=e,a)}function Ry(e,t,a,n){return Aa(a,t)?a:Hl.current!==null?(e=Vm(e,a,n),Aa(e,t)||(Jt=!0),e):(ls&42)===0||(ls&1073741824)!==0&&(Fe&261930)===0?(Jt=!0,e.memoizedState=a):(e=Cv(),He.lanes|=e,Js|=e,t)}function Yu(){X.asyncTransitions--}function Cy(e,t,a,n,r){var l=pt.p;pt.p=l!==0&&l<Co?l:Co;var d=X.T,m={};m._updatedFibers=new Set,X.T=m,qm(e,!1,t,a);try{var b=r(),S=X.S;if(S!==null&&S(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){X.asyncTransitions++,b.then(Yu,Yu);var k=yw(b,n);wi(e,t,k,tn(e))}else wi(e,t,n,tn(e))}catch(M){wi(e,t,{then:function(){},status:"rejected",reason:M},tn(e))}finally{pt.p=l,d!==null&&m.types!==null&&(d.types!==null&&d.types!==m.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=m.types),X.T=d,d===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Hm(e,t,a,n){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Ty(e).queue;gw(e),Cy(e,r,t,Fr,a===null?x:function(){return _y(e),a(n)})}function Ty(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fr,baseState:Fr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:Fr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _y(e){X.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Ty(e);t.next===null&&(t=e.alternate.memoizedState),wi(e,t.next.queue,{},tn(e))}function Bm(){var e=Cm(!1);return e=Cy.bind(null,He,e.queue,!0,!1),Ta().memoizedState=e,[!1,e]}function Oy(){var e=sl(Gn)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]}function Uy(){var e=Ei(Gn)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]}function xr(){return Ot(kc)}function $m(){var e=Ta(),t=St.identifierPrefix;if(at){var a=as,n=ts;a=(n&~(1<<32-_a(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=qd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=oR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Ym(){return Ta().memoizedState=ww.bind(null,He)}function ww(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=tn(a),r=Rs(n),l=Cs(a,r,n);l!==null&&(io(n,"refresh()",e),Mt(l,a,n),vi(l,a,n)),e=im(),t!=null&&l!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function Dw(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=tn(e);var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};qu(e)?ky(t,r):(r=Jf(e,t,r,n),r!==null&&(io(n,"dispatch()",e),Mt(r,e,n),jy(r,t,n)))}function Ay(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=tn(e),wi(e,t,a,n)&&io(n,"setState()",e)}function wi(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(qu(e))ky(t,r);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null)){var d=X.H;X.H=Zn;try{var m=t.lastRenderedState,b=l(m,a);if(r.hasEagerState=!0,r.eagerState=b,Aa(b,m))return pu(e,t,r,0),St===null&&hu(),!1}catch{}finally{X.H=d}}if(a=Jf(e,t,r,n),a!==null)return Mt(a,e,n),jy(a,t,n),!0}return!1}function qm(e,t,a,n){if(X.T===null&&Ur===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),n={lane:2,revertLane:vh(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},qu(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Jf(e,a,n,2),t!==null&&(io(2,"setOptimistic()",e),Mt(t,e,2))}function qu(e){var t=e.alternate;return e===He||t!==null&&t===He}function ky(e,t){Yl=Yd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function jy(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,vs(e,a)}}function Gm(e){if(e!==null&&typeof e!="function"){var t=String(e);U1.has(t)||(U1.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Xm(e,t,a,n){var r=e.memoizedState,l=a(n,r);if(e.mode&Na){Ne(!0);try{l=a(n,r)}finally{Ne(!1)}}l===void 0&&(t=j(t)||"Component",C1.has(t)||(C1.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=l==null?r:Ke({},r,l),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function My(e,t,a,n,r,l,d){var m=e.stateNode;if(typeof m.shouldComponentUpdate=="function"){if(a=m.shouldComponentUpdate(n,l,d),e.mode&Na){Ne(!0);try{a=m.shouldComponentUpdate(n,l,d)}finally{Ne(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",j(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!mi(a,n)||!mi(r,l):!0}function zy(e,t,a,n){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==r&&(e=Q(e)||"Component",N1.has(e)||(N1.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Bp.enqueueReplaceState(t,t.state,null))}function Sr(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=Ke({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function Ly(e){bp(e),console.warn(`%s
121
+
122
+ %s
123
+ `,ql?"An error occurred in the <"+ql+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Vy(e){var t=ql?"The above error occurred in the <"+ql+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+(($p||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var n=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,mS+" "+e[0],hS,pf+n+pf,pS):e.splice(0,0,mS,hS,pf+n+pf,pS),e.unshift(console),n=DR.apply(console.error,e),n()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,a)}function Hy(e){bp(e)}function Gu(e,t){try{ql=t.source?Q(t.source):null,$p=null;var a=t.value;if(X.actQueue!==null)X.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function By(e,t,a){try{ql=a.source?Q(a.source):null,$p=Q(t);var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Qm(e,t,a){return a=Rs(a),a.tag=jp,a.payload={element:null},a.callback=function(){P(t.source,Gu,e,t)},a}function Fm(e){return e=Rs(e),e.tag=jp,e}function Im(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;e.payload=function(){return r(l)},e.callback=function(){kb(a),P(n.source,By,t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){kb(a),P(n.source,By,t,a,n),typeof r!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this)),eR(this,n),typeof r=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Q(a)||"Unknown")})}function Rw(e,t,a,n,r){if(a.flags|=32768,Ro&&Ai(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&nl(t,a,r,!0),at&&(_o=!0),a=rn.current,a!==null){switch(a.tag){case 31:case 13:return Tn===null?Wu():a.alternate===null&&jt===ds&&(jt=Qd),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Hd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),ph(e,n,r)),!1;case 22:return a.flags|=65536,n===Hd?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)),ph(e,n,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return ph(e,n,r),Wu(),!1}if(at)return _o=!0,t=rn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Ep&&hi(Pa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:n}),a))):(n!==Ep&&hi(Pa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:n}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=Pa(n,a),r=Qm(e.stateNode,n,r),Ou(e,r),jt!==Is&&(jt=Lr)),!1;var l=Pa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:n}),a);if(wc===null?wc=[l]:wc.push(l),jt!==Is&&(jt=Lr),t===null)return!0;n=Pa(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Qm(a.stateNode,n,e),Ou(a,e),!1;case 1:if(t=a.type,l=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(Ks===null||!Ks.has(l))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Fm(r),Im(r,e,a,n),Ou(a,r),!1}a=a.return}while(a!==null);return!1}function ha(e,t,a,n){t.child=e===null?d1(t,null,a,n):Mr(t,e.child,a,n)}function $y(e,t,a,n,r){a=a.render;var l=t.ref;if("ref"in n){var d={};for(var m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return gr(t),n=vm(e,t,a,d,l,r),m=Sm(),e!==null&&!Jt?(Nm(e,t,r),Io(e,t,r)):(at&&m&&am(t),t.flags|=1,ha(e,t,n,r),t.child)}function Yy(e,t,a,n,r){if(e===null){var l=a.type;return typeof l=="function"&&!Kf(l)&&l.defaultProps===void 0&&a.compare===null?(a=fr(l),t.tag=15,t.type=a,Jm(t,l),qy(e,t,a,n,r)):(e=Wf(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!ah(e,r)){var d=l.memoizedProps;if(a=a.compare,a=a!==null?a:mi,a(d,n)&&e.ref===t.ref)return Io(e,t,r)}return t.flags|=1,e=Go(l,n),e.ref=t.ref,e.return=t,t.child=e}function qy(e,t,a,n,r){if(e!==null){var l=e.memoizedProps;if(mi(l,n)&&e.ref===t.ref&&t.type===e.type)if(Jt=!1,t.pendingProps=n=l,ah(e,r))(e.flags&131072)!==0&&(Jt=!0);else return t.lanes=e.lanes,Io(e,t,r)}return Zm(e,t,a,n,r)}function Gy(e,t,a,n){var r=n.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Wi,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(l=l!==null?l.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~l}else n=0,t.child=null;return Xy(e,t,l,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wu(t,l!==null?l.cachePool:null),l!==null?ry(t,l):pm(t),ly(t);else return n=t.lanes=536870912,Xy(e,t,l!==null?l.baseLanes|a:a,a,n)}else l!==null?(wu(t,l.cachePool),ry(t,l),_s(t),t.memoizedState=null):(e!==null&&wu(t,null),pm(t),_s(t));return ha(e,t,r,a),t.child}function Di(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Wi,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xy(e,t,a,n,r){var l=dm();return l=l===null?null:{parent:Ft._currentValue,pool:l},t.memoizedState={baseLanes:a,cachePool:l},e!==null&&wu(t,null),pm(t),ly(t),e!==null&&nl(e,t,n,!0),t.childLanes=r,null}function Xu(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Fu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qy(e,t,a){return Mr(t,e.child,null,a),e=Xu(t,t.pendingProps),e.flags|=2,en(t),t.memoizedState=null,e}function Cw(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(n.mode==="hidden")return e=Xu(t,n),t.lanes=536870912,Di(null,e);if(bm(t),(e=Tt)?(a=b0(e,Rn),a=a!==null&&a.data===qr?a:null,a!==null&&(n={dehydrated:a,treeContext:Vb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=zb(a),n.return=t,t.child=n,ba=t,Tt=null)):a=null,a===null)throw yu(t,e),Es(t);return t.lanes=536870912,null}return Xu(t,n)}var l=e.memoizedState;if(l!==null){var d=l.dehydrated;if(bm(t),r)if(t.flags&256)t.flags&=-257,t=Qy(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Bb(),(a&536870912)!==0&&Ku(t),Jt||nl(e,t,a,!1),r=(a&e.childLanes)!==0,Jt||r){if(n=St,n!==null&&(d=Lo(n,a),d!==0&&d!==l.retryLane))throw l.retryLane=d,xa(e,d),Mt(n,e,d),Yp;Wu(),t=Qy(e,t,a)}else e=l.treeContext,Tt=an(d.nextSibling),ba=t,at=!0,Ys=null,_o=!1,sn=null,Rn=!1,e!==null&&Hb(t,e),t=Xu(t,n),t.flags|=4096;return t}return l=e.child,n={mode:n.mode,children:n.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Ku(t),e=Go(l,n),e.ref=t.ref,t.child=e,e.return=t,e}function Qu(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("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Zm(e,t,a,n,r){if(a.prototype&&typeof a.prototype.render=="function"){var l=j(a)||"Unknown";A1[l]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",l,l),A1[l]=!0)}return t.mode&Na&&In.recordLegacyContextWarning(t,null),e===null&&(Jm(t,t.type),a.contextTypes&&(l=j(a)||"Unknown",j1[l]||(j1[l]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",l)))),gr(t),a=vm(e,t,a,n,void 0,r),n=Sm(),e!==null&&!Jt?(Nm(e,t,r),Io(e,t,r)):(at&&n&&am(t),t.flags|=1,ha(e,t,a,r),t.child)}function Fy(e,t,a,n,r,l){return gr(t),cs=-1,bc=e!==null&&e.type!==t.type,t.updateQueue=null,a=xm(t,n,a,r),iy(e,t),n=Sm(),e!==null&&!Jt?(Nm(e,t,l),Io(e,t,l)):(at&&n&&am(t),t.flags|=1,ha(e,t,a,l),t.child)}function Iy(e,t,a,n,r){switch(h(t)){case!1:var l=t.stateNode,d=new t.type(t.memoizedProps,l.context).state;l.updater.enqueueSetState(l,d,null);break;case!0:t.flags|=128,t.flags|=65536,l=Error("Simulated error coming from DevTools");var m=r&-r;if(t.lanes|=m,d=St,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m=Fm(m),Im(m,d,t,Pa(l,t)),Ou(t,m)}if(gr(t),t.stateNode===null){if(d=$s,l=a.contextType,"contextType"in a&&l!==null&&(l===void 0||l.$$typeof!==Eo)&&!O1.has(a)&&(O1.add(a),m=l===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof l!="object"?" However, it is set to a "+typeof l+".":l.$$typeof===qh?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(l).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",j(a)||"Component",m)),typeof l=="object"&&l!==null&&(d=Ot(l)),l=new a(n,d),t.mode&Na){Ne(!0);try{l=new a(n,d)}finally{Ne(!1)}}if(d=t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Bp,t.stateNode=l,l._reactInternals=t,l._reactInternalInstance=S1,typeof a.getDerivedStateFromProps=="function"&&d===null&&(d=j(a)||"Component",E1.has(d)||(E1.add(d),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,l.state===null?"null":"undefined",d))),typeof a.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"){var b=m=d=null;if(typeof l.componentWillMount=="function"&&l.componentWillMount.__suppressDeprecationWarning!==!0?d="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(d="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps.__suppressDeprecationWarning!==!0?m="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(m="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"&&l.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),d!==null||m!==null||b!==null){l=j(a)||"Component";var S=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";D1.has(l)||(D1.add(l),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,l,S,d!==null?`
142
+ `+d:"",m!==null?`
143
+ `+m:"",b!==null?`
144
+ `+b:""))}}l=t.stateNode,d=j(a)||"Component",l.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",d):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",d)),!l.getInitialState||l.getInitialState.isReactClassApproved||l.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),l.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),a.childContextTypes&&!_1.has(a)&&(_1.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",d)),a.contextTypes&&!T1.has(a)&&(T1.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",d)),typeof l.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",j(a)||"A pure component"),typeof l.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof l.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof l.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof l.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),m=l.props!==n,l.props!==void 0&&m&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),l.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof l.getSnapshotBeforeUpdate!="function"||typeof l.componentDidUpdate=="function"||w1.has(a)||(w1.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",j(a))),typeof l.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof l.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d),(m=l.state)&&(typeof m!="object"||aa(m))&&console.error("%s.state: must be set to an object or null",d),typeof l.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),l=t.stateNode,l.props=n,l.state=t.memoizedState,l.refs={},mm(t),d=a.contextType,l.context=typeof d=="object"&&d!==null?Ot(d):$s,l.state===n&&(d=j(a)||"Component",R1.has(d)||(R1.add(d),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",d))),t.mode&Na&&In.recordLegacyContextWarning(t,l),In.recordUnsafeLifecycleWarnings(t,l),l.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Xm(t,a,d,n),l.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(d=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Q(t)||"Component"),Bp.enqueueReplaceState(l,l.state,null)),Si(t,n,l,r),xi(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Fn)!==Le&&(t.flags|=134217728),l=!0}else if(e===null){l=t.stateNode;var k=t.memoizedProps;m=Sr(a,k),l.props=m;var M=l.context;b=a.contextType,d=$s,typeof b=="object"&&b!==null&&(d=Ot(b)),S=a.getDerivedStateFromProps,b=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function",k=t.pendingProps!==k,b||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(k||M!==d)&&zy(t,l,n,d),Fs=!1;var _=t.memoizedState;l.state=_,Si(t,n,l,r),xi(),M=t.memoizedState,k||_!==M||Fs?(typeof S=="function"&&(Xm(t,a,S,n),M=t.memoizedState),(m=Fs||My(t,a,m,n,_,M,d))?(b||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Fn)!==Le&&(t.flags|=134217728)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Fn)!==Le&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=M),l.props=n,l.state=M,l.context=d,l=m):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Fn)!==Le&&(t.flags|=134217728),l=!1)}else{l=t.stateNode,hm(e,t),d=t.memoizedProps,b=Sr(a,d),l.props=b,S=t.pendingProps,_=l.context,M=a.contextType,m=$s,typeof M=="object"&&M!==null&&(m=Ot(M)),k=a.getDerivedStateFromProps,(M=typeof k=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(d!==S||_!==m)&&zy(t,l,n,m),Fs=!1,_=t.memoizedState,l.state=_,Si(t,n,l,r),xi();var B=t.memoizedState;d!==S||_!==B||Fs||e!==null&&e.dependencies!==null&&xu(e.dependencies)?(typeof k=="function"&&(Xm(t,a,k,n),B=t.memoizedState),(b=Fs||My(t,a,b,n,_,B,m)||e!==null&&e.dependencies!==null&&xu(e.dependencies))?(M||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,B,m),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,B,m)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=B),l.props=n,l.state=B,l.context=m,l=b):(typeof l.componentDidUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),l=!1)}if(m=l,Qu(e,t),d=(t.flags&128)!==0,m||d){if(m=t.stateNode,Ze(t),d&&typeof a.getDerivedStateFromError!="function")a=null,ka=-1;else if(a=Px(m),t.mode&Na){Ne(!0);try{Px(m)}finally{Ne(!1)}}t.flags|=1,e!==null&&d?(t.child=Mr(t,e.child,null,r),t.child=Mr(t,null,a,r)):ha(e,t,a,r),t.memoizedState=m.state,e=t.child}else e=Io(e,t,r);return r=t.stateNode,l&&r.props!==n&&(Gl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Q(t)||"a component"),Gl=!0),e}function Zy(e,t,a,n){return pr(),t.flags|=256,ha(e,t,a,n),t.child}function Jm(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=j(t)||"Unknown",M1[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),M1[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=j(t)||"Unknown",k1[t]||(console.error("%s: Function components do not support contextType.",t),k1[t]=!0))}function Pm(e){return{baseLanes:e,cachePool:Fb()}}function Km(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qa),e}function Jy(e,t,a){var n,r=t.pendingProps;f(t)&&(t.flags|=128);var l=!1,d=(t.flags&128)!==0;if((n=d)||(n=e!==null&&e.memoizedState===null?!1:(Yt.current&pc)!==0),n&&(l=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(l?Ts(t):_s(t),(e=Tt)?(a=b0(e,Rn),a=a!==null&&a.data!==qr?a:null,a!==null&&(n={dehydrated:a,treeContext:Vb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=zb(a),n.return=t,t.child=n,ba=t,Tt=null)):a=null,a===null)throw yu(t,e),Es(t);return Uh(a)?t.lanes=32:t.lanes=536870912,null}var m=r.children;if(r=r.fallback,l){_s(t);var b=t.mode;return m=Fu({mode:"hidden",children:m},b),r=mr(r,b,a,null),m.return=t,r.return=t,m.sibling=r,t.child=m,r=t.child,r.memoizedState=Pm(a),r.childLanes=Km(e,n,a),t.memoizedState=qp,Di(null,r)}return Ts(t),Wm(t,m)}var S=e.memoizedState;if(S!==null){var k=S.dehydrated;if(k!==null){if(d)t.flags&256?(Ts(t),t.flags&=-257,t=eh(e,t,a)):t.memoizedState!==null?(_s(t),t.child=e.child,t.flags|=128,t=null):(_s(t),m=r.fallback,b=t.mode,r=Fu({mode:"visible",children:r.children},b),m=mr(m,b,a,null),m.flags|=2,r.return=t,m.return=t,r.sibling=m,t.child=r,Mr(t,e.child,null,a),r=t.child,r.memoizedState=Pm(a),r.childLanes=Km(e,n,a),t.memoizedState=qp,t=Di(null,r));else if(Ts(t),Bb(),(a&536870912)!==0&&Ku(t),Uh(k)){if(n=k.nextSibling&&k.nextSibling.dataset,n){m=n.dgst;var M=n.msg;b=n.stck;var _=n.cstck}l=M,n=m,r=b,k=_,m=l,b=k,m=Error(m||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),m.stack=r||"",m.digest=n,n=b===void 0?null:b,r={value:m,source:null,stack:n},typeof n=="string"&&Np.set(m,r),hi(r),t=eh(e,t,a)}else if(Jt||nl(e,t,a,!1),n=(a&e.childLanes)!==0,Jt||n){if(n=St,n!==null&&(r=Lo(n,a),r!==0&&r!==S.retryLane))throw S.retryLane=r,xa(e,r),Mt(n,e,r),Yp;Oh(k)||Wu(),t=eh(e,t,a)}else Oh(k)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Tt=an(k.nextSibling),ba=t,at=!0,Ys=null,_o=!1,sn=null,Rn=!1,e!==null&&Hb(t,e),t=Wm(t,r.children),t.flags|=4096);return t}}return l?(_s(t),m=r.fallback,b=t.mode,_=e.child,k=_.sibling,r=Go(_,{mode:"hidden",children:r.children}),r.subtreeFlags=_.subtreeFlags&65011712,k!==null?m=Go(k,m):(m=mr(m,b,a,null),m.flags|=2),m.return=t,r.return=t,r.sibling=m,t.child=r,Di(null,r),r=t.child,m=e.child.memoizedState,m===null?m=Pm(a):(b=m.cachePool,b!==null?(_=Ft._currentValue,b=b.parent!==_?{parent:_,pool:_}:b):b=Fb(),m={baseLanes:m.baseLanes|a,cachePool:b}),r.memoizedState=m,r.childLanes=Km(e,n,a),t.memoizedState=qp,Di(e.child,r)):(S!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Ku(t),Ts(t),a=e.child,e=a.sibling,a=Go(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function Wm(e,t){return t=Fu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fu(e,t){return e=E(22,e,null,t),e.lanes=0,e}function eh(e,t,a){return Mr(t,e.child,null,a),e=Wm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Py(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),rm(e.return,t,a)}function th(e,t,a,n,r,l){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:l}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=r,d.treeForkCount=l)}function Ky(e,t,a){var n=t.pendingProps,r=n.revealOrder,l=n.tail,d=n.children,m=Yt.current;if((n=(m&pc)!==0)?(m=m&Bl|pc,t.flags|=128):m&=Bl,ue(Yt,m,t),m=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!z1[m])if(z1[m]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);m=l??"null",Xd[m]||(l==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(Xd[m]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):l!=="visible"&&l!=="collapsed"&&l!=="hidden"?(Xd[m]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',l)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Xd[m]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',l)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==!1)if(aa(d)){for(m=0;m<d.length;m++)if(!ny(d[m],m))break e}else if(m=re(d),typeof m=="function"){if(m=m.call(d))for(var b=m.next(),S=0;!b.done;b=m.next()){if(!ny(b.value,S))break e;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(ha(e,t,d,a),at?(Ns(),d=ec):d=0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Py(e,a,t);else if(e.tag===19)Py(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(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Uu(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),th(t,!1,r,a,l,d);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Uu(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}th(t,!0,a,null,l,d);break;case"together":th(t,!1,null,null,void 0,d);break;default:t.memoizedState=null}return t.child}function Io(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ka=-1,Js|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(nl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Go(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Go(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ah(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xu(e)))}function Tw(e,t,a){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),ws(t,Ft,e.memoizedState.cache),pr();break;case 27:case 5:fe(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:ws(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var n=t.stateNode;n.effectDuration=-0,n.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,bm(t),null;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ts(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Jy(e,t,a):(Ts(t),e=Io(e,t,a),e!==null?e.sibling:null);Ts(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(nl(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return Ky(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ue(Yt,Yt.current,t),n)break;return null;case 22:return t.lanes=0,Gy(e,t,a,t.pendingProps);case 24:ws(t,Ft,e.memoizedState.cache)}return Io(e,t,a)}function nh(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Wf(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var n=t.return;if(n===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===n.child)n.child=a;else{var r=n.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Jt=!0;else{if(!ah(e,a)&&(t.flags&128)===0)return Jt=!1,Tw(e,t,a);Jt=(e.flags&131072)!==0}else Jt=!1,(n=at)&&(Ns(),n=(t.flags&1048576)!==0),n&&(n=t.index,Ns(),Lb(t,ec,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=Ds(t.elementType),t.type=e,typeof e=="function")Kf(e)?(n=Sr(e,n),t.tag=1,t.type=e=fr(e),t=Iy(null,t,e,n,a)):(t.tag=0,Jm(t,e),t.type=e=fr(e),t=Zm(null,t,e,n,a));else{if(e!=null){if(r=e.$$typeof,r===$i){t.tag=11,t.type=e=Pf(e),t=$y(null,t,e,n,a);break e}else if(r===md){t.tag=14,t=Yy(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===nn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=j(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Zm(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Sr(n,t.pendingProps),Iy(e,t,n,r,a);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");n=t.pendingProps;var l=t.memoizedState;r=l.element,hm(e,t),Si(t,n,null,a);var d=t.memoizedState;if(n=d.cache,ws(t,Ft,n),n!==l.cache&&lm(t,[Ft],a,!0),xi(),n=d.element,l.isDehydrated)if(l={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=Zy(e,t,n,a);break e}else if(n!==r){r=Pa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),hi(r),t=Zy(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,Tt=an(e.firstChild),ba=t,at=!0,Ys=null,_o=!1,sn=null,Rn=!0,a=d1(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(pr(),n===r){t=Io(e,t,a);break e}ha(e,t,n,a)}t=t.child}return t;case 26:return Qu(e,t),e===null?(a=E0(t.type,null,t.pendingProps,null))?t.memoizedState=a:at||(a=t.type,e=t.pendingProps,n=ve(Ms.current),n=nd(n).createElement(a),n[ga]=t,n[Oa]=e,pa(n,a,e),Re(n),t.stateNode=n):t.memoizedState=E0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&at&&(n=ve(Ms.current),r=de(),n=t.stateNode=S0(t.type,t.pendingProps,n,r,!1),_o||(r=c0(n,t.type,t.pendingProps,r),r!==null&&(hr(t,0).serverProps=r)),ba=t,Rn=!0,r=Tt,ks(t.type)?(fg=r,Tt=an(n.firstChild)):Tt=r),ha(e,t,t.pendingProps.children,a),Qu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&(l=de(),n=Yf(t.type,l.ancestorInfo),r=Tt,(d=!r)||(d=g4(r,t.type,t.pendingProps,Rn),d!==null?(t.stateNode=d,_o||(l=c0(d,t.type,t.pendingProps,l),l!==null&&(hr(t,0).serverProps=l)),ba=t,Tt=an(d.firstChild),Rn=!1,l=!0):l=!1,d=!l),d&&(n&&yu(t,r),Es(t))),fe(t),r=t.type,l=t.pendingProps,d=e!==null?e.memoizedProps:null,n=l.children,Th(r,l)?n=null:d!==null&&Th(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=vm(e,t,xw,null,null,a),kc._currentValue=r),Qu(e,t),ha(e,t,n,a),t.child;case 6:return e===null&&at&&(a=t.pendingProps,e=de(),n=e.ancestorInfo.current,a=n!=null?iu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Tt,(n=!e)||(n=b4(e,t.pendingProps,Rn),n!==null?(t.stateNode=n,ba=t,Tt=null,n=!0):n=!1,n=!n),n&&(a&&yu(t,e),Es(t))),null;case 13:return Jy(e,t,a);case 4:return Te(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Mr(t,null,n,a):ha(e,t,n,a),t.child;case 11:return $y(e,t,t.type,t.pendingProps,a);case 7:return ha(e,t,t.pendingProps,a),t.child;case 8:return ha(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,n=t.stateNode,n.effectDuration=-0,n.passiveEffectDuration=-0,ha(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,r=t.pendingProps,l=r.value,"value"in r||L1||(L1=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ws(t,n,l),ha(e,t,r.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,typeof n!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),gr(t),r=Ot(r),n=Op(n,r,void 0),t.flags|=1,ha(e,t,n,a),t.child;case 14:return Yy(e,t,t.type,t.pendingProps,a);case 15:return qy(e,t,t.type,t.pendingProps,a);case 19:return Ky(e,t,a);case 31:return Cw(e,t,a);case 22:return Gy(e,t,a,t.pendingProps);case 24:return gr(t),n=Ot(Ft),e===null?(r=dm(),r===null&&(r=St,l=im(),r.pooledCache=l,br(l),l!==null&&(r.pooledCacheLanes|=a),r=l),t.memoizedState={parent:n,cache:r},mm(t),ws(t,Ft,r)):((e.lanes&a)!==0&&(hm(e,t),Si(t,null,null,a),xi()),r=e.memoizedState,l=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),ws(t,Ft,n)):(n=l.cache,ws(t,Ft,n),n!==r.cache&&lm(t,[Ft],a,!0))),ha(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Zo(e){e.flags|=4}function oh(e,t,a,n,r){if((t=(e.mode&ZD)!==Le)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Uv())e.flags|=8192;else throw jr=Hd,Ap}else e.flags&=-16777217}function Wy(e,t){if(t.type!=="stylesheet"||(t.state.loading&Un)!==Qr)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(Uv())e.flags|=8192;else throw jr=Hd,Ap}function Iu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ln():536870912,e.lanes|=t,Br|=t)}function Ri(e,t){if(!at)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 Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Xe)!==Le){for(var r=e.selfBaseDuration,l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,r+=l.treeBaseDuration,l=l.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Xe)!==Le){r=e.actualDuration,l=e.selfBaseDuration;for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,n|=d.subtreeFlags,n|=d.flags,r+=d.actualDuration,l+=d.treeBaseDuration,d=d.sibling;e.actualDuration=r,e.treeBaseDuration=l}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function _w(e,t,a){var n=t.pendingProps;switch(nm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return Nt(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qo(Ft,t),J(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(al(t)?(sm(),Zo(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,om())),Nt(t),null;case 26:var r=t.type,l=t.memoizedState;return e===null?(Zo(t),l!==null?(Nt(t),Wy(t,l)):(Nt(t),oh(t,r,null,n,a))):l?l!==e.memoizedState?(Zo(t),Nt(t),Wy(t,l)):(Nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Zo(t),Nt(t),oh(t,r,e,n,a)),null;case 27:if(he(t),a=ve(Ms.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Zo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Nt(t),null}e=de(),al(t)?$b(t):(e=S0(r,n,a,e,!0),t.stateNode=e,Zo(t))}return Nt(t),null;case 5:if(he(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Zo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Nt(t),null}var d=de();if(al(t))$b(t);else{switch(l=ve(Ms.current),Yf(r,d.ancestorInfo),d=d.context,l=nd(l),d){case Kl:l=l.createElementNS(Nl,r);break;case ff:l=l.createElementNS(xd,r);break;default:switch(r){case"svg":l=l.createElementNS(Nl,r);break;case"math":l=l.createElementNS(xd,r);break;case"script":l=l.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof n.is=="string"?l.createElement("select",{is:n.is}):l.createElement("select"),n.multiple?l.multiple=!0:n.size&&(l.size=n.size);break;default:l=typeof n.is=="string"?l.createElement(r,{is:n.is}):l.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(l)!=="[object HTMLUnknownElement]"||Qn.call(lS,r)||(lS[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}l[ga]=t,l[Oa]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)l.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=l;e:switch(pa(l,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Zo(t)}}return Nt(t),oh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Zo(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ve(Ms.current),a=de(),al(t)){if(e=t.stateNode,a=t.memoizedProps,r=!_o,n=null,l=ba,l!==null)switch(l.tag){case 3:r&&(r=v0(e,a,n),r!==null&&(hr(t,0).serverProps=r));break;case 27:case 5:n=l.memoizedProps,r&&(r=v0(e,a,n),r!==null&&(hr(t,0).serverProps=r))}e[ga]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||o0(e.nodeValue,a)),e||Es(t,!0)}else r=a.ancestorInfo.current,r!=null&&iu(n,r.tag,a.ancestorInfo.implicitRootScope),e=nd(e).createTextNode(n),e[ga]=t,t.stateNode=e}return Nt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=al(t),a!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ga]=t,Nt(t),(t.mode&Xe)!==Le&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else sm(),pr(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Nt(t),(t.mode&Xe)!==Le&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=om(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(en(t),t):(en(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Nt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=n,l=al(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l[ga]=t,Nt(t),(t.mode&Xe)!==Le&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else sm(),pr(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,Nt(t),(t.mode&Xe)!==Le&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=om(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(en(t),t):(en(t),null)}return en(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Xe)!==Le&&bi(t),t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Iu(t,t.updateQueue),Nt(t),(t.mode&Xe)!==Le&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return J(t),e===null&&Sh(t.stateNode.containerInfo),Nt(t),null;case 10:return Qo(t.type,t),Nt(t),null;case 19:if($(Yt,t),n=t.memoizedState,n===null)return Nt(t),null;if(r=(t.flags&128)!==0,l=n.rendering,l===null)if(r)Ri(n,!1);else{if(jt!==ds||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Uu(e),l!==null){for(t.flags|=128,Ri(n,!1),e=l.updateQueue,t.updateQueue=e,Iu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Mb(a,e),a=a.sibling;return ue(Yt,Yt.current&Bl|pc,t),at&&Xo(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ca()>Kd&&(t.flags|=128,r=!0,Ri(n,!1),t.lanes=4194304)}else{if(!r)if(e=Uu(l),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Iu(t,e),Ri(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!at)return Nt(t),null}else 2*ca()-n.renderingStartTime>Kd&&a!==536870912&&(t.flags|=128,r=!0,Ri(n,!1),t.lanes=4194304);n.isBackwards?(l.sibling=t.child,t.child=l):(e=n.last,e!==null?e.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ca(),e.sibling=null,a=Yt.current,a=r?a&Bl|pc:a&Bl,ue(Yt,a,t),at&&Xo(t,n.treeForkCount),e):(Nt(t),null);case 22:case 23:return en(t),gm(t),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&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),a=t.updateQueue,a!==null&&Iu(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&&$(Ar,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Qo(Ft,t),Nt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ow(e,t){switch(nm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&bi(t),t):null;case 3:return Qo(Ft,t),J(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(t),null;case 31:if(t.memoizedState!==null){if(en(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&bi(t),t):null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&bi(t),t):null;case 19:return $(Yt,t),null;case 4:return J(t),null;case 10:return Qo(t.type,t),null;case 22:case 23:return en(t),gm(t),e!==null&&$(Ar,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==Le&&bi(t),t):null;case 24:return Qo(Ft,t),null;case 25:return null;default:return null}}function ev(e,t){switch(nm(t),t.tag){case 3:Qo(Ft,t),J(t);break;case 26:case 27:case 5:he(t);break;case 4:J(t);break;case 31:t.memoizedState!==null&&en(t);break;case 13:en(t);break;case 19:$(Yt,t);break;case 10:Qo(t.type,t);break;case 22:case 23:en(t),gm(t),e!==null&&$(Ar,t);break;case 24:Qo(Ft,t)}}function go(e){return(e.mode&Xe)!==Le}function tv(e,t){go(e)?(po(),Ci(t,e),ho()):Ci(t,e)}function sh(e,t,a){go(e)?(po(),il(a,e,t),ho()):il(a,e,t)}function Ci(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e&&(n=void 0,(e&ja)!==$d&&(Zl=!0),n=P(t,tR,a),(e&ja)!==$d&&(Zl=!1),n!==void 0&&typeof n!="function")){var l=void 0;l=(a.tag&ln)!==0?"useLayoutEffect":(a.tag&ja)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=n===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof n.then=="function"?`
146
+
147
+ It looks like you wrote `+l+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+l+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+n,P(t,function(m,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",m,b)},l,d)}a=a.next}while(a!==r)}}catch(m){ht(t,t.return,m)}}function il(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var l=r.next;n=l;do{if((n.tag&e)===e){var d=n.inst,m=d.destroy;m!==void 0&&(d.destroy=void 0,(e&ja)!==$d&&(Zl=!0),r=t,P(r,aR,r,a,m),(e&ja)!==$d&&(Zl=!1))}n=n.next}while(n!==l)}}catch(b){ht(t,t.return,b)}}function av(e,t){go(e)?(po(),Ci(t,e),ho()):Ci(t,e)}function rh(e,t,a){go(e)?(po(),il(a,e,t),ho()):il(a,e,t)}function nv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Gl||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Q(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Q(e)||"instance"));try{P(e,sy,t,a)}catch(n){ht(e,e.return,n)}}}function Uw(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function Aw(e,t){var a=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Gl||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Q(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Q(e)||"instance"));try{var r=Sr(e.type,a),l=P(e,Uw,t,r,n);a=V1,l!==void 0||a.has(e.type)||(a.add(e.type),P(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Q(e))})),t.__reactInternalSnapshotBeforeUpdate=l}catch(d){ht(e,e.return,d)}}function ov(e,t,a){a.props=Sr(e.type,e.memoizedProps),a.state=e.memoizedState,go(e)?(po(),P(e,n1,e,t,a),ho()):P(e,n1,e,t,a)}function kw(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(go(e))try{po(),e.refCleanup=t(a)}finally{ho()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Q(e)),t.current=a}}function Ti(e,t){try{P(e,kw,e)}catch(a){ht(e,t,a)}}function bo(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(go(e))try{po(),P(e,n)}finally{ho(e)}else P(e,n)}catch(r){ht(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(go(e))try{po(),P(e,a,null)}finally{ho(e)}else P(e,a,null)}catch(r){ht(e,t,r)}else a.current=null}function sv(e,t,a,n){var r=e.memoizedProps,l=r.id,d=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Md&&(t="nested-update"),typeof r=="function"&&r(l,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof d=="function"&&d(l,t,n,a)}function jw(e,t,a,n){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Md&&(t="nested-update"),typeof r=="function"&&r(e,t,n,a)}function rv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{P(e,o4,n,t,a,e)}catch(r){ht(e,e.return,r)}}function lh(e,t,a){try{P(e,r4,e.stateNode,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function lv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ks(e.type)||e.tag===4}function ih(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lv(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&&ks(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 ch(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(h0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(h0(a),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=qo));else if(n!==4&&(n===27&&ks(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ch(e,t,a),e=e.sibling;e!==null;)ch(e,t,a),e=e.sibling}function Zu(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&&ks(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zu(e,t,a),e=e.sibling;e!==null;)Zu(e,t,a),e=e.sibling}function Mw(e){for(var t,a=e.return;a!==null;){if(lv(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=ih(e),Zu(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(m0(a),t.flags&=-33),t=ih(e),Zu(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=ih(e),ch(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function iv(e){var t=e.stateNode,a=e.memoizedProps;try{P(e,N4,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function cv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function zw(e,t){if(e=e.containerInfo,cg=gf,e=Db(e),Xf(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 r=n.anchorOffset,l=n.focusNode;n=n.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var d=0,m=-1,b=-1,S=0,k=0,M=e,_=null;t:for(;;){for(var B;M!==a||r!==0&&M.nodeType!==3||(m=d+r),M!==l||n!==0&&M.nodeType!==3||(b=d+n),M.nodeType===3&&(d+=M.nodeValue.length),(B=M.firstChild)!==null;)_=M,M=B;for(;;){if(M===e)break t;if(_===a&&++S===r&&(m=d),_===l&&++k===n&&(b=d),(B=M.nextSibling)!==null)break;M=_,_=M.parentNode}M=B}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(ug={focusedElem:e,selectionRange:a},gf=!1,da=t;da!==null;)if(t=da,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,da=e;else for(;da!==null;){switch(e=t=da,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&Aw(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)_h(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_h(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,da=e;break}da=t.return}}function uv(e,t,a){var n=Ka(),r=co(),l=fo(),d=mo(),m=a.flags;switch(a.tag){case 0:case 11:case 15:yo(e,a),m&4&&tv(a,ln|_n);break;case 1:if(yo(e,a),m&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Gl||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Q(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Q(a)||"instance")),go(a)?(po(),P(a,Up,a,e),ho()):P(a,Up,a,e);else{var b=Sr(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Gl||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Q(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Q(a)||"instance")),go(a)?(po(),P(a,e1,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate),ho()):P(a,e1,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate)}m&64&&nv(a),m&512&&Ti(a,a.return);break;case 3:if(t=Fo(),yo(e,a),m&64&&(m=a.updateQueue,m!==null)){if(b=null,a.child!==null)switch(a.child.tag){case 27:case 5:b=a.child.stateNode;break;case 1:b=a.child.stateNode}try{P(a,sy,m,b)}catch(k){ht(a,a.return,k)}}e.effectDuration+=Nu(t);break;case 27:t===null&&m&4&&iv(a);case 26:case 5:if(yo(e,a),t===null){if(m&4)rv(a);else if(m&64){e=a.type,t=a.memoizedProps,b=a.stateNode;try{P(a,s4,b,e,t,a)}catch(k){ht(a,a.return,k)}}}m&512&&Ti(a,a.return);break;case 12:if(m&4){m=Fo(),yo(e,a),e=a.stateNode,e.effectDuration+=gi(m);try{P(a,sv,a,t,qs,e.effectDuration)}catch(k){ht(a,a.return,k)}}else yo(e,a);break;case 31:yo(e,a),m&4&&mv(e,a);break;case 13:yo(e,a),m&4&&hv(e,a),m&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(m=Xw.bind(null,a),y4(e,m))));break;case 22:if(m=a.memoizedState!==null||us,!m){t=t!==null&&t.memoizedState!==null||Pt,b=us;var S=Pt;us=m,(Pt=t)&&!S?(vo(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&fu(a,ke,ze)):yo(e,a),us=b,Pt=S}break;case 30:break;default:yo(e,a)}(a.mode&Xe)!==Le&&0<=ke&&0<=ze&&((zt||.05<kt)&&lo(a,ke,ze,kt,Ut),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<ze-ke&&(cv(a.return.alternate,a.return)||ro(a,ke,ze,"Mount"))),Wa(n),uo(r),Ut=l,zt=d}function dv(e){var t=e.alternate;t!==null&&(e.alternate=null,dv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&z(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jo(e,t,a){for(a=a.child;a!==null;)fv(e,t,a),a=a.sibling}function fv(e,t,a){if(Sa&&typeof Sa.onCommitFiberUnmount=="function")try{Sa.onCommitFiberUnmount(xl,a)}catch(S){Do||(Do=!0,console.error("React instrumentation encountered an error: %o",S))}var n=Ka(),r=co(),l=fo(),d=mo();switch(a.tag){case 26:Pt||bo(a,t),Jo(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Pt||bo(a,t);var m=Kt,b=Ga;ks(a.type)&&(Kt=a.stateNode,Ga=!1),Jo(e,t,a),P(a,Li,a.stateNode),Kt=m,Ga=b;break;case 5:Pt||bo(a,t);case 6:if(m=Kt,b=Ga,Kt=null,Jo(e,t,a),Kt=m,Ga=b,Kt!==null)if(Ga)try{P(a,c4,Kt,a.stateNode)}catch(S){ht(a,t,S)}else try{P(a,i4,Kt,a.stateNode)}catch(S){ht(a,t,S)}break;case 18:Kt!==null&&(Ga?(e=Kt,p0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),gl(e)):p0(Kt,a.stateNode));break;case 4:m=Kt,b=Ga,Kt=a.stateNode.containerInfo,Ga=!0,Jo(e,t,a),Kt=m,Ga=b;break;case 0:case 11:case 14:case 15:il(ja,a,t),Pt||sh(a,t,ln),Jo(e,t,a);break;case 1:Pt||(bo(a,t),m=a.stateNode,typeof m.componentWillUnmount=="function"&&ov(a,t,m)),Jo(e,t,a);break;case 21:Jo(e,t,a);break;case 22:Pt=(m=Pt)||a.memoizedState!==null,Jo(e,t,a),Pt=m;break;default:Jo(e,t,a)}(a.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(a,ke,ze,kt,Ut),Wa(n),uo(r),Ut=l,zt=d}function mv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{P(t,x4,e)}catch(a){ht(t,t.return,a)}}}function hv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{P(t,S4,e)}catch(a){ht(t,t.return,a)}}function Lw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H1),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ju(e,t){var a=Lw(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),Ro)if(Xl!==null&&Ql!==null)Ai(Ql,Xl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=Qw.bind(null,e,n);n.then(r,r)}})}function Ya(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=e,l=t,d=a[n],m=Ka(),b=l;e:for(;b!==null;){switch(b.tag){case 27:if(ks(b.type)){Kt=b.stateNode,Ga=!1;break e}break;case 5:Kt=b.stateNode,Ga=!1;break e;case 3:case 4:Kt=b.stateNode.containerInfo,Ga=!0;break e}b=b.return}if(Kt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");fv(r,l,d),Kt=null,Ga=!1,(d.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&ro(d,ke,ze,"Unmount"),Wa(m),r=d,l=r.alternate,l!==null&&(l.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pv(t,e),t=t.sibling}function pv(e,t){var a=Ka(),n=co(),r=fo(),l=mo(),d=e.alternate,m=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ya(t,e),qa(e),m&4&&(il(ja|_n,e,e.return),Ci(ja|_n,e),sh(e,e.return,ln|_n));break;case 1:if(Ya(t,e),qa(e),m&512&&(Pt||d===null||bo(d,d.return)),m&64&&us&&(m=e.updateQueue,m!==null&&(d=m.callbacks,d!==null))){var b=m.shared.hiddenCallbacks;m.shared.hiddenCallbacks=b===null?d:b.concat(d)}break;case 26:if(b=Jn,Ya(t,e),qa(e),m&512&&(Pt||d===null||bo(d,d.return)),m&4){var S=d!==null?d.memoizedState:null;if(m=e.memoizedState,d===null)if(m===null)if(e.stateNode===null){e:{m=e.type,d=e.memoizedProps,b=b.ownerDocument||b;t:switch(m){case"title":S=b.getElementsByTagName("title")[0],(!S||S[Gi]||S[ga]||S.namespaceURI===Nl||S.hasAttribute("itemprop"))&&(S=b.createElement(m),b.head.insertBefore(S,b.querySelector("head > title"))),pa(S,m,d),S[ga]=e,Re(S),m=S;break e;case"link":var k=R0("link","href",b).get(m+(d.href||""));if(k){for(var M=0;M<k.length;M++)if(S=k[M],S.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&S.getAttribute("rel")===(d.rel==null?null:d.rel)&&S.getAttribute("title")===(d.title==null?null:d.title)&&S.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){k.splice(M,1);break t}}S=b.createElement(m),pa(S,m,d),b.head.appendChild(S);break;case"meta":if(k=R0("meta","content",b).get(m+(d.content||""))){for(M=0;M<k.length;M++)if(S=k[M],dt(d.content,"content"),S.getAttribute("content")===(d.content==null?null:""+d.content)&&S.getAttribute("name")===(d.name==null?null:d.name)&&S.getAttribute("property")===(d.property==null?null:d.property)&&S.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&S.getAttribute("charset")===(d.charSet==null?null:d.charSet)){k.splice(M,1);break t}}S=b.createElement(m),pa(S,m,d),b.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+m+'". This is a bug in React.')}S[ga]=e,Re(S),m=S}e.stateNode=m}else C0(b,e.type,e.stateNode);else e.stateNode=D0(b,m,e.memoizedProps);else S!==m?(S===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):S.count--,m===null?C0(b,e.type,e.stateNode):D0(b,m,e.memoizedProps)):m===null&&e.stateNode!==null&&lh(e,e.memoizedProps,d.memoizedProps)}break;case 27:Ya(t,e),qa(e),m&512&&(Pt||d===null||bo(d,d.return)),d!==null&&m&4&&lh(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Ya(t,e),qa(e),m&512&&(Pt||d===null||bo(d,d.return)),e.flags&32){b=e.stateNode;try{P(e,m0,b)}catch(ye){ht(e,e.return,ye)}}m&4&&e.stateNode!=null&&(b=e.memoizedProps,lh(e,b,d!==null?d.memoizedProps:b)),m&1024&&(Gp=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ya(t,e),qa(e),m&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");m=e.memoizedProps,d=d!==null?d.memoizedProps:m,b=e.stateNode;try{P(e,l4,b,d,m)}catch(ye){ht(e,e.return,ye)}}break;case 3:if(b=Fo(),mf=null,S=Jn,Jn=od(t.containerInfo),Ya(t,e),Jn=S,qa(e),m&4&&d!==null&&d.memoizedState.isDehydrated)try{P(e,v4,t.containerInfo)}catch(ye){ht(e,e.return,ye)}Gp&&(Gp=!1,gv(e)),t.effectDuration+=Nu(b);break;case 4:m=Jn,Jn=od(e.stateNode.containerInfo),Ya(t,e),qa(e),Jn=m;break;case 12:m=Fo(),Ya(t,e),qa(e),e.stateNode.effectDuration+=gi(m);break;case 31:Ya(t,e),qa(e),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,Ju(e,m)));break;case 13:Ya(t,e),qa(e),e.child.flags&8192&&e.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Pd=ca()),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,Ju(e,m)));break;case 22:b=e.memoizedState!==null;var _=d!==null&&d.memoizedState!==null,B=us,me=Pt;if(us=B||b,Pt=me||_,Ya(t,e),Pt=me,us=B,_&&!b&&!B&&!me&&(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&fu(e,ke,ze),qa(e),m&8192)e:for(t=e.stateNode,t._visibility=b?t._visibility&~Wi:t._visibility|Wi,!b||d===null||_||us||Pt||(Nr(e),(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&ro(e,ke,ze,"Disconnect")),d=null,t=e;;){if(t.tag===5||t.tag===26){if(d===null){_=d=t;try{S=_.stateNode,b?P(_,d4,S):P(_,h4,_.stateNode,_.memoizedProps)}catch(ye){ht(_,_.return,ye)}}}else if(t.tag===6){if(d===null){_=t;try{k=_.stateNode,b?P(_,f4,k):P(_,p4,k,_.memoizedProps)}catch(ye){ht(_,_.return,ye)}}}else if(t.tag===18){if(d===null){_=t;try{M=_.stateNode,b?P(_,u4,M):P(_,m4,_.stateNode)}catch(ye){ht(_,_.return,ye)}}}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;d===t&&(d=null),t=t.return}d===t&&(d=null),t.sibling.return=t.return,t=t.sibling}m&4&&(m=e.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,Ju(e,d))));break;case 19:Ya(t,e),qa(e),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,Ju(e,m)));break;case 30:break;case 21:break;default:Ya(t,e),qa(e)}(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&((zt||.05<kt)&&lo(e,ke,ze,kt,Ut),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<ze-ke&&(cv(e.return.alternate,e.return)||ro(e,ke,ze,"Mount"))),Wa(a),uo(n),Ut=r,zt=l}function qa(e){var t=e.flags;if(t&2){try{P(e,Mw,e)}catch(a){ht(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)uv(e,t.alternate,t),t=t.sibling}function bv(e){var t=Ka(),a=co(),n=fo(),r=mo();switch(e.tag){case 0:case 11:case 14:case 15:sh(e,e.return,ln),Nr(e);break;case 1:bo(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&ov(e,e.return,l),Nr(e);break;case 27:P(e,Li,e.stateNode);case 26:case 5:bo(e,e.return),Nr(e);break;case 22:e.memoizedState===null&&Nr(e);break;case 30:Nr(e);break;default:Nr(e)}(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(e,ke,ze,kt,Ut),Wa(t),uo(a),Ut=n,zt=r}function Nr(e){for(e=e.child;e!==null;)bv(e),e=e.sibling}function yv(e,t,a,n){var r=Ka(),l=co(),d=fo(),m=mo(),b=a.flags;switch(a.tag){case 0:case 11:case 15:vo(e,a,n),tv(a,ln);break;case 1:if(vo(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&P(a,Up,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{P(a,vw,t,e)}catch(S){ht(a,a.return,S)}}n&&b&64&&nv(a),Ti(a,a.return);break;case 27:iv(a);case 26:case 5:vo(e,a,n),n&&t===null&&b&4&&rv(a),Ti(a,a.return);break;case 12:if(n&&b&4){b=Fo(),vo(e,a,n),n=a.stateNode,n.effectDuration+=gi(b);try{P(a,sv,a,t,qs,n.effectDuration)}catch(S){ht(a,a.return,S)}}else vo(e,a,n);break;case 31:vo(e,a,n),n&&b&4&&mv(e,a);break;case 13:vo(e,a,n),n&&b&4&&hv(e,a);break;case 22:a.memoizedState===null&&vo(e,a,n),Ti(a,a.return);break;case 30:break;default:vo(e,a,n)}(a.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(a,ke,ze,kt,Ut),Wa(r),uo(l),Ut=d,zt=m}function vo(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)yv(e,t.alternate,t,a),t=t.sibling}function uh(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&&br(e),a!=null&&pi(a))}function dh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(br(t),e!=null&&pi(e))}function Xn(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var l=t.sibling;vv(e,t,a,n,l!==null?l.actualStartTime:r),t=l}}function vv(e,t,a,n,r){var l=Ka(),d=co(),m=fo(),b=mo(),S=Hs,k=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Xe)!==Le&&0<t.actualStartTime&&(t.flags&1)!==0&&mu(t,t.actualStartTime,r,na,a),Xn(e,t,a,n,r),k&2048&&av(t,Ma|_n);break;case 1:(t.mode&Xe)!==Le&&0<t.actualStartTime&&((t.flags&128)!==0?Ff(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&mu(t,t.actualStartTime,r,na,a)),Xn(e,t,a,n,r);break;case 3:var M=Fo(),_=na;na=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Xn(e,t,a,n,r),na=_,k&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(br(n),a!=null&&pi(a))),e.passiveEffectDuration+=Nu(M);break;case 12:if(k&2048){k=Fo(),Xn(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=gi(k);try{P(t,jw,t,t.alternate,qs,e.passiveEffectDuration)}catch(B){ht(t,t.return,B)}}else Xn(e,t,a,n,r);break;case 31:k=na,M=t.alternate!==null?t.alternate.memoizedState:null,_=t.memoizedState,M!==null&&_===null?(_=t.deletions,_!==null&&0<_.length&&_[0].tag===18?(na=!1,M=M.hydrationErrors,M!==null&&Ff(t,t.actualStartTime,r,M)):na=!0):na=!1,Xn(e,t,a,n,r),na=k;break;case 13:k=na,M=t.alternate!==null?t.alternate.memoizedState:null,_=t.memoizedState,M===null||M.dehydrated===null||_!==null&&_.dehydrated!==null?na=!1:(_=t.deletions,_!==null&&0<_.length&&_[0].tag===18?(na=!1,M=M.hydrationErrors,M!==null&&Ff(t,t.actualStartTime,r,M)):na=!0),Xn(e,t,a,n,r),na=k;break;case 23:break;case 22:_=t.stateNode,M=t.alternate,t.memoizedState!==null?_._visibility&es?Xn(e,t,a,n,r):_i(e,t,a,n,r):_._visibility&es?Xn(e,t,a,n,r):(_._visibility|=es,cl(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Xe)===Le||na||(e=t.actualStartTime,0<=e&&.05<r-e&&fu(t,e,r),0<=ke&&0<=ze&&.05<ze-ke&&fu(t,ke,ze))),k&2048&&uh(M,t);break;case 24:Xn(e,t,a,n,r),k&2048&&dh(t.alternate,t);break;default:Xn(e,t,a,n,r)}(t.mode&Xe)!==Le&&((e=!na&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&ro(t,a,r,"Mount")),0<=ke&&0<=ze&&((zt||.05<kt)&&lo(t,ke,ze,kt,Ut),e&&.05<ze-ke&&ro(t,ke,ze,"Mount"))),Wa(l),uo(d),Ut=m,zt=b,Hs=S}function cl(e,t,a,n,r,l){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var d=t.sibling;xv(e,t,a,n,r,d!==null?d.actualStartTime:l),t=d}}function xv(e,t,a,n,r,l){var d=Ka(),m=co(),b=fo(),S=mo(),k=Hs;r&&(t.mode&Xe)!==Le&&0<t.actualStartTime&&(t.flags&1)!==0&&mu(t,t.actualStartTime,l,na,a);var M=t.flags;switch(t.tag){case 0:case 11:case 15:cl(e,t,a,n,r,l),av(t,Ma);break;case 23:break;case 22:var _=t.stateNode;t.memoizedState!==null?_._visibility&es?cl(e,t,a,n,r,l):_i(e,t,a,n,l):(_._visibility|=es,cl(e,t,a,n,r,l)),r&&M&2048&&uh(t.alternate,t);break;case 24:cl(e,t,a,n,r,l),r&&M&2048&&dh(t.alternate,t);break;default:cl(e,t,a,n,r,l)}(t.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(t,ke,ze,kt,Ut),Wa(d),uo(m),Ut=b,zt=S,Hs=k}function _i(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var l=t.child;l!==null;){t=l.sibling;var d=e,m=a,b=n,S=t!==null?t.actualStartTime:r,k=Hs;(l.mode&Xe)!==Le&&0<l.actualStartTime&&(l.flags&1)!==0&&mu(l,l.actualStartTime,S,na,m);var M=l.flags;switch(l.tag){case 22:_i(d,l,m,b,S),M&2048&&uh(l.alternate,l);break;case 24:_i(d,l,m,b,S),M&2048&&dh(l.alternate,l);break;default:_i(d,l,m,b,S)}Hs=k,l=t}}function ul(e,t,a){if(e.subtreeFlags&vc)for(e=e.child;e!==null;)Sv(e,t,a),e=e.sibling}function Sv(e,t,a){switch(e.tag){case 26:ul(e,t,a),e.flags&vc&&e.memoizedState!==null&&D4(a,Jn,e.memoizedState,e.memoizedProps);break;case 5:ul(e,t,a);break;case 3:case 4:var n=Jn;Jn=od(e.stateNode.containerInfo),ul(e,t,a),Jn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=vc,vc=16777216,ul(e,t,a),vc=n):ul(e,t,a));break;default:ul(e,t,a)}}function Nv(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 Oi(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],r=Ka();da=n,Dv(n,e),(n.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&ro(n,ke,ze,"Unmount"),Wa(r)}Nv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ev(e),e=e.sibling}function Ev(e){var t=Ka(),a=co(),n=fo(),r=mo();switch(e.tag){case 0:case 11:case 15:Oi(e),e.flags&2048&&rh(e,e.return,Ma|_n);break;case 3:var l=Fo();Oi(e),e.stateNode.passiveEffectDuration+=Nu(l);break;case 12:l=Fo(),Oi(e),e.stateNode.passiveEffectDuration+=gi(l);break;case 22:l=e.stateNode,e.memoizedState!==null&&l._visibility&es&&(e.return===null||e.return.tag!==13)?(l._visibility&=~es,Pu(e),(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&ro(e,ke,ze,"Disconnect")):Oi(e);break;default:Oi(e)}(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(e,ke,ze,kt,Ut),Wa(t),uo(a),zt=r,Ut=n}function Pu(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],r=Ka();da=n,Dv(n,e),(n.mode&Xe)!==Le&&0<=ke&&0<=ze&&.05<ze-ke&&ro(n,ke,ze,"Unmount"),Wa(r)}Nv(e)}for(e=e.child;e!==null;)wv(e),e=e.sibling}function wv(e){var t=Ka(),a=co(),n=fo(),r=mo();switch(e.tag){case 0:case 11:case 15:rh(e,e.return,Ma),Pu(e);break;case 22:var l=e.stateNode;l._visibility&es&&(l._visibility&=~es,Pu(e));break;default:Pu(e)}(e.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(e,ke,ze,kt,Ut),Wa(t),uo(a),zt=r,Ut=n}function Dv(e,t){for(;da!==null;){var a=da,n=a,r=t,l=Ka(),d=co(),m=fo(),b=mo();switch(n.tag){case 0:case 11:case 15:rh(n,r,Ma);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool,r!=null&&br(r));break;case 24:pi(n.memoizedState.cache)}if((n.mode&Xe)!==Le&&0<=ke&&0<=ze&&(zt||.05<kt)&&lo(n,ke,ze,kt,Ut),Wa(l),uo(d),zt=b,Ut=m,n=a.child,n!==null)n.return=a,da=n;else e:for(a=e;da!==null;){if(n=da,l=n.sibling,d=n.return,dv(n),n===a){da=null;break e}if(l!==null){l.return=d,da=l;break e}da=d}}}function Vw(){lR.forEach(function(e){return e()})}function Rv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||X.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function tn(e){if((ut&oa)!==fa&&Fe!==0)return Fe&-Fe;var t=X.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),vh()):Vn()}function Cv(){if(Qa===0)if((Fe&536870912)===0||at){var e=gd;gd<<=1,(gd&3932160)===0&&(gd=262144),Qa=e}else Qa=536870912;return e=rn.current,e!==null&&(e.flags|=32),Qa}function Mt(e,t,a){if(Zl&&console.error("useInsertionEffect must not schedule updates."),tg&&(tf=!0),(e===St&&(bt===Vr||bt===Hr)||e.cancelPendingCommit!==null)&&(fl(e,0),Us(e,Fe,Qa,!1)),gn(e,a),(ut&oa)!==fa&&e===St){if(wo)switch(t.tag){case 0:case 11:case 15:e=Je&&Q(Je)||"Unknown",eS.has(e)||(eS.add(e),t=Q(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:W1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),W1=!0)}}else Ro&&Vo(e,t,a),Iw(t),e===St&&((ut&oa)===fa&&(Ps|=a),jt===Is&&Us(e,Fe,Qa,!1)),xo(e)}function Tv(e,t,a){if((ut&(oa|cn))!==fa)throw Error("Should not already be working.");if(Fe!==0&&Je!==null){var n=Je,r=ca();switch(Qx){case Nc:case Vr:var l=sc;Ct&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",l,r,Sn,void 0,"primary-light")):console.timeStamp("Suspended",l,r,Sn,void 0,"primary-light"));break;case Hr:l=sc,Ct&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",l,r,Sn,void 0,"primary-light")):console.timeStamp("Action",l,r,Sn,void 0,"primary-light"));break;default:Ct&&(n=r-sc,3>n||console.timeStamp("Blocked",sc,r,Sn,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}l=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||to(e,t))?Bw(e,t):mh(e,t,!0);var d=a;do{if(l===ds){Fl&&!a&&Us(e,t,0,!1),t=bt,sc=It(),Qx=t;break}else{if(n=ca(),r=e.current.alternate,d&&!Hw(r)){qn(t),r=ua,l=n,!Ct||l<=r||(Vt?Vt.run(console.timeStamp.bind(console,"Teared Render",r,l,it,st,"error")):console.timeStamp("Teared Render",r,l,it,st,"error")),Er(t,n),l=mh(e,t,!1),d=!1;continue}if(l===Lr){if(d=t,e.errorRecoveryDisabledLanes&d)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){qn(t),If(ua,n,t,Vt),Er(t,n),t=m;e:{n=e,l=d,d=wc;var b=n.current.memoizedState.isDehydrated;if(b&&(fl(n,m).flags|=256),m=mh(n,m,!1),m!==Lr){if(Fp&&!b){n.errorRecoveryDisabledLanes|=l,Ps|=l,l=Is;break e}n=za,za=d,n!==null&&(za===null?za=n:za.push.apply(za,n))}l=m}if(d=!1,l!==Lr)continue;n=ca()}}if(l===Sc){qn(t),If(ua,n,t,Vt),Er(t,n),fl(e,0),Us(e,t,0,!0);break}e:{switch(a=e,l){case ds:case Sc:throw Error("Root did not complete. This is a bug in React.");case Is:if((t&4194048)!==t)break;case Fd:qn(t),Tb(ua,n,t,Vt),Er(t,n),r=t,(r&127)!==0?Ad=n:(r&4194048)!==0&&(kd=n),Us(a,t,Qa,!Zs);break e;case Lr:za=null;break;case Qd:case B1:break;default:throw Error("Unknown root exit status.")}if(X.actQueue!==null)hh(a,r,t,za,Dc,Jd,Qa,Ps,Br,l,null,null,ua,n);else{if((t&62914560)===t&&(d=Pd+q1-ca(),10<d)){if(Us(a,t,Qa,!Zs),zo(a,0,!0)!==0)break e;Pn=t,a.timeoutHandle=iS(_v.bind(null,a,r,za,Dc,Jd,t,Qa,Ps,Br,Zs,l,"Throttled",ua,n),d);break e}_v(a,r,za,Dc,Jd,t,Qa,Ps,Br,Zs,l,null,ua,n)}}}break}while(!0);xo(e)}function _v(e,t,a,n,r,l,d,m,b,S,k,M,_,B){e.timeoutHandle=Xr;var me=t.subtreeFlags,ye=null;if((me&8192||(me&16785408)===16785408)&&(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qo},Sv(t,l,ye),me=(l&62914560)===l?Pd-ca():(l&4194048)===l?Y1-ca():0,me=R4(ye,me),me!==null)){Pn=l,e.cancelPendingCommit=me(hh.bind(null,e,t,l,a,n,r,d,m,b,k,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,_,B)),Us(e,l,d,!S);return}hh(e,t,l,a,n,r,d,m,b,k,ye,M,_,B)}function Hw(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 r=a[n],l=r.getSnapshot;r=r.value;try{if(!Aa(l(),r))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 Us(e,t,a,n){t&=~Ip,t&=~Ps,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var l=31-_a(r),d=1<<l;n[l]=-1,r&=~d}a!==0&&Da(e,a,t)}function dl(){return(ut&(oa|cn))===fa?(ki(0),!1):!0}function fh(){if(Je!==null){if(bt===Xa)var e=Je.return;else e=Je,vu(),Em(e),Vl=null,hc=0,e=Je;for(;e!==null;)ev(e.alternate,e),e=e.return;Je=null}}function Er(e,t){(e&127)!==0&&(Tr=t),(e&4194048)!==0&&(ss=t),(e&62914560)!==0&&(Gx=t),(e&2080374784)!==0&&(Xx=t)}function fl(e,t){Ct&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",st,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",st,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",st,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",st,"primary-light"));var a=ua;if(ua=It(),Fe!==0&&0<a){if(qn(Fe),jt===Qd||jt===Is)Tb(a,ua,t,Vt);else{var n=ua,r=Vt;if(Ct&&!(n<=a)){var l=(t&738197653)===t?"tertiary-dark":"primary-dark",d=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,d,a,n,it,st,l)):console.timeStamp(d,a,n,it,st,l)}}Er(Fe,ua)}if(a=Vt,Vt=null,(t&127)!==0){Vt=ac,r=0<=Oo&&Oo<Tr?Tr:Oo,n=0<=_r&&_r<Tr?Tr:_r,l=0<=n?n:0<=r?r:ua,0<=Ad?(qn(2),_b(Ad,l,t,a)):jd&127,a=r;var m=n,b=nc,S=0<Ml,k=Gs===tc,M=Gs===Ud;if(r=ua,n=ac,l=Rp,d=Cp,Ct){if(it="Blocking",0<a?a>r&&(a=r):a=r,0<m?m>a&&(m=a):m=a,b!==null&&a>m){var _=S?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+b,m,a,it,st,_)):console.timeStamp(S?"Consecutive":"Event: "+b,m,a,it,st,_)}r>a&&(m=k?"error":(t&738197653)===t?"tertiary-light":"primary-light",k=M?"Promise Resolved":k?"Cascading Update":5<r-a?"Update Blocked":"Update",M=[],d!=null&&M.push(["Component name",d]),l!=null&&M.push(["Method name",l]),a={start:a,end:r,detail:{devtools:{properties:M,track:it,trackGroup:st,color:m}}},n?n.run(performance.measure.bind(performance,k,a)):performance.measure(k,a))}Oo=-1.1,Gs=0,Cp=Rp=null,Ad=-1.1,Ml=_r,_r=-1.1,Tr=It()}if((t&4194048)!==0&&(Vt=oc,r=0<=rs&&rs<ss?ss:rs,a=0<=Cn&&Cn<ss?ss:Cn,n=0<=Xs&&Xs<ss?ss:Xs,l=0<=n?n:0<=a?a:ua,0<=kd?(qn(256),_b(kd,l,t,Vt)):jd&4194048,M=n,m=Or,b=0<Qs,S=Tp===Ud,l=ua,n=oc,d=Yx,k=qx,Ct&&(it="Transition",0<a?a>l&&(a=l):a=l,0<r?r>a&&(r=a):r=a,0<M?M>r&&(M=r):M=r,r>M&&m!==null&&(_=b?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+m,M,r,it,st,_)):console.timeStamp(b?"Consecutive":"Event: "+m,M,r,it,st,_)),a>r&&(n?n.run(console.timeStamp.bind(console,"Action",r,a,it,st,"primary-dark")):console.timeStamp("Action",r,a,it,st,"primary-dark")),l>a&&(r=S?"Promise Resolved":5<l-a?"Update Blocked":"Update",M=[],k!=null&&M.push(["Component name",k]),d!=null&&M.push(["Method name",d]),a={start:a,end:l,detail:{devtools:{properties:M,track:it,trackGroup:st,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Cn=rs=-1.1,Tp=0,kd=-1.1,Qs=Xs,Xs=-1.1,ss=It()),(t&62914560)!==0&&(jd&62914560)!==0&&(qn(4194304),Zf(Gx,ua)),(t&2080374784)!==0&&(jd&2080374784)!==0&&(qn(268435456),Zf(Xx,ua)),a=e.timeoutHandle,a!==Xr&&(e.timeoutHandle=Xr,xR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Pn=0,fh(),St=e,Je=a=Go(e.current,null),Fe=t,bt=Xa,un=null,Zs=!1,Fl=to(e,t),Fp=!1,jt=ds,Br=Qa=Ip=Ps=Js=0,za=wc=null,Jd=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-_a(n),l=1<<r,t|=e[r],n&=~l;return Ao=t,hu(),e=zx(),1e3<e-Mx&&(X.recentlyCreatedOwnerStacks=0,Mx=e),In.discardPendingWarnings(),a}function Ov(e,t){He=null,X.H=yc,X.getCurrentStack=null,wo=!1,on=null,t===Ll||t===Vd?(t=Pb(),bt=Nc):t===Ap?(t=Pb(),bt=$1):bt=t===Yp?Qp:t!==null&&typeof t=="object"&&typeof t.then=="function"?Ec:Id,un=t;var a=Je;a===null?(jt=Sc,Gu(e,Pa(t,e.current))):a.mode&Xe&&um(a)}function Uv(){var e=rn.current;return e===null?!0:(Fe&4194048)===Fe?Tn===null:(Fe&62914560)===Fe||(Fe&536870912)!==0?e===Tn:!1}function Av(){var e=X.H;return X.H=yc,e===null?yc:e}function kv(){var e=X.A;return X.A=rR,e}function Ku(e){Vt===null&&(Vt=e._debugTask==null?null:e._debugTask)}function Wu(){jt=Is,Zs||(Fe&4194048)!==Fe&&rn.current!==null||(Fl=!0),(Js&134217727)===0&&(Ps&134217727)===0||St===null||Us(St,Fe,Qa,!1)}function mh(e,t,a){var n=ut;ut|=oa;var r=Av(),l=kv();if(St!==e||Fe!==t){if(Ro){var d=e.memoizedUpdaters;0<d.size&&(Ai(e,Fe),d.clear()),ya(e,t)}Dc=null,fl(e,t)}t=!1,d=jt;e:do try{if(bt!==Xa&&Je!==null){var m=Je,b=un;switch(bt){case Qp:fh(),d=Fd;break e;case Nc:case Vr:case Hr:case Ec:rn.current===null&&(t=!0);var S=bt;if(bt=Xa,un=null,ml(e,m,b,S),a&&Fl){d=ds;break e}break;default:S=bt,bt=Xa,un=null,ml(e,m,b,S)}}jv(),d=jt;break}catch(k){Ov(e,k)}while(!0);return t&&e.shellSuspendCounter++,vu(),ut=n,X.H=r,X.A=l,Je===null&&(St=null,Fe=0,hu()),d}function jv(){for(;Je!==null;)Mv(Je)}function Bw(e,t){var a=ut;ut|=oa;var n=Av(),r=kv();if(St!==e||Fe!==t){if(Ro){var l=e.memoizedUpdaters;0<l.size&&(Ai(e,Fe),l.clear()),ya(e,t)}Dc=null,Kd=ca()+G1,fl(e,t)}else Fl=to(e,t);e:do try{if(bt!==Xa&&Je!==null)t:switch(t=Je,l=un,bt){case Id:bt=Xa,un=null,ml(e,t,l,Id);break;case Vr:case Hr:if(Zb(l)){bt=Xa,un=null,zv(t);break}t=function(){bt!==Vr&&bt!==Hr||St!==e||(bt=Zd),xo(e)},l.then(t,t);break e;case Nc:bt=Zd;break e;case $1:bt=Xp;break e;case Zd:Zb(l)?(bt=Xa,un=null,zv(t)):(bt=Xa,un=null,ml(e,t,l,Zd));break;case Xp:var d=null;switch(Je.tag){case 26:d=Je.memoizedState;case 5:case 27:var m=Je;if(d?T0(d):m.stateNode.complete){bt=Xa,un=null;var b=m.sibling;if(b!==null)Je=b;else{var S=m.return;S!==null?(Je=S,ed(S)):Je=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}bt=Xa,un=null,ml(e,t,l,Xp);break;case Ec:bt=Xa,un=null,ml(e,t,l,Ec);break;case Qp:fh(),jt=Fd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}X.actQueue!==null?jv():$w();break}catch(k){Ov(e,k)}while(!0);return vu(),X.H=n,X.A=r,ut=a,Je!==null?ds:(St=null,Fe=0,hu(),jt)}function $w(){for(;Je!==null&&!B4();)Mv(Je)}function Mv(e){var t=e.alternate;(e.mode&Xe)!==Le?(cm(e),t=P(e,nh,t,e,Ao),um(e)):t=P(e,nh,t,e,Ao),e.memoizedProps=e.pendingProps,t===null?ed(e):Je=t}function zv(e){var t=P(e,Yw,e);e.memoizedProps=e.pendingProps,t===null?ed(e):Je=t}function Yw(e){var t=e.alternate,a=(e.mode&Xe)!==Le;switch(a&&cm(e),e.tag){case 15:case 0:t=Fy(t,e,e.pendingProps,e.type,void 0,Fe);break;case 11:t=Fy(t,e,e.pendingProps,e.type.render,e.ref,Fe);break;case 5:Em(e);default:ev(t,e),e=Je=Mb(e,Ao),t=nh(t,e,Ao)}return a&&um(e),t}function ml(e,t,a,n){vu(),Em(t),Vl=null,hc=0;var r=t.return;try{if(Rw(e,r,t,a,Fe)){jt=Sc,Gu(e,Pa(a,e.current)),Je=null;return}}catch(l){if(r!==null)throw Je=r,l;jt=Sc,Gu(e,Pa(a,e.current)),Je=null;return}t.flags&32768?(at||n===Id?e=!0:Fl||(Fe&536870912)!==0?e=!1:(Zs=e=!0,(n===Vr||n===Hr||n===Nc||n===Ec)&&(n=rn.current,n!==null&&n.tag===13&&(n.flags|=16384))),Lv(t,e)):ed(t)}function ed(e){var t=e;do{if((t.flags&32768)!==0){Lv(t,Zs);return}var a=t.alternate;if(e=t.return,cm(t),a=P(t,_w,a,t,Ao),(t.mode&Xe)!==Le&&Gb(t),a!==null){Je=a;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);jt===ds&&(jt=B1)}function Lv(e,t){do{var a=Ow(e.alternate,e);if(a!==null){a.flags&=32767,Je=a;return}if((e.mode&Xe)!==Le){Gb(e),a=e.actualDuration;for(var n=e.child;n!==null;)a+=n.actualDuration,n=n.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Je=e;return}Je=e=a}while(e!==null);jt=Fd,Je=null}function hh(e,t,a,n,r,l,d,m,b,S,k,M,_,B){e.cancelPendingCommit=null;do Ui();while(Wt!==Ws);if(In.flushLegacyContextWarning(),In.flushPendingUnsafeLifecycleWarnings(),(ut&(oa|cn))!==fa)throw Error("Should not already be working.");if(qn(a),S===Lr?If(_,B,a,Vt):n!==null?mw(_,B,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Vt):fw(_,B,a,Vt),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(l=t.lanes|t.childLanes,l|=Sp,Ha(e,a,l,d,m,b),e===St&&(Je=St=null,Fe=0),Il=t,er=e,Pn=a,Pp=l,Wp=r,J1=n,Kp=B,P1=M,Kn=Wd,K1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fw(vl,function(){return Uc=window.event,Kn===Wd&&(Kn=Jp),Yv(),null})):(e.callbackNode=null,e.callbackPriority=0),os=null,qs=It(),M!==null&&hw(B,qs,M,Vt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=X.T,X.T=null,r=pt.p,pt.p=xn,d=ut,ut|=cn;try{zw(e,t,a)}finally{ut=d,pt.p=r,X.T=n}}Wt=Q1,Vv(),Hv(),Bv()}}function Vv(){if(Wt===Q1){Wt=Ws;var e=er,t=Il,a=Pn,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=X.T,X.T=null;var r=pt.p;pt.p=xn;var l=ut;ut|=cn;try{Xl=a,Ql=e,Eu(),pv(t,e),Ql=Xl=null,a=ug;var d=Db(e.containerInfo),m=a.focusedElem,b=a.selectionRange;if(d!==m&&m&&m.ownerDocument&&wb(m.ownerDocument.documentElement,m)){if(b!==null&&Xf(m)){var S=b.start,k=b.end;if(k===void 0&&(k=S),"selectionStart"in m)m.selectionStart=S,m.selectionEnd=Math.min(k,m.value.length);else{var M=m.ownerDocument||document,_=M&&M.defaultView||window;if(_.getSelection){var B=_.getSelection(),me=m.textContent.length,ye=Math.min(b.start,me),Et=b.end===void 0?ye:Math.min(b.end,me);!B.extend&&ye>Et&&(d=Et,Et=ye,ye=d);var rt=Eb(m,ye),C=Eb(m,Et);if(rt&&C&&(B.rangeCount!==1||B.anchorNode!==rt.node||B.anchorOffset!==rt.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var O=M.createRange();O.setStart(rt.node,rt.offset),B.removeAllRanges(),ye>Et?(B.addRange(O),B.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),B.addRange(O))}}}}for(M=[],B=m;B=B.parentNode;)B.nodeType===1&&M.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<M.length;m++){var U=M[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}gf=!!cg,ug=cg=null}finally{ut=l,pt.p=r,X.T=n}}e.current=t,Wt=F1}}function Hv(){if(Wt===F1){Wt=Ws;var e=K1;if(e!==null){qs=It();var t=ns,a=qs;!Ct||a<=t||console.timeStamp(e,t,a,it,st,"secondary-light")}e=er,t=Il,a=Pn;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=X.T,X.T=null;var r=pt.p;pt.p=xn;var l=ut;ut|=cn;try{Xl=a,Ql=e,Eu(),uv(e,t.alternate,t),Ql=Xl=null}finally{ut=l,pt.p=r,X.T=n}}e=Kp,t=P1,ns=It(),e=t===null?e:qs,t=ns,a=Kn===Zp,n=Vt,os!==null?Ob(e,t,os,!1,n):!Ct||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")),Wt=I1}}function Bv(){if(Wt===Z1||Wt===I1){if(Wt===Z1){var e=ns;ns=It();var t=ns,a=Kn===Zp;!Ct||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?" error":"secondary-light"),Kn!==Zp&&(Kn=X1)}Wt=Ws,$4(),e=er;var n=Il;t=Pn,a=J1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?Wt=ef:(Wt=Ws,Il=er=null,$v(e,e.pendingLanes),$r=0,Cc=null);var l=e.pendingLanes;if(l===0&&(Ks=null),r||Qv(e),l=Ho(t),n=n.stateNode,Sa&&typeof Sa.onCommitFiberRoot=="function")try{var d=(n.current.flags&128)===128;switch(l){case xn:var m=Wh;break;case Co:m=ep;break;case Ko:m=vl;break;case yd:m=tp;break;default:m=vl}Sa.onCommitFiberRoot(xl,n,m,d)}catch(M){Do||(Do=!0,console.error("React instrumentation encountered an error: %o",M))}if(Ro&&e.memoizedUpdaters.clear(),Vw(),a!==null){d=X.T,m=pt.p,pt.p=xn,X.T=null;try{var b=e.onRecoverableError;for(n=0;n<a.length;n++){var S=a[n],k=qw(S.stack);P(S.source,b,S.value,k)}}finally{X.T=d,pt.p=m}}(Pn&3)!==0&&Ui(),xo(e),l=e.pendingLanes,(t&261930)!==0&&(l&42)!==0?(zd=!0,e===eg?Rc++:(Rc=0,eg=e)):Rc=0,r||Er(t,ns),ki(0)}}function qw(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function $v(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pi(t)))}function Ui(){return Vv(),Hv(),Bv(),Yv()}function Yv(){if(Wt!==ef)return!1;var e=er,t=Pp;Pp=0;var a=Ho(Pn),n=Ko>a?Ko:a;a=X.T;var r=pt.p;try{pt.p=n,X.T=null;var l=Wp;Wp=null,n=er;var d=Pn;if(Wt=Ws,Il=er=null,Pn=0,(ut&(oa|cn))!==fa)throw Error("Cannot flush passive effects while already rendering.");qn(d),tg=!0,tf=!1;var m=0;if(os=null,m=ca(),Kn===X1)Zf(ns,m,WD);else{var b=ns,S=m,k=Kn===Jp;!Ct||S<=b||(Vt?Vt.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",b,S,it,st,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",b,S,it,st,"secondary-light"))}b=ut,ut|=cn;var M=n.current;Eu(),Ev(M);var _=n.current;M=Kp,Eu(),vv(n,_,d,l,M),Qv(n),ut=b;var B=ca();if(_=m,M=Vt,os!==null?Ob(_,B,os,!0,M):!Ct||B<=_||(M?M.run(console.timeStamp.bind(console,"Remaining Effects",_,B,it,st,"secondary-dark")):console.timeStamp("Remaining Effects",_,B,it,st,"secondary-dark")),Er(d,B),ki(0,!1),tf?n===Cc?$r++:($r=0,Cc=n):$r=0,tf=tg=!1,Sa&&typeof Sa.onPostCommitFiberRoot=="function")try{Sa.onPostCommitFiberRoot(xl,n)}catch(ye){Do||(Do=!0,console.error("React instrumentation encountered an error: %o",ye))}var me=n.current.stateNode;return me.effectDuration=0,me.passiveEffectDuration=0,!0}finally{pt.p=r,X.T=a,$v(e,t)}}function qv(e,t,a){t=Pa(a,t),Xb(t),t=Qm(e.stateNode,t,2),e=Cs(e,t,2),e!==null&&(gn(e,2),xo(e))}function ht(e,t,a){if(Zl=!1,e.tag===3)qv(e,e,a);else{for(;t!==null;){if(t.tag===3){qv(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ks===null||!Ks.has(n))){e=Pa(a,e),Xb(e),a=Fm(2),n=Cs(t,a,2),n!==null&&(Im(a,n,t,e),gn(n,2),xo(n));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,a)}}function ph(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new iR;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(Fp=!0,r.add(a),n=Gw.bind(null,e,t,a),Ro&&Ai(e,a),t.then(n,n))}function Gw(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Oo&&(Tr=Oo=It(),ac=Od("Promise Resolved"),Gs=Ud):(a&4194048)!==0&&0>Cn&&(ss=Cn=It(),oc=Od("Promise Resolved"),Tp=Ud),Rv()&&X.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),St===e&&(Fe&a)===a&&(jt===Is||jt===Qd&&(Fe&62914560)===Fe&&ca()-Pd<q1?(ut&oa)===fa&&fl(e,0):Ip|=a,Br===Fe&&(Br=0)),xo(e)}function Gv(e,t){t===0&&(t=Ln()),e=xa(e,t),e!==null&&(gn(e,t),xo(e))}function Xw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Gv(e,a)}function Qw(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}n!==null&&n.delete(t),Gv(e,a)}function gh(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var n=e,r=t,l=r.type===fd;l=a||l,r.tag!==22?r.flags&67108864?l&&P(r,Xv,n,r):gh(n,r,l):r.memoizedState===null&&(l&&r.flags&8192?P(r,Xv,n,r):r.subtreeFlags&67108864&&P(r,gh,n,r,l)),t=t.sibling}}function Xv(e,t){Ne(!0);try{bv(t),wv(t),yv(e,t.alternate,t,!1),xv(e,t,0,null,!1,0)}finally{Ne(!1)}}function Qv(e){var t=!0;e.current.mode&(Na|Fn)||(t=!1),gh(e,e.current,t)}function Fv(e){if((ut&oa)===fa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=Q(e)||"ReactComponent",af!==null){if(af.has(t))return;af.add(t)}else af=new Set([t]);P(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ai(e,t){Ro&&e.memoizedUpdaters.forEach(function(a){Vo(e,a,t)})}function Fw(e,t){var a=X.actQueue;return a!==null?(a.push(t),dR):Kh(e,t)}function Iw(e){Rv()&&X.actQueue===null&&P(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,Q(e))})}function xo(e){e!==Jl&&e.next===null&&(Jl===null?nf=Jl=e:Jl=Jl.next=e),of=!0,X.actQueue!==null?ng||(ng=!0,Pv()):ag||(ag=!0,Pv())}function ki(e,t){if(!og&&of){og=!0;do for(var a=!1,n=nf;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var l=0;else{var d=n.suspendedLanes,m=n.pingedLanes;l=(1<<31-_a(42|e)+1)-1,l&=r&~(d&~m),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,Jv(n,l))}else l=Fe,l=zo(n,n===St?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Xr),(l&3)===0||to(n,l)||(a=!0,Jv(n,l));n=n.next}while(a);og=!1}}function Zw(){Uc=window.event,bh()}function bh(){of=ng=ag=!1;var e=0;tr!==0&&a4()&&(e=tr);for(var t=ca(),a=null,n=nf;n!==null;){var r=n.next,l=Iv(n,t);l===0?(n.next=null,a===null?nf=r:a.next=r,r===null&&(Jl=a)):(a=n,(e!==0||(l&3)!==0)&&(of=!0)),n=r}Wt!==Ws&&Wt!==ef||ki(e),tr!==0&&(tr=0)}function Iv(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var d=31-_a(l),m=1<<d,b=r[d];b===-1?((m&a)===0||(m&n)!==0)&&(r[d]=pn(m,t)):b<=t&&(e.expiredLanes|=m),l&=~m}if(t=St,a=Fe,a=zo(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Xr),n=e.callbackNode,a===0||e===t&&(bt===Vr||bt===Hr)||e.cancelPendingCommit!==null)return n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||to(e,a)){if(t=a&-a,t!==e.callbackPriority||X.actQueue!==null&&n!==sg)yh(n);else return t;switch(Ho(a)){case xn:case Co:a=ep;break;case Ko:a=vl;break;case yd:a=tp;break;default:a=vl}return n=Zv.bind(null,e),X.actQueue!==null?(X.actQueue.push(n),a=sg):a=Kh(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&yh(n),e.callbackPriority=2,e.callbackNode=null,2}function Zv(e,t){if(zd=Md=!1,Uc=window.event,Wt!==Ws&&Wt!==ef)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Kn===Wd&&(Kn=Jp),Ui()&&e.callbackNode!==a)return null;var n=Fe;return n=zo(e,e===St?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Xr),n===0?null:(Tv(e,n,t),Iv(e,ca()),e.callbackNode!=null&&e.callbackNode===a?Zv.bind(null,e):null)}function Jv(e,t){if(Ui())return null;Md=zd,zd=!1,Tv(e,t,!0)}function yh(e){e!==sg&&e!==null&&H4(e)}function Pv(){X.actQueue!==null&&X.actQueue.push(function(){return bh(),null}),SR(function(){(ut&(oa|cn))!==fa?Kh(Wh,Zw):bh()})}function vh(){if(tr===0){var e=Ur;e===0&&(e=pd,pd<<=1,(pd&261888)===0&&(pd=256)),tr=e}return tr}function Kv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(dt(e,"action"),di(""+e))}function Wv(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 Jw(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var l=Kv((r[Oa]||null).action),d=n.submitter;d&&(t=(t=d[Oa]||null)?Kv(t.formAction):d.getAttribute("formAction"),t!==null&&(l=t,d=null));var m=new Ed("action","action",null,n,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(tr!==0){var b=d?Wv(r,d):new FormData(r),S={pending:!0,data:b,method:r.method,action:l};Object.freeze(S),Hm(a,S,null,b)}}else typeof l=="function"&&(m.preventDefault(),b=d?Wv(r,d):new FormData(r),S={pending:!0,data:b,method:r.method,action:l},Object.freeze(S),Hm(a,S,l,b))},currentTarget:r}]})}}function td(e,t,a){e.currentTarget=a;try{t(e)}catch(n){bp(n)}e.currentTarget=null}function e0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a];e:{var r=void 0,l=n.event;if(n=n.listeners,t)for(var d=n.length-1;0<=d;d--){var m=n[d],b=m.instance,S=m.currentTarget;if(m=m.listener,b!==r&&l.isPropagationStopped())break e;b!==null?P(b,td,l,m,S):td(l,m,S),r=b}else for(d=0;d<n.length;d++){if(m=n[d],b=m.instance,S=m.currentTarget,m=m.listener,b!==r&&l.isPropagationStopped())break e;b!==null?P(b,td,l,m,S):td(l,m,S),r=b}}}}function ot(e,t){rg.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[ap];a===void 0&&(a=t[ap]=new Set);var n=e+"__bubble";a.has(n)||(t0(t,e,2,!1),a.add(n))}function xh(e,t,a){rg.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var n=0;t&&(n|=4),t0(a,e,n,t)}function Sh(e){if(!e[sf]){e[sf]=!0,P0.forEach(function(a){a!=="selectionchange"&&(rg.has(a)||xh(a,!1,e),xh(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[sf]||(t[sf]=!0,xh("selectionchange",!1,t))}}function t0(e,t,a,n){switch(j0(t)){case xn:var r=O4;break;case Co:r=U4;break;default:r=Lh}a=r.bind(null,t,a,e),r=void 0,!lp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Nh(e,t,a,n,r){var l=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var m=n.stateNode.containerInfo;if(m===r)break;if(d===4)for(d=n.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;m!==null;){if(d=ee(m),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){n=l=d;continue e}m=m.parentNode}}n=n.return}fb(function(){var S=l,k=qf(a),M=[];e:{var _=jx.get(e);if(_!==void 0){var B=Ed,me=e;switch(e){case"keypress":if(cu(a)===0)break e;case"keydown":case"keyup":B=RD;break;case"focusin":me="focus",B=dp;break;case"focusout":me="blur",B=dp;break;case"beforeblur":case"afterblur":B=dp;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=xx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=hD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=_D;break;case Ox:case Ux:case Ax:B=bD;break;case kx:B=UD;break;case"scroll":case"scrollend":B=fD;break;case"wheel":B=kD;break;case"copy":case"cut":case"paste":B=vD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Nx;break;case"toggle":case"beforetoggle":B=MD}var ye=(t&4)!==0,Et=!ye&&(e==="scroll"||e==="scrollend"),rt=ye?_!==null?_+"Capture":null:_;ye=[];for(var C=S,O;C!==null;){var U=C;if(O=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||O===null||rt===null||(U=fi(C,rt),U!=null&&ye.push(ji(C,U,O))),Et)break;C=C.return}0<ye.length&&(_=new B(_,me,null,a,k),M.push({event:_,listeners:ye}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",_&&a!==Xi&&(me=a.relatedTarget||a.fromElement)&&(ee(me)||me[Ls]))break e;if((B||_)&&(_=k.window===k?k:(_=k.ownerDocument)?_.defaultView||_.parentWindow:window,B?(me=a.relatedTarget||a.toElement,B=S,me=me?ee(me):null,me!==null&&(Et=I(me),ye=me.tag,me!==Et||ye!==5&&ye!==27&&ye!==6)&&(me=null)):(B=null,me=S),B!==me)){if(ye=xx,U="onMouseLeave",rt="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ye=Nx,U="onPointerLeave",rt="onPointerEnter",C="pointer"),Et=B==null?_:Ee(B),O=me==null?_:Ee(me),_=new ye(U,C+"leave",B,a,k),_.target=Et,_.relatedTarget=O,U=null,ee(k)===S&&(ye=new ye(rt,C+"enter",me,a,k),ye.target=O,ye.relatedTarget=Et,U=ye),Et=U,B&&me)t:{for(ye=Pw,rt=B,C=me,O=0,U=rt;U;U=ye(U))O++;U=0;for(var F=C;F;F=ye(F))U++;for(;0<O-U;)rt=ye(rt),O--;for(;0<U-O;)C=ye(C),U--;for(;O--;){if(rt===C||C!==null&&rt===C.alternate){ye=rt;break t}rt=ye(rt),C=ye(C)}ye=null}else ye=null;B!==null&&a0(M,_,B,ye,!1),me!==null&&Et!==null&&a0(M,Et,me,ye,!0)}}e:{if(_=S?Ee(S):window,B=_.nodeName&&_.nodeName.toLowerCase(),B==="select"||B==="input"&&_.type==="file")var pe=vb;else if(bb(_))if(Tx)pe=cw;else{pe=lw;var Be=rw}else B=_.nodeName,!B||B.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?S&&ui(S.elementType)&&(pe=vb):pe=iw;if(pe&&(pe=pe(e,S))){yb(M,pe,a,k);break e}Be&&Be(e,_,S),e==="focusout"&&S&&_.type==="number"&&S.memoizedProps.value!=null&&je(_,"number",_.value)}switch(Be=S?Ee(S):window,e){case"focusin":(bb(Be)||Be.contentEditable==="true")&&(Cl=Be,mp=S,Ki=null);break;case"focusout":Ki=mp=Cl=null;break;case"mousedown":hp=!0;break;case"contextmenu":case"mouseup":case"dragend":hp=!1,Rb(M,a,k);break;case"selectionchange":if(HD)break;case"keydown":case"keyup":Rb(M,a,k)}var Ae;if(fp)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Rl?pb(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===Ex&&(De="onCompositionStart");De&&(wx&&a.locale!=="ko"&&(Rl||De!=="onCompositionStart"?De==="onCompositionEnd"&&Rl&&(Ae=mb()):(Vs=k,ip="value"in Vs?Vs.value:Vs.textContent,Rl=!0)),Be=ad(S,De),0<Be.length&&(De=new Sx(De,e,null,a,k),M.push({event:De,listeners:Be}),Ae?De.data=Ae:(Ae=gb(a),Ae!==null&&(De.data=Ae)))),(Ae=LD?aw(e,a):nw(e,a))&&(De=ad(S,"onBeforeInput"),0<De.length&&(Be=new SD("onBeforeInput","beforeinput",null,a,k),M.push({event:Be,listeners:De}),Be.data=Ae)),Jw(M,e,S,a,k)}e0(M,t)})}function ji(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ad(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,l=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||l===null||(r=fi(e,a),r!=null&&n.unshift(ji(e,r,l)),r=fi(e,t),r!=null&&n.push(ji(e,r,l))),e.tag===3)return n;e=e.return}return[]}function Pw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function a0(e,t,a,n,r){for(var l=t._reactName,d=[];a!==null&&a!==n;){var m=a,b=m.alternate,S=m.stateNode;if(m=m.tag,b!==null&&b===n)break;m!==5&&m!==26&&m!==27||S===null||(b=S,r?(S=fi(a,l),S!=null&&d.unshift(ji(a,S,b))):r||(S=fi(a,l),S!=null&&d.push(ji(a,S,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}function Eh(e,t){KE(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||yx||(yx=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:wr,possibleRegistrationNames:np};ui(e)||typeof t.is=="string"||ew(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function ia(e,t,a,n){t!==a&&(a=As(a),As(t)!==a&&(n[e]=t))}function Kw(e,t,a){t.forEach(function(n){a[s0(n)]=n==="style"?Dh(e):e.getAttribute(n)})}function So(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function n0(e,t){return e=e.namespaceURI===xd||e.namespaceURI===Nl?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function As(e){return ta(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",$e(e)),Za(e)),(typeof e=="string"?e:""+e).replace(fR,`
181
+ `).replace(mR,"")}function o0(e,t){return t=As(t),As(e)===t}function vt(e,t,a,n,r,l){switch(a){case"children":typeof n=="string"?(iu(n,t,!1),t==="body"||t==="textarea"&&n===""||ci(e,n)):(typeof n=="number"||typeof n=="bigint")&&(iu(""+n,t,!1),t!=="body"&&ci(e,""+n));break;case"className":tl(e,"class",n);break;case"tabIndex":tl(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":tl(e,a,n);break;case"style":cb(e,n,l);break;case"data":if(t!=="object"){tl(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}dt(n,a),n=di(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(n!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof n=="function"&&(r.encType==null&&r.method==null||cf||(cf=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||lf||(lf=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||rf?t!=="button"||r.type==null||r.type==="submit"||rf?typeof n=="function"&&(r.name==null||nS||(nS=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||cf||(cf=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||lf||(lf=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(rf=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(rf=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),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 l=="function"&&(a==="formAction"?(t!=="input"&&vt(e,t,"name",r.name,r,null),vt(e,t,"formEncType",r.formEncType,r,null),vt(e,t,"formMethod",r.formMethod,r,null),vt(e,t,"formTarget",r.formTarget,r,null)):(vt(e,t,"encType",r.encType,r,null),vt(e,t,"method",r.method,r,null),vt(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}dt(n,a),n=di(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&So(a,n),e.onclick=qo);break;case"onScroll":n!=null&&(typeof n!="function"&&So(a,n),ot("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&So(a,n),ot("scrollend",e));break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");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}dt(n,a),a=di(""+n),e.setAttributeNS(Yr,"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"?(dt(n,a),e.setAttribute(a,""+n)):e.removeAttribute(a);break;case"inert":n!==""||uf[a]||(uf[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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"?(dt(n,a),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?(dt(n,a),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):(dt(n,a),e.setAttribute(a,n));break;case"popover":ot("beforetoggle",e),ot("toggle",e),$o(e,"popover",n);break;case"xlinkActuate":Hn(e,Yr,"xlink:actuate",n);break;case"xlinkArcrole":Hn(e,Yr,"xlink:arcrole",n);break;case"xlinkRole":Hn(e,Yr,"xlink:role",n);break;case"xlinkShow":Hn(e,Yr,"xlink:show",n);break;case"xlinkTitle":Hn(e,Yr,"xlink:title",n);break;case"xlinkType":Hn(e,Yr,"xlink:type",n);break;case"xmlBase":Hn(e,lg,"xml:base",n);break;case"xmlLang":Hn(e,lg,"xml:lang",n);break;case"xmlSpace":Hn(e,lg,"xml:space",n);break;case"is":l!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),$o(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":oS||n==null||typeof n!="object"||(oS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",n));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=ub(a),$o(e,a,n)):wr.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&So(a,n)}}function wh(e,t,a,n,r,l){switch(a){case"style":cb(e,n,l);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof n=="string"?ci(e,n):(typeof n=="number"||typeof n=="bigint")&&ci(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&So(a,n),ot("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&So(a,n),ot("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&So(a,n),e.onclick=qo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(wr.hasOwnProperty(a))n!=null&&typeof n!="function"&&So(a,n);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),l=e[Oa]||null,l=l!=null?l[a]:null,typeof l=="function"&&e.removeEventListener(t,l,r),typeof n=="function")){typeof l!="function"&&l!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):$o(e,a,n)}}}function pa(e,t,a){switch(Eh(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",e),ot("load",e);var n=!1,r=!1,l;for(l in a)if(a.hasOwnProperty(l)){var d=a[l];if(d!=null)switch(l){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vt(e,t,l,d,a,null)}}r&&vt(e,t,"srcSet",a.srcSet,a,null),n&&vt(e,t,"src",a.src,a,null);return;case"input":sa("input",a),ot("invalid",e);var m=l=d=r=null,b=null,S=null;for(n in a)if(a.hasOwnProperty(n)){var k=a[n];if(k!=null)switch(n){case"name":r=k;break;case"type":d=k;break;case"checked":b=k;break;case"defaultChecked":S=k;break;case"value":l=k;break;case"defaultValue":m=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vt(e,t,n,k,a,null)}}Ue(e,a),Me(e,l,m,b,S,d,r,!1);return;case"select":sa("select",a),ot("invalid",e),n=d=l=null;for(r in a)if(a.hasOwnProperty(r)&&(m=a[r],m!=null))switch(r){case"value":l=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:vt(e,t,r,m,a,null)}Dt(e,a),t=l,a=d,e.multiple=!!n,t!=null?We(e,!!n,t,!1):a!=null&&We(e,!!n,a,!0);return;case"textarea":sa("textarea",a),ot("invalid",e),l=r=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":r=m;break;case"children":l=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:vt(e,t,d,m,a,null)}Bt(e,a),mt(e,n,r,l);return;case"option":_e(e,a);for(b in a)a.hasOwnProperty(b)&&(n=a[b],n!=null)&&(b==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":vt(e,t,b,n,a,null));return;case"dialog":ot("beforetoggle",e),ot("toggle",e),ot("cancel",e),ot("close",e);break;case"iframe":case"object":ot("load",e);break;case"video":case"audio":for(n=0;n<Tc.length;n++)ot(Tc[n],e);break;case"image":ot("error",e),ot("load",e);break;case"details":ot("toggle",e);break;case"embed":case"source":case"link":ot("error",e),ot("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(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vt(e,t,S,n,a,null)}return;default:if(ui(t)){for(k in a)a.hasOwnProperty(k)&&(n=a[k],n!==void 0&&wh(e,t,k,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&vt(e,t,m,n,a,null))}function Ww(e,t,a,n){switch(Eh(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,l=null,d=null,m=null,b=null,S=null,k=null;for(B in a){var M=a[B];if(a.hasOwnProperty(B)&&M!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":b=M;default:n.hasOwnProperty(B)||vt(e,t,B,null,n,M)}}for(var _ in n){var B=n[_];if(M=a[_],n.hasOwnProperty(_)&&(B!=null||M!=null))switch(_){case"type":l=B;break;case"name":r=B;break;case"checked":S=B;break;case"defaultChecked":k=B;break;case"value":d=B;break;case"defaultValue":m=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:B!==M&&vt(e,t,_,B,n,M)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,n=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,t||!n||aS||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),aS=!0),!t||n||tS||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),tS=!0),we(e,d,m,b,S,k,l,r);return;case"select":B=d=m=_=null;for(l in a)if(b=a[l],a.hasOwnProperty(l)&&b!=null)switch(l){case"value":break;case"multiple":B=b;default:n.hasOwnProperty(l)||vt(e,t,l,null,n,b)}for(r in n)if(l=n[r],b=a[r],n.hasOwnProperty(r)&&(l!=null||b!=null))switch(r){case"value":_=l;break;case"defaultValue":m=l;break;case"multiple":d=l;default:l!==b&&vt(e,t,r,l,n,b)}n=m,t=d,a=B,_!=null?We(e,!!t,_,!1):!!a!=!!t&&(n!=null?We(e,!!t,n,!0):We(e,!!t,t?[]:"",!1));return;case"textarea":B=_=null;for(m in a)if(r=a[m],a.hasOwnProperty(m)&&r!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:vt(e,t,m,null,n,r)}for(d in n)if(r=n[d],l=a[d],n.hasOwnProperty(d)&&(r!=null||l!=null))switch(d){case"value":_=r;break;case"defaultValue":B=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==l&&vt(e,t,d,r,n,l)}ra(e,_,B);return;case"option":for(var me in a)_=a[me],a.hasOwnProperty(me)&&_!=null&&!n.hasOwnProperty(me)&&(me==="selected"?e.selected=!1:vt(e,t,me,null,n,_));for(b in n)_=n[b],B=a[b],n.hasOwnProperty(b)&&_!==B&&(_!=null||B!=null)&&(b==="selected"?e.selected=_&&typeof _!="function"&&typeof _!="symbol":vt(e,t,b,_,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 ye in a)_=a[ye],a.hasOwnProperty(ye)&&_!=null&&!n.hasOwnProperty(ye)&&vt(e,t,ye,null,n,_);for(S in n)if(_=n[S],B=a[S],n.hasOwnProperty(S)&&_!==B&&(_!=null||B!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vt(e,t,S,_,n,B)}return;default:if(ui(t)){for(var Et in a)_=a[Et],a.hasOwnProperty(Et)&&_!==void 0&&!n.hasOwnProperty(Et)&&wh(e,t,Et,void 0,n,_);for(k in n)_=n[k],B=a[k],!n.hasOwnProperty(k)||_===B||_===void 0&&B===void 0||wh(e,t,k,_,n,B);return}}for(var rt in a)_=a[rt],a.hasOwnProperty(rt)&&_!=null&&!n.hasOwnProperty(rt)&&vt(e,t,rt,null,n,_);for(M in n)_=n[M],B=a[M],!n.hasOwnProperty(M)||_===B||_==null&&B==null||vt(e,t,M,_,n,B)}function s0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Dh(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var n=e[a];t[n]=e.getPropertyValue(n)}return t}function r0(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var n,r=n="",l;for(l in t)if(t.hasOwnProperty(l)){var d=t[l];d!=null&&typeof d!="boolean"&&d!==""&&(l.indexOf("--")===0?(wt(d,l),n+=r+l+":"+(""+d).trim()):typeof d!="number"||d===0||gx.has(l)?(wt(d,l),n+=r+l.replace(dx,"-$1").toLowerCase().replace(fx,"-ms-")+":"+(""+d).trim()):n+=r+l.replace(dx,"-$1").toLowerCase().replace(fx,"-ms-")+":"+d+"px",r=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=As(n),As(t)!==n&&(a.style=Dh(e)))}}function vn(e,t,a,n,r,l){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(dt(n,t),e===""+n)return}ia(t,e,n,l)}function l0(e,t,a,n,r,l){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof n){case"function":case"symbol":return}if(!n)return}else switch(typeof n){case"function":case"symbol":break;default:if(n)return}ia(t,e,n,l)}function Rh(e,t,a,n,r,l){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":return}else if(n!=null)switch(typeof n){case"function":case"symbol":break;default:if(dt(n,a),e===""+n)return}ia(t,e,n,l)}function i0(e,t,a,n,r,l){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(n))return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(!isNaN(n)&&(dt(n,t),e===""+n))return}ia(t,e,n,l)}function Ch(e,t,a,n,r,l){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(dt(n,t),a=di(""+n),e===a)return}ia(t,e,n,l)}function c0(e,t,a,n){for(var r={},l=new Set,d=e.attributes,m=0;m<d.length;m++)switch(d[m].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:l.add(d[m].name)}if(ui(t)){for(var b in a)if(a.hasOwnProperty(b)){var S=a[b];if(S!=null){if(wr.hasOwnProperty(b))typeof S!="function"&&So(b,S);else if(a.suppressHydrationWarning!==!0)switch(b){case"children":typeof S!="string"&&typeof S!="number"||ia("children",e.textContent,S,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=n0(e,S),ia(b,d,S,r));continue;case"style":l.delete(b),r0(e,S,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":l.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":l.delete("class"),d=Bo(e,"class",S),ia("className",d,S,r);continue;default:n.context===fs&&t!=="svg"&&t!=="math"?l.delete(b.toLowerCase()):l.delete(b),d=Bo(e,b,S),ia(b,d,S,r)}}}}else for(S in a)if(a.hasOwnProperty(S)&&(b=a[S],b!=null)){if(wr.hasOwnProperty(S))typeof b!="function"&&So(S,b);else if(a.suppressHydrationWarning!==!0)switch(S){case"children":typeof b!="string"&&typeof b!="number"||ia("children",e.textContent,b,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=n0(e,b),d!==b&&(r[S]={__html:d}));continue;case"className":vn(e,S,"class",b,l,r);continue;case"tabIndex":vn(e,S,"tabindex",b,l,r);continue;case"style":l.delete(S),r0(e,b,r);continue;case"multiple":l.delete(S),ia(S,e.multiple,b,r);continue;case"muted":l.delete(S),ia(S,e.muted,b,r);continue;case"autoFocus":l.delete("autofocus"),ia(S,e.autofocus,b,r);continue;case"data":if(t!=="object"){l.delete(S),d=e.getAttribute("data"),ia(S,d,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&S==="href"||t==="object"&&S==="data")){console.error(S==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}Ch(e,S,S,b,l,r);continue;case"action":case"formAction":if(d=e.getAttribute(S),typeof b=="function"){l.delete(S.toLowerCase()),S==="formAction"?(l.delete("name"),l.delete("formenctype"),l.delete("formmethod"),l.delete("formtarget")):(l.delete("enctype"),l.delete("method"),l.delete("target"));continue}else if(d===hR){l.delete(S.toLowerCase()),ia(S,"function",b,r);continue}Ch(e,S,S.toLowerCase(),b,l,r);continue;case"xlinkHref":Ch(e,S,"xlink:href",b,l,r);continue;case"contentEditable":Rh(e,S,"contenteditable",b,l,r);continue;case"spellCheck":Rh(e,S,"spellcheck",b,l,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Rh(e,S,S,b,l,r);continue;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":l0(e,S,S.toLowerCase(),b,l,r);continue;case"capture":case"download":e:{m=e;var k=d=S,M=r;if(l.delete(k),m=m.getAttribute(k),m===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&m==="")break e;break;default:if(dt(b,d),m===""+b)break e}ia(d,m,b,M)}continue;case"cols":case"rows":case"size":case"span":e:{if(m=e,k=d=S,M=r,l.delete(k),m=m.getAttribute(k),m===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(dt(b,d),m===""+b))break e}ia(d,m,b,M)}continue;case"rowSpan":i0(e,S,"rowspan",b,l,r);continue;case"start":i0(e,S,S,b,l,r);continue;case"xHeight":vn(e,S,"x-height",b,l,r);continue;case"xlinkActuate":vn(e,S,"xlink:actuate",b,l,r);continue;case"xlinkArcrole":vn(e,S,"xlink:arcrole",b,l,r);continue;case"xlinkRole":vn(e,S,"xlink:role",b,l,r);continue;case"xlinkShow":vn(e,S,"xlink:show",b,l,r);continue;case"xlinkTitle":vn(e,S,"xlink:title",b,l,r);continue;case"xlinkType":vn(e,S,"xlink:type",b,l,r);continue;case"xmlBase":vn(e,S,"xml:base",b,l,r);continue;case"xmlLang":vn(e,S,"xml:lang",b,l,r);continue;case"xmlSpace":vn(e,S,"xml:space",b,l,r);continue;case"inert":b!==""||uf[S]||(uf[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),l0(e,S,S,b,l,r);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){m=ub(S),d=!1,n.context===fs&&t!=="svg"&&t!=="math"?l.delete(m.toLowerCase()):(k=S.toLowerCase(),k=Sd.hasOwnProperty(k)&&Sd[k]||null,k!==null&&k!==S&&(d=!0,l.delete(k)),l.delete(m));e:if(k=e,M=m,m=b,Ra(M))if(k.hasAttribute(M))k=k.getAttribute(M),dt(m,M),m=k===""+m?m:k;else{switch(typeof m){case"function":case"symbol":break e;case"boolean":if(k=M.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break e}m=m===void 0?void 0:null}else m=void 0;d||ia(S,m,b,r)}}}return 0<l.size&&a.suppressHydrationWarning!==!0&&Kw(e,l,r),Object.keys(r).length===0?null:r}function e4(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function u0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],l=r.transferSize,d=r.initiatorType,m=r.duration;if(l&&m&&u0(d)){for(d=0,m=r.responseEnd,n+=1;n<a.length;n++){var b=a[n],S=b.startTime;if(S>m)break;var k=b.transferSize,M=b.initiatorType;k&&u0(M)&&(b=b.responseEnd,d+=k*(b<m?1:(m-S)/(b-S)))}if(--n,t+=8*(l+d)/(r.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}function nd(e){return e.nodeType===9?e:e.ownerDocument}function d0(e){switch(e){case Nl:return Kl;case xd:return ff;default:return fs}}function f0(e,t){if(e===fs)switch(t){case"svg":return Kl;case"math":return ff;default:return fs}return e===Kl&&t==="foreignObject"?fs:e}function Th(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}function a4(){var e=window.event;return e&&e.type==="popstate"?e===dg?!1:(dg=e,!0):(dg=null,!1)}function Mi(){var e=window.event;return e&&e!==Uc?e.type:null}function zi(){var e=window.event;return e&&e!==Uc?e.timeStamp:-1.1}function n4(e){setTimeout(function(){throw e})}function o4(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function s4(){}function r4(e,t,a,n){Ww(e,t,a,n),e[Oa]=n}function m0(e){ci(e,"")}function l4(e,t,a){e.nodeValue=a}function h0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Oa]||null;if(t!==null){var a=ce(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,P(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,P(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function ks(e){return e==="head"}function i4(e,t){e.removeChild(t)}function c4(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function p0(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===Oc||a===df){if(n===0){e.removeChild(r),gl(t);return}n--}else if(a===_c||a===ar||a===Gr||a===Pl||a===qr)n++;else if(a===gR)Li(e.ownerDocument.documentElement);else if(a===yR){a=e.ownerDocument.head,Li(a);for(var l=a.firstChild;l;){var d=l.nextSibling,m=l.nodeName;l[Gi]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&l.rel.toLowerCase()==="stylesheet"||a.removeChild(l),l=d}}else a===bR&&Li(e.ownerDocument.body);a=r}while(a);gl(t)}function g0(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===Oc){if(e===0)break;e--}else a!==_c&&a!==ar&&a!==Gr&&a!==Pl||e++;a=n}while(a)}function u4(e){g0(e,!0)}function d4(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function f4(e){e.nodeValue=""}function m4(e){g0(e,!1)}function h4(e,t){t=t[vR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function p4(e,t){e.nodeValue=t}function _h(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":_h(a),z(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function g4(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Gi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){dt(r.name,"name");var l=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function b4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=an(e.nextSibling),e===null))return null;return e}function b0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function Oh(e){return e.data===ar||e.data===Gr}function Uh(e){return e.data===Pl||e.data===ar&&e.ownerDocument.readyState!==rS}function y4(e,t){var a=e.ownerDocument;if(e.data===Gr)e._reactRetry=t;else if(e.data!==ar||a.readyState!==rS)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function an(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===_c||t===Pl||t===ar||t===Gr||t===qr||t===ig||t===sS)break;if(t===Oc||t===df)return null}}return e}function y0(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},n=e.attributes,r=0;r<n.length;r++){var l=n[r];a[s0(l.name)]=l.name.toLowerCase()==="style"?Dh(e):l.value}return{type:t,props:a}}return e.nodeType===8?e.data===qr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function v0(e,t,a){return a===null||a[pR]!==!0?(e.nodeValue===t?e=null:(t=As(t),e=As(e.nodeValue)===t?null:e.nodeValue),e):null}function Ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Oc||a===df){if(t===0)return an(e.nextSibling);t--}else a!==_c&&a!==Pl&&a!==ar&&a!==Gr&&a!==qr||t++}e=e.nextSibling}return null}function x0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===_c||a===Pl||a===ar||a===Gr||a===qr){if(t===0)return e;t--}else a!==Oc&&a!==df||t++}e=e.previousSibling}return null}function v4(e){gl(e)}function x4(e){gl(e)}function S4(e){gl(e)}function S0(e,t,a,n,r){switch(r&&Yf(e,n.ancestorInfo),t=nd(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function N4(e,t,a,n){if(!a[Ls]&&ce(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);pa(a,e,t),a[ga]=n,a[Oa]=t}function Li(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);z(e)}function od(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function N0(e,t,a){var n=Wl;if(n&&typeof t=="string"&&t){var r=be(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),fS.has(r)||(fS.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),pa(t,"link",e),Re(t),n.head.appendChild(t)))}}function E0(e,t,a,n){var r=(r=Ms.current)?od(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=hl(a.href),t=Ve(r).hoistableStyles,n=t.get(a),n||(n={type:"style",instance:null,count:0,state:null},t.set(a,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=hl(a.href);var l=Ve(r).hoistableStyles,d=l.get(e);if(!d&&(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:Qr,preload:null}},l.set(e,d),(l=r.querySelector(Vi(e)))&&!l._p&&(d.instance=l,d.state.loading=Ac|Un),!An.has(e))){var m={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};An.set(e,m),l||E4(r,e,m,d.state)}if(t&&n===null)throw a=`
182
+
183
+ - `+sd(t)+`
184
+ + `+sd(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return d}if(t&&n!==null)throw a=`
185
+
186
+ - `+sd(t)+`
187
+ + `+sd(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=pl(a),t=Ve(r).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function sd(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Qn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Qn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Qn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function hl(e){return'href="'+be(e)+'"'}function Vi(e){return'link[rel="stylesheet"]['+e+"]"}function w0(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function E4(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=Ac:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=Ac}),t.addEventListener("error",function(){return n.loading|=uS}),pa(t,"link",a),Re(t),e.head.appendChild(t))}function pl(e){return'[src="'+be(e)+'"]'}function Hi(e){return"script[async]"+e}function D0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+be(a.href)+'"]');if(n)return t.instance=n,Re(n),n;var r=Ke({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Re(n),pa(n,"style",r),rd(n,a.precedence,e),t.instance=n;case"stylesheet":r=hl(a.href);var l=e.querySelector(Vi(r));if(l)return t.state.loading|=Un,t.instance=l,Re(l),l;n=w0(a),(r=An.get(r))&&kh(n,r),l=(e.ownerDocument||e).createElement("link"),Re(l);var d=l;return d._p=new Promise(function(m,b){d.onload=m,d.onerror=b}),pa(l,"link",n),t.state.loading|=Un,rd(l,a.precedence,e),t.instance=l;case"script":return l=pl(a.src),(r=e.querySelector(Hi(l)))?(t.instance=r,Re(r),r):(n=a,(r=An.get(l))&&(n=Ke({},a),jh(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Re(r),pa(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Un)===Qr&&(n=t.instance,t.state.loading|=Un,rd(n,a.precedence,e));return t.instance}function rd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,l=r,d=0;d<n.length;d++){var m=n[d];if(m.dataset.precedence===t)l=m;else if(l!==r)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function kh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function R0(e,t,a){if(mf===null){var n=new Map,r=mf=new Map;r.set(a,n)}else r=mf,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var l=a[r];if(!(l[Gi]||l[ga]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!==Nl){var d=l.getAttribute(t)||"";d=e+d;var m=n.get(d);m?m.push(l):n.set(d,[l])}}return n}function C0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function w4(e,t,a){var n=!a.ancestorInfo.containerTagInScope;if(a.context===Kl||t.itemProp!=null)return!n||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){n&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,l=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),l!=null&&a.push("`disabled`"),r=e4(a,"and"),r+=a.length===1?" prop":" props",l=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,l,r)}n&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&n&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){n&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":n&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function T0(e){return!(e.type==="stylesheet"&&(e.state.loading&dS)===Qr)}function D4(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&Un)===Qr){if(a.instance===null){var r=hl(n.href),l=t.querySelector(Vi(r));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ld.bind(e),t.then(e,e)),a.state.loading|=Un,a.instance=l,Re(l);return}l=t.ownerDocument||t,n=w0(n),(r=An.get(r))&&kh(n,r),l=l.createElement("link"),Re(l);var d=l;d._p=new Promise(function(m,b){d.onload=m,d.onerror=b}),pa(l,"link",n),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&dS)===Qr&&(e.count++,a=ld.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function R4(e,t){return e.stylesheets&&e.count===0&&id(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&id(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},NR+t);0<e.imgBytes&&mg===0&&(mg=125*t4()*wR);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&id(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>mg?50:ER)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function ld(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)id(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function id(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hf=new Map,t.forEach(C4,e),hf=null,ld.call(e))}function C4(e,t){if(!(t.state.loading&Un)){var a=hf.get(e);if(a)var n=a.get(hg);else{a=new Map,hf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<r.length;l++){var d=r[l];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(hg,n)}r=t.instance,d=r.getAttribute("data-precedence"),l=a.get(d)||n,l===n&&a.set(hg,r),a.set(d,r),this.count++,n=ld.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),l?l.parentNode.insertBefore(r,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Un}}function T4(e,t,a,n,r,l,d,m,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Xr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ys(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.hiddenUpdates=ys(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=l,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function _0(e,t,a,n,r,l,d,m,b,S,k,M){return e=new T4(e,t,a,d,b,S,k,M,m),t=ID,l===!0&&(t|=Na|Fn),t|=Xe,l=E(3,null,null,t),e.current=l,l.stateNode=e,t=im(),br(t),e.pooledCache=t,br(t),l.memoizedState={element:n,isDehydrated:a,cache:t},mm(l),e}function O0(e){return e?(e=$s,e):$s}function Mh(e,t,a,n,r,l){if(Sa&&typeof Sa.onScheduleFiberRoot=="function")try{Sa.onScheduleFiberRoot(xl,n,a)}catch(d){Do||(Do=!0,console.error("React instrumentation encountered an error: %o",d))}r=O0(r),n.context===null?n.context=r:n.pendingContext=r,wo&&on!==null&&!gS&&(gS=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,Q(on)||"Unknown")),n=Rs(t),n.payload={element:a},l=l===void 0?null:l,l!==null&&(typeof l!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",l),n.callback=l),a=Cs(e,n,t),a!==null&&(io(t,"root.render()",null),Mt(a,e,t),vi(a,e,t))}function U0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function zh(e,t){U0(e,t),(e=e.alternate)&&U0(e,t)}function A0(e){if(e.tag===13||e.tag===31){var t=xa(e,67108864);t!==null&&Mt(t,e,67108864),zh(e,67108864)}}function k0(e){if(e.tag===13||e.tag===31){var t=tn(e);t=bn(t);var a=xa(e,t);a!==null&&Mt(a,e,t),zh(e,t)}}function _4(){return on}function O4(e,t,a,n){var r=X.T;X.T=null;var l=pt.p;try{pt.p=xn,Lh(e,t,a,n)}finally{pt.p=l,X.T=r}}function U4(e,t,a,n){var r=X.T;X.T=null;var l=pt.p;try{pt.p=Co,Lh(e,t,a,n)}finally{pt.p=l,X.T=r}}function Lh(e,t,a,n){if(gf){var r=Vh(n);if(r===null)Nh(e,t,n,bf,a),M0(e,n);else if(A4(r,e,t,a,n))n.stopPropagation();else if(M0(e,n),t&4&&-1<RR.indexOf(e)){for(;r!==null;){var l=ce(r);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var d=hn(l.pendingLanes);if(d!==0){var m=l;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var b=1<<31-_a(d);m.entanglements[1]|=b,d&=~b}xo(l),(ut&(oa|cn))===fa&&(Kd=ca()+G1,ki(0))}}break;case 31:case 13:m=xa(l,2),m!==null&&Mt(m,l,2),dl(),zh(l,2)}if(l=Vh(n),l===null&&Nh(e,t,n,bf,a),l===r)break;r=l}r!==null&&n.stopPropagation()}else Nh(e,t,n,null,a)}}function Vh(e){return e=qf(e),Hh(e)}function Hh(e){if(bf=null,e=ee(e),e!==null){var t=I(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Z(t),e!==null)return e;e=null}else if(a===31){if(e=le(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 bf=e,null}function j0(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 xn;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 Co;case"message":switch(Y4()){case Wh:return xn;case ep:return Co;case vl:case q4:return Ko;case tp:return yd;default:return Ko}default:return Ko}}function M0(e,t){switch(e){case"focusin":case"focusout":nr=null;break;case"dragenter":case"dragleave":or=null;break;case"mouseover":case"mouseout":sr=null;break;case"pointerover":case"pointerout":jc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mc.delete(t.pointerId)}}function Bi(e,t,a,n,r,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:l,targetContainers:[r]},t!==null&&(t=ce(t),t!==null&&A0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function A4(e,t,a,n,r){switch(t){case"focusin":return nr=Bi(nr,e,t,a,n,r),!0;case"dragenter":return or=Bi(or,e,t,a,n,r),!0;case"mouseover":return sr=Bi(sr,e,t,a,n,r),!0;case"pointerover":var l=r.pointerId;return jc.set(l,Bi(jc.get(l)||null,e,t,a,n,r)),!0;case"gotpointercapture":return l=r.pointerId,Mc.set(l,Bi(Mc.get(l)||null,e,t,a,n,r)),!0}return!1}function z0(e){var t=ee(e.target);if(t!==null){var a=I(t);if(a!==null){if(t=a.tag,t===13){if(t=Z(a),t!==null){e.blockedOn=t,N(e.priority,function(){k0(a)});return}}else if(t===31){if(t=le(a),t!==null){e.blockedOn=t,N(e.priority,function(){k0(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 cd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Vh(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a),r=n;Xi!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Xi=r,a.target.dispatchEvent(n),Xi===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Xi=null}else return t=ce(a),t!==null&&A0(t),e.blockedOn=a,!1;t.shift()}return!0}function L0(e,t,a){cd(e)&&a.delete(t)}function k4(){pg=!1,nr!==null&&cd(nr)&&(nr=null),or!==null&&cd(or)&&(or=null),sr!==null&&cd(sr)&&(sr=null),jc.forEach(L0),Mc.forEach(L0)}function ud(e,t){e.blockedOn===t&&(e.blockedOn=null,pg||(pg=!0,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,k4)))}function V0(e){yf!==e&&(yf=e,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,function(){yf===e&&(yf=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Hh(n||a)===null)continue;break}var l=ce(a);l!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:n},Object.freeze(a),Hm(l,a,n,r))}}))}function gl(e){function t(b){return ud(b,e)}nr!==null&&ud(nr,e),or!==null&&ud(or,e),sr!==null&&ud(sr,e),jc.forEach(t),Mc.forEach(t);for(var a=0;a<rr.length;a++){var n=rr[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<rr.length&&(a=rr[0],a.blockedOn===null);)z0(a),a.blockedOn===null&&rr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],l=a[n+1],d=r[Oa]||null;if(typeof l=="function")d||V0(a);else if(d){var m=null;if(l&&l.hasAttribute("formAction")){if(r=l,d=l[Oa]||null)m=d.formAction;else if(Hh(r)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),V0(a)}}}function H0(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=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),r!==null&&(r(),r=null)}}}function Bh(e){this._internalRoot=e}function dd(e){this._internalRoot=e}function B0(e){e[Ls]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Qt=BC(),$h=eu(),j4=YC(),Ke=Object.assign,M4=Symbol.for("react.element"),No=Symbol.for("react.transitional.element"),bl=Symbol.for("react.portal"),yl=Symbol.for("react.fragment"),fd=Symbol.for("react.strict_mode"),Yh=Symbol.for("react.profiler"),qh=Symbol.for("react.consumer"),Eo=Symbol.for("react.context"),$i=Symbol.for("react.forward_ref"),Gh=Symbol.for("react.suspense"),Xh=Symbol.for("react.suspense_list"),md=Symbol.for("react.memo"),nn=Symbol.for("react.lazy"),Qh=Symbol.for("react.activity"),z4=Symbol.for("react.memo_cache_sentinel"),$0=Symbol.iterator,L4=Symbol.for("react.client.reference"),aa=Array.isArray,X=$h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pt=j4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V4=Object.freeze({pending:!1,data:null,method:null,action:null}),Fh=[],Ih=[],Po=-1,js=oe(null),Yi=oe(null),Ms=oe(null),hd=oe(null),qi=0,Y0,q0,G0,X0,Q0,F0,I0;xe.__reactDisabledLog=!0;var Zh,Z0,Jh=!1,Ph=new(typeof WeakMap=="function"?WeakMap:Map),on=null,wo=!1,Qn=Object.prototype.hasOwnProperty,Kh=Qt.unstable_scheduleCallback,H4=Qt.unstable_cancelCallback,B4=Qt.unstable_shouldYield,$4=Qt.unstable_requestPaint,ca=Qt.unstable_now,Y4=Qt.unstable_getCurrentPriorityLevel,Wh=Qt.unstable_ImmediatePriority,ep=Qt.unstable_UserBlockingPriority,vl=Qt.unstable_NormalPriority,q4=Qt.unstable_LowPriority,tp=Qt.unstable_IdlePriority,G4=Qt.log,X4=Qt.unstable_setDisableYieldValue,xl=null,Sa=null,Do=!1,Ro=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",_a=Math.clz32?Math.clz32:bs,Q4=Math.log,F4=Math.LN2,pd=256,gd=262144,bd=4194304,xn=2,Co=8,Ko=32,yd=268435456,zs=Math.random().toString(36).slice(2),ga="__reactFiber$"+zs,Oa="__reactProps$"+zs,Ls="__reactContainer$"+zs,ap="__reactEvents$"+zs,I4="__reactListeners$"+zs,Z4="__reactHandles$"+zs,J0="__reactResources$"+zs,Gi="__reactMarker$"+zs,P0=new Set,wr={},np={},J4={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},P4=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]*$"),K0={},W0={},K4=/[\n"\\]/g,ex=!1,tx=!1,ax=!1,nx=!1,ox=!1,sx=!1,rx=["value","defaultValue"],lx=!1,ix=/["'&<>\n\t]|^\s|\s$/,W4="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),cx="applet caption html table td th marquee object template foreignObject desc title".split(" "),eD=cx.concat(["button"]),tD="dd dt li option optgroup p rp rt".split(" "),ux={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},vd={},op={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},dx=/([A-Z])/g,fx=/^ms-/,aD=/^(?:webkit|moz|o)[A-Z]/,nD=/^-ms-/,oD=/-(.)/g,mx=/;\s*$/,Sl={},sp={},hx=!1,px=!1,gx=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(" ")),xd="http://www.w3.org/1998/Math/MathML",Nl="http://www.w3.org/2000/svg",sD=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"]]),Sd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},bx={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},El={},rD=RegExp("^(aria)-[: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]*$"),lD=RegExp("^(aria)[A-Z][: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]*$"),yx=!1,Ua={},vx=/^on./,iD=/^on[^A-Z]/,cD=RegExp("^(aria)-[: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]*$"),uD=RegExp("^(aria)[A-Z][: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]*$"),dD=/^[\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,Xi=null,wl=null,Dl=null,rp=!1,To=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lp=!1;if(To)try{var Qi={};Object.defineProperty(Qi,"passive",{get:function(){lp=!0}}),window.addEventListener("test",Qi,Qi),window.removeEventListener("test",Qi,Qi)}catch{lp=!1}var Vs=null,ip=null,Nd=null,Dr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ed=Ba(Dr),Fi=Ke({},Dr,{view:0,detail:0}),fD=Ba(Fi),cp,up,Ii,wd=Ke({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gf,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!==Ii&&(Ii&&e.type==="mousemove"?(cp=e.screenX-Ii.screenX,up=e.screenY-Ii.screenY):up=cp=0,Ii=e),cp)},movementY:function(e){return"movementY"in e?e.movementY:up}}),xx=Ba(wd),mD=Ke({},wd,{dataTransfer:0}),hD=Ba(mD),pD=Ke({},Fi,{relatedTarget:0}),dp=Ba(pD),gD=Ke({},Dr,{animationName:0,elapsedTime:0,pseudoElement:0}),bD=Ba(gD),yD=Ke({},Dr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vD=Ba(yD),xD=Ke({},Dr,{data:0}),Sx=Ba(xD),SD=Sx,ND={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ED={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"},wD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},DD=Ke({},Fi,{key:function(e){if(e.key){var t=ND[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ED[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gf,charCode:function(e){return e.type==="keypress"?cu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RD=Ba(DD),CD=Ke({},wd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nx=Ba(CD),TD=Ke({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gf}),_D=Ba(TD),OD=Ke({},Dr,{propertyName:0,elapsedTime:0,pseudoElement:0}),UD=Ba(OD),AD=Ke({},wd,{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}),kD=Ba(AD),jD=Ke({},Dr,{newState:0,oldState:0}),MD=Ba(jD),zD=[9,13,27,32],Ex=229,fp=To&&"CompositionEvent"in window,Zi=null;To&&"documentMode"in document&&(Zi=document.documentMode);var LD=To&&"TextEvent"in window&&!Zi,wx=To&&(!fp||Zi&&8<Zi&&11>=Zi),Dx=32,Rx=String.fromCharCode(Dx),Cx=!1,Rl=!1,VD={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},Ji=null,Pi=null,Tx=!1;To&&(Tx=ow("input")&&(!document.documentMode||9<document.documentMode));var Aa=typeof Object.is=="function"?Object.is:uw,HD=To&&"documentMode"in document&&11>=document.documentMode,Cl=null,mp=null,Ki=null,hp=!1,Tl={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},pp={},_x={};To&&(_x=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);var Ox=dr("animationend"),Ux=dr("animationiteration"),Ax=dr("animationstart"),BD=dr("transitionrun"),$D=dr("transitionstart"),YD=dr("transitioncancel"),kx=dr("transitionend"),jx=new Map,gp="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(" ");gp.push("scrollEnd");var Mx=0;if(typeof performance=="object"&&typeof performance.now=="function")var qD=performance,zx=function(){return qD.now()};else{var GD=Date;zx=function(){return GD.now()}}var bp=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)},XD="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Dd=0,yp=1,vp=2,xp=3,Rd="– ",Cd="+ ",Lx="  ",Ct=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Sn="Components ⚛",st="Scheduler ⚛",it="Blocking",Hs=!1,Wo={color:"primary",properties:null,tooltipText:"",track:Sn},Bs={start:-0,end:-0,detail:{devtools:Wo}},QD=["Changed Props",""],Vx="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",FD=["Changed Props",Vx],Wi=1,es=2,Nn=[],_l=0,Sp=0,$s={};Object.freeze($s);var En=null,Ol=null,Le=0,ID=1,Xe=2,Na=8,Fn=16,ZD=32,Hx=!1;try{var Bx=Object.preventExtensions({})}catch{Hx=!0}var Np=new WeakMap,Ul=[],Al=0,Td=null,ec=0,wn=[],Dn=0,Rr=null,ts=1,as="",ba=null,Tt=null,at=!1,_o=!1,sn=null,Ys=null,Rn=!1,Ep=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),wp=oe(null),Dp=oe(null),$x={},_d=null,kl=null,jl=!1,JD=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()})}},PD=Qt.unstable_scheduleCallback,KD=Qt.unstable_NormalPriority,Ft={$$typeof:Eo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},It=Qt.unstable_now,Od=console.createTask?console.createTask:function(){return null},tc=1,Ud=2,ua=-0,qs=-0,ns=-0,os=null,ka=-1.1,Cr=-0,kt=-0,ke=-1.1,ze=-1.1,Ut=null,zt=!1,Tr=-0,Oo=-1.1,ac=null,Gs=0,Rp=null,Cp=null,_r=-1.1,nc=null,Ml=-1.1,Ad=-1.1,ss=-0,rs=-1.1,Cn=-1.1,Tp=0,oc=null,Yx=null,qx=null,Xs=-1.1,Or=null,Qs=-1.1,kd=-1.1,Gx=-0,Xx=-0,jd=0,WD=null,Qx=0,sc=-1.1,Md=!1,zd=!1,rc=null,_p=0,Ur=0,zl=null,Fx=X.S;X.S=function(e,t){if(Y1=ca(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>rs&&0>Cn){rs=It();var a=zi(),n=Mi();(a!==Qs||n!==Or)&&(Qs=-1.1),Xs=a,Or=n}bw(e,t)}Fx!==null&&Fx(e,t)};var Ar=oe(null),In={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},lc=[],ic=[],cc=[],uc=[],dc=[],fc=[],kr=new Set;In.recordUnsafeLifecycleWarnings=function(e,t){kr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&lc.push(e),e.mode&Na&&typeof t.UNSAFE_componentWillMount=="function"&&ic.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&cc.push(e),e.mode&Na&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&uc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&dc.push(e),e.mode&Na&&typeof t.UNSAFE_componentWillUpdate=="function"&&fc.push(e))},In.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<lc.length&&(lc.forEach(function(m){e.add(Q(m)||"Component"),kr.add(m.type)}),lc=[]);var t=new Set;0<ic.length&&(ic.forEach(function(m){t.add(Q(m)||"Component"),kr.add(m.type)}),ic=[]);var a=new Set;0<cc.length&&(cc.forEach(function(m){a.add(Q(m)||"Component"),kr.add(m.type)}),cc=[]);var n=new Set;0<uc.length&&(uc.forEach(function(m){n.add(Q(m)||"Component"),kr.add(m.type)}),uc=[]);var r=new Set;0<dc.length&&(dc.forEach(function(m){r.add(Q(m)||"Component"),kr.add(m.type)}),dc=[]);var l=new Set;if(0<fc.length&&(fc.forEach(function(m){l.add(Q(m)||"Component"),kr.add(m.type)}),fc=[]),0<t.size){var d=v(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,d)}0<n.size&&(d=v(n),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,d)),0<l.size&&(d=v(l),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,d)),0<e.size&&(d=v(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,d)),0<a.size&&(d=v(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,d)),0<r.size&&(d=v(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,d))};var Ld=new Map,Ix=new Set;In.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&Na&&(a=n),n=n.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Ix.has(e.type)&&(n=Ld.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(n===void 0&&(n=[],Ld.set(a,n)),n.push(e))},In.flushLegacyContextWarning=function(){Ld.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(Q(r)||"Component"),Ix.add(r.type)});var n=v(a);P(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,n)})}})},In.discardPendingWarnings=function(){lc=[],ic=[],cc=[],uc=[],dc=[],fc=[],Ld=new Map};var Zx={react_stack_bottom_frame:function(e,t,a){var n=wo;wo=!0;try{return e(t,a)}finally{wo=n}}},Op=Zx.react_stack_bottom_frame.bind(Zx),Jx={react_stack_bottom_frame:function(e){var t=wo;wo=!0;try{return e.render()}finally{wo=t}}},Px=Jx.react_stack_bottom_frame.bind(Jx),Kx={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){ht(e,e.return,a)}}},Up=Kx.react_stack_bottom_frame.bind(Kx),Wx={react_stack_bottom_frame:function(e,t,a,n,r){try{t.componentDidUpdate(a,n,r)}catch(l){ht(e,e.return,l)}}},e1=Wx.react_stack_bottom_frame.bind(Wx),t1={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},eR=t1.react_stack_bottom_frame.bind(t1),a1={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){ht(e,t,n)}}},n1=a1.react_stack_bottom_frame.bind(a1),o1={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},tR=o1.react_stack_bottom_frame.bind(o1),s1={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){ht(e,t,n)}}},aR=s1.react_stack_bottom_frame.bind(s1),r1={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},nR=r1.react_stack_bottom_frame.bind(r1),Ll=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Ap=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vd=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Hd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},jr=null,mc=!1,Vl=null,hc=0,Qe=null,kp,l1=kp=!1,i1={},c1={},u1={};w=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var n=Q(e),r=n||"null";if(!i1[r]){i1[r]=!0,a=a._owner,e=e._debugOwner;var l="";e&&typeof e.tag=="number"&&(r=Q(e))&&(l=`
225
+
226
+ Check the render method of \``+r+"`."),l||n&&(l=`
227
+
228
+ Check the top-level render call using <`+n+">.");var d="";a!=null&&e!==a&&(n=null,typeof a.tag=="number"?n=Q(a):typeof a.name=="string"&&(n=a.name),n&&(d=" It was passed a child from "+n+".")),P(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',l,d)})}}};var Mr=ay(!0),d1=ay(!1),f1=0,m1=1,h1=2,jp=3,Fs=!1,p1=!1,Mp=null,zp=!1,Hl=oe(null),Bd=oe(0),rn=oe(null),Tn=null,Bl=1,pc=2,Yt=oe(0),$d=0,_n=1,ja=2,ln=4,Ma=8,$l,g1=new Set,b1=new Set,Lp=new Set,y1=new Set,ls=0,He=null,xt=null,Zt=null,Yd=!1,Yl=!1,zr=!1,qd=0,gc=0,is=null,oR=0,sR=25,Y=null,On=null,cs=-1,bc=!1,yc={readContext:Ot,use:Os,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};yc.useEffectEvent=Lt;var Vp=null,v1=null,Hp=null,x1=null,Uo=null,Zn=null,Gd=null;Vp={readContext:function(e){return Ot(e)},use:Os,useCallback:function(e,t){return Y="useCallback",Pe(),ol(t),Mm(e,t)},useContext:function(e){return Y="useContext",Pe(),Ot(e)},useEffect:function(e,t){return Y="useEffect",Pe(),ol(t),Lu(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",Pe(),ol(a),jm(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",Pe(),ol(t),vr(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",Pe(),ol(t),km(e,t)},useMemo:function(e,t){Y="useMemo",Pe(),ol(t);var a=X.H;X.H=Uo;try{return zm(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",Pe();var n=X.H;X.H=Uo;try{return wm(e,t,a)}finally{X.H=n}},useRef:function(e){return Y="useRef",Pe(),Um(e)},useState:function(e){Y="useState",Pe();var t=X.H;X.H=Uo;try{return Tm(e)}finally{X.H=t}},useDebugValue:function(){Y="useDebugValue",Pe()},useDeferredValue:function(e,t){return Y="useDeferredValue",Pe(),Lm(e,t)},useTransition:function(){return Y="useTransition",Pe(),Bm()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",Pe(),Rm(e,t,a)},useId:function(){return Y="useId",Pe(),$m()},useFormState:function(e,t){return Y="useFormState",Pe(),Au(),rl(e,t)},useActionState:function(e,t){return Y="useActionState",Pe(),rl(e,t)},useOptimistic:function(e){return Y="useOptimistic",Pe(),_m(e)},useHostTransitionStatus:xr,useMemoCache:yr,useCacheRefresh:function(){return Y="useCacheRefresh",Pe(),Ym()},useEffectEvent:function(e){return Y="useEffectEvent",Pe(),Am(e)}},v1={readContext:function(e){return Ot(e)},use:Os,useCallback:function(e,t){return Y="useCallback",te(),Mm(e,t)},useContext:function(e){return Y="useContext",te(),Ot(e)},useEffect:function(e,t){return Y="useEffect",te(),Lu(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",te(),jm(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",te(),vr(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",te(),km(e,t)},useMemo:function(e,t){Y="useMemo",te();var a=X.H;X.H=Uo;try{return zm(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",te();var n=X.H;X.H=Uo;try{return wm(e,t,a)}finally{X.H=n}},useRef:function(e){return Y="useRef",te(),Um(e)},useState:function(e){Y="useState",te();var t=X.H;X.H=Uo;try{return Tm(e)}finally{X.H=t}},useDebugValue:function(){Y="useDebugValue",te()},useDeferredValue:function(e,t){return Y="useDeferredValue",te(),Lm(e,t)},useTransition:function(){return Y="useTransition",te(),Bm()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",te(),Rm(e,t,a)},useId:function(){return Y="useId",te(),$m()},useActionState:function(e,t){return Y="useActionState",te(),rl(e,t)},useFormState:function(e,t){return Y="useFormState",te(),Au(),rl(e,t)},useOptimistic:function(e){return Y="useOptimistic",te(),_m(e)},useHostTransitionStatus:xr,useMemoCache:yr,useCacheRefresh:function(){return Y="useCacheRefresh",te(),Ym()},useEffectEvent:function(e){return Y="useEffectEvent",te(),Am(e)}},Hp={readContext:function(e){return Ot(e)},use:Os,useCallback:function(e,t){return Y="useCallback",te(),Bu(e,t)},useContext:function(e){return Y="useContext",te(),Ot(e)},useEffect:function(e,t){Y="useEffect",te(),$a(2048,Ma,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",te(),Hu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",te(),$a(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",te(),$a(4,ln,e,t)},useMemo:function(e,t){Y="useMemo",te();var a=X.H;X.H=Zn;try{return $u(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",te();var n=X.H;X.H=Zn;try{return sl(e,t,a)}finally{X.H=n}},useRef:function(){return Y="useRef",te(),gt().memoizedState},useState:function(){Y="useState",te();var e=X.H;X.H=Zn;try{return sl(Gn)}finally{X.H=e}},useDebugValue:function(){Y="useDebugValue",te()},useDeferredValue:function(e,t){return Y="useDeferredValue",te(),wy(e,t)},useTransition:function(){return Y="useTransition",te(),Oy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",te(),ju(e,t,a)},useId:function(){return Y="useId",te(),gt().memoizedState},useFormState:function(e){return Y="useFormState",te(),Au(),Mu(e)},useActionState:function(e){return Y="useActionState",te(),Mu(e)},useOptimistic:function(e,t){return Y="useOptimistic",te(),hy(e,t)},useHostTransitionStatus:xr,useMemoCache:yr,useCacheRefresh:function(){return Y="useCacheRefresh",te(),gt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",te(),Vu(e)}},x1={readContext:function(e){return Ot(e)},use:Os,useCallback:function(e,t){return Y="useCallback",te(),Bu(e,t)},useContext:function(e){return Y="useContext",te(),Ot(e)},useEffect:function(e,t){Y="useEffect",te(),$a(2048,Ma,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",te(),Hu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",te(),$a(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",te(),$a(4,ln,e,t)},useMemo:function(e,t){Y="useMemo",te();var a=X.H;X.H=Gd;try{return $u(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",te();var n=X.H;X.H=Gd;try{return Ei(e,t,a)}finally{X.H=n}},useRef:function(){return Y="useRef",te(),gt().memoizedState},useState:function(){Y="useState",te();var e=X.H;X.H=Gd;try{return Ei(Gn)}finally{X.H=e}},useDebugValue:function(){Y="useDebugValue",te()},useDeferredValue:function(e,t){return Y="useDeferredValue",te(),Dy(e,t)},useTransition:function(){return Y="useTransition",te(),Uy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",te(),ju(e,t,a)},useId:function(){return Y="useId",te(),gt().memoizedState},useFormState:function(e){return Y="useFormState",te(),Au(),zu(e)},useActionState:function(e){return Y="useActionState",te(),zu(e)},useOptimistic:function(e,t){return Y="useOptimistic",te(),gy(e,t)},useHostTransitionStatus:xr,useMemoCache:yr,useCacheRefresh:function(){return Y="useCacheRefresh",te(),gt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",te(),Vu(e)}},Uo={readContext:function(e){return y(),Ot(e)},use:function(e){return p(),Os(e)},useCallback:function(e,t){return Y="useCallback",p(),Pe(),Mm(e,t)},useContext:function(e){return Y="useContext",p(),Pe(),Ot(e)},useEffect:function(e,t){return Y="useEffect",p(),Pe(),Lu(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",p(),Pe(),jm(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",p(),Pe(),vr(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",p(),Pe(),km(e,t)},useMemo:function(e,t){Y="useMemo",p(),Pe();var a=X.H;X.H=Uo;try{return zm(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",p(),Pe();var n=X.H;X.H=Uo;try{return wm(e,t,a)}finally{X.H=n}},useRef:function(e){return Y="useRef",p(),Pe(),Um(e)},useState:function(e){Y="useState",p(),Pe();var t=X.H;X.H=Uo;try{return Tm(e)}finally{X.H=t}},useDebugValue:function(){Y="useDebugValue",p(),Pe()},useDeferredValue:function(e,t){return Y="useDeferredValue",p(),Pe(),Lm(e,t)},useTransition:function(){return Y="useTransition",p(),Pe(),Bm()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",p(),Pe(),Rm(e,t,a)},useId:function(){return Y="useId",p(),Pe(),$m()},useFormState:function(e,t){return Y="useFormState",p(),Pe(),rl(e,t)},useActionState:function(e,t){return Y="useActionState",p(),Pe(),rl(e,t)},useOptimistic:function(e){return Y="useOptimistic",p(),Pe(),_m(e)},useMemoCache:function(e){return p(),yr(e)},useHostTransitionStatus:xr,useCacheRefresh:function(){return Y="useCacheRefresh",Pe(),Ym()},useEffectEvent:function(e){return Y="useEffectEvent",p(),Pe(),Am(e)}},Zn={readContext:function(e){return y(),Ot(e)},use:function(e){return p(),Os(e)},useCallback:function(e,t){return Y="useCallback",p(),te(),Bu(e,t)},useContext:function(e){return Y="useContext",p(),te(),Ot(e)},useEffect:function(e,t){Y="useEffect",p(),te(),$a(2048,Ma,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",p(),te(),Hu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",p(),te(),$a(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",p(),te(),$a(4,ln,e,t)},useMemo:function(e,t){Y="useMemo",p(),te();var a=X.H;X.H=Zn;try{return $u(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",p(),te();var n=X.H;X.H=Zn;try{return sl(e,t,a)}finally{X.H=n}},useRef:function(){return Y="useRef",p(),te(),gt().memoizedState},useState:function(){Y="useState",p(),te();var e=X.H;X.H=Zn;try{return sl(Gn)}finally{X.H=e}},useDebugValue:function(){Y="useDebugValue",p(),te()},useDeferredValue:function(e,t){return Y="useDeferredValue",p(),te(),wy(e,t)},useTransition:function(){return Y="useTransition",p(),te(),Oy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",p(),te(),ju(e,t,a)},useId:function(){return Y="useId",p(),te(),gt().memoizedState},useFormState:function(e){return Y="useFormState",p(),te(),Mu(e)},useActionState:function(e){return Y="useActionState",p(),te(),Mu(e)},useOptimistic:function(e,t){return Y="useOptimistic",p(),te(),hy(e,t)},useMemoCache:function(e){return p(),yr(e)},useHostTransitionStatus:xr,useCacheRefresh:function(){return Y="useCacheRefresh",te(),gt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",p(),te(),Vu(e)}},Gd={readContext:function(e){return y(),Ot(e)},use:function(e){return p(),Os(e)},useCallback:function(e,t){return Y="useCallback",p(),te(),Bu(e,t)},useContext:function(e){return Y="useContext",p(),te(),Ot(e)},useEffect:function(e,t){Y="useEffect",p(),te(),$a(2048,Ma,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",p(),te(),Hu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",p(),te(),$a(4,ja,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",p(),te(),$a(4,ln,e,t)},useMemo:function(e,t){Y="useMemo",p(),te();var a=X.H;X.H=Zn;try{return $u(e,t)}finally{X.H=a}},useReducer:function(e,t,a){Y="useReducer",p(),te();var n=X.H;X.H=Zn;try{return Ei(e,t,a)}finally{X.H=n}},useRef:function(){return Y="useRef",p(),te(),gt().memoizedState},useState:function(){Y="useState",p(),te();var e=X.H;X.H=Zn;try{return Ei(Gn)}finally{X.H=e}},useDebugValue:function(){Y="useDebugValue",p(),te()},useDeferredValue:function(e,t){return Y="useDeferredValue",p(),te(),Dy(e,t)},useTransition:function(){return Y="useTransition",p(),te(),Uy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",p(),te(),ju(e,t,a)},useId:function(){return Y="useId",p(),te(),gt().memoizedState},useFormState:function(e){return Y="useFormState",p(),te(),zu(e)},useActionState:function(e){return Y="useActionState",p(),te(),zu(e)},useOptimistic:function(e,t){return Y="useOptimistic",p(),te(),gy(e,t)},useMemoCache:function(e){return p(),yr(e)},useHostTransitionStatus:xr,useCacheRefresh:function(){return Y="useCacheRefresh",te(),gt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",p(),te(),Vu(e)}};var S1={},N1=new Set,E1=new Set,w1=new Set,D1=new Set,R1=new Set,C1=new Set,T1=new Set,_1=new Set,O1=new Set,U1=new Set;Object.freeze(S1);var Bp={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=tn(e),r=Rs(n);r.payload=t,a!=null&&(Gm(a),r.callback=a),t=Cs(e,r,n),t!==null&&(io(n,"this.setState()",e),Mt(t,e,n),vi(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=tn(e),r=Rs(n);r.tag=m1,r.payload=t,a!=null&&(Gm(a),r.callback=a),t=Cs(e,r,n),t!==null&&(io(n,"this.replaceState()",e),Mt(t,e,n),vi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=tn(e),n=Rs(a);n.tag=h1,t!=null&&(Gm(t),n.callback=t),t=Cs(e,n,a),t!==null&&(io(a,"this.forceUpdate()",e),Mt(t,e,a),vi(t,e,a))}},ql=null,$p=null,Yp=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Jt=!1,A1={},k1={},j1={},M1={},Gl=!1,z1={},Xd={},qp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},L1=!1,V1=null;V1=new Set;var us=!1,Pt=!1,Gp=!1,H1=typeof WeakSet=="function"?WeakSet:Set,da=null,Xl=null,Ql=null,Kt=null,Ga=!1,Jn=null,na=!1,vc=8192,rR={getCacheForType:function(e){var t=Ot(Ft),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ot(Ft).controller.signal},getOwner:function(){return on}};if(typeof Symbol=="function"&&Symbol.for){var xc=Symbol.for;xc("selector.component"),xc("selector.has_pseudo_class"),xc("selector.role"),xc("selector.test_id"),xc("selector.text")}var lR=[],iR=typeof WeakMap=="function"?WeakMap:Map,fa=0,oa=2,cn=4,ds=0,Sc=1,Lr=2,Qd=3,Is=4,Fd=6,B1=5,ut=fa,St=null,Je=null,Fe=0,Xa=0,Id=1,Vr=2,Nc=3,$1=4,Xp=5,Ec=6,Zd=7,Qp=8,Hr=9,bt=Xa,un=null,Zs=!1,Fl=!1,Fp=!1,Ao=0,jt=ds,Js=0,Ps=0,Ip=0,Qa=0,Br=0,wc=null,za=null,Jd=!1,Pd=0,Y1=0,q1=300,Kd=1/0,G1=500,Dc=null,Vt=null,Ks=null,Wd=0,Zp=1,Jp=2,X1=3,Ws=0,Q1=1,F1=2,I1=3,Z1=4,ef=5,Wt=0,er=null,Il=null,Pn=0,Pp=0,Kp=-0,Wp=null,J1=null,P1=null,Kn=Wd,K1=null,cR=50,Rc=0,eg=null,tg=!1,tf=!1,uR=50,$r=0,Cc=null,Zl=!1,af=null,W1=!1,eS=new Set,dR={},nf=null,Jl=null,ag=!1,ng=!1,of=!1,og=!1,tr=0,sg={};(function(){for(var e=0;e<gp.length;e++){var t=gp[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Yn(a,"on"+t)}Yn(Ox,"onAnimationEnd"),Yn(Ux,"onAnimationIteration"),Yn(Ax,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(BD,"onTransitionRun"),Yn($D,"onTransitionStart"),Yn(YD,"onTransitionCancel"),Yn(kx,"onTransitionEnd")})(),Ye("onMouseEnter",["mouseout","mouseover"]),Ye("onMouseLeave",["mouseout","mouseover"]),Ye("onPointerEnter",["pointerout","pointerover"]),Ye("onPointerLeave",["pointerout","pointerover"]),tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tc="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(" "),rg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tc)),sf="_reactListening"+Math.random().toString(36).slice(2),tS=!1,aS=!1,rf=!1,nS=!1,lf=!1,cf=!1,oS=!1,uf={},fR=/\r\n?/g,mR=/\u0000|\uFFFD/g,Yr="http://www.w3.org/1999/xlink",lg="http://www.w3.org/XML/1998/namespace",hR="javascript:throw new Error('React form unexpectedly submitted.')",pR="suppressHydrationWarning",qr="&",df="/&",_c="$",Oc="/$",ar="$?",Gr="$~",Pl="$!",gR="html",bR="body",yR="head",ig="F!",sS="F",rS="loading",vR="style",fs=0,Kl=1,ff=2,cg=null,ug=null,lS={dialog:!0,webview:!0},dg=null,Uc=void 0,iS=typeof setTimeout=="function"?setTimeout:void 0,xR=typeof clearTimeout=="function"?clearTimeout:void 0,Xr=-1,cS=typeof Promise=="function"?Promise:void 0,SR=typeof queueMicrotask=="function"?queueMicrotask:typeof cS<"u"?function(e){return cS.resolve(null).then(e).catch(n4)}:iS,fg=null,Qr=0,Ac=1,uS=2,dS=3,Un=4,An=new Map,fS=new Set,ms=pt.d;pt.d={f:function(){var e=ms.f(),t=dl();return e||t},r:function(e){var t=ce(e);t!==null&&t.tag===5&&t.type==="form"?_y(t):ms.r(e)},D:function(e){ms.D(e),N0("dns-prefetch",e,null)},C:function(e,t){ms.C(e,t),N0("preconnect",e,t)},L:function(e,t,a){ms.L(e,t,a);var n=Wl;if(n&&e&&t){var r='link[rel="preload"][as="'+be(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+be(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+be(a.imageSizes)+'"]')):r+='[href="'+be(e)+'"]';var l=r;switch(t){case"style":l=hl(e);break;case"script":l=pl(e)}An.has(l)||(e=Ke({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),An.set(l,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Vi(l))||t==="script"&&n.querySelector(Hi(l))||(t=n.createElement("link"),pa(t,"link",e),Re(t),n.head.appendChild(t)))}},m:function(e,t){ms.m(e,t);var a=Wl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+be(n)+'"][href="'+be(e)+'"]',l=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=pl(e)}if(!An.has(l)&&(e=Ke({rel:"modulepreload",href:e},t),An.set(l,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Hi(l)))return}n=a.createElement("link"),pa(n,"link",e),Re(n),a.head.appendChild(n)}}},X:function(e,t){ms.X(e,t);var a=Wl;if(a&&e){var n=Ve(a).hoistableScripts,r=pl(e),l=n.get(r);l||(l=a.querySelector(Hi(r)),l||(e=Ke({src:e,async:!0},t),(t=An.get(r))&&jh(e,t),l=a.createElement("script"),Re(l),pa(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(r,l))}},S:function(e,t,a){ms.S(e,t,a);var n=Wl;if(n&&e){var r=Ve(n).hoistableStyles,l=hl(e);t=t||"default";var d=r.get(l);if(!d){var m={loading:Qr,preload:null};if(d=n.querySelector(Vi(l)))m.loading=Ac|Un;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},a),(a=An.get(l))&&kh(e,a);var b=d=n.createElement("link");Re(b),pa(b,"link",e),b._p=new Promise(function(S,k){b.onload=S,b.onerror=k}),b.addEventListener("load",function(){m.loading|=Ac}),b.addEventListener("error",function(){m.loading|=uS}),m.loading|=Un,rd(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},r.set(l,d)}}},M:function(e,t){ms.M(e,t);var a=Wl;if(a&&e){var n=Ve(a).hoistableScripts,r=pl(e),l=n.get(r);l||(l=a.querySelector(Hi(r)),l||(e=Ke({src:e,async:!0,type:"module"},t),(t=An.get(r))&&jh(e,t),l=a.createElement("script"),Re(l),pa(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(r,l))}}};var Wl=typeof document>"u"?null:document,mf=null,NR=6e4,ER=800,wR=500,mg=0,hg=null,hf=null,Fr=V4,kc={$$typeof:Eo,Provider:null,Consumer:null,_currentValue:Fr,_currentValue2:Fr,_threadCount:0},mS="%c%s%c",hS="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",pS="",pf=" ",DR=Function.prototype.bind,gS=!1,bS=null,yS=null,vS=null,xS=null,SS=null,NS=null,ES=null,wS=null,DS=null,RS=null;bS=function(e,t,a,n){t=o(e,t),t!==null&&(a=s(t.memoizedState,a,0,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=Ke({},e.memoizedProps),a=xa(e,2),a!==null&&Mt(a,e,2))},yS=function(e,t,a){t=o(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Ke({},e.memoizedProps),a=xa(e,2),a!==null&&Mt(a,e,2))},vS=function(e,t,a,n){t=o(e,t),t!==null&&(a=i(t.memoizedState,a,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=Ke({},e.memoizedProps),a=xa(e,2),a!==null&&Mt(a,e,2))},xS=function(e,t,a){e.pendingProps=s(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xa(e,2),t!==null&&Mt(t,e,2)},SS=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xa(e,2),t!==null&&Mt(t,e,2)},NS=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xa(e,2),t!==null&&Mt(t,e,2)},ES=function(e){var t=xa(e,2);t!==null&&Mt(t,e,2)},wS=function(e){var t=Ln(),a=xa(e,t);a!==null&&Mt(a,e,t)},DS=function(e){h=e},RS=function(e){f=e};var gf=!0,bf=null,pg=!1,nr=null,or=null,sr=null,jc=new Map,Mc=new Map,rr=[],RR="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(" "),yf=null;if(dd.prototype.render=Bh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):V(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var n=t.current,r=tn(n);Mh(n,r,a,t,null,null)},dd.prototype.unmount=Bh.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ut&(oa|cn))!==fa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Mh(e.current,2,null,e,null,null),dl(),t[Ls]=null}},dd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<rr.length&&t!==0&&t<rr[a].priority;a++);rr.splice(a,0,e),a===0&&z0(e)}},(function(){var e=$h.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.4
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),pt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=K(t),e=e!==null?se(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.4"};return e.overrideHookState=bS,e.overrideHookStateDeletePath=yS,e.overrideHookStateRenamePath=vS,e.overrideProps=xS,e.overridePropsDeletePath=SS,e.overridePropsRenamePath=NS,e.scheduleUpdate=ES,e.scheduleRetry=wS,e.setErrorHandler=DS,e.setSuspenseHandler=RS,e.scheduleRefresh=A,e.scheduleRoot=R,e.setRefreshHandler=H,e.getCurrentFiber=_4,li(e)})()&&To&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var CS=window.location.protocol;/^(https?|file):$/.test(CS)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(CS==="file:"?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Lc.createRoot=function(e,t){if(!V(e))throw Error("Target container is not a DOM element.");B0(e);var a=!1,n="",r=Ly,l=Vy,d=Hy;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===No&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=_0(e,1,!1,null,null,a,n,null,r,l,d,H0),e[Ls]=t.current,Sh(e),new Bh(t)},Lc.hydrateRoot=function(e,t,a){if(!V(e))throw Error("Target container is not a DOM element.");B0(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var n=!1,r="",l=Ly,d=Vy,m=Hy,b=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(l=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=_0(e,1,!0,t,a??null,n,r,b,l,d,m,H0),t.context=O0(null),a=t.current,n=tn(a),n=bn(n),r=Rs(n),r.callback=null,Cs(a,r,n),io(n,"hydrateRoot()",null),a=n,t.current.lanes=a,gn(t,a),xo(t),e[Ls]=t.current,Sh(e),new dd(t)},Lc.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Lc}var oN;function GC(){return oN||(oN=1,Eg.exports=qC()),Eg.exports}var XC=GC();var oE=o=>{throw TypeError(o)},QC=(o,s,i)=>s.has(o)||oE("Cannot "+i),Cg=(o,s,i)=>(QC(o,s,"read from private field"),i?i.call(o):s.get(o)),FC=(o,s,i)=>s.has(o)?oE("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(o):s.set(o,i),sN="popstate";function rN(o){return typeof o=="object"&&o!=null&&"pathname"in o&&"search"in o&&"hash"in o&&"state"in o&&"key"in o}function IC(o={}){function s(c,u){let f=u.state?.masked,{pathname:h,search:p,hash:y}=f||c.location;return Zc("",{pathname:h,search:p,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function i(c,u){return typeof u=="string"?u:jo(u)}return JC(s,i,null,o)}function et(o,s){if(o===!1||o===null||typeof o>"u")throw new Error(s)}function Ht(o,s){if(!o){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function ZC(){return Math.random().toString(36).substring(2,10)}function lN(o,s){return{usr:o.state,key:o.key,idx:s,masked:o.unstable_mask?{pathname:o.pathname,search:o.search,hash:o.hash}:void 0}}function Zc(o,s,i=null,c,u){return{pathname:typeof o=="string"?o:o.pathname,search:"",hash:"",...typeof s=="string"?gs(s):s,state:i,key:s&&s.key||c||ZC(),unstable_mask:u}}function jo({pathname:o="/",search:s="",hash:i=""}){return s&&s!=="?"&&(o+=s.charAt(0)==="?"?s:"?"+s),i&&i!=="#"&&(o+=i.charAt(0)==="#"?i:"#"+i),o}function gs(o){let s={};if(o){let i=o.indexOf("#");i>=0&&(s.hash=o.substring(i),o=o.substring(0,i));let c=o.indexOf("?");c>=0&&(s.search=o.substring(c),o=o.substring(0,c)),o&&(s.pathname=o)}return s}function JC(o,s,i,c={}){let{window:u=document.defaultView,v5Compat:f=!1}=c,h=u.history,p="POP",y=null,x=w();x==null&&(x=0,h.replaceState({...h.state,idx:x},""));function w(){return(h.state||{idx:null}).idx}function v(){p="POP";let V=w(),I=V==null?null:V-x;x=V,y&&y({action:p,location:H.location,delta:I})}function E(V,I){p="PUSH";let Z=rN(V)?V:Zc(H.location,V,I);x=w()+1;let le=lN(Z,x),ae=H.createHref(Z.unstable_mask||Z);try{h.pushState(le,"",ae)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;u.location.assign(ae)}f&&y&&y({action:p,location:H.location,delta:1})}function R(V,I){p="REPLACE";let Z=rN(V)?V:Zc(H.location,V,I);x=w();let le=lN(Z,x),ae=H.createHref(Z.unstable_mask||Z);h.replaceState(le,"",ae),f&&y&&y({action:p,location:H.location,delta:0})}function A(V){return sE(V)}let H={get action(){return p},get location(){return o(u,h)},listen(V){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(sN,v),y=V,()=>{u.removeEventListener(sN,v),y=null}},createHref(V){return s(u,V)},createURL:A,encodeLocation(V){let I=A(V);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:E,replace:R,go(V){return h.go(V)}};return H}function sE(o,s=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),et(i,"No window.location.(origin|href) available to create URL");let c=typeof o=="string"?o:jo(o);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=i+c),new URL(c,i)}var qc,iN=class{constructor(o){if(FC(this,qc,new Map),o)for(let[s,i]of o)this.set(s,i)}get(o){if(Cg(this,qc).has(o))return Cg(this,qc).get(o);if(o.defaultValue!==void 0)return o.defaultValue;throw new Error("No value found for context")}set(o,s){Cg(this,qc).set(o,s)}};qc=new WeakMap;var PC=new Set(["lazy","caseSensitive","path","id","index","children"]);function KC(o){return PC.has(o)}var WC=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function eT(o){return WC.has(o)}function tT(o){return o.index===!0}function Jc(o,s,i=[],c={},u=!1){return o.map((f,h)=>{let p=[...i,String(h)],y=typeof f.id=="string"?f.id:p.join("-");if(et(f.index!==!0||!f.children,"Cannot specify children on an index route"),et(u||!c[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),tT(f)){let x={...f,id:y};return c[y]=cN(x,s(x)),x}else{let x={...f,id:y,children:void 0};return c[y]=cN(x,s(x)),f.children&&(x.children=Jc(f.children,s,p,c,u)),x}})}function cN(o,s){return Object.assign(o,{...s,...typeof s.lazy=="object"&&s.lazy!=null?{lazy:{...o.lazy,...s.lazy}}:{}})}function lr(o,s,i="/"){return Gc(o,s,i,!1)}function Gc(o,s,i,c){let u=typeof s=="string"?gs(s):s,f=jn(u.pathname||"/",i);if(f==null)return null;let h=rE(o);nT(h);let p=null;for(let y=0;p==null&&y<h.length;++y){let x=hT(f);p=fT(h[y],x,c)}return p}function aT(o,s){let{route:i,pathname:c,params:u}=o;return{id:i.id,pathname:c,params:u,data:s[i.id],loaderData:s[i.id],handle:i.handle}}function rE(o,s=[],i=[],c="",u=!1){let f=(h,p,y=u,x)=>{let w={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(c)&&y)return;et(w.relativePath.startsWith(c),`Absolute route path "${w.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(c.length)}let v=Wn([c,w.relativePath]),E=i.concat(w);h.children&&h.children.length>0&&(et(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),rE(h.children,s,E,v,y)),!(h.path==null&&!h.index)&&s.push({path:v,score:uT(v,h.index),routesMeta:E})};return o.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))f(h,p);else for(let y of lE(h.path))f(h,p,!0,y)}),s}function lE(o){let s=o.split("/");if(s.length===0)return[];let[i,...c]=s,u=i.endsWith("?"),f=i.replace(/\?$/,"");if(c.length===0)return u?[f,""]:[f];let h=lE(c.join("/")),p=[];return p.push(...h.map(y=>y===""?f:[f,y].join("/"))),u&&p.push(...h),p.map(y=>o.startsWith("/")&&y===""?"/":y)}function nT(o){o.sort((s,i)=>s.score!==i.score?i.score-s.score:dT(s.routesMeta.map(c=>c.childrenIndex),i.routesMeta.map(c=>c.childrenIndex)))}var oT=/^:[\w-]+$/,sT=3,rT=2,lT=1,iT=10,cT=-2,uN=o=>o==="*";function uT(o,s){let i=o.split("/"),c=i.length;return i.some(uN)&&(c+=cT),s&&(c+=rT),i.filter(u=>!uN(u)).reduce((u,f)=>u+(oT.test(f)?sT:f===""?lT:iT),c)}function dT(o,s){return o.length===s.length&&o.slice(0,-1).every((c,u)=>c===s[u])?o[o.length-1]-s[s.length-1]:0}function fT(o,s,i=!1){let{routesMeta:c}=o,u={},f="/",h=[];for(let p=0;p<c.length;++p){let y=c[p],x=p===c.length-1,w=f==="/"?s:s.slice(f.length)||"/",v=kf({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},w),E=y.route;if(!v&&x&&i&&!c[c.length-1].route.index&&(v=kf({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},w)),!v)return null;Object.assign(u,v.params),h.push({params:u,pathname:Wn([f,v.pathname]),pathnameBase:bT(Wn([f,v.pathnameBase])),route:E}),v.pathnameBase!=="/"&&(f=Wn([f,v.pathnameBase]))}return h}function kf(o,s){typeof o=="string"&&(o={path:o,caseSensitive:!1,end:!0});let[i,c]=mT(o.path,o.caseSensitive,o.end),u=s.match(i);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:c.reduce((x,{paramName:w,isOptional:v},E)=>{if(w==="*"){let A=p[E]||"";h=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const R=p[E];return v&&!R?x[w]=void 0:x[w]=(R||"").replace(/%2F/g,"/"),x},{}),pathname:f,pathnameBase:h,pattern:o}}function mT(o,s=!1,i=!0){Ht(o==="*"||!o.endsWith("*")||o.endsWith("/*"),`Route path "${o}" will be treated as if it were "${o.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${o.replace(/\*$/,"/*")}".`);let c=[],u="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,y,x,w)=>{if(c.push({paramName:p,isOptional:y!=null}),y){let v=w.charAt(x+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return o.endsWith("*")?(c.push({paramName:"*"}),u+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?u+="\\/*$":o!==""&&o!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,s?void 0:"i"),c]}function hT(o){try{return o.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Ht(!1,`The URL path "${o}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),o}}function jn(o,s){if(s==="/")return o;if(!o.toLowerCase().startsWith(s.toLowerCase()))return null;let i=s.endsWith("/")?s.length-1:s.length,c=o.charAt(i);return c&&c!=="/"?null:o.slice(i)||"/"}function pT({basename:o,pathname:s}){return s==="/"?o:Wn([o,s])}var iE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gg=o=>iE.test(o);function gT(o,s="/"){let{pathname:i,search:c="",hash:u=""}=typeof o=="string"?gs(o):o,f;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?f=dN(i.substring(1),"/"):f=dN(i,s)):f=s,{pathname:f,search:yT(c),hash:vT(u)}}function dN(o,s){let i=s.replace(/\/+$/,"").split("/");return o.split("/").forEach(u=>{u===".."?i.length>1&&i.pop():u!=="."&&i.push(u)}),i.length>1?i.join("/"):"/"}function Tg(o,s,i,c){return`Cannot include a '${o}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cE(o){return o.filter((s,i)=>i===0||s.route.path&&s.route.path.length>0)}function Mf(o){let s=cE(o);return s.map((i,c)=>c===s.length-1?i.pathname:i.pathnameBase)}function tu(o,s,i,c=!1){let u;typeof o=="string"?u=gs(o):(u={...o},et(!u.pathname||!u.pathname.includes("?"),Tg("?","pathname","search",u)),et(!u.pathname||!u.pathname.includes("#"),Tg("#","pathname","hash",u)),et(!u.search||!u.search.includes("#"),Tg("#","search","hash",u)));let f=o===""||u.pathname==="",h=f?"/":u.pathname,p;if(h==null)p=i;else{let v=s.length-1;if(!c&&h.startsWith("..")){let E=h.split("/");for(;E[0]==="..";)E.shift(),v-=1;u.pathname=E.join("/")}p=v>=0?s[v]:"/"}let y=gT(u,p),x=h&&h!=="/"&&h.endsWith("/"),w=(f||h===".")&&i.endsWith("/");return!y.pathname.endsWith("/")&&(x||w)&&(y.pathname+="/"),y}var Wn=o=>o.join("/").replace(/\/\/+/g,"/"),bT=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/"),yT=o=>!o||o==="?"?"":o.startsWith("?")?o:"?"+o,vT=o=>!o||o==="#"?"":o.startsWith("#")?o:"#"+o,au=class{constructor(o,s,i,c=!1){this.status=o,this.statusText=s||"",this.internal=c,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Pc(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}function nu(o){return o.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var uE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dE(o,s){let i=o;if(typeof i!="string"||!iE.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let c=i,u=!1;if(uE)try{let f=new URL(window.location.href),h=i.startsWith("//")?new URL(f.protocol+i):new URL(i),p=jn(h.pathname,s);h.origin===f.origin&&p!=null?i=p+h.search+h.hash:u=!0}catch{Ht(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:u,to:i}}var cr=Symbol("Uninstrumented");function xT(o,s){let i={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};o.forEach(u=>u({id:s.id,index:s.index,path:s.path,instrument(f){let h=Object.keys(i);for(let p of h)f[p]&&i[p].push(f[p])}}));let c={};if(typeof s.lazy=="function"&&i.lazy.length>0){let u=oi(i.lazy,s.lazy,()=>{});u&&(c.lazy=u)}if(typeof s.lazy=="object"){let u=s.lazy;["middleware","loader","action"].forEach(f=>{let h=u[f],p=i[`lazy.${f}`];if(typeof h=="function"&&p.length>0){let y=oi(p,h,()=>{});y&&(c.lazy=Object.assign(c.lazy||{},{[f]:y}))}})}return["loader","action"].forEach(u=>{let f=s[u];if(typeof f=="function"&&i[u].length>0){let h=f[cr]??f,p=oi(i[u],h,(...y)=>fN(y[0]));p&&(u==="loader"&&h.hydrate===!0&&(p.hydrate=!0),p[cr]=h,c[u]=p)}}),s.middleware&&s.middleware.length>0&&i.middleware.length>0&&(c.middleware=s.middleware.map(u=>{let f=u[cr]??u,h=oi(i.middleware,f,(...p)=>fN(p[0]));return h?(h[cr]=f,h):u})),c}function ST(o,s){let i={navigate:[],fetch:[]};if(s.forEach(c=>c({instrument(u){let f=Object.keys(u);for(let h of f)u[h]&&i[h].push(u[h])}})),i.navigate.length>0){let c=o.navigate[cr]??o.navigate,u=oi(i.navigate,c,(...f)=>{let[h,p]=f;return{to:typeof h=="number"||typeof h=="string"?h:h?jo(h):".",...mN(o,p??{})}});u&&(u[cr]=c,o.navigate=u)}if(i.fetch.length>0){let c=o.fetch[cr]??o.fetch,u=oi(i.fetch,c,(...f)=>{let[h,,p,y]=f;return{href:p??".",fetcherKey:h,...mN(o,y??{})}});u&&(u[cr]=c,o.fetch=u)}return o}function oi(o,s,i){return o.length===0?null:async(...c)=>{let u=await fE(o,i(...c),()=>s(...c),o.length-1);if(u.type==="error")throw u.value;return u.value}}async function fE(o,s,i,c){let u=o[c],f;if(u){let h,p=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=fE(o,s,i,c-1),f=await h,et(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await u(p,s)}catch(y){console.error("An instrumentation function threw an error:",y)}h||await p(),await h}else try{f={type:"success",value:await i()}}catch(h){f={type:"error",value:h}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function fN(o){let{request:s,context:i,params:c,unstable_pattern:u}=o;return{request:NT(s),params:{...c},unstable_pattern:u,context:ET(i)}}function mN(o,s){return{currentUrl:jo(o.state.location),..."formMethod"in s?{formMethod:s.formMethod}:{},..."formEncType"in s?{formEncType:s.formEncType}:{},..."formData"in s?{formData:s.formData}:{},..."body"in s?{body:s.body}:{}}}function NT(o){return{method:o.method,url:o.url,headers:{get:(...s)=>o.headers.get(...s)}}}function ET(o){if(DT(o)){let s={...o};return Object.freeze(s),s}else return{get:s=>o.get(s)}}var wT=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function DT(o){if(o===null||typeof o!="object")return!1;const s=Object.getPrototypeOf(o);return s===Object.prototype||s===null||Object.getOwnPropertyNames(s).sort().join("\0")===wT}var mE=["POST","PUT","PATCH","DELETE"],RT=new Set(mE),CT=["GET",...mE],TT=new Set(CT),hE=new Set([301,302,303,307,308]),_T=new Set([307,308]),_g={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},OT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},UT=o=>({hasErrorBoundary:!!o.hasErrorBoundary}),pE="remix-router-transitions",gE=Symbol("ResetLoaderData");function AT(o){const s=o.window?o.window:typeof window<"u"?window:void 0,i=typeof s<"u"&&typeof s.document<"u"&&typeof s.document.createElement<"u";et(o.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=o.hydrationRouteProperties||[],u=o.mapRouteProperties||UT,f=u;if(o.unstable_instrumentations){let T=o.unstable_instrumentations;f=L=>({...u(L),...xT(T.map(G=>G.route).filter(Boolean),L)})}let h={},p=Jc(o.routes,f,void 0,h),y,x=o.basename||"/";x.startsWith("/")||(x=`/${x}`);let w=o.dataStrategy||LT,v={...o.future},E=null,R=new Set,A=null,H=null,V=null,I=o.hydrationData!=null,Z=lr(p,o.history.location,x),le=!1,ae=null,K,se;if(Z==null&&!o.patchRoutesOnNavigation){let T=kn(404,{pathname:o.history.location.pathname}),{matches:L,route:G}=Sf(p);K=!0,se=!K,Z=L,ae={[G.id]:T}}else if(Z&&!o.hydrationData&&Ra(Z,p,o.history.location.pathname).active&&(Z=null),Z)if(Z.some(T=>T.route.lazy))K=!1,se=!K;else if(!Z.some(T=>Xg(T.route)))K=!0,se=!K;else{let T=o.hydrationData?o.hydrationData.loaderData:null,L=o.hydrationData?o.hydrationData.errors:null,G=Z;if(L){let ne=Z.findIndex(ie=>L[ie.route.id]!==void 0);G=G.slice(0,ne+1)}se=!1,K=G.every(ne=>{let ie=bE(ne.route,T,L);return se=se||ie.renderFallback,!ie.shouldLoad})}else{K=!1,se=!K,Z=[];let T=Ra(null,p,o.history.location.pathname);T.active&&T.matches&&(le=!0,Z=T.matches)}let re,j={historyAction:o.history.action,location:o.history.location,matches:Z,initialized:K,renderFallback:se,navigation:_g,restoreScrollPosition:o.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:o.hydrationData&&o.hydrationData.loaderData||{},actionData:o.hydrationData&&o.hydrationData.actionData||null,errors:o.hydrationData&&o.hydrationData.errors||ae,fetchers:new Map,blockers:new Map},W="POP",Q=null,oe=!1,$,ue=!1,ve=new Map,Te=null,J=!1,de=!1,fe=new Set,he=new Map,xe=0,q=-1,ge=new Map,Oe=new Set,Se=new Map,ct=new Map,At=new Set,lt=new Map,ea,Gt=null;function Ia(){if(E=o.history.listen(({action:T,location:L,delta:G})=>{if(ea){ea(),ea=void 0;return}Ht(lt.size===0||G!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ne=Ee({currentLocation:j.location,nextLocation:L,historyAction:T});if(ne&&G!=null){let ie=new Promise(Ce=>{ea=Ce});o.history.go(G*-1),ce(ne,{state:"blocked",location:L,proceed(){ce(ne,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),ie.then(()=>o.history.go(G))},reset(){let Ce=new Map(j.blockers);Ce.set(ne,Vc),$e({blockers:Ce})}}),Q?.resolve(),Q=null;return}return wt(T,L)}),i){t_(s,ve);let T=()=>a_(s,ve);s.addEventListener("pagehide",T),Te=()=>s.removeEventListener("pagehide",T)}return j.initialized||wt("POP",j.location,{initialHydration:!0}),re}function P(){E&&E(),Te&&Te(),R.clear(),$&&$.abort(),j.fetchers.forEach((T,L)=>bn(L)),j.blockers.forEach((T,L)=>ee(L))}function Ze(T){return R.add(T),()=>R.delete(T)}function $e(T,L={}){T.matches&&(T.matches=T.matches.map(ie=>{let Ce=h[ie.route.id],be=ie.route;return be.element!==Ce.element||be.errorElement!==Ce.errorElement||be.hydrateFallbackElement!==Ce.hydrateFallbackElement?{...ie,route:Ce}:ie})),j={...j,...T};let G=[],ne=[];j.fetchers.forEach((ie,Ce)=>{ie.state==="idle"&&(At.has(Ce)?G.push(Ce):ne.push(Ce))}),At.forEach(ie=>{!j.fetchers.has(ie)&&!he.has(ie)&&G.push(ie)}),[...R].forEach(ie=>ie(j,{deletedFetchers:G,newErrors:T.errors??null,viewTransitionOpts:L.viewTransitionOpts,flushSync:L.flushSync===!0})),G.forEach(ie=>bn(ie)),ne.forEach(ie=>j.fetchers.delete(ie))}function ta(T,L,{flushSync:G}={}){let ne=j.actionData!=null&&j.navigation.formMethod!=null&&wa(j.navigation.formMethod)&&j.navigation.state==="loading"&&T.state?._isRedirect!==!0,ie;L.actionData?Object.keys(L.actionData).length>0?ie=L.actionData:ie=null:ne?ie=j.actionData:ie=null;let Ce=L.loaderData?EN(j.loaderData,L.loaderData,L.matches||[],L.errors):j.loaderData,be=j.blockers;be.size>0&&(be=new Map(be),be.forEach((je,_e)=>be.set(_e,Vc)));let Ue=J?!1:sa(T,L.matches||j.matches),we=oe===!0||j.navigation.formMethod!=null&&wa(j.navigation.formMethod)&&T.state?._isRedirect!==!0;y&&(p=y,y=void 0),J||W==="POP"||(W==="PUSH"?o.history.push(T,T.state):W==="REPLACE"&&o.history.replace(T,T.state));let Me;if(W==="POP"){let je=ve.get(j.location.pathname);je&&je.has(T.pathname)?Me={currentLocation:j.location,nextLocation:T}:ve.has(T.pathname)&&(Me={currentLocation:T,nextLocation:j.location})}else if(ue){let je=ve.get(j.location.pathname);je?je.add(T.pathname):(je=new Set([T.pathname]),ve.set(j.location.pathname,je)),Me={currentLocation:j.location,nextLocation:T}}$e({...L,actionData:ie,loaderData:Ce,historyAction:W,location:T,initialized:!0,renderFallback:!1,navigation:_g,revalidation:"idle",restoreScrollPosition:Ue,preventScrollReset:we,blockers:be},{viewTransitionOpts:Me,flushSync:G===!0}),W="POP",oe=!1,ue=!1,J=!1,de=!1,Q?.resolve(),Q=null,Gt?.resolve(),Gt=null}async function Za(T,L){if(Q?.resolve(),Q=null,typeof T=="number"){Q||(Q=CN());let Dt=Q.promise;return o.history.go(T),Dt}let G=Hg(j.location,j.matches,x,T,L?.fromRouteId,L?.relative),{path:ne,submission:ie,error:Ce}=hN(!1,G,L),be;L?.unstable_mask&&(be={pathname:"",search:"",hash:"",...typeof L.unstable_mask=="string"?gs(L.unstable_mask):{...j.location.unstable_mask,...L.unstable_mask}});let Ue=j.location,we=Zc(Ue,ne,L&&L.state,void 0,be);we={...we,...o.history.encodeLocation(we)};let Me=L&&L.replace!=null?L.replace:void 0,je="PUSH";Me===!0?je="REPLACE":Me===!1||ie!=null&&wa(ie.formMethod)&&ie.formAction===j.location.pathname+j.location.search&&(je="REPLACE");let _e=L&&"preventScrollReset"in L?L.preventScrollReset===!0:void 0,ft=(L&&L.flushSync)===!0,We=Ee({currentLocation:Ue,nextLocation:we,historyAction:je});if(We){ce(We,{state:"blocked",location:we,proceed(){ce(We,{state:"proceeding",proceed:void 0,reset:void 0,location:we}),Za(T,L)},reset(){let Dt=new Map(j.blockers);Dt.set(We,Vc),$e({blockers:Dt})}});return}await wt(je,we,{submission:ie,pendingError:Ce,preventScrollReset:_e,replace:L&&L.replace,enableViewTransition:L&&L.viewTransition,flushSync:ft,callSiteDefaultShouldRevalidate:L&&L.unstable_defaultShouldRevalidate})}function dt(){Gt||(Gt=CN()),gn(),$e({revalidation:"loading"});let T=Gt.promise;return j.navigation.state==="submitting"?T:j.navigation.state==="idle"?(wt(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),T):(wt(W||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:ue===!0}),T)}async function wt(T,L,G){$&&$.abort(),$=null,W=T,J=(G&&G.startUninterruptedRevalidation)===!0,Ye(j.location,j.matches),oe=(G&&G.preventScrollReset)===!0,ue=(G&&G.enableViewTransition)===!0;let ne=y||p,ie=G&&G.overrideNavigation,Ce=G?.initialHydration&&j.matches&&j.matches.length>0&&!le?j.matches:lr(ne,L,x),be=(G&&G.flushSync)===!0;if(Ce&&j.initialized&&!de&&XT(j.location,L)&&!(G&&G.submission&&wa(G.submission.formMethod))){ta(L,{matches:Ce},{flushSync:be});return}let Ue=Ra(Ce,ne,L.pathname);if(Ue.active&&Ue.matches&&(Ce=Ue.matches),!Ce){let{error:Bt,notFoundMatches:ra,route:mt}=Ve(L.pathname);ta(L,{matches:ra,loaderData:{},errors:{[mt.id]:Bt}},{flushSync:be});return}$=new AbortController;let we=ai(o.history,L,$.signal,G&&G.submission),Me=o.getContext?await o.getContext():new iN,je;if(G&&G.pendingError)je=[ir(Ce).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&wa(G.submission.formMethod)){let Bt=await Xt(we,L,G.submission,Ce,Me,Ue.active,G&&G.initialHydration===!0,{replace:G.replace,flushSync:be});if(Bt.shortCircuited)return;if(Bt.pendingActionResult){let[ra,mt]=Bt.pendingActionResult;if(dn(mt)&&Pc(mt.error)&&mt.error.status===404){$=null,ta(L,{matches:Bt.matches,loaderData:{},errors:{[ra]:mt.error}});return}}Ce=Bt.matches||Ce,je=Bt.pendingActionResult,ie=Og(L,G.submission),be=!1,Ue.active=!1,we=ai(o.history,we.url,we.signal)}let{shortCircuited:_e,matches:ft,loaderData:We,errors:Dt}=await li(we,L,Ce,Me,Ue.active,ie,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,be,je,G&&G.callSiteDefaultShouldRevalidate);_e||($=null,ta(L,{matches:ft||Ce,...wN(je),loaderData:We,errors:Dt}))}async function Xt(T,L,G,ne,ie,Ce,be,Ue={}){gn();let we=WT(L,G);if($e({navigation:we},{flushSync:Ue.flushSync===!0}),Ce){let _e=await Bo(ne,L.pathname,T.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){if(_e.partialMatches.length===0){let{matches:We,route:Dt}=Sf(p);return{matches:We,pendingActionResult:[Dt.id,{type:"error",error:_e.error}]}}let ft=ir(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[ft,{type:"error",error:_e.error}]}}else if(_e.matches)ne=_e.matches;else{let{notFoundMatches:ft,error:We,route:Dt}=Ve(L.pathname);return{matches:ft,pendingActionResult:[Dt.id,{type:"error",error:We}]}}}let Me,je=Rf(ne,L);if(!je.route.action&&!je.route.lazy)Me={type:"error",error:kn(405,{method:T.method,pathname:L.pathname,routeId:je.route.id})};else{let _e=si(f,h,T,ne,je,be?[]:c,ie),ft=await Ln(T,_e,ie,null);if(Me=ft[je.route.id],!Me){for(let We of ne)if(ft[We.route.id]){Me=ft[We.route.id];break}}if(T.signal.aborted)return{shortCircuited:!0}}if(Zr(Me)){let _e;return Ue&&Ue.replace!=null?_e=Ue.replace:_e=xN(Me.response.headers.get("Location"),new URL(T.url),x,o.history)===j.location.pathname+j.location.search,await pn(T,Me,!0,{submission:G,replace:_e}),{shortCircuited:!0}}if(dn(Me)){let _e=ir(ne,je.route.id);return(Ue&&Ue.replace)!==!0&&(W="PUSH"),{matches:ne,pendingActionResult:[_e.route.id,Me,je.route.id]}}return{matches:ne,pendingActionResult:[je.route.id,Me]}}async function li(T,L,G,ne,ie,Ce,be,Ue,we,Me,je,_e,ft){let We=Ce||Og(L,be),Dt=be||Ue||RN(We),Bt=!J&&!Me;if(ie){if(Bt){let la=Ne(_e);$e({navigation:We,...la!==void 0?{actionData:la}:{}},{flushSync:je})}let nt=await Bo(G,L.pathname,T.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){if(nt.partialMatches.length===0){let{matches:xs,route:oo}=Sf(p);return{matches:xs,loaderData:{},errors:{[oo.id]:nt.error}}}let la=ir(nt.partialMatches).route.id;return{matches:nt.partialMatches,loaderData:{},errors:{[la]:nt.error}}}else if(nt.matches)G=nt.matches;else{let{error:la,notFoundMatches:xs,route:oo}=Ve(L.pathname);return{matches:xs,loaderData:{},errors:{[oo.id]:la}}}}let ra=y||p,{dsMatches:mt,revalidatingFetchers:Ca}=pN(T,ne,f,h,o.history,j,G,Dt,L,Me?[]:c,Me===!0,de,fe,At,Se,Oe,ra,x,o.patchRoutesOnNavigation!=null,_e,ft);if(q=++xe,!o.dataStrategy&&!mt.some(nt=>nt.shouldLoad)&&!mt.some(nt=>nt.route.middleware&&nt.route.middleware.length>0)&&Ca.length===0){let nt=Vn();return ta(L,{matches:G,loaderData:{},errors:_e&&dn(_e[1])?{[_e[0]]:_e[1].error}:null,...wN(_e),...nt?{fetchers:new Map(j.fetchers)}:{}},{flushSync:je}),{shortCircuited:!0}}if(Bt){let nt={};if(!ie){nt.navigation=We;let la=Ne(_e);la!==void 0&&(nt.actionData=la)}Ca.length>0&&(nt.fetchers=bs(Ca)),$e(nt,{flushSync:je})}Ca.forEach(nt=>{ya(nt.key),nt.controller&&he.set(nt.key,nt.controller)});let $t=()=>Ca.forEach(nt=>ya(nt.key));$&&$.signal.addEventListener("abort",$t);let{loaderResults:yn,fetcherResults:va}=await ys(mt,Ca,T,ne);if(T.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",$t),Ca.forEach(nt=>he.delete(nt.key));let Ja=Nf(yn);if(Ja)return await pn(T,Ja.result,!0,{replace:we}),{shortCircuited:!0};if(Ja=Nf(va),Ja)return Oe.add(Ja.key),await pn(T,Ja.result,!0,{replace:we}),{shortCircuited:!0};let{loaderData:Yo,errors:ao}=NN(j,G,yn,_e,Ca,va);Me&&j.errors&&(ao={...j.errors,...ao});let Bn=Vn(),no=N(q),$n=Bn||no||Ca.length>0;return{matches:G,loaderData:Yo,errors:ao,...$n?{fetchers:new Map(j.fetchers)}:{}}}function Ne(T){if(T&&!dn(T[1]))return{[T[0]]:T[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function bs(T){return T.forEach(L=>{let G=j.fetchers.get(L.key),ne=Hc(void 0,G?G.data:void 0);j.fetchers.set(L.key,ne)}),new Map(j.fetchers)}async function hn(T,L,G,ne){ya(T);let ie=(ne&&ne.flushSync)===!0,Ce=y||p,be=Hg(j.location,j.matches,x,G,L,ne?.relative),Ue=lr(Ce,be,x),we=Ra(Ue,Ce,be);if(we.active&&we.matches&&(Ue=we.matches),!Ue){Da(T,L,kn(404,{pathname:be}),{flushSync:ie});return}let{path:Me,submission:je,error:_e}=hN(!0,be,ne);if(_e){Da(T,L,_e,{flushSync:ie});return}let ft=o.getContext?await o.getContext():new iN,We=(ne&&ne.preventScrollReset)===!0;if(je&&wa(je.formMethod)){await zo(T,L,Me,Ue,ft,we.active,ie,We,je,ne&&ne.unstable_defaultShouldRevalidate);return}Se.set(T,{routeId:L,path:Me}),await to(T,L,Me,Ue,ft,we.active,ie,We,je)}async function zo(T,L,G,ne,ie,Ce,be,Ue,we,Me){gn(),Se.delete(T);let je=j.fetchers.get(T);Ha(T,e_(we,je),{flushSync:be});let _e=new AbortController,ft=ai(o.history,G,_e.signal,we);if(Ce){let Rt=await Bo(ne,new URL(ft.url).pathname,ft.signal,T);if(Rt.type==="aborted")return;if(Rt.type==="error"){Da(T,L,Rt.error,{flushSync:be});return}else if(Rt.matches)ne=Rt.matches;else{Da(T,L,kn(404,{pathname:G}),{flushSync:be});return}}let We=Rf(ne,G);if(!We.route.action&&!We.route.lazy){let Rt=kn(405,{method:we.formMethod,pathname:G,routeId:L});Da(T,L,Rt,{flushSync:be});return}he.set(T,_e);let Dt=xe,Bt=si(f,h,ft,ne,We,c,ie),ra=await Ln(ft,Bt,ie,T),mt=ra[We.route.id];if(!mt){for(let Rt of Bt)if(ra[Rt.route.id]){mt=ra[Rt.route.id];break}}if(ft.signal.aborted){he.get(T)===_e&&he.delete(T);return}if(At.has(T)){if(Zr(mt)||dn(mt)){Ha(T,ps(void 0));return}}else{if(Zr(mt))if(he.delete(T),q>Dt){Ha(T,ps(void 0));return}else return Oe.add(T),Ha(T,Hc(we)),pn(ft,mt,!1,{fetcherSubmission:we,preventScrollReset:Ue});if(dn(mt)){Da(T,L,mt.error);return}}let Ca=j.navigation.location||j.location,$t=ai(o.history,Ca,_e.signal),yn=y||p,va=j.navigation.state!=="idle"?lr(yn,j.navigation.location,x):j.matches;et(va,"Didn't find any matches after fetcher action");let Ja=++xe;ge.set(T,Ja);let Yo=Hc(we,mt.data);j.fetchers.set(T,Yo);let{dsMatches:ao,revalidatingFetchers:Bn}=pN($t,ie,f,h,o.history,j,va,we,Ca,c,!1,de,fe,At,Se,Oe,yn,x,o.patchRoutesOnNavigation!=null,[We.route.id,mt],Me);Bn.filter(Rt=>Rt.key!==T).forEach(Rt=>{let Ss=Rt.key,ii=j.fetchers.get(Ss),lu=Hc(void 0,ii?ii.data:void 0);j.fetchers.set(Ss,lu),ya(Ss),Rt.controller&&he.set(Ss,Rt.controller)}),$e({fetchers:new Map(j.fetchers)});let no=()=>Bn.forEach(Rt=>ya(Rt.key));_e.signal.addEventListener("abort",no);let{loaderResults:$n,fetcherResults:nt}=await ys(ao,Bn,$t,ie);if(_e.signal.aborted)return;if(_e.signal.removeEventListener("abort",no),ge.delete(T),he.delete(T),Bn.forEach(Rt=>he.delete(Rt.key)),j.fetchers.has(T)){let Rt=ps(mt.data);j.fetchers.set(T,Rt)}let la=Nf($n);if(la)return pn($t,la.result,!1,{preventScrollReset:Ue});if(la=Nf(nt),la)return Oe.add(la.key),pn($t,la.result,!1,{preventScrollReset:Ue});let{loaderData:xs,errors:oo}=NN(j,va,$n,void 0,Bn,nt);N(Ja),j.navigation.state==="loading"&&Ja>q?(et(W,"Expected pending action"),$&&$.abort(),ta(j.navigation.location,{matches:va,loaderData:xs,errors:oo,fetchers:new Map(j.fetchers)})):($e({errors:oo,loaderData:EN(j.loaderData,xs,va,oo),fetchers:new Map(j.fetchers)}),de=!1)}async function to(T,L,G,ne,ie,Ce,be,Ue,we){let Me=j.fetchers.get(T);Ha(T,Hc(we,Me?Me.data:void 0),{flushSync:be});let je=new AbortController,_e=ai(o.history,G,je.signal);if(Ce){let mt=await Bo(ne,new URL(_e.url).pathname,_e.signal,T);if(mt.type==="aborted")return;if(mt.type==="error"){Da(T,L,mt.error,{flushSync:be});return}else if(mt.matches)ne=mt.matches;else{Da(T,L,kn(404,{pathname:G}),{flushSync:be});return}}let ft=Rf(ne,G);he.set(T,je);let We=xe,Dt=si(f,h,_e,ne,ft,c,ie),ra=(await Ln(_e,Dt,ie,T))[ft.route.id];if(he.get(T)===je&&he.delete(T),!_e.signal.aborted){if(At.has(T)){Ha(T,ps(void 0));return}if(Zr(ra))if(q>We){Ha(T,ps(void 0));return}else{Oe.add(T),await pn(_e,ra,!1,{preventScrollReset:Ue});return}if(dn(ra)){Da(T,L,ra.error);return}Ha(T,ps(ra.data))}}async function pn(T,L,G,{submission:ne,fetcherSubmission:ie,preventScrollReset:Ce,replace:be}={}){G||(Q?.resolve(),Q=null),L.response.headers.has("X-Remix-Revalidate")&&(de=!0);let Ue=L.response.headers.get("Location");et(Ue,"Expected a Location header on the redirect Response"),Ue=xN(Ue,new URL(T.url),x,o.history);let we=Zc(j.location,Ue,{_isRedirect:!0});if(i){let Dt=!1;if(L.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(Gg(Ue)){const Bt=sE(Ue,!0);Dt=Bt.origin!==s.location.origin||jn(Bt.pathname,x)==null}if(Dt){be?s.location.replace(Ue):s.location.assign(Ue);return}}$=null;let Me=be===!0||L.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:je,formAction:_e,formEncType:ft}=j.navigation;!ne&&!ie&&je&&_e&&ft&&(ne=RN(j.navigation));let We=ne||ie;if(_T.has(L.response.status)&&We&&wa(We.formMethod))await wt(Me,we,{submission:{...We,formAction:Ue},preventScrollReset:Ce||oe,enableViewTransition:G?ue:void 0});else{let Dt=Og(we,ne);await wt(Me,we,{overrideNavigation:Dt,fetcherSubmission:ie,preventScrollReset:Ce||oe,enableViewTransition:G?ue:void 0})}}async function Ln(T,L,G,ne){let ie,Ce={};try{ie=await HT(w,T,L,ne,G,!1)}catch(be){return L.filter(Ue=>Ue.shouldLoad).forEach(Ue=>{Ce[Ue.route.id]={type:"error",error:be}}),Ce}if(T.signal.aborted)return Ce;if(!wa(T.method))for(let be of L){if(ie[be.route.id]?.type==="error")break;!ie.hasOwnProperty(be.route.id)&&!j.loaderData.hasOwnProperty(be.route.id)&&(!j.errors||!j.errors.hasOwnProperty(be.route.id))&&be.shouldCallHandler()&&(ie[be.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${be.route.id}`)})}for(let[be,Ue]of Object.entries(ie))if(ZT(Ue)){let we=Ue.result;Ce[be]={type:"redirect",response:qT(we,T,be,L,x)}}else Ce[be]=await YT(Ue);return Ce}async function ys(T,L,G,ne){let ie=Ln(G,T,ne,null),Ce=Promise.all(L.map(async we=>{if(we.matches&&we.match&&we.request&&we.controller){let je=(await Ln(we.request,we.matches,ne,we.key))[we.match.route.id];return{[we.key]:je}}else return Promise.resolve({[we.key]:{type:"error",error:kn(404,{pathname:we.path})}})})),be=await ie,Ue=(await Ce).reduce((we,Me)=>Object.assign(we,Me),{});return{loaderResults:be,fetcherResults:Ue}}function gn(){de=!0,Se.forEach((T,L)=>{he.has(L)&&fe.add(L),ya(L)})}function Ha(T,L,G={}){j.fetchers.set(T,L),$e({fetchers:new Map(j.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Da(T,L,G,ne={}){let ie=ir(j.matches,L);bn(T),$e({errors:{[ie.route.id]:G},fetchers:new Map(j.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function vs(T){return ct.set(T,(ct.get(T)||0)+1),At.has(T)&&At.delete(T),j.fetchers.get(T)||OT}function Lo(T,L){ya(T,L?.reason),Ha(T,ps(null))}function bn(T){let L=j.fetchers.get(T);he.has(T)&&!(L&&L.state==="loading"&&ge.has(T))&&ya(T),Se.delete(T),ge.delete(T),Oe.delete(T),At.delete(T),fe.delete(T),j.fetchers.delete(T)}function Vo(T){let L=(ct.get(T)||0)-1;L<=0?(ct.delete(T),At.add(T)):ct.set(T,L),$e({fetchers:new Map(j.fetchers)})}function ya(T,L){let G=he.get(T);G&&(G.abort(L),he.delete(T))}function Ho(T){for(let L of T){let G=vs(L),ne=ps(G.data);j.fetchers.set(L,ne)}}function Vn(){let T=[],L=!1;for(let G of Oe){let ne=j.fetchers.get(G);et(ne,`Expected fetcher: ${G}`),ne.state==="loading"&&(Oe.delete(G),T.push(G),L=!0)}return Ho(T),L}function N(T){let L=[];for(let[G,ne]of ge)if(ne<T){let ie=j.fetchers.get(G);et(ie,`Expected fetcher: ${G}`),ie.state==="loading"&&(ya(G),ge.delete(G),L.push(G))}return Ho(L),L.length>0}function z(T,L){let G=j.blockers.get(T)||Vc;return lt.get(T)!==L&&lt.set(T,L),G}function ee(T){j.blockers.delete(T),lt.delete(T)}function ce(T,L){let G=j.blockers.get(T)||Vc;et(G.state==="unblocked"&&L.state==="blocked"||G.state==="blocked"&&L.state==="blocked"||G.state==="blocked"&&L.state==="proceeding"||G.state==="blocked"&&L.state==="unblocked"||G.state==="proceeding"&&L.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${L.state}`);let ne=new Map(j.blockers);ne.set(T,L),$e({blockers:ne})}function Ee({currentLocation:T,nextLocation:L,historyAction:G}){if(lt.size===0)return;lt.size>1&&Ht(!1,"A router only supports one blocker at a time");let ne=Array.from(lt.entries()),[ie,Ce]=ne[ne.length-1],be=j.blockers.get(ie);if(!(be&&be.state==="proceeding")&&Ce({currentLocation:T,nextLocation:L,historyAction:G}))return ie}function Ve(T){let L=kn(404,{pathname:T}),G=y||p,{matches:ne,route:ie}=Sf(G);return{notFoundMatches:ne,route:ie,error:L}}function Re(T,L,G){if(A=T,V=L,H=G||null,!I&&j.navigation===_g){I=!0;let ne=sa(j.location,j.matches);ne!=null&&$e({restoreScrollPosition:ne})}return()=>{A=null,V=null,H=null}}function tt(T,L){return H&&H(T,L.map(ne=>aT(ne,j.loaderData)))||T.key}function Ye(T,L){if(A&&V){let G=tt(T,L);A[G]=V()}}function sa(T,L){if(A){let G=tt(T,L),ne=A[G];if(typeof ne=="number")return ne}return null}function Ra(T,L,G){if(o.patchRoutesOnNavigation)if(T){if(Object.keys(T[0].params).length>0)return{active:!0,matches:Gc(L,G,x,!0)}}else return{active:!0,matches:Gc(L,G,x,!0)||[]};return{active:!1,matches:null}}async function Bo(T,L,G,ne){if(!o.patchRoutesOnNavigation)return{type:"success",matches:T};let ie=T;for(;;){let Ce=y==null,be=y||p,Ue=h;try{await o.patchRoutesOnNavigation({signal:G,path:L,matches:ie,fetcherKey:ne,patch:(je,_e)=>{G.aborted||gN(je,_e,be,Ue,f,!1)}})}catch(je){return{type:"error",error:je,partialMatches:ie}}finally{Ce&&!G.aborted&&(p=[...p])}if(G.aborted)return{type:"aborted"};let we=lr(be,L,x),Me=null;if(we){if(Object.keys(we[0].params).length===0)return{type:"success",matches:we};if(Me=Gc(be,L,x,!0),!(Me&&ie.length<Me.length&&$o(ie,Me.slice(0,ie.length))))return{type:"success",matches:we}}if(Me||(Me=Gc(be,L,x,!0)),!Me||$o(ie,Me))return{type:"success",matches:null};ie=Me}}function $o(T,L){return T.length===L.length&&T.every((G,ne)=>G.route.id===L[ne].route.id)}function tl(T){h={},y=Jc(T,f,void 0,h)}function Hn(T,L,G=!1){let ne=y==null;gN(T,L,y||p,h,f,G),ne&&(p=[...p],$e({}))}return re={get basename(){return x},get future(){return v},get state(){return j},get routes(){return p},get window(){return s},initialize:Ia,subscribe:Ze,enableScrollRestoration:Re,navigate:Za,fetch:hn,revalidate:dt,createHref:T=>o.history.createHref(T),encodeLocation:T=>o.history.encodeLocation(T),getFetcher:vs,resetFetcher:Lo,deleteFetcher:Vo,dispose:P,getBlocker:z,deleteBlocker:ee,patchRoutes:Hn,_internalFetchControllers:he,_internalSetRoutes:tl,_internalSetStateDoNotUseOrYouWillBreakYourApp(T){$e(T)}},o.unstable_instrumentations&&(re=ST(re,o.unstable_instrumentations.map(T=>T.router).filter(Boolean))),re}function kT(o){return o!=null&&("formData"in o&&o.formData!=null||"body"in o&&o.body!==void 0)}function Hg(o,s,i,c,u,f){let h,p;if(u){h=[];for(let x of s)if(h.push(x),x.route.id===u){p=x;break}}else h=s,p=s[s.length-1];let y=tu(c||".",Mf(h),jn(o.pathname,i)||o.pathname,f==="path");if(c==null&&(y.search=o.search,y.hash=o.hash),(c==null||c===""||c===".")&&p){let x=Fg(y.search);if(p.route.index&&!x)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&x){let w=new URLSearchParams(y.search),v=w.getAll("index");w.delete("index"),v.filter(R=>R).forEach(R=>w.append("index",R));let E=w.toString();y.search=E?`?${E}`:""}}return i!=="/"&&(y.pathname=pT({basename:i,pathname:y.pathname})),jo(y)}function hN(o,s,i){if(!i||!kT(i))return{path:s};if(i.formMethod&&!KT(i.formMethod))return{path:s,error:kn(405,{method:i.formMethod})};let c=()=>({path:s,error:kn(400,{type:"invalid-body"})}),f=(i.formMethod||"get").toUpperCase(),h=EE(s);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!wa(f))return c();let v=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((E,[R,A])=>`${E}${R}=${A}
236
+ `,""):String(i.body);return{path:s,submission:{formMethod:f,formAction:h,formEncType:i.formEncType,formData:void 0,json:void 0,text:v}}}else if(i.formEncType==="application/json"){if(!wa(f))return c();try{let v=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:s,submission:{formMethod:f,formAction:h,formEncType:i.formEncType,formData:void 0,json:v,text:void 0}}}catch{return c()}}}et(typeof FormData=="function","FormData is not available in this environment");let p,y;if(i.formData)p=$g(i.formData),y=i.formData;else if(i.body instanceof FormData)p=$g(i.body),y=i.body;else if(i.body instanceof URLSearchParams)p=i.body,y=SN(p);else if(i.body==null)p=new URLSearchParams,y=new FormData;else try{p=new URLSearchParams(i.body),y=SN(p)}catch{return c()}let x={formMethod:f,formAction:h,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(wa(x.formMethod))return{path:s,submission:x};let w=gs(s);return o&&w.search&&Fg(w.search)&&p.append("index",""),w.search=`?${p}`,{path:jo(w),submission:x}}function pN(o,s,i,c,u,f,h,p,y,x,w,v,E,R,A,H,V,I,Z,le,ae){let K=le?dn(le[1])?le[1].error:le[1].data:void 0,se=u.createURL(f.location),re=u.createURL(y),j;if(w&&f.errors){let Te=Object.keys(f.errors)[0];j=h.findIndex(J=>J.route.id===Te)}else if(le&&dn(le[1])){let Te=le[0];j=h.findIndex(J=>J.route.id===Te)-1}let W=le?le[1].statusCode:void 0,Q=W&&W>=400,oe={currentUrl:se,currentParams:f.matches[0]?.params||{},nextUrl:re,nextParams:h[0].params,...p,actionResult:K,actionStatus:W},$=nu(h),ue=h.map((Te,J)=>{let{route:de}=Te,fe=null;if(j!=null&&J>j)fe=!1;else if(de.lazy)fe=!0;else if(!Xg(de))fe=!1;else if(w){let{shouldLoad:ge}=bE(de,f.loaderData,f.errors);fe=ge}else jT(f.loaderData,f.matches[J],Te)&&(fe=!0);if(fe!==null)return Bg(i,c,o,$,Te,x,s,fe);let he=!1;typeof ae=="boolean"?he=ae:Q?he=!1:(v||se.pathname+se.search===re.pathname+re.search||se.search!==re.search||MT(f.matches[J],Te))&&(he=!0);let xe={...oe,defaultShouldRevalidate:he},q=Fc(Te,xe);return Bg(i,c,o,$,Te,x,s,q,xe,ae)}),ve=[];return A.forEach((Te,J)=>{if(w||!h.some(Se=>Se.route.id===Te.routeId)||R.has(J))return;let de=f.fetchers.get(J),fe=de&&de.state!=="idle"&&de.data===void 0,he=lr(V,Te.path,I);if(!he){if(Z&&fe)return;ve.push({key:J,routeId:Te.routeId,path:Te.path,matches:null,match:null,request:null,controller:null});return}if(H.has(J))return;let xe=Rf(he,Te.path),q=new AbortController,ge=ai(u,Te.path,q.signal),Oe=null;if(E.has(J))E.delete(J),Oe=si(i,c,ge,he,xe,x,s);else if(fe)v&&(Oe=si(i,c,ge,he,xe,x,s));else{let Se;typeof ae=="boolean"?Se=ae:Q?Se=!1:Se=v;let ct={...oe,defaultShouldRevalidate:Se};Fc(xe,ct)&&(Oe=si(i,c,ge,he,xe,x,s,ct))}Oe&&ve.push({key:J,routeId:Te.routeId,path:Te.path,matches:Oe,match:xe,request:ge,controller:q})}),{dsMatches:ue,revalidatingFetchers:ve}}function Xg(o){return o.loader!=null||o.middleware!=null&&o.middleware.length>0}function bE(o,s,i){if(o.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Xg(o))return{shouldLoad:!1,renderFallback:!1};let c=s!=null&&o.id in s,u=i!=null&&i[o.id]!==void 0;if(!c&&u)return{shouldLoad:!1,renderFallback:!1};if(typeof o.loader=="function"&&o.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let f=!c&&!u;return{shouldLoad:f,renderFallback:f}}function jT(o,s,i){let c=!s||i.route.id!==s.route.id,u=!o.hasOwnProperty(i.route.id);return c||u}function MT(o,s){let i=o.route.path;return o.pathname!==s.pathname||i!=null&&i.endsWith("*")&&o.params["*"]!==s.params["*"]}function Fc(o,s){if(o.route.shouldRevalidate){let i=o.route.shouldRevalidate(s);if(typeof i=="boolean")return i}return s.defaultShouldRevalidate}function gN(o,s,i,c,u,f){let h;if(o){let x=c[o];et(x,`No route found to patch children into: routeId = ${o}`),x.children||(x.children=[]),h=x.children}else h=i;let p=[],y=[];if(s.forEach(x=>{let w=h.find(v=>yE(x,v));w?y.push({existingRoute:w,newRoute:x}):p.push(x)}),p.length>0){let x=Jc(p,u,[o||"_","patch",String(h?.length||"0")],c);h.push(...x)}if(f&&y.length>0)for(let x=0;x<y.length;x++){let{existingRoute:w,newRoute:v}=y[x],E=w,[R]=Jc([v],u,[],{},!0);Object.assign(E,{element:R.element?R.element:E.element,errorElement:R.errorElement?R.errorElement:E.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:E.hydrateFallbackElement})}}function yE(o,s){return"id"in o&&"id"in s&&o.id===s.id?!0:o.index===s.index&&o.path===s.path&&o.caseSensitive===s.caseSensitive?(!o.children||o.children.length===0)&&(!s.children||s.children.length===0)?!0:o.children?.every((i,c)=>s.children?.some(u=>yE(i,u)))??!1:!1}var bN=new WeakMap,vE=({key:o,route:s,manifest:i,mapRouteProperties:c})=>{let u=i[s.id];if(et(u,"No route found in manifest"),!u.lazy||typeof u.lazy!="object")return;let f=u.lazy[o];if(!f)return;let h=bN.get(u);h||(h={},bN.set(u,h));let p=h[o];if(p)return p;let y=(async()=>{let x=KC(o),v=u[o]!==void 0&&o!=="hasErrorBoundary";if(x)Ht(!x,"Route property "+o+" is not a supported lazy route property. This property will be ignored."),h[o]=Promise.resolve();else if(v)Ht(!1,`Route "${u.id}" has a static property "${o}" defined. The lazy property will be ignored.`);else{let E=await f();E!=null&&(Object.assign(u,{[o]:E}),Object.assign(u,c(u)))}typeof u.lazy=="object"&&(u.lazy[o]=void 0,Object.values(u.lazy).every(E=>E===void 0)&&(u.lazy=void 0))})();return h[o]=y,y},yN=new WeakMap;function zT(o,s,i,c,u){let f=i[o.id];if(et(f,"No route found in manifest"),!o.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof o.lazy=="function"){let w=yN.get(f);if(w)return{lazyRoutePromise:w,lazyHandlerPromise:w};let v=(async()=>{et(typeof o.lazy=="function","No lazy route function found");let E=await o.lazy(),R={};for(let A in E){let H=E[A];if(H===void 0)continue;let V=eT(A),Z=f[A]!==void 0&&A!=="hasErrorBoundary";V?Ht(!V,"Route property "+A+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?Ht(!Z,`Route "${f.id}" has a static property "${A}" defined but its lazy function is also returning a value for this property. The lazy route property "${A}" will be ignored.`):R[A]=H}Object.assign(f,R),Object.assign(f,{...c(f),lazy:void 0})})();return yN.set(f,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let h=Object.keys(o.lazy),p=[],y;for(let w of h){if(u&&u.includes(w))continue;let v=vE({key:w,route:o,manifest:i,mapRouteProperties:c});v&&(p.push(v),w===s&&(y=v))}let x=p.length>0?Promise.all(p).then(()=>{}):void 0;return x?.catch(()=>{}),y?.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:y}}async function vN(o){let s=o.matches.filter(u=>u.shouldLoad),i={};return(await Promise.all(s.map(u=>u.resolve()))).forEach((u,f)=>{i[s[f].route.id]=u}),i}async function LT(o){return o.matches.some(s=>s.route.middleware)?xE(o,()=>vN(o)):vN(o)}function xE(o,s){return VT(o,s,c=>{if(PT(c))throw c;return c},FT,i);function i(c,u,f){if(f)return Promise.resolve(Object.assign(f.value,{[u]:{type:"error",result:c}}));{let{matches:h}=o,p=Math.min(Math.max(h.findIndex(x=>x.route.id===u),0),Math.max(h.findIndex(x=>x.shouldCallHandler()),0)),y=ir(h,h[p].route.id).route.id;return Promise.resolve({[y]:{type:"error",result:c}})}}}async function VT(o,s,i,c,u){let{matches:f,request:h,params:p,context:y,unstable_pattern:x}=o,w=f.flatMap(E=>E.route.middleware?E.route.middleware.map(R=>[E.route.id,R]):[]);return await SE({request:h,params:p,context:y,unstable_pattern:x},w,s,i,c,u)}async function SE(o,s,i,c,u,f,h=0){let{request:p}=o;if(p.signal.aborted)throw p.signal.reason??new Error(`Request aborted: ${p.method} ${p.url}`);let y=s[h];if(!y)return await i();let[x,w]=y,v,E=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await SE(o,s,i,c,u,f,h+1)},v.value}catch(R){return v={value:await f(R,x,v)},v.value}};try{let R=await w(o,E),A=R!=null?c(R):void 0;return u(A)?A:v?A??v.value:(v={value:await E()},v.value)}catch(R){return await f(R,x,v)}}function NE(o,s,i,c,u){let f=vE({key:"middleware",route:c.route,manifest:s,mapRouteProperties:o}),h=zT(c.route,wa(i.method)?"action":"loader",s,o,u);return{middleware:f,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Bg(o,s,i,c,u,f,h,p,y=null,x){let w=!1,v=NE(o,s,i,u,f);return{...u,_lazyPromises:v,shouldLoad:p,shouldRevalidateArgs:y,shouldCallHandler(E){return w=!0,y?typeof x=="boolean"?Fc(u,{...y,defaultShouldRevalidate:x}):typeof E=="boolean"?Fc(u,{...y,defaultShouldRevalidate:E}):Fc(u,y):p},resolve(E){let{lazy:R,loader:A,middleware:H}=u.route,V=w||p||E&&!wa(i.method)&&(R||A),I=H&&H.length>0&&!A&&!R;return V&&(wa(i.method)||!I)?BT({request:i,unstable_pattern:c,match:u,lazyHandlerPromise:v?.handler,lazyRoutePromise:v?.route,handlerOverride:E,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function si(o,s,i,c,u,f,h,p=null){return c.map(y=>y.route.id!==u.route.id?{...y,shouldLoad:!1,shouldRevalidateArgs:p,shouldCallHandler:()=>!1,_lazyPromises:NE(o,s,i,y,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Bg(o,s,i,nu(c),y,f,h,!0,p))}async function HT(o,s,i,c,u,f){i.some(x=>x._lazyPromises?.middleware)&&await Promise.all(i.map(x=>x._lazyPromises?.middleware));let h={request:s,unstable_pattern:nu(i),params:i[0].params,context:u,matches:i},y=await o({...h,fetcherKey:c,runClientMiddleware:x=>{let w=h;return xE(w,()=>x({...w,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(i.flatMap(x=>[x._lazyPromises?.handler,x._lazyPromises?.route]))}catch{}return y}async function BT({request:o,unstable_pattern:s,match:i,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:f,scopedContext:h}){let p,y,x=wa(o.method),w=x?"action":"loader",v=E=>{let R,A=new Promise((I,Z)=>R=Z);y=()=>R(),o.signal.addEventListener("abort",y);let H=I=>typeof E!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${w}" [routeId: ${i.route.id}]`)):E({request:o,unstable_pattern:s,params:i.params,context:h},...I!==void 0?[I]:[]),V=(async()=>{try{return{type:"data",result:await(f?f(Z=>H(Z)):H())}}catch(I){return{type:"error",result:I}}})();return Promise.race([V,A])};try{let E=x?i.route.action:i.route.loader;if(c||u)if(E){let R,[A]=await Promise.all([v(E).catch(H=>{R=H}),c,u]);if(R!==void 0)throw R;p=A}else{await c;let R=x?i.route.action:i.route.loader;if(R)[p]=await Promise.all([v(R),u]);else if(w==="action"){let A=new URL(o.url),H=A.pathname+A.search;throw kn(405,{method:o.method,pathname:H,routeId:i.route.id})}else return{type:"data",result:void 0}}else if(E)p=await v(E);else{let R=new URL(o.url),A=R.pathname+R.search;throw kn(404,{pathname:A})}}catch(E){return{type:"error",result:E}}finally{y&&o.signal.removeEventListener("abort",y)}return p}async function $T(o){let s=o.headers.get("Content-Type");return s&&/\bapplication\/json\b/.test(s)?o.body==null?null:o.json():o.text()}async function YT(o){let{result:s,type:i}=o;if(Qg(s)){let c;try{c=await $T(s)}catch(u){return{type:"error",error:u}}return i==="error"?{type:"error",error:new au(s.status,s.statusText,c),statusCode:s.status,headers:s.headers}:{type:"data",data:c,statusCode:s.status,headers:s.headers}}return i==="error"?DN(s)?s.data instanceof Error?{type:"error",error:s.data,statusCode:s.init?.status,headers:s.init?.headers?new Headers(s.init.headers):void 0}:{type:"error",error:QT(s),statusCode:Pc(s)?s.status:void 0,headers:s.init?.headers?new Headers(s.init.headers):void 0}:{type:"error",error:s,statusCode:Pc(s)?s.status:void 0}:DN(s)?{type:"data",data:s.data,statusCode:s.init?.status,headers:s.init?.headers?new Headers(s.init.headers):void 0}:{type:"data",data:s}}function qT(o,s,i,c,u){let f=o.headers.get("Location");if(et(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Gg(f)){let h=c.slice(0,c.findIndex(p=>p.route.id===i)+1);f=Hg(new URL(s.url),h,u,f),o.headers.set("Location",f)}return o}function xN(o,s,i,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Gg(o)){let f=o,h=f.startsWith("//")?new URL(s.protocol+f):new URL(f);if(u.includes(h.protocol))throw new Error("Invalid redirect location");let p=jn(h.pathname,i)!=null;if(h.origin===s.origin&&p)return h.pathname+h.search+h.hash}try{let f=c.createURL(o);if(u.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return o}function ai(o,s,i,c){let u=o.createURL(EE(s)).toString(),f={signal:i};if(c&&wa(c.formMethod)){let{formMethod:h,formEncType:p}=c;f.method=h.toUpperCase(),p==="application/json"?(f.headers=new Headers({"Content-Type":p}),f.body=JSON.stringify(c.json)):p==="text/plain"?f.body=c.text:p==="application/x-www-form-urlencoded"&&c.formData?f.body=$g(c.formData):f.body=c.formData}return new Request(u,f)}function $g(o){let s=new URLSearchParams;for(let[i,c]of o.entries())s.append(i,typeof c=="string"?c:c.name);return s}function SN(o){let s=new FormData;for(let[i,c]of o.entries())s.append(i,c);return s}function GT(o,s,i,c=!1,u=!1){let f={},h=null,p,y=!1,x={},w=i&&dn(i[1])?i[1].error:void 0;return o.forEach(v=>{if(!(v.route.id in s))return;let E=v.route.id,R=s[E];if(et(!Zr(R),"Cannot handle redirect results in processLoaderData"),dn(R)){let A=R.error;if(w!==void 0&&(A=w,w=void 0),h=h||{},u)h[E]=A;else{let H=ir(o,E);h[H.route.id]==null&&(h[H.route.id]=A)}c||(f[E]=gE),y||(y=!0,p=Pc(R.error)?R.error.status:500),R.headers&&(x[E]=R.headers)}else f[E]=R.data,R.statusCode&&R.statusCode!==200&&!y&&(p=R.statusCode),R.headers&&(x[E]=R.headers)}),w!==void 0&&i&&(h={[i[0]]:w},i[2]&&(f[i[2]]=void 0)),{loaderData:f,errors:h,statusCode:p||200,loaderHeaders:x}}function NN(o,s,i,c,u,f){let{loaderData:h,errors:p}=GT(s,i,c);return u.filter(y=>!y.matches||y.matches.some(x=>x.shouldLoad)).forEach(y=>{let{key:x,match:w,controller:v}=y;if(v&&v.signal.aborted)return;let E=f[x];if(et(E,"Did not find corresponding fetcher result"),dn(E)){let R=ir(o.matches,w?.route.id);p&&p[R.route.id]||(p={...p,[R.route.id]:E.error}),o.fetchers.delete(x)}else if(Zr(E))et(!1,"Unhandled fetcher revalidation redirect");else{let R=ps(E.data);o.fetchers.set(x,R)}}),{loaderData:h,errors:p}}function EN(o,s,i,c){let u=Object.entries(s).filter(([,f])=>f!==gE).reduce((f,[h,p])=>(f[h]=p,f),{});for(let f of i){let h=f.route.id;if(!s.hasOwnProperty(h)&&o.hasOwnProperty(h)&&f.route.loader&&(u[h]=o[h]),c&&c.hasOwnProperty(h))break}return u}function wN(o){return o?dn(o[1])?{actionData:{}}:{actionData:{[o[0]]:o[1].data}}:{}}function ir(o,s){return(s?o.slice(0,o.findIndex(c=>c.route.id===s)+1):[...o]).reverse().find(c=>c.route.hasErrorBoundary===!0)||o[0]}function Sf(o){let s=o.length===1?o[0]:o.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:s}],route:s}}function kn(o,{pathname:s,routeId:i,method:c,type:u,message:f}={}){let h="Unknown Server Error",p="Unknown @remix-run/router error";return o===400?(h="Bad Request",c&&s&&i?p=`You made a ${c} request to "${s}" but did not provide a \`loader\` for route "${i}", so there is no way to handle the request.`:u==="invalid-body"&&(p="Unable to encode submission body")):o===403?(h="Forbidden",p=`Route "${i}" does not match URL "${s}"`):o===404?(h="Not Found",p=`No route matches URL "${s}"`):o===405&&(h="Method Not Allowed",c&&s&&i?p=`You made a ${c.toUpperCase()} request to "${s}" but did not provide an \`action\` for route "${i}", so there is no way to handle the request.`:c&&(p=`Invalid request method "${c.toUpperCase()}"`)),new au(o||500,h,new Error(p),!0)}function Nf(o){let s=Object.entries(o);for(let i=s.length-1;i>=0;i--){let[c,u]=s[i];if(Zr(u))return{key:c,result:u}}}function EE(o){let s=typeof o=="string"?gs(o):o;return jo({...s,hash:""})}function XT(o,s){return o.pathname!==s.pathname||o.search!==s.search?!1:o.hash===""?s.hash!=="":o.hash===s.hash?!0:s.hash!==""}function QT(o){return new au(o.init?.status??500,o.init?.statusText??"Internal Server Error",o.data)}function FT(o){return o!=null&&typeof o=="object"&&Object.entries(o).every(([s,i])=>typeof s=="string"&&IT(i))}function IT(o){return o!=null&&typeof o=="object"&&"type"in o&&"result"in o&&(o.type==="data"||o.type==="error")}function ZT(o){return Qg(o.result)&&hE.has(o.result.status)}function dn(o){return o.type==="error"}function Zr(o){return(o&&o.type)==="redirect"}function DN(o){return typeof o=="object"&&o!=null&&"type"in o&&"data"in o&&"init"in o&&o.type==="DataWithResponseInit"}function Qg(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.headers=="object"&&typeof o.body<"u"}function JT(o){return hE.has(o)}function PT(o){return Qg(o)&&JT(o.status)&&o.headers.has("Location")}function KT(o){return TT.has(o.toUpperCase())}function wa(o){return RT.has(o.toUpperCase())}function Fg(o){return new URLSearchParams(o).getAll("index").some(s=>s==="")}function Rf(o,s){let i=typeof s=="string"?gs(s).search:s.search;if(o[o.length-1].route.index&&Fg(i||""))return o[o.length-1];let c=cE(o);return c[c.length-1]}function RN(o){let{formMethod:s,formAction:i,formEncType:c,text:u,formData:f,json:h}=o;if(!(!s||!i||!c)){if(u!=null)return{formMethod:s,formAction:i,formEncType:c,formData:void 0,json:void 0,text:u};if(f!=null)return{formMethod:s,formAction:i,formEncType:c,formData:f,json:void 0,text:void 0};if(h!==void 0)return{formMethod:s,formAction:i,formEncType:c,formData:void 0,json:h,text:void 0}}}function Og(o,s){return s?{state:"loading",location:o,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}:{state:"loading",location:o,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function WT(o,s){return{state:"submitting",location:o,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}}function Hc(o,s){return o?{state:"loading",formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text,data:s}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:s}}function e_(o,s){return{state:"submitting",formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text,data:s?s.data:void 0}}function ps(o){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function t_(o,s){try{let i=o.sessionStorage.getItem(pE);if(i){let c=JSON.parse(i);for(let[u,f]of Object.entries(c||{}))f&&Array.isArray(f)&&s.set(u,new Set(f||[]))}}catch{}}function a_(o,s){if(s.size>0){let i={};for(let[c,u]of s)i[c]=[...u];try{o.sessionStorage.setItem(pE,JSON.stringify(i))}catch(c){Ht(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function CN(){let o,s,i=new Promise((c,u)=>{o=async f=>{c(f);try{await i}catch{}},s=async f=>{u(f);try{await i}catch{}}});return{promise:i,resolve:o,reject:s}}var Wr=D.createContext(null);Wr.displayName="DataRouter";var ou=D.createContext(null);ou.displayName="DataRouterState";var wE=D.createContext(!1);function n_(){return D.useContext(wE)}var Ig=D.createContext({isTransitioning:!1});Ig.displayName="ViewTransition";var DE=D.createContext(new Map);DE.displayName="Fetchers";var o_=D.createContext(null);o_.displayName="Await";var mn=D.createContext(null);mn.displayName="Navigation";var zf=D.createContext(null);zf.displayName="Location";var Mn=D.createContext({outlet:null,matches:[],isDataRoute:!1});Mn.displayName="Route";var Zg=D.createContext(null);Zg.displayName="RouteError";var RE="REACT_ROUTER_ERROR",s_="REDIRECT",r_="ROUTE_ERROR_RESPONSE";function l_(o){if(o.startsWith(`${RE}:${s_}:{`))try{let s=JSON.parse(o.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function i_(o){if(o.startsWith(`${RE}:${r_}:{`))try{let s=JSON.parse(o.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new au(s.status,s.statusText,s.data)}catch{}}function c_(o,{relative:s}={}){et(ri(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:c}=D.useContext(mn),{hash:u,pathname:f,search:h}=su(o,{relative:s}),p=f;return i!=="/"&&(p=f==="/"?i:Wn([i,f])),c.createHref({pathname:p,search:h,hash:u})}function ri(){return D.useContext(zf)!=null}function eo(){return et(ri(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(zf).location}var CE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function TE(o){D.useContext(mn).static||D.useLayoutEffect(o)}function el(){let{isDataRoute:o}=D.useContext(Mn);return o?w_():u_()}function u_(){et(ri(),"useNavigate() may be used only in the context of a <Router> component.");let o=D.useContext(Wr),{basename:s,navigator:i}=D.useContext(mn),{matches:c}=D.useContext(Mn),{pathname:u}=eo(),f=JSON.stringify(Mf(c)),h=D.useRef(!1);return TE(()=>{h.current=!0}),D.useCallback((y,x={})=>{if(Ht(h.current,CE),!h.current)return;if(typeof y=="number"){i.go(y);return}let w=tu(y,JSON.parse(f),u,x.relative==="path");o==null&&s!=="/"&&(w.pathname=w.pathname==="/"?s:Wn([s,w.pathname])),(x.replace?i.replace:i.push)(w,x.state,x)},[s,i,f,u,o])}var d_=D.createContext(null);function f_(o){let s=D.useContext(Mn).outlet;return D.useMemo(()=>s&&D.createElement(d_.Provider,{value:o},s),[s,o])}function Jg(){let{matches:o}=D.useContext(Mn),s=o[o.length-1];return s?s.params:{}}function su(o,{relative:s}={}){let{matches:i}=D.useContext(Mn),{pathname:c}=eo(),u=JSON.stringify(Mf(i));return D.useMemo(()=>tu(o,JSON.parse(u),c,s==="path"),[o,u,c,s])}function m_(o,s,i){et(ri(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=D.useContext(mn),{matches:u}=D.useContext(Mn),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",y=f?f.pathnameBase:"/",x=f&&f.route;{let V=x&&x.path||"";OE(p,!x||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${V}">) 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.
237
+
238
+ Please change the parent <Route path="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let w=eo(),v;v=w;let E=v.pathname||"/",R=E;if(y!=="/"){let V=y.replace(/^\//,"").split("/");R="/"+E.replace(/^\//,"").split("/").slice(V.length).join("/")}let A=lr(o,{pathname:R});return Ht(x||A!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ht(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${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.`),y_(A&&A.map(V=>Object.assign({},V,{params:Object.assign({},h,V.params),pathname:Wn([y,c.encodeLocation?c.encodeLocation(V.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?y:Wn([y,c.encodeLocation?c.encodeLocation(V.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathnameBase])})),u,i)}function h_(){let o=E_(),s=Pc(o)?`${o.status} ${o.statusText}`:o instanceof Error?o.message:JSON.stringify(o),i=o instanceof Error?o.stack:null,c="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:c},f={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",o),h=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:f},"ErrorBoundary")," or"," ",D.createElement("code",{style:f},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},s),i?D.createElement("pre",{style:u},i):null,h)}var p_=D.createElement(h_,null),_E=class extends D.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,s){return s.location!==o.location||s.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:s.error,location:s.location,revalidation:o.revalidation||s.revalidation}}componentDidCatch(o,s){this.props.onError?this.props.onError(o,s):console.error("React Router caught the following error during render",o)}render(){let o=this.state.error;if(this.context&&typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){const i=i_(o.digest);i&&(o=i)}let s=o!==void 0?D.createElement(Mn.Provider,{value:this.props.routeContext},D.createElement(Zg.Provider,{value:o,children:this.props.component})):this.props.children;return this.context?D.createElement(g_,{error:o},s):s}};_E.contextType=wE;var Ug=new WeakMap;function g_({children:o,error:s}){let{basename:i}=D.useContext(mn);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let c=l_(s.digest);if(c){let u=Ug.get(s);if(u)throw u;let f=dE(c.location,i);if(uE&&!Ug.get(s))if(f.isExternal||c.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:c.replace}));throw Ug.set(s,h),h}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return o}function b_({routeContext:o,match:s,children:i}){let c=D.useContext(Wr);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),D.createElement(Mn.Provider,{value:o},i)}function y_(o,s=[],i){let c=i?.state;if(o==null){if(!c)return null;if(c.errors)o=c.matches;else if(s.length===0&&!c.initialized&&c.matches.length>0)o=c.matches;else return null}let u=o,f=c?.errors;if(f!=null){let w=u.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);et(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,w+1))}let h=!1,p=-1;if(i&&c){h=c.renderFallback;for(let w=0;w<u.length;w++){let v=u[w];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=w),v.route.id){let{loaderData:E,errors:R}=c,A=v.route.loader&&!E.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||A){i.isStatic&&(h=!0),p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}}let y=i?.onError,x=c&&y?(w,v)=>{y(w,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:nu(c.matches),errorInfo:v})}:void 0;return u.reduceRight((w,v,E)=>{let R,A=!1,H=null,V=null;c&&(R=f&&v.route.id?f[v.route.id]:void 0,H=v.route.errorElement||p_,h&&(p<0&&E===0?(OE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,V=null):p===E&&(A=!0,V=v.route.hydrateFallbackElement||null)));let I=s.concat(u.slice(0,E+1)),Z=()=>{let le;return R?le=H:A?le=V:v.route.Component?le=D.createElement(v.route.Component,null):v.route.element?le=v.route.element:le=w,D.createElement(b_,{match:v,routeContext:{outlet:w,matches:I,isDataRoute:c!=null},children:le})};return c&&(v.route.ErrorBoundary||v.route.errorElement||E===0)?D.createElement(_E,{location:c.location,revalidation:c.revalidation,component:H,error:R,children:Z(),routeContext:{outlet:null,matches:I,isDataRoute:!0},onError:x}):Z()},null)}function Pg(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v_(o){let s=D.useContext(Wr);return et(s,Pg(o)),s}function x_(o){let s=D.useContext(ou);return et(s,Pg(o)),s}function S_(o){let s=D.useContext(Mn);return et(s,Pg(o)),s}function Kg(o){let s=S_(o),i=s.matches[s.matches.length-1];return et(i.route.id,`${o} can only be used on routes that contain a unique "id"`),i.route.id}function N_(){return Kg("useRouteId")}function E_(){let o=D.useContext(Zg),s=x_("useRouteError"),i=Kg("useRouteError");return o!==void 0?o:s.errors?.[i]}function w_(){let{router:o}=v_("useNavigate"),s=Kg("useNavigate"),i=D.useRef(!1);return TE(()=>{i.current=!0}),D.useCallback(async(u,f={})=>{Ht(i.current,CE),i.current&&(typeof u=="number"?await o.navigate(u):await o.navigate(u,{fromRouteId:s,...f}))},[o,s])}var TN={};function OE(o,s,i){!s&&!TN[o]&&(TN[o]=!0,Ht(!1,i))}var _N={};function ON(o,s){!o&&!_N[s]&&(_N[s]=!0,console.warn(s))}var D_="useOptimistic",UN=tC[D_],R_=()=>{};function C_(o){return UN?UN(o):[o,R_]}function T_(o){let s={hasErrorBoundary:o.hasErrorBoundary||o.ErrorBoundary!=null||o.errorElement!=null};return o.Component&&(o.element&&Ht(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(s,{element:D.createElement(o.Component),Component:void 0})),o.HydrateFallback&&(o.hydrateFallbackElement&&Ht(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(s,{hydrateFallbackElement:D.createElement(o.HydrateFallback),HydrateFallback:void 0})),o.ErrorBoundary&&(o.errorElement&&Ht(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(s,{errorElement:D.createElement(o.ErrorBoundary),ErrorBoundary:void 0})),s}var __=["HydrateFallback","hydrateFallbackElement"],O_=class{constructor(){this.status="pending",this.promise=new Promise((o,s)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",o(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",s(i))}})}};function U_({router:o,flushSync:s,onError:i,unstable_useTransitions:c}){c=n_()||c;let[f,h]=D.useState(o.state),[p,y]=C_(f),[x,w]=D.useState(),[v,E]=D.useState({isTransitioning:!1}),[R,A]=D.useState(),[H,V]=D.useState(),[I,Z]=D.useState(),le=D.useRef(new Map),ae=D.useCallback((j,{deletedFetchers:W,newErrors:Q,flushSync:oe,viewTransitionOpts:$})=>{Q&&i&&Object.values(Q).forEach(ve=>i(ve,{location:j.location,params:j.matches[0]?.params??{},unstable_pattern:nu(j.matches)})),j.fetchers.forEach((ve,Te)=>{ve.data!==void 0&&le.current.set(Te,ve.data)}),W.forEach(ve=>le.current.delete(ve)),ON(oe===!1||s!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ue=o.window!=null&&o.window.document!=null&&typeof o.window.document.startViewTransition=="function";if(ON($==null||ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!$||!ue){s&&oe?s(()=>h(j)):c===!1?h(j):D.startTransition(()=>{c===!0&&y(ve=>AN(ve,j)),h(j)});return}if(s&&oe){s(()=>{H&&(R?.resolve(),H.skipTransition()),E({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let ve=o.window.document.startViewTransition(()=>{s(()=>h(j))});ve.finished.finally(()=>{s(()=>{A(void 0),V(void 0),w(void 0),E({isTransitioning:!1})})}),s(()=>V(ve));return}H?(R?.resolve(),H.skipTransition(),Z({state:j,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(w(j),E({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[o.window,s,H,R,c,y,i]);D.useLayoutEffect(()=>o.subscribe(ae),[o,ae]),D.useEffect(()=>{v.isTransitioning&&!v.flushSync&&A(new O_)},[v]),D.useEffect(()=>{if(R&&x&&o.window){let j=x,W=R.promise,Q=o.window.document.startViewTransition(async()=>{c===!1?h(j):D.startTransition(()=>{c===!0&&y(oe=>AN(oe,j)),h(j)}),await W});Q.finished.finally(()=>{A(void 0),V(void 0),w(void 0),E({isTransitioning:!1})}),V(Q)}},[x,R,o.window,c,y]),D.useEffect(()=>{R&&x&&p.location.key===x.location.key&&R.resolve()},[R,H,p.location,x]),D.useEffect(()=>{!v.isTransitioning&&I&&(w(I.state),E({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}),Z(void 0))},[v.isTransitioning,I]);let K=D.useMemo(()=>({createHref:o.createHref,encodeLocation:o.encodeLocation,go:j=>o.navigate(j),push:(j,W,Q)=>o.navigate(j,{state:W,preventScrollReset:Q?.preventScrollReset}),replace:(j,W,Q)=>o.navigate(j,{replace:!0,state:W,preventScrollReset:Q?.preventScrollReset})}),[o]),se=o.basename||"/",re=D.useMemo(()=>({router:o,navigator:K,static:!1,basename:se,onError:i}),[o,K,se,i]);return D.createElement(D.Fragment,null,D.createElement(Wr.Provider,{value:re},D.createElement(ou.Provider,{value:p},D.createElement(DE.Provider,{value:le.current},D.createElement(Ig.Provider,{value:v},D.createElement(j_,{basename:se,location:p.location,navigationType:p.historyAction,navigator:K,unstable_useTransitions:c},D.createElement(A_,{routes:o.routes,future:o.future,state:p,isStatic:!1,onError:i})))))),null)}function AN(o,s){return{...o,navigation:s.navigation.state!=="idle"?s.navigation:o.navigation,revalidation:s.revalidation!=="idle"?s.revalidation:o.revalidation,actionData:s.navigation.state!=="submitting"?s.actionData:o.actionData,fetchers:s.fetchers}}var A_=D.memo(k_);function k_({routes:o,future:s,state:i,isStatic:c,onError:u}){return m_(o,void 0,{state:i,isStatic:c,onError:u})}function kN({to:o,replace:s,state:i,relative:c}){et(ri(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=D.useContext(mn);Ht(!u,"<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:f}=D.useContext(Mn),{pathname:h}=eo(),p=el(),y=tu(o,Mf(f),h,c==="path"),x=JSON.stringify(y);return D.useEffect(()=>{p(JSON.parse(x),{replace:s,state:i,relative:c})},[p,x,c,s,i]),null}function UE(o){return f_(o.context)}function j_({basename:o="/",children:s=null,location:i,navigationType:c="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){et(!ri(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=o.replace(/^\/*/,"/"),y=D.useMemo(()=>({basename:p,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[p,u,f,h]);typeof i=="string"&&(i=gs(i));let{pathname:x="/",search:w="",hash:v="",state:E=null,key:R="default",unstable_mask:A}=i,H=D.useMemo(()=>{let V=jn(x,p);return V==null?null:{location:{pathname:V,search:w,hash:v,state:E,key:R,unstable_mask:A},navigationType:c}},[p,x,w,v,E,R,c,A]);return Ht(H!=null,`<Router basename="${p}"> is not able to match the URL "${x}${w}${v}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:D.createElement(mn.Provider,{value:y},D.createElement(zf.Provider,{children:s,value:H}))}var Cf="get",Tf="application/x-www-form-urlencoded";function Lf(o){return typeof HTMLElement<"u"&&o instanceof HTMLElement}function M_(o){return Lf(o)&&o.tagName.toLowerCase()==="button"}function z_(o){return Lf(o)&&o.tagName.toLowerCase()==="form"}function L_(o){return Lf(o)&&o.tagName.toLowerCase()==="input"}function V_(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function H_(o,s){return o.button===0&&(!s||s==="_self")&&!V_(o)}function Yg(o=""){return new URLSearchParams(typeof o=="string"||Array.isArray(o)||o instanceof URLSearchParams?o:Object.keys(o).reduce((s,i)=>{let c=o[i];return s.concat(Array.isArray(c)?c.map(u=>[i,u]):[[i,c]])},[]))}function B_(o,s){let i=Yg(o);return s&&s.forEach((c,u)=>{i.has(u)||s.getAll(u).forEach(f=>{i.append(u,f)})}),i}var Ef=null;function $_(){if(Ef===null)try{new FormData(document.createElement("form"),0),Ef=!1}catch{Ef=!0}return Ef}var Y_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ag(o){return o!=null&&!Y_.has(o)?(Ht(!1,`"${o}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tf}"`),null):o}function q_(o,s){let i,c,u,f,h;if(z_(o)){let p=o.getAttribute("action");c=p?jn(p,s):null,i=o.getAttribute("method")||Cf,u=Ag(o.getAttribute("enctype"))||Tf,f=new FormData(o)}else if(M_(o)||L_(o)&&(o.type==="submit"||o.type==="image")){let p=o.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=o.getAttribute("formaction")||p.getAttribute("action");if(c=y?jn(y,s):null,i=o.getAttribute("formmethod")||p.getAttribute("method")||Cf,u=Ag(o.getAttribute("formenctype"))||Ag(p.getAttribute("enctype"))||Tf,f=new FormData(p,o),!$_()){let{name:x,type:w,value:v}=o;if(w==="image"){let E=x?`${x}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else x&&f.append(x,v)}}else{if(Lf(o))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Cf,c=null,u=Tf,h=o}return f&&u==="text/plain"&&(h=f,f=void 0),{action:c,method:i.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wg(o,s){if(o===!1||o===null||typeof o>"u")throw new Error(s)}function G_(o,s,i,c){let u=typeof o=="string"?new URL(o,typeof window>"u"?"server://singlefetch/":window.location.origin):o;return i?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${c}`:u.pathname=`${u.pathname}.${c}`:u.pathname==="/"?u.pathname=`_root.${c}`:s&&jn(u.pathname,s)==="/"?u.pathname=`${s.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function X_(o,s){if(o.id in s)return s[o.id];try{let i=await import(o.module);return s[o.id]=i,i}catch(i){return console.error(`Error loading route module \`${o.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Q_(o){return o==null?!1:o.href==null?o.rel==="preload"&&typeof o.imageSrcSet=="string"&&typeof o.imageSizes=="string":typeof o.rel=="string"&&typeof o.href=="string"}async function F_(o,s,i){let c=await Promise.all(o.map(async u=>{let f=s.routes[u.route.id];if(f){let h=await X_(f,i);return h.links?h.links():[]}return[]}));return P_(c.flat(1).filter(Q_).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function jN(o,s,i,c,u,f){let h=(y,x)=>i[x]?y.route.id!==i[x].route.id:!0,p=(y,x)=>i[x].pathname!==y.pathname||i[x].route.path?.endsWith("*")&&i[x].params["*"]!==y.params["*"];return f==="assets"?s.filter((y,x)=>h(y,x)||p(y,x)):f==="data"?s.filter((y,x)=>{let w=c.routes[y.route.id];if(!w||!w.hasLoader)return!1;if(h(y,x)||p(y,x))return!0;if(y.route.shouldRevalidate){let v=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(o,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function I_(o,s,{includeHydrateFallback:i}={}){return Z_(o.map(c=>{let u=s.routes[c.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),i&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function Z_(o){return[...new Set(o)]}function J_(o){let s={},i=Object.keys(o).sort();for(let c of i)s[c]=o[c];return s}function P_(o,s){let i=new Set;return new Set(s),o.reduce((c,u)=>{let f=JSON.stringify(J_(u));return i.has(f)||(i.add(f),c.push({key:f,link:u})),c},[])}function AE(){let o=D.useContext(Wr);return Wg(o,"You must render this element inside a <DataRouterContext.Provider> element"),o}function K_(){let o=D.useContext(ou);return Wg(o,"You must render this element inside a <DataRouterStateContext.Provider> element"),o}var eb=D.createContext(void 0);eb.displayName="FrameworkContext";function kE(){let o=D.useContext(eb);return Wg(o,"You must render this element inside a <HydratedRouter> element"),o}function W_(o,s){let i=D.useContext(eb),[c,u]=D.useState(!1),[f,h]=D.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:x,onMouseLeave:w,onTouchStart:v}=s,E=D.useRef(null);D.useEffect(()=>{if(o==="render"&&h(!0),o==="viewport"){let H=I=>{I.forEach(Z=>{h(Z.isIntersecting)})},V=new IntersectionObserver(H,{threshold:.5});return E.current&&V.observe(E.current),()=>{V.disconnect()}}},[o]),D.useEffect(()=>{if(c){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[c]);let R=()=>{u(!0)},A=()=>{u(!1),h(!1)};return i?o!=="intent"?[f,E,{}]:[f,E,{onFocus:Bc(p,R),onBlur:Bc(y,A),onMouseEnter:Bc(x,R),onMouseLeave:Bc(w,A),onTouchStart:Bc(v,R)}]:[!1,E,{}]}function Bc(o,s){return i=>{o&&o(i),i.defaultPrevented||s(i)}}function eO({page:o,...s}){let{router:i}=AE(),c=D.useMemo(()=>lr(i.routes,o,i.basename),[i.routes,o,i.basename]);return c?D.createElement(aO,{page:o,matches:c,...s}):null}function tO(o){let{manifest:s,routeModules:i}=kE(),[c,u]=D.useState([]);return D.useEffect(()=>{let f=!1;return F_(o,s,i).then(h=>{f||u(h)}),()=>{f=!0}},[o,s,i]),c}function aO({page:o,matches:s,...i}){let c=eo(),{future:u,manifest:f,routeModules:h}=kE(),{basename:p}=AE(),{loaderData:y,matches:x}=K_(),w=D.useMemo(()=>jN(o,s,x,f,c,"data"),[o,s,x,f,c]),v=D.useMemo(()=>jN(o,s,x,f,c,"assets"),[o,s,x,f,c]),E=D.useMemo(()=>{if(o===c.pathname+c.search+c.hash)return[];let H=new Set,V=!1;if(s.forEach(Z=>{let le=f.routes[Z.route.id];!le||!le.hasLoader||(!w.some(ae=>ae.route.id===Z.route.id)&&Z.route.id in y&&h[Z.route.id]?.shouldRevalidate||le.hasClientLoader?V=!0:H.add(Z.route.id))}),H.size===0)return[];let I=G_(o,p,u.unstable_trailingSlashAwareDataRequests,"data");return V&&H.size>0&&I.searchParams.set("_routes",s.filter(Z=>H.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[I.pathname+I.search]},[p,u.unstable_trailingSlashAwareDataRequests,y,c,f,w,s,o,h]),R=D.useMemo(()=>I_(v,f),[v,f]),A=tO(v);return D.createElement(D.Fragment,null,E.map(H=>D.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...i})),R.map(H=>D.createElement("link",{key:H,rel:"modulepreload",href:H,...i})),A.map(({key:H,link:V})=>D.createElement("link",{key:H,nonce:i.nonce,...V,crossOrigin:V.crossOrigin??i.crossOrigin})))}function nO(...o){return s=>{o.forEach(i=>{typeof i=="function"?i(s):i!=null&&(i.current=s)})}}var oO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{oO&&(window.__reactRouterVersion="7.13.1")}catch{}function sO(o,s){return AT({basename:s?.basename,getContext:s?.getContext,future:s?.future,history:IC({window:s?.window}),hydrationData:rO(),routes:o,mapRouteProperties:T_,hydrationRouteProperties:__,dataStrategy:s?.dataStrategy,patchRoutesOnNavigation:s?.patchRoutesOnNavigation,window:s?.window,unstable_instrumentations:s?.unstable_instrumentations}).initialize()}function rO(){let o=window?.__staticRouterHydrationData;return o&&o.errors&&(o={...o,errors:lO(o.errors)}),o}function lO(o){if(!o)return null;let s=Object.entries(o),i={};for(let[c,u]of s)if(u&&u.__type==="RouteErrorResponse")i[c]=new au(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let f=window[u.__subType];if(typeof f=="function")try{let h=new f(u.message);h.stack="",i[c]=h}catch{}}if(i[c]==null){let f=new Error(u.message);f.stack="",i[c]=f}}else i[c]=u;return i}var jE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fn=D.forwardRef(function({onClick:s,discover:i="render",prefetch:c="none",relative:u,reloadDocument:f,replace:h,unstable_mask:p,state:y,target:x,to:w,preventScrollReset:v,viewTransition:E,unstable_defaultShouldRevalidate:R,...A},H){let{basename:V,navigator:I,unstable_useTransitions:Z}=D.useContext(mn),le=typeof w=="string"&&jE.test(w),ae=dE(w,V);w=ae.to;let K=c_(w,{relative:u}),se=eo(),re=null;if(p){let Te=tu(p,[],se.unstable_mask?se.unstable_mask.pathname:"/",!0);V!=="/"&&(Te.pathname=Te.pathname==="/"?V:Wn([V,Te.pathname])),re=I.createHref(Te)}let[j,W,Q]=W_(c,A),oe=uO(w,{replace:h,unstable_mask:p,state:y,target:x,preventScrollReset:v,relative:u,viewTransition:E,unstable_defaultShouldRevalidate:R,unstable_useTransitions:Z});function $(Te){s&&s(Te),Te.defaultPrevented||oe(Te)}let ue=!(ae.isExternal||f),ve=D.createElement("a",{...A,...Q,href:(ue?re:void 0)||ae.absoluteURL||K,onClick:ue?$:s,ref:nO(H,W),target:x,"data-discover":!le&&i==="render"?"true":void 0});return j&&!le?D.createElement(D.Fragment,null,ve,D.createElement(eO,{page:K})):ve});fn.displayName="Link";var Kc=D.forwardRef(function({"aria-current":s="page",caseSensitive:i=!1,className:c="",end:u=!1,style:f,to:h,viewTransition:p,children:y,...x},w){let v=su(h,{relative:x.relative}),E=eo(),R=D.useContext(ou),{navigator:A,basename:H}=D.useContext(mn),V=R!=null&&gO(v)&&p===!0,I=A.encodeLocation?A.encodeLocation(v).pathname:v.pathname,Z=E.pathname,le=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;i||(Z=Z.toLowerCase(),le=le?le.toLowerCase():null,I=I.toLowerCase()),le&&H&&(le=jn(le,H)||le);const ae=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let K=Z===I||!u&&Z.startsWith(I)&&Z.charAt(ae)==="/",se=le!=null&&(le===I||!u&&le.startsWith(I)&&le.charAt(I.length)==="/"),re={isActive:K,isPending:se,isTransitioning:V},j=K?s:void 0,W;typeof c=="function"?W=c(re):W=[c,K?"active":null,se?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let Q=typeof f=="function"?f(re):f;return D.createElement(fn,{...x,"aria-current":j,className:W,ref:w,style:Q,to:h,viewTransition:p},typeof y=="function"?y(re):y)});Kc.displayName="NavLink";var iO=D.forwardRef(({discover:o="render",fetcherKey:s,navigate:i,reloadDocument:c,replace:u,state:f,method:h=Cf,action:p,onSubmit:y,relative:x,preventScrollReset:w,viewTransition:v,unstable_defaultShouldRevalidate:E,...R},A)=>{let{unstable_useTransitions:H}=D.useContext(mn),V=hO(),I=pO(p,{relative:x}),Z=h.toLowerCase()==="get"?"get":"post",le=typeof p=="string"&&jE.test(p),ae=K=>{if(y&&y(K),K.defaultPrevented)return;K.preventDefault();let se=K.nativeEvent.submitter,re=se?.getAttribute("formmethod")||h,j=()=>V(se||K.currentTarget,{fetcherKey:s,method:re,navigate:i,replace:u,state:f,relative:x,preventScrollReset:w,viewTransition:v,unstable_defaultShouldRevalidate:E});H&&i!==!1?D.startTransition(()=>j()):j()};return D.createElement("form",{ref:A,method:Z,action:I,onSubmit:c?y:ae,...R,"data-discover":!le&&o==="render"?"true":void 0})});iO.displayName="Form";function cO(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ME(o){let s=D.useContext(Wr);return et(s,cO(o)),s}function uO(o,{target:s,replace:i,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:y,unstable_useTransitions:x}={}){let w=el(),v=eo(),E=su(o,{relative:h});return D.useCallback(R=>{if(H_(R,s)){R.preventDefault();let A=i!==void 0?i:jo(v)===jo(E),H=()=>w(o,{replace:A,unstable_mask:c,state:u,preventScrollReset:f,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:y});x?D.startTransition(()=>H()):H()}},[v,w,E,i,c,u,s,o,f,h,p,y,x])}function dO(o){Ht(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=D.useRef(Yg(o)),i=D.useRef(!1),c=eo(),u=D.useMemo(()=>B_(c.search,i.current?null:s.current),[c.search]),f=el(),h=D.useCallback((p,y)=>{const x=Yg(typeof p=="function"?p(new URLSearchParams(u)):p);i.current=!0,f("?"+x,y)},[f,u]);return[u,h]}var fO=0,mO=()=>`__${String(++fO)}__`;function hO(){let{router:o}=ME("useSubmit"),{basename:s}=D.useContext(mn),i=N_(),c=o.fetch,u=o.navigate;return D.useCallback(async(f,h={})=>{let{action:p,method:y,encType:x,formData:w,body:v}=q_(f,s);if(h.navigate===!1){let E=h.fetcherKey||mO();await c(E,i,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:w,body:v,formMethod:h.method||y,formEncType:h.encType||x,flushSync:h.flushSync})}else await u(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:w,body:v,formMethod:h.method||y,formEncType:h.encType||x,replace:h.replace,state:h.state,fromRouteId:i,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,s,i])}function pO(o,{relative:s}={}){let{basename:i}=D.useContext(mn),c=D.useContext(Mn);et(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),f={...su(o||".",{relative:s})},h=eo();if(o==null){f.search=h.search;let p=new URLSearchParams(f.search),y=p.getAll("index");if(y.some(w=>w==="")){p.delete("index"),y.filter(v=>v).forEach(v=>p.append("index",v));let w=p.toString();f.search=w?`?${w}`:""}}return(!o||o===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:Wn([i,f.pathname])),jo(f)}function gO(o,{relative:s}={}){let i=D.useContext(Ig);et(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=ME("useViewTransitionState"),u=su(o,{relative:s});if(!i.isTransitioning)return!1;let f=jn(i.currentLocation.pathname,c)||i.currentLocation.pathname,h=jn(i.nextLocation.pathname,c)||i.nextLocation.pathname;return kf(u.pathname,h)!=null||kf(u.pathname,f)!=null}const zE=(...o)=>o.filter((s,i,c)=>!!s&&s.trim()!==""&&c.indexOf(s)===i).join(" ").trim();const bO=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const yO=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,i,c)=>c?c.toUpperCase():i.toLowerCase());const MN=o=>{const s=yO(o);return s.charAt(0).toUpperCase()+s.slice(1)};var vO={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 xO=o=>{for(const s in o)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};const SO=D.forwardRef(({color:o="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:c,className:u="",children:f,iconNode:h,...p},y)=>D.createElement("svg",{ref:y,...vO,width:s,height:s,stroke:o,strokeWidth:c?Number(i)*24/Number(s):i,className:zE("lucide",u),...!f&&!xO(p)&&{"aria-hidden":"true"},...p},[...h.map(([x,w])=>D.createElement(x,w)),...Array.isArray(f)?f:[f]]));const yt=(o,s)=>{const i=D.forwardRef(({className:c,...u},f)=>D.createElement(SO,{ref:f,iconNode:s,className:zE(`lucide-${bO(MN(o))}`,`lucide-${o}`,c),...u}));return i.displayName=MN(o),i};const NO=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],EO=yt("arrow-right",NO);const wO=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],DO=yt("boxes",wO);const RO=[["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"}]],CO=yt("brain",RO);const TO=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],LE=yt("check",TO);const _O=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],VE=yt("chevron-down",_O);const OO=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Vf=yt("chevron-right",OO);const UO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],AO=yt("circle-alert",UO);const kO=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],jO=yt("database",kO);const MO=[["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"}]],zO=yt("download",MO);const LO=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],VO=yt("ellipsis",LO);const HO=[["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"}]],tb=yt("file-text",HO);const BO=[["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"}]],$O=yt("file",BO);const YO=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],qO=yt("folder-open",YO);const GO=[["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"}]],HE=yt("folder-plus",GO);const XO=[["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"}]],Wc=yt("folder",XO);const QO=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],FO=yt("git-branch",QO);const IO=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ab=yt("info",IO);const ZO=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pr=yt("loader-circle",ZO);const JO=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],PO=yt("menu",JO);const KO=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],WO=yt("monitor",KO);const eU=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],tU=yt("moon",eU);const aU=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],nb=yt("package",aU);const nU=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],oU=yt("panel-left",nU);const sU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],rU=yt("plus",sU);const lU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],iU=yt("search",lU);const cU=[["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"}]],uU=yt("settings",cU);const dU=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],fU=yt("share-2",dU);const mU=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],hU=yt("sun",mU);const pU=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],gU=yt("users",pU);const bU=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],BE=yt("x",bU),zN=o=>{let s;const i=new Set,c=(x,w)=>{const v=typeof x=="function"?x(s):x;if(!Object.is(v,s)){const E=s;s=w??(typeof v!="object"||v===null)?v:Object.assign({},s,v),i.forEach(R=>R(s,E))}},u=()=>s,p={setState:c,getState:u,getInitialState:()=>y,subscribe:x=>(i.add(x),()=>i.delete(x))},y=s=o(c,u,p);return p},yU=(o=>o?zN(o):zN),vU=o=>o;function xU(o,s=vU){const i=ni.useSyncExternalStore(o.subscribe,ni.useCallback(()=>s(o.getState()),[o,s]),ni.useCallback(()=>s(o.getInitialState()),[o,s]));return ni.useDebugValue(i),i}const LN=o=>{const s=yU(o),i=c=>xU(s,c);return Object.assign(i,s),i},Hf=(o=>o?LN(o):LN),SU="/api/v1";class _f extends Error{constructor(s,i,c){super(c),this.status=s,this.code=i,this.name="ApiError"}}async function wf(o,s,i,c){let u=`${SU}${s}`;if(c){const p=new URLSearchParams(c).toString();p&&(u+=`?${p}`)}const f={method:o,headers:{"Content-Type":"application/json"}};i!==void 0&&(f.body=JSON.stringify(i));const h=await fetch(u,f);if(!h.ok){let p="UNKNOWN",y=h.statusText;try{const x=await h.json();x.code&&(p=x.code),x.message&&(y=x.message)}catch{}throw new _f(h.status,p,y)}return h.json()}const Fa={get(o,s){return wf("GET",o,void 0,s)},post(o,s){return wf("POST",o,s)},put(o,s){return wf("PUT",o,s)},delete(o){return wf("DELETE",o)}},NU=3e4,EU=1e3,wU=3e4;class DU{ws=null;url="";handlers=new Map;statusHandlers=new Set;heartbeatTimer=null;reconnectTimer=null;reconnectAttempt=0;intentionalClose=!1;_status="disconnected";get status(){return this._status}setStatus(s){this._status=s;for(const i of this.statusHandlers)i(s)}onStatusChange(s){return this.statusHandlers.add(s),()=>{this.statusHandlers.delete(s)}}connect(s){this.url=s,this.intentionalClose=!1,this.reconnectAttempt=0,this.open()}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}on(s,i){let c=this.handlers.get(s);return c||(c=new Set,this.handlers.set(s,c)),c.add(i),()=>{c.delete(i),c.size===0&&this.handlers.delete(s)}}send(s,i){if(this.ws?.readyState!==WebSocket.OPEN)return;const c={event:s,payload:i,timestamp:Date.now()};this.ws.send(JSON.stringify(c))}open(){this.setStatus("connecting");const s=new WebSocket(this.url);s.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},s.onmessage=i=>{try{const c=JSON.parse(String(i.data));if(c.event==="pong")return;const u=this.handlers.get(c.event);if(u)for(const f of u)f(c.payload)}catch{}},s.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},s.onerror=()=>{},this.ws=s}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},NU)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const s=Math.min(EU*2**this.reconnectAttempt,wU);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},s)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Mo=new DU,Kr=Hf(o=>({status:"disconnected",onlineCount:0,connections:[],setStatus:s=>o({status:s}),fetchDaemonStatus:async()=>{try{const s=await Fa.get("/daemons/status");o({onlineCount:s.online_count,connections:s.connections})}catch{}}})),RU=o=>o==="connecting"?"disconnected":o;Mo.onStatusChange(o=>{Kr.getState().setStatus(RU(o))});Mo.on("ws:daemon:connected",o=>{const s=o;Kr.setState(i=>{if(i.connections.some(h=>h.machine_id===s.machine_id))return i;const u={machine_id:s.machine_id};s.lib_id&&(u.lib_id=s.lib_id);const f=[...i.connections,u];return{connections:f,onlineCount:f.length}})});Mo.on("ws:daemon:status",o=>{const s=o;Kr.setState(i=>{if(s.is_online){if(i.connections.some(p=>p.machine_id===s.machine_id))return i;const f={machine_id:s.machine_id};s.lib_id&&(f.lib_id=s.lib_id);const h=[...i.connections,f];return{connections:h,onlineCount:h.length}}const c=i.connections.filter(u=>u.machine_id!==s.machine_id);return{connections:c,onlineCount:c.length}})});const ob="lib_cloud_default",La=Hf((o,s)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{o({loading:!0,error:null});try{const i=await Fa.get("/libraries");o({libraries:i,loading:!1})}catch(i){o({error:i instanceof Error?i.message:"Failed to load libraries",loading:!1})}},createLibrary:async i=>{const c=await Fa.post("/libraries",i);return o(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async i=>{await Fa.delete(`/libraries/${i}`),o(c=>({libraries:c.libraries.filter(u=>u.id!==i)}))},updateLibraryName:async(i,c)=>{const u=await Fa.put(`/libraries/${i}`,{name:c});o(f=>({libraries:f.libraries.map(h=>h.id===i?u:h)}))},_updateLibraryOnline:(i,c)=>{o(u=>({libraries:u.libraries.map(f=>f.id===i?{...f,is_online:c}:f)}))},_refreshLibrary:async i=>{try{const c=await Fa.get(`/libraries/${i}`);o(u=>({libraries:u.libraries.map(f=>f.id===i?c:f)}))}catch{s().fetchLibraries()}}})),Bf=o=>{const s=o.libraries.filter(c=>c.type==="cloud").sort((c,u)=>c.created_at.localeCompare(u.created_at)),i=o.libraries.filter(c=>c.type==="daemon").sort((c,u)=>c.name.localeCompare(u.name));return[...s,...i]},CU=o=>o.libraries.filter(s=>s.type==="daemon");Mo.on("ws:daemon:status",o=>{const s=o;s.lib_id&&La.getState()._updateLibraryOnline(s.lib_id,s.is_online),La.getState().fetchLibraries()});Mo.on("ws:daemon:connected",o=>{const s=o;s.lib_id&&La.getState()._updateLibraryOnline(s.lib_id,!0),La.getState().fetchLibraries()});Mo.on("ws:library:updated",o=>{const s=o;La.getState()._refreshLibrary(s.library_id)});const VN=o=>Symbol.iterator in o,HN=o=>"entries"in o,BN=(o,s)=>{const i=o instanceof Map?o:new Map(o.entries()),c=s instanceof Map?s:new Map(s.entries());if(i.size!==c.size)return!1;for(const[u,f]of i)if(!c.has(u)||!Object.is(f,c.get(u)))return!1;return!0},TU=(o,s)=>{const i=o[Symbol.iterator](),c=s[Symbol.iterator]();let u=i.next(),f=c.next();for(;!u.done&&!f.done;){if(!Object.is(u.value,f.value))return!1;u=i.next(),f=c.next()}return!!u.done&&!!f.done};function _U(o,s){return Object.is(o,s)?!0:typeof o!="object"||o===null||typeof s!="object"||s===null||Object.getPrototypeOf(o)!==Object.getPrototypeOf(s)?!1:VN(o)&&VN(s)?HN(o)&&HN(s)?BN(o,s):TU(o,s):BN({entries:()=>Object.entries(o)},{entries:()=>Object.entries(s)})}function ru(o){const s=ni.useRef(void 0);return i=>{const c=o(i);return _U(s.current,c)?s.current:s.current=c}}function qg(){const{t:o}=Ie(),s=Kr(h=>h.onlineCount),i=Kr(h=>h.connections.length);if(La(ru(CU)).length===0)return null;const u=s>0,f=u?o("sources.header.daemon_status",{online:s,total:i}):o("sources.header.all_offline");return g.jsxDEV("div",{className:"group relative flex items-center",title:f,children:[g.jsxDEV("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:22,columnNumber:7},this),g.jsxDEV("span",{className:"pointer-events-none absolute right-full mr-2 hidden whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-xs text-c4a-text-secondary shadow-c4a-md group-hover:block",children:f},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:25,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:21,columnNumber:5},this)}const $N=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function OU(){const{t:o}=Ie(),[s,i]=D.useState(!1);return g.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[g.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[g.jsxDEV(fn,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[g.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:22,columnNumber:11},this),g.jsxDEV("span",{className:"hidden font-mono text-sm font-semibold uppercase tracking-tight md:inline",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:25,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:21,columnNumber:9},this),g.jsxDEV("div",{className:"hidden items-center gap-6 md:flex",children:[g.jsxDEV("nav",{className:"flex items-center gap-4",children:$N.map(({to:c,labelKey:u})=>g.jsxDEV(Kc,{to:c,end:c==="/",className:({isActive:f})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:o(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:34,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:32,columnNumber:11},this),g.jsxDEV("div",{className:"flex items-center gap-3",children:[g.jsxDEV(qg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),g.jsxDEV(fn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:o("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:52,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:31,columnNumber:9},this),g.jsxDEV("button",{onClick:()=>i(!s),className:"text-c4a-text-secondary md:hidden",children:s?g.jsxDEV(BE,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):g.jsxDEV(PO,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:41},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:19,columnNumber:7},this),s&&g.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[g.jsxDEV("nav",{className:"flex flex-col gap-2",children:$N.map(({to:c,labelKey:u})=>g.jsxDEV(Kc,{to:c,end:c==="/",onClick:()=>i(!1),className:({isActive:f})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:o(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:75,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:73,columnNumber:11},this),g.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:g.jsxDEV("div",{className:"flex items-center gap-3",children:[g.jsxDEV(qg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),g.jsxDEV(fn,{to:"/login",onClick:()=>i(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:o("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:95,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:18,columnNumber:5},this)}function UU(o){return o==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":o==="system"?"dark":o}function $E(o){if(typeof window>"u")return;const s=UU(o);document.documentElement.setAttribute("data-theme",s),localStorage.setItem("theme",o)}function AU(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const YE=Hf(o=>({theme:AU(),setTheme:s=>{$E(s),o({theme:s})}}));let YN=!1;function kU(){if(YN||typeof window>"u")return;YN=!0;const o=window.matchMedia("(prefers-color-scheme: dark)"),s=()=>{const{theme:i}=YE.getState();i==="system"&&$E("system")};o.addEventListener("change",s)}kU();const jU=[{mode:"light",icon:hU,labelKey:"footer.theme.light"},{mode:"dark",icon:tU,labelKey:"footer.theme.dark"},{mode:"system",icon:WO,labelKey:"footer.theme.system"}];function MU(){const{t:o}=Ie(),{theme:s,setTheme:i}=YE();return g.jsxDEV("div",{className:"flex items-center gap-1",children:jU.map(({mode:c,icon:u,labelKey:f})=>g.jsxDEV("button",{onClick:()=>i(c),title:o(f),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${s===c?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:g.jsxDEV(u,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:30,columnNumber:11},this)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:20,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:18,columnNumber:5},this)}function zU(){const{i18n:o}=Ie(),s=()=>{const i=o.language==="en"?"zh":"en";o.changeLanguage(i)};return g.jsxDEV("button",{onClick:s,className:"cursor-pointer rounded px-2 py-1 font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-secondary hover:bg-c4a-bg-hover",children:o.language==="en"?"CN":"EN"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LanguageSwitcher.tsx",lineNumber:12,columnNumber:5},this)}const LU="_brandIcon_1c7st_1",VU="_iconPulse_1c7st_35",qN={brandIcon:LU,iconPulse:VU};function qE(){const{t:o}=Ie(),s=new Date().getFullYear();return g.jsxDEV("footer",{className:"border-t border-c4a-border-subtle bg-c4a-bg-base px-4 py-4",children:g.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[g.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[g.jsxDEV("div",{className:qN.brandIcon,children:g.jsxDEV("span",{className:qN.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:15,columnNumber:11},this),g.jsxDEV("div",{className:"flex flex-col",children:[g.jsxDEV("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:19,columnNumber:13},this),g.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:o("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:22,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:14,columnNumber:9},this),g.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV(MU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:31,columnNumber:13},this),g.jsxDEV(zU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:32,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:30,columnNumber:11},this),g.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:o("footer.copyright",{year:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:34,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:29,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:12,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:11,columnNumber:5},this)}function HU(){return g.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[g.jsxDEV(OU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),g.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:g.jsxDEV(UE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:10,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:9,columnNumber:7},this),g.jsxDEV(qE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:12,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:7,columnNumber:5},this)}function BU({onToggleSidebar:o}){const{t:s}=Ie();return g.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:g.jsxDEV("div",{className:"relative flex h-14 items-center justify-between px-4",children:[g.jsxDEV("div",{className:"flex items-center gap-2",children:[o&&g.jsxDEV("button",{onClick:o,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:g.jsxDEV(oU,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:23,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:19,columnNumber:13},this),g.jsxDEV(fn,{to:"/",className:"hidden items-center gap-2 text-c4a-text-primary md:flex",children:[g.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:31,columnNumber:13},this),g.jsxDEV("span",{className:"font-mono text-sm font-semibold uppercase tracking-tight",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:34,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:27,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:17,columnNumber:9},this),g.jsxDEV(fn,{to:"/",className:"absolute left-1/2 flex -translate-x-1/2 items-center gap-2 text-c4a-text-primary md:hidden",children:g.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:41,columnNumber:9},this),g.jsxDEV("div",{className:"flex items-center gap-3",children:[g.jsxDEV(qg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),g.jsxDEV(fn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:14,columnNumber:5},this)}function GE({currentName:o,onConfirm:s,onCancel:i,error:c}){const[u,f]=D.useState(o),h=D.useRef(null);D.useEffect(()=>{h.current?.select()},[]);const p=D.useCallback(()=>{const x=u.trim();x&&x!==o?s(x):i()},[u,o,s,i]),y=D.useCallback(x=>{x.key==="Enter"?(x.preventDefault(),p()):x.key==="Escape"&&i()},[p,i]);return g.jsxDEV("div",{className:"flex items-center gap-1",children:[g.jsxDEV("input",{ref:h,value:u,onChange:x=>f(x.target.value),onKeyDown:y,onBlur:p,className:"min-w-0 flex-1 rounded border border-c4a-accent bg-c4a-bg-surface px-2 py-1 text-sm text-c4a-text-primary outline-none",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:47,columnNumber:7},this),g.jsxDEV("button",{onClick:x=>{x.stopPropagation(),p()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:g.jsxDEV(LE,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:56,columnNumber:7},this),g.jsxDEV("button",{onClick:x=>{x.stopPropagation(),i()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:g.jsxDEV(BE,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:65,columnNumber:7},this),c&&g.jsxDEV("span",{className:"ml-1 text-xs text-c4a-error",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:46,columnNumber:5},this)}function XE({target:o,onConfirm:s,onCancel:i}){const{t:c}=Ie(),u=D.useRef(null);D.useEffect(()=>{const h=p=>{p.key==="Escape"&&i()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[i]);const f=D.useCallback(h=>{u.current&&!u.current.contains(h.target)&&i()},[i]);return g.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:f,children:g.jsxDEV("div",{ref:u,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[g.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.delete.confirm_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:61,columnNumber:9},this),g.jsxDEV("div",{className:"mt-4 space-y-3 text-sm text-c4a-text-secondary",children:[o.type==="resource"&&g.jsxDEV(g.Fragment,{children:[g.jsxDEV("p",{children:c("sources.delete.resource",{name:o.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:68,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.resource_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:69,columnNumber:15},this),g.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.session_warning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:70,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:73,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:67,columnNumber:13},this),o.type==="folder"&&g.jsxDEV(g.Fragment,{children:[g.jsxDEV("p",{children:c("sources.delete.folder",{name:o.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:79,columnNumber:15},this),g.jsxDEV("p",{children:o.folderCount!==void 0&&o.sourceCount!==void 0?c("sources.delete.folder_impact",{folders:o.folderCount,sources:o.sourceCount}):c("sources.delete.folder_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:80,columnNumber:15},this),g.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:88,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:78,columnNumber:13},this),o.type==="repo"&&g.jsxDEV(g.Fragment,{children:[g.jsxDEV("p",{children:c("sources.delete.repo",{name:o.name,library:o.libraryName})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:96,columnNumber:15},this),g.jsxDEV("p",{children:o.packageCount!==void 0&&o.docCount!==void 0?c("sources.delete.repo_impact",{packages:o.packageCount,docs:o.docCount}):c("sources.delete.repo_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:102,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:110,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:111,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:95,columnNumber:13},this),o.type==="client"&&g.jsxDEV(g.Fragment,{children:[g.jsxDEV("p",{children:c("sources.delete.client",{name:o.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:117,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.client_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:118,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:119,columnNumber:15},this),g.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:120,columnNumber:15},this),g.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:121,columnNumber:15},this),g.jsxDEV("p",{className:"text-c4a-text-muted",children:c("sources.delete.client_reregister")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:124,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:116,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:65,columnNumber:9},this),g.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[g.jsxDEV("button",{onClick:i,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:132,columnNumber:11},this),g.jsxDEV("button",{onClick:s,className:"rounded bg-c4a-error px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-error/80",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:138,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:131,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:57,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:53,columnNumber:5},this)}const QE="lib_cloud_default",$U=o=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${o?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,YU=[{to:"/studio/modeling",icon:DO,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:CO,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:iU,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:fU,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:gU,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:uU,i18nKey:"studio.sidebar.settings"}];function qU({state:o,onClose:s,onRename:i,onDelete:c}){const{t:u}=Ie(),f=D.useRef(null);D.useEffect(()=>{const p=y=>{f.current&&!f.current.contains(y.target)&&s()};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[s]);const h=o.library.id===QE;return g.jsxDEV("div",{ref:f,className:"fixed z-50 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",style:{top:o.y,left:o.x},children:[g.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:()=>{i(o.library),s()},children:u("sources.library.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:99,columnNumber:7},this),!h&&g.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:()=>{c(o.library),s()},children:u("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:109,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:94,columnNumber:5},this)}function GN({onNavigate:o}){const{t:s}=Ie(),i=eo(),c=el(),u=La(ru(Bf)),f=La(oe=>oe.updateLibraryName),h=La(oe=>oe.deleteLibrary),p=i.pathname.startsWith("/studio/sources")||i.pathname.startsWith("/studio/source/"),[y,x]=D.useState(p),[w,v]=D.useState(null),[E,R]=D.useState(null),[A,H]=D.useState(null),[V,I]=D.useState(null);D.useEffect(()=>{p&&x(!0)},[p]);const Z=D.useCallback((oe,$)=>{oe.preventDefault(),v({x:oe.clientX,y:oe.clientY,library:$})},[]),le=D.useCallback(()=>v(null),[]),ae=D.useCallback(oe=>{R(oe.id),H(null)},[]),K=D.useCallback(async oe=>{if(E)try{await f(E,oe),R(null),H(null)}catch($){const ue=$ instanceof Error?$.message:String($);H(ue)}},[E,f]),se=D.useCallback(()=>{R(null),H(null)},[]),re=D.useCallback(oe=>{I(oe)},[]),j=D.useCallback(async()=>{if(V){try{await h(V.id),i.pathname.includes(V.id)&&c("/studio/sources")}catch{}I(null)}},[V,h,i.pathname,c]),W=D.useCallback(()=>{I(null)},[]),Q=oe=>oe.id===QE?s("sources.library.default_cloud_name"):oe.name;return g.jsxDEV("aside",{className:"flex h-full w-[220px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:[g.jsxDEV("nav",{className:"flex flex-col gap-1",children:[g.jsxDEV("div",{className:"group/sources",children:[g.jsxDEV("button",{onClick:()=>x(oe=>!oe),className:`flex w-full cursor-pointer items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${p?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[g.jsxDEV(jO,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:227,columnNumber:13},this),s("studio.sidebar.sources"),g.jsxDEV("span",{role:"button",tabIndex:0,onClick:oe=>{oe.stopPropagation(),c("/studio/sources/add-client"),o?.()},onKeyDown:oe=>{(oe.key==="Enter"||oe.key===" ")&&(oe.stopPropagation(),c("/studio/sources/add-client"),o?.())},className:"rounded p-0.5 text-c4a-text-muted opacity-0 transition-opacity hover:bg-c4a-bg-hover hover:text-c4a-text-primary max-md:opacity-100 group-hover/sources:opacity-100",title:s("sources.menu.add_client"),children:g.jsxDEV(rU,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:247,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:229,columnNumber:13},this),g.jsxDEV("span",{className:"ml-auto shrink-0",children:y?g.jsxDEV(VE,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:251,columnNumber:17},this):g.jsxDEV(Vf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:253,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:249,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:219,columnNumber:11},this),y&&g.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(oe=>{const $=E===oe.id,ue=Q(oe);return $?g.jsxDEV("div",{className:"py-1.5 pl-8 pr-3",onClick:ve=>ve.stopPropagation(),children:g.jsxDEV(GE,{currentName:ue,onConfirm:K,onCancel:se,error:A},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:271,columnNumber:23},this)},oe.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:266,columnNumber:21},this):g.jsxDEV(Kc,{to:`/studio/sources/${oe.id}`,onClick:o,onContextMenu:ve=>Z(ve,oe),className:({isActive:ve})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${ve?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[g.jsxDEV("span",{className:"truncate",children:ue},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:295,columnNumber:21},this),oe.type==="daemon"&&g.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${oe.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:297,columnNumber:23},this)]},oe.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:282,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:259,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:218,columnNumber:9},this),YU.map(({to:oe,icon:$,i18nKey:ue})=>g.jsxDEV(Kc,{to:oe,onClick:o,className:({isActive:ve})=>$U(ve),children:[g.jsxDEV($,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:318,columnNumber:13},this),s(ue)]},oe,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:312,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:216,columnNumber:7},this),w&&g.jsxDEV(qU,{state:w,onClose:le,onRename:ae,onDelete:re},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:325,columnNumber:9},this),V&&g.jsxDEV(XE,{target:{type:"client",name:Q(V)},onConfirm:j,onCancel:W},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:334,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:215,columnNumber:5},this)}function GU(){const[o,s]=D.useState(!1);return D.useEffect(()=>{La.getState().fetchLibraries(),Kr.getState().fetchDaemonStatus()},[]),D.useEffect(()=>Mo.onStatusChange(i=>{i==="connected"&&(La.getState().fetchLibraries(),Kr.getState().fetchDaemonStatus())}),[]),g.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[g.jsxDEV(BU,{onToggleSidebar:()=>s(!o)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:30,columnNumber:7},this),g.jsxDEV("div",{className:"flex flex-1",children:[g.jsxDEV("div",{className:"hidden md:block",children:g.jsxDEV(GN,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,columnNumber:9},this),o&&g.jsxDEV(g.Fragment,{children:[g.jsxDEV("div",{className:"fixed inset-0 top-14 z-30 bg-black/40 md:hidden",onClick:()=>s(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:41,columnNumber:13},this),g.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:g.jsxDEV(GN,{onNavigate:()=>s(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:46,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:11},this),g.jsxDEV("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:g.jsxDEV(UE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:52,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:32,columnNumber:7},this),g.jsxDEV(qE,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:56,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:5},this)}function XU(){const{t:o}=Ie();return g.jsxDEV("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[g.jsxDEV("h1",{className:"font-mono text-4xl font-bold uppercase tracking-wide text-c4a-text-primary md:text-5xl",children:o("home.hero.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:10,columnNumber:7},this),g.jsxDEV("p",{className:"mt-6 max-w-lg text-base text-c4a-text-secondary",children:o("home.hero.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:13,columnNumber:7},this),g.jsxDEV("div",{className:"mt-10 flex items-center gap-4",children:[g.jsxDEV(fn,{to:"/studio",className:"flex items-center gap-2 rounded bg-c4a-accent px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-white transition-colors duration-150 hover:bg-c4a-accent-hover",children:[o("home.hero.cta.studio"),g.jsxDEV(EO,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:22,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:17,columnNumber:9},this),g.jsxDEV("a",{href:"https://github.com/anthropics/c4a",target:"_blank",rel:"noopener noreferrer",className:"rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:o("home.hero.cta.github")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:16,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:9,columnNumber:5},this)}function zn({title:o,version:s,description:i}){const{t:c}=Ie();return g.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:g.jsxDEV("div",{className:"max-w-md text-center",children:[g.jsxDEV("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:15,columnNumber:9},this),s&&g.jsxDEV("span",{className:"mt-3 inline-block rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-1 font-mono text-xs uppercase text-c4a-accent",children:c("placeholder.coming",{version:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:19,columnNumber:11},this),g.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:i},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:13,columnNumber:5},this)}function QU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.login.title"),version:"0.5.0",description:o("page.login.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Login.tsx",lineNumber:8,columnNumber:5},this)}function FU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.docs.title"),version:"0.4.13",description:o("page.docs.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Docs.tsx",lineNumber:8,columnNumber:5},this)}function IU(){const{t:o}=Ie();return g.jsxDEV("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[g.jsxDEV("h1",{className:"font-mono text-6xl font-bold text-c4a-accent",children:o("notfound.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:9,columnNumber:7},this),g.jsxDEV("p",{className:"mt-4 text-base text-c4a-text-secondary",children:o("notfound.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:12,columnNumber:7},this),g.jsxDEV(fn,{to:"/",className:"mt-8 rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:o("notfound.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:8,columnNumber:5},this)}function ZU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.modeling.title"),version:"0.4.16",description:o("page.modeling.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Modeling.tsx",lineNumber:8,columnNumber:5},this)}function JU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.brain.title"),version:"0.4.18",description:o("page.brain.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Brain.tsx",lineNumber:8,columnNumber:5},this)}function PU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.discovery.title"),version:"0.6.x",description:o("page.discovery.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Discovery.tsx",lineNumber:8,columnNumber:5},this)}function KU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.sharing.title"),version:"0.4.39",description:o("page.sharing.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Sharing.tsx",lineNumber:8,columnNumber:5},this)}function WU(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.collaboration.title"),version:"0.5.x",description:o("page.collaboration.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Collaboration.tsx",lineNumber:8,columnNumber:5},this)}function eA(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.settings.title"),version:"0.5.x",description:o("page.settings.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Settings.tsx",lineNumber:8,columnNumber:5},this)}function tA(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.code_setup.title"),version:"0.4.13",description:o("page.code_setup.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeSetup.tsx",lineNumber:8,columnNumber:5},this)}function aA(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.code_compile.title"),version:"0.4.13",description:o("page.code_compile.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeCompile.tsx",lineNumber:8,columnNumber:5},this)}function nA(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.code_review.title"),version:"0.4.14",description:o("page.code_review.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeReview.tsx",lineNumber:8,columnNumber:5},this)}function oA(){const{t:o}=Ie();return g.jsxDEV(zn,{title:o("page.code_result.title"),version:"0.4.14",description:o("page.code_result.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeResult.tsx",lineNumber:8,columnNumber:5},this)}const sb=Hf(o=>({sources:[],currentSource:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchSources:async({library_id:s,parent_id:i,limit:c,offset:u})=>{o({loading:!0,error:null});try{const f={library_id:s};i!=null&&(f.parent_id=i),c!==void 0&&(f.limit=String(c)),u!==void 0&&(f.offset=String(u));const h=await Fa.get("/sources",f);o({sources:h.items,total:h.total,limit:h.limit,offset:h.offset,loading:!1})}catch(f){o({error:f instanceof Error?f.message:"Failed to load sources",loading:!1})}},fetchChildren:async s=>await Fa.get(`/sources/${s}/children`),fetchSource:async s=>{o({loading:!0,error:null});try{const i=await Fa.get(`/sources/${s}`);o({currentSource:i,loading:!1})}catch(i){o({error:i instanceof Error?i.message:"Failed to load source",loading:!1})}},createSource:async s=>await Fa.post("/sources",s),updateSource:async(s,i)=>{const c=await Fa.put(`/sources/${s}`,i);o(u=>({sources:u.sources.map(f=>f.id===s?c:f),currentSource:u.currentSource?.id===s?c:u.currentSource}))},deleteSource:async s=>{await Fa.delete(`/sources/${s}`),o(i=>({sources:i.sources.filter(c=>c.id!==s),currentSource:i.currentSource?.id===s?null:i.currentSource}))},setFilter:s=>o({filter:s}),clearSources:()=>o({sources:[],currentSource:null,total:0,offset:0})}));function $f({segments:o}){const{t:s}=Ie(),i=[{label:s("sources.breadcrumb.sources")},...o],c=i.length>4?[i[0],{label:"..."},i[i.length-2],i[i.length-1]]:i;return g.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:c.map((u,f)=>{const h=f===c.length-1;return g.jsxDEV("span",{className:"flex items-center gap-1",children:[f>0&&g.jsxDEV(Vf,{size:12,className:"text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:40,columnNumber:15},this),u.to&&!h?g.jsxDEV(fn,{to:u.to,className:"cursor-pointer transition-colors hover:text-c4a-text-primary",children:u.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:43,columnNumber:15},this):g.jsxDEV("span",{className:h?"text-c4a-text-primary":"",children:u.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:50,columnNumber:15},this)]},f,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:38,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:34,columnNumber:5},this)}const sA=["all","indexed","not_indexed"];function rA({value:o,onChange:s}){const{t:i}=Ie(),c={all:i("sources.filter.all"),indexed:i("sources.filter.indexed"),not_indexed:i("sources.filter.not_indexed")};return g.jsxDEV("select",{value:o,onChange:u=>s(u.target.value),className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-secondary outline-none transition-colors hover:border-c4a-border-strong focus:border-c4a-accent",children:sA.map(u=>g.jsxDEV("option",{value:u,children:c[u]},u,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:27,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:21,columnNumber:5},this)}function lA({source:o,isDaemonLibrary:s}){return o.kind==="folder"?s?g.jsxDEV(qO,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:33,columnNumber:7},this):g.jsxDEV(Wc,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:35,columnNumber:7},this):o.source_type==="code"?g.jsxDEV(nb,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:39,columnNumber:12},this):g.jsxDEV(tb,{size:16,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:41,columnNumber:10},this)}function XN({status:o}){const{t:s}=Ie(),i={none:"bg-c4a-bg-active text-c4a-text-muted",indexed:"bg-c4a-success/20 text-c4a-success",stale:"bg-c4a-warning/20 text-c4a-warning"},c={none:"sources.status.none",indexed:"sources.status.indexed",stale:"sources.status.stale"};return g.jsxDEV("span",{className:`rounded px-1.5 py-0.5 font-mono text-[10px] uppercase ${i[o]}`,children:s(c[o])},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:58,columnNumber:5},this)}function iA({type:o}){const{t:s}=Ie(),i=o==="code"?"sources.type.code":"sources.type.doc";return g.jsxDEV("span",{className:"font-mono text-[10px] uppercase text-c4a-text-muted",children:s(i)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:71,columnNumber:5},this)}function cA({source:o,childCount:s,isDaemonLibrary:i,isRepoRoot:c,onClick:u,onRename:f,onMoveTo:h,onDelete:p}){const{t:y}=Ie(),[x,w]=D.useState(!1),[v,E]=D.useState(!1),[R,A]=D.useState(null),H=D.useRef(null);D.useEffect(()=>{if(!x)return;const re=j=>{H.current&&!H.current.contains(j.target)&&w(!1)};return document.addEventListener("mousedown",re),()=>document.removeEventListener("mousedown",re)},[x]);const V=D.useCallback(re=>{re.preventDefault(),w(!0)},[]),I=D.useCallback(async re=>{if(!f)return;const j=await f(re);j?A(j):(E(!1),A(null))},[f]),Z=D.useCallback(()=>{E(!1),A(null)},[]),le=!c&&f,ae=o.kind==="source"&&!c&&h,K=p,se=le||ae||K;return g.jsxDEV("div",{className:"group flex items-center gap-3 rounded px-3 py-2 transition-colors hover:bg-c4a-bg-hover cursor-pointer",onClick:v?void 0:u,onContextMenu:v?void 0:V,children:[g.jsxDEV(lA,{source:o,isDaemonLibrary:i??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:142,columnNumber:7},this),v?g.jsxDEV("div",{className:"min-w-0 flex-1",onClick:re=>re.stopPropagation(),children:g.jsxDEV(GE,{currentName:o.name,onConfirm:I,onCancel:Z,error:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:146,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:145,columnNumber:9},this):g.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm text-c4a-text-primary",children:o.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:154,columnNumber:9},this),g.jsxDEV("div",{className:"hidden items-center gap-2 md:flex",children:[o.kind==="folder"&&s!==void 0&&g.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:y("common.items",{count:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:162,columnNumber:11},this),o.kind==="source"&&g.jsxDEV(g.Fragment,{children:[g.jsxDEV(XN,{status:o.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:168,columnNumber:13},this),o.source_type&&g.jsxDEV(iA,{type:o.source_type},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:169,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:160,columnNumber:7},this),g.jsxDEV("div",{className:"flex items-center gap-2 md:hidden",children:o.kind==="source"&&g.jsxDEV(XN,{status:o.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:177,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:175,columnNumber:7},this),se&&g.jsxDEV("div",{className:"relative",ref:H,children:[g.jsxDEV("button",{onClick:re=>{re.stopPropagation(),w(j=>!j)},className:"rounded p-1 text-c4a-text-muted opacity-0 transition-opacity hover:bg-c4a-bg-active hover:text-c4a-text-primary group-hover:opacity-100",children:g.jsxDEV(VO,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:191,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:184,columnNumber:11},this),x&&g.jsxDEV("div",{className:"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",children:[le&&g.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:re=>{re.stopPropagation(),w(!1),E(!0)},children:y("sources.actions.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:197,columnNumber:17},this),ae&&g.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:re=>{re.stopPropagation(),w(!1),h()},children:y("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:209,columnNumber:17},this),K&&g.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:re=>{re.stopPropagation(),w(!1),p()},children:y("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:221,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:195,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:137,columnNumber:5},this)}function uA({libraryId:o,currentParentId:s,sourceName:i,sourceId:c,onConfirm:u,onCancel:f,error:h}){const{t:p}=Ie(),y=D.useRef(null),[x,w]=D.useState(null),[v,E]=D.useState([]),[R,A]=D.useState(!0),H=D.useCallback((se,re)=>{if(re===null)return"/";for(const j of se){if(j.id===re)return j.name;if(j.children.length>0){const W=H(j.children,re);if(W!==re)return W}}return re},[]),V=D.useMemo(()=>s===null?"/":H(v,s),[s,v,H]),I=D.useMemo(()=>x===null?"/":H(v,x),[x,v,H]);D.useEffect(()=>{const se=re=>{re.key==="Escape"&&f()};return document.addEventListener("keydown",se),()=>document.removeEventListener("keydown",se)},[f]),D.useEffect(()=>{Z()},[o]);const Z=async()=>{try{const re=(await Fa.get("/sources",{library_id:o,kind:"folder",limit:"500"})).items.filter(W=>W.id!==c),j=re.filter(W=>W.parent_id===null).map(W=>le(W,re));E(j)}catch{}finally{A(!1)}},le=(se,re)=>{const j=re.filter(W=>W.parent_id===se.id).map(W=>le(W,re));return{id:se.id,name:se.name,children:j,expanded:!1,loaded:!0}},ae=D.useCallback(se=>{E(re=>IE(re,se))},[]),K=D.useCallback(se=>{y.current&&!y.current.contains(se.target)&&f()},[f]);return g.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:K,children:g.jsxDEV("div",{ref:y,className:"mx-4 w-full max-w-sm rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[g.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:p("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:137,columnNumber:9},this),g.jsxDEV("div",{className:"mt-4 max-h-60 overflow-y-auto",children:R?g.jsxDEV("p",{className:"text-xs text-c4a-text-muted",children:p("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:143,columnNumber:13},this):g.jsxDEV(g.Fragment,{children:[g.jsxDEV("button",{onClick:()=>w(null),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm ${x===null?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"} ${s===null?"opacity-40 pointer-events-none":""}`,children:[g.jsxDEV(Wc,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:155,columnNumber:17},this),"/ (",p("sources.breadcrumb.sources"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:147,columnNumber:15},this),v.map(se=>g.jsxDEV(FE,{node:se,depth:1,selected:x,currentParentId:s,onSelect:w,onToggle:ae},se.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:158,columnNumber:17},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:145,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:141,columnNumber:9},this),!R&&g.jsxDEV("div",{className:"mt-3 space-y-1 border-t border-c4a-border-subtle pt-3 text-xs",children:[g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV("span",{className:"w-16 text-c4a-text-muted",children:p("sources.move.current")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:176,columnNumber:15},this),g.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:[V,"/",i]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:179,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:175,columnNumber:13},this),x!==void 0&&g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV("span",{className:"w-16 text-c4a-text-muted",children:p("sources.move.target")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:185,columnNumber:17},this),g.jsxDEV("span",{className:"font-mono text-c4a-accent",children:[I,"/",i]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:188,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:184,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:174,columnNumber:11},this),h&&g.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:h},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:197,columnNumber:11},this),g.jsxDEV("div",{className:"mt-4 flex justify-end gap-2",children:[g.jsxDEV("button",{onClick:f,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:p("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:201,columnNumber:11},this),g.jsxDEV("button",{onClick:()=>u(x),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:p("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:200,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:133,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:129,columnNumber:5},this)}function FE({node:o,depth:s,selected:i,currentParentId:c,onSelect:u,onToggle:f}){const h=o.id===c,p=i===o.id,y=o.children.length>0;return g.jsxDEV("div",{children:[g.jsxDEV("button",{onClick:()=>{h||u(o.id)},className:`flex w-full items-center gap-1 rounded px-2 py-1.5 text-left text-sm ${p?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"} ${h?"opacity-40 pointer-events-none":""}`,style:{paddingLeft:`${s*16+8}px`},children:[y?g.jsxDEV("span",{onClick:x=>{x.stopPropagation(),f(o.id)},className:"shrink-0 cursor-pointer",children:o.expanded?g.jsxDEV(VE,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:260,columnNumber:15},this):g.jsxDEV(Vf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:262,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:252,columnNumber:11},this):g.jsxDEV("span",{className:"w-3 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:266,columnNumber:11},this),g.jsxDEV(Wc,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:268,columnNumber:9},this),g.jsxDEV("span",{className:"truncate",children:o.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:240,columnNumber:7},this),o.expanded&&o.children.map(x=>g.jsxDEV(FE,{node:x,depth:s+1,selected:i,currentParentId:c,onSelect:u,onToggle:f},x.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:273,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:239,columnNumber:5},this)}function IE(o,s){return o.map(i=>i.id===s?{...i,expanded:!i.expanded}:i.children.length>0?{...i,children:IE(i.children,s)}:i)}function dA({onConfirm:o,onCancel:s,error:i}){const{t:c}=Ie(),[u,f]=D.useState(""),h=D.useRef(null),p=D.useRef(null);D.useEffect(()=>{h.current?.focus()},[]),D.useEffect(()=>{const v=E=>{E.key==="Escape"&&s()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[s]);const y=D.useCallback(v=>{p.current&&!p.current.contains(v.target)&&s()},[s]),x=D.useCallback(()=>{const v=u.trim();v&&o(v)},[u,o]),w=D.useCallback(v=>{v.key==="Enter"&&(v.preventDefault(),x())},[x]);return g.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:y,children:g.jsxDEV("div",{ref:p,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV(HE,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:69,columnNumber:11},this),g.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:70,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:68,columnNumber:9},this),g.jsxDEV("div",{className:"mt-4",children:[g.jsxDEV("input",{ref:h,value:u,onChange:v=>f(v.target.value),onKeyDown:w,placeholder:c("sources.folder.name_placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-2 text-sm text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:76,columnNumber:11},this),i&&g.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:i},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:86,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:75,columnNumber:9},this),g.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[g.jsxDEV("button",{onClick:s,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:91,columnNumber:11},this),g.jsxDEV("button",{onClick:x,disabled:!u.trim(),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:90,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:64,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:60,columnNumber:5},this)}function fA({library:o,onNewFolder:s,onImportRepo:i}){const{t:c}=Ie(),u=o.type==="daemon";return g.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:g.jsxDEV("div",{className:"max-w-md text-center",children:[g.jsxDEV("h3",{className:"font-mono text-lg font-bold uppercase text-c4a-text-primary",children:c(u?"sources.empty.daemon.title":"sources.empty.cloud.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:47,columnNumber:9},this),g.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:c(u?"sources.empty.daemon.description":"sources.empty.cloud.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:52,columnNumber:9},this),g.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:u&&i?g.jsxDEV("button",{onClick:i,disabled:!o.is_online,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:59,columnNumber:13},this):g.jsxDEV("button",{onClick:s,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:c("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:67,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:57,columnNumber:9},this),u&&g.jsxDEV("p",{className:"mt-6 flex items-start gap-2 text-left text-xs text-c4a-text-muted",children:[g.jsxDEV(ab,{size:14,className:"mt-0.5 shrink-0 text-c4a-info"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:77,columnNumber:13},this),c("sources.safety.notice")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:76,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:46,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:45,columnNumber:5},this)}function mA(){const{t:o}=Ie();return g.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-surface p-6 text-center",children:[g.jsxDEV("h4",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:o("sources.empty.indexed.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:92,columnNumber:7},this),g.jsxDEV("p",{className:"mt-2 text-xs text-c4a-text-secondary",children:o("sources.empty.indexed.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:95,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:91,columnNumber:5},this)}function hA(){const{t:o}=Ie(),s=el(),{libId:i}=Jg(),[c,u]=dO(),f=c.get("path")||null,p=La(ru(Bf)).find(P=>P.id===i),{sources:y,loading:x,filter:w,fetchSources:v,fetchChildren:E,createSource:R,updateSource:A,deleteSource:H,setFilter:V}=sb(),[I,Z]=D.useState(!1),[le,ae]=D.useState(null),[K,se]=D.useState(null),[re,j]=D.useState(null),[W,Q]=D.useState(null),[oe,$]=D.useState(null),[ue,ve]=D.useState({}),[Te,J]=D.useState([]);D.useEffect(()=>{i&&v({library_id:i,parent_id:f})},[i,f,v]),D.useEffect(()=>{if(!f){J([]);return}(async()=>{const P=[];let Ze=f;for(;Ze;)try{const $e=await fetch(`/api/v1/sources/${Ze}`);if(!$e.ok)break;const ta=await $e.json();P.unshift(ta),Ze=ta.parent_id}catch{break}J(P)})()},[f]),D.useEffect(()=>{y.filter(Ze=>Ze.kind==="folder").forEach(async Ze=>{try{const $e=await E(Ze.id),ta=$e.filter(Xt=>Xt.kind==="folder").length,Za=$e.filter(Xt=>Xt.kind==="source").length,dt=$e.filter(Xt=>Xt.kind==="source"&&Xt.source_type==="code").length,wt=$e.filter(Xt=>Xt.kind==="source"&&Xt.source_type==="doc").length;ve(Xt=>({...Xt,[Ze.id]:{folders:ta,sources:Za,codeSources:dt,docSources:wt}}))}catch{}})},[y,E]);const de=D.useMemo(()=>{const P=[...y].sort((Ze,$e)=>Ze.kind!==$e.kind?Ze.kind==="folder"?-1:1:Ze.name.localeCompare($e.name));return w==="all"?P:P.filter(Ze=>Ze.kind==="folder"?!0:w==="indexed"?Ze.index_status==="indexed":Ze.index_status==="none")},[y,w]),fe=p?.type==="daemon",he=fe&&f!==null,xe=D.useMemo(()=>{if(!p)return[];const P=[{label:p.id===ob?o("sources.library.default_cloud_name"):p.name,to:`/studio/sources/${p.id}`}];return Te.forEach(Ze=>{P.push({label:Ze.name,to:`/studio/sources/${p.id}?path=${Ze.id}`})}),P},[p,Te,o]),q=D.useCallback(async P=>{if(i)try{await R({library_id:i,parent_id:f,kind:"folder",name:P}),Z(!1),ae(null),v({library_id:i,parent_id:f})}catch(Ze){Ze instanceof _f&&Ze.status===409&&ae(o("sources.error.name_conflict",{name:P}))}},[i,f,R,v,o]),ge=D.useCallback(P=>{P.kind==="folder"?u({path:P.id}):s(`/studio/source/${P.id}`)},[s,u]),Oe=D.useCallback(async(P,Ze)=>{try{return await A(P.id,{name:Ze}),v({library_id:i,parent_id:f}),null}catch($e){return $e instanceof _f&&$e.status===409?o("sources.error.name_conflict",{name:Ze}):null}},[i,f,A,v,o]),Se=D.useCallback(P=>{if(j(P.id),P.kind==="folder"){const Ze=P.parent_id===null,$e=ue[P.id];se(fe&&Ze?{type:"repo",name:P.name,libraryName:p.name,...$e!==void 0?{packageCount:$e.codeSources,docCount:$e.docSources}:{}}:{type:"folder",name:P.name,...$e!==void 0?{folderCount:$e.folders,sourceCount:$e.sources}:{}})}else se({type:"resource",name:P.name})},[fe,p,ue]),ct=D.useCallback(async()=>{if(!(!re||!i))try{await H(re),se(null),j(null),v({library_id:i,parent_id:f})}catch{}},[re,i,f,H,v]),At=D.useCallback(async P=>{if(!(!W||!i))try{await A(W.id,{parent_id:P}),Q(null),$(null),v({library_id:i,parent_id:f})}catch(Ze){Ze instanceof _f&&Ze.status===409&&$(o("sources.error.name_conflict",{name:W.name}))}},[W,i,f,A,v,o]),lt=D.useCallback(()=>{i&&s(`/studio/sources/import/${i}`)},[i,s]);if(!p)return g.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:g.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:o("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:347,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:346,columnNumber:7},this);const ea=fe,Gt=y.length===0&&w==="all"&&!x&&!f,Ia=de.filter(P=>P.kind==="source").length===0&&w==="indexed"&&!x;return g.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[g.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsxDEV($f,{segments:xe},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:364,columnNumber:9},this),g.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[!he&&g.jsxDEV("button",{onClick:()=>Z(!0),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[g.jsxDEV(HE,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:371,columnNumber:15},this),o("sources.actions.new_folder")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:367,columnNumber:13},this),ea&&!he&&g.jsxDEV("button",{onClick:lt,disabled:!p.is_online,title:p.is_online?void 0:o("sources.import.daemon_offline",{name:p.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40",children:[g.jsxDEV(zO,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:386,columnNumber:15},this),o("sources.actions.import_repo")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:376,columnNumber:13},this),g.jsxDEV(rA,{value:w,onChange:V},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:390,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:365,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:363,columnNumber:7},this),Gt?g.jsxDEV(fA,{library:p,onNewFolder:()=>Z(!0),...ea?{onImportRepo:lt}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:396,columnNumber:9},this):g.jsxDEV("div",{className:"mt-4 flex flex-col gap-0.5",children:x?g.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:o("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:404,columnNumber:13},this):de.length===0?Ia?g.jsxDEV(mA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:409,columnNumber:15},this):g.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:o("common.items",{count:0})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:411,columnNumber:15},this):de.map(P=>{const Ze=fe&&P.parent_id===null&&P.kind==="folder";return g.jsxDEV(cA,{source:P,...ue[P.id]!==void 0?{childCount:ue[P.id].folders+ue[P.id].sources}:{},isDaemonLibrary:fe??!1,isRepoRoot:Ze,onClick:()=>ge(P),...he?{}:{onRename:$e=>Oe(P,$e)},...P.kind==="source"&&!he?{onMoveTo:()=>Q(P)}:{},...he?{}:{onDelete:()=>Se(P)}},P.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:422,columnNumber:17},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:402,columnNumber:9},this),I&&g.jsxDEV(dA,{onConfirm:q,onCancel:()=>{Z(!1),ae(null)},error:le},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:447,columnNumber:9},this),K&&g.jsxDEV(XE,{target:K,onConfirm:ct,onCancel:()=>{se(null),j(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:459,columnNumber:9},this),W&&i&&g.jsxDEV(uA,{libraryId:i,currentParentId:W.parent_id,sourceName:W.name,sourceId:W.id,onConfirm:At,onCancel:()=>{Q(null),$(null)},error:oe},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:471,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:361,columnNumber:5},this)}function pA({rpc:o,selectedPath:s,onSelect:i,allowedPaths:c}){const{t:u}=Ie(),f=c?.[0]??"/",[h,p]=D.useState(f),[y,x]=D.useState([]),[w,v]=D.useState(!1),[E,R]=D.useState(null),A=D.useCallback(async K=>{v(!0),R(null);try{const se=await o("fs/listTree",{path:K,depth:2});x(se.entries||[]),p(K)}catch(se){const re=se instanceof Error?se.message:String(se);R(re)}finally{v(!1)}},[o]);D.useEffect(()=>{A(f)},[A,f]);const[H,V]=D.useState(null),I=D.useCallback(K=>{K.type==="directory"&&(K.is_git_repo?(V(null),i(K.path,K.name)):(V(K.path),A(K.path)))},[i,A]),Z=D.useCallback(()=>{const K=h.split("/").slice(0,-1).join("/")||"/";V(null),A(K)},[h,A]),le=y.filter(K=>K.type==="directory").sort((K,se)=>K.name.localeCompare(se.name)),ae=y.filter(K=>K.type==="file").sort((K,se)=>K.name.localeCompare(se.name));return g.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[g.jsxDEV("h3",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:u("sources.import.select_root")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:92,columnNumber:7},this),g.jsxDEV("p",{className:"mt-2 font-mono text-xs text-c4a-text-muted",children:[u("sources.import.current_path"),": ",h]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:96,columnNumber:7},this),w?g.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[g.jsxDEV(Pr,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:102,columnNumber:11},this),g.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:u("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:103,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:101,columnNumber:9},this):E?g.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:E},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:106,columnNumber:9},this):g.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[h!=="/"&&g.jsxDEV("button",{onClick:Z,className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover",children:[g.jsxDEV(Wc,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:115,columnNumber:15},this),g.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:116,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:111,columnNumber:13},this),le.map(K=>g.jsxDEV("button",{onClick:()=>I(K),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors ${s===K.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[g.jsxDEV(Wc,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:131,columnNumber:15},this),g.jsxDEV("span",{className:"flex-1 truncate",children:K.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:132,columnNumber:15},this),K.is_git_repo&&g.jsxDEV("span",{className:"flex items-center gap-1 rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:[g.jsxDEV(FO,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:135,columnNumber:19},this),"Git"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:134,columnNumber:17},this),!K.is_git_repo&&g.jsxDEV(Vf,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:140,columnNumber:17},this)]},K.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:122,columnNumber:13},this)),ae.map(K=>g.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[g.jsxDEV($O,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:154,columnNumber:15},this),g.jsxDEV("span",{className:"truncate",children:K.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:155,columnNumber:15},this)]},K.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:150,columnNumber:13},this)),y.length===0&&g.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:u("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:160,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:108,columnNumber:9},this),H&&!s&&g.jsxDEV("p",{className:"mt-3 text-xs text-c4a-warning",children:u("sources.import.not_git")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:169,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:91,columnNumber:5},this)}const gA=["package.json","pyproject.toml","go.mod","Cargo.toml","pom.xml","build.gradle"],bA=/\.md$/i;function yA({rpc:o,repoPath:s,onReady:i}){const{t:c}=Ie(),[u,f]=D.useState(""),[h,p]=D.useState([]),[y,x]=D.useState(""),[w,v]=D.useState([]),[E,R]=D.useState(!1),[A,H]=D.useState(!0),[V,I]=D.useState(!1),[Z,le]=D.useState([]),[ae,K]=D.useState([]),[,se]=D.useState([]),[re,j]=D.useState([]);D.useEffect(()=>{(async()=>{H(!0);try{const $=await o("fs/repoStatus",{path:s});f($.branch),p($.branches||[$.branch]),x($.head_hash),R($.is_dirty),v($.commits||[{hash:$.head_hash,message:"HEAD"}]),await W($.head_hash)}catch{}finally{H(!1)}})()},[s]);const W=D.useCallback(async $=>{I(!0);try{const ve=(await o("fs/repoTree",{path:s,hash:$})).files||[];se(ve);const Te=ve.filter(xe=>gA.some(q=>{const ge=xe.path.split("/");return ge[ge.length-1]===q})),J=ve.filter(xe=>bA.test(xe.path)).filter(xe=>xe.path.split("/").length<=2).map(xe=>xe.path);K(J);const de=[],fe=[];await Promise.all(Te.map(async xe=>{try{const q=await o("fs/readFile",{path:`${s}/${xe.path}`});de.push({path:xe.path,content:q.content});const ge=vA(xe.path,q.content);fe.push({name:ge||xe.path,path:xe.path.split("/").slice(0,-1).join("/")||".",isRoot:xe.path.split("/").length===1||xe.path==="package.json"})}catch{fe.push({name:xe.path,path:xe.path.split("/").slice(0,-1).join("/")||"."})}}));const he=de.find(xe=>xe.path==="package.json");if(he)try{const xe=JSON.parse(he.content),q=Array.isArray(xe.workspaces)?xe.workspaces:Array.isArray(xe.workspaces?.packages)?xe.workspaces.packages:void 0;if(q&&q.length>0){const ge=fe.find(Se=>Se.isRoot&&Se.path===".");ge&&(ge.isRoot=!0);const Oe=Se=>q.some(ct=>{const At=ct.replace(/\/\*$/,"");return Se.startsWith(At+"/")||Se===At});for(let Se=fe.length-1;Se>=0;Se--){const ct=fe[Se];!ct.isRoot&&!Oe(ct.path)&&fe.splice(Se,1)}}}catch{}le(fe),j(de),i({branch:u,commit:$,isDirty:E,repoFiles:ve,packages:fe,mdFiles:J,repoFileContents:de})}catch{}finally{I(!1)}},[o,s,u,E,i]);D.useEffect(()=>{i({branch:u,commit:y,isDirty:E,packages:Z,mdFiles:ae,repoFileContents:re})},[u,y,E]);const Q=D.useCallback(async $=>{f($);try{const ue=await o("fs/repoStatus",{path:s});x(ue.head_hash),await W(ue.head_hash)}catch{}},[s,o,W]),oe=u&&u!=="main"&&u!=="master";return A?g.jsxDEV("div",{className:"flex items-center justify-center py-12",children:g.jsxDEV(Pr,{size:20,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:225,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:224,columnNumber:7},this):g.jsxDEV("div",{className:"space-y-4",children:[g.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[g.jsxDEV("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[g.jsxDEV("div",{children:[g.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.detail.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:236,columnNumber:13},this),g.jsxDEV("p",{className:"mt-0.5 font-mono text-xs text-c4a-text-primary",children:s.split("/").pop()},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:239,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:235,columnNumber:11},this),g.jsxDEV("div",{children:[g.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.current_path")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:244,columnNumber:13},this),g.jsxDEV("p",{className:"mt-0.5 font-mono text-xs text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:247,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:243,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:234,columnNumber:9},this),g.jsxDEV("div",{className:"mt-4 grid grid-cols-2 gap-4",children:[g.jsxDEV("div",{children:[g.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.branch")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:256,columnNumber:13},this),g.jsxDEV("select",{value:u,onChange:$=>Q($.target.value),className:"mt-1 w-full rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent",children:h.map($=>g.jsxDEV("option",{value:$,children:$},$,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:265,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:259,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:255,columnNumber:11},this),g.jsxDEV("div",{children:[g.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.commit")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:272,columnNumber:13},this),g.jsxDEV("select",{value:y,onChange:$=>{x($.target.value),W($.target.value)},className:"mt-1 w-full rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent",children:w.map($=>g.jsxDEV("option",{value:$.hash,children:[$.hash.slice(0,7)," - ",$.message.slice(0,60)]},$.hash,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:284,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:275,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:271,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:254,columnNumber:9},this),g.jsxDEV("div",{className:"mt-3 space-y-1",children:[oe&&g.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[g.jsxDEV(ab,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:296,columnNumber:15},this),c("sources.import.branch_warning",{branch:u})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:295,columnNumber:13},this),E&&g.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[g.jsxDEV(AO,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:302,columnNumber:15},this),c("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:301,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:293,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:233,columnNumber:7},this),g.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:V?g.jsxDEV("div",{className:"flex items-center gap-2 py-4",children:[g.jsxDEV(Pr,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:313,columnNumber:13},this),g.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:"Analyzing repository..."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:314,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:312,columnNumber:11},this):g.jsxDEV(g.Fragment,{children:[g.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-primary",children:Z.length>0?c("sources.import.recognized",{packages:Z.length,docs:ae.length}):c("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:320,columnNumber:13},this),Z.length>0&&g.jsxDEV("div",{className:"mt-3 space-y-1",children:Z.map($=>g.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[g.jsxDEV(nb,{size:14,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:336,columnNumber:21},this),g.jsxDEV("span",{className:"text-c4a-text-primary",children:$.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:337,columnNumber:21},this),g.jsxDEV("span",{className:"text-c4a-text-muted",children:$.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:338,columnNumber:21},this),$.isRoot&&g.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:"root"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:340,columnNumber:23},this)]},$.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:332,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:330,columnNumber:15},this),ae.length>0&&g.jsxDEV("div",{className:"mt-3 space-y-1",children:ae.map($=>g.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[g.jsxDEV(tb,{size:14,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:356,columnNumber:21},this),g.jsxDEV("span",{className:"text-c4a-text-primary",children:$},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:360,columnNumber:21},this)]},$,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:352,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:350,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:319,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:310,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:231,columnNumber:5},this)}function vA(o,s){const i=o.split("/").pop()||"";try{if(i==="package.json")return JSON.parse(s).name||null;if(i==="go.mod")return s.match(/^module\s+(.+)$/m)?.[1]||null;if(i==="Cargo.toml")return s.match(/name\s*=\s*"([^"]+)"/)?.[1]||null;if(i==="pyproject.toml")return s.match(/name\s*=\s*"([^"]+)"/)?.[1]||null}catch{}return null}function xA({importState:o,libraryName:s,importing:i,onCancel:c,onConfirm:u}){const{t:f}=Ie();return g.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[g.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:f("sources.import.confirm_heading",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:24,columnNumber:7},this),g.jsxDEV("div",{className:"mt-4 space-y-2 text-sm",children:[g.jsxDEV($c,{label:f("sources.detail.repo"),value:o.repoName},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:29,columnNumber:9},this),g.jsxDEV($c,{label:f("sources.import.branch"),value:o.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:33,columnNumber:9},this),g.jsxDEV($c,{label:f("sources.import.commit"),value:o.commit.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:37,columnNumber:9},this),g.jsxDEV($c,{label:f("sources.import.packages"),value:String(o.packages.length)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:41,columnNumber:9},this),g.jsxDEV($c,{label:f("sources.import.documents"),value:String(o.mdFiles.length)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:45,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:28,columnNumber:7},this),g.jsxDEV("p",{className:"mt-6 flex items-start gap-2 text-xs text-c4a-text-muted",children:[g.jsxDEV(ab,{size:14,className:"mt-0.5 shrink-0 text-c4a-info"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:53,columnNumber:9},this),f("sources.safety.notice")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:52,columnNumber:7},this),i&&g.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[g.jsxDEV(Pr,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:60,columnNumber:11},this),g.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:f("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:59,columnNumber:9},this),g.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[g.jsxDEV("button",{onClick:c,disabled:i,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:f("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:69,columnNumber:9},this),g.jsxDEV("button",{onClick:u,disabled:i,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[i&&g.jsxDEV(Pr,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:81,columnNumber:25},this),f(i?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:68,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:23,columnNumber:5},this)}function $c({label:o,value:s}){return g.jsxDEV("div",{className:"flex items-center gap-4",children:[g.jsxDEV("span",{className:"w-24 font-mono text-xs text-c4a-text-muted",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:94,columnNumber:7},this),g.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:93,columnNumber:5},this)}function SA(){const{t:o}=Ie(),s=el(),{libId:i}=Jg(),u=La(ru(Bf)).find(ae=>ae.id===i),f=sb(ae=>ae.createSource),[h,p]=D.useState(1),[y,x]=D.useState(!1),[w,v]=D.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),E=u?.is_online??!1,R=D.useMemo(()=>{const ae=u?.config;return!ae||!Array.isArray(ae.allowed_paths)?[]:ae.allowed_paths},[u]),A=D.useCallback(async(ae,K)=>{if(!i)throw new Error("No library");const se=await Fa.post(`/libraries/${i}/rpc`,{method:ae,params:K});if(se.error){const re=se.error;throw new Error(re.message??JSON.stringify(se.error))}return se.result??se},[i]),H=D.useCallback((ae,K)=>{v(se=>({...se,repoPath:ae,repoName:K}))},[]),V=D.useCallback(ae=>{v(K=>({...K,...ae}))},[]),I=D.useCallback(async()=>{if(i){x(!0);try{const ae=await f({library_id:i,repo_name:w.repoName,repo_root_path:w.repoPath,repo_branch:w.branch,repo_commit:w.commit,repo_files:w.repoFiles.map(se=>se.path),repo_file_contents:w.repoFileContents}),K=Array.isArray(ae)?ae[0]:ae;K?.kind==="folder"?s(`/studio/sources/${i}?path=${K.id}`):s(`/studio/sources/${i}`)}catch{x(!1)}}},[i,w,f,s]),Z=D.useMemo(()=>h===1?!!w.repoPath:h===2?w.repoFiles.length>0:!0,[h,w]),le=D.useMemo(()=>u?[{label:u.id===ob?o("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:o("sources.import.title")}]:[],[u,o]);return u?g.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[g.jsxDEV($f,{segments:le},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:162,columnNumber:7},this),g.jsxDEV("div",{className:"mt-6 flex w-full items-center gap-2 font-mono text-sm md:min-w-[500px]",children:[g.jsxDEV(kg,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:166,columnNumber:9},this),g.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:o("sources.import.step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:167,columnNumber:9},this),g.jsxDEV(QN,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:170,columnNumber:9},this),g.jsxDEV(kg,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:171,columnNumber:9},this),g.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:o("sources.import.step.version")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:172,columnNumber:9},this),g.jsxDEV(QN,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:175,columnNumber:9},this),g.jsxDEV(kg,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:176,columnNumber:9},this),g.jsxDEV("span",{className:h===3?"text-c4a-accent":"text-c4a-text-muted",children:o("sources.import.step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:165,columnNumber:7},this),g.jsxDEV("div",{className:"mt-6 flex-1",children:E?g.jsxDEV(g.Fragment,{children:[h===1&&g.jsxDEV(pA,{rpc:A,selectedPath:w.repoPath,onSelect:H,allowedPaths:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:191,columnNumber:15},this),h===2&&g.jsxDEV(yA,{rpc:A,repoPath:w.repoPath,onReady:V},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:199,columnNumber:15},this),h===3&&g.jsxDEV(xA,{importState:w,libraryName:u.name,importing:y,onCancel:()=>p(2),onConfirm:I},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:206,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:189,columnNumber:11},this):g.jsxDEV(NA,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:185,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:183,columnNumber:7},this),g.jsxDEV("p",{className:"mt-4 text-right text-xs text-c4a-text-muted",children:o("sources.safety.notice")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:219,columnNumber:7},this),E&&h<3&&g.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&g.jsxDEV("button",{onClick:()=>p(ae=>ae-1),className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:o("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:227,columnNumber:13},this),g.jsxDEV("button",{onClick:()=>p(ae=>ae+1),disabled:!Z,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:o("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:234,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:225,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:161,columnNumber:5},this):g.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:g.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:o("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:155,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:154,columnNumber:7},this)}function kg({active:o,current:s}){return g.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${s?"border-c4a-accent bg-c4a-accent":o?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:255,columnNumber:5},this)}function QN(){return g.jsxDEV("span",{className:"h-px w-6 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:268,columnNumber:10},this)}function NA({libraryName:o}){const{t:s}=Ie();return g.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[g.jsxDEV("p",{className:"text-sm text-c4a-warning",children:s("sources.import.daemon_offline",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:279,columnNumber:7},this),g.jsxDEV(fn,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:282,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:278,columnNumber:5},this)}function EA(){const{t:o}=Ie(),s=el(),i=La(E=>E.createLibrary),[c,u]=D.useState("waiting"),[f,h]=D.useState(null),[p,y]=D.useState(""),[x,w]=D.useState(!1);D.useEffect(()=>Mo.on("ws:daemon:connected",R=>{const A=R;h(A),y(A.machine_id),u(A.needs_registration?"new_client":"reconnected")}),[]);const v=D.useCallback(async()=>{if(f){w(!0);try{const E=await i({type:"daemon",name:p||f.machine_id,config:{machine_id:f.machine_id,os:f.os||"",daemon_version:f.daemon_version||""}});s(`/studio/sources/${E.id}`)}catch{w(!1)}}},[f,p,i,s]);return g.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[g.jsxDEV($f,{segments:[{label:o("sources.add_client.title")}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:62,columnNumber:7},this),g.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:o("sources.add_client.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:66,columnNumber:7},this),g.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:g.jsxDEV("ol",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[g.jsxDEV("li",{children:[g.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["1. ",o("sources.add_client.step1")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:74,columnNumber:13},this),g.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:"npm install -g @c4a/daemon"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:77,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:73,columnNumber:11},this),g.jsxDEV("li",{children:[g.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["2. ",o("sources.add_client.step2")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:82,columnNumber:13},this),g.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:`c4a-daemon --server ${window.location.host} --allow ./`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:85,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:81,columnNumber:11},this),g.jsxDEV("li",{children:[g.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["3. ",o("sources.add_client.step3")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:90,columnNumber:13},this),g.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:o("sources.add_client.step3_desc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:93,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:71,columnNumber:7},this),g.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:[c==="waiting"&&g.jsxDEV("div",{className:"flex items-center gap-3",children:[g.jsxDEV(Pr,{size:16,className:"animate-spin text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:104,columnNumber:13},this),g.jsxDEV("span",{className:"text-sm text-c4a-warning",children:o("sources.add_client.waiting")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:105,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:103,columnNumber:11},this),c==="new_client"&&f&&g.jsxDEV("div",{className:"space-y-4",children:[g.jsxDEV("h3",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:o("sources.add_client.detected")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:113,columnNumber:13},this),g.jsxDEV("div",{className:"space-y-2 text-sm",children:[g.jsxDEV(jg,{label:o("sources.add_client.machine_name"),value:f.machine_id},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:117,columnNumber:15},this),f.os&&g.jsxDEV(jg,{label:o("sources.add_client.os"),value:f.os},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:122,columnNumber:17},this),f.daemon_version&&g.jsxDEV(jg,{label:o("sources.add_client.daemon_version"),value:f.daemon_version},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:128,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:116,columnNumber:13},this),g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:o("sources.add_client.client_name")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:135,columnNumber:15},this),g.jsxDEV("input",{value:p,onChange:E=>y(E.target.value),className:"min-w-0 flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:138,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:134,columnNumber:13},this),g.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[g.jsxDEV("button",{onClick:()=>s("/studio/sources"),className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:o("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:145,columnNumber:15},this),g.jsxDEV("button",{onClick:v,disabled:x||!p.trim(),className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-50",children:[x&&g.jsxDEV(Pr,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:157,columnNumber:19},this),o("sources.add_client.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:151,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:144,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:112,columnNumber:11},this),c==="reconnected"&&f&&g.jsxDEV("div",{className:"space-y-4",children:[g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV(LE,{size:16,className:"text-c4a-success"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:168,columnNumber:15},this),g.jsxDEV("span",{className:"text-sm text-c4a-text-primary",children:o("sources.add_client.reconnected",{name:f.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:169,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:167,columnNumber:13},this),f.lib_id&&g.jsxDEV(fn,{to:`/studio/sources/${f.lib_id}`,className:"inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.add_client.go_to",{name:f.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:176,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:166,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:101,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:61,columnNumber:5},this)}function jg({label:o,value:s}){return g.jsxDEV("div",{className:"flex items-center gap-2",children:[g.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:195,columnNumber:7},this),g.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:198,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:194,columnNumber:5},this)}function wA(){const{t:o}=Ie(),{sourceUuid:s}=Jg(),{currentSource:i,loading:c,fetchSource:u}=sb(),f=La(ru(Bf)),[h,p]=D.useState("original"),[y,x]=D.useState([]);D.useEffect(()=>{s&&u(s)},[s,u]),D.useEffect(()=>{i&&(async()=>{const H=[];let V=i.parent_id;for(;V;)try{const I=await fetch(`/api/v1/sources/${V}`);if(!I.ok)break;const Z=await I.json();H.unshift(Z),V=Z.parent_id}catch{break}x(H)})()},[i]);const w=f.find(H=>H.id===i?.library_id),v=i?.metadata?Object.fromEntries(Object.entries(i.metadata).map(([H,V])=>[H,String(V??"")])):null,E=i?.source_type==="code",R=D.useMemo(()=>{if(!i||!w)return[];const H=[{label:w.id===ob?o("sources.library.default_cloud_name"):w.name,to:`/studio/sources/${w.id}`}];return y.forEach(V=>{H.push({label:V.name,to:`/studio/sources/${w.id}?path=${V.id}`})}),H.push({label:i.name}),H},[i,w,y,o]),A=[{key:"original",label:o(E?"sources.detail.tab.overview":"sources.detail.tab.original")},{key:"digest",label:o("sources.detail.tab.digest")},{key:"modeling",label:o("sources.detail.tab.modeling")}];return c||!i?g.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:g.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:o("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:95,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:94,columnNumber:7},this):g.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[g.jsxDEV($f,{segments:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:102,columnNumber:7},this),g.jsxDEV("div",{className:"mt-4 flex items-center gap-2",children:[E?g.jsxDEV(nb,{size:20,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:107,columnNumber:11},this):g.jsxDEV(tb,{size:20,className:"text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:109,columnNumber:11},this),g.jsxDEV("h1",{className:"font-mono text-xl font-bold text-c4a-text-primary",children:i.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:111,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:105,columnNumber:7},this),g.jsxDEV("div",{className:"mt-2 flex flex-wrap gap-4 text-xs text-c4a-text-muted",children:[g.jsxDEV("span",{children:[o("sources.detail.type"),":"," ",g.jsxDEV("span",{className:"text-c4a-text-secondary",children:i.source_type==="code"?o("sources.type.code"):o("sources.type.doc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:120,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:118,columnNumber:9},this),E&&v?.relative_path&&g.jsxDEV("span",{children:[o("sources.detail.path"),":"," ",g.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:v.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:127,columnNumber:11},this),!E&&g.jsxDEV("span",{children:[o("sources.detail.origin"),":"," ",g.jsxDEV("span",{className:"text-c4a-text-secondary",children:w?.type==="daemon"?o("sources.detail.origin.local"):o("sources.detail.origin.upload")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:137,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:135,columnNumber:11},this),g.jsxDEV("span",{children:[o("sources.detail.status"),":"," ",g.jsxDEV("span",{className:"text-c4a-text-secondary",children:o(`sources.status.${i.index_status}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:146,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:144,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:117,columnNumber:7},this),E&&v&&g.jsxDEV("div",{className:"mt-4 rounded border border-c4a-border-subtle bg-c4a-bg-surface p-4",children:g.jsxDEV("div",{className:"grid grid-cols-2 gap-x-8 gap-y-2 text-xs md:grid-cols-4",children:[v.repo_name&&g.jsxDEV(Df,{label:o("sources.detail.repo"),value:v.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:157,columnNumber:15},this),v.pinned_branch&&g.jsxDEV(Df,{label:o("sources.detail.branch"),value:v.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:163,columnNumber:15},this),v.pinned_hash&&g.jsxDEV(Df,{label:o("sources.detail.commit"),value:v.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:169,columnNumber:15},this),v.tech_stack&&g.jsxDEV(Df,{label:o("sources.detail.tech_stack"),value:v.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:155,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:154,columnNumber:9},this),g.jsxDEV("div",{className:"mt-6 flex border-b border-c4a-border-subtle",children:A.map(H=>g.jsxDEV("button",{onClick:()=>p(H.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${h===H.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:H.label},H.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:187,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:185,columnNumber:7},this),g.jsxDEV("div",{className:"mt-4 flex-1",children:[h==="original"&&g.jsxDEV(DA,{source:i,isCode:E},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:204,columnNumber:11},this),h==="digest"&&g.jsxDEV(FN,{message:o("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:207,columnNumber:11},this),h==="modeling"&&g.jsxDEV(FN,{message:o("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:210,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:202,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:101,columnNumber:5},this)}function Df({label:o,value:s}){return g.jsxDEV("div",{children:[g.jsxDEV("span",{className:"text-c4a-text-muted",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:222,columnNumber:7},this),g.jsxDEV("p",{className:"mt-0.5 font-mono text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:223,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:221,columnNumber:5},this)}function DA({source:o,isCode:s}){const{t:i}=Ie(),c=o.metadata;return s?g.jsxDEV("div",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[!!c?.description&&g.jsxDEV("p",{children:String(c.description)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:242,columnNumber:11},this),!!c?.dependencies&&g.jsxDEV("div",{children:[g.jsxDEV("h4",{className:"font-mono text-xs font-bold uppercase text-c4a-text-primary",children:i("sources.detail.dependencies")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:246,columnNumber:13},this),g.jsxDEV("div",{className:"mt-2 rounded bg-c4a-bg-surface p-3 font-mono text-xs",children:Object.entries(c.dependencies).map(([u,f])=>g.jsxDEV("div",{className:"flex justify-between py-0.5",children:[g.jsxDEV("span",{className:"text-c4a-text-primary",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:254,columnNumber:19},this),g.jsxDEV("span",{className:"text-c4a-text-muted",children:f},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:255,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:253,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:249,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:245,columnNumber:11},this),!c?.description&&!c?.dependencies&&g.jsxDEV("p",{className:"text-c4a-text-muted",children:i("sources.detail.original_code_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:262,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:240,columnNumber:7},this):g.jsxDEV("div",{className:"prose prose-invert max-w-none text-sm text-c4a-text-secondary",children:g.jsxDEV("p",{className:"text-c4a-text-muted",children:i("sources.detail.original_doc_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:272,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:271,columnNumber:5},this)}function FN({message:o}){return g.jsxDEV("div",{className:"flex items-center justify-center rounded border border-dashed border-c4a-border-subtle p-12",children:g.jsxDEV("p",{className:"text-center text-sm text-c4a-text-muted",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:282,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:281,columnNumber:5},this)}const RA="lib_cloud_default",CA=sO([{element:g.jsxDEV(HU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:28,columnNumber:14},void 0),children:[{path:"/",element:g.jsxDEV(XU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:30,columnNumber:29},void 0)},{path:"/login",element:g.jsxDEV(QU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:34},void 0)},{path:"/docs",element:g.jsxDEV(FU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:33},void 0)}]},{path:"/studio",element:g.jsxDEV(GU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:39,columnNumber:14},void 0),children:[{index:!0,element:g.jsxDEV(kN,{to:"/studio/sources",replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:41,columnNumber:31},void 0)},{path:"sources",element:g.jsxDEV(kN,{to:`/studio/sources/${RA}`,replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:45,columnNumber:11},void 0)},{path:"sources/add-client",element:g.jsxDEV(EA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:51,columnNumber:46},void 0)},{path:"sources/import/:libId",element:g.jsxDEV(SA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:52,columnNumber:49},void 0)},{path:"sources/:libId",element:g.jsxDEV(hA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:53,columnNumber:42},void 0)},{path:"source/:sourceUuid",element:g.jsxDEV(wA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:54,columnNumber:46},void 0)},{path:"modeling",element:g.jsxDEV(ZU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:55,columnNumber:36},void 0)},{path:"modeling/code/setup",element:g.jsxDEV(tA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:47},void 0)},{path:"modeling/code/compile",element:g.jsxDEV(aA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:57,columnNumber:49},void 0)},{path:"modeling/code/review",element:g.jsxDEV(nA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:58,columnNumber:48},void 0)},{path:"modeling/code/result",element:g.jsxDEV(oA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:59,columnNumber:48},void 0)},{path:"brain",element:g.jsxDEV(JU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:60,columnNumber:33},void 0)},{path:"discovery",element:g.jsxDEV(PU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:37},void 0)},{path:"sharing",element:g.jsxDEV(KU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:35},void 0)},{path:"collaboration",element:g.jsxDEV(WU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:41},void 0)},{path:"settings",element:g.jsxDEV(eA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:36},void 0)}]},{path:"*",element:g.jsxDEV(IU,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:69,columnNumber:25},void 0)}]);function TA(){return D.useEffect(()=>{const s=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Mo.connect(s),()=>{Mo.disconnect()}},[]),g.jsxDEV(U_,{router:CA},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}XC.createRoot(document.getElementById("root")).render(g.jsxDEV(D.StrictMode,{children:g.jsxDEV(TA,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:8,columnNumber:3},void 0));