@c4a/server-cli 0.4.10-beta.3 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10030 -157
- package/package.json +1 -1
- package/serve.js +6059 -645
- package/web/assets/index-B-Lmq9NY.js +12 -0
- package/web/assets/index-BHYZxZP6.css +1 -0
- package/web/assets/index-BUz5A-cN.js +12 -0
- package/web/assets/index-C6p8kF94.js +12 -0
- package/web/assets/index-CjUFTZVM.js +238 -0
- package/web/assets/index-D_dmgLTd.css +1 -0
- package/web/assets/index-DcihMcQa.js +12 -0
- package/web/assets/index-Dl18NHsI.js +238 -0
- package/web/assets/index-_fLrbBl2.js +238 -0
- package/web/assets/index-aPt_xWCY.js +238 -0
- package/web/index.html +2 -2
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
function ZT(r,i){for(var u=0;u<i.length;u++){const c=i[u];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const h=Object.getOwnPropertyDescriptor(c,f);h&&Object.defineProperty(r,f,h.get?h:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function u(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(f){if(f.ep)return;f.ep=!0;const h=u(f);fetch(f.href,h)}})();function JT(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var tg={exports:{}},cd={},ng={exports:{}},Ls={exports:{}};Ls.exports;var iE;function FT(){return iE||(iE=1,(function(r,i){(function(){function u(v,U){Object.defineProperty(h.prototype,v,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U[0],U[1])}})}function c(v){return v===null||typeof v!="object"?null:(v=co&&v[co]||v["@@iterator"],typeof v=="function"?v:null)}function f(v,U){v=(v=v.constructor)&&(v.displayName||v.name)||"ReactClass";var F=v+"."+U;Nt[F]||(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.",U,v),Nt[F]=!0)}function h(v,U,F){this.props=v,this.context=U,this.refs=rt,this.updater=F||jn}function p(){}function m(v,U,F){this.props=v,this.context=U,this.refs=rt,this.updater=F||jn}function y(){}function E(v){return""+v}function w(v){try{E(v);var U=!1}catch{U=!0}if(U){U=console;var F=U.error,te=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return F.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",te),E(v)}}function S(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===eu?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case q:return"Fragment";case Me:return"Profiler";case he:return"StrictMode";case it:return"Suspense";case pn:return"SuspenseList";case se:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case Ye:return"Portal";case pt:return v.displayName||"Context";case we:return(v._context.displayName||"Context")+".Consumer";case Ft:var U=v.render;return v=v.displayName,v||(v=U.displayName||U.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case Wt:return U=v.displayName||null,U!==null?U:S(v.type)||"Memo";case Oa:U=v._payload,v=v._init;try{return S(v(U))}catch{}}return null}function x(v){if(v===q)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===Oa)return"<...>";try{var U=S(v);return U?"<"+U+">":"<...>"}catch{return"<...>"}}function D(){var v=pe.A;return v===null?null:v.getOwner()}function L(){return Error("react-stack-top-frame")}function Q(v){if(ho.call(v,"key")){var U=Object.getOwnPropertyDescriptor(v,"key").get;if(U&&U.isReactWarning)return!1}return v.key!==void 0}function Y(v,U){function F(){Nl||(Nl=!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)",U))}F.isReactWarning=!0,Object.defineProperty(v,"key",{get:F,configurable:!0})}function J(){var v=S(this.type);return ra[v]||(ra[v]=!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.")),v=this.props.ref,v!==void 0?v:null}function W(v,U,F,te,me,je){var ve=F.ref;return v={$$typeof:de,type:v,key:U,props:F,_owner:te},(ve!==void 0?ve:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:J}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:me}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function re(v,U){return U=W(v.type,U,v.props,v._owner,v._debugStack,v._debugTask),v._store&&(U._store.validated=v._store.validated),U}function Ee(v){ye(v)?v._store&&(v._store.validated=1):typeof v=="object"&&v!==null&&v.$$typeof===Oa&&(v._payload.status==="fulfilled"?ye(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function ye(v){return typeof v=="object"&&v!==null&&v.$$typeof===de}function Ve(v){var U={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(F){return U[F]})}function Le(v,U){return typeof v=="object"&&v!==null&&v.key!=null?(w(v.key),Ve(""+v.key)):U.toString(36)}function M(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(y,y):(v.status="pending",v.then(function(U){v.status==="pending"&&(v.status="fulfilled",v.value=U)},function(U){v.status==="pending"&&(v.status="rejected",v.reason=U)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function ae(v,U,F,te,me){var je=typeof v;(je==="undefined"||je==="boolean")&&(v=null);var ve=!1;if(v===null)ve=!0;else switch(je){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(v.$$typeof){case de:case Ye:ve=!0;break;case Oa:return ve=v._init,ae(ve(v._payload),U,F,te,me)}}if(ve){ve=v,me=me(ve);var Ke=te===""?"."+Le(ve,0):te;return fo(me)?(F="",Ke!=null&&(F=Ke.replace(Hn,"$&/")+"/"),ae(me,U,F,"",function(en){return en})):me!=null&&(ye(me)&&(me.key!=null&&(ve&&ve.key===me.key||w(me.key)),F=re(me,F+(me.key==null||ve&&ve.key===me.key?"":(""+me.key).replace(Hn,"$&/")+"/")+Ke),te!==""&&ve!=null&&ye(ve)&&ve.key==null&&ve._store&&!ve._store.validated&&(F._store.validated=2),me=F),U.push(me)),1}if(ve=0,Ke=te===""?".":te+":",fo(v))for(var Be=0;Be<v.length;Be++)te=v[Be],je=Ke+Le(te,Be),ve+=ae(te,U,F,je,me);else if(Be=c(v),typeof Be=="function")for(Be===v.entries&&(ua||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ua=!0),v=Be.call(v),Be=0;!(te=v.next()).done;)te=te.value,je=Ke+Le(te,Be++),ve+=ae(te,U,F,je,me);else if(je==="object"){if(typeof v.then=="function")return ae(M(v),U,F,te,me);throw U=String(v),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ve}function X(v,U,F){if(v==null)return v;var te=[],me=0;return ae(v,te,"","",function(je){return U.call(F,je,me++)}),te}function De(v){if(v._status===-1){var U=v._ioInfo;U!=null&&(U.start=U.end=performance.now()),U=v._result;var F=U();if(F.then(function(me){if(v._status===0||v._status===-1){v._status=1,v._result=me;var je=v._ioInfo;je!=null&&(je.end=performance.now()),F.status===void 0&&(F.status="fulfilled",F.value=me)}},function(me){if(v._status===0||v._status===-1){v._status=2,v._result=me;var je=v._ioInfo;je!=null&&(je.end=performance.now()),F.status===void 0&&(F.status="rejected",F.reason=me)}}),U=v._ioInfo,U!=null){U.value=F;var te=F.displayName;typeof te=="string"&&(U.name=te)}v._status===-1&&(v._status=0,v._result=F)}if(v._status===1)return U=v._result,U===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?`,U),"default"in U||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'))`,U),U.default;throw v._result}function I(){var v=pe.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:
|
|
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.`),v}function ce(){pe.asyncTransitions--}function xe(v){if(Ol===null)try{var U=("require"+Math.random()).slice(0,7);Ol=(r&&r[U]).call(r,"timers").setImmediate}catch{Ol=function(te){mo===!1&&(mo=!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 me=new MessageChannel;me.port1.onmessage=te,me.port2.postMessage(void 0)}}return Ol(v)}function Ce(v){return 1<v.length&&typeof AggregateError=="function"?new AggregateError(v):v[0]}function Z(v,U){U!==sa-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. "),sa=U}function oe(v,U,F){var te=pe.actQueue;if(te!==null)if(te.length!==0)try{fe(te),xe(function(){return oe(v,U,F)});return}catch(me){pe.thrownErrors.push(me)}else pe.actQueue=null;0<pe.thrownErrors.length?(te=Ce(pe.thrownErrors),pe.thrownErrors.length=0,F(te)):U(v)}function fe(v){if(!mn){mn=!0;var U=0;try{for(;U<v.length;U++){var F=v[U];do{pe.didUsePromise=!1;var te=F(!1);if(te!==null){if(pe.didUsePromise){v[U]=F,v.splice(0,U);return}F=te}else break}while(!0)}v.length=0}catch(me){v.splice(0,U+1),pe.thrownErrors.push(me)}finally{mn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),Ye=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),we=Symbol.for("react.consumer"),pt=Symbol.for("react.context"),Ft=Symbol.for("react.forward_ref"),it=Symbol.for("react.suspense"),pn=Symbol.for("react.suspense_list"),Wt=Symbol.for("react.memo"),Oa=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),co=Symbol.iterator,Nt={},jn={isMounted:function(){return!1},enqueueForceUpdate:function(v){f(v,"forceUpdate")},enqueueReplaceState:function(v){f(v,"replaceState")},enqueueSetState:function(v){f(v,"setState")}},Ca=Object.assign,rt={};Object.freeze(rt),h.prototype.isReactComponent={},h.prototype.setState=function(v,U){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,U,"setState")},h.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};var Ot={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(_a in Ot)Ot.hasOwnProperty(_a)&&u(_a,Ot[_a]);p.prototype=h.prototype,Ot=m.prototype=new p,Ot.constructor=m,Ca(Ot,h.prototype),Ot.isPureReactComponent=!0;var fo=Array.isArray,eu=Symbol.for("react.client.reference"),pe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ho=Object.prototype.hasOwnProperty,ia=console.createTask?console.createTask:function(){return null};Ot={react_stack_bottom_frame:function(v){return v()}};var Nl,Za,ra={},Aa=Ot.react_stack_bottom_frame.bind(Ot,L)(),po=ia(x(L)),ua=!1,Hn=/\/+/g,wn=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},mo=!1,Ol=null,sa=0,Cl=!1,mn=!1,Al=typeof queueMicrotask=="function"?function(v){queueMicrotask(function(){return queueMicrotask(v)})}:xe;Ot=Object.freeze({__proto__:null,c:function(v){return I().useMemoCache(v)}});var _a={map:X,forEach:function(v,U,F){X(v,function(){U.apply(this,arguments)},F)},count:function(v){var U=0;return X(v,function(){U++}),U},toArray:function(v){return X(v,function(U){return U})||[]},only:function(v){if(!ye(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};i.Activity=se,i.Children=_a,i.Component=h,i.Fragment=q,i.Profiler=Me,i.PureComponent=m,i.StrictMode=he,i.Suspense=it,i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pe,i.__COMPILER_RUNTIME=Ot,i.act=function(v){var U=pe.actQueue,F=sa;sa++;var te=pe.actQueue=U!==null?U:[],me=!1;try{var je=v()}catch(Be){pe.thrownErrors.push(Be)}if(0<pe.thrownErrors.length)throw Z(U,F),v=Ce(pe.thrownErrors),pe.thrownErrors.length=0,v;if(je!==null&&typeof je=="object"&&typeof je.then=="function"){var ve=je;return Al(function(){me||Cl||(Cl=!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(Be,en){me=!0,ve.then(function(Rn){if(Z(U,F),F===0){try{fe(te),xe(function(){return oe(Rn,Be,en)})}catch(Ml){pe.thrownErrors.push(Ml)}if(0<pe.thrownErrors.length){var _l=Ce(pe.thrownErrors);pe.thrownErrors.length=0,en(_l)}}else Be(Rn)},function(Rn){Z(U,F),0<pe.thrownErrors.length&&(Rn=Ce(pe.thrownErrors),pe.thrownErrors.length=0),en(Rn)})}}}var Ke=je;if(Z(U,F),F===0&&(fe(te),te.length!==0&&Al(function(){me||Cl||(Cl=!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(() => ...)"))}),pe.actQueue=null),0<pe.thrownErrors.length)throw v=Ce(pe.thrownErrors),pe.thrownErrors.length=0,v;return{then:function(Be,en){me=!0,F===0?(pe.actQueue=te,xe(function(){return oe(Ke,Be,en)})):Be(Ke)}}},i.cache=function(v){return function(){return v.apply(null,arguments)}},i.cacheSignal=function(){return null},i.captureOwnerStack=function(){var v=pe.getCurrentStack;return v===null?null:v()},i.cloneElement=function(v,U,F){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var te=Ca({},v.props),me=v.key,je=v._owner;if(U!=null){var ve;e:{if(ho.call(U,"ref")&&(ve=Object.getOwnPropertyDescriptor(U,"ref").get)&&ve.isReactWarning){ve=!1;break e}ve=U.ref!==void 0}ve&&(je=D()),Q(U)&&(w(U.key),me=""+U.key);for(Ke in U)!ho.call(U,Ke)||Ke==="key"||Ke==="__self"||Ke==="__source"||Ke==="ref"&&U.ref===void 0||(te[Ke]=U[Ke])}var Ke=arguments.length-2;if(Ke===1)te.children=F;else if(1<Ke){ve=Array(Ke);for(var Be=0;Be<Ke;Be++)ve[Be]=arguments[Be+2];te.children=ve}for(te=W(v.type,me,te,je,v._debugStack,v._debugTask),me=2;me<arguments.length;me++)Ee(arguments[me]);return te},i.createContext=function(v){return v={$$typeof:pt,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:we,_context:v},v._currentRenderer=null,v._currentRenderer2=null,v},i.createElement=function(v,U,F){for(var te=2;te<arguments.length;te++)Ee(arguments[te]);te={};var me=null;if(U!=null)for(Be in Za||!("__self"in U)||"key"in U||(Za=!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")),Q(U)&&(w(U.key),me=""+U.key),U)ho.call(U,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(te[Be]=U[Be]);var je=arguments.length-2;if(je===1)te.children=F;else if(1<je){for(var ve=Array(je),Ke=0;Ke<je;Ke++)ve[Ke]=arguments[Ke+2];Object.freeze&&Object.freeze(ve),te.children=ve}if(v&&v.defaultProps)for(Be in je=v.defaultProps,je)te[Be]===void 0&&(te[Be]=je[Be]);me&&Y(te,typeof v=="function"?v.displayName||v.name||"Unknown":v);var Be=1e4>pe.recentlyCreatedOwnerStacks++;return W(v,me,te,D(),Be?Error("react-stack-top-frame"):Aa,Be?ia(x(v)):po)},i.createRef=function(){var v={current:null};return Object.seal(v),v},i.forwardRef=function(v){v!=null&&v.$$typeof===Wt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof v!="function"?console.error("forwardRef requires a render function but was given %s.",v===null?"null":typeof v):v.length!==0&&v.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",v.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),v!=null&&v.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var U={$$typeof:Ft,render:v},F;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return F},set:function(te){F=te,v.name||v.displayName||(Object.defineProperty(v,"name",{value:te}),v.displayName=te)}}),U},i.isValidElement=ye,i.lazy=function(v){v={_status:-1,_result:v};var U={$$typeof:Oa,_payload:v,_init:De},F={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return v._ioInfo=F,U._debugInfo=[{awaited:F}],U},i.memo=function(v,U){v==null&&console.error("memo: The first argument must be a component. Instead received: %s",v===null?"null":typeof v),U={$$typeof:Wt,type:v,compare:U===void 0?null:U};var F;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return F},set:function(te){F=te,v.name||v.displayName||(Object.defineProperty(v,"name",{value:te}),v.displayName=te)}}),U},i.startTransition=function(v){var U=pe.T,F={};F._updatedFibers=new Set,pe.T=F;try{var te=v(),me=pe.S;me!==null&&me(F,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&(pe.asyncTransitions++,te.then(ce,ce),te.then(y,wn))}catch(je){wn(je)}finally{U===null&&F._updatedFibers&&(v=F._updatedFibers.size,F._updatedFibers.clear(),10<v&&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.")),U!==null&&F.types!==null&&(U.types!==null&&U.types!==F.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."),U.types=F.types),pe.T=U}},i.unstable_useCacheRefresh=function(){return I().useCacheRefresh()},i.use=function(v){return I().use(v)},i.useActionState=function(v,U,F){return I().useActionState(v,U,F)},i.useCallback=function(v,U){return I().useCallback(v,U)},i.useContext=function(v){var U=I();return v.$$typeof===we&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),U.useContext(v)},i.useDebugValue=function(v,U){return I().useDebugValue(v,U)},i.useDeferredValue=function(v,U){return I().useDeferredValue(v,U)},i.useEffect=function(v,U){return v==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useEffect(v,U)},i.useEffectEvent=function(v){return I().useEffectEvent(v)},i.useId=function(){return I().useId()},i.useImperativeHandle=function(v,U,F){return I().useImperativeHandle(v,U,F)},i.useInsertionEffect=function(v,U){return v==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useInsertionEffect(v,U)},i.useLayoutEffect=function(v,U){return v==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useLayoutEffect(v,U)},i.useMemo=function(v,U){return I().useMemo(v,U)},i.useOptimistic=function(v,U){return I().useOptimistic(v,U)},i.useReducer=function(v,U,F){return I().useReducer(v,U,F)},i.useRef=function(v){return I().useRef(v)},i.useState=function(v){return I().useState(v)},i.useSyncExternalStore=function(v,U,F){return I().useSyncExternalStore(v,U,F)},i.useTransition=function(){return I().useTransition()},i.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Ls,Ls.exports)),Ls.exports}var rE;function Qs(){return rE||(rE=1,ng.exports=FT()),ng.exports}var uE;function PT(){if(uE)return cd;uE=1;return(function(){function r(q){if(q==null)return null;if(typeof q=="function")return q.$$typeof===De?null:q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case Y:return"Fragment";case W:return"Profiler";case J:return"StrictMode";case Ve:return"Suspense";case Le:return"SuspenseList";case X: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 Q:return"Portal";case Ee:return q.displayName||"Context";case re:return(q._context.displayName||"Context")+".Consumer";case ye:var he=q.render;return q=q.displayName,q||(q=he.displayName||he.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case M:return he=q.displayName||null,he!==null?he:r(q.type)||"Memo";case ae:he=q._payload,q=q._init;try{return r(q(he))}catch{}}return null}function i(q){return""+q}function u(q){try{i(q);var he=!1}catch{he=!0}if(he){he=console;var Me=he.error,we=typeof Symbol=="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return Me.call(he,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",we),i(q)}}function c(q){if(q===Y)return"<>";if(typeof q=="object"&&q!==null&&q.$$typeof===ae)return"<...>";try{var he=r(q);return he?"<"+he+">":"<...>"}catch{return"<...>"}}function f(){var q=I.A;return q===null?null:q.getOwner()}function h(){return Error("react-stack-top-frame")}function p(q){if(ce.call(q,"key")){var he=Object.getOwnPropertyDescriptor(q,"key").get;if(he&&he.isReactWarning)return!1}return q.key!==void 0}function m(q,he){function Me(){Z||(Z=!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)",he))}Me.isReactWarning=!0,Object.defineProperty(q,"key",{get:Me,configurable:!0})}function y(){var q=r(this.type);return oe[q]||(oe[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 E(q,he,Me,we,pt,Ft){var it=Me.ref;return q={$$typeof:L,type:q,key:he,props:Me,_owner:we},(it!==void 0?it: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:pt}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ft}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function w(q,he,Me,we,pt,Ft){var it=he.children;if(it!==void 0)if(we)if(xe(it)){for(we=0;we<it.length;we++)S(it[we]);Object.freeze&&Object.freeze(it)}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 S(it);if(ce.call(he,"key")){it=r(q);var pn=Object.keys(he).filter(function(Oa){return Oa!=="key"});we=0<pn.length?"{key: someKey, "+pn.join(": ..., ")+": ...}":"{key: someKey}",Ye[it+we]||(pn=0<pn.length?"{"+pn.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} />`,we,it,pn,it),Ye[it+we]=!0)}if(it=null,Me!==void 0&&(u(Me),it=""+Me),p(he)&&(u(he.key),it=""+he.key),"key"in he){Me={};for(var Wt in he)Wt!=="key"&&(Me[Wt]=he[Wt])}else Me=he;return it&&m(Me,typeof q=="function"?q.displayName||q.name||"Unknown":q),E(q,it,Me,f(),pt,Ft)}function S(q){x(q)?q._store&&(q._store.validated=1):typeof q=="object"&&q!==null&&q.$$typeof===ae&&(q._payload.status==="fulfilled"?x(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function x(q){return typeof q=="object"&&q!==null&&q.$$typeof===L}var D=Qs(),L=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),Ee=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),De=Symbol.for("react.client.reference"),I=D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,xe=Array.isArray,Ce=console.createTask?console.createTask:function(){return null};D={react_stack_bottom_frame:function(q){return q()}};var Z,oe={},fe=D.react_stack_bottom_frame.bind(D,h)(),de=Ce(c(h)),Ye={};cd.Fragment=Y,cd.jsxDEV=function(q,he,Me,we){var pt=1e4>I.recentlyCreatedOwnerStacks++;return w(q,he,Me,we,pt?Error("react-stack-top-frame"):fe,pt?Ce(c(q)):de)}})(),cd}var sE;function KT(){return sE||(sE=1,tg.exports=PT()),tg.exports}var j=KT();const $e=r=>typeof r=="string",Cs=()=>{let r,i;const u=new Promise((c,f)=>{r=c,i=f});return u.resolve=r,u.reject=i,u},cE=r=>r==null?"":""+r,IT=(r,i,u)=>{r.forEach(c=>{i[c]&&(u[c]=i[c])})},WT=/###/g,fE=r=>r&&r.indexOf("###")>-1?r.replace(WT,"."):r,dE=r=>!r||$e(r),Vs=(r,i,u)=>{const c=$e(i)?i.split("."):i;let f=0;for(;f<c.length-1;){if(dE(r))return{};const h=fE(c[f]);!r[h]&&u&&(r[h]=new u),Object.prototype.hasOwnProperty.call(r,h)?r=r[h]:r={},++f}return dE(r)?{}:{obj:r,k:fE(c[f])}},hE=(r,i,u)=>{const{obj:c,k:f}=Vs(r,i,Object);if(c!==void 0||i.length===1){c[f]=u;return}let h=i[i.length-1],p=i.slice(0,i.length-1),m=Vs(r,p,Object);for(;m.obj===void 0&&p.length;)h=`${p[p.length-1]}.${h}`,p=p.slice(0,p.length-1),m=Vs(r,p,Object),m?.obj&&typeof m.obj[`${m.k}.${h}`]<"u"&&(m.obj=void 0);m.obj[`${m.k}.${h}`]=u},eN=(r,i,u,c)=>{const{obj:f,k:h}=Vs(r,i,Object);f[h]=f[h]||[],f[h].push(u)},vd=(r,i)=>{const{obj:u,k:c}=Vs(r,i);if(u&&Object.prototype.hasOwnProperty.call(u,c))return u[c]},tN=(r,i,u)=>{const c=vd(r,u);return c!==void 0?c:vd(i,u)},vx=(r,i,u)=>{for(const c in i)c!=="__proto__"&&c!=="constructor"&&(c in r?$e(r[c])||r[c]instanceof String||$e(i[c])||i[c]instanceof String?u&&(r[c]=i[c]):vx(r[c],i[c],u):r[c]=i[c]);return r},Qi=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var nN={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const aN=r=>$e(r)?r.replace(/[&<>"'\/]/g,i=>nN[i]):r;class lN{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const u=this.regExpMap.get(i);if(u!==void 0)return u;const c=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,c),this.regExpQueue.push(i),c}}const oN=[" ",",","?","!",";"],iN=new lN(20),rN=(r,i,u)=>{i=i||"",u=u||"";const c=oN.filter(p=>i.indexOf(p)<0&&u.indexOf(p)<0);if(c.length===0)return!0;const f=iN.getRegExp(`(${c.map(p=>p==="?"?"\\?":p).join("|")})`);let h=!f.test(r);if(!h){const p=r.indexOf(u);p>0&&!f.test(r.substring(0,p))&&(h=!0)}return h},bg=(r,i,u=".")=>{if(!r)return;if(r[i])return Object.prototype.hasOwnProperty.call(r,i)?r[i]:void 0;const c=i.split(u);let f=r;for(let h=0;h<c.length;){if(!f||typeof f!="object")return;let p,m="";for(let y=h;y<c.length;++y)if(y!==h&&(m+=u),m+=c[y],p=f[m],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&y<c.length-1)continue;h+=y-h+1;break}f=p}return f},Ys=r=>r?.replace("_","-"),uN={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,i){console?.[r]?.apply?.(console,i)}};class Sd{constructor(i,u={}){this.init(i,u)}init(i,u={}){this.prefix=u.prefix||"i18next:",this.logger=i||uN,this.options=u,this.debug=u.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,u,c,f){return f&&!this.debug?null:($e(i[0])&&(i[0]=`${c}${this.prefix} ${i[0]}`),this.logger[u](i))}create(i){return new Sd(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new Sd(this.logger,i)}}var Rl=new Sd;class wd{constructor(){this.observers={}}on(i,u){return i.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const f=this.observers[c].get(u)||0;this.observers[c].set(u,f+1)}),this}off(i,u){if(this.observers[i]){if(!u){delete this.observers[i];return}this.observers[i].delete(u)}}emit(i,...u){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([f,h])=>{for(let p=0;p<h;p++)f(...u)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([f,h])=>{for(let p=0;p<h;p++)f.apply(f,[i,...u])})}}class pE extends wd{constructor(i,u={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const u=this.options.ns.indexOf(i);u>-1&&this.options.ns.splice(u,1)}getResource(i,u,c,f={}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,p=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;i.indexOf(".")>-1?m=i.split("."):(m=[i,u],c&&(Array.isArray(c)?m.push(...c):$e(c)&&h?m.push(...c.split(h)):m.push(c)));const y=vd(this.data,m);return!y&&!u&&!c&&i.indexOf(".")>-1&&(i=m[0],u=m[1],c=m.slice(2).join(".")),y||!p||!$e(c)?y:bg(this.data?.[i]?.[u],c,h)}addResource(i,u,c,f,h={silent:!1}){const p=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator;let m=[i,u];c&&(m=m.concat(p?c.split(p):c)),i.indexOf(".")>-1&&(m=i.split("."),f=u,u=m[1]),this.addNamespaces(u),hE(this.data,m,f),h.silent||this.emit("added",i,u,c,f)}addResources(i,u,c,f={silent:!1}){for(const h in c)($e(c[h])||Array.isArray(c[h]))&&this.addResource(i,u,h,c[h],{silent:!0});f.silent||this.emit("added",i,u,c)}addResourceBundle(i,u,c,f,h,p={silent:!1,skipCopy:!1}){let m=[i,u];i.indexOf(".")>-1&&(m=i.split("."),f=c,c=u,u=m[1]),this.addNamespaces(u);let y=vd(this.data,m)||{};p.skipCopy||(c=JSON.parse(JSON.stringify(c))),f?vx(y,c,h):y={...y,...c},hE(this.data,m,y),p.silent||this.emit("added",i,u,c)}removeResourceBundle(i,u){this.hasResourceBundle(i,u)&&delete this.data[i][u],this.removeNamespaces(u),this.emit("removed",i,u)}hasResourceBundle(i,u){return this.getResource(i,u)!==void 0}getResourceBundle(i,u){return u||(u=this.options.defaultNS),this.getResource(i,u)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const u=this.getDataByLanguage(i);return!!(u&&Object.keys(u)||[]).find(f=>u[f]&&Object.keys(u[f]).length>0)}toJSON(){return this.data}}var Sx={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,i,u,c,f){return r.forEach(h=>{i=this.processors[h]?.process(i,u,c,f)??i}),i}};const Ex=Symbol("i18next/PATH_KEY");function sN(){const r=[],i=Object.create(null);let u;return i.get=(c,f)=>(u?.revoke?.(),f===Ex?r:(r.push(f),u=Proxy.revocable(c,i),u.proxy)),Proxy.revocable(Object.create(null),i).proxy}function vg(r,i){const{[Ex]:u}=r(sN());return u.join(i?.keySeparator??".")}const mE={},ag=r=>!$e(r)&&typeof r!="boolean"&&typeof r!="number";class Ed extends wd{constructor(i,u={}){super(),IT(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rl.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,u={interpolation:{}}){const c={...u};if(i==null)return!1;const f=this.resolve(i,c);if(f?.res===void 0)return!1;const h=ag(f.res);return!(c.returnObjects===!1&&h)}extractFromKey(i,u){let c=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let h=u.ns||this.options.defaultNS||[];const p=c&&i.indexOf(c)>-1,m=!this.options.userDefinedKeySeparator&&!u.keySeparator&&!this.options.userDefinedNsSeparator&&!u.nsSeparator&&!rN(i,c,f);if(p&&!m){const y=i.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:i,namespaces:$e(h)?[h]:h};const E=i.split(c);(c!==f||c===f&&this.options.ns.indexOf(E[0])>-1)&&(h=E.shift()),i=E.join(f)}return{key:i,namespaces:$e(h)?[h]:h}}translate(i,u,c){let f=typeof u=="object"?{...u}:u;if(typeof f!="object"&&this.options.overloadTranslationOptionHandler&&(f=this.options.overloadTranslationOptionHandler(arguments)),typeof f=="object"&&(f={...f}),f||(f={}),i==null)return"";typeof i=="function"&&(i=vg(i,{...this.options,...f})),Array.isArray(i)||(i=[String(i)]);const h=f.returnDetails!==void 0?f.returnDetails:this.options.returnDetails,p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,{key:m,namespaces:y}=this.extractFromKey(i[i.length-1],f),E=y[y.length-1];let w=f.nsSeparator!==void 0?f.nsSeparator:this.options.nsSeparator;w===void 0&&(w=":");const S=f.lng||this.language,x=f.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S?.toLowerCase()==="cimode")return x?h?{res:`${E}${w}${m}`,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:E,usedParams:this.getUsedParamsDetails(f)}:`${E}${w}${m}`:h?{res:m,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:E,usedParams:this.getUsedParamsDetails(f)}:m;const D=this.resolve(i,f);let L=D?.res;const Q=D?.usedKey||m,Y=D?.exactUsedKey||m,J=["[object Number]","[object Function]","[object RegExp]"],W=f.joinArrays!==void 0?f.joinArrays:this.options.joinArrays,re=!this.i18nFormat||this.i18nFormat.handleAsObject,Ee=f.count!==void 0&&!$e(f.count),ye=Ed.hasDefaultValue(f),Ve=Ee?this.pluralResolver.getSuffix(S,f.count,f):"",Le=f.ordinal&&Ee?this.pluralResolver.getSuffix(S,f.count,{ordinal:!1}):"",M=Ee&&!f.ordinal&&f.count===0,ae=M&&f[`defaultValue${this.options.pluralSeparator}zero`]||f[`defaultValue${Ve}`]||f[`defaultValue${Le}`]||f.defaultValue;let X=L;re&&!L&&ye&&(X=ae);const De=ag(X),I=Object.prototype.toString.apply(X);if(re&&X&&De&&J.indexOf(I)<0&&!($e(W)&&Array.isArray(X))){if(!f.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Q,X,{...f,ns:y}):`key '${m} (${this.language})' returned an object instead of string.`;return h?(D.res=ce,D.usedParams=this.getUsedParamsDetails(f),D):ce}if(p){const ce=Array.isArray(X),xe=ce?[]:{},Ce=ce?Y:Q;for(const Z in X)if(Object.prototype.hasOwnProperty.call(X,Z)){const oe=`${Ce}${p}${Z}`;ye&&!L?xe[Z]=this.translate(oe,{...f,defaultValue:ag(ae)?ae[Z]:void 0,joinArrays:!1,ns:y}):xe[Z]=this.translate(oe,{...f,joinArrays:!1,ns:y}),xe[Z]===oe&&(xe[Z]=X[Z])}L=xe}}else if(re&&$e(W)&&Array.isArray(L))L=L.join(W),L&&(L=this.extendTranslation(L,i,f,c));else{let ce=!1,xe=!1;!this.isValidLookup(L)&&ye&&(ce=!0,L=ae),this.isValidLookup(L)||(xe=!0,L=m);const Z=(f.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&xe?void 0:L,oe=ye&&ae!==L&&this.options.updateMissing;if(xe||ce||oe){if(this.logger.log(oe?"updateKey":"missingKey",S,E,m,oe?ae:L),p){const q=this.resolve(m,{...f,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 de=this.languageUtils.getFallbackCodes(this.options.fallbackLng,f.lng||this.language);if(this.options.saveMissingTo==="fallback"&&de&&de[0])for(let q=0;q<de.length;q++)fe.push(de[q]);else this.options.saveMissingTo==="all"?fe=this.languageUtils.toResolveHierarchy(f.lng||this.language):fe.push(f.lng||this.language);const Ye=(q,he,Me)=>{const we=ye&&Me!==L?Me:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(q,E,he,we,oe,f):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,E,he,we,oe,f),this.emit("missingKey",q,E,he,L)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ee?fe.forEach(q=>{const he=this.pluralResolver.getSuffixes(q,f);M&&f[`defaultValue${this.options.pluralSeparator}zero`]&&he.indexOf(`${this.options.pluralSeparator}zero`)<0&&he.push(`${this.options.pluralSeparator}zero`),he.forEach(Me=>{Ye([q],m+Me,f[`defaultValue${Me}`]||ae)})}):Ye(fe,m,ae))}L=this.extendTranslation(L,i,f,D,c),xe&&L===m&&this.options.appendNamespaceToMissingKey&&(L=`${E}${w}${m}`),(xe||ce)&&this.options.parseMissingKeyHandler&&(L=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}${w}${m}`:m,ce?L:void 0,f))}return h?(D.res=L,D.usedParams=this.getUsedParamsDetails(f),D):L}extendTranslation(i,u,c,f,h){if(this.i18nFormat?.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const y=$e(i)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let E;if(y){const S=i.match(this.interpolator.nestingRegexp);E=S&&S.length}let w=c.replace&&!$e(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(w={...this.options.interpolation.defaultVariables,...w}),i=this.interpolator.interpolate(i,w,c.lng||this.language||f.usedLng,c),y){const S=i.match(this.interpolator.nestingRegexp),x=S&&S.length;E<x&&(c.nest=!1)}!c.lng&&f&&f.res&&(c.lng=this.language||f.usedLng),c.nest!==!1&&(i=this.interpolator.nest(i,(...S)=>h?.[0]===S[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${u[0]}`),null):this.translate(...S,u),c)),c.interpolation&&this.interpolator.reset()}const p=c.postProcess||this.options.postProcess,m=$e(p)?[p]:p;return i!=null&&m?.length&&c.applyPostProcessor!==!1&&(i=Sx.handle(m,i,u,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...f,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),i}resolve(i,u={}){let c,f,h,p,m;return $e(i)&&(i=[i]),i.forEach(y=>{if(this.isValidLookup(c))return;const E=this.extractFromKey(y,u),w=E.key;f=w;let S=E.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const x=u.count!==void 0&&!$e(u.count),D=x&&!u.ordinal&&u.count===0,L=u.context!==void 0&&($e(u.context)||typeof u.context=="number")&&u.context!=="",Q=u.lngs?u.lngs:this.languageUtils.toResolveHierarchy(u.lng||this.language,u.fallbackLng);S.forEach(Y=>{this.isValidLookup(c)||(m=Y,!mE[`${Q[0]}-${Y}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(m)&&(mE[`${Q[0]}-${Y}`]=!0,this.logger.warn(`key "${f}" for languages "${Q.join(", ")}" won't get resolved as namespace "${m}" 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!!!")),Q.forEach(J=>{if(this.isValidLookup(c))return;p=J;const W=[w];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(W,w,J,Y,u);else{let Ee;x&&(Ee=this.pluralResolver.getSuffix(J,u.count,u));const ye=`${this.options.pluralSeparator}zero`,Ve=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(u.ordinal&&Ee.indexOf(Ve)===0&&W.push(w+Ee.replace(Ve,this.options.pluralSeparator)),W.push(w+Ee),D&&W.push(w+ye)),L){const Le=`${w}${this.options.contextSeparator||"_"}${u.context}`;W.push(Le),x&&(u.ordinal&&Ee.indexOf(Ve)===0&&W.push(Le+Ee.replace(Ve,this.options.pluralSeparator)),W.push(Le+Ee),D&&W.push(Le+ye))}}let re;for(;re=W.pop();)this.isValidLookup(c)||(h=re,c=this.getResource(J,Y,re,u))}))})}),{res:c,usedKey:f,exactUsedKey:h,usedLng:p,usedNS:m}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,u,c,f={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(i,u,c,f):this.resourceStore.getResource(i,u,c,f)}getUsedParamsDetails(i={}){const u=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=i.replace&&!$e(i.replace);let f=c?i.replace:i;if(c&&typeof i.count<"u"&&(f.count=i.count),this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),!c){f={...f};for(const h of u)delete f[h]}return f}static hasDefaultValue(i){const u="defaultValue";for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)&&u===c.substring(0,u.length)&&i[c]!==void 0)return!0;return!1}}class gE{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rl.create("languageUtils")}getScriptPartFromCode(i){if(i=Ys(i),!i||i.indexOf("-")<0)return null;const u=i.split("-");return u.length===2||(u.pop(),u[u.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(u.join("-"))}getLanguagePartFromCode(i){if(i=Ys(i),!i||i.indexOf("-")<0)return i;const u=i.split("-");return this.formatLanguageCode(u[0])}formatLanguageCode(i){if($e(i)&&i.indexOf("-")>-1){let u;try{u=Intl.getCanonicalLocales(i)[0]}catch{}return u&&this.options.lowerCaseLng&&(u=u.toLowerCase()),u||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let u;return i.forEach(c=>{if(u)return;const f=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(f))&&(u=f)}),!u&&this.options.supportedLngs&&i.forEach(c=>{if(u)return;const f=this.getScriptPartFromCode(c);if(this.isSupportedCode(f))return u=f;const h=this.getLanguagePartFromCode(c);if(this.isSupportedCode(h))return u=h;u=this.options.supportedLngs.find(p=>{if(p===h)return p;if(!(p.indexOf("-")<0&&h.indexOf("-")<0)&&(p.indexOf("-")>0&&h.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===h||p.indexOf(h)===0&&h.length>1))return p})}),u||(u=this.getFallbackCodes(this.options.fallbackLng)[0]),u}getFallbackCodes(i,u){if(!i)return[];if(typeof i=="function"&&(i=i(u)),$e(i)&&(i=[i]),Array.isArray(i))return i;if(!u)return i.default||[];let c=i[u];return c||(c=i[this.getScriptPartFromCode(u)]),c||(c=i[this.formatLanguageCode(u)]),c||(c=i[this.getLanguagePartFromCode(u)]),c||(c=i.default),c||[]}toResolveHierarchy(i,u){const c=this.getFallbackCodes((u===!1?[]:u)||this.options.fallbackLng||[],i),f=[],h=p=>{p&&(this.isSupportedCode(p)?f.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return $e(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&h(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&h(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&h(this.getLanguagePartFromCode(i))):$e(i)&&h(this.formatLanguageCode(i)),c.forEach(p=>{f.indexOf(p)<0&&h(this.formatLanguageCode(p))}),f}}const yE={zero:0,one:1,two:2,few:3,many:4,other:5},bE={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class cN{constructor(i,u={}){this.languageUtils=i,this.options=u,this.logger=Rl.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,u={}){const c=Ys(i==="dev"?"en":i),f=u.ordinal?"ordinal":"cardinal",h=JSON.stringify({cleanedCode:c,type:f});if(h in this.pluralRulesCache)return this.pluralRulesCache[h];let p;try{p=new Intl.PluralRules(c,{type:f})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),bE;if(!i.match(/-|_/))return bE;const y=this.languageUtils.getLanguagePartFromCode(i);p=this.getRule(y,u)}return this.pluralRulesCache[h]=p,p}needsPlural(i,u={}){let c=this.getRule(i,u);return c||(c=this.getRule("dev",u)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(i,u,c={}){return this.getSuffixes(i,c).map(f=>`${u}${f}`)}getSuffixes(i,u={}){let c=this.getRule(i,u);return c||(c=this.getRule("dev",u)),c?c.resolvedOptions().pluralCategories.sort((f,h)=>yE[f]-yE[h]).map(f=>`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${f}`):[]}getSuffix(i,u,c={}){const f=this.getRule(i,c);return f?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f.select(u)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",u,c))}}const vE=(r,i,u,c=".",f=!0)=>{let h=tN(r,i,u);return!h&&f&&$e(u)&&(h=bg(r,u,c),h===void 0&&(h=bg(i,u,c))),h},lg=r=>r.replace(/\$/g,"$$$$");class SE{constructor(i={}){this.logger=Rl.create("interpolator"),this.options=i,this.format=i?.interpolation?.format||(u=>u),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:u,escapeValue:c,useRawValueToEscape:f,prefix:h,prefixEscaped:p,suffix:m,suffixEscaped:y,formatSeparator:E,unescapeSuffix:w,unescapePrefix:S,nestingPrefix:x,nestingPrefixEscaped:D,nestingSuffix:L,nestingSuffixEscaped:Q,nestingOptionsSeparator:Y,maxReplaces:J,alwaysFormat:W}=i.interpolation;this.escape=u!==void 0?u:aN,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=f!==void 0?f:!1,this.prefix=h?Qi(h):p||"{{",this.suffix=m?Qi(m):y||"}}",this.formatSeparator=E||",",this.unescapePrefix=w?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":w||"",this.nestingPrefix=x?Qi(x):D||Qi("$t("),this.nestingSuffix=L?Qi(L):Q||Qi(")"),this.nestingOptionsSeparator=Y||",",this.maxReplaces=J||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(u,c)=>u?.source===c?(u.lastIndex=0,u):new RegExp(c,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,u,c,f){let h,p,m;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},E=D=>{if(D.indexOf(this.formatSeparator)<0){const J=vE(u,y,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(J,void 0,c,{...f,...u,interpolationkey:D}):J}const L=D.split(this.formatSeparator),Q=L.shift().trim(),Y=L.join(this.formatSeparator).trim();return this.format(vE(u,y,Q,this.options.keySeparator,this.options.ignoreJSONStructure),Y,c,{...f,...u,interpolationkey:Q})};this.resetRegExp();const w=f?.missingInterpolationHandler||this.options.missingInterpolationHandler,S=f?.interpolation?.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>lg(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?lg(this.escape(D)):lg(D)}].forEach(D=>{for(m=0;h=D.regex.exec(i);){const L=h[1].trim();if(p=E(L),p===void 0)if(typeof w=="function"){const Y=w(i,h,f);p=$e(Y)?Y:""}else if(f&&Object.prototype.hasOwnProperty.call(f,L))p="";else if(S){p=h[0];continue}else this.logger.warn(`missed to pass in variable ${L} for interpolating ${i}`),p="";else!$e(p)&&!this.useRawValueToEscape&&(p=cE(p));const Q=D.safeValue(p);if(i=i.replace(h[0],Q),S?(D.regex.lastIndex+=p.length,D.regex.lastIndex-=h[0].length):D.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),i}nest(i,u,c={}){let f,h,p;const m=(y,E)=>{const w=this.nestingOptionsSeparator;if(y.indexOf(w)<0)return y;const S=y.split(new RegExp(`${Qi(w)}[ ]*{`));let x=`{${S[1]}`;y=S[0],x=this.interpolate(x,p);const D=x.match(/'/g),L=x.match(/"/g);((D?.length??0)%2===0&&!L||(L?.length??0)%2!==0)&&(x=x.replace(/'/g,'"'));try{p=JSON.parse(x),E&&(p={...E,...p})}catch(Q){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,Q),`${y}${w}${x}`}return p.defaultValue&&p.defaultValue.indexOf(this.prefix)>-1&&delete p.defaultValue,y};for(;f=this.nestingRegexp.exec(i);){let y=[];p={...c},p=p.replace&&!$e(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;const E=/{.*}/.test(f[1])?f[1].lastIndexOf("}")+1:f[1].indexOf(this.formatSeparator);if(E!==-1&&(y=f[1].slice(E).split(this.formatSeparator).map(w=>w.trim()).filter(Boolean),f[1]=f[1].slice(0,E)),h=u(m.call(this,f[1].trim(),p),p),h&&f[0]===i&&!$e(h))return h;$e(h)||(h=cE(h)),h||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${i}`),h=""),y.length&&(h=y.reduce((w,S)=>this.format(w,S,c.lng,{...c,interpolationkey:f[1].trim()}),h.trim())),i=i.replace(f[0],h),this.regexp.lastIndex=0}return i}}const fN=r=>{let i=r.toLowerCase().trim();const u={};if(r.indexOf("(")>-1){const c=r.split("(");i=c[0].toLowerCase().trim();const f=c[1].substring(0,c[1].length-1);i==="currency"&&f.indexOf(":")<0?u.currency||(u.currency=f.trim()):i==="relativetime"&&f.indexOf(":")<0?u.range||(u.range=f.trim()):f.split(";").forEach(p=>{if(p){const[m,...y]=p.split(":"),E=y.join(":").trim().replace(/^'+|'+$/g,""),w=m.trim();u[w]||(u[w]=E),E==="false"&&(u[w]=!1),E==="true"&&(u[w]=!0),isNaN(E)||(u[w]=parseInt(E,10))}})}return{formatName:i,formatOptions:u}},EE=r=>{const i={};return(u,c,f)=>{let h=f;f&&f.interpolationkey&&f.formatParams&&f.formatParams[f.interpolationkey]&&f[f.interpolationkey]&&(h={...h,[f.interpolationkey]:void 0});const p=c+JSON.stringify(h);let m=i[p];return m||(m=r(Ys(c),f),i[p]=m),m(u)}},dN=r=>(i,u,c)=>r(Ys(u),c)(i);class hN{constructor(i={}){this.logger=Rl.create("formatter"),this.options=i,this.init(i)}init(i,u={interpolation:{}}){this.formatSeparator=u.interpolation.formatSeparator||",";const c=u.cacheInBuiltFormats?EE:dN;this.formats={number:c((f,h)=>{const p=new Intl.NumberFormat(f,{...h});return m=>p.format(m)}),currency:c((f,h)=>{const p=new Intl.NumberFormat(f,{...h,style:"currency"});return m=>p.format(m)}),datetime:c((f,h)=>{const p=new Intl.DateTimeFormat(f,{...h});return m=>p.format(m)}),relativetime:c((f,h)=>{const p=new Intl.RelativeTimeFormat(f,{...h});return m=>p.format(m,h.range||"day")}),list:c((f,h)=>{const p=new Intl.ListFormat(f,{...h});return m=>p.format(m)})}}add(i,u){this.formats[i.toLowerCase().trim()]=u}addCached(i,u){this.formats[i.toLowerCase().trim()]=EE(u)}format(i,u,c,f={}){const h=u.split(this.formatSeparator);if(h.length>1&&h[0].indexOf("(")>1&&h[0].indexOf(")")<0&&h.find(m=>m.indexOf(")")>-1)){const m=h.findIndex(y=>y.indexOf(")")>-1);h[0]=[h[0],...h.splice(1,m)].join(this.formatSeparator)}return h.reduce((m,y)=>{const{formatName:E,formatOptions:w}=fN(y);if(this.formats[E]){let S=m;try{const x=f?.formatParams?.[f.interpolationkey]||{},D=x.locale||x.lng||f.locale||f.lng||c;S=this.formats[E](m,D,{...w,...f,...x})}catch(x){this.logger.warn(x)}return S}else this.logger.warn(`there was no format function for ${E}`);return m},i)}}const pN=(r,i)=>{r.pending[i]!==void 0&&(delete r.pending[i],r.pendingCount--)};class mN extends wd{constructor(i,u,c,f={}){super(),this.backend=i,this.store=u,this.services=c,this.languageUtils=c.languageUtils,this.options=f,this.logger=Rl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,f.backend,f)}queueLoad(i,u,c,f){const h={},p={},m={},y={};return i.forEach(E=>{let w=!0;u.forEach(S=>{const x=`${E}|${S}`;!c.reload&&this.store.hasResourceBundle(E,S)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?p[x]===void 0&&(p[x]=!0):(this.state[x]=1,w=!1,p[x]===void 0&&(p[x]=!0),h[x]===void 0&&(h[x]=!0),y[S]===void 0&&(y[S]=!0)))}),w||(m[E]=!0)}),(Object.keys(h).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(h),pending:Object.keys(p),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(y)}}loaded(i,u,c){const f=i.split("|"),h=f[0],p=f[1];u&&this.emit("failedLoading",h,p,u),!u&&c&&this.store.addResourceBundle(h,p,c,void 0,void 0,{skipCopy:!0}),this.state[i]=u?-1:2,u&&c&&(this.state[i]=0);const m={};this.queue.forEach(y=>{eN(y.loaded,[h],p),pN(y,i),u&&y.errors.push(u),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(E=>{m[E]||(m[E]={});const w=y.loaded[E];w.length&&w.forEach(S=>{m[E][S]===void 0&&(m[E][S]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(y=>!y.done)}read(i,u,c,f=0,h=this.retryTimeout,p){if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:u,fcName:c,tried:f,wait:h,callback:p});return}this.readingCalls++;const m=(E,w)=>{if(this.readingCalls--,this.waitingReads.length>0){const S=this.waitingReads.shift();this.read(S.lng,S.ns,S.fcName,S.tried,S.wait,S.callback)}if(E&&w&&f<this.maxRetries){setTimeout(()=>{this.read.call(this,i,u,c,f+1,h*2,p)},h);return}p(E,w)},y=this.backend[c].bind(this.backend);if(y.length===2){try{const E=y(i,u);E&&typeof E.then=="function"?E.then(w=>m(null,w)).catch(m):m(null,E)}catch(E){m(E)}return}return y(i,u,m)}prepareLoading(i,u,c={},f){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();$e(i)&&(i=this.languageUtils.toResolveHierarchy(i)),$e(u)&&(u=[u]);const h=this.queueLoad(i,u,c,f);if(!h.toLoad.length)return h.pending.length||f(),null;h.toLoad.forEach(p=>{this.loadOne(p)})}load(i,u,c){this.prepareLoading(i,u,{},c)}reload(i,u,c){this.prepareLoading(i,u,{reload:!0},c)}loadOne(i,u=""){const c=i.split("|"),f=c[0],h=c[1];this.read(f,h,"read",void 0,void 0,(p,m)=>{p&&this.logger.warn(`${u}loading namespace ${h} for language ${f} failed`,p),!p&&m&&this.logger.log(`${u}loaded namespace ${h} for language ${f}`,m),this.loaded(i,p,m)})}saveMissing(i,u,c,f,h,p={},m=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(u)){this.logger.warn(`did not save key "${c}" as the namespace "${u}" 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={...p,isUpdate:h},E=this.backend.create.bind(this.backend);if(E.length<6)try{let w;E.length===5?w=E(i,u,c,f,y):w=E(i,u,c,f),w&&typeof w.then=="function"?w.then(S=>m(null,S)).catch(m):m(null,w)}catch(w){m(w)}else E(i,u,c,f,m,y)}!i||!i[0]||this.store.addResource(i[0],u,c,f)}}}const og=()=>({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:r=>{let i={};if(typeof r[1]=="object"&&(i=r[1]),$e(r[1])&&(i.defaultValue=r[1]),$e(r[2])&&(i.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const u=r[3]||r[2];Object.keys(u).forEach(c=>{i[c]=u[c]})}return i},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),xE=r=>($e(r.ns)&&(r.ns=[r.ns]),$e(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),$e(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),fd=()=>{},gN=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(u=>{typeof r[u]=="function"&&(r[u]=r[u].bind(r))})},xx="__i18next_supportNoticeShown",yN=()=>typeof globalThis<"u"&&!!globalThis[xx],bN=()=>{typeof globalThis<"u"&&(globalThis[xx]=!0)},vN=r=>!!(r?.modules?.backend?.name?.indexOf("Locize")>0||r?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||r?.options?.backend?.backends&&r.options.backend.backends.some(i=>i?.name?.indexOf("Locize")>0||i?.constructor?.name?.indexOf("Locize")>0)||r?.options?.backend?.projectId||r?.options?.backend?.backendOptions&&r.options.backend.backendOptions.some(i=>i?.projectId));class Bs extends wd{constructor(i={},u){if(super(),this.options=xE(i),this.services={},this.logger=Rl,this.modules={external:[]},gN(this),u&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,u),this;setTimeout(()=>{this.init(i,u)},0)}}init(i={},u){this.isInitializing=!0,typeof i=="function"&&(u=i,i={}),i.defaultNS==null&&i.ns&&($e(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=og();this.options={...c,...this.options,...xE(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!vN(this)&&!yN()&&(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 💙"),bN());const f=E=>E?typeof E=="function"?new E:E:null;if(!this.options.isClone){this.modules.logger?Rl.init(f(this.modules.logger),this.options):Rl.init(null,this.options);let E;this.modules.formatter?E=this.modules.formatter:E=hN;const w=new gE(this.options);this.store=new pE(this.options.resources,this.options);const S=this.services;S.logger=Rl,S.resourceStore=this.store,S.languageUtils=w,S.pluralResolver=new cN(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"),E&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(S.formatter=f(E),S.formatter.init&&S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new SE(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new mN(f(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",(D,...L)=>{this.emit(D,...L)}),this.modules.languageDetector&&(S.languageDetector=f(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=f(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new Ed(this.services,this.options),this.translator.on("*",(D,...L)=>{this.emit(D,...L)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,u||(u=fd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const E=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);E.length>0&&E[0]!=="dev"&&(this.options.lng=E[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(E=>{this[E]=(...w)=>this.store[E](...w)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(E=>{this[E]=(...w)=>(this.store[E](...w),this)});const m=Cs(),y=()=>{const E=(w,S)=>{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),m.resolve(S),u(w,S)};if(this.languages&&!this.isInitialized)return E(null,this.t.bind(this));this.changeLanguage(this.options.lng,E)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),m}loadResources(i,u=fd){let c=u;const f=$e(i)?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const h=[],p=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(E=>{E!=="cimode"&&h.indexOf(E)<0&&h.push(E)})};f?p(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>p(y)),this.options.preload?.forEach?.(m=>p(m)),this.services.backendConnector.load(h,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(m)})}else c(null)}reloadResources(i,u,c){const f=Cs();return typeof i=="function"&&(c=i,i=void 0),typeof u=="function"&&(c=u,u=void 0),i||(i=this.languages),u||(u=this.options.ns),c||(c=fd),this.services.backendConnector.reload(i,u,h=>{f.resolve(),c(h)}),f}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Sx.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let u=0;u<this.languages.length;u++){const c=this.languages[u];if(!(["cimode","dev"].indexOf(c)>-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,u){this.isLanguageChangingTo=i;const c=Cs();this.emit("languageChanging",i);const f=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},h=(m,y)=>{y?this.isLanguageChangingTo===i&&(f(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,c.resolve((...E)=>this.t(...E)),u&&u(m,(...E)=>this.t(...E))},p=m=>{!i&&!m&&this.services.languageDetector&&(m=[]);const y=$e(m)?m:m&&m[0],E=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes($e(m)?[m]:m);E&&(this.language||f(E),this.translator.language||this.translator.changeLanguage(E),this.services.languageDetector?.cacheUserLanguage?.(E)),this.loadResources(E,w=>{h(w,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),c}getFixedT(i,u,c){const f=(h,p,...m)=>{let y;typeof p!="object"?y=this.options.overloadTranslationOptionHandler([h,p].concat(m)):y={...p},y.lng=y.lng||f.lng,y.lngs=y.lngs||f.lngs,y.ns=y.ns||f.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||c||f.keyPrefix);const E=this.options.keySeparator||".";let w;return y.keyPrefix&&Array.isArray(h)?w=h.map(S=>(typeof S=="function"&&(S=vg(S,{...this.options,...p})),`${y.keyPrefix}${E}${S}`)):(typeof h=="function"&&(h=vg(h,{...this.options,...p})),w=y.keyPrefix?`${y.keyPrefix}${E}${h}`:h),this.t(w,y)};return $e(i)?f.lng=i:f.lngs=i,f.ns=u,f.keyPrefix=c,f}t(...i){return this.translator?.translate(...i)}exists(...i){return this.translator?.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,u={}){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=u.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,h=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const p=(m,y)=>{const E=this.services.backendConnector.state[`${m}|${y}`];return E===-1||E===0||E===2};if(u.precheck){const m=u.precheck(this,p);if(m!==void 0)return m}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(c,i)&&(!f||p(h,i)))}loadNamespaces(i,u){const c=Cs();return this.options.ns?($e(i)&&(i=[i]),i.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}),this.loadResources(f=>{c.resolve(),u&&u(f)}),c):(u&&u(),Promise.resolve())}loadLanguages(i,u){const c=Cs();$e(i)&&(i=[i]);const f=this.options.preload||[],h=i.filter(p=>f.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return h.length?(this.options.preload=f.concat(h),this.loadResources(p=>{c.resolve(),u&&u(p)}),c):(u&&u(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!i)return"rtl";try{const f=new Intl.Locale(i);if(f&&f.getTextInfo){const h=f.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const u=["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 gE(og());return i.toLowerCase().indexOf("-latn")>1?"ltr":u.indexOf(c.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},u){const c=new Bs(i,u);return c.createInstance=Bs.createInstance,c}cloneInstance(i={},u=fd){const c=i.forkResourceStore;c&&delete i.forkResourceStore;const f={...this.options,...i,isClone:!0},h=new Bs(f);if((i.debug!==void 0||i.prefix!==void 0)&&(h.logger=h.logger.clone(i)),["store","services","language"].forEach(m=>{h[m]=this[m]}),h.services={...this.services},h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},c){const m=Object.keys(this.store.data).reduce((y,E)=>(y[E]={...this.store.data[E]},y[E]=Object.keys(y[E]).reduce((w,S)=>(w[S]={...y[E][S]},w),y[E]),y),{});h.store=new pE(m,f),h.services.resourceStore=h.store}if(i.interpolation){const y={...og().interpolation,...this.options.interpolation,...i.interpolation},E={...f,interpolation:y};h.services.interpolator=new SE(E)}return h.translator=new Ed(h.services,f),h.translator.on("*",(m,...y)=>{h.emit(m,...y)}),h.init(f,u),h.translator.options=f,h.translator.backendConnector.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ln=Bs.createInstance();Ln.createInstance;Ln.dir;Ln.init;Ln.loadResources;Ln.reloadResources;Ln.use;Ln.changeLanguage;Ln.getFixedT;Ln.t;Ln.exists;Ln.setDefaultNamespace;Ln.hasLoadedNamespace;Ln.loadNamespaces;Ln.loadLanguages;var H=Qs();const js=JT(H),SN=ZT({__proto__:null,default:js},[H]),EN=(r,i,u,c)=>{const f=[u,{code:i,...c||{}}];if(r?.services?.logger?.forward)return r.services.logger.forward(f,"warn","react-i18next::",!0);Ji(f[0])&&(f[0]=`react-i18next:: ${f[0]}`),r?.services?.logger?.warn?r.services.logger.warn(...f):console?.warn&&console.warn(...f)},wE={},wx=(r,i,u,c)=>{Ji(u)&&wE[u]||(Ji(u)&&(wE[u]=new Date),EN(r,i,u,c))},Rx=(r,i)=>()=>{if(r.isInitialized)i();else{const u=()=>{setTimeout(()=>{r.off("initialized",u)},0),i()};r.on("initialized",u)}},Sg=(r,i,u)=>{r.loadNamespaces(i,Rx(r,u))},RE=(r,i,u,c)=>{if(Ji(u)&&(u=[u]),r.options.preload&&r.options.preload.indexOf(i)>-1)return Sg(r,u,c);u.forEach(f=>{r.options.ns.indexOf(f)<0&&r.options.ns.push(f)}),r.loadLanguages(i,Rx(r,c))},xN=(r,i,u={})=>!i.languages||!i.languages.length?(wx(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(r,{lng:u.lng,precheck:(c,f)=>{if(u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!f(c.isLanguageChangingTo,r))return!1}}),Ji=r=>typeof r=="string",wN=r=>typeof r=="object"&&r!==null,RN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,DN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},TN=r=>DN[r],NN=r=>r.replace(RN,TN);let Eg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:NN,transDefaultProps:void 0};const ON=(r={})=>{Eg={...Eg,...r}},CN=()=>Eg;let Dx;const AN=r=>{Dx=r},_N=()=>Dx,MN={type:"3rdParty",init(r){ON(r.options.react),AN(r)}},UN=H.createContext();class zN{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(u=>{this.usedNamespaces[u]||(this.usedNamespaces[u]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var ig={exports:{}},rg={},DE;function LN(){if(DE)return rg;DE=1;return(function(){function r(D,L){return D===L&&(D!==0||1/D===1/L)||D!==D&&L!==L}function i(D,L){w||f.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 Q=L();if(!S){var Y=L();h(Q,Y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),S=!0)}Y=p({inst:{value:Q,getSnapshot:L}});var J=Y[0].inst,W=Y[1];return y(function(){J.value=Q,J.getSnapshot=L,u(J)&&W({inst:J})},[D,Q,L]),m(function(){return u(J)&&W({inst:J}),D(function(){u(J)&&W({inst:J})})},[D]),E(Q),Q}function u(D){var L=D.getSnapshot;D=D.value;try{var Q=L();return!h(D,Q)}catch{return!0}}function c(D,L){return L()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=Qs(),h=typeof Object.is=="function"?Object.is:r,p=f.useState,m=f.useEffect,y=f.useLayoutEffect,E=f.useDebugValue,w=!1,S=!1,x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;rg.useSyncExternalStore=f.useSyncExternalStore!==void 0?f.useSyncExternalStore:x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),rg}var TE;function jN(){return TE||(TE=1,ig.exports=LN()),ig.exports}var HN=jN();const kN=(r,i)=>Ji(i)?i:wN(i)&&Ji(i.defaultValue)?i.defaultValue:Array.isArray(r)?r[r.length-1]:r,VN={t:kN,ready:!1},BN=()=>()=>{},Ut=(r,i={})=>{const{i18n:u}=i,{i18n:c,defaultNS:f}=H.useContext(UN)||{},h=u||c||_N();h&&!h.reportNamespaces&&(h.reportNamespaces=new zN),h||wx(h,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const p=H.useMemo(()=>({...CN(),...h?.options?.react,...i}),[h,i]),{useSuspense:m,keyPrefix:y}=p,E=f||h?.options?.defaultNS,w=Ji(E)?[E]:E||["translation"],S=H.useMemo(()=>w,w);h?.reportNamespaces?.addUsedNamespaces?.(S);const x=H.useRef(0),D=H.useCallback(ae=>{if(!h)return BN;const{bindI18n:X,bindI18nStore:De}=p,I=()=>{x.current+=1,ae()};return X&&h.on(X,I),De&&h.store.on(De,I),()=>{X&&X.split(" ").forEach(ce=>h.off(ce,I)),De&&De.split(" ").forEach(ce=>h.store.off(ce,I))}},[h,p]),L=H.useRef(),Q=H.useCallback(()=>{if(!h)return VN;const ae=!!(h.isInitialized||h.initializedStoreOnce)&&S.every(Ce=>xN(Ce,h,p)),X=i.lng||h.language,De=x.current,I=L.current;if(I&&I.ready===ae&&I.lng===X&&I.keyPrefix===y&&I.revision===De)return I;const xe={t:h.getFixedT(X,p.nsMode==="fallback"?S:S[0],y),ready:ae,lng:X,keyPrefix:y,revision:De};return L.current=xe,xe},[h,S,y,p,i.lng]),[Y,J]=H.useState(0),{t:W,ready:re}=HN.useSyncExternalStore(D,Q,Q);H.useEffect(()=>{if(h&&!re&&!m){const ae=()=>J(X=>X+1);i.lng?RE(h,i.lng,S,ae):Sg(h,S,ae)}},[h,i.lng,S,re,m,Y]);const Ee=h||{},ye=H.useRef(null),Ve=H.useRef(),Le=ae=>{const X=Object.getOwnPropertyDescriptors(ae);X.__original&&delete X.__original;const De=Object.create(Object.getPrototypeOf(ae),X);if(!Object.prototype.hasOwnProperty.call(De,"__original"))try{Object.defineProperty(De,"__original",{value:ae,writable:!1,enumerable:!1,configurable:!1})}catch{}return De},M=H.useMemo(()=>{const ae=Ee,X=ae?.language;let De=ae;ae&&(ye.current&&ye.current.__original===ae?Ve.current!==X?(De=Le(ae),ye.current=De,Ve.current=X):De=ye.current:(De=Le(ae),ye.current=De,Ve.current=X));const I=[W,De,re];return I.t=W,I.i18n=De,I.ready=re,I},[W,Ee,re,Ee.resolvedLanguage,Ee.language,Ee.languages]);if(h&&m&&!re)throw new Promise(ae=>{const X=()=>ae();i.lng?RE(h,i.lng,S,X):Sg(h,S,X)});return M},{slice:$N,forEach:YN}=[];function qN(r){return YN.call($N.call(arguments,1),i=>{if(i)for(const u in i)r[u]===void 0&&(r[u]=i[u])}),r}function GN(r){return typeof r!="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(u=>u.test(r))}const NE=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,XN=function(r,i){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},f=encodeURIComponent(i);let h=`${r}=${f}`;if(c.maxAge>0){const p=c.maxAge-0;if(Number.isNaN(p))throw new Error("maxAge should be a Number");h+=`; Max-Age=${Math.floor(p)}`}if(c.domain){if(!NE.test(c.domain))throw new TypeError("option domain is invalid");h+=`; Domain=${c.domain}`}if(c.path){if(!NE.test(c.path))throw new TypeError("option path is invalid");h+=`; Path=${c.path}`}if(c.expires){if(typeof c.expires.toUTCString!="function")throw new TypeError("option expires is invalid");h+=`; Expires=${c.expires.toUTCString()}`}if(c.httpOnly&&(h+="; HttpOnly"),c.secure&&(h+="; Secure"),c.sameSite)switch(typeof c.sameSite=="string"?c.sameSite.toLowerCase():c.sameSite){case!0:h+="; SameSite=Strict";break;case"lax":h+="; SameSite=Lax";break;case"strict":h+="; SameSite=Strict";break;case"none":h+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c.partitioned&&(h+="; Partitioned"),h},OE={create(r,i,u,c){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};u&&(f.expires=new Date,f.expires.setTime(f.expires.getTime()+u*60*1e3)),c&&(f.domain=c),document.cookie=XN(r,i,f)},read(r){const i=`${r}=`,u=document.cookie.split(";");for(let c=0;c<u.length;c++){let f=u[c];for(;f.charAt(0)===" ";)f=f.substring(1,f.length);if(f.indexOf(i)===0)return f.substring(i.length,f.length)}return null},remove(r,i){this.create(r,"",-1,i)}};var QN={name:"cookie",lookup(r){let{lookupCookie:i}=r;if(i&&typeof document<"u")return OE.read(i)||void 0},cacheUserLanguage(r,i){let{lookupCookie:u,cookieMinutes:c,cookieDomain:f,cookieOptions:h}=i;u&&typeof document<"u"&&OE.create(u,r,c,f,h)}},ZN={name:"querystring",lookup(r){let{lookupQuerystring:i}=r,u;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 h=c.substring(1).split("&");for(let p=0;p<h.length;p++){const m=h[p].indexOf("=");m>0&&h[p].substring(0,m)===i&&(u=h[p].substring(m+1))}}return u}},JN={name:"hash",lookup(r){let{lookupHash:i,lookupFromHashIndex:u}=r,c;if(typeof window<"u"){const{hash:f}=window.location;if(f&&f.length>2){const h=f.substring(1);if(i){const p=h.split("&");for(let m=0;m<p.length;m++){const y=p[m].indexOf("=");y>0&&p[m].substring(0,y)===i&&(c=p[m].substring(y+1))}}if(c)return c;if(!c&&u>-1){const p=f.match(/\/([a-zA-Z-]*)/g);return Array.isArray(p)?p[typeof u=="number"?u:0]?.replace("/",""):void 0}}}return c}};let Fr=null;const CE=()=>{if(Fr!==null)return Fr;try{if(Fr=typeof window<"u"&&window.localStorage!==null,!Fr)return!1;const r="i18next.translate.boo";window.localStorage.setItem(r,"foo"),window.localStorage.removeItem(r)}catch{Fr=!1}return Fr};var FN={name:"localStorage",lookup(r){let{lookupLocalStorage:i}=r;if(i&&CE())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(r,i){let{lookupLocalStorage:u}=i;u&&CE()&&window.localStorage.setItem(u,r)}};let Pr=null;const AE=()=>{if(Pr!==null)return Pr;try{if(Pr=typeof window<"u"&&window.sessionStorage!==null,!Pr)return!1;const r="i18next.translate.boo";window.sessionStorage.setItem(r,"foo"),window.sessionStorage.removeItem(r)}catch{Pr=!1}return Pr};var PN={name:"sessionStorage",lookup(r){let{lookupSessionStorage:i}=r;if(i&&AE())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(r,i){let{lookupSessionStorage:u}=i;u&&AE()&&window.sessionStorage.setItem(u,r)}},KN={name:"navigator",lookup(r){const i=[];if(typeof navigator<"u"){const{languages:u,userLanguage:c,language:f}=navigator;if(u)for(let h=0;h<u.length;h++)i.push(u[h]);c&&i.push(c),f&&i.push(f)}return i.length>0?i:void 0}},IN={name:"htmlTag",lookup(r){let{htmlTag:i}=r,u;const c=i||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(u=c.getAttribute("lang")),u}},WN={name:"path",lookup(r){let{lookupFromPathIndex:i}=r;if(typeof window>"u")return;const u=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(u)?u[typeof i=="number"?i:0]?.replace("/",""):void 0}},eO={name:"subdomain",lookup(r){let{lookupFromSubdomainIndex:i}=r;const u=typeof i=="number"?i+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[u]}};let Tx=!1;try{document.cookie,Tx=!0}catch{}const Nx=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Tx||Nx.splice(1,1);const tO=()=>({order:Nx,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:r=>r});class Ox{constructor(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(i,u)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i,this.options=qN(u,this.options||{},tO()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=f=>f.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=c,this.addDetector(QN),this.addDetector(ZN),this.addDetector(FN),this.addDetector(PN),this.addDetector(KN),this.addDetector(IN),this.addDetector(WN),this.addDetector(eO),this.addDetector(JN)}addDetector(i){return this.detectors[i.name]=i,this}detect(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,u=[];return i.forEach(c=>{if(this.detectors[c]){let f=this.detectors[c].lookup(this.options);f&&typeof f=="string"&&(f=[f]),f&&(u=u.concat(f))}}),u=u.filter(c=>c!=null&&!GN(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?u:u.length>0?u[0]:null}cacheUserLanguage(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;u&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||u.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(i,this.options)}))}}Ox.type="languageDetector";const nO={"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.explore":"Explore","studio.sidebar.modeling":"Modeling","studio.sidebar.modeling.new":"New","studio.sidebar.modeling.history":"History","studio.sidebar.code":"Code","studio.sidebar.docs":"Docs","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.modeling_history.title":"Modeling History","page.modeling_history.description":"View past modeling sessions, their status and results.","page.code_browser.title":"Code Browser","page.code_browser.description":"Browse indexed code entities: files, classes, functions, and modules.","page.doc_browser.title":"Doc Browser","page.doc_browser.description":"Browse indexed documentation entities.","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","modeling.new.title":"New Modeling Session","modeling.new.upload.title":"Upload","modeling.new.upload.description":"Upload code archives or document files. Max 50MB total.","modeling.new.upload.dropzone":"Drop files here or click to browse","modeling.new.upload.submit":"Submit","modeling.new.github.title":"GitHub URL","modeling.new.github.description":"Enter a GitHub repository URL to analyze.","modeling.new.github.placeholder":"https://github.com/owner/repo","modeling.new.github.submit":"Submit","modeling.new.docs.title":"Docs URL","modeling.new.docs.description":"Enter documentation URLs to index.","modeling.new.client.title":"Client","modeling.new.client.description":"Connect via local daemon for real-time analysis.","explore.title":"Explore","explore.empty":"No knowledge graphs yet. Start by creating a new modeling session.","explore.chat.title":"Chat","explore.chat.placeholder":"Coming in 0.4.13","modeling.new.coming_soon":"Coming soon","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home"},aO={"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.explore":"探索","studio.sidebar.modeling":"建模","studio.sidebar.modeling.new":"新建","studio.sidebar.modeling.history":"历史","studio.sidebar.code":"代码","studio.sidebar.docs":"文档","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.modeling_history.title":"建模历史","page.modeling_history.description":"查看过往建模会话的状态与结果。","page.code_browser.title":"代码浏览","page.code_browser.description":"浏览已索引的代码实体:文件、类、函数和模块。","page.doc_browser.title":"文档浏览","page.doc_browser.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","modeling.new.title":"新建建模会话","modeling.new.upload.title":"上传文件","modeling.new.upload.description":"上传代码压缩包或文档文件,总计不超过 50MB。","modeling.new.upload.dropzone":"拖拽文件到此处或点击浏览","modeling.new.upload.submit":"提交","modeling.new.github.title":"GitHub URL","modeling.new.github.description":"输入 GitHub 仓库地址进行分析。","modeling.new.github.placeholder":"https://github.com/owner/repo","modeling.new.github.submit":"提交","modeling.new.docs.title":"文档 URL","modeling.new.docs.description":"输入文档地址进行索引。","modeling.new.client.title":"客户端","modeling.new.client.description":"通过本地 Daemon 连接进行实时分析。","explore.title":"探索","explore.empty":"暂无知识图谱。请先创建新的建模会话。","explore.chat.title":"对话","explore.chat.placeholder":"计划在 0.4.13 版本实现","modeling.new.coming_soon":"即将推出","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页"};Ln.use(Ox).use(MN).init({resources:{en:{translation:nO},zh:{translation:aO}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var ug={exports:{}},As={},sg={exports:{}},cg={},_E;function lO(){return _E||(_E=1,(function(r){(function(){function i(){if(ye=!1,ae){var Z=r.unstable_now();I=Z;var oe=!0;try{e:{re=!1,Ee&&(Ee=!1,Le(X),X=-1),W=!0;var fe=J;try{t:{for(p(Z),Y=c(D);Y!==null&&!(Y.expirationTime>Z&&y());){var de=Y.callback;if(typeof de=="function"){Y.callback=null,J=Y.priorityLevel;var Ye=de(Y.expirationTime<=Z);if(Z=r.unstable_now(),typeof Ye=="function"){Y.callback=Ye,p(Z),oe=!0;break t}Y===c(D)&&f(D),p(Z)}else f(D);Y=c(D)}if(Y!==null)oe=!0;else{var q=c(L);q!==null&&E(m,q.startTime-Z),oe=!1}}break e}finally{Y=null,J=fe,W=!1}oe=void 0}}finally{oe?ce():ae=!1}}}function u(Z,oe){var fe=Z.length;Z.push(oe);e:for(;0<fe;){var de=fe-1>>>1,Ye=Z[de];if(0<h(Ye,oe))Z[de]=oe,Z[fe]=Ye,fe=de;else break e}}function c(Z){return Z.length===0?null:Z[0]}function f(Z){if(Z.length===0)return null;var oe=Z[0],fe=Z.pop();if(fe!==oe){Z[0]=fe;e:for(var de=0,Ye=Z.length,q=Ye>>>1;de<q;){var he=2*(de+1)-1,Me=Z[he],we=he+1,pt=Z[we];if(0>h(Me,fe))we<Ye&&0>h(pt,Me)?(Z[de]=pt,Z[we]=fe,de=we):(Z[de]=Me,Z[he]=fe,de=he);else if(we<Ye&&0>h(pt,fe))Z[de]=pt,Z[we]=fe,de=we;else break e}}return oe}function h(Z,oe){var fe=Z.sortIndex-oe.sortIndex;return fe!==0?fe:Z.id-oe.id}function p(Z){for(var oe=c(L);oe!==null;){if(oe.callback===null)f(L);else if(oe.startTime<=Z)f(L),oe.sortIndex=oe.expirationTime,u(D,oe);else break;oe=c(L)}}function m(Z){if(Ee=!1,p(Z),!re)if(c(D)!==null)re=!0,ae||(ae=!0,ce());else{var oe=c(L);oe!==null&&E(m,oe.startTime-Z)}}function y(){return ye?!0:!(r.unstable_now()-I<De)}function E(Z,oe){X=Ve(function(){Z(r.unstable_now())},oe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;r.unstable_now=function(){return w.now()}}else{var S=Date,x=S.now();r.unstable_now=function(){return S.now()-x}}var D=[],L=[],Q=1,Y=null,J=3,W=!1,re=!1,Ee=!1,ye=!1,Ve=typeof setTimeout=="function"?setTimeout:null,Le=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null,ae=!1,X=-1,De=5,I=-1;if(typeof M=="function")var ce=function(){M(i)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,Ce=xe.port2;xe.port1.onmessage=i,ce=function(){Ce.postMessage(null)}}else ce=function(){Ve(i,0)};r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(Z){Z.callback=null},r.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):De=0<Z?Math.floor(1e3/Z):5},r.unstable_getCurrentPriorityLevel=function(){return J},r.unstable_next=function(Z){switch(J){case 1:case 2:case 3:var oe=3;break;default:oe=J}var fe=J;J=oe;try{return Z()}finally{J=fe}},r.unstable_requestPaint=function(){ye=!0},r.unstable_runWithPriority=function(Z,oe){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var fe=J;J=Z;try{return oe()}finally{J=fe}},r.unstable_scheduleCallback=function(Z,oe,fe){var de=r.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?de+fe:de):fe=de,Z){case 1:var Ye=-1;break;case 2:Ye=250;break;case 5:Ye=1073741823;break;case 4:Ye=1e4;break;default:Ye=5e3}return Ye=fe+Ye,Z={id:Q++,callback:oe,priorityLevel:Z,startTime:fe,expirationTime:Ye,sortIndex:-1},fe>de?(Z.sortIndex=fe,u(L,Z),c(D)===null&&Z===c(L)&&(Ee?(Le(X),X=-1):Ee=!0,E(m,fe-de))):(Z.sortIndex=Ye,u(D,Z),re||W||(re=!0,ae||(ae=!0,ce()))),Z},r.unstable_shouldYield=y,r.unstable_wrapCallback=function(Z){var oe=J;return function(){var fe=J;J=oe;try{return Z.apply(this,arguments)}finally{J=fe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(cg)),cg}var ME;function oO(){return ME||(ME=1,sg.exports=lO()),sg.exports}var fg={exports:{}},Sn={},UE;function iO(){if(UE)return Sn;UE=1;return(function(){function r(){}function i(S){return""+S}function u(S,x,D){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(L);var Q=!1}catch{Q=!0}return Q&&(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&&L[Symbol.toStringTag]||L.constructor.name||"Object"),i(L)),{$$typeof:E,key:L==null?null:""+L,children:S,containerInfo:x,implementation:D}}function c(S,x){if(S==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}function f(S){return S===null?"`null`":S===void 0?"`undefined`":S===""?"an empty string":'something with type "'+typeof S+'"'}function h(S){return S===null?"`null`":S===void 0?"`undefined`":S===""?"an empty string":typeof S=="string"?JSON.stringify(S):typeof S=="number"?"`"+S+"`":'something with type "'+typeof S+'"'}function p(){var S=w.H;return S===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.`),S}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=Qs(),y={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},E=Symbol.for("react.portal"),w=m.__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"),Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Sn.createPortal=function(S,x){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return u(S,x,null,D)},Sn.flushSync=function(S){var x=w.T,D=y.p;try{if(w.T=null,y.p=2,S)return S()}finally{w.T=x,y.p=D,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.")}},Sn.preconnect=function(S,x){typeof S=="string"&&S?x!=null&&typeof x!="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.",h(x)):x!=null&&typeof x.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.",f(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(S)),typeof S=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,y.d.C(S,x))},Sn.prefetchDNS=function(S){if(typeof S!="string"||!S)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(S));else if(1<arguments.length){var x=arguments[1];typeof x=="object"&&x.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`.",h(x)):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`.",h(x))}typeof S=="string"&&y.d.D(S)},Sn.preinit=function(S,x){if(typeof S=="string"&&S?x==null||typeof x!="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.",h(x)):x.as!=="style"&&x.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".',h(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(S)),typeof S=="string"&&x&&typeof x.as=="string"){var D=x.as,L=c(D,x.crossOrigin),Q=typeof x.integrity=="string"?x.integrity:void 0,Y=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;D==="style"?y.d.S(S,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:L,integrity:Q,fetchPriority:Y}):D==="script"&&y.d.X(S,{crossOrigin:L,integrity:Q,fetchPriority:Y,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Sn.preinitModule=function(S,x){var D="";typeof S=="string"&&S||(D+=" The `href` argument encountered was "+f(S)+"."),x!==void 0&&typeof x!="object"?D+=" The `options` argument encountered was "+f(x)+".":x&&"as"in x&&x.as!=="script"&&(D+=" The `as` option encountered was "+h(x.as)+"."),D?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",D):(D=x&&typeof x.as=="string"?x.as:"script",D)==="script"||(D=h(D),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)',D,S)),typeof S=="string"&&(typeof x=="object"&&x!==null?(x.as==null||x.as==="script")&&(D=c(x.as,x.crossOrigin),y.d.M(S,{crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})):x==null&&y.d.M(S))},Sn.preload=function(S,x){var D="";if(typeof S=="string"&&S||(D+=" The `href` argument encountered was "+f(S)+"."),x==null||typeof x!="object"?D+=" The `options` argument encountered was "+f(x)+".":typeof x.as=="string"&&x.as||(D+=" The `as` option encountered was "+f(x.as)+"."),D&&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',D),typeof S=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){D=x.as;var L=c(D,x.crossOrigin);y.d.L(S,D,{crossOrigin:L,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Sn.preloadModule=function(S,x){var D="";typeof S=="string"&&S||(D+=" The `href` argument encountered was "+f(S)+"."),x!==void 0&&typeof x!="object"?D+=" The `options` argument encountered was "+f(x)+".":x&&"as"in x&&typeof x.as!="string"&&(D+=" The `as` option encountered was "+f(x.as)+"."),D&&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',D),typeof S=="string"&&(x?(D=c(x.as,x.crossOrigin),y.d.m(S,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0})):y.d.m(S))},Sn.requestFormReset=function(S){y.d.r(S)},Sn.unstable_batchedUpdates=function(S,x){return S(x)},Sn.useFormState=function(S,x,D){return p().useFormState(S,x,D)},Sn.useFormStatus=function(){return p().useHostTransitionStatus()},Sn.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Sn}var zE;function rO(){return zE||(zE=1,fg.exports=iO()),fg.exports}var LE;function uO(){if(LE)return As;LE=1;return(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,n,a){if(n>=t.length)return a;var l=t[n],o=Pt(e)?e.slice():Fe({},e);return o[l]=i(e[l],t,n+1,a),o}function u(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,n,0)}}function c(e,t,n,a){var l=t[a],o=Pt(e)?e.slice():Fe({},e);return a+1===t.length?(o[n[a]]=o[l],Pt(o)?o.splice(l,1):delete o[l]):o[l]=c(e[l],t,n,a+1),o}function f(e,t,n){var a=t[n],l=Pt(e)?e.slice():Fe({},e);return n+1===t.length?(Pt(l)?l.splice(a,1):delete l[a],l):(l[a]=f(e[a],t,n+1),l)}function h(){return!1}function p(){return null}function m(){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 E(){}function w(){}function S(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function x(e,t,n,a){return new zw(e,t,n,a)}function D(e,t){e.context===Ho&&(Sp(e.current,2,t,e,null,null),ir())}function L(e,t){if(ma!==null){var n=t.staleFamilies;t=t.updatedFamilies,Ru(),dy(e.current,t,n),ir()}}function Q(e){ma=e}function Y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function J(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function W(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 re(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 Ee(e){if(J(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ye(e){var t=e.alternate;if(!t){if(t=J(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Ee(l),e;if(o===a)return Ee(l),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==a.return)n=l,a=o;else{for(var s=!1,d=l.child;d;){if(d===n){s=!0,n=l,a=o;break}if(d===a){s=!0,a=l,n=o;break}d=d.sibling}if(!s){for(d=o.child;d;){if(d===n){s=!0,n=o,a=l;break}if(d===a){s=!0,a=o,n=l;break}d=d.sibling}if(!s)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(n.alternate!==a)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(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function Ve(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ve(e),t!==null)return t;e=e.sibling}return null}function Le(e){return e===null||typeof e!="object"?null:(e=v0&&e[v0]||e["@@iterator"],typeof e=="function"?e:null)}function M(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hr:return"Fragment";case Np:return"Profiler";case af:return"StrictMode";case Cp:return"Suspense";case Ap:return"SuspenseList";case _p: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 dr:return"Portal";case pl:return e.displayName||"Context";case Op:return(e._context.displayName||"Context")+".Consumer";case zu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lf:return t=e.displayName||null,t!==null?t:M(e.type)||"Memo";case In:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}function ae(e){return typeof e.tag=="number"?X(e):typeof e.name=="string"?e.name:null}function X(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 M(t);case 8:return t===af?"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 n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return X(e.return)}return null}function De(e){return{current:e}}function I(e,t){0>Yl?console.error("Unexpected pop."):(t!==Up[Yl]&&console.error("Unexpected Fiber popped."),e.current=Mp[Yl],Mp[Yl]=null,Up[Yl]=null,Yl--)}function ce(e,t,n){Yl++,Mp[Yl]=e.current,Up[Yl]=n,e.current=t}function xe(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 Ce(e,t){ce(_o,t,e),ce(Lu,e,e),ce(Ao,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?qv(t):ao;break;default:if(n=t.tagName,t=t.namespaceURI)t=qv(t),t=Gv(t,n);else switch(n){case"svg":t=Zr;break;case"math":t=ad;break;default:t=ao}}n=n.toLowerCase(),n=Is(null,n),n={context:t,ancestorInfo:n},I(Ao,e),ce(Ao,n,e)}function Z(e){I(Ao,e),I(Lu,e),I(_o,e)}function oe(){return xe(Ao.current)}function fe(e){e.memoizedState!==null&&ce(of,e,e);var t=xe(Ao.current),n=e.type,a=Gv(t.context,n);n=Is(t.ancestorInfo,n),a={context:a,ancestorInfo:n},t!==a&&(ce(Lu,e,e),ce(Ao,a,e))}function de(e){Lu.current===e&&(I(Ao,e),I(Lu,e)),of.current===e&&(I(of,e),Ts._currentValue=Xi)}function Ye(){}function q(){if(ju===0){S0=console.log,E0=console.info,x0=console.warn,w0=console.error,R0=console.group,D0=console.groupCollapsed,T0=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ju++}function he(){if(ju--,ju===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},e,{value:S0}),info:Fe({},e,{value:E0}),warn:Fe({},e,{value:x0}),error:Fe({},e,{value:w0}),group:Fe({},e,{value:R0}),groupCollapsed:Fe({},e,{value:D0}),groupEnd:Fe({},e,{value:T0})})}0>ju&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Me(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 we(e){if(zp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zp=t&&t[1]||"",N0=-1<n.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+zp+e+N0}function pt(e,t){if(!e||Lp)return"";var n=jp.get(e);if(n!==void 0)return n;Lp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var a=null;a=$.H,$.H=null,q();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(ne){var k=ne}Reflect.construct(e,[],N)}else{try{N.call()}catch(ne){k=ne}e.call(N.prototype)}}else{try{throw Error()}catch(ne){k=ne}(N=e())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(ne){if(ne&&k&&typeof ne.stack=="string")return[ne.stack,k.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],g=s[1];if(d&&g){var b=d.split(`
|
|
28
|
+
`),A=g.split(`
|
|
29
|
+
`);for(s=o=0;o<b.length&&!b[o].includes("DetermineComponentFrameRoot");)o++;for(;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;if(o===b.length||s===A.length)for(o=b.length-1,s=A.length-1;1<=o&&0<=s&&b[o]!==A[s];)s--;for(;1<=o&&0<=s;o--,s--)if(b[o]!==A[s]){if(o!==1||s!==1)do if(o--,s--,0>s||b[o]!==A[s]){var _=`
|
|
30
|
+
`+b[o].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&jp.set(e,_),_}while(1<=o&&0<=s);break}}}finally{Lp=!1,$.H=a,he(),Error.prepareStackTrace=n}return b=(b=e?e.displayName||e.name:"")?we(b):"",typeof e=="function"&&jp.set(e,b),b}function Ft(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we("Lazy");case 13:return e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return pt(e.type,!1);case 11:return pt(e.type.render,!1);case 1:return pt(e.type,!0);case 31:return we("Activity");default:return""}}function it(e){try{var t="",n=null;do{t+=Ft(e,n);var a=e._debugInfo;if(a)for(var l=a.length-1;0<=l;l--){var o=a[l];if(typeof o.name=="string"){var s=t;e:{var d=o.name,g=o.env,b=o.debugLocation;if(b!=null){var A=Me(b),_=A.lastIndexOf(`
|
|
31
|
+
`),N=_===-1?A:A.slice(_+1);if(N.indexOf(d)!==-1){var k=`
|
|
32
|
+
`+N;break e}}k=we(d+(g?" ["+g+"]":""))}t=s+k}}n=e,e=e.return}while(e);return t}catch(ne){return`
|
|
33
|
+
Error generating stack: `+ne.message+`
|
|
34
|
+
`+ne.stack}}function pn(e){return(e=e?e.displayName||e.name:"")?we(e):""}function Wt(){if(Wn===null)return null;var e=Wn._debugOwner;return e!=null?ae(e):null}function Oa(){if(Wn===null)return"";var e=Wn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=we(e.type);break;case 13:t+=we("Suspense");break;case 19:t+=we("SuspenseList");break;case 31:t+=we("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=pn(e.type));break;case 11:e._debugOwner||t!==""||(t+=pn(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var a=n._debugStack;if(e&&a){var l=Me(a);l!==""&&(t+=`
|
|
35
|
+
`+l)}}else if(e.debugStack!=null){var o=e.debugStack;(e=e.owner)&&o&&(t+=`
|
|
36
|
+
`+Me(o))}else break;var s=t}catch(d){s=`
|
|
37
|
+
Error generating stack: `+d.message+`
|
|
38
|
+
`+d.stack}return s}function se(e,t,n,a,l,o,s){var d=Wn;co(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,a,l,o,s)):t(n,a,l,o,s)}finally{co(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function co(e){$.getCurrentStack=e===null?null:Oa,ml=!1,Wn=e}function Nt(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function jn(e){try{return Ca(e),!1}catch{return!0}}function Ca(e){return""+e}function rt(e,t){if(jn(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,Nt(e)),Ca(e)}function Ot(e,t){if(jn(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,Nt(e)),Ca(e)}function fo(e){if(jn(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.",Nt(e)),Ca(e)}function eu(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{mr=t.inject(e),bn=t}catch(n){console.error("React instrumentation encountered an error: %o.",n)}return!!t.checkDCE}function pe(e){if(typeof sD=="function"&&cD(e),bn&&typeof bn.setStrictMode=="function")try{bn.setStrictMode(mr,e)}catch(t){gl||(gl=!0,console.error("React instrumentation encountered an error: %o",t))}}function ho(e){return e>>>=0,e===0?32:31-(fD(e)/dD|0)|0}function ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Nl(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,o=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~o,a!==0?l=ia(a):(s&=d,s!==0?l=ia(s):n||(n=d&~e,n!==0&&(l=ia(n))))):(d=a&~o,d!==0?l=ia(d):s!==0?l=ia(s):n||(n=a&~e,n!==0&&(l=ia(n)))),l===0?0:t!==0&&t!==l&&(t&o)===0&&(o=l&-l,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:l}function Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ra(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 Aa(){var e=sf;return sf<<=1,(sf&62914560)===0&&(sf=4194304),e}function po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Hn(e,t,n,a,l,o){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var d=e.entanglements,g=e.expirationTimes,b=e.hiddenUpdates;for(n=s&~n;0<n;){var A=31-Nn(n),_=1<<A;d[A]=0,g[A]=-1;var N=b[A];if(N!==null)for(b[A]=null,A=0;A<N.length;A++){var k=N[A];k!==null&&(k.lane&=-536870913)}n&=~_}a!==0&&wn(e,a,0),o!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=o&~(s&~t))}function wn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nn(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function mo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nn(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function Ol(e,t){var n=t&-t;return n=(n&42)!==0?1:sa(n),(n&(e.suspendedLanes|t))!==0?0:n}function sa(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 Cl(e,t,n){if(yl)for(e=e.pendingUpdatersLaneMap;0<n;){var a=31-Nn(n),l=1<<a;e[a].add(t),n&=~l}}function mn(e,t){if(yl)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;0<t;){var l=31-Nn(t);e=1<<l,l=n[l],0<l.size&&(l.forEach(function(o){var s=o.alternate;s!==null&&a.has(s)||a.add(o)}),l.clear()),t&=~e}}function Al(e){return e&=-e,da<e?bl<e?(e&134217727)!==0?ql:cf:bl:da}function _a(){var e=ft.p;return e!==0?e:(e=window.event,e===void 0?ql:d0(e.type))}function v(e,t){var n=ft.p;try{return ft.p=e,t()}finally{ft.p=n}}function U(e){delete e[dn],delete e[On],delete e[$p],delete e[hD],delete e[pD]}function F(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Uo]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Iv(e);e!==null;){if(n=e[dn])return n;e=Iv(e)}return t}e=n,n=e.parentNode}return null}function te(e){if(e=e[dn]||e[Uo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function me(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function je(e){var t=e[O0];return t||(t=e[O0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ve(e){e[Hu]=!0}function Ke(e,t){Be(e,t),Be(e+"Capture",t)}function Be(e,t){xi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),xi[e]=t;var n=e.toLowerCase();for(Yp[n]=e,e==="onDoubleClick"&&(Yp.ondblclick=e),e=0;e<t.length;e++)C0.add(t[e])}function en(e,t){mD[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 Rn(e){return Va.call(_0,e)?!0:Va.call(A0,e)?!1:gD.test(e)?_0[e]=!0:(A0[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function _l(e,t,n){if(Rn(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(rt(n,t),e===""+n?n:e)}}function Ml(e,t,n){if(Rn(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}rt(n,t),e.setAttribute(t,""+n)}}function Pi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}rt(n,t),e.setAttribute(t,""+n)}}function Ma(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}rt(a,n),e.setAttributeNS(t,n,""+a)}}function T(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return fo(e),e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){fo(s),n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(s){fo(s),n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function K(e){if(!e._valueTracker){var t=z(e)?"checked":"value";e._valueTracker=B(e,t,""+e[t])}}function ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=z(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Se(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 ie(e){return e.replace(yD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Te(e,t){t.checked===void 0||t.defaultChecked===void 0||U0||(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",Wt()||"A component",t.type),U0=!0),t.value===void 0||t.defaultValue===void 0||M0||(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",Wt()||"A component",t.type),M0=!0)}function ge(e,t,n,a,l,o,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?(rt(s,"type"),e.type=s):e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+T(t)):e.value!==""+T(t)&&(e.value=""+T(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Ae(e,s,T(t)):n!=null?Ae(e,s,T(n)):a!=null&&e.removeAttribute("value"),l==null&&o!=null&&(e.defaultChecked=!!o),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(rt(d,"name"),e.name=""+T(d)):e.removeAttribute("name")}function _e(e,t,n,a,l,o,s,d){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(rt(o,"type"),e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){K(e);return}n=n!=null?""+T(n):"",t=t!=null?""+T(t):n,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(rt(s,"name"),e.name=s),K(e)}function Ae(e,t,n){t==="number"&&Se(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Re(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Tp.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||L0||(L0=!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||j0||(j0=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||z0||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),z0=!0)}function ut(){var e=Wt();return e?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+e+"`.":""}function Pe(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+T(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function St(e,t){for(e=0;e<k0.length;e++){var n=k0[e];if(t[n]!=null){var a=Pt(t[n]);t.multiple&&!a?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,ut()):!t.multiple&&a&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,ut())}}t.value===void 0||t.defaultValue===void 0||H0||(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"),H0=!0)}function jt(e,t){t.value===void 0||t.defaultValue===void 0||V0||(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",Wt()||"A component"),V0=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function tn(e,t,n){if(t!=null&&(t=""+T(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+T(n):""}function st(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Pt(a)){if(1<a.length)throw Error("<textarea> can only have at most one child.");a=a[0]}n=a}n==null&&(n=""),t=n}n=T(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),K(e)}function Dn(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Dn(e.children[0],t):e}function Ht(e){return" "+" ".repeat(e)}function ca(e){return"+ "+" ".repeat(e)}function gn(e){return"- "+" ".repeat(e)}function Xn(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 Ul(e,t){return B0.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 Ja(e,t,n){var a=120-2*n;if(t===null)return ca(n)+Ul(e,a)+`
|
|
41
|
+
`;if(typeof t=="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>a-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),ca(n)+Ul(e,a)+`
|
|
42
|
+
`+gn(n)+Ul(t,a)+`
|
|
43
|
+
`}return Ht(n)+Ul(e,a)+`
|
|
44
|
+
`}function Ua(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function Fa(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(Pt(e))return"[...]";if(e.$$typeof===hl)return(t=M(e.type))?"<"+t+">":"<...>";var n=Ua(e);if(n==="Object"){n="",t-=2;for(var a in e)if(e.hasOwnProperty(a)){var l=JSON.stringify(a);if(l!=='"'+a+'"'&&(a=l),t-=a.length-2,l=Fa(e[a],15>t?t:15),t-=l.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+a+":"+l}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function za(e,t){return typeof e!="string"||B0.test(e)?"{"+Fa(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function et(e,t,n){var a=120-n.length-e.length,l=[],o;for(o in t)if(t.hasOwnProperty(o)&&o!=="children"){var s=za(t[o],120-n.length-o.length-1);a-=o.length+s.length+2,l.push(o+"="+s)}return l.length===0?n+"<"+e+`>
|
|
45
|
+
`:0<a?n+"<"+e+" "+l.join(" ")+`>
|
|
46
|
+
`:n+"<"+e+`
|
|
47
|
+
`+n+" "+l.join(`
|
|
48
|
+
`+n+" ")+`
|
|
49
|
+
`+n+`>
|
|
50
|
+
`}function nn(e,t,n){var a="",l=Fe({},t),o;for(o in e)if(e.hasOwnProperty(o)){delete l[o];var s=120-2*n-o.length-2,d=Fa(e[o],s);t.hasOwnProperty(o)?(s=Fa(t[o],s),a+=ca(n)+o+": "+d+`
|
|
51
|
+
`,a+=gn(n)+o+": "+s+`
|
|
52
|
+
`):a+=ca(n)+o+": "+d+`
|
|
53
|
+
`}for(var g in l)l.hasOwnProperty(g)&&(e=Fa(l[g],120-2*n-g.length-2),a+=gn(n)+g+": "+e+`
|
|
54
|
+
`);return a}function go(e,t,n,a){var l="",o=new Map;for(b in n)n.hasOwnProperty(b)&&o.set(b.toLowerCase(),b);if(o.size===1&&o.has("children"))l+=et(e,t,Ht(a));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=120-2*(a+1)-s.length-1,g=o.get(s.toLowerCase());if(g!==void 0){o.delete(s.toLowerCase());var b=t[s];g=n[g];var A=za(b,d);d=za(g,d),typeof b=="object"&&b!==null&&typeof g=="object"&&g!==null&&Ua(b)==="Object"&&Ua(g)==="Object"&&(2<Object.keys(b).length||2<Object.keys(g).length||-1<A.indexOf("...")||-1<d.indexOf("..."))?l+=Ht(a+1)+s+`={{
|
|
55
|
+
`+nn(b,g,a+2)+Ht(a+1)+`}}
|
|
56
|
+
`:(l+=ca(a+1)+s+"="+A+`
|
|
57
|
+
`,l+=gn(a+1)+s+"="+d+`
|
|
58
|
+
`)}else l+=Ht(a+1)+s+"="+za(t[s],d)+`
|
|
59
|
+
`}o.forEach(function(_){if(_!=="children"){var N=120-2*(a+1)-_.length-1;l+=gn(a+1)+_+"="+za(n[_],N)+`
|
|
60
|
+
`}}),l=l===""?Ht(a)+"<"+e+`>
|
|
61
|
+
`:Ht(a)+"<"+e+`
|
|
62
|
+
`+l+Ht(a)+`>
|
|
63
|
+
`}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(o="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(o=""+t),l+=Ja(o,""+e,a+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(l=e==null?l+Ja(""+t,null,a+1):l+Ja(""+t,void 0,a+1)),l}function Pa(e,t){var n=Xn(e);if(n===null){for(n="",e=e.child;e;)n+=Pa(e,t),e=e.sibling;return n}return Ht(t)+"<"+n+`>
|
|
64
|
+
`}function Et(e,t){var n=Dn(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Ht(t)+`...
|
|
65
|
+
`+Et(n,t+1);n="";var a=e.fiber._debugInfo;if(a)for(var l=0;l<a.length;l++){var o=a[l].name;typeof o=="string"&&(n+=Ht(t)+"<"+o+`>
|
|
66
|
+
`,t++)}if(a="",l=e.fiber.pendingProps,e.fiber.tag===6)a=Ja(l,e.serverProps,t),t++;else if(o=Xn(e.fiber),o!==null)if(e.serverProps===void 0){a=t;var s=120-2*a-o.length-2,d="";for(b in l)if(l.hasOwnProperty(b)&&b!=="children"){var g=za(l[b],15);if(s-=b.length+g.length+2,0>s){d+=" ...";break}d+=" "+b+"="+g}a=Ht(a)+"<"+o+d+`>
|
|
67
|
+
`,t++}else e.serverProps===null?(a=et(o,l,ca(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."):(a=go(o,l,e.serverProps,t),t++);var b="";for(l=e.fiber.child,o=0;l&&o<e.children.length;)s=e.children[o],s.fiber===l?(b+=Et(s,t),o++):b+=Pa(l,t),l=l.sibling;for(l&&0<e.children.length&&(b+=Ht(t)+`...
|
|
68
|
+
`),l=e.serverTail,e.serverProps===null&&t--,e=0;e<l.length;e++)o=l[e],b=typeof o=="string"?b+(gn(t)+Ul(o,120-2*t)+`
|
|
69
|
+
`):b+et(o.type,o.props,gn(t));return n+a+b}function yo(e){try{return`
|
|
70
|
+
|
|
71
|
+
`+Et(e,0)}catch{return""}}function tu(e,t,n){for(var a=t,l=null,o=0;a;)a===e&&(o=0),l={fiber:a,children:l!==null?[l]:[],serverProps:a===t?n:a===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,a=a.return;return l!==null?yo(l).replaceAll(/^[+-]/gm,">"):""}function Is(e,t){var n=Fe({},e||Y0),a={tag:t};return $0.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),vD.indexOf(t)!==-1&&(n.pTagInButtonScope=null),bD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=a),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function kg(e,t,n){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(n)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!n)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 SD.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 n||t===null;case"html":return n&&t==="#document"||t===null;case"body":return n&&(t==="#document"||t==="html")||t===null}return!0}function pw(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 Vg(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 Nd(e,t){t=t||Y0;var n=t.current;if(t=(n=kg(e,n&&n.tag,t.implicitRootScope)?null:n)?null:pw(e,t),t=n||t,!t)return!0;var a=t.tag;if(t=String(!!n)+"|"+e+"|"+a,ff[t])return!1;ff[t]=!0;var l=(t=Wn)?Vg(t.return,a):null,o=t!==null&&l!==null?tu(l,t,null):"",s="<"+e+">";return n?(n="",a==="table"&&e==="tr"&&(n+=" 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`,s,a,n,o)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
73
|
+
This will cause a hydration error.%s`,s,a,o),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||se(l,function(){console.error(`<%s> cannot contain a nested %s.
|
|
74
|
+
See this log for the ancestor stack trace.`,a,s)})),!1}function Ws(e,t,n){if(n||kg("#text",t,!1))return!0;if(n="#text|"+t,ff[n])return!1;ff[n]=!0;var a=(n=Wn)?Vg(n,t):null;return n=n!==null&&a!==null?tu(a,n,n.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,n):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,n),!1}function nu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function mw(e){return e.replace(wD,function(t,n){return n.toUpperCase()})}function Bg(e,t,n){var a=t.indexOf("--")===0;a||(-1<t.indexOf("-")?gr.hasOwnProperty(t)&&gr[t]||(gr[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,mw(t.replace(xD,"ms-")))):ED.test(t)?gr.hasOwnProperty(t)&&gr[t]||(gr[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!X0.test(n)||Gp.hasOwnProperty(n)&&Gp[n]||(Gp[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(X0,""))),typeof n=="number"&&(isNaN(n)?Q0||(Q0=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Z0||(Z0=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||J0.has(t)?t==="float"?e.cssFloat=n:(Ot(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function $g(e,t,n){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,n!=null){if(t){var a={};if(n){for(var l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var o=qp[l]||[l],s=0;s<o.length;s++)a[o[s]]=l}for(var d in t)if(t.hasOwnProperty(d)&&(!n||n[d]!==t[d]))for(l=qp[d]||[d],o=0;o<l.length;o++)a[l[o]]=d;d={};for(var g in t)for(l=qp[g]||[g],o=0;o<l.length;o++)d[l[o]]=g;g={};for(var b in a)if(l=a[b],(o=d[b])&&l!==o&&(s=l+","+o,!g[s])){g[s]=!0,s=console;var A=t[l];s.error.call(s,"%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.",A==null||typeof A=="boolean"||A===""?"Removing":"Updating",l,o)}}for(var _ in n)!n.hasOwnProperty(_)||t!=null&&t.hasOwnProperty(_)||(_.indexOf("--")===0?e.setProperty(_,""):_==="float"?e.cssFloat="":e[_]="");for(var N in t)b=t[N],t.hasOwnProperty(N)&&n[N]!==b&&Bg(e,N,b)}else for(a in t)t.hasOwnProperty(a)&&Bg(e,a,t[a])}function au(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 Yg(e){return RD.get(e)||e}function gw(e,t){if(Va.call(br,t)&&br[t])return!0;if(TD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=F0.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),br[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),br[t]=!0}if(DD.test(t)){if(e=t.toLowerCase(),e=F0.hasOwnProperty(e)?e:null,e==null)return br[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),br[t]=!0)}return!0}function yw(e,t){var n=[],a;for(a in t)gw(e,a)||n.push(a);t=n.map(function(l){return"`"+l+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function bw(e,t,n,a){if(Va.call(Cn,t)&&Cn[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="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."),Cn[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(a!=null){if(e=a.possibleRegistrationNames,a.registrationNameDependencies.hasOwnProperty(t))return!0;if(a=e.hasOwnProperty(l)?e[l]:null,a!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,a),Cn[t]=!0;if(K0.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Cn[t]=!0}else if(K0.test(t))return ND.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Cn[t]=!0;if(OD.test(t)||CD.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Cn[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Cn[t]=!0;if(l==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Cn[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Cn[t]=!0;if(hf.hasOwnProperty(l)){if(l=hf[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),Cn[t]=!0}else if(t!==l)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,l),Cn[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 n){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 l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-"?!0:(n?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,t,t,n,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.',n,t,t,n,t,t,t),Cn[t]=!0)}case"function":case"symbol":return Cn[t]=!0,!1;case"string":if(n==="false"||n==="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}?",n,t,n==="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,n),Cn[t]=!0}}return!0}function vw(e,t,n){var a=[],l;for(l in t)bw(e,l,t[l],n)||a.push(l);t=a.map(function(o){return"`"+o+"`"}).join(", "),a.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<a.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 lu(e){return AD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zl(){}function Od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function qg(e){var t=te(e);if(t&&(e=t.stateNode)){var n=e[On]||null;e:switch(e=t.stateNode,t.type){case"input":if(ge(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(rt(t,"name"),n=n.querySelectorAll('input[name="'+ie(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[On]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ge(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ee(a)}break e;case"textarea":tn(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Pe(e,!!n.multiple,t,!1)}}}function Gg(e,t,n){if(Xp)return e(t,n);Xp=!0;try{var a=e(t);return a}finally{if(Xp=!1,(vr!==null||Sr!==null)&&(ir(),vr&&(t=vr,e=Sr,Sr=vr=null,qg(t),e)))for(t=0;t<e.length;t++)qg(e[t])}}function ou(e,t){var n=e.stateNode;if(n===null)return null;var a=n[On]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Xg(){if(pf)return pf;var e,t=Zp,n=t.length,a,l="value"in zo?zo.value:zo.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(a=1;a<=s&&t[n-a]===l[o-a];a++);return pf=l.slice(e,1<a?1-a:void 0)}function ec(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 tc(){return!0}function Qg(){return!1}function kn(e){function t(n,a,l,o,s){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(o):o[d]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?tc:Qg,this.isPropagationStopped=Qg,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=tc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=tc)},persist:function(){},isPersistent:tc}),t}function Sw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qD[e])?!!t[e]:!1}function Cd(){return Sw}function Zg(e,t){switch(e){case"keyup":return tT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==tS;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Ew(e,t){switch(e){case"compositionend":return Jg(t);case"keypress":return t.which!==aS?null:(oS=!0,lS);case"textInput":return e=t.data,e===lS&&oS?null:e;default:return null}}function xw(e,t){if(Er)return e==="compositionend"||!Kp&&Zg(e,t)?(e=Xg(),pf=Zp=zo=null,Er=!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 nS&&t.locale!=="ko"?null:t.data;default:return null}}function Fg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aT[e.type]:t==="textarea"}function ww(e){if(!vl)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 Pg(e,t,n,a){vr?Sr?Sr.push(a):Sr=[a]:vr=a,t=Zc(t,"onChange"),0<t.length&&(n=new mf("onChange","change",null,n,a),e.push({event:n,listeners:t}))}function Rw(e){Mv(e,0)}function nc(e){var t=me(e);if(ee(t))return e}function Kg(e,t){if(e==="change")return t}function Ig(){qu&&(qu.detachEvent("onpropertychange",Wg),Gu=qu=null)}function Wg(e){if(e.propertyName==="value"&&nc(Gu)){var t=[];Pg(t,Gu,e,Od(e)),Gg(Rw,t)}}function Dw(e,t,n){e==="focusin"?(Ig(),qu=t,Gu=n,qu.attachEvent("onpropertychange",Wg)):e==="focusout"&&Ig()}function Tw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nc(Gu)}function Nw(e,t){if(e==="click")return nc(t)}function Ow(e,t){if(e==="input"||e==="change")return nc(t)}function Cw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function iu(e,t){if(An(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Va.call(t,l)||!An(e[l],t[l]))return!1}return!0}function ey(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ty(e,t){var n=ey(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ey(n)}}function ny(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ny(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ay(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Se(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Se(e.document)}return t}function Ad(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 ly(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wp||xr==null||xr!==Se(a)||(a=xr,"selectionStart"in a&&Ad(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Xu&&iu(Xu,a)||(Xu=a,a=Zc(Ip,"onSelect"),0<a.length&&(t=new mf("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=xr)))}function ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function si(e){if(em[e])return em[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rS)return em[e]=t[n];return e}function La(e,t){dS.set(e,t),Ke(t,[e])}function Aw(e){for(var t=yf,n=0;n<e.length;n++){var a=e[n];if(typeof a=="object"&&a!==null)if(Pt(a)&&a.length===2&&typeof a[0]=="string"){if(t!==yf&&t!==om)return am;t=om}else return am;else{if(typeof a=="function"||typeof a=="string"&&50<a.length||t!==yf&&t!==lm)return am;t=lm}}return t}function _d(e,t,n,a){for(var l in e)Va.call(e,l)&&l[0]!=="_"&&Ka(l,e[l],t,n,a)}function Ka(e,t,n,a,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===hl){var o=M(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),g=d.length;if(s==null&&g===0){t="<"+o+" />";break}if(3>a||g===1&&d[0]==="children"&&s==null){t="<"+o+" … />";break}n.push([l+" ".repeat(a)+e,"<"+o]),s!==null&&Ka("key",s,n,a+1,l),e=!1;for(var b in t)b==="children"?t.children!=null&&(!Pt(t.children)||0<t.children.length)&&(e=!0):Va.call(t,b)&&b[0]!=="_"&&Ka(b,t[b],n,a+1,l);n.push(["",e?">…</"+o+">":"/>"]);return}if(o=Object.prototype.toString.call(t),o=o.slice(8,o.length-1),o==="Array"){if(b=Aw(t),b===lm||b===yf){t=JSON.stringify(t);break}else if(b===om){for(n.push([l+" ".repeat(a)+e,""]),e=0;e<t.length;e++)o=t[e],Ka(o[0],o[1],n,a+1,l);return}}if(o==="Promise"){if(t.status==="fulfilled"){if(o=n.length,Ka(e,t.value,n,a,l),n.length>o){n=n[o],n[1]="Promise<"+(n[1]||"Object")+">";return}}else if(t.status==="rejected"&&(o=n.length,Ka(e,t.reason,n,a,l),n.length>o)){n=n[o],n[1]="Rejected Promise<"+n[1]+">";return}n.push([" ".repeat(a)+e,"Promise"]);return}o==="Object"&&(b=Object.getPrototypeOf(t))&&typeof b.constructor=="function"&&(o=b.constructor.name),n.push([l+" ".repeat(a)+e,o==="Object"?3>a?"":"…":o]),3>a&&_d(t,n,a+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===cT?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}n.push([l+" ".repeat(a)+e,t])}function oy(e,t,n,a){var l=!0;for(s in e)s in t||(n.push([bf+" ".repeat(a)+s,"…"]),l=!1);for(var o in t)if(o in e){var s=e[o],d=t[o];if(s!==d){if(a===0&&o==="children")l=" ".repeat(a)+o,n.push([bf+l,"…"],[vf+l,"…"]);else{if(!(3<=a)){if(typeof s=="object"&&typeof d=="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===hl){if(s.type===d.type&&s.key===d.key){s=M(d.type)||"…",l=" ".repeat(a)+o,s="<"+s+" … />",n.push([bf+l,s],[vf+l,s]),l=!1;continue}}else{var g=Object.prototype.toString.call(s),b=Object.prototype.toString.call(d);if(g===b&&(b==="[object Object]"||b==="[object Array]")){g=[mS+" ".repeat(a)+o,b==="[object Array]"?"Array":""],n.push(g),b=n.length,oy(s,d,n,a+1)?b===n.length&&(g[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof s=="function"&&typeof d=="function"&&s.name===d.name&&s.length===d.length&&(g=Function.prototype.toString.call(s),b=Function.prototype.toString.call(d),g===b)){s=d.name===""?"() => {}":d.name+"() {}",n.push([mS+" ".repeat(a)+o,s+" Referentially unequal function closure. Consider memoization."]);continue}}Ka(o,s,n,a,bf),Ka(o,d,n,a,vf)}l=!1}}else n.push([vf+" ".repeat(a)+o,"…"]),l=!1;return l}function ja(e){lt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Ia(e,t,n,a){xt&&(jo.start=t,jo.end=n,Gl.color="warning",Gl.tooltipText=a,Gl.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,a,jo)):performance.measure(a,jo))}function ac(e,t,n){Ia(e,t,n,"Reconnect")}function lc(e,t,n,a,l){var o=X(e);if(o!==null&&xt){var s=e.alternate,d=e.actualDuration;if(s===null||s.child!==e.child)for(var g=e.child;g!==null;g=g.sibling)d-=g.actualDuration;a=.5>d?a?"tertiary-light":"primary-light":10>d?a?"tertiary":"primary":100>d?a?"tertiary-dark":"primary-dark":"error";var b=e.memoizedProps;d=e._debugTask,b!==null&&s!==null&&s.memoizedProps!==b?(g=[fT],b=oy(s.memoizedProps,b,g,0),1<g.length&&(b&&!Lo&&(s.lanes&l)===0&&100<e.actualDuration?(Lo=!0,g[0]=dT,Gl.color="warning",Gl.tooltipText=gS):(Gl.color=a,Gl.tooltipText=o),Gl.properties=g,jo.start=t,jo.end=n,d!=null?d.run(performance.measure.bind(performance,""+o,jo)):performance.measure(""+o,jo))):d!=null?d.run(console.timeStamp.bind(console,o,t,n,ha,void 0,a)):console.timeStamp(o,t,n,ha,void 0,a)}}function Md(e,t,n,a){if(xt){var l=X(e);if(l!==null){for(var o=null,s=[],d=0;d<a.length;d++){var g=a[d];o==null&&g.source!==null&&(o=g.source._debugTask),g=g.value,s.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}e.key!==null&&Ka("key",e.key,s,0,""),e.memoizedProps!==null&&_d(e.memoizedProps,s,0,""),o==null&&(o=e._debugTask),e={start:t,end:n,detail:{devtools:{color:"error",track:ha,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},o?o.run(performance.measure.bind(performance,""+l,e)):performance.measure(""+l,e)}}}function Wa(e,t,n,a,l){if(l!==null){if(xt){var o=X(e);if(o!==null){a=[];for(var s=0;s<l.length;s++){var d=l[s].value;a.push(["Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e.key!==null&&Ka("key",e.key,a,0,""),e.memoizedProps!==null&&_d(e.memoizedProps,a,0,""),t={start:t,end:n,detail:{devtools:{color:"error",track:ha,tooltipText:"A lifecycle or effect errored",properties:a}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+o,t)):performance.measure(""+o,t)}}}else o=X(e),o!==null&&xt&&(l=1>a?"secondary-light":100>a?"secondary":500>a?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,o,t,n,ha,void 0,l)):console.timeStamp(o,t,n,ha,void 0,l))}function _w(e,t,n,a){if(xt&&!(t<=e)){var l=(n&738197653)===n?"tertiary-dark":"primary-dark";n=(n&536870912)===n?"Prepared":(n&201326741)===n?"Hydrated":"Render",a?a.run(console.timeStamp.bind(console,n,e,t,lt,nt,l)):console.timeStamp(n,e,t,lt,nt,l)}}function iy(e,t,n,a){!xt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Prewarm",e,t,lt,nt,n)):console.timeStamp("Prewarm",e,t,lt,nt,n))}function ry(e,t,n,a){!xt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Suspended",e,t,lt,nt,n)):console.timeStamp("Suspended",e,t,lt,nt,n))}function Mw(e,t,n,a,l,o){if(xt&&!(t<=e)){n=[];for(var s=0;s<a.length;s++){var d=a[s].value;n.push(["Recoverable Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:lt,trackGroup:nt,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:n}}},o?o.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Ud(e,t,n,a){!xt||t<=e||(a?a.run(console.timeStamp.bind(console,"Errored",e,t,lt,nt,"error")):console.timeStamp("Errored",e,t,lt,nt,"error"))}function Uw(e,t,n,a){!xt||t<=e||(a?a.run(console.timeStamp.bind(console,n,e,t,lt,nt,"secondary-light")):console.timeStamp(n,e,t,lt,nt,"secondary-light"))}function uy(e,t,n,a,l){if(xt&&!(t<=e)){for(var o=[],s=0;s<n.length;s++){var d=n[s].value;o.push(["Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:lt,trackGroup:nt,tooltipText:a?"Remaining Effects Errored":"Commit Errored",properties:o}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function zd(e,t,n){!xt||t<=e||console.timeStamp("Animating",e,t,lt,nt,"secondary-dark")}function oc(){for(var e=Rr,t=im=Rr=0;t<e;){var n=pa[t];pa[t++]=null;var a=pa[t];pa[t++]=null;var l=pa[t];pa[t++]=null;var o=pa[t];if(pa[t++]=null,a!==null&&l!==null){var s=a.pending;s===null?l.next=l:(l.next=s.next,s.next=l),a.pending=l}o!==0&&sy(n,l,o)}}function ic(e,t,n,a){pa[Rr++]=e,pa[Rr++]=t,pa[Rr++]=n,pa[Rr++]=a,im|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ld(e,t,n,a){return ic(e,t,n,a),rc(e)}function yn(e,t){return ic(e,null,null,t),rc(e)}function sy(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&Qu||(l=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,l&&t!==null&&(l=31-Nn(n),e=o.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),o):null}function rc(e){if(vs>OT)throw Vi=vs=0,Ss=Vm=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.");Vi>CT&&(Vi=0,Ss=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&&Dv(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&Dv(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function ci(e){if(ma===null)return e;var t=ma(e);return t===void 0?e:t.current}function jd(e){if(ma===null)return e;var t=ma(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=ci(e.render),e.render!==t)?(t={$$typeof:zu,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function cy(e,t){if(ma===null)return!1;var n=e.elementType;t=t.type;var a=!1,l=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(a=!0);break;case 0:(typeof t=="function"||l===In)&&(a=!0);break;case 11:(l===zu||l===In)&&(a=!0);break;case 14:case 15:(l===lf||l===In)&&(a=!0);break;default:return!1}return!!(a&&(e=ma(n),e!==void 0&&e===ma(t)))}function fy(e){ma!==null&&typeof WeakSet=="function"&&(Dr===null&&(Dr=new WeakSet),Dr.add(e))}function dy(e,t,n){do{var a=e,l=a.alternate,o=a.child,s=a.sibling,d=a.tag;a=a.type;var g=null;switch(d){case 0:case 15:case 1:g=a;break;case 11:g=a.render}if(ma===null)throw Error("Expected resolveFamily to be set during hot reload.");var b=!1;if(a=!1,g!==null&&(g=ma(g),g!==void 0&&(n.has(g)?a=!0:t.has(g)&&(d===1?a=!0:b=!0))),Dr!==null&&(Dr.has(e)||l!==null&&Dr.has(l))&&(a=!0),a&&(e._debugNeedsRemount=!0),(a||b)&&(l=yn(e,2),l!==null&&_t(l,e,2)),o===null||a||dy(o,t,n),s===null)break;e=s}while(!0)}function zw(e,t,n,a){this.tag=e,this.key=n,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=a,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,yS||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;switch(n===null?(n=x(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=ci(e.type);break;case 1:n.type=ci(e.type);break;case 11:n.type=jd(e.type)}return n}function hy(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function kd(e,t,n,a,l,o){var s=0,d=e;if(typeof e=="function")Hd(e)&&(s=1),d=ci(d);else if(typeof e=="string")s=oe(),s=qR(e,n,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case _p:return t=x(31,n,t,l),t.elementType=_p,t.lanes=o,t;case hr:return fi(n.children,l,o,t);case af:s=8,l|=vn,l|=Ba;break;case Np:return e=n,a=l,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=x(12,e,t,a|Ge),t.elementType=Np,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Cp:return t=x(13,n,t,l),t.elementType=Cp,t.lanes=o,t;case Ap:return t=x(19,n,t,l),t.elementType=Ap,t.lanes=o,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pl:s=10;break e;case Op:s=9;break e;case zu:s=11,d=jd(d);break e;case lf:s=14;break e;case In:s=16,d=null;break e}d="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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?n="null":Pt(e)?n="array":e!==void 0&&e.$$typeof===hl?(n="<"+(M(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(s=a?ae(a):null)&&(d+=`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+s+"`."),s=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+d)),d=null}return t=x(s,n,t,l),t.elementType=e,t.type=d,t.lanes=o,t._debugOwner=a,t}function uc(e,t,n){return t=kd(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function fi(e,t,n,a){return e=x(7,e,a,t),e.lanes=n,e}function Vd(e,t,n){return e=x(6,e,null,t),e.lanes=n,e}function py(e){var t=x(18,null,null,ze);return t.stateNode=e,t}function Bd(e,t,n){return t=x(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qn(e,t){if(typeof e=="object"&&e!==null){var n=rm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:it(t)},rm.set(e,t),t)}return{value:e,source:t,stack:it(t)}}function jl(e,t){bo(),Tr[Nr++]=Zu,Tr[Nr++]=Sf,Sf=e,Zu=t}function my(e,t,n){bo(),ga[ya++]=Ql,ga[ya++]=Zl,ga[ya++]=Ri,Ri=e;var a=Ql;e=Zl;var l=32-Nn(a)-1;a&=~(1<<l),n+=1;var o=32-Nn(t)+l;if(30<o){var s=l-l%5;o=(a&(1<<s)-1).toString(32),a>>=s,l-=s,Ql=1<<32-Nn(t)+l|n<<l|a,Zl=o+e}else Ql=1<<o|n<<l|a,Zl=e}function $d(e){bo(),e.return!==null&&(jl(e,1),my(e,1,0))}function Yd(e){for(;e===Sf;)Sf=Tr[--Nr],Tr[Nr]=null,Zu=Tr[--Nr],Tr[Nr]=null;for(;e===Ri;)Ri=ga[--ya],ga[ya]=null,Zl=ga[--ya],ga[ya]=null,Ql=ga[--ya],ga[ya]=null}function gy(){return bo(),Ri!==null?{id:Ql,overflow:Zl}:null}function yy(e,t){bo(),ga[ya++]=Ql,ga[ya++]=Zl,ga[ya++]=Ri,Ql=t.id,Zl=t.overflow,Ri=e}function bo(){Ie||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function di(e,t){if(e.return===null){if(ea===null)ea={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(ea.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ea.distanceFromLeaf>t&&(ea.distanceFromLeaf=t)}return ea}var n=di(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function by(){Ie&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function sc(e,t){Sl||(e=di(e,0),e.serverProps=null,t!==null&&(t=Pv(t),e.serverTail.push(t)))}function vo(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n="",a=ea;throw a!==null&&(ea=null,n=yo(a)),ru(Qn(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`+n),e)),um}function vy(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[dn]=e,t[On]=a,up(n,a),n){case"dialog":tt("cancel",t),tt("close",t);break;case"iframe":case"object":case"embed":tt("load",t);break;case"video":case"audio":for(n=0;n<Es.length;n++)tt(Es[n],t);break;case"source":tt("error",t);break;case"img":case"image":case"link":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"input":en("input",a),tt("invalid",t),Te(t,a),_e(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"option":Re(t,a);break;case"select":en("select",a),tt("invalid",t),St(t,a);break;case"textarea":en("textarea",a),tt("invalid",t),jt(t,a),st(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||jv(t.textContent,n)?(a.popover!=null&&(tt("beforetoggle",t),tt("toggle",t)),a.onScroll!=null&&tt("scroll",t),a.onScrollEnd!=null&&tt("scrollend",t),a.onClick!=null&&(t.onclick=zl),t=!0):t=!1,t||vo(e,!0)}function Sy(e){for(hn=e.return;hn;)switch(hn.tag){case 5:case 31:case 13:ba=!1;return;case 27:case 3:ba=!0;return;default:hn=hn.return}}function Ki(e){if(e!==hn)return!1;if(!Ie)return Sy(e),Ie=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||hp(e.type,e.memoizedProps)),n=!n),n&&wt){for(n=wt;n;){var a=di(e,0),l=Pv(n);a.serverTail.push(l),n=l.type==="Suspense"?yp(n):Kn(n.nextSibling)}vo(e)}if(Sy(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.");wt=yp(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.");wt=yp(e)}else t===27?(t=wt,Co(e.type)?(e=Km,Km=null,wt=e):wt=t):wt=hn?Kn(e.stateNode.nextSibling):null;return!0}function hi(){wt=hn=null,Sl=Ie=!1}function qd(){var e=ko;return e!==null&&(zn===null?zn=e:zn.push.apply(zn,e),ko=null),e}function ru(e){ko===null?ko=[e]:ko.push(e)}function Gd(){var e=ea;if(e!==null){ea=null;for(var t=yo(e);0<e.children.length;)e=e.children[0];se(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 cc(){Or=Ef=null,Cr=!1}function So(e,t,n){ce(sm,t._currentValue,e),t._currentValue=n,ce(cm,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==vS&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=vS}function Hl(e,t){e._currentValue=sm.current;var n=cm.current;I(cm,t),e._currentRenderer=n,I(sm,t)}function Xd(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}e!==n&&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 Qd(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var o=l.dependencies;if(o!==null){var s=l.child;o=o.firstContext;e:for(;o!==null;){var d=o;o=l;for(var g=0;g<t.length;g++)if(d.context===t[g]){o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),Xd(o.return,n,e),a||(s=null);break e}o=d.next}}else if(l.tag===18){if(s=l.return,s===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xd(s,n,e),s=null}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}}function Ii(e,t,n,a){e=null;for(var l=t,o=!1;l!==null;){if(!o){if((l.flags&524288)!==0)o=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var s=l.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var d=l.type;An(l.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(l===of.current){if(s=l.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ts):e=[Ts])}l=l.return}e!==null&&Qd(t,e,n,a),t.flags|=262144}function fc(e){for(e=e.firstContext;e!==null;){if(!An(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pi(e){Ef=e,Or=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Cr&&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()."),Ey(Ef,e)}function dc(e,t){return Ef===null&&pi(e),Ey(e,t)}function Ey(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Or===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().");Or=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Or=Or.next=t;return n}function Zd(){return{controller:new mT,data:new Map,refCount:0}}function mi(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 uu(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&&gT(yT,function(){e.controller.abort()})}function el(e,t,n){(e&127)!==0?0>El&&(El=Yt(),Fu=xf(t),fm=t,n!=null&&(dm=X(n)),(ot&(It|aa))!==un&&(Mt=!0,Bo=Ju),e=Cu(),t=Ou(),e!==Ar||t!==Pu?Ar=-1.1:t!==null&&(Bo=Ju),Ni=e,Pu=t):(e&4194048)!==0&&0>va&&(va=Yt(),Ku=xf(t),SS=t,n!=null&&(ES=X(n)),0>Kl)&&(e=Cu(),t=Ou(),(e!==Yo||t!==Oi)&&(Yo=-1.1),$o=e,Oi=t)}function Lw(e){if(0>El){El=Yt(),Fu=e._debugTask!=null?e._debugTask:null,(ot&(It|aa))!==un&&(Bo=Ju);var t=Cu(),n=Ou();t!==Ar||n!==Pu?Ar=-1.1:n!==null&&(Bo=Ju),Ni=t,Pu=n}0>va&&(va=Yt(),Ku=e._debugTask!=null?e._debugTask:null,0>Kl)&&(e=Cu(),t=Ou(),(e!==Yo||t!==Oi)&&(Yo=-1.1),$o=e,Oi=t)}function kl(){var e=Di;return Di=0,e}function hc(e){var t=Di;return Di=e,t}function su(e){var t=Di;return Di+=e,t}function pc(){Ue=Oe=-1.1}function Zn(){var e=Oe;return Oe=-1.1,e}function Jn(e){0<=e&&(Oe=e)}function tl(){var e=Ct;return Ct=-0,e}function nl(e){0<=e&&(Ct=e)}function al(){var e=Tt;return Tt=null,e}function ll(){var e=Mt;return Mt=!1,e}function Jd(e){_n=Yt(),0>e.actualStartTime&&(e.actualStartTime=_n)}function Fd(e){if(0<=_n){var t=Yt()-_n;e.actualDuration+=t,e.selfBaseDuration=t,_n=-1}}function xy(e){if(0<=_n){var t=Yt()-_n;e.actualDuration+=t,_n=-1}}function ol(){if(0<=_n){var e=Yt(),t=e-_n;_n=-1,Di+=t,Ct+=t,Ue=e}}function wy(e){Tt===null&&(Tt=[]),Tt.push(e),Fl===null&&(Fl=[]),Fl.push(e)}function il(){_n=Yt(),0>Oe&&(Oe=_n)}function cu(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function jw(e,t){if(Wu===null){var n=Wu=[];pm=0,Ci=lp(),_r={status:"pending",value:void 0,then:function(a){n.push(a)}}}return pm++,t.then(Ry,Ry),t}function Ry(){if(--pm===0&&(-1<va||(Kl=-1.1),Wu!==null)){_r!==null&&(_r.status="fulfilled");var e=Wu;Wu=null,Ci=0,_r=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hw(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}function Pd(){var e=Ai.current;return e!==null?e:yt.pooledCache}function mc(e,t){t===null?ce(Ai,Ai.current,e):ce(Ai,t.pool,e)}function Dy(){var e=Pd();return e===null?null:{parent:$t._currentValue,pool:e}}function Ty(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ny(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Oy(e,t,n){$.actQueue!==null&&($.didUsePromise=!0);var a=e.thenables;if(n=a[n],n===void 0?a.push(t):n!==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(zl,zl),t=n),t._debugInfo===void 0){e=performance.now(),a=t.displayName;var l={name:typeof a=="string"?a:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ay(e),e;default:if(typeof t.status=="string")t.then(zl,zl);else{if(e=yt,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(o){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=o}},function(o){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ay(e),e}throw Mi=t,is=!0,Mr}}function Eo(e){try{return xT(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Mi=t,is=!0,Mr):t}}function Cy(){if(Mi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Mi;return Mi=null,is=!1,e}function Ay(e){if(e===Mr||e===Af)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 sn(e){var t=Xe;return e!=null&&(Xe=t===null?e:t.concat(e)),t}function Kd(){var e=Xe;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function gc(e,t,n){for(var a=Object.keys(e.props),l=0;l<a.length;l++){var o=a[l];if(o!=="children"&&o!=="key"){t===null&&(t=uc(e,n.mode,0),t._debugInfo=Xe,t.return=n),se(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},o);break}}}function yc(e){var t=rs;return rs+=1,Ur===null&&(Ur=Ty()),Oy(Ur,e,t)}function fu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _y(e,t){throw t.$$typeof===eD?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 bc(e,t){var n=Kd();n!==null?n.run(_y.bind(null,e,t)):_y(e,t)}function My(e,t){var n=X(e)||"Component";$S[n]||($S[n]=!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,n,t,n))}function vc(e,t){var n=Kd();n!==null?n.run(My.bind(null,e,t)):My(e,t)}function Uy(e,t){var n=X(e)||"Component";YS[n]||(YS[n]=!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>`,n,t,n))}function Sc(e,t){var n=Kd();n!==null?n.run(Uy.bind(null,e,t)):Uy(e,t)}function zy(e){function t(R,O){if(e){var C=R.deletions;C===null?(R.deletions=[O],R.flags|=16):C.push(O)}}function n(R,O){if(!e)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function a(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function l(R,O){return R=Ll(R,O),R.index=0,R.sibling=null,R}function o(R,O,C){return R.index=C,e?(C=R.alternate,C!==null?(C=C.index,C<O?(R.flags|=67108866,O):C):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function s(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function d(R,O,C,G){return O===null||O.tag!==6?(O=Vd(C,R.mode,G),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Xe,O):(O=l(O,C),O.return=R,O._debugInfo=Xe,O)}function g(R,O,C,G){var le=C.type;return le===hr?(O=A(R,O,C.props.children,G,C.key),gc(C,O,R),O):O!==null&&(O.elementType===le||cy(O,C)||typeof le=="object"&&le!==null&&le.$$typeof===In&&Eo(le)===O.type)?(O=l(O,C.props),fu(O,C),O.return=R,O._debugOwner=C._owner,O._debugInfo=Xe,O):(O=uc(C,R.mode,G),fu(O,C),O.return=R,O._debugInfo=Xe,O)}function b(R,O,C,G){return O===null||O.tag!==4||O.stateNode.containerInfo!==C.containerInfo||O.stateNode.implementation!==C.implementation?(O=Bd(C,R.mode,G),O.return=R,O._debugInfo=Xe,O):(O=l(O,C.children||[]),O.return=R,O._debugInfo=Xe,O)}function A(R,O,C,G,le){return O===null||O.tag!==7?(O=fi(C,R.mode,G,le),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Xe,O):(O=l(O,C),O.return=R,O._debugInfo=Xe,O)}function _(R,O,C){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Vd(""+O,R.mode,C),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Xe,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case hl:return C=uc(O,R.mode,C),fu(C,O),C.return=R,R=sn(O._debugInfo),C._debugInfo=Xe,Xe=R,C;case dr:return O=Bd(O,R.mode,C),O.return=R,O._debugInfo=Xe,O;case In:var G=sn(O._debugInfo);return O=Eo(O),R=_(R,O,C),Xe=G,R}if(Pt(O)||Le(O))return C=fi(O,R.mode,C,null),C.return=R,C._debugOwner=R,C._debugTask=R._debugTask,R=sn(O._debugInfo),C._debugInfo=Xe,Xe=R,C;if(typeof O.then=="function")return G=sn(O._debugInfo),R=_(R,yc(O),C),Xe=G,R;if(O.$$typeof===pl)return _(R,dc(R,O),C);bc(R,O)}return typeof O=="function"&&vc(R,O),typeof O=="symbol"&&Sc(R,O),null}function N(R,O,C,G){var le=O!==null?O.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:d(R,O,""+C,G);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case hl:return C.key===le?(le=sn(C._debugInfo),R=g(R,O,C,G),Xe=le,R):null;case dr:return C.key===le?b(R,O,C,G):null;case In:return le=sn(C._debugInfo),C=Eo(C),R=N(R,O,C,G),Xe=le,R}if(Pt(C)||Le(C))return le!==null?null:(le=sn(C._debugInfo),R=A(R,O,C,G,null),Xe=le,R);if(typeof C.then=="function")return le=sn(C._debugInfo),R=N(R,O,yc(C),G),Xe=le,R;if(C.$$typeof===pl)return N(R,O,dc(R,C),G);bc(R,C)}return typeof C=="function"&&vc(R,C),typeof C=="symbol"&&Sc(R,C),null}function k(R,O,C,G,le){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return R=R.get(C)||null,d(O,R,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case hl:return C=R.get(G.key===null?C:G.key)||null,R=sn(G._debugInfo),O=g(O,C,G,le),Xe=R,O;case dr:return R=R.get(G.key===null?C:G.key)||null,b(O,R,G,le);case In:var ke=sn(G._debugInfo);return G=Eo(G),O=k(R,O,C,G,le),Xe=ke,O}if(Pt(G)||Le(G))return C=R.get(C)||null,R=sn(G._debugInfo),O=A(O,C,G,le,null),Xe=R,O;if(typeof G.then=="function")return ke=sn(G._debugInfo),O=k(R,O,C,yc(G),le),Xe=ke,O;if(G.$$typeof===pl)return k(R,O,C,dc(O,G),le);bc(O,G)}return typeof G=="function"&&vc(O,G),typeof G=="symbol"&&Sc(O,G),null}function ne(R,O,C,G){if(typeof C!="object"||C===null)return G;switch(C.$$typeof){case hl:case dr:w(R,O,C);var le=C.key;if(typeof le!="string")break;if(G===null){G=new Set,G.add(le);break}if(!G.has(le)){G.add(le);break}se(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.",le)});break;case In:C=Eo(C),ne(R,O,C,G)}return G}function ue(R,O,C,G){for(var le=null,ke=null,Ne=null,be=O,qe=O=0,Rt=null;be!==null&&qe<C.length;qe++){be.index>qe?(Rt=be,be=null):Rt=be.sibling;var Vt=N(R,be,C[qe],G);if(Vt===null){be===null&&(be=Rt);break}le=ne(R,Vt,C[qe],le),e&&be&&Vt.alternate===null&&t(R,be),O=o(Vt,O,qe),Ne===null?ke=Vt:Ne.sibling=Vt,Ne=Vt,be=Rt}if(qe===C.length)return n(R,be),Ie&&jl(R,qe),ke;if(be===null){for(;qe<C.length;qe++)be=_(R,C[qe],G),be!==null&&(le=ne(R,be,C[qe],le),O=o(be,O,qe),Ne===null?ke=be:Ne.sibling=be,Ne=be);return Ie&&jl(R,qe),ke}for(be=a(be);qe<C.length;qe++)Rt=k(be,R,qe,C[qe],G),Rt!==null&&(le=ne(R,Rt,C[qe],le),e&&Rt.alternate!==null&&be.delete(Rt.key===null?qe:Rt.key),O=o(Rt,O,qe),Ne===null?ke=Rt:Ne.sibling=Rt,Ne=Rt);return e&&be.forEach(function(oo){return t(R,oo)}),Ie&&jl(R,qe),ke}function vt(R,O,C,G){if(C==null)throw Error("An iterable object provided no iterator.");for(var le=null,ke=null,Ne=O,be=O=0,qe=null,Rt=null,Vt=C.next();Ne!==null&&!Vt.done;be++,Vt=C.next()){Ne.index>be?(qe=Ne,Ne=null):qe=Ne.sibling;var oo=N(R,Ne,Vt.value,G);if(oo===null){Ne===null&&(Ne=qe);break}Rt=ne(R,oo,Vt.value,Rt),e&&Ne&&oo.alternate===null&&t(R,Ne),O=o(oo,O,be),ke===null?le=oo:ke.sibling=oo,ke=oo,Ne=qe}if(Vt.done)return n(R,Ne),Ie&&jl(R,be),le;if(Ne===null){for(;!Vt.done;be++,Vt=C.next())Ne=_(R,Vt.value,G),Ne!==null&&(Rt=ne(R,Ne,Vt.value,Rt),O=o(Ne,O,be),ke===null?le=Ne:ke.sibling=Ne,ke=Ne);return Ie&&jl(R,be),le}for(Ne=a(Ne);!Vt.done;be++,Vt=C.next())qe=k(Ne,R,be,Vt.value,G),qe!==null&&(Rt=ne(R,qe,Vt.value,Rt),e&&qe.alternate!==null&&Ne.delete(qe.key===null?be:qe.key),O=o(qe,O,be),ke===null?le=qe:ke.sibling=qe,ke=qe);return e&&Ne.forEach(function(QT){return t(R,QT)}),Ie&&jl(R,be),le}function at(R,O,C,G){if(typeof C=="object"&&C!==null&&C.type===hr&&C.key===null&&(gc(C,null,R),C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case hl:var le=sn(C._debugInfo);e:{for(var ke=C.key;O!==null;){if(O.key===ke){if(ke=C.type,ke===hr){if(O.tag===7){n(R,O.sibling),G=l(O,C.props.children),G.return=R,G._debugOwner=C._owner,G._debugInfo=Xe,gc(C,G,R),R=G;break e}}else if(O.elementType===ke||cy(O,C)||typeof ke=="object"&&ke!==null&&ke.$$typeof===In&&Eo(ke)===O.type){n(R,O.sibling),G=l(O,C.props),fu(G,C),G.return=R,G._debugOwner=C._owner,G._debugInfo=Xe,R=G;break e}n(R,O);break}else t(R,O);O=O.sibling}C.type===hr?(G=fi(C.props.children,R.mode,G,C.key),G.return=R,G._debugOwner=R,G._debugTask=R._debugTask,G._debugInfo=Xe,gc(C,G,R),R=G):(G=uc(C,R.mode,G),fu(G,C),G.return=R,G._debugInfo=Xe,R=G)}return R=s(R),Xe=le,R;case dr:e:{for(le=C,C=le.key;O!==null;){if(O.key===C)if(O.tag===4&&O.stateNode.containerInfo===le.containerInfo&&O.stateNode.implementation===le.implementation){n(R,O.sibling),G=l(O,le.children||[]),G.return=R,R=G;break e}else{n(R,O);break}else t(R,O);O=O.sibling}G=Bd(le,R.mode,G),G.return=R,R=G}return s(R);case In:return le=sn(C._debugInfo),C=Eo(C),R=at(R,O,C,G),Xe=le,R}if(Pt(C))return le=sn(C._debugInfo),R=ue(R,O,C,G),Xe=le,R;if(Le(C)){if(le=sn(C._debugInfo),ke=Le(C),typeof ke!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ne=ke.call(C);return Ne===C?(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ne)!=="[object Generator]")&&(VS||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."),VS=!0):C.entries!==ke||bm||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bm=!0),R=vt(R,O,Ne,G),Xe=le,R}if(typeof C.then=="function")return le=sn(C._debugInfo),R=at(R,O,yc(C),G),Xe=le,R;if(C.$$typeof===pl)return at(R,O,dc(R,C),G);bc(R,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(le=""+C,O!==null&&O.tag===6?(n(R,O.sibling),G=l(O,le),G.return=R,R=G):(n(R,O),G=Vd(le,R.mode,G),G.return=R,G._debugOwner=R,G._debugTask=R._debugTask,G._debugInfo=Xe,R=G),s(R)):(typeof C=="function"&&vc(R,C),typeof C=="symbol"&&Sc(R,C),n(R,O))}return function(R,O,C,G){var le=Xe;Xe=null;try{rs=0;var ke=at(R,O,C,G);return Ur=null,ke}catch(Rt){if(Rt===Mr||Rt===Af)throw Rt;var Ne=x(29,Rt,null,R.mode);Ne.lanes=G,Ne.return=R;var be=Ne._debugInfo=Xe;if(Ne._debugOwner=R._debugOwner,Ne._debugTask=R._debugTask,be!=null){for(var qe=be.length-1;0<=qe;qe--)if(typeof be[qe].stack=="string"){Ne._debugOwner=be[qe],Ne._debugTask=be[qe].debugTask;break}}return Ne}finally{Xe=le}}}function Ly(e,t){var n=Pt(e);return e=!n&&typeof Le(e)=="function",n||e?(n=n?"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>",n,t,n),!1):!0}function Id(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wd(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 xo(e){return{lane:e,tag:GS,payload:null,callback:null,next:null}}function wo(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Sm===a&&!ZS){var l=X(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`,l),ZS=!0}return(ot&It)!==un?(l=a.pending,l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=rc(e),sy(e,null,n),t):(ic(e,a,t,n),rc(e))}function du(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,mo(e,n)}}function Ec(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hu(){if(Em){var e=_r;if(e!==null)throw e}}function pu(e,t,n,a){Em=!1;var l=e.updateQueue;qo=!1,Sm=l.shared;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var g=d,b=g.next;g.next=null,s===null?o=b:s.next=b,s=g;var A=e.alternate;A!==null&&(A=A.updateQueue,d=A.lastBaseUpdate,d!==s&&(d===null?A.firstBaseUpdate=b:d.next=b,A.lastBaseUpdate=g))}if(o!==null){var _=l.baseState;s=0,A=b=g=null,d=o;do{var N=d.lane&-536870913,k=N!==d.lane;if(k?(Qe&N)===N:(a&N)===N){N!==0&&N===Ci&&(Em=!0),A!==null&&(A=A.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{N=e;var ne=d,ue=t,vt=n;switch(ne.tag){case XS:if(ne=ne.payload,typeof ne=="function"){Cr=!0;var at=ne.call(vt,_,ue);if(N.mode&vn){pe(!0);try{ne.call(vt,_,ue)}finally{pe(!1)}}Cr=!1,_=at;break e}_=ne;break e;case vm:N.flags=N.flags&-65537|128;case GS:if(at=ne.payload,typeof at=="function"){if(Cr=!0,ne=at.call(vt,_,ue),N.mode&vn){pe(!0);try{at.call(vt,_,ue)}finally{pe(!1)}}Cr=!1}else ne=at;if(ne==null)break e;_=Fe({},_,ne);break e;case QS:qo=!0}}N=d.callback,N!==null&&(e.flags|=64,k&&(e.flags|=8192),k=l.callbacks,k===null?l.callbacks=[N]:k.push(N))}else k={lane:N,tag:d.tag,payload:d.payload,callback:d.callback,next:null},A===null?(b=A=k,g=_):A=A.next=k,s|=N;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;k=d,d=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);A===null&&(g=_),l.baseState=g,l.firstBaseUpdate=b,l.lastBaseUpdate=A,o===null&&(l.shared.lanes=0),Qo|=s,e.lanes=s,e.memoizedState=_}Sm=null}function jy(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function kw(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)jy(n[e],t)}function Hy(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jy(n[e],t)}function ky(e,t){var n=wl;ce(Mf,n,e),ce(zr,t,e),wl=n|t.baseLanes}function eh(e){ce(Mf,wl,e),ce(zr,zr.current,e)}function th(e){wl=Mf.current,I(zr,e),I(Mf,e)}function Ro(e){var t=e.alternate;ce(kt,kt.current&Lr,e),ce(ta,e,e),Sa===null&&(t===null||zr.current!==null||t.memoizedState!==null)&&(Sa=e)}function nh(e){ce(kt,kt.current,e),ce(ta,e,e),Sa===null&&(Sa=e)}function Vy(e){e.tag===22?(ce(kt,kt.current,e),ce(ta,e,e),Sa===null&&(Sa=e)):Do(e)}function Do(e){ce(kt,kt.current,e),ce(ta,ta.current,e)}function Fn(e){I(ta,e),Sa===e&&(Sa=null),I(kt,e)}function xc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mp(n)||gp(n)))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 Je(){var e=V;xa===null?xa=[e]:xa.push(e)}function P(){var e=V;if(xa!==null&&(eo++,xa[eo]!==e)){var t=X(He);if(!JS.has(t)&&(JS.add(t),xa!==null)){for(var n="",a=0;a<=eo;a++){var l=xa[a],o=a===eo?e:l;for(l=a+1+". "+l;30>l.length;)l+=" ";l+=o+`
|
|
108
|
+
`,n+=l}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,n)}}}function Wi(e){e==null||Pt(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.",V,typeof e)}function wc(){var e=X(He);PS.has(e)||(PS.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function zt(){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 ah(e,t){if(cs)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.",V),!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`,V,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!An(e[n],t[n]))return!1;return!0}function lh(e,t,n,a,l,o){Il=o,He=t,xa=e!==null?e._debugHookTypes:null,eo=-1,cs=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(o=X(He),xm.has(o)||(xm.add(o),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.",o===null?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e!==null&&e.memoizedState!==null?Rm:xa!==null?KS:wm,zi=o=(t.mode&vn)!==ze;var s=mm(n,a,l);if(zi=!1,Hr&&(s=oh(t,n,a,l)),o){pe(!0);try{s=oh(t,n,a,l)}finally{pe(!1)}}return By(e,t),s}function By(e,t){t._debugHookTypes=xa,t.dependencies===null?Wl!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Wl}):t.dependencies._debugThenableState=Wl,$.H=fs;var n=gt!==null&>.next!==null;if(Il=0,xa=V=qt=gt=He=null,eo=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),zf=!1,ss=0,Wl=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Gt||(e=e.dependencies,e!==null&&fc(e)&&(Gt=!0)),is?(is=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",FS.has(t)||xm.has(t)||(FS.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 oh(e,t,n,a){He=e;var l=0;do{if(Hr&&(Wl=null),ss=0,Hr=!1,l>=RT)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,cs=!1,qt=gt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}eo=-1,$.H=IS,o=mm(t,n,a)}while(Hr);return o}function Vw(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?mu(t):t,e=e.useState()[0],(gt!==null?gt.memoizedState:null)!==e&&(He.flags|=1024),t}function ih(){var e=Lf!==0;return Lf=0,e}function rh(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Ba)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function uh(e){if(zf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zf=!1}Il=0,xa=qt=gt=He=null,eo=-1,V=null,Hr=!1,ss=Lf=0,Wl=null}function Tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?He.memoizedState=qt=e:qt=qt.next=e,qt}function dt(){if(gt===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=gt.next;var t=qt===null?He.memoizedState:qt.next;if(t!==null)qt=t,gt=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.");gt=e,e={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},qt===null?He.memoizedState=qt=e:qt=qt.next=e}return qt}function Rc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mu(e){var t=ss;return ss+=1,Wl===null&&(Wl=Ty()),e=Oy(Wl,e,t),t=He,(qt===null?t.memoizedState:qt.next)===null&&(t=t.alternate,$.H=t!==null&&t.memoizedState!==null?Rm:wm),e}function To(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mu(e);if(e.$$typeof===pl)return Dt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function gi(e){var t=null,n=He.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=He.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Rc(),He.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||cs)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=tD;else n.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.",n.length,e);return t.index++,n}function Ha(e,t){return typeof t=="function"?t(e):t}function sh(e,t,n){var a=Tn();if(n!==void 0){var l=n(t);if(zi){pe(!0);try{n(t)}finally{pe(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=Gw.bind(null,He,e),[a.memoizedState,e]}function er(e){var t=dt();return ch(t,gt,e)}function ch(e,t,n){var a=e.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=n;var l=e.baseQueue,o=a.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=o,a.pending=null}if(o=e.baseState,l===null)e.memoizedState=o;else{t=l.next;var d=s=null,g=null,b=t,A=!1;do{var _=b.lane&-536870913;if(_!==b.lane?(Qe&_)===_:(Il&_)===_){var N=b.revertLane;if(N===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),_===Ci&&(A=!0);else if((Il&N)===N){b=b.next,N===Ci&&(A=!0);continue}else _={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},g===null?(d=g=_,s=o):g=g.next=_,He.lanes|=N,Qo|=N;_=b.action,zi&&n(o,_),o=b.hasEagerState?b.eagerState:n(o,_)}else N={lane:_,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},g===null?(d=g=N,s=o):g=g.next=N,He.lanes|=_,Qo|=_;b=b.next}while(b!==null&&b!==t);if(g===null?s=o:g.next=d,!An(o,e.memoizedState)&&(Gt=!0,A&&(n=_r,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=g,a.lastRenderedState=o}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function gu(e){var t=dt(),n=t.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=e;var a=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);An(o,t.memoizedState)||(Gt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function fh(e,t,n){var a=He,l=Tn();if(Ie){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();jr||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),jr=!0)}else{if(o=t(),jr||(n=t(),An(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),jr=!0)),yt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Qe&127)!==0||$y(a,t,o)}return l.memoizedState=o,n={value:o,getSnapshot:t},l.queue=n,Oc(qy.bind(null,a,n,e),[e]),a.flags|=2048,nr(Ea|Un,{destroy:void 0},Yy.bind(null,a,n,o,t),null),o}function Dc(e,t,n){var a=He,l=dt(),o=Ie;if(o){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!jr){var s=t();An(n,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),jr=!0)}(s=!An((gt||l).memoizedState,n))&&(l.memoizedState=n,Gt=!0),l=l.queue;var d=qy.bind(null,a,l,e);if(Vn(2048,Un,d,[e]),l.getSnapshot!==t||s||qt!==null&&qt.memoizedState.tag&Ea){if(a.flags|=2048,nr(Ea|Un,{destroy:void 0},Yy.bind(null,a,l,n,t),null),yt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||(Il&127)!==0||$y(a,t,n)}return n}function $y(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=He.updateQueue,t===null?(t=Rc(),He.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yy(e,t,n,a){t.value=n,t.getSnapshot=a,Gy(t)&&Xy(e)}function qy(e,t,n){return n(function(){Gy(t)&&(el(2,"updateSyncExternalStore()",e),Xy(e))})}function Gy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!An(e,n)}catch{return!0}}function Xy(e){var t=yn(e,2);t!==null&&_t(t,e,2)}function dh(e){var t=Tn();if(typeof e=="function"){var n=e;if(e=n(),zi){pe(!0);try{n()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:e},t}function hh(e){e=dh(e);var t=e.queue,n=cb.bind(null,He,t);return t.dispatch=n,[e.memoizedState,n]}function ph(e){var t=Tn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Oh.bind(null,He,!0,n),n.dispatch=t,[e,t]}function Qy(e,t){var n=dt();return Zy(n,gt,e,t)}function Zy(e,t,n,a){return e.baseState=n,ch(e,gt,typeof a=="function"?a:Ha)}function Jy(e,t){var n=dt();return gt!==null?Zy(n,gt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function Bw(e,t,n,a,l){if(zc(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var o={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){o.listeners.push(s)}};$.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Fy(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Fy(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var o=$.T,s={};s._updatedFibers=new Set,$.T=s;try{var d=n(l,a),g=$.S;g!==null&&g(s,d),Py(e,t,d)}catch(b){mh(e,t,b)}finally{o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.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."),o.types=s.types),$.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._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{s=n(l,a),Py(e,t,s)}catch(b){mh(e,t,b)}}function Py(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?($.asyncTransitions++,n.then(Uc,Uc),n.then(function(a){Ky(e,t,a)},function(a){return mh(e,t,a)}),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.")):Ky(e,t,n)}function Ky(e,t,n){t.status="fulfilled",t.value=n,Iy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Fy(e,n)))}function mh(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Iy(t),t=t.next;while(t!==a)}e.action=null}function Iy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wy(e,t){return t}function tr(e,t){if(Ie){var n=yt.formState;if(n!==null){e:{var a=He;if(Ie){if(wt){t:{for(var l=wt,o=ba;l.nodeType!==8;){if(!o){l=null;break t}if(l=Kn(l.nextSibling),l===null){l=null;break t}}o=l.data,l=o===Zm||o===H1?l:null}if(l){wt=Kn(l.nextSibling),a=l.data===Zm;break e}}vo(a)}a=!1}a&&(t=n[0])}}return n=Tn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wy,lastRenderedState:t},n.queue=a,n=cb.bind(null,He,a),a.dispatch=n,a=dh(!1),o=Oh.bind(null,He,!1,a.queue),a=Tn(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=Bw.bind(null,He,l,o,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function Tc(e){var t=dt();return eb(t,gt,e)}function eb(e,t,n){if(t=ch(e,t,Wy)[0],e=er(Ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=mu(t)}catch(s){throw s===Mr?Af:s}else a=t;t=dt();var l=t.queue,o=l.dispatch;return n!==t.memoizedState&&(He.flags|=2048,nr(Ea|Un,{destroy:void 0},$w.bind(null,l,n),null)),[a,o,e]}function $w(e,t){e.action=t}function Nc(e){var t=dt(),n=gt;if(n!==null)return eb(t,n,e);dt(),t=t.memoizedState,n=dt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function nr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=He.updateQueue,t===null&&(t=Rc(),He.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function gh(e){var t=Tn();return e={current:e},t.memoizedState=e}function yi(e,t,n,a){var l=Tn();He.flags|=e,l.memoizedState=nr(Ea|t,{destroy:void 0},n,a===void 0?null:a)}function Vn(e,t,n,a){var l=dt();a=a===void 0?null:a;var o=l.memoizedState.inst;gt!==null&&a!==null&&ah(a,gt.memoizedState.deps)?l.memoizedState=nr(t,o,n,a):(He.flags|=e,l.memoizedState=nr(Ea|t,o,n,a))}function Oc(e,t){(He.mode&Ba)!==ze?yi(276826112,Un,e,t):yi(8390656,Un,e,t)}function Yw(e){He.flags|=4;var t=He.updateQueue;if(t===null)t=Rc(),He.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function yh(e){var t=Tn(),n={impl:e};return t.memoizedState=n,function(){if((ot&It)!==un)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function Cc(e){var t=dt().memoizedState;return Yw({ref:t,nextImpl:e}),function(){if((ot&It)!==un)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function bh(e,t){var n=4194308;return(He.mode&Ba)!==ze&&(n|=134217728),yi(n,na,e,t)}function tb(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():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 vh(e,t,n){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"),n=n!=null?n.concat([e]):null;var a=4194308;(He.mode&Ba)!==ze&&(a|=134217728),yi(a,na,tb.bind(null,t,e),n)}function Ac(e,t,n){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"),n=n!=null?n.concat([e]):null,Vn(4,na,tb.bind(null,t,e),n)}function Sh(e,t){return Tn().memoizedState=[e,t===void 0?null:t],e}function _c(e,t){var n=dt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&ah(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Eh(e,t){var n=Tn();t=t===void 0?null:t;var a=e();if(zi){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[a,t],a}function Mc(e,t){var n=dt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&ah(t,a[1]))return a[0];if(a=e(),zi){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[a,t],a}function xh(e,t){var n=Tn();return wh(n,e,t)}function nb(e,t){var n=dt();return lb(n,gt.memoizedState,e,t)}function ab(e,t){var n=dt();return gt===null?wh(n,e,t):lb(n,gt.memoizedState,e,t)}function wh(e,t,n){return n===void 0||(Il&1073741824)!==0&&(Qe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ov(),He.lanes|=e,Qo|=e,n)}function lb(e,t,n,a){return An(n,t)?n:zr.current!==null?(e=wh(e,n,a),An(e,t)||(Gt=!0),e):(Il&42)===0||(Il&1073741824)!==0&&(Qe&261930)===0?(Gt=!0,e.memoizedState=n):(e=ov(),He.lanes|=e,Qo|=e,t)}function Uc(){$.asyncTransitions--}function ob(e,t,n,a,l){var o=ft.p;ft.p=o!==0&&o<bl?o:bl;var s=$.T,d={};d._updatedFibers=new Set,$.T=d,Oh(e,!1,t,n);try{var g=l(),b=$.S;if(b!==null&&b(d,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){$.asyncTransitions++,g.then(Uc,Uc);var A=Hw(g,a);yu(e,t,A,Pn(e))}else yu(e,t,a,Pn(e))}catch(_){yu(e,t,{then:function(){},status:"rejected",reason:_},Pn(e))}finally{ft.p=o,s!==null&&d.types!==null&&(s.types!==null&&s.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."),s.types=d.types),$.T=s,s===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."))}}function Rh(e,t,n,a){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=ib(e).queue;Lw(e),ob(e,l,t,Xi,n===null?E:function(){return rb(e),n(a)})}function ib(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xi,baseState:Xi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:Xi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rb(e){$.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=ib(e);t.next===null&&(t=e.alternate.memoizedState),yu(e,t.next.queue,{},Pn(e))}function Dh(){var e=dh(!1);return e=ob.bind(null,He,e.queue,!0,!1),Tn().memoizedState=e,[!1,e]}function ub(){var e=er(Ha)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:mu(e),t]}function sb(){var e=gu(Ha)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:mu(e),t]}function bi(){return Dt(Ts)}function Th(){var e=Tn(),t=yt.identifierPrefix;if(Ie){var n=Zl,a=Ql;n=(a&~(1<<32-Nn(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Lf++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=wT++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t}function Nh(){return Tn().memoizedState=qw.bind(null,He)}function qw(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Pn(n),l=xo(a),o=wo(n,l,a);o!==null&&(el(a,"refresh()",e),_t(o,n,a),du(o,n,a)),e=Zd(),t!=null&&o!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}n=n.return}}function Gw(e,t,n){var a=arguments;typeof a[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()."),a=Pn(e);var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};zc(e)?fb(t,l):(l=Ld(e,t,l,a),l!==null&&(el(a,"dispatch()",e),_t(l,e,a),db(l,t,a)))}function cb(e,t,n){var a=arguments;typeof a[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()."),a=Pn(e),yu(e,t,n,a)&&el(a,"setState()",e)}function yu(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zc(e))fb(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null)){var s=$.H;$.H=Ya;try{var d=t.lastRenderedState,g=o(d,n);if(l.hasEagerState=!0,l.eagerState=g,An(g,d))return ic(e,t,l,0),yt===null&&oc(),!1}catch{}finally{$.H=s}}if(n=Ld(e,t,l,a),n!==null)return _t(n,e,a),db(n,t,a),!0}return!1}function Oh(e,t,n,a){if($.T===null&&Ci===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."),a={lane:2,revertLane:lp(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},zc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ld(e,n,a,2),t!==null&&(el(2,"setOptimistic()",e),_t(t,e,2))}function zc(e){var t=e.alternate;return e===He||t!==null&&t===He}function fb(e,t){Hr=zf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function db(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,mo(e,n)}}function Ch(e){if(e!==null&&typeof e!="function"){var t=String(e);s1.has(t)||(s1.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ah(e,t,n,a){var l=e.memoizedState,o=n(a,l);if(e.mode&vn){pe(!0);try{o=n(a,l)}finally{pe(!1)}}o===void 0&&(t=M(t)||"Component",o1.has(t)||(o1.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=o==null?l:Fe({},l,o),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function hb(e,t,n,a,l,o,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate=="function"){if(n=d.shouldComponentUpdate(a,o,s),e.mode&vn){pe(!0);try{n=d.shouldComponentUpdate(a,o,s)}finally{pe(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",M(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!iu(n,a)||!iu(l,o):!0}function pb(e,t,n,a){var l=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==l&&(e=X(e)||"Component",e1.has(e)||(e1.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Dm.enqueueReplaceState(t,t.state,null))}function vi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Fe({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function mb(e){nm(e),console.warn(`%s
|
|
121
|
+
|
|
122
|
+
%s
|
|
123
|
+
`,kr?"An error occurred in the <"+kr+"> 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 gb(e){var t=kr?"The above error occurred in the <"+kr+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Tm||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var a=e.environmentName;e=[`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,X1+" "+e[0],Q1,id+a+id,Z1):e.splice(0,0,X1,Q1,id+a+id,Z1),e.unshift(console),a=GT.apply(console.error,e),a()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,e,t,n)}function yb(e){nm(e)}function Lc(e,t){try{kr=t.source?X(t.source):null,Tm=null;var n=t.value;if($.actQueue!==null)$.thrownErrors.push(n);else{var a=e.onUncaughtError;a(n,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function bb(e,t,n){try{kr=n.source?X(n.source):null,Tm=X(t);var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function _h(e,t,n){return n=xo(n),n.tag=vm,n.payload={element:null},n.callback=function(){se(t.source,Lc,e,t)},n}function Mh(e){return e=xo(e),e.tag=vm,e}function Uh(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var o=a.value;e.payload=function(){return l(o)},e.callback=function(){fy(n),se(a.source,bb,t,n,a)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){fy(n),se(a.source,bb,t,n,a),typeof l!="function"&&(Jo===null?Jo=new Set([this]):Jo.add(this)),vT(this,a),typeof l=="function"||(n.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.",X(n)||"Unknown")})}function Xw(e,t,n,a,l){if(n.flags|=32768,yl&&Du(e,l),a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ii(t,n,l,!0),Ie&&(Sl=!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return Sa===null?Gc():n.alternate===null&&At===no&&(At=kf),n.flags&=-257,n.flags|=65536,n.lanes=l,a===_f?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ep(e,a,l)),!1;case 22:return n.flags|=65536,a===_f?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ep(e,a,l)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return ep(e,a,l),Gc(),!1}if(Ie)return Sl=!0,t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==um&&ru(Qn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:a}),n))):(a!==um&&ru(Qn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:a}),n)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=Qn(a,n),l=_h(e.stateNode,a,l),Ec(e,l),At!==Go&&(At=Li)),!1;var o=Qn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:a}),n);if(ys===null?ys=[o]:ys.push(o),At!==Go&&(At=Li),t===null)return!0;a=Qn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=_h(n.stateNode,a,e),Ec(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Jo===null||!Jo.has(o))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Mh(l),Uh(l,e,n,a),Ec(n,l),!1}n=n.return}while(n!==null);return!1}function cn(e,t,n,a){t.child=e===null?qS(t,null,n,a):Ui(t,e.child,n,a)}function vb(e,t,n,a,l){n=n.render;var o=t.ref;if("ref"in a){var s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}else s=a;return pi(t),a=lh(e,t,n,s,o,l),d=ih(),e!==null&&!Gt?(rh(e,t,l),Vl(e,t,l)):(Ie&&d&&$d(t),t.flags|=1,cn(e,t,a,l),t.child)}function Sb(e,t,n,a,l){if(e===null){var o=n.type;return typeof o=="function"&&!Hd(o)&&o.defaultProps===void 0&&n.compare===null?(n=ci(o),t.tag=15,t.type=n,Lh(t,o),Eb(e,t,n,a,l)):(e=kd(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!$h(e,l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:iu,n(s,a)&&e.ref===t.ref)return Vl(e,t,l)}return t.flags|=1,e=Ll(o,a),e.ref=t.ref,e.return=t,t.child=e}function Eb(e,t,n,a,l){if(e!==null){var o=e.memoizedProps;if(iu(o,a)&&e.ref===t.ref&&t.type===e.type)if(Gt=!1,t.pendingProps=a=o,$h(e,l))(e.flags&131072)!==0&&(Gt=!0);else return t.lanes=e.lanes,Vl(e,t,l)}return zh(e,t,n,a,l)}function xb(e,t,n,a){var l=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Qu,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~o}else a=0,t.child=null;return wb(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mc(t,o!==null?o.cachePool:null),o!==null?ky(t,o):eh(t),Vy(t);else return a=t.lanes=536870912,wb(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(mc(t,o.cachePool),ky(t,o),Do(t),t.memoizedState=null):(e!==null&&mc(t,null),eh(t),Do(t));return cn(e,t,l,n),t.child}function bu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Qu,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wb(e,t,n,a,l){var o=Pd();return o=o===null?null:{parent:$t._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&mc(t,null),eh(t),Vy(t),e!==null&&Ii(e,t,a,!0),t.childLanes=l,null}function jc(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
135
|
+
- <Activity %s>
|
|
136
|
+
+ <Activity %s>`,n===!0?"hidden":n===!1?"hidden={false}":"hidden={...}",n?'mode="hidden"':'mode="visible"'),t=kc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rb(e,t,n){return Ui(t,e.child,null,n),e=jc(t,t.pendingProps),e.flags|=2,Fn(t),t.memoizedState=null,e}function Qw(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ie){if(a.mode==="hidden")return e=jc(t,a),t.lanes=536870912,bu(null,e);if(nh(t),(e=wt)?(n=Fv(e,ba),n=n!==null&&n.data===$i?n:null,n!==null&&(a={dehydrated:n,treeContext:gy(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=py(n),a.return=t,t.child=a,hn=t,wt=null)):n=null,n===null)throw sc(t,e),vo(t);return t.lanes=536870912,null}return jc(t,a)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(nh(t),l)if(t.flags&256)t.flags&=-257,t=Rb(e,t,n);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(by(),(n&536870912)!==0&&qc(t),Gt||Ii(e,t,n,!1),l=(n&e.childLanes)!==0,Gt||l){if(a=yt,a!==null&&(s=Ol(a,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,yn(e,s),_t(a,e,s),Nm;Gc(),t=Rb(e,t,n)}else e=o.treeContext,wt=Kn(s.nextSibling),hn=t,Ie=!0,ko=null,Sl=!1,ea=null,ba=!1,e!==null&&yy(t,e),t=jc(t,a),t.flags|=4096;return t}return o=e.child,a={mode:a.mode,children:a.children},(n&536870912)!==0&&(n&e.lanes)!==0&&qc(t),e=Ll(o,a),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function zh(e,t,n,a,l){if(n.prototype&&typeof n.prototype.render=="function"){var o=M(n)||"Unknown";c1[o]||(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.",o,o),c1[o]=!0)}return t.mode&vn&&$a.recordLegacyContextWarning(t,null),e===null&&(Lh(t,t.type),n.contextTypes&&(o=M(n)||"Unknown",d1[o]||(d1[o]=!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)",o)))),pi(t),n=lh(e,t,n,a,void 0,l),a=ih(),e!==null&&!Gt?(rh(e,t,l),Vl(e,t,l)):(Ie&&a&&$d(t),t.flags|=1,cn(e,t,n,l),t.child)}function Db(e,t,n,a,l,o){return pi(t),eo=-1,cs=e!==null&&e.type!==t.type,t.updateQueue=null,n=oh(t,a,n,l),By(e,t),a=ih(),e!==null&&!Gt?(rh(e,t,o),Vl(e,t,o)):(Ie&&a&&$d(t),t.flags|=1,cn(e,t,n,o),t.child)}function Tb(e,t,n,a,l){switch(p(t)){case!1:var o=t.stateNode,s=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,s,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var d=l&-l;if(t.lanes|=d,s=yt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=Mh(d),Uh(d,s,t,Qn(o,t)),Ec(t,d)}if(pi(t),t.stateNode===null){if(s=Ho,o=n.contextType,"contextType"in n&&o!==null&&(o===void 0||o.$$typeof!==pl)&&!u1.has(n)&&(u1.add(n),d=o===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 o!="object"?" However, it is set to a "+typeof o+".":o.$$typeof===Op?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",M(n)||"Component",d)),typeof o=="object"&&o!==null&&(s=Dt(o)),o=new n(a,s),t.mode&vn){pe(!0);try{o=new n(a,s)}finally{pe(!1)}}if(s=t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Dm,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=WS,typeof n.getDerivedStateFromProps=="function"&&s===null&&(s=M(n)||"Component",t1.has(s)||(t1.add(s),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.",s,o.state===null?"null":"undefined",s))),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"){var g=d=s=null;if(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(s="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0?g="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(g="UNSAFE_componentWillUpdate"),s!==null||d!==null||g!==null){o=M(n)||"Component";var b=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";a1.has(o)||(a1.add(o),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`,o,b,s!==null?`
|
|
142
|
+
`+s:"",d!==null?`
|
|
143
|
+
`+d:"",g!==null?`
|
|
144
|
+
`+g:""))}}o=t.stateNode,s=M(n)||"Component",o.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.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?",s),o.getDefaultProps&&!o.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.",s),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),n.childContextTypes&&!r1.has(n)&&(r1.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",s)),n.contextTypes&&!i1.has(n)&&(i1.add(n),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)",s)),typeof o.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.",s),n.prototype&&n.prototype.isPureReactComponent&&typeof o.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.",M(n)||"A pure component"),typeof o.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof o.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().",s),typeof o.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof o.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),d=o.props!==a,o.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),o.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.",s,s),typeof o.getSnapshotBeforeUpdate!="function"||typeof o.componentDidUpdate=="function"||n1.has(n)||(n1.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",M(n))),typeof o.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof o.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s),(d=o.state)&&(typeof d!="object"||Pt(d))&&console.error("%s.state: must be set to an object or null",s),typeof o.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Id(t),s=n.contextType,o.context=typeof s=="object"&&s!==null?Dt(s):Ho,o.state===a&&(s=M(n)||"Component",l1.has(s)||(l1.add(s),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.",s))),t.mode&vn&&$a.recordLegacyContextWarning(t,o),$a.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Ah(t,n,s,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),Dm.enqueueReplaceState(o,o.state,null)),pu(t,a,o,l),hu(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Ba)!==ze&&(t.flags|=134217728),o=!0}else if(e===null){o=t.stateNode;var A=t.memoizedProps;d=vi(n,A),o.props=d;var _=o.context;g=n.contextType,s=Ho,typeof g=="object"&&g!==null&&(s=Dt(g)),b=n.getDerivedStateFromProps,g=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(A||_!==s)&&pb(t,o,a,s),qo=!1;var N=t.memoizedState;o.state=N,pu(t,a,o,l),hu(),_=t.memoizedState,A||N!==_||qo?(typeof b=="function"&&(Ah(t,n,b,a),_=t.memoizedState),(d=qo||hb(t,n,d,a,N,_,s))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Ba)!==ze&&(t.flags|=134217728)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Ba)!==ze&&(t.flags|=134217728),t.memoizedProps=a,t.memoizedState=_),o.props=a,o.state=_,o.context=s,o=d):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Ba)!==ze&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,Wd(e,t),s=t.memoizedProps,g=vi(n,s),o.props=g,b=t.pendingProps,N=o.context,_=n.contextType,d=Ho,typeof _=="object"&&_!==null&&(d=Dt(_)),A=n.getDerivedStateFromProps,(_=typeof A=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==b||N!==d)&&pb(t,o,a,d),qo=!1,N=t.memoizedState,o.state=N,pu(t,a,o,l),hu();var k=t.memoizedState;s!==b||N!==k||qo||e!==null&&e.dependencies!==null&&fc(e.dependencies)?(typeof A=="function"&&(Ah(t,n,A,a),k=t.memoizedState),(g=qo||hb(t,n,g,a,N,k,d)||e!==null&&e.dependencies!==null&&fc(e.dependencies))?(_||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,k,d),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,k,d)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=k),o.props=a,o.state=k,o.context=d,o=g):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),o=!1)}if(d=o,Hc(e,t),s=(t.flags&128)!==0,d||s){if(d=t.stateNode,co(t),s&&typeof n.getDerivedStateFromError!="function")n=null,_n=-1;else if(n=CS(d),t.mode&vn){pe(!0);try{CS(d)}finally{pe(!1)}}t.flags|=1,e!==null&&s?(t.child=Ui(t,e.child,null,l),t.child=Ui(t,null,n,l)):cn(e,t,n,l),t.memoizedState=d.state,e=t.child}else e=Vl(e,t,l);return l=t.stateNode,o&&l.props!==a&&(Vr||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Vr=!0),e}function Nb(e,t,n,a){return hi(),t.flags|=256,cn(e,t,n,a),t.child}function Lh(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=M(t)||"Unknown",h1[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),h1[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=M(t)||"Unknown",f1[t]||(console.error("%s: Function components do not support contextType.",t),f1[t]=!0))}function jh(e){return{baseLanes:e,cachePool:Dy()}}function Hh(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Gn),e}function Ob(e,t,n){var a,l=t.pendingProps;h(t)&&(t.flags|=128);var o=!1,s=(t.flags&128)!==0;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(kt.current&us)!==0),a&&(o=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ie){if(o?Ro(t):Do(t),(e=wt)?(n=Fv(e,ba),n=n!==null&&n.data!==$i?n:null,n!==null&&(a={dehydrated:n,treeContext:gy(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=py(n),a.return=t,t.child=a,hn=t,wt=null)):n=null,n===null)throw sc(t,e),vo(t);return gp(n)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,o){Do(t);var g=t.mode;return d=kc({mode:"hidden",children:d},g),l=fi(l,g,n,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=jh(n),l.childLanes=Hh(e,a,n),t.memoizedState=Om,bu(null,l)}return Ro(t),kh(t,d)}var b=e.memoizedState;if(b!==null){var A=b.dehydrated;if(A!==null){if(s)t.flags&256?(Ro(t),t.flags&=-257,t=Vh(e,t,n)):t.memoizedState!==null?(Do(t),t.child=e.child,t.flags|=128,t=null):(Do(t),d=l.fallback,g=t.mode,l=kc({mode:"visible",children:l.children},g),d=fi(d,g,n,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Ui(t,e.child,null,n),l=t.child,l.memoizedState=jh(n),l.childLanes=Hh(e,a,n),t.memoizedState=Om,t=bu(null,l));else if(Ro(t),by(),(n&536870912)!==0&&qc(t),gp(A)){if(a=A.nextSibling&&A.nextSibling.dataset,a){d=a.dgst;var _=a.msg;g=a.stck;var N=a.cstck}o=_,a=d,l=g,A=N,d=o,g=A,d=Error(d||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=a,a=g===void 0?null:g,l={value:d,source:null,stack:a},typeof a=="string"&&rm.set(d,l),ru(l),t=Vh(e,t,n)}else if(Gt||Ii(e,t,n,!1),a=(n&e.childLanes)!==0,Gt||a){if(a=yt,a!==null&&(l=Ol(a,n),l!==0&&l!==b.retryLane))throw b.retryLane=l,yn(e,l),_t(a,e,l),Nm;mp(A)||Gc(),t=Vh(e,t,n)}else mp(A)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,wt=Kn(A.nextSibling),hn=t,Ie=!0,ko=null,Sl=!1,ea=null,ba=!1,e!==null&&yy(t,e),t=kh(t,l.children),t.flags|=4096);return t}}return o?(Do(t),d=l.fallback,g=t.mode,N=e.child,A=N.sibling,l=Ll(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,A!==null?d=Ll(A,d):(d=fi(d,g,n,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,bu(null,l),l=t.child,d=e.child.memoizedState,d===null?d=jh(n):(g=d.cachePool,g!==null?(N=$t._currentValue,g=g.parent!==N?{parent:N,pool:N}:g):g=Dy(),d={baseLanes:d.baseLanes|n,cachePool:g}),l.memoizedState=d,l.childLanes=Hh(e,a,n),t.memoizedState=Om,bu(e.child,l)):(b!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&qc(t),Ro(t),n=e.child,e=n.sibling,n=Ll(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function kh(e,t){return t=kc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function kc(e,t){return e=x(22,e,null,t),e.lanes=0,e}function Vh(e,t,n){return Ui(t,e.child,null,n),e=kh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cb(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Xd(e.return,t,n)}function Bh(e,t,n,a,l,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=n,s.tailMode=l,s.treeForkCount=o)}function Ab(e,t,n){var a=t.pendingProps,l=a.revealOrder,o=a.tail,s=a.children,d=kt.current;if((a=(d&us)!==0)?(d=d&Lr|us,t.flags|=128):d&=Lr,ce(kt,d,t),d=l??"null",l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!p1[d])if(p1[d]=!0,l==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(l==="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 l=="string")switch(l.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.',l,l.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.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);d=o??"null",Hf[d]||(o==null?(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&(Hf[d]=!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".')):o!=="visible"&&o!=="collapsed"&&o!=="hidden"?(Hf[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',o)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(Hf[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Pt(s)){for(d=0;d<s.length;d++)if(!Ly(s[d],d))break e}else if(d=Le(s),typeof d=="function"){if(d=d.call(s))for(var g=d.next(),b=0;!g.done;g=d.next()){if(!Ly(g.value,b))break e;b++}}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?',l);if(cn(e,t,s,n),Ie?(bo(),s=Zu):s=0,!a&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cb(e,n,t);else if(e.tag===19)Cb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&xc(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Bh(t,!1,l,n,o,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&xc(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Bh(t,!0,n,null,o,s);break;case"together":Bh(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Vl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n=-1,Qo|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ii(e,t,n,!1),(n&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,n=Ll(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ll(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $h(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fc(e)))}function Zw(e,t,n){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),So(t,$t,e.memoizedState.cache),hi();break;case 27:case 5:fe(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:So(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var a=t.stateNode;a.effectDuration=-0,a.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,nh(t),null;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ro(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Ob(e,t,n):(Ro(t),e=Vl(e,t,n),e!==null?e.sibling:null);Ro(t);break;case 19:var l=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ii(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return Ab(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ce(kt,kt.current,t),a)break;return null;case 22:return t.lanes=0,xb(e,t,n,t.pendingProps);case 24:So(t,$t,e.memoizedState.cache)}return Vl(e,t,n)}function Yh(e,t,n){if(t._debugNeedsRemount&&e!==null){n=kd(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var a=t.return;if(a===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===a.child)a.child=n;else{var l=a.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=n}return t=a.deletions,t===null?(a.deletions=[e],a.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Gt=!0;else{if(!$h(e,n)&&(t.flags&128)===0)return Gt=!1,Zw(e,t,n);Gt=(e.flags&131072)!==0}else Gt=!1,(a=Ie)&&(bo(),a=(t.flags&1048576)!==0),a&&(a=t.index,bo(),my(t,Zu,a));switch(t.lanes=0,t.tag){case 16:e:if(a=t.pendingProps,e=Eo(t.elementType),t.type=e,typeof e=="function")Hd(e)?(a=vi(e,a),t.tag=1,t.type=e=ci(e),t=Tb(null,t,e,a,n)):(t.tag=0,Lh(t,e),t.type=e=ci(e),t=zh(null,t,e,a,n));else{if(e!=null){if(l=e.$$typeof,l===zu){t.tag=11,t.type=e=jd(e),t=vb(null,t,e,a,n);break e}else if(l===lf){t.tag=14,t=Sb(null,t,e,a,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===In&&(t=" Did you wrap a component in React.lazy() more than once?"),n=M(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return zh(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=vi(a,t.pendingProps),Tb(e,t,a,l,n);case 3:e:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");a=t.pendingProps;var o=t.memoizedState;l=o.element,Wd(e,t),pu(t,a,null,n);var s=t.memoizedState;if(a=s.cache,So(t,$t,a),a!==o.cache&&Qd(t,[$t],n,!0),hu(),a=s.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Nb(e,t,a,n);break e}else if(a!==l){l=Qn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),ru(l),t=Nb(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,wt=Kn(e.firstChild),hn=t,Ie=!0,ko=null,Sl=!1,ea=null,ba=!0,n=qS(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hi(),a===l){t=Vl(e,t,n);break e}cn(e,t,a,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=t0(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ie||(n=t.type,e=t.pendingProps,a=xe(_o.current),a=Jc(a).createElement(n),a[dn]=t,a[On]=e,fn(a,n,e),ve(a),t.stateNode=a):t.memoizedState=t0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&Ie&&(a=xe(_o.current),l=oe(),a=t.stateNode=Wv(t.type,t.pendingProps,a,l,!1),Sl||(l=$v(a,t.type,t.pendingProps,l),l!==null&&(di(t,0).serverProps=l)),hn=t,ba=!0,l=wt,Co(t.type)?(Km=l,wt=Kn(a.firstChild)):wt=l),cn(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ie&&(o=oe(),a=Nd(t.type,o.ancestorInfo),l=wt,(s=!l)||(s=LR(l,t.type,t.pendingProps,ba),s!==null?(t.stateNode=s,Sl||(o=$v(s,t.type,t.pendingProps,o),o!==null&&(di(t,0).serverProps=o)),hn=t,wt=Kn(s.firstChild),ba=!1,o=!0):o=!1,s=!o),s&&(a&&sc(t,l),vo(t))),fe(t),l=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,hp(l,o)?a=null:s!==null&&hp(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=lh(e,t,Vw,null,null,n),Ts._currentValue=l),Hc(e,t),cn(e,t,a,n),t.child;case 6:return e===null&&Ie&&(n=t.pendingProps,e=oe(),a=e.ancestorInfo.current,n=a!=null?Ws(n,a.tag,e.ancestorInfo.implicitRootScope):!0,e=wt,(a=!e)||(a=jR(e,t.pendingProps,ba),a!==null?(t.stateNode=a,hn=t,wt=null,a=!0):a=!1,a=!a),a&&(n&&sc(t,e),vo(t))),null;case 13:return Ob(e,t,n);case 4:return Ce(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ui(t,null,a,n):cn(e,t,a,n),t.child;case 11:return vb(e,t,t.type,t.pendingProps,n);case 7:return cn(e,t,t.pendingProps,n),t.child;case 8:return cn(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,a=t.stateNode,a.effectDuration=-0,a.passiveEffectDuration=-0,cn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.type,l=t.pendingProps,o=l.value,"value"in l||m1||(m1=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),So(t,a,o),cn(e,t,l.children,n),t.child;case 9:return l=t.type._context,a=t.pendingProps.children,typeof a!="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."),pi(t),l=Dt(l),a=mm(a,l,void 0),t.flags|=1,cn(e,t,a,n),t.child;case 14:return Sb(e,t,t.type,t.pendingProps,n);case 15:return Eb(e,t,t.type,t.pendingProps,n);case 19:return Ab(e,t,n);case 31:return Qw(e,t,n);case 22:return xb(e,t,n,t.pendingProps);case 24:return pi(t),a=Dt($t),e===null?(l=Pd(),l===null&&(l=yt,o=Zd(),l.pooledCache=o,mi(o),o!==null&&(l.pooledCacheLanes|=n),l=o),t.memoizedState={parent:a,cache:l},Id(t),So(t,$t,l)):((e.lanes&n)!==0&&(Wd(e,t),pu(t,null,null,n),hu()),l=e.memoizedState,o=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),So(t,$t,a)):(a=o.cache,So(t,$t,a),a!==l.cache&&Qd(t,[$t],n,!0))),cn(e,t,t.pendingProps.children,n),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 Bl(e){e.flags|=4}function qh(e,t,n,a,l){if((t=(e.mode&pT)!==ze)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(sv())e.flags|=8192;else throw Mi=_f,ym}else e.flags&=-16777217}function _b(e,t){if(t.type!=="stylesheet"||(t.state.loading&wa)!==Gi)e.flags&=-16777217;else if(e.flags|=16777216,!i0(t))if(sv())e.flags|=8192;else throw Mi=_f,ym}function Vc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Aa():536870912,e.lanes|=t,ki|=t)}function vu(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)if((e.mode&Ge)!==ze){for(var l=e.selfBaseDuration,o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,l+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&Ge)!==ze){l=e.actualDuration,o=e.selfBaseDuration;for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,l+=s.actualDuration,o+=s.treeBaseDuration,s=s.sibling;e.actualDuration=l,e.treeBaseDuration=o}else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Jw(e,t,n){var a=t.pendingProps;switch(Yd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return bt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Hl($t,t),Z(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ki(t)?(Gd(),Bl(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qd())),bt(t),null;case 26:var l=t.type,o=t.memoizedState;return e===null?(Bl(t),o!==null?(bt(t),_b(t,o)):(bt(t),qh(t,l,null,a,n))):o?o!==e.memoizedState?(Bl(t),bt(t),_b(t,o)):(bt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Bl(t),bt(t),qh(t,l,e,a,n)),null;case 27:if(de(t),n=xe(_o.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Bl(t);else{if(!a){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 bt(t),null}e=oe(),Ki(t)?vy(t):(e=Wv(l,a,n,e,!0),t.stateNode=e,Bl(t))}return bt(t),null;case 5:if(de(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Bl(t);else{if(!a){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 bt(t),null}var s=oe();if(Ki(t))vy(t);else{switch(o=xe(_o.current),Nd(l,s.ancestorInfo),s=s.context,o=Jc(o),s){case Zr:o=o.createElementNS(yr,l);break;case ad:o=o.createElementNS(df,l);break;default:switch(l){case"svg":o=o.createElementNS(yr,l);break;case"math":o=o.createElementNS(df,l);break;case"script":o=o.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?o.createElement(l,{is:a.is}):o.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(o)!=="[object HTMLUnknownElement]"||Va.call(V1,l)||(V1[l]=!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.",l)))}}o[dn]=t,o[On]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(fn(o,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Bl(t)}}return bt(t),qh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Bl(t);else{if(typeof a!="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=xe(_o.current),n=oe(),Ki(t)){if(e=t.stateNode,n=t.memoizedProps,l=!Sl,a=null,o=hn,o!==null)switch(o.tag){case 3:l&&(l=Kv(e,n,a),l!==null&&(di(t,0).serverProps=l));break;case 27:case 5:a=o.memoizedProps,l&&(l=Kv(e,n,a),l!==null&&(di(t,0).serverProps=l))}e[dn]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||jv(e.nodeValue,n)),e||vo(t,!0)}else l=n.ancestorInfo.current,l!=null&&Ws(a,l.tag,n.ancestorInfo.implicitRootScope),e=Jc(e).createTextNode(a),e[dn]=t,t.stateNode=e}return bt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ki(t),n!==null){if(e===null){if(!a)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[dn]=t,bt(t),(t.mode&Ge)!==ze&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Gd(),hi(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,bt(t),(t.mode&Ge)!==ze&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=qd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fn(t),t):(Fn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return bt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=a,o=Ki(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");o[dn]=t,bt(t),(t.mode&Ge)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else Gd(),hi(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,bt(t),(t.mode&Ge)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=qd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Fn(t),t):(Fn(t),null)}return Fn(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&Ge)!==ze&&cu(t),t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vc(t,t.updateQueue),bt(t),(t.mode&Ge)!==ze&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Z(t),e===null&&ip(t.stateNode.containerInfo),bt(t),null;case 10:return Hl(t.type,t),bt(t),null;case 19:if(I(kt,t),a=t.memoizedState,a===null)return bt(t),null;if(l=(t.flags&128)!==0,o=a.rendering,o===null)if(l)vu(a,!1);else{if(At!==no||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=xc(e),o!==null){for(t.flags|=128,vu(a,!1),e=o.updateQueue,t.updateQueue=e,Vc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hy(n,e),n=n.sibling;return ce(kt,kt.current&Lr|us,t),Ie&&jl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ln()>Gf&&(t.flags|=128,l=!0,vu(a,!1),t.lanes=4194304)}else{if(!l)if(e=xc(o),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Vc(t,e),vu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ie)return bt(t),null}else 2*ln()-a.renderingStartTime>Gf&&n!==536870912&&(t.flags|=128,l=!0,vu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ln(),e.sibling=null,n=kt.current,n=l?n&Lr|us:n&Lr,ce(kt,n,t),Ie&&jl(t,a.treeForkCount),e):(bt(t),null);case 22:case 23:return Fn(t),th(t),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),n=t.updateQueue,n!==null&&Vc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&I(Ai,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hl($t,t),bt(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 Fw(e,t){switch(Yd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ge)!==ze&&cu(t),t):null;case 3:return Hl($t,t),Z(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return de(t),null;case 31:if(t.memoizedState!==null){if(Fn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ge)!==ze&&cu(t),t):null;case 13:if(Fn(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.");hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ge)!==ze&&cu(t),t):null;case 19:return I(kt,t),null;case 4:return Z(t),null;case 10:return Hl(t.type,t),null;case 22:case 23:return Fn(t),th(t),e!==null&&I(Ai,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ge)!==ze&&cu(t),t):null;case 24:return Hl($t,t),null;case 25:return null;default:return null}}function Mb(e,t){switch(Yd(t),t.tag){case 3:Hl($t,t),Z(t);break;case 26:case 27:case 5:de(t);break;case 4:Z(t);break;case 31:t.memoizedState!==null&&Fn(t);break;case 13:Fn(t);break;case 19:I(kt,t);break;case 10:Hl(t.type,t);break;case 22:case 23:Fn(t),th(t),e!==null&&I(Ai,t);break;case 24:Hl($t,t)}}function rl(e){return(e.mode&Ge)!==ze}function Ub(e,t){rl(e)?(il(),Su(t,e),ol()):Su(t,e)}function Gh(e,t,n){rl(e)?(il(),ar(n,e,t),ol()):ar(n,e,t)}function Su(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e&&(a=void 0,(e&Mn)!==Uf&&(Gr=!0),a=se(t,ST,n),(e&Mn)!==Uf&&(Gr=!1),a!==void 0&&typeof a!="function")){var o=void 0;o=(n.tag&na)!==0?"useLayoutEffect":(n.tag&Mn)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=a===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof a.then=="function"?`
|
|
146
|
+
|
|
147
|
+
It looks like you wrote `+o+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
148
|
+
|
|
149
|
+
`+o+`(() => {
|
|
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: "+a,se(t,function(d,g){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,g)},o,s)}n=n.next}while(n!==l)}}catch(d){ct(t,t.return,d)}}function ar(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){var s=a.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&Mn)!==Uf&&(Gr=!0),l=t,se(l,ET,l,n,d),(e&Mn)!==Uf&&(Gr=!1))}a=a.next}while(a!==o)}}catch(g){ct(t,t.return,g)}}function zb(e,t){rl(e)?(il(),Su(t,e),ol()):Su(t,e)}function Xh(e,t,n){rl(e)?(il(),ar(n,e,t),ol()):ar(n,e,t)}function Lb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Vr||(n.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.",X(e)||"instance"),n.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.",X(e)||"instance"));try{se(e,Hy,t,n)}catch(a){ct(e,e.return,a)}}}function Pw(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Kw(e,t){var n=t.memoizedProps,a=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Vr||(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.",X(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.",X(e)||"instance"));try{var l=vi(e.type,n),o=se(e,Pw,t,l,a);n=g1,o!==void 0||n.has(e.type)||(n.add(e.type),se(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(s){ct(e,e.return,s)}}function jb(e,t,n){n.props=vi(e.type,e.memoizedProps),n.state=e.memoizedState,rl(e)?(il(),se(e,LS,e,t,n),ol()):se(e,LS,e,t,n)}function Iw(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(rl(e))try{il(),e.refCleanup=t(n)}finally{ol()}else e.refCleanup=t(n);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().",X(e)),t.current=n}}function Eu(e,t){try{se(e,Iw,e)}catch(n){ct(e,t,n)}}function ul(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{if(rl(e))try{il(),se(e,a)}finally{ol(e)}else se(e,a)}catch(l){ct(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(rl(e))try{il(),se(e,n,null)}finally{ol(e)}else se(e,n,null)}catch(l){ct(e,t,l)}else n.current=null}function Hb(e,t,n,a){var l=e.memoizedProps,o=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",Nf&&(t="nested-update"),typeof l=="function"&&l(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof s=="function"&&s(o,t,a,n)}function Ww(e,t,n,a){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",Nf&&(t="nested-update"),typeof l=="function"&&l(e,t,a,n)}function kb(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{se(e,wR,a,t,n,e)}catch(l){ct(e,e.return,l)}}function Qh(e,t,n){try{se(e,DR,e.stateNode,e.type,n,t,e)}catch(a){ct(e,e.return,a)}}function Vb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Co(e.type)||e.tag===4}function Zh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vb(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&&Co(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 Jh(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(Qv(n),(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t)):(Qv(n),t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zl));else if(a!==4&&(a===27&&Co(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jh(e,t,n),e=e.sibling;e!==null;)Jh(e,t,n),e=e.sibling}function Bc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Co(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Bc(e,t,n),e=e.sibling;e!==null;)Bc(e,t,n),e=e.sibling}function eR(e){for(var t,n=e.return;n!==null;){if(Vb(n)){t=n;break}n=n.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,n=Zh(e),Bc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Xv(n),t.flags&=-33),t=Zh(e),Bc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=Zh(e),Jh(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Bb(e){var t=e.stateNode,n=e.memoizedProps;try{se(e,$R,e.type,n,t,e)}catch(a){ct(e,e.return,a)}}function $b(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 tR(e,t){if(e=e.containerInfo,Jm=rd,e=ay(e),Ad(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,d=-1,g=-1,b=0,A=0,_=e,N=null;t:for(;;){for(var k;_!==n||l!==0&&_.nodeType!==3||(d=s+l),_!==o||a!==0&&_.nodeType!==3||(g=s+a),_.nodeType===3&&(s+=_.nodeValue.length),(k=_.firstChild)!==null;)N=_,_=k;for(;;){if(_===e)break t;if(N===n&&++b===l&&(d=s),N===o&&++A===a&&(g=s),(k=_.nextSibling)!==null)break;_=N,N=_.parentNode}_=k}n=d===-1||g===-1?null:{start:d,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fm={focusedElem:e,selectionRange:n},rd=!1,rn=t;rn!==null;)if(t=rn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rn=e;else for(;rn!==null;){switch(e=t=rn,n=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)l=e[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&n!==null&&Kw(e,n);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)pp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&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,rn=e;break}rn=t.return}}function Yb(e,t,n){var a=Zn(),l=tl(),o=al(),s=ll(),d=n.flags;switch(n.tag){case 0:case 11:case 15:sl(e,n),d&4&&Ub(n,na|Ea);break;case 1:if(sl(e,n),d&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||Vr||(e.props!==n.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.",X(n)||"instance"),e.state!==n.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.",X(n)||"instance")),rl(n)?(il(),se(n,gm,n,e),ol()):se(n,gm,n,e);else{var g=vi(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||Vr||(e.props!==n.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.",X(n)||"instance"),e.state!==n.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.",X(n)||"instance")),rl(n)?(il(),se(n,MS,n,e,g,t,e.__reactInternalSnapshotBeforeUpdate),ol()):se(n,MS,n,e,g,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Lb(n),d&512&&Eu(n,n.return);break;case 3:if(t=kl(),sl(e,n),d&64&&(d=n.updateQueue,d!==null)){if(g=null,n.child!==null)switch(n.child.tag){case 27:case 5:g=n.child.stateNode;break;case 1:g=n.child.stateNode}try{se(n,Hy,d,g)}catch(A){ct(n,n.return,A)}}e.effectDuration+=hc(t);break;case 27:t===null&&d&4&&Bb(n);case 26:case 5:if(sl(e,n),t===null){if(d&4)kb(n);else if(d&64){e=n.type,t=n.memoizedProps,g=n.stateNode;try{se(n,RR,g,e,t,n)}catch(A){ct(n,n.return,A)}}}d&512&&Eu(n,n.return);break;case 12:if(d&4){d=kl(),sl(e,n),e=n.stateNode,e.effectDuration+=su(d);try{se(n,Hb,n,t,Vo,e.effectDuration)}catch(A){ct(n,n.return,A)}}else sl(e,n);break;case 31:sl(e,n),d&4&&Xb(e,n);break;case 13:sl(e,n),d&4&&Qb(e,n),d&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=cR.bind(null,n),HR(e,d))));break;case 22:if(d=n.memoizedState!==null||to,!d){t=t!==null&&t.memoizedState!==null||Xt,g=to;var b=Xt;to=d,(Xt=t)&&!b?(cl(e,n,(n.subtreeFlags&8772)!==0),(n.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&ac(n,Oe,Ue)):sl(e,n),to=g,Xt=b}break;case 30:break;default:sl(e,n)}(n.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&((Mt||.05<Ct)&&Wa(n,Oe,Ue,Ct,Tt),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<Ue-Oe&&($b(n.return.alternate,n.return)||Ia(n,Oe,Ue,"Mount"))),Jn(a),nl(l),Tt=o,Mt=s}function qb(e){var t=e.alternate;t!==null&&(e.alternate=null,qb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&U(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 $l(e,t,n){for(n=n.child;n!==null;)Gb(e,t,n),n=n.sibling}function Gb(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(mr,n)}catch(b){gl||(gl=!0,console.error("React instrumentation encountered an error: %o",b))}var a=Zn(),l=tl(),o=al(),s=ll();switch(n.tag){case 26:Xt||ul(n,t),$l(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:Xt||ul(n,t);var d=Qt,g=Yn;Co(n.type)&&(Qt=n.stateNode,Yn=!1),$l(e,t,n),se(n,Au,n.stateNode),Qt=d,Yn=g;break;case 5:Xt||ul(n,t);case 6:if(d=Qt,g=Yn,Qt=null,$l(e,t,n),Qt=d,Yn=g,Qt!==null)if(Yn)try{se(n,OR,Qt,n.stateNode)}catch(b){ct(n,t,b)}else try{se(n,NR,Qt,n.stateNode)}catch(b){ct(n,t,b)}break;case 18:Qt!==null&&(Yn?(e=Qt,Zv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),fr(e)):Zv(Qt,n.stateNode));break;case 4:d=Qt,g=Yn,Qt=n.stateNode.containerInfo,Yn=!0,$l(e,t,n),Qt=d,Yn=g;break;case 0:case 11:case 14:case 15:ar(Mn,n,t),Xt||Gh(n,t,na),$l(e,t,n);break;case 1:Xt||(ul(n,t),d=n.stateNode,typeof d.componentWillUnmount=="function"&&jb(n,t,d)),$l(e,t,n);break;case 21:$l(e,t,n);break;case 22:Xt=(d=Xt)||n.memoizedState!==null,$l(e,t,n),Xt=d;break;default:$l(e,t,n)}(n.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(n,Oe,Ue,Ct,Tt),Jn(a),nl(l),Tt=o,Mt=s}function Xb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{se(t,VR,e)}catch(n){ct(t,t.return,n)}}}function Qb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{se(t,BR,e)}catch(n){ct(t,t.return,n)}}function nR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new y1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new y1),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function $c(e,t){var n=nR(e);t.forEach(function(a){if(!n.has(a)){if(n.add(a),yl)if(Br!==null&&$r!==null)Du($r,Br);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=fR.bind(null,e,a);a.then(l,l)}})}function Bn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=e,o=t,s=n[a],d=Zn(),g=o;e:for(;g!==null;){switch(g.tag){case 27:if(Co(g.type)){Qt=g.stateNode,Yn=!1;break e}break;case 5:Qt=g.stateNode,Yn=!1;break e;case 3:case 4:Qt=g.stateNode.containerInfo,Yn=!0;break e}g=g.return}if(Qt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Gb(l,o,s),Qt=null,Yn=!1,(s.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&Ia(s,Oe,Ue,"Unmount"),Jn(d),l=s,o=l.alternate,o!==null&&(o.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Zb(t,e),t=t.sibling}function Zb(e,t){var n=Zn(),a=tl(),l=al(),o=ll(),s=e.alternate,d=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bn(t,e),$n(e),d&4&&(ar(Mn|Ea,e,e.return),Su(Mn|Ea,e),Gh(e,e.return,na|Ea));break;case 1:if(Bn(t,e),$n(e),d&512&&(Xt||s===null||ul(s,s.return)),d&64&&to&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var g=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=g===null?s:g.concat(s)}break;case 26:if(g=qa,Bn(t,e),$n(e),d&512&&(Xt||s===null||ul(s,s.return)),d&4){var b=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":b=g.getElementsByTagName("title")[0],(!b||b[Hu]||b[dn]||b.namespaceURI===yr||b.hasAttribute("itemprop"))&&(b=g.createElement(d),g.head.insertBefore(b,g.querySelector("head > title"))),fn(b,d,s),b[dn]=e,ve(b),d=b;break e;case"link":var A=l0("link","href",g).get(d+(s.href||""));if(A){for(var _=0;_<A.length;_++)if(b=A[_],b.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&b.getAttribute("rel")===(s.rel==null?null:s.rel)&&b.getAttribute("title")===(s.title==null?null:s.title)&&b.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(_,1);break t}}b=g.createElement(d),fn(b,d,s),g.head.appendChild(b);break;case"meta":if(A=l0("meta","content",g).get(d+(s.content||""))){for(_=0;_<A.length;_++)if(b=A[_],rt(s.content,"content"),b.getAttribute("content")===(s.content==null?null:""+s.content)&&b.getAttribute("name")===(s.name==null?null:s.name)&&b.getAttribute("property")===(s.property==null?null:s.property)&&b.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&b.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(_,1);break t}}b=g.createElement(d),fn(b,d,s),g.head.appendChild(b);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}b[dn]=e,ve(b),d=b}e.stateNode=d}else o0(g,e.type,e.stateNode);else e.stateNode=a0(g,d,e.memoizedProps);else b!==d?(b===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):b.count--,d===null?o0(g,e.type,e.stateNode):a0(g,d,e.memoizedProps)):d===null&&e.stateNode!==null&&Qh(e,e.memoizedProps,s.memoizedProps)}break;case 27:Bn(t,e),$n(e),d&512&&(Xt||s===null||ul(s,s.return)),s!==null&&d&4&&Qh(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Bn(t,e),$n(e),d&512&&(Xt||s===null||ul(s,s.return)),e.flags&32){g=e.stateNode;try{se(e,Xv,g)}catch(ue){ct(e,e.return,ue)}}d&4&&e.stateNode!=null&&(g=e.memoizedProps,Qh(e,g,s!==null?s.memoizedProps:g)),d&1024&&(Cm=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Bn(t,e),$n(e),d&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.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,g=e.stateNode;try{se(e,TR,g,s,d)}catch(ue){ct(e,e.return,ue)}}break;case 3:if(g=kl(),ld=null,b=qa,qa=Fc(t.containerInfo),Bn(t,e),qa=b,$n(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{se(e,kR,t.containerInfo)}catch(ue){ct(e,e.return,ue)}Cm&&(Cm=!1,Jb(e)),t.effectDuration+=hc(g);break;case 4:d=qa,qa=Fc(e.stateNode.containerInfo),Bn(t,e),$n(e),qa=d;break;case 12:d=kl(),Bn(t,e),$n(e),e.stateNode.effectDuration+=su(d);break;case 31:Bn(t,e),$n(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,$c(e,d)));break;case 13:Bn(t,e),$n(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(qf=ln()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,$c(e,d)));break;case 22:g=e.memoizedState!==null;var N=s!==null&&s.memoizedState!==null,k=to,ne=Xt;if(to=k||g,Xt=ne||N,Bn(t,e),Xt=ne,to=k,N&&!g&&!k&&!ne&&(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&ac(e,Oe,Ue),$n(e),d&8192)e:for(t=e.stateNode,t._visibility=g?t._visibility&~Qu:t._visibility|Qu,!g||s===null||N||to||Xt||(Si(e),(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&Ia(e,Oe,Ue,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){N=s=t;try{b=N.stateNode,g?se(N,AR,b):se(N,UR,N.stateNode,N.memoizedProps)}catch(ue){ct(N,N.return,ue)}}}else if(t.tag===6){if(s===null){N=t;try{A=N.stateNode,g?se(N,_R,A):se(N,zR,A,N.memoizedProps)}catch(ue){ct(N,N.return,ue)}}}else if(t.tag===18){if(s===null){N=t;try{_=N.stateNode,g?se(N,CR,_):se(N,MR,N.stateNode)}catch(ue){ct(N,N.return,ue)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,$c(e,s))));break;case 19:Bn(t,e),$n(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,$c(e,d)));break;case 30:break;case 21:break;default:Bn(t,e),$n(e)}(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&((Mt||.05<Ct)&&Wa(e,Oe,Ue,Ct,Tt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Ue-Oe&&($b(e.return.alternate,e.return)||Ia(e,Oe,Ue,"Mount"))),Jn(n),nl(a),Tt=l,Mt=o}function $n(e){var t=e.flags;if(t&2){try{se(e,eR,e)}catch(n){ct(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Yb(e,t.alternate,t),t=t.sibling}function Fb(e){var t=Zn(),n=tl(),a=al(),l=ll();switch(e.tag){case 0:case 11:case 14:case 15:Gh(e,e.return,na),Si(e);break;case 1:ul(e,e.return);var o=e.stateNode;typeof o.componentWillUnmount=="function"&&jb(e,e.return,o),Si(e);break;case 27:se(e,Au,e.stateNode);case 26:case 5:ul(e,e.return),Si(e);break;case 22:e.memoizedState===null&&Si(e);break;case 30:Si(e);break;default:Si(e)}(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(e,Oe,Ue,Ct,Tt),Jn(t),nl(n),Tt=a,Mt=l}function Si(e){for(e=e.child;e!==null;)Fb(e),e=e.sibling}function Pb(e,t,n,a){var l=Zn(),o=tl(),s=al(),d=ll(),g=n.flags;switch(n.tag){case 0:case 11:case 15:cl(e,n,a),Ub(n,na);break;case 1:if(cl(e,n,a),t=n.stateNode,typeof t.componentDidMount=="function"&&se(n,gm,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{se(n,kw,t,e)}catch(b){ct(n,n.return,b)}}a&&g&64&&Lb(n),Eu(n,n.return);break;case 27:Bb(n);case 26:case 5:cl(e,n,a),a&&t===null&&g&4&&kb(n),Eu(n,n.return);break;case 12:if(a&&g&4){g=kl(),cl(e,n,a),a=n.stateNode,a.effectDuration+=su(g);try{se(n,Hb,n,t,Vo,a.effectDuration)}catch(b){ct(n,n.return,b)}}else cl(e,n,a);break;case 31:cl(e,n,a),a&&g&4&&Xb(e,n);break;case 13:cl(e,n,a),a&&g&4&&Qb(e,n);break;case 22:n.memoizedState===null&&cl(e,n,a),Eu(n,n.return);break;case 30:break;default:cl(e,n,a)}(n.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(n,Oe,Ue,Ct,Tt),Jn(l),nl(o),Tt=s,Mt=d}function cl(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Pb(e,t.alternate,t,n),t=t.sibling}function Fh(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&mi(e),n!=null&&uu(n))}function Ph(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(mi(t),e!=null&&uu(e))}function ka(e,t,n,a,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var o=t.sibling;Kb(e,t,n,a,o!==null?o.actualStartTime:l),t=o}}function Kb(e,t,n,a,l){var o=Zn(),s=tl(),d=al(),g=ll(),b=Lo,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ge)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&lc(t,t.actualStartTime,l,Kt,n),ka(e,t,n,a,l),A&2048&&zb(t,Un|Ea);break;case 1:(t.mode&Ge)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?Md(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&lc(t,t.actualStartTime,l,Kt,n)),ka(e,t,n,a,l);break;case 3:var _=kl(),N=Kt;Kt=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,ka(e,t,n,a,l),Kt=N,A&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),a=t.memoizedState.cache,a!==n&&(mi(a),n!=null&&uu(n))),e.passiveEffectDuration+=hc(_);break;case 12:if(A&2048){A=kl(),ka(e,t,n,a,l),e=t.stateNode,e.passiveEffectDuration+=su(A);try{se(t,Ww,t,t.alternate,Vo,e.passiveEffectDuration)}catch(k){ct(t,t.return,k)}}else ka(e,t,n,a,l);break;case 31:A=Kt,_=t.alternate!==null?t.alternate.memoizedState:null,N=t.memoizedState,_!==null&&N===null?(N=t.deletions,N!==null&&0<N.length&&N[0].tag===18?(Kt=!1,_=_.hydrationErrors,_!==null&&Md(t,t.actualStartTime,l,_)):Kt=!0):Kt=!1,ka(e,t,n,a,l),Kt=A;break;case 13:A=Kt,_=t.alternate!==null?t.alternate.memoizedState:null,N=t.memoizedState,_===null||_.dehydrated===null||N!==null&&N.dehydrated!==null?Kt=!1:(N=t.deletions,N!==null&&0<N.length&&N[0].tag===18?(Kt=!1,_=_.hydrationErrors,_!==null&&Md(t,t.actualStartTime,l,_)):Kt=!0),ka(e,t,n,a,l),Kt=A;break;case 23:break;case 22:N=t.stateNode,_=t.alternate,t.memoizedState!==null?N._visibility&Xl?ka(e,t,n,a,l):xu(e,t,n,a,l):N._visibility&Xl?ka(e,t,n,a,l):(N._visibility|=Xl,lr(e,t,n,a,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&Ge)===ze||Kt||(e=t.actualStartTime,0<=e&&.05<l-e&&ac(t,e,l),0<=Oe&&0<=Ue&&.05<Ue-Oe&&ac(t,Oe,Ue))),A&2048&&Fh(_,t);break;case 24:ka(e,t,n,a,l),A&2048&&Ph(t.alternate,t);break;default:ka(e,t,n,a,l)}(t.mode&Ge)!==ze&&((e=!Kt&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<l-n&&Ia(t,n,l,"Mount")),0<=Oe&&0<=Ue&&((Mt||.05<Ct)&&Wa(t,Oe,Ue,Ct,Tt),e&&.05<Ue-Oe&&Ia(t,Oe,Ue,"Mount"))),Jn(o),nl(s),Tt=d,Mt=g,Lo=b}function lr(e,t,n,a,l,o){for(l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var s=t.sibling;Ib(e,t,n,a,l,s!==null?s.actualStartTime:o),t=s}}function Ib(e,t,n,a,l,o){var s=Zn(),d=tl(),g=al(),b=ll(),A=Lo;l&&(t.mode&Ge)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&lc(t,t.actualStartTime,o,Kt,n);var _=t.flags;switch(t.tag){case 0:case 11:case 15:lr(e,t,n,a,l,o),zb(t,Un);break;case 23:break;case 22:var N=t.stateNode;t.memoizedState!==null?N._visibility&Xl?lr(e,t,n,a,l,o):xu(e,t,n,a,o):(N._visibility|=Xl,lr(e,t,n,a,l,o)),l&&_&2048&&Fh(t.alternate,t);break;case 24:lr(e,t,n,a,l,o),l&&_&2048&&Ph(t.alternate,t);break;default:lr(e,t,n,a,l,o)}(t.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(t,Oe,Ue,Ct,Tt),Jn(s),nl(d),Tt=g,Mt=b,Lo=A}function xu(e,t,n,a,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var o=t.child;o!==null;){t=o.sibling;var s=e,d=n,g=a,b=t!==null?t.actualStartTime:l,A=Lo;(o.mode&Ge)!==ze&&0<o.actualStartTime&&(o.flags&1)!==0&&lc(o,o.actualStartTime,b,Kt,d);var _=o.flags;switch(o.tag){case 22:xu(s,o,d,g,b),_&2048&&Fh(o.alternate,o);break;case 24:xu(s,o,d,g,b),_&2048&&Ph(o.alternate,o);break;default:xu(s,o,d,g,b)}Lo=A,o=t}}function or(e,t,n){if(e.subtreeFlags&ds)for(e=e.child;e!==null;)Wb(e,t,n),e=e.sibling}function Wb(e,t,n){switch(e.tag){case 26:or(e,t,n),e.flags&ds&&e.memoizedState!==null&&GR(n,qa,e.memoizedState,e.memoizedProps);break;case 5:or(e,t,n);break;case 3:case 4:var a=qa;qa=Fc(e.stateNode.containerInfo),or(e,t,n),qa=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ds,ds=16777216,or(e,t,n),ds=a):or(e,t,n));break;default:or(e,t,n)}}function ev(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 wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n],l=Zn();rn=a,av(a,e),(a.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&Ia(a,Oe,Ue,"Unmount"),Jn(l)}ev(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tv(e),e=e.sibling}function tv(e){var t=Zn(),n=tl(),a=al(),l=ll();switch(e.tag){case 0:case 11:case 15:wu(e),e.flags&2048&&Xh(e,e.return,Un|Ea);break;case 3:var o=kl();wu(e),e.stateNode.passiveEffectDuration+=hc(o);break;case 12:o=kl(),wu(e),e.stateNode.passiveEffectDuration+=su(o);break;case 22:o=e.stateNode,e.memoizedState!==null&&o._visibility&Xl&&(e.return===null||e.return.tag!==13)?(o._visibility&=~Xl,Yc(e),(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&Ia(e,Oe,Ue,"Disconnect")):wu(e);break;default:wu(e)}(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(e,Oe,Ue,Ct,Tt),Jn(t),nl(n),Mt=l,Tt=a}function Yc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n],l=Zn();rn=a,av(a,e),(a.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&.05<Ue-Oe&&Ia(a,Oe,Ue,"Unmount"),Jn(l)}ev(e)}for(e=e.child;e!==null;)nv(e),e=e.sibling}function nv(e){var t=Zn(),n=tl(),a=al(),l=ll();switch(e.tag){case 0:case 11:case 15:Xh(e,e.return,Un),Yc(e);break;case 22:var o=e.stateNode;o._visibility&Xl&&(o._visibility&=~Xl,Yc(e));break;default:Yc(e)}(e.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(e,Oe,Ue,Ct,Tt),Jn(t),nl(n),Mt=l,Tt=a}function av(e,t){for(;rn!==null;){var n=rn,a=n,l=t,o=Zn(),s=tl(),d=al(),g=ll();switch(a.tag){case 0:case 11:case 15:Xh(a,l,Un);break;case 23:case 22:a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool,l!=null&&mi(l));break;case 24:uu(a.memoizedState.cache)}if((a.mode&Ge)!==ze&&0<=Oe&&0<=Ue&&(Mt||.05<Ct)&&Wa(a,Oe,Ue,Ct,Tt),Jn(o),nl(s),Mt=g,Tt=d,a=n.child,a!==null)a.return=n,rn=a;else e:for(n=e;rn!==null;){if(a=rn,o=a.sibling,s=a.return,qb(a),a===n){rn=null;break e}if(o!==null){o.return=s,rn=o;break e}rn=s}}}function aR(){TT.forEach(function(e){return e()})}function lv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||$.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Pn(e){if((ot&It)!==un&&Qe!==0)return Qe&-Qe;var t=$.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),lp()):_a()}function ov(){if(Gn===0)if((Qe&536870912)===0||Ie){var e=uf;uf<<=1,(uf&3932160)===0&&(uf=262144),Gn=e}else Gn=536870912;return e=ta.current,e!==null&&(e.flags|=32),Gn}function _t(e,t,n){if(Gr&&console.error("useInsertionEffect must not schedule updates."),Bm&&(Zf=!0),(e===yt&&(ht===ji||ht===Hi)||e.cancelPendingCommit!==null)&&(rr(e,0),No(e,Qe,Gn,!1)),ua(e,n),(ot&It)!==un&&e===yt){if(ml)switch(t.tag){case 0:case 11:case 15:e=Ze&&X(Ze)||"Unknown",M1.has(e)||(M1.add(e),t=X(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:_1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),_1=!0)}}else yl&&Cl(e,t,n),hR(t),e===yt&&((ot&It)===un&&(Zo|=n),At===Go&&No(e,Qe,Gn,!1)),fl(e)}function iv(e,t,n){if((ot&(It|aa))!==un)throw Error("Should not already be working.");if(Qe!==0&&Ze!==null){var a=Ze,l=ln();switch(RS){case ms:case ji:var o=Iu;xt&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Suspended",o,l,ha,void 0,"primary-light")):console.timeStamp("Suspended",o,l,ha,void 0,"primary-light"));break;case Hi:o=Iu,xt&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Action",o,l,ha,void 0,"primary-light")):console.timeStamp("Action",o,l,ha,void 0,"primary-light"));break;default:xt&&(a=l-Iu,3>a||console.timeStamp("Blocked",Iu,l,ha,void 0,5>a?"primary-light":10>a?"primary":100>a?"primary-dark":"error"))}}o=(n=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Za(e,t))?oR(e,t):Ih(e,t,!0);var s=n;do{if(o===no){Yr&&!n&&No(e,t,0,!1),t=ht,Iu=Yt(),RS=t;break}else{if(a=ln(),l=e.current.alternate,s&&!lR(l)){ja(t),l=on,o=a,!xt||o<=l||(Lt?Lt.run(console.timeStamp.bind(console,"Teared Render",l,o,lt,nt,"error")):console.timeStamp("Teared Render",l,o,lt,nt,"error")),Ei(t,a),o=Ih(e,t,!1),s=!1;continue}if(o===Li){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){ja(t),Ud(on,a,t,Lt),Ei(t,a),t=d;e:{a=e,o=s,s=ys;var g=a.current.memoizedState.isDehydrated;if(g&&(rr(a,d).flags|=256),d=Ih(a,d,!1),d!==Li){if(Mm&&!g){a.errorRecoveryDisabledLanes|=o,Zo|=o,o=Go;break e}a=zn,zn=s,a!==null&&(zn===null?zn=a:zn.push.apply(zn,a))}o=d}if(s=!1,o!==Li)continue;a=ln()}}if(o===ps){ja(t),Ud(on,a,t,Lt),Ei(t,a),rr(e,0),No(e,t,0,!0);break}e:{switch(n=e,o){case no:case ps:throw Error("Root did not complete. This is a bug in React.");case Go:if((t&4194048)!==t)break;case Vf:ja(t),iy(on,a,t,Lt),Ei(t,a),l=t,(l&127)!==0?Rf=a:(l&4194048)!==0&&(Df=a),No(n,t,Gn,!Xo);break e;case Li:zn=null;break;case kf:case b1:break;default:throw Error("Unknown root exit status.")}if($.actQueue!==null)Wh(n,l,t,zn,bs,Yf,Gn,Zo,ki,o,null,null,on,a);else{if((t&62914560)===t&&(s=qf+E1-ln(),10<s)){if(No(n,t,Gn,!Xo),Nl(n,0,!0)!==0)break e;Ga=t,n.timeoutHandle=B1(rv.bind(null,n,l,zn,bs,Yf,t,Gn,Zo,ki,Xo,o,"Throttled",on,a),s);break e}rv(n,l,zn,bs,Yf,t,Gn,Zo,ki,Xo,o,null,on,a)}}}break}while(!0);fl(e)}function rv(e,t,n,a,l,o,s,d,g,b,A,_,N,k){e.timeoutHandle=qi;var ne=t.subtreeFlags,ue=null;if((ne&8192||(ne&16785408)===16785408)&&(ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zl},Wb(t,o,ue),ne=(o&62914560)===o?qf-ln():(o&4194048)===o?S1-ln():0,ne=XR(ue,ne),ne!==null)){Ga=o,e.cancelPendingCommit=ne(Wh.bind(null,e,t,o,n,a,l,s,d,g,A,ue,ue.waitingForViewTransition?"Waiting for the previous Animation":0<ue.count?0<ue.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ue.imgCount===1?"Suspended on an Image":0<ue.imgCount?"Suspended on Images":null,N,k)),No(e,o,s,!b);return}Wh(e,t,o,n,a,l,s,d,g,A,ue,_,N,k)}function lR(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],o=l.getSnapshot;l=l.value;try{if(!An(o(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 No(e,t,n,a){t&=~Um,t&=~Zo,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var o=31-Nn(l),s=1<<o;a[o]=-1,l&=~s}n!==0&&wn(e,n,t)}function ir(){return(ot&(It|aa))===un?(Tu(0),!1):!0}function Kh(){if(Ze!==null){if(ht===qn)var e=Ze.return;else e=Ze,cc(),uh(e),Ur=null,rs=0,e=Ze;for(;e!==null;)Mb(e.alternate,e),e=e.return;Ze=null}}function Ei(e,t){(e&127)!==0&&(Ti=t),(e&4194048)!==0&&(Pl=t),(e&62914560)!==0&&(xS=t),(e&2080374784)!==0&&(wS=t)}function rr(e,t){xt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",nt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",nt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",nt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",nt,"primary-light"));var n=on;if(on=Yt(),Qe!==0&&0<n){if(ja(Qe),At===kf||At===Go)iy(n,on,t,Lt);else{var a=on,l=Lt;if(xt&&!(a<=n)){var o=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,s,n,a,lt,nt,o)):console.timeStamp(s,n,a,lt,nt,o)}}Ei(Qe,on)}if(n=Lt,Lt=null,(t&127)!==0){Lt=Fu,l=0<=El&&El<Ti?Ti:El,a=0<=Ni&&Ni<Ti?Ti:Ni,o=0<=a?a:0<=l?l:on,0<=Rf?(ja(2),ry(Rf,o,t,n)):Tf&127,n=l;var d=a,g=Pu,b=0<Ar,A=Bo===Ju,_=Bo===wf;if(l=on,a=Fu,o=fm,s=dm,xt){if(lt="Blocking",0<n?n>l&&(n=l):n=l,0<d?d>n&&(d=n):d=n,g!==null&&n>d){var N=b?"secondary-light":"warning";a?a.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+g,d,n,lt,nt,N)):console.timeStamp(b?"Consecutive":"Event: "+g,d,n,lt,nt,N)}l>n&&(d=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=_?"Promise Resolved":A?"Cascading Update":5<l-n?"Update Blocked":"Update",_=[],s!=null&&_.push(["Component name",s]),o!=null&&_.push(["Method name",o]),n={start:n,end:l,detail:{devtools:{properties:_,track:lt,trackGroup:nt,color:d}}},a?a.run(performance.measure.bind(performance,A,n)):performance.measure(A,n))}El=-1.1,Bo=0,dm=fm=null,Rf=-1.1,Ar=Ni,Ni=-1.1,Ti=Yt()}if((t&4194048)!==0&&(Lt=Ku,l=0<=Kl&&Kl<Pl?Pl:Kl,n=0<=va&&va<Pl?Pl:va,a=0<=$o&&$o<Pl?Pl:$o,o=0<=a?a:0<=n?n:on,0<=Df?(ja(256),ry(Df,o,t,Lt)):Tf&4194048,_=a,d=Oi,g=0<Yo,b=hm===wf,o=on,a=Ku,s=SS,A=ES,xt&&(lt="Transition",0<n?n>o&&(n=o):n=o,0<l?l>n&&(l=n):l=n,0<_?_>l&&(_=l):_=l,l>_&&d!==null&&(N=g?"secondary-light":"warning",a?a.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+d,_,l,lt,nt,N)):console.timeStamp(g?"Consecutive":"Event: "+d,_,l,lt,nt,N)),n>l&&(a?a.run(console.timeStamp.bind(console,"Action",l,n,lt,nt,"primary-dark")):console.timeStamp("Action",l,n,lt,nt,"primary-dark")),o>n&&(l=b?"Promise Resolved":5<o-n?"Update Blocked":"Update",_=[],A!=null&&_.push(["Component name",A]),s!=null&&_.push(["Method name",s]),n={start:n,end:o,detail:{devtools:{properties:_,track:lt,trackGroup:nt,color:"primary-light"}}},a?a.run(performance.measure.bind(performance,l,n)):performance.measure(l,n))),va=Kl=-1.1,hm=0,Df=-1.1,Yo=$o,$o=-1.1,Pl=Yt()),(t&62914560)!==0&&(Tf&62914560)!==0&&(ja(4194304),zd(xS,on)),(t&2080374784)!==0&&(Tf&2080374784)!==0&&(ja(268435456),zd(wS,on)),n=e.timeoutHandle,n!==qi&&(e.timeoutHandle=qi,VT(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ga=0,Kh(),yt=e,Ze=n=Ll(e.current,null),Qe=t,ht=qn,la=null,Xo=!1,Yr=Za(e,t),Mm=!1,At=no,ki=Gn=Um=Zo=Qo=0,zn=ys=null,Yf=!1,(t&8)!==0&&(t|=t&32),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=t;0<a;)l=31-Nn(a),o=1<<l,t|=e[l],a&=~o;return wl=t,oc(),e=pS(),1e3<e-hS&&($.recentlyCreatedOwnerStacks=0,hS=e),$a.discardPendingWarnings(),n}function uv(e,t){He=null,$.H=fs,$.getCurrentStack=null,ml=!1,Wn=null,t===Mr||t===Af?(t=Cy(),ht=ms):t===ym?(t=Cy(),ht=v1):ht=t===Nm?_m:t!==null&&typeof t=="object"&&typeof t.then=="function"?gs:Bf,la=t;var n=Ze;n===null?(At=ps,Lc(e,Qn(t,e.current))):n.mode&Ge&&Fd(n)}function sv(){var e=ta.current;return e===null?!0:(Qe&4194048)===Qe?Sa===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===Sa:!1}function cv(){var e=$.H;return $.H=fs,e===null?fs:e}function fv(){var e=$.A;return $.A=DT,e}function qc(e){Lt===null&&(Lt=e._debugTask==null?null:e._debugTask)}function Gc(){At=Go,Xo||(Qe&4194048)!==Qe&&ta.current!==null||(Yr=!0),(Qo&134217727)===0&&(Zo&134217727)===0||yt===null||No(yt,Qe,Gn,!1)}function Ih(e,t,n){var a=ot;ot|=It;var l=cv(),o=fv();if(yt!==e||Qe!==t){if(yl){var s=e.memoizedUpdaters;0<s.size&&(Du(e,Qe),s.clear()),mn(e,t)}bs=null,rr(e,t)}t=!1,s=At;e:do try{if(ht!==qn&&Ze!==null){var d=Ze,g=la;switch(ht){case _m:Kh(),s=Vf;break e;case ms:case ji:case Hi:case gs:ta.current===null&&(t=!0);var b=ht;if(ht=qn,la=null,ur(e,d,g,b),n&&Yr){s=no;break e}break;default:b=ht,ht=qn,la=null,ur(e,d,g,b)}}dv(),s=At;break}catch(A){uv(e,A)}while(!0);return t&&e.shellSuspendCounter++,cc(),ot=a,$.H=l,$.A=o,Ze===null&&(yt=null,Qe=0,oc()),s}function dv(){for(;Ze!==null;)hv(Ze)}function oR(e,t){var n=ot;ot|=It;var a=cv(),l=fv();if(yt!==e||Qe!==t){if(yl){var o=e.memoizedUpdaters;0<o.size&&(Du(e,Qe),o.clear()),mn(e,t)}bs=null,Gf=ln()+x1,rr(e,t)}else Yr=Za(e,t);e:do try{if(ht!==qn&&Ze!==null)t:switch(t=Ze,o=la,ht){case Bf:ht=qn,la=null,ur(e,t,o,Bf);break;case ji:case Hi:if(Ny(o)){ht=qn,la=null,pv(t);break}t=function(){ht!==ji&&ht!==Hi||yt!==e||(ht=$f),fl(e)},o.then(t,t);break e;case ms:ht=$f;break e;case v1:ht=Am;break e;case $f:Ny(o)?(ht=qn,la=null,pv(t)):(ht=qn,la=null,ur(e,t,o,$f));break;case Am:var s=null;switch(Ze.tag){case 26:s=Ze.memoizedState;case 5:case 27:var d=Ze;if(s?i0(s):d.stateNode.complete){ht=qn,la=null;var g=d.sibling;if(g!==null)Ze=g;else{var b=d.return;b!==null?(Ze=b,Xc(b)):Ze=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ht=qn,la=null,ur(e,t,o,Am);break;case gs:ht=qn,la=null,ur(e,t,o,gs);break;case _m:Kh(),At=Vf;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$.actQueue!==null?dv():iR();break}catch(A){uv(e,A)}while(!0);return cc(),$.H=a,$.A=l,ot=n,Ze!==null?no:(yt=null,Qe=0,oc(),At)}function iR(){for(;Ze!==null&&!oD();)hv(Ze)}function hv(e){var t=e.alternate;(e.mode&Ge)!==ze?(Jd(e),t=se(e,Yh,t,e,wl),Fd(e)):t=se(e,Yh,t,e,wl),e.memoizedProps=e.pendingProps,t===null?Xc(e):Ze=t}function pv(e){var t=se(e,rR,e);e.memoizedProps=e.pendingProps,t===null?Xc(e):Ze=t}function rR(e){var t=e.alternate,n=(e.mode&Ge)!==ze;switch(n&&Jd(e),e.tag){case 15:case 0:t=Db(t,e,e.pendingProps,e.type,void 0,Qe);break;case 11:t=Db(t,e,e.pendingProps,e.type.render,e.ref,Qe);break;case 5:uh(e);default:Mb(t,e),e=Ze=hy(e,wl),t=Yh(t,e,wl)}return n&&Fd(e),t}function ur(e,t,n,a){cc(),uh(t),Ur=null,rs=0;var l=t.return;try{if(Xw(e,l,t,n,Qe)){At=ps,Lc(e,Qn(n,e.current)),Ze=null;return}}catch(o){if(l!==null)throw Ze=l,o;At=ps,Lc(e,Qn(n,e.current)),Ze=null;return}t.flags&32768?(Ie||a===Bf?e=!0:Yr||(Qe&536870912)!==0?e=!1:(Xo=e=!0,(a===ji||a===Hi||a===ms||a===gs)&&(a=ta.current,a!==null&&a.tag===13&&(a.flags|=16384))),mv(t,e)):Xc(t)}function Xc(e){var t=e;do{if((t.flags&32768)!==0){mv(t,Xo);return}var n=t.alternate;if(e=t.return,Jd(t),n=se(t,Jw,n,t,wl),(t.mode&Ge)!==ze&&xy(t),n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);At===no&&(At=b1)}function mv(e,t){do{var n=Fw(e.alternate,e);if(n!==null){n.flags&=32767,Ze=n;return}if((e.mode&Ge)!==ze){xy(e),n=e.actualDuration;for(var a=e.child;a!==null;)n+=a.actualDuration,a=a.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=n}while(e!==null);At=Vf,Ze=null}function Wh(e,t,n,a,l,o,s,d,g,b,A,_,N,k){e.cancelPendingCommit=null;do Ru();while(Zt!==Fo);if($a.flushLegacyContextWarning(),$a.flushPendingUnsafeLifecycleWarnings(),(ot&(It|aa))!==un)throw Error("Should not already be working.");if(ja(n),b===Li?Ud(N,k,n,Lt):a!==null?Mw(N,k,n,a,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Lt):_w(N,k,n,Lt),t!==null){if(n===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(o=t.lanes|t.childLanes,o|=im,Hn(e,n,o,s,d,g),e===yt&&(Ze=yt=null,Qe=0),qr=t,Po=e,Ga=n,jm=o,km=l,O1=a,Hm=k,C1=_,Xa=Xf,A1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dR(pr,function(){return Rs=window.event,Xa===Xf&&(Xa=Lm),Sv(),null})):(e.callbackNode=null,e.callbackPriority=0),Fl=null,Vo=Yt(),_!==null&&Uw(k,Vo,_,Lt),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=$.T,$.T=null,l=ft.p,ft.p=da,s=ot,ot|=aa;try{tR(e,t,n)}finally{ot=s,ft.p=l,$.T=a}}Zt=R1,gv(),yv(),bv()}}function gv(){if(Zt===R1){Zt=Fo;var e=Po,t=qr,n=Ga,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=$.T,$.T=null;var l=ft.p;ft.p=da;var o=ot;ot|=aa;try{Br=n,$r=e,pc(),Zb(t,e),$r=Br=null,n=Fm;var s=ay(e.containerInfo),d=n.focusedElem,g=n.selectionRange;if(s!==d&&d&&d.ownerDocument&&ny(d.ownerDocument.documentElement,d)){if(g!==null&&Ad(d)){var b=g.start,A=g.end;if(A===void 0&&(A=b),"selectionStart"in d)d.selectionStart=b,d.selectionEnd=Math.min(A,d.value.length);else{var _=d.ownerDocument||document,N=_&&_.defaultView||window;if(N.getSelection){var k=N.getSelection(),ne=d.textContent.length,ue=Math.min(g.start,ne),vt=g.end===void 0?ue:Math.min(g.end,ne);!k.extend&&ue>vt&&(s=vt,vt=ue,ue=s);var at=ty(d,ue),R=ty(d,vt);if(at&&R&&(k.rangeCount!==1||k.anchorNode!==at.node||k.anchorOffset!==at.offset||k.focusNode!==R.node||k.focusOffset!==R.offset)){var O=_.createRange();O.setStart(at.node,at.offset),k.removeAllRanges(),ue>vt?(k.addRange(O),k.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),k.addRange(O))}}}}for(_=[],k=d;k=k.parentNode;)k.nodeType===1&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var C=_[d];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}rd=!!Jm,Fm=Jm=null}finally{ot=o,ft.p=l,$.T=a}}e.current=t,Zt=D1}}function yv(){if(Zt===D1){Zt=Fo;var e=A1;if(e!==null){Vo=Yt();var t=Jl,n=Vo;!xt||n<=t||console.timeStamp(e,t,n,lt,nt,"secondary-light")}e=Po,t=qr,n=Ga;var a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=$.T,$.T=null;var l=ft.p;ft.p=da;var o=ot;ot|=aa;try{Br=n,$r=e,pc(),Yb(e,t.alternate,t),$r=Br=null}finally{ot=o,ft.p=l,$.T=a}}e=Hm,t=C1,Jl=Yt(),e=t===null?e:Vo,t=Jl,n=Xa===zm,a=Lt,Fl!==null?uy(e,t,Fl,!1,a):!xt||t<=e||(a?a.run(console.timeStamp.bind(console,n?"Commit Interrupted View Transition":"Commit",e,t,lt,nt,n?"error":"secondary-dark")):console.timeStamp(n?"Commit Interrupted View Transition":"Commit",e,t,lt,nt,n?"error":"secondary-dark")),Zt=T1}}function bv(){if(Zt===N1||Zt===T1){if(Zt===N1){var e=Jl;Jl=Yt();var t=Jl,n=Xa===zm;!xt||t<=e||console.timeStamp(n?"Interrupted View Transition":"Starting Animation",e,t,lt,nt,n?" error":"secondary-light"),Xa!==zm&&(Xa=w1)}Zt=Fo,iD(),e=Po;var a=qr;t=Ga,n=O1;var l=a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0;l?Zt=Qf:(Zt=Fo,qr=Po=null,vv(e,e.pendingLanes),Vi=0,Ss=null);var o=e.pendingLanes;if(o===0&&(Jo=null),l||Rv(e),o=Al(t),a=a.stateNode,bn&&typeof bn.onCommitFiberRoot=="function")try{var s=(a.current.flags&128)===128;switch(o){case da:var d=kp;break;case bl:d=Vp;break;case ql:d=pr;break;case cf:d=Bp;break;default:d=pr}bn.onCommitFiberRoot(mr,a,d,s)}catch(_){gl||(gl=!0,console.error("React instrumentation encountered an error: %o",_))}if(yl&&e.memoizedUpdaters.clear(),aR(),n!==null){s=$.T,d=ft.p,ft.p=da,$.T=null;try{var g=e.onRecoverableError;for(a=0;a<n.length;a++){var b=n[a],A=uR(b.stack);se(b.source,g,b.value,A)}}finally{$.T=s,ft.p=d}}(Ga&3)!==0&&Ru(),fl(e),o=e.pendingLanes,(t&261930)!==0&&(o&42)!==0?(Of=!0,e===Vm?vs++:(vs=0,Vm=e)):vs=0,l||Ei(t,Jl),Tu(0)}}function uR(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 vv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,uu(t)))}function Ru(){return gv(),yv(),bv(),Sv()}function Sv(){if(Zt!==Qf)return!1;var e=Po,t=jm;jm=0;var n=Al(Ga),a=ql>n?ql:n;n=$.T;var l=ft.p;try{ft.p=a,$.T=null;var o=km;km=null,a=Po;var s=Ga;if(Zt=Fo,qr=Po=null,Ga=0,(ot&(It|aa))!==un)throw Error("Cannot flush passive effects while already rendering.");ja(s),Bm=!0,Zf=!1;var d=0;if(Fl=null,d=ln(),Xa===w1)zd(Jl,d,bT);else{var g=Jl,b=d,A=Xa===Lm;!xt||b<=g||(Lt?Lt.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",g,b,lt,nt,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",g,b,lt,nt,"secondary-light"))}g=ot,ot|=aa;var _=a.current;pc(),tv(_);var N=a.current;_=Hm,pc(),Kb(a,N,s,o,_),Rv(a),ot=g;var k=ln();if(N=d,_=Lt,Fl!==null?uy(N,k,Fl,!0,_):!xt||k<=N||(_?_.run(console.timeStamp.bind(console,"Remaining Effects",N,k,lt,nt,"secondary-dark")):console.timeStamp("Remaining Effects",N,k,lt,nt,"secondary-dark")),Ei(s,k),Tu(0,!1),Zf?a===Ss?Vi++:(Vi=0,Ss=a):Vi=0,Zf=Bm=!1,bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(mr,a)}catch(ue){gl||(gl=!0,console.error("React instrumentation encountered an error: %o",ue))}var ne=a.current.stateNode;return ne.effectDuration=0,ne.passiveEffectDuration=0,!0}finally{ft.p=l,$.T=n,vv(e,t)}}function Ev(e,t,n){t=Qn(n,t),wy(t),t=_h(e.stateNode,t,2),e=wo(e,t,2),e!==null&&(ua(e,2),fl(e))}function ct(e,t,n){if(Gr=!1,e.tag===3)Ev(e,e,n);else{for(;t!==null;){if(t.tag===3){Ev(t,e,n);return}if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Jo===null||!Jo.has(a))){e=Qn(n,e),wy(e),n=Mh(2),a=wo(t,n,2),a!==null&&(Uh(n,a,t,e),ua(a,2),fl(a));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`,n)}}function ep(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new NT;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(Mm=!0,l.add(n),a=sR.bind(null,e,t,n),yl&&Du(e,n),t.then(a,a))}function sR(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,(n&127)!==0?0>El&&(Ti=El=Yt(),Fu=xf("Promise Resolved"),Bo=wf):(n&4194048)!==0&&0>va&&(Pl=va=Yt(),Ku=xf("Promise Resolved"),hm=wf),lv()&&$.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`),yt===e&&(Qe&n)===n&&(At===Go||At===kf&&(Qe&62914560)===Qe&&ln()-qf<E1?(ot&It)===un&&rr(e,0):Um|=n,ki===Qe&&(ki=0)),fl(e)}function xv(e,t){t===0&&(t=Aa()),e=yn(e,t),e!==null&&(ua(e,t),fl(e))}function cR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xv(e,n)}function fR(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),xv(e,n)}function tp(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var a=e,l=t,o=l.type===af;o=n||o,l.tag!==22?l.flags&67108864?o&&se(l,wv,a,l):tp(a,l,o):l.memoizedState===null&&(o&&l.flags&8192?se(l,wv,a,l):l.subtreeFlags&67108864&&se(l,tp,a,l,o)),t=t.sibling}}function wv(e,t){pe(!0);try{Fb(t),nv(t),Pb(e,t.alternate,t,!1),Ib(e,t,0,null,!1,0)}finally{pe(!1)}}function Rv(e){var t=!0;e.current.mode&(vn|Ba)||(t=!1),tp(e,e.current,t)}function Dv(e){if((ot&It)===un){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",Jf!==null){if(Jf.has(t))return;Jf.add(t)}else Jf=new Set([t]);se(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 Du(e,t){yl&&e.memoizedUpdaters.forEach(function(n){Cl(e,n,t)})}function dR(e,t){var n=$.actQueue;return n!==null?(n.push(t),AT):Hp(e,t)}function hR(e){lv()&&$.actQueue===null&&se(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`,X(e))})}function fl(e){e!==Xr&&e.next===null&&(Xr===null?Ff=Xr=e:Xr=Xr.next=e),Pf=!0,$.actQueue!==null?Ym||(Ym=!0,Cv()):$m||($m=!0,Cv())}function Tu(e,t){if(!qm&&Pf){qm=!0;do for(var n=!1,a=Ff;a!==null;){if(e!==0){var l=a.pendingLanes;if(l===0)var o=0;else{var s=a.suspendedLanes,d=a.pingedLanes;o=(1<<31-Nn(42|e)+1)-1,o&=l&~(s&~d),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Ov(a,o))}else o=Qe,o=Nl(a,a===yt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==qi),(o&3)===0||Za(a,o)||(n=!0,Ov(a,o));a=a.next}while(n);qm=!1}}function pR(){Rs=window.event,np()}function np(){Pf=Ym=$m=!1;var e=0;Ko!==0&&ER()&&(e=Ko);for(var t=ln(),n=null,a=Ff;a!==null;){var l=a.next,o=Tv(a,t);o===0?(a.next=null,n===null?Ff=l:n.next=l,l===null&&(Xr=n)):(n=a,(e!==0||(o&3)!==0)&&(Pf=!0)),a=l}Zt!==Fo&&Zt!==Qf||Tu(e),Ko!==0&&(Ko=0)}function Tv(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var s=31-Nn(o),d=1<<s,g=l[s];g===-1?((d&n)===0||(d&a)!==0)&&(l[s]=ra(d,t)):g<=t&&(e.expiredLanes|=d),o&=~d}if(t=yt,n=Qe,n=Nl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==qi),a=e.callbackNode,n===0||e===t&&(ht===ji||ht===Hi)||e.cancelPendingCommit!==null)return a!==null&&ap(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Za(e,n)){if(t=n&-n,t!==e.callbackPriority||$.actQueue!==null&&a!==Gm)ap(a);else return t;switch(Al(n)){case da:case bl:n=Vp;break;case ql:n=pr;break;case cf:n=Bp;break;default:n=pr}return a=Nv.bind(null,e),$.actQueue!==null?($.actQueue.push(a),n=Gm):n=Hp(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&ap(a),e.callbackPriority=2,e.callbackNode=null,2}function Nv(e,t){if(Of=Nf=!1,Rs=window.event,Zt!==Fo&&Zt!==Qf)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xa===Xf&&(Xa=Lm),Ru()&&e.callbackNode!==n)return null;var a=Qe;return a=Nl(e,e===yt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==qi),a===0?null:(iv(e,a,t),Tv(e,ln()),e.callbackNode!=null&&e.callbackNode===n?Nv.bind(null,e):null)}function Ov(e,t){if(Ru())return null;Nf=Of,Of=!1,iv(e,t,!0)}function ap(e){e!==Gm&&e!==null&&lD(e)}function Cv(){$.actQueue!==null&&$.actQueue.push(function(){return np(),null}),BT(function(){(ot&(It|aa))!==un?Hp(kp,pR):np()})}function lp(){if(Ko===0){var e=Ci;e===0&&(e=rf,rf<<=1,(rf&261888)===0&&(rf=256)),Ko=e}return Ko}function Av(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(rt(e,"action"),lu(""+e))}function _v(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function mR(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var o=Av((l[On]||null).action),s=a.submitter;s&&(t=(t=s[On]||null)?Av(t.formAction):s.getAttribute("formAction"),t!==null&&(o=t,s=null));var d=new mf("action","action",null,a,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ko!==0){var g=s?_v(l,s):new FormData(l),b={pending:!0,data:g,method:l.method,action:o};Object.freeze(b),Rh(n,b,null,g)}}else typeof o=="function"&&(d.preventDefault(),g=s?_v(l,s):new FormData(l),b={pending:!0,data:g,method:l.method,action:o},Object.freeze(b),Rh(n,b,o,g))},currentTarget:l}]})}}function Qc(e,t,n){e.currentTarget=n;try{t(e)}catch(a){nm(a)}e.currentTarget=null}function Mv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n];e:{var l=void 0,o=a.event;if(a=a.listeners,t)for(var s=a.length-1;0<=s;s--){var d=a[s],g=d.instance,b=d.currentTarget;if(d=d.listener,g!==l&&o.isPropagationStopped())break e;g!==null?se(g,Qc,o,d,b):Qc(o,d,b),l=g}else for(s=0;s<a.length;s++){if(d=a[s],g=d.instance,b=d.currentTarget,d=d.listener,g!==l&&o.isPropagationStopped())break e;g!==null?se(g,Qc,o,d,b):Qc(o,d,b),l=g}}}}function tt(e,t){Xm.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[$p];n===void 0&&(n=t[$p]=new Set);var a=e+"__bubble";n.has(a)||(Uv(t,e,2,!1),n.add(a))}function op(e,t,n){Xm.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 a=0;t&&(a|=4),Uv(n,e,a,t)}function ip(e){if(!e[Kf]){e[Kf]=!0,C0.forEach(function(n){n!=="selectionchange"&&(Xm.has(n)||op(n,!1,e),op(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,op("selectionchange",!1,t))}}function Uv(e,t,n,a){switch(d0(t)){case da:var l=FR;break;case bl:l=PR;break;default:l=xp}n=l.bind(null,t,n,e),l=void 0,!Qp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function rp(e,t,n,a,l){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var d=a.stateNode.containerInfo;if(d===l)break;if(s===4)for(s=a.return;s!==null;){var g=s.tag;if((g===3||g===4)&&s.stateNode.containerInfo===l)return;s=s.return}for(;d!==null;){if(s=F(d),s===null)return;if(g=s.tag,g===5||g===6||g===26||g===27){a=o=s;continue e}d=d.parentNode}}a=a.return}Gg(function(){var b=o,A=Od(n),_=[];e:{var N=dS.get(e);if(N!==void 0){var k=mf,ne=e;switch(e){case"keypress":if(ec(n)===0)break e;case"keydown":case"keyup":k=XD;break;case"focusin":ne="focus",k=Pp;break;case"focusout":ne="blur",k=Pp;break;case"beforeblur":case"afterblur":k=Pp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=I0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=UD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=JD;break;case uS:case sS:case cS:k=jD;break;case fS:k=PD;break;case"scroll":case"scrollend":k=_D;break;case"wheel":k=ID;break;case"copy":case"cut":case"paste":k=kD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=eS;break;case"toggle":case"beforetoggle":k=eT}var ue=(t&4)!==0,vt=!ue&&(e==="scroll"||e==="scrollend"),at=ue?N!==null?N+"Capture":null:N;ue=[];for(var R=b,O;R!==null;){var C=R;if(O=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||O===null||at===null||(C=ou(R,at),C!=null&&ue.push(Nu(R,C,O))),vt)break;R=R.return}0<ue.length&&(N=new k(N,ne,null,n,A),_.push({event:N,listeners:ue}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",N&&n!==ku&&(ne=n.relatedTarget||n.fromElement)&&(F(ne)||ne[Uo]))break e;if((k||N)&&(N=A.window===A?A:(N=A.ownerDocument)?N.defaultView||N.parentWindow:window,k?(ne=n.relatedTarget||n.toElement,k=b,ne=ne?F(ne):null,ne!==null&&(vt=J(ne),ue=ne.tag,ne!==vt||ue!==5&&ue!==27&&ue!==6)&&(ne=null)):(k=null,ne=b),k!==ne)){if(ue=I0,C="onMouseLeave",at="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ue=eS,C="onPointerLeave",at="onPointerEnter",R="pointer"),vt=k==null?N:me(k),O=ne==null?N:me(ne),N=new ue(C,R+"leave",k,n,A),N.target=vt,N.relatedTarget=O,C=null,F(A)===b&&(ue=new ue(at,R+"enter",ne,n,A),ue.target=O,ue.relatedTarget=vt,C=ue),vt=C,k&&ne)t:{for(ue=gR,at=k,R=ne,O=0,C=at;C;C=ue(C))O++;C=0;for(var G=R;G;G=ue(G))C++;for(;0<O-C;)at=ue(at),O--;for(;0<C-O;)R=ue(R),C--;for(;O--;){if(at===R||R!==null&&at===R.alternate){ue=at;break t}at=ue(at),R=ue(R)}ue=null}else ue=null;k!==null&&zv(_,N,k,ue,!1),ne!==null&&vt!==null&&zv(_,vt,ne,ue,!0)}}e:{if(N=b?me(b):window,k=N.nodeName&&N.nodeName.toLowerCase(),k==="select"||k==="input"&&N.type==="file")var le=Kg;else if(Fg(N))if(iS)le=Ow;else{le=Tw;var ke=Dw}else k=N.nodeName,!k||k.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?b&&au(b.elementType)&&(le=Kg):le=Nw;if(le&&(le=le(e,b))){Pg(_,le,n,A);break e}ke&&ke(e,N,b),e==="focusout"&&b&&N.type==="number"&&b.memoizedProps.value!=null&&Ae(N,"number",N.value)}switch(ke=b?me(b):window,e){case"focusin":(Fg(ke)||ke.contentEditable==="true")&&(xr=ke,Ip=b,Xu=null);break;case"focusout":Xu=Ip=xr=null;break;case"mousedown":Wp=!0;break;case"contextmenu":case"mouseup":case"dragend":Wp=!1,ly(_,n,A);break;case"selectionchange":if(lT)break;case"keydown":case"keyup":ly(_,n,A)}var Ne;if(Kp)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else Er?Zg(e,n)&&(be="onCompositionEnd"):e==="keydown"&&n.keyCode===tS&&(be="onCompositionStart");be&&(nS&&n.locale!=="ko"&&(Er||be!=="onCompositionStart"?be==="onCompositionEnd"&&Er&&(Ne=Xg()):(zo=A,Zp="value"in zo?zo.value:zo.textContent,Er=!0)),ke=Zc(b,be),0<ke.length&&(be=new W0(be,e,null,n,A),_.push({event:be,listeners:ke}),Ne?be.data=Ne:(Ne=Jg(n),Ne!==null&&(be.data=Ne)))),(Ne=nT?Ew(e,n):xw(e,n))&&(be=Zc(b,"onBeforeInput"),0<be.length&&(ke=new BD("onBeforeInput","beforeinput",null,n,A),_.push({event:ke,listeners:be}),ke.data=Ne)),mR(_,e,b,n,A)}Mv(_,t)})}function Nu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zc(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,o=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||o===null||(l=ou(e,n),l!=null&&a.unshift(Nu(e,l,o)),l=ou(e,t),l!=null&&a.push(Nu(e,l,o))),e.tag===3)return a;e=e.return}return[]}function gR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zv(e,t,n,a,l){for(var o=t._reactName,s=[];n!==null&&n!==a;){var d=n,g=d.alternate,b=d.stateNode;if(d=d.tag,g!==null&&g===a)break;d!==5&&d!==26&&d!==27||b===null||(g=b,l?(b=ou(n,o),b!=null&&s.unshift(Nu(n,b,g))):l||(b=ou(n,o),b!=null&&s.push(Nu(n,b,g)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}function up(e,t){yw(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||P0||(P0=!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 n={registrationNameDependencies:xi,possibleRegistrationNames:Yp};au(e)||typeof t.is=="string"||vw(e,t,n),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 an(e,t,n,a){t!==n&&(n=Oo(n),Oo(t)!==n&&(a[e]=t))}function yR(e,t,n){t.forEach(function(a){n[Hv(a)]=a==="style"?cp(e):e.getAttribute(a)})}function dl(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 Lv(e,t){return e=e.namespaceURI===df||e.namespaceURI===yr?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Oo(e){return jn(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.",Nt(e)),Ca(e)),(typeof e=="string"?e:""+e).replace(_T,`
|
|
181
|
+
`).replace(MT,"")}function jv(e,t){return t=Oo(t),Oo(e)===t}function mt(e,t,n,a,l,o){switch(n){case"children":typeof a=="string"?(Ws(a,t,!1),t==="body"||t==="textarea"&&a===""||nu(e,a)):(typeof a=="number"||typeof a=="bigint")&&(Ws(""+a,t,!1),t!=="body"&&nu(e,""+a));break;case"className":Pi(e,"class",a);break;case"tabIndex":Pi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pi(e,n,a);break;case"style":$g(e,a,o);break;case"data":if(t!=="object"){Pi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){console.error(n==="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.',n,n),e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}rt(a,n),a=lu(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(a!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof a=="function"&&(l.encType==null&&l.method==null||ed||(ed=!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.")),l.target==null||Wf||(Wf=!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"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||If?t!=="button"||l.type==null||l.type==="submit"||If?typeof a=="function"&&(l.name==null||L1||(L1=!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.')),l.formEncType==null&&l.formMethod==null||ed||(ed=!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.")),l.formTarget==null||Wf||(Wf=!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."))):(If=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(If=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof a=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&mt(e,t,"name",l.name,l,null),mt(e,t,"formEncType",l.formEncType,l,null),mt(e,t,"formMethod",l.formMethod,l,null),mt(e,t,"formTarget",l.formTarget,l,null)):(mt(e,t,"encType",l.encType,l,null),mt(e,t,"method",l.method,l,null),mt(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}rt(a,n),a=lu(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(typeof a!="function"&&dl(n,a),e.onclick=zl);break;case"onScroll":a!=null&&(typeof a!="function"&&dl(n,a),tt("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&dl(n,a),tt("scrollend",e));break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=a.__html,n!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}rt(a,n),n=lu(""+a),e.setAttributeNS(Bi,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?(rt(a,n),e.setAttribute(n,""+a)):e.removeAttribute(n);break;case"inert":a!==""||td[n]||(td[n]=!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.",n));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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?(rt(a,n),e.setAttribute(n,a)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?(rt(a,n),e.setAttribute(n,a)):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):(rt(a,n),e.setAttribute(n,a));break;case"popover":tt("beforetoggle",e),tt("toggle",e),Ml(e,"popover",a);break;case"xlinkActuate":Ma(e,Bi,"xlink:actuate",a);break;case"xlinkArcrole":Ma(e,Bi,"xlink:arcrole",a);break;case"xlinkRole":Ma(e,Bi,"xlink:role",a);break;case"xlinkShow":Ma(e,Bi,"xlink:show",a);break;case"xlinkTitle":Ma(e,Bi,"xlink:title",a);break;case"xlinkType":Ma(e,Bi,"xlink:type",a);break;case"xmlBase":Ma(e,Qm,"xml:base",a);break;case"xmlLang":Ma(e,Qm,"xml:lang",a);break;case"xmlSpace":Ma(e,Qm,"xml:space",a);break;case"is":o!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ml(e,"is",a);break;case"innerText":case"textContent":break;case"popoverTarget":j1||a==null||typeof a!="object"||(j1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",a));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=Yg(n),Ml(e,n,a)):xi.hasOwnProperty(n)&&a!=null&&typeof a!="function"&&dl(n,a)}}function sp(e,t,n,a,l,o){switch(n){case"style":$g(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=a.__html,n!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof a=="string"?nu(e,a):(typeof a=="number"||typeof a=="bigint")&&nu(e,""+a);break;case"onScroll":a!=null&&(typeof a!="function"&&dl(n,a),tt("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&dl(n,a),tt("scrollend",e));break;case"onClick":a!=null&&(typeof a!="function"&&dl(n,a),e.onclick=zl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(xi.hasOwnProperty(n))a!=null&&typeof a!="function"&&dl(n,a);else e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),t=n.slice(2,l?n.length-7:void 0),o=e[On]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,l),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,l);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ml(e,n,a)}}}function fn(e,t,n){switch(up(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var a=!1,l=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mt(e,t,o,s,n,null)}}l&&mt(e,t,"srcSet",n.srcSet,n,null),a&&mt(e,t,"src",n.src,n,null);return;case"input":en("input",n),tt("invalid",e);var d=o=s=l=null,g=null,b=null;for(a in n)if(n.hasOwnProperty(a)){var A=n[a];if(A!=null)switch(a){case"name":l=A;break;case"type":s=A;break;case"checked":g=A;break;case"defaultChecked":b=A;break;case"value":o=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mt(e,t,a,A,n,null)}}Te(e,n),_e(e,o,d,g,b,s,l,!1);return;case"select":en("select",n),tt("invalid",e),a=s=o=null;for(l in n)if(n.hasOwnProperty(l)&&(d=n[l],d!=null))switch(l){case"value":o=d;break;case"defaultValue":s=d;break;case"multiple":a=d;default:mt(e,t,l,d,n,null)}St(e,n),t=o,n=s,e.multiple=!!a,t!=null?Pe(e,!!a,t,!1):n!=null&&Pe(e,!!a,n,!0);return;case"textarea":en("textarea",n),tt("invalid",e),o=l=a=null;for(s in n)if(n.hasOwnProperty(s)&&(d=n[s],d!=null))switch(s){case"value":a=d;break;case"defaultValue":l=d;break;case"children":o=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:mt(e,t,s,d,n,null)}jt(e,n),st(e,a,l,o);return;case"option":Re(e,n);for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null)&&(g==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":mt(e,t,g,a,n,null));return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(a=0;a<Es.length;a++)tt(Es[a],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("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(b in n)if(n.hasOwnProperty(b)&&(a=n[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mt(e,t,b,a,n,null)}return;default:if(au(t)){for(A in n)n.hasOwnProperty(A)&&(a=n[A],a!==void 0&&sp(e,t,A,a,n,void 0));return}}for(d in n)n.hasOwnProperty(d)&&(a=n[d],a!=null&&mt(e,t,d,a,n,null))}function bR(e,t,n,a){switch(up(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,o=null,s=null,d=null,g=null,b=null,A=null;for(k in n){var _=n[k];if(n.hasOwnProperty(k)&&_!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":g=_;default:a.hasOwnProperty(k)||mt(e,t,k,null,a,_)}}for(var N in a){var k=a[N];if(_=n[N],a.hasOwnProperty(N)&&(k!=null||_!=null))switch(N){case"type":o=k;break;case"name":l=k;break;case"checked":b=k;break;case"defaultChecked":A=k;break;case"value":s=k;break;case"defaultValue":d=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:k!==_&&mt(e,t,N,k,a,_)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,a=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,t||!a||z1||(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"),z1=!0),!t||a||U1||(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"),U1=!0),ge(e,s,d,g,b,A,o,l);return;case"select":k=s=d=N=null;for(o in n)if(g=n[o],n.hasOwnProperty(o)&&g!=null)switch(o){case"value":break;case"multiple":k=g;default:a.hasOwnProperty(o)||mt(e,t,o,null,a,g)}for(l in a)if(o=a[l],g=n[l],a.hasOwnProperty(l)&&(o!=null||g!=null))switch(l){case"value":N=o;break;case"defaultValue":d=o;break;case"multiple":s=o;default:o!==g&&mt(e,t,l,o,a,g)}a=d,t=s,n=k,N!=null?Pe(e,!!t,N,!1):!!n!=!!t&&(a!=null?Pe(e,!!t,a,!0):Pe(e,!!t,t?[]:"",!1));return;case"textarea":k=N=null;for(d in n)if(l=n[d],n.hasOwnProperty(d)&&l!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:mt(e,t,d,null,a,l)}for(s in a)if(l=a[s],o=n[s],a.hasOwnProperty(s)&&(l!=null||o!=null))switch(s){case"value":N=l;break;case"defaultValue":k=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==o&&mt(e,t,s,l,a,o)}tn(e,N,k);return;case"option":for(var ne in n)N=n[ne],n.hasOwnProperty(ne)&&N!=null&&!a.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:mt(e,t,ne,null,a,N));for(g in a)N=a[g],k=n[g],a.hasOwnProperty(g)&&N!==k&&(N!=null||k!=null)&&(g==="selected"?e.selected=N&&typeof N!="function"&&typeof N!="symbol":mt(e,t,g,N,a,k));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 ue in n)N=n[ue],n.hasOwnProperty(ue)&&N!=null&&!a.hasOwnProperty(ue)&&mt(e,t,ue,null,a,N);for(b in a)if(N=a[b],k=n[b],a.hasOwnProperty(b)&&N!==k&&(N!=null||k!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mt(e,t,b,N,a,k)}return;default:if(au(t)){for(var vt in n)N=n[vt],n.hasOwnProperty(vt)&&N!==void 0&&!a.hasOwnProperty(vt)&&sp(e,t,vt,void 0,a,N);for(A in a)N=a[A],k=n[A],!a.hasOwnProperty(A)||N===k||N===void 0&&k===void 0||sp(e,t,A,N,a,k);return}}for(var at in n)N=n[at],n.hasOwnProperty(at)&&N!=null&&!a.hasOwnProperty(at)&&mt(e,t,at,null,a,N);for(_ in a)N=a[_],k=n[_],!a.hasOwnProperty(_)||N===k||N==null&&k==null||mt(e,t,_,N,a,k)}function Hv(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function cp(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var a=e[n];t[a]=e.getPropertyValue(a)}return t}function kv(e,t,n){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 a,l=a="",o;for(o in t)if(t.hasOwnProperty(o)){var s=t[o];s!=null&&typeof s!="boolean"&&s!==""&&(o.indexOf("--")===0?(Ot(s,o),a+=l+o+":"+(""+s).trim()):typeof s!="number"||s===0||J0.has(o)?(Ot(s,o),a+=l+o.replace(q0,"-$1").toLowerCase().replace(G0,"-ms-")+":"+(""+s).trim()):a+=l+o.replace(q0,"-$1").toLowerCase().replace(G0,"-ms-")+":"+s+"px",l=";")}a=a||null,t=e.getAttribute("style"),t!==a&&(a=Oo(a),Oo(t)!==a&&(n.style=cp(e)))}}function fa(e,t,n,a,l,o){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(rt(a,t),e===""+a)return}an(t,e,a,o)}function Vv(e,t,n,a,l,o){if(l.delete(n),e=e.getAttribute(n),e===null){switch(typeof a){case"function":case"symbol":return}if(!a)return}else switch(typeof a){case"function":case"symbol":break;default:if(a)return}an(t,e,a,o)}function fp(e,t,n,a,l,o){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":return}else if(a!=null)switch(typeof a){case"function":case"symbol":break;default:if(rt(a,n),e===""+a)return}an(t,e,a,o)}function Bv(e,t,n,a,l,o){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(a))return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(!isNaN(a)&&(rt(a,t),e===""+a))return}an(t,e,a,o)}function dp(e,t,n,a,l,o){if(l.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(rt(a,t),n=lu(""+a),e===n)return}an(t,e,a,o)}function $v(e,t,n,a){for(var l={},o=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:o.add(s[d].name)}if(au(t)){for(var g in n)if(n.hasOwnProperty(g)){var b=n[g];if(b!=null){if(xi.hasOwnProperty(g))typeof b!="function"&&dl(g,b);else if(n.suppressHydrationWarning!==!0)switch(g){case"children":typeof b!="string"&&typeof b!="number"||an("children",e.textContent,b,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=Lv(e,b),an(g,s,b,l));continue;case"style":o.delete(g),kv(e,b,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(g.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",g);continue;case"className":o.delete("class"),s=_l(e,"class",b),an("className",s,b,l);continue;default:a.context===ao&&t!=="svg"&&t!=="math"?o.delete(g.toLowerCase()):o.delete(g),s=_l(e,g,b),an(g,s,b,l)}}}}else for(b in n)if(n.hasOwnProperty(b)&&(g=n[b],g!=null)){if(xi.hasOwnProperty(b))typeof g!="function"&&dl(b,g);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof g!="string"&&typeof g!="number"||an("children",e.textContent,g,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=Lv(e,g),s!==g&&(l[b]={__html:s}));continue;case"className":fa(e,b,"class",g,o,l);continue;case"tabIndex":fa(e,b,"tabindex",g,o,l);continue;case"style":o.delete(b),kv(e,g,l);continue;case"multiple":o.delete(b),an(b,e.multiple,g,l);continue;case"muted":o.delete(b),an(b,e.muted,g,l);continue;case"autoFocus":o.delete("autofocus"),an(b,e.autofocus,g,l);continue;case"data":if(t!=="object"){o.delete(b),s=e.getAttribute("data"),an(b,s,g,l);continue}case"src":case"href":if(!(g!==""||t==="a"&&b==="href"||t==="object"&&b==="data")){console.error(b==="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.',b,b);continue}dp(e,b,b,g,o,l);continue;case"action":case"formAction":if(s=e.getAttribute(b),typeof g=="function"){o.delete(b.toLowerCase()),b==="formAction"?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}else if(s===UT){o.delete(b.toLowerCase()),an(b,"function",g,l);continue}dp(e,b,b.toLowerCase(),g,o,l);continue;case"xlinkHref":dp(e,b,"xlink:href",g,o,l);continue;case"contentEditable":fp(e,b,"contenteditable",g,o,l);continue;case"spellCheck":fp(e,b,"spellcheck",g,o,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":fp(e,b,b,g,o,l);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":Vv(e,b,b.toLowerCase(),g,o,l);continue;case"capture":case"download":e:{d=e;var A=s=b,_=l;if(o.delete(A),d=d.getAttribute(A),d===null)switch(typeof g){case"undefined":case"function":case"symbol":break e;default:if(g===!1)break e}else if(g!=null)switch(typeof g){case"function":case"symbol":break;case"boolean":if(g===!0&&d==="")break e;break;default:if(rt(g,s),d===""+g)break e}an(s,d,g,_)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,A=s=b,_=l,o.delete(A),d=d.getAttribute(A),d===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(g)||1>g)break e}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(g)||1>g)&&(rt(g,s),d===""+g))break e}an(s,d,g,_)}continue;case"rowSpan":Bv(e,b,"rowspan",g,o,l);continue;case"start":Bv(e,b,b,g,o,l);continue;case"xHeight":fa(e,b,"x-height",g,o,l);continue;case"xlinkActuate":fa(e,b,"xlink:actuate",g,o,l);continue;case"xlinkArcrole":fa(e,b,"xlink:arcrole",g,o,l);continue;case"xlinkRole":fa(e,b,"xlink:role",g,o,l);continue;case"xlinkShow":fa(e,b,"xlink:show",g,o,l);continue;case"xlinkTitle":fa(e,b,"xlink:title",g,o,l);continue;case"xlinkType":fa(e,b,"xlink:type",g,o,l);continue;case"xmlBase":fa(e,b,"xml:base",g,o,l);continue;case"xmlLang":fa(e,b,"xml:lang",g,o,l);continue;case"xmlSpace":fa(e,b,"xml:space",g,o,l);continue;case"inert":g!==""||td[b]||(td[b]=!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.",b)),Vv(e,b,b,g,o,l);continue;default:if(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N"){d=Yg(b),s=!1,a.context===ao&&t!=="svg"&&t!=="math"?o.delete(d.toLowerCase()):(A=b.toLowerCase(),A=hf.hasOwnProperty(A)&&hf[A]||null,A!==null&&A!==b&&(s=!0,o.delete(A)),o.delete(d));e:if(A=e,_=d,d=g,Rn(_))if(A.hasAttribute(_))A=A.getAttribute(_),rt(d,_),d=A===""+d?d:A;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(A=_.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||an(b,d,g,l)}}}return 0<o.size&&n.suppressHydrationWarning!==!0&&yR(e,o,l),Object.keys(l).length===0?null:l}function vR(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 Yv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SR(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],o=l.transferSize,s=l.initiatorType,d=l.duration;if(o&&d&&Yv(s)){for(s=0,d=l.responseEnd,a+=1;a<n.length;a++){var g=n[a],b=g.startTime;if(b>d)break;var A=g.transferSize,_=g.initiatorType;A&&Yv(_)&&(g=g.responseEnd,s+=A*(g<d?1:(d-b)/(g-b)))}if(--a,t+=8*(o+s)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Jc(e){return e.nodeType===9?e:e.ownerDocument}function qv(e){switch(e){case yr:return Zr;case df:return ad;default:return ao}}function Gv(e,t){if(e===ao)switch(t){case"svg":return Zr;case"math":return ad;default:return ao}return e===Zr&&t==="foreignObject"?ao:e}function hp(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 ER(){var e=window.event;return e&&e.type==="popstate"?e===Pm?!1:(Pm=e,!0):(Pm=null,!1)}function Ou(){var e=window.event;return e&&e!==Rs?e.type:null}function Cu(){var e=window.event;return e&&e!==Rs?e.timeStamp:-1.1}function xR(e){setTimeout(function(){throw e})}function wR(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function RR(){}function DR(e,t,n,a){bR(e,t,n,a),e[On]=a}function Xv(e){nu(e,"")}function TR(e,t,n){e.nodeValue=n}function Qv(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[On]||null;if(t!==null){var n=te(e);n!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,se(n,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,se(n,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 Co(e){return e==="head"}function NR(e,t){e.removeChild(t)}function OR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Zv(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n===ws||n===nd){if(a===0){e.removeChild(l),fr(t);return}a--}else if(n===xs||n===Io||n===Yi||n===Qr||n===$i)a++;else if(n===LT)Au(e.ownerDocument.documentElement);else if(n===HT){n=e.ownerDocument.head,Au(n);for(var o=n.firstChild;o;){var s=o.nextSibling,d=o.nodeName;o[Hu]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=s}}else n===jT&&Au(e.ownerDocument.body);n=l}while(n);fr(t)}function Jv(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n===ws){if(e===0)break;e--}else n!==xs&&n!==Io&&n!==Yi&&n!==Qr||e++;n=a}while(n)}function CR(e){Jv(e,!0)}function AR(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function _R(e){e.nodeValue=""}function MR(e){Jv(e,!1)}function UR(e,t){t=t[kT],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function zR(e,t){e.nodeValue=t}function pp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":pp(n),U(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function LR(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Hu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){rt(l.name,"name");var o=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Kn(e.nextSibling),e===null)break}return null}function jR(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Kn(e.nextSibling),e===null))return null;return e}function Fv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Kn(e.nextSibling),e===null))return null;return e}function mp(e){return e.data===Io||e.data===Yi}function gp(e){return e.data===Qr||e.data===Io&&e.ownerDocument.readyState!==k1}function HR(e,t){var n=e.ownerDocument;if(e.data===Yi)e._reactRetry=t;else if(e.data!==Io||n.readyState!==k1)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Kn(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===xs||t===Qr||t===Io||t===Yi||t===$i||t===Zm||t===H1)break;if(t===ws||t===nd)return null}}return e}function Pv(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},a=e.attributes,l=0;l<a.length;l++){var o=a[l];n[Hv(o.name)]=o.name.toLowerCase()==="style"?cp(e):o.value}return{type:t,props:n}}return e.nodeType===8?e.data===$i?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function Kv(e,t,n){return n===null||n[zT]!==!0?(e.nodeValue===t?e=null:(t=Oo(t),e=Oo(e.nodeValue)===t?null:e.nodeValue),e):null}function yp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===ws||n===nd){if(t===0)return Kn(e.nextSibling);t--}else n!==xs&&n!==Qr&&n!==Io&&n!==Yi&&n!==$i||t++}e=e.nextSibling}return null}function Iv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===xs||n===Qr||n===Io||n===Yi||n===$i){if(t===0)return e;t--}else n!==ws&&n!==nd||t++}e=e.previousSibling}return null}function kR(e){fr(e)}function VR(e){fr(e)}function BR(e){fr(e)}function Wv(e,t,n,a,l){switch(l&&Nd(e,a.ancestorInfo),t=Jc(n),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 $R(e,t,n,a){if(!n[Uo]&&te(n)){var l=n.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.",l,l,l)}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(l=n.attributes;l.length;)n.removeAttributeNode(l[0]);fn(n,e,t),n[dn]=a,n[On]=t}function Au(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);U(e)}function Fc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function e0(e,t,n){var a=Jr;if(a&&typeof t=="string"&&t){var l=ie(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),G1.has(l)||(G1.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),fn(t,"link",e),ve(t),a.head.appendChild(t)))}}function t0(e,t,n,a){var l=(l=_o.current)?Fc(l):null;if(!l)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 n.precedence=="string"&&typeof n.href=="string"?(n=sr(n.href),t=je(l).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=sr(n.href);var o=je(l).hoistableStyles,s=o.get(e);if(!s&&(l=l.ownerDocument||l,s={type:"stylesheet",instance:null,count:0,state:{loading:Gi,preload:null}},o.set(e,s),(o=l.querySelector(_u(e)))&&!o._p&&(s.instance=o,s.state.loading=Ds|wa),!Ra.has(e))){var d={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};Ra.set(e,d),o||YR(l,e,d,s.state)}if(t&&a===null)throw n=`
|
|
182
|
+
|
|
183
|
+
- `+Pc(t)+`
|
|
184
|
+
+ `+Pc(n),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."+n);return s}if(t&&a!==null)throw n=`
|
|
185
|
+
|
|
186
|
+
- `+Pc(t)+`
|
|
187
|
+
+ `+Pc(n),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."+n);return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=cr(n),t=je(l).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{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 Pc(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):Va.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):Va.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):Va.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function sr(e){return'href="'+ie(e)+'"'}function _u(e){return'link[rel="stylesheet"]['+e+"]"}function n0(e){return Fe({},e,{"data-precedence":e.precedence,precedence:null})}function YR(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=Ds:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=Ds}),t.addEventListener("error",function(){return a.loading|=Y1}),fn(t,"link",n),ve(t),e.head.appendChild(t))}function cr(e){return'[src="'+ie(e)+'"]'}function Mu(e){return"script[async]"+e}function a0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ie(n.href)+'"]');if(a)return t.instance=a,ve(a),a;var l=Fe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ve(a),fn(a,"style",l),Kc(a,n.precedence,e),t.instance=a;case"stylesheet":l=sr(n.href);var o=e.querySelector(_u(l));if(o)return t.state.loading|=wa,t.instance=o,ve(o),o;a=n0(n),(l=Ra.get(l))&&bp(a,l),o=(e.ownerDocument||e).createElement("link"),ve(o);var s=o;return s._p=new Promise(function(d,g){s.onload=d,s.onerror=g}),fn(o,"link",a),t.state.loading|=wa,Kc(o,n.precedence,e),t.instance=o;case"script":return o=cr(n.src),(l=e.querySelector(Mu(o)))?(t.instance=l,ve(l),l):(a=n,(l=Ra.get(o))&&(a=Fe({},n),vp(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),ve(l),fn(l,"link",a),e.head.appendChild(l),t.instance=l);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&wa)===Gi&&(a=t.instance,t.state.loading|=wa,Kc(a,n.precedence,e));return t.instance}function Kc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,o=l,s=0;s<a.length;s++){var d=a[s];if(d.dataset.precedence===t)o=d;else if(o!==l)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function l0(e,t,n){if(ld===null){var a=new Map,l=ld=new Map;l.set(n,a)}else l=ld,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var o=n[l];if(!(o[Hu]||o[dn]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!==yr){var s=o.getAttribute(t)||"";s=e+s;var d=a.get(s);d?d.push(o):a.set(s,[o])}}return a}function o0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function qR(e,t,n){var a=!n.ancestorInfo.containerTagInScope;if(n.context===Zr||t.itemProp!=null)return!a||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===""){a&&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 l=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),l&&n.push("`onError`"),o!=null&&n.push("`disabled`"),l=vR(n,"and"),l+=n.length===1?" prop":" props",o=n.length===1?"an "+l:"the "+l,n.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,o,l)}a&&(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"&&a&&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"){a&&(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":a&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function i0(e){return!(e.type==="stylesheet"&&(e.state.loading&q1)===Gi)}function GR(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&wa)===Gi){if(n.instance===null){var l=sr(a.href),o=t.querySelector(_u(l));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ic.bind(e),t.then(e,e)),n.state.loading|=wa,n.instance=o,ve(o);return}o=t.ownerDocument||t,a=n0(a),(l=Ra.get(l))&&bp(a,l),o=o.createElement("link"),ve(o);var s=o;s._p=new Promise(function(d,g){s.onload=d,s.onerror=g}),fn(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&q1)===Gi&&(e.count++,n=Ic.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}function XR(e,t){return e.stylesheets&&e.count===0&&Wc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Wc(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},$T+t);0<e.imgBytes&&Im===0&&(Im=125*SR()*qT);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wc(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Im?50:YT)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function Ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,od=new Map,t.forEach(QR,e),od=null,Ic.call(e))}function QR(e,t){if(!(t.state.loading&wa)){var n=od.get(e);if(n)var a=n.get(Wm);else{n=new Map,od.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<l.length;o++){var s=l[o];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),a=s)}a&&n.set(Wm,a)}l=t.instance,s=l.getAttribute("data-precedence"),o=n.get(s)||a,o===a&&n.set(Wm,l),n.set(s,l),this.count++,a=Ic.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),o?o.parentNode.insertBefore(l,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=wa}}function ZR(e,t,n,a,l,o,s,d,g){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=qi,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,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=n?"hydrateRoot()":"createRoot()"}function r0(e,t,n,a,l,o,s,d,g,b,A,_){return e=new ZR(e,t,n,s,g,b,A,_,d),t=hT,o===!0&&(t|=vn|Ba),t|=Ge,o=x(3,null,null,t),e.current=o,o.stateNode=e,t=Zd(),mi(t),e.pooledCache=t,mi(t),o.memoizedState={element:a,isDehydrated:n,cache:t},Id(o),e}function u0(e){return e?(e=Ho,e):Ho}function Sp(e,t,n,a,l,o){if(bn&&typeof bn.onScheduleFiberRoot=="function")try{bn.onScheduleFiberRoot(mr,a,n)}catch(s){gl||(gl=!0,console.error("React instrumentation encountered an error: %o",s))}l=u0(l),a.context===null?a.context=l:a.pendingContext=l,ml&&Wn!==null&&!J1&&(J1=!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.`,X(Wn)||"Unknown")),a=xo(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(typeof o!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),a.callback=o),n=wo(e,a,t),n!==null&&(el(t,"root.render()",null),_t(n,e,t),du(n,e,t))}function s0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ep(e,t){s0(e,t),(e=e.alternate)&&s0(e,t)}function c0(e){if(e.tag===13||e.tag===31){var t=yn(e,67108864);t!==null&&_t(t,e,67108864),Ep(e,67108864)}}function f0(e){if(e.tag===13||e.tag===31){var t=Pn(e);t=sa(t);var n=yn(e,t);n!==null&&_t(n,e,t),Ep(e,t)}}function JR(){return Wn}function FR(e,t,n,a){var l=$.T;$.T=null;var o=ft.p;try{ft.p=da,xp(e,t,n,a)}finally{ft.p=o,$.T=l}}function PR(e,t,n,a){var l=$.T;$.T=null;var o=ft.p;try{ft.p=bl,xp(e,t,n,a)}finally{ft.p=o,$.T=l}}function xp(e,t,n,a){if(rd){var l=wp(a);if(l===null)rp(e,t,a,ud,n),h0(e,a);else if(KR(l,e,t,n,a))a.stopPropagation();else if(h0(e,a),t&4&&-1<XT.indexOf(e)){for(;l!==null;){var o=te(l);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var s=ia(o.pendingLanes);if(s!==0){var d=o;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var g=1<<31-Nn(s);d.entanglements[1]|=g,s&=~g}fl(o),(ot&(It|aa))===un&&(Gf=ln()+x1,Tu(0))}}break;case 31:case 13:d=yn(o,2),d!==null&&_t(d,o,2),ir(),Ep(o,2)}if(o=wp(a),o===null&&rp(e,t,a,ud,n),o===l)break;l=o}l!==null&&a.stopPropagation()}else rp(e,t,a,null,n)}}function wp(e){return e=Od(e),Rp(e)}function Rp(e){if(ud=null,e=F(e),e!==null){var t=J(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=W(t),e!==null)return e;e=null}else if(n===31){if(e=re(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ud=e,null}function d0(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 da;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 bl;case"message":switch(rD()){case kp:return da;case Vp:return bl;case pr:case uD:return ql;case Bp:return cf;default:return ql}default:return ql}}function h0(e,t){switch(e){case"focusin":case"focusout":Wo=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function Uu(e,t,n,a,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[l]},t!==null&&(t=te(t),t!==null&&c0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function KR(e,t,n,a,l){switch(t){case"focusin":return Wo=Uu(Wo,e,t,n,a,l),!0;case"dragenter":return ei=Uu(ei,e,t,n,a,l),!0;case"mouseover":return ti=Uu(ti,e,t,n,a,l),!0;case"pointerover":var o=l.pointerId;return Ns.set(o,Uu(Ns.get(o)||null,e,t,n,a,l)),!0;case"gotpointercapture":return o=l.pointerId,Os.set(o,Uu(Os.get(o)||null,e,t,n,a,l)),!0}return!1}function p0(e){var t=F(e.target);if(t!==null){var n=J(t);if(n!==null){if(t=n.tag,t===13){if(t=W(n),t!==null){e.blockedOn=t,v(e.priority,function(){f0(n)});return}}else if(t===31){if(t=re(n),t!==null){e.blockedOn=t,v(e.priority,function(){f0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ef(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wp(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n),l=a;ku!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ku=l,n.target.dispatchEvent(a),ku===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."),ku=null}else return t=te(n),t!==null&&c0(t),e.blockedOn=n,!1;t.shift()}return!0}function m0(e,t,n){ef(e)&&n.delete(t)}function IR(){eg=!1,Wo!==null&&ef(Wo)&&(Wo=null),ei!==null&&ef(ei)&&(ei=null),ti!==null&&ef(ti)&&(ti=null),Ns.forEach(m0),Os.forEach(m0)}function tf(e,t){e.blockedOn===t&&(e.blockedOn=null,eg||(eg=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,IR)))}function g0(e){sd!==e&&(sd=e,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,function(){sd===e&&(sd=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(Rp(a||n)===null)continue;break}var o=te(n);o!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:l,method:n.method,action:a},Object.freeze(n),Rh(o,n,a,l))}}))}function fr(e){function t(g){return tf(g,e)}Wo!==null&&tf(Wo,e),ei!==null&&tf(ei,e),ti!==null&&tf(ti,e),Ns.forEach(t),Os.forEach(t);for(var n=0;n<ni.length;n++){var a=ni[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ni.length&&(n=ni[0],n.blockedOn===null);)p0(n),n.blockedOn===null&&ni.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],o=n[a+1],s=l[On]||null;if(typeof o=="function")s||g0(n);else if(s){var d=null;if(o&&o.hasAttribute("formAction")){if(l=o,s=o[On]||null)d=s.formAction;else if(Rp(l)!==null)continue}else d=s.action;typeof d=="function"?n[a+1]=d:(n.splice(a,3),a-=3),g0(n)}}}function y0(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(s){return l=s})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Dp(e){this._internalRoot=e}function nf(e){this._internalRoot=e}function b0(e){e[Uo]&&(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 Bt=oO(),Tp=Qs(),WR=rO(),Fe=Object.assign,eD=Symbol.for("react.element"),hl=Symbol.for("react.transitional.element"),dr=Symbol.for("react.portal"),hr=Symbol.for("react.fragment"),af=Symbol.for("react.strict_mode"),Np=Symbol.for("react.profiler"),Op=Symbol.for("react.consumer"),pl=Symbol.for("react.context"),zu=Symbol.for("react.forward_ref"),Cp=Symbol.for("react.suspense"),Ap=Symbol.for("react.suspense_list"),lf=Symbol.for("react.memo"),In=Symbol.for("react.lazy"),_p=Symbol.for("react.activity"),tD=Symbol.for("react.memo_cache_sentinel"),v0=Symbol.iterator,nD=Symbol.for("react.client.reference"),Pt=Array.isArray,$=Tp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ft=WR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,aD=Object.freeze({pending:!1,data:null,method:null,action:null}),Mp=[],Up=[],Yl=-1,Ao=De(null),Lu=De(null),_o=De(null),of=De(null),ju=0,S0,E0,x0,w0,R0,D0,T0;Ye.__reactDisabledLog=!0;var zp,N0,Lp=!1,jp=new(typeof WeakMap=="function"?WeakMap:Map),Wn=null,ml=!1,Va=Object.prototype.hasOwnProperty,Hp=Bt.unstable_scheduleCallback,lD=Bt.unstable_cancelCallback,oD=Bt.unstable_shouldYield,iD=Bt.unstable_requestPaint,ln=Bt.unstable_now,rD=Bt.unstable_getCurrentPriorityLevel,kp=Bt.unstable_ImmediatePriority,Vp=Bt.unstable_UserBlockingPriority,pr=Bt.unstable_NormalPriority,uD=Bt.unstable_LowPriority,Bp=Bt.unstable_IdlePriority,sD=Bt.log,cD=Bt.unstable_setDisableYieldValue,mr=null,bn=null,gl=!1,yl=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Nn=Math.clz32?Math.clz32:ho,fD=Math.log,dD=Math.LN2,rf=256,uf=262144,sf=4194304,da=2,bl=8,ql=32,cf=268435456,Mo=Math.random().toString(36).slice(2),dn="__reactFiber$"+Mo,On="__reactProps$"+Mo,Uo="__reactContainer$"+Mo,$p="__reactEvents$"+Mo,hD="__reactListeners$"+Mo,pD="__reactHandles$"+Mo,O0="__reactResources$"+Mo,Hu="__reactMarker$"+Mo,C0=new Set,xi={},Yp={},mD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gD=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]*$"),A0={},_0={},yD=/[\n"\\]/g,M0=!1,U0=!1,z0=!1,L0=!1,j0=!1,H0=!1,k0=["value","defaultValue"],V0=!1,B0=/["'&<>\n\t]|^\s|\s$/,bD="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(" "),$0="applet caption html table td th marquee object template foreignObject desc title".split(" "),vD=$0.concat(["button"]),SD="dd dt li option optgroup p rp rt".split(" "),Y0={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ff={},qp={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"]},q0=/([A-Z])/g,G0=/^ms-/,ED=/^(?:webkit|moz|o)[A-Z]/,xD=/^-ms-/,wD=/-(.)/g,X0=/;\s*$/,gr={},Gp={},Q0=!1,Z0=!1,J0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),df="http://www.w3.org/1998/Math/MathML",yr="http://www.w3.org/2000/svg",RD=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"]]),hf={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"},F0={"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},br={},DD=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]*$"),TD=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]*$"),P0=!1,Cn={},K0=/^on./,ND=/^on[^A-Z]/,OD=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]*$"),CD=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]*$"),AD=/^[\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,ku=null,vr=null,Sr=null,Xp=!1,vl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qp=!1;if(vl)try{var Vu={};Object.defineProperty(Vu,"passive",{get:function(){Qp=!0}}),window.addEventListener("test",Vu,Vu),window.removeEventListener("test",Vu,Vu)}catch{Qp=!1}var zo=null,Zp=null,pf=null,wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mf=kn(wi),Bu=Fe({},wi,{view:0,detail:0}),_D=kn(Bu),Jp,Fp,$u,gf=Fe({},Bu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,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!==$u&&($u&&e.type==="mousemove"?(Jp=e.screenX-$u.screenX,Fp=e.screenY-$u.screenY):Fp=Jp=0,$u=e),Jp)},movementY:function(e){return"movementY"in e?e.movementY:Fp}}),I0=kn(gf),MD=Fe({},gf,{dataTransfer:0}),UD=kn(MD),zD=Fe({},Bu,{relatedTarget:0}),Pp=kn(zD),LD=Fe({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),jD=kn(LD),HD=Fe({},wi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kD=kn(HD),VD=Fe({},wi,{data:0}),W0=kn(VD),BD=W0,$D={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YD={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"},qD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},GD=Fe({},Bu,{key:function(e){if(e.key){var t=$D[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ec(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(e){return e.type==="keypress"?ec(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ec(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),XD=kn(GD),QD=Fe({},gf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eS=kn(QD),ZD=Fe({},Bu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd}),JD=kn(ZD),FD=Fe({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),PD=kn(FD),KD=Fe({},gf,{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}),ID=kn(KD),WD=Fe({},wi,{newState:0,oldState:0}),eT=kn(WD),tT=[9,13,27,32],tS=229,Kp=vl&&"CompositionEvent"in window,Yu=null;vl&&"documentMode"in document&&(Yu=document.documentMode);var nT=vl&&"TextEvent"in window&&!Yu,nS=vl&&(!Kp||Yu&&8<Yu&&11>=Yu),aS=32,lS=String.fromCharCode(aS),oS=!1,Er=!1,aT={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},qu=null,Gu=null,iS=!1;vl&&(iS=ww("input")&&(!document.documentMode||9<document.documentMode));var An=typeof Object.is=="function"?Object.is:Cw,lT=vl&&"documentMode"in document&&11>=document.documentMode,xr=null,Ip=null,Xu=null,Wp=!1,wr={animationend:ui("Animation","AnimationEnd"),animationiteration:ui("Animation","AnimationIteration"),animationstart:ui("Animation","AnimationStart"),transitionrun:ui("Transition","TransitionRun"),transitionstart:ui("Transition","TransitionStart"),transitioncancel:ui("Transition","TransitionCancel"),transitionend:ui("Transition","TransitionEnd")},em={},rS={};vl&&(rS=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var uS=si("animationend"),sS=si("animationiteration"),cS=si("animationstart"),oT=si("transitionrun"),iT=si("transitionstart"),rT=si("transitioncancel"),fS=si("transitionend"),dS=new Map,tm="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(" ");tm.push("scrollEnd");var hS=0;if(typeof performance=="object"&&typeof performance.now=="function")var uT=performance,pS=function(){return uT.now()};else{var sT=Date;pS=function(){return sT.now()}}var nm=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)},cT="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.",yf=0,am=1,lm=2,om=3,bf="– ",vf="+ ",mS=" ",xt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ha="Components ⚛",nt="Scheduler ⚛",lt="Blocking",Lo=!1,Gl={color:"primary",properties:null,tooltipText:"",track:ha},jo={start:-0,end:-0,detail:{devtools:Gl}},fT=["Changed Props",""],gS="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dT=["Changed Props",gS],Qu=1,Xl=2,pa=[],Rr=0,im=0,Ho={};Object.freeze(Ho);var ma=null,Dr=null,ze=0,hT=1,Ge=2,vn=8,Ba=16,pT=32,yS=!1;try{var bS=Object.preventExtensions({})}catch{yS=!0}var rm=new WeakMap,Tr=[],Nr=0,Sf=null,Zu=0,ga=[],ya=0,Ri=null,Ql=1,Zl="",hn=null,wt=null,Ie=!1,Sl=!1,ea=null,ko=null,ba=!1,um=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."),sm=De(null),cm=De(null),vS={},Ef=null,Or=null,Cr=!1,mT=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},gT=Bt.unstable_scheduleCallback,yT=Bt.unstable_NormalPriority,$t={$$typeof:pl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Yt=Bt.unstable_now,xf=console.createTask?console.createTask:function(){return null},Ju=1,wf=2,on=-0,Vo=-0,Jl=-0,Fl=null,_n=-1.1,Di=-0,Ct=-0,Oe=-1.1,Ue=-1.1,Tt=null,Mt=!1,Ti=-0,El=-1.1,Fu=null,Bo=0,fm=null,dm=null,Ni=-1.1,Pu=null,Ar=-1.1,Rf=-1.1,Pl=-0,Kl=-1.1,va=-1.1,hm=0,Ku=null,SS=null,ES=null,$o=-1.1,Oi=null,Yo=-1.1,Df=-1.1,xS=-0,wS=-0,Tf=0,bT=null,RS=0,Iu=-1.1,Nf=!1,Of=!1,Wu=null,pm=0,Ci=0,_r=null,DS=$.S;$.S=function(e,t){if(S1=ln(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Kl&&0>va){Kl=Yt();var n=Cu(),a=Ou();(n!==Yo||a!==Oi)&&(Yo=-1.1),$o=n,Oi=a}jw(e,t)}DS!==null&&DS(e,t)};var Ai=De(null),$a={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},es=[],ts=[],ns=[],as=[],ls=[],os=[],_i=new Set;$a.recordUnsafeLifecycleWarnings=function(e,t){_i.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&es.push(e),e.mode&vn&&typeof t.UNSAFE_componentWillMount=="function"&&ts.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ns.push(e),e.mode&vn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&as.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&ls.push(e),e.mode&vn&&typeof t.UNSAFE_componentWillUpdate=="function"&&os.push(e))},$a.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<es.length&&(es.forEach(function(d){e.add(X(d)||"Component"),_i.add(d.type)}),es=[]);var t=new Set;0<ts.length&&(ts.forEach(function(d){t.add(X(d)||"Component"),_i.add(d.type)}),ts=[]);var n=new Set;0<ns.length&&(ns.forEach(function(d){n.add(X(d)||"Component"),_i.add(d.type)}),ns=[]);var a=new Set;0<as.length&&(as.forEach(function(d){a.add(X(d)||"Component"),_i.add(d.type)}),as=[]);var l=new Set;0<ls.length&&(ls.forEach(function(d){l.add(X(d)||"Component"),_i.add(d.type)}),ls=[]);var o=new Set;if(0<os.length&&(os.forEach(function(d){o.add(X(d)||"Component"),_i.add(d.type)}),os=[]),0<t.size){var s=S(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`,s)}0<a.size&&(s=S(a),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`,s)),0<o.size&&(s=S(o),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`,s)),0<e.size&&(s=S(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`,s)),0<n.size&&(s=S(n),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`,s)),0<l.size&&(s=S(l),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`,s))};var Cf=new Map,TS=new Set;$a.recordLegacyContextWarning=function(e,t){for(var n=null,a=e;a!==null;)a.mode&vn&&(n=a),a=a.return;n===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."):!TS.has(e.type)&&(a=Cf.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Cf.set(n,a)),a.push(e))},$a.flushLegacyContextWarning=function(){Cf.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(l){n.add(X(l)||"Component"),TS.add(l.type)});var a=S(n);se(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`,a)})}})},$a.discardPendingWarnings=function(){es=[],ts=[],ns=[],as=[],ls=[],os=[],Cf=new Map};var NS={react_stack_bottom_frame:function(e,t,n){var a=ml;ml=!0;try{return e(t,n)}finally{ml=a}}},mm=NS.react_stack_bottom_frame.bind(NS),OS={react_stack_bottom_frame:function(e){var t=ml;ml=!0;try{return e.render()}finally{ml=t}}},CS=OS.react_stack_bottom_frame.bind(OS),AS={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){ct(e,e.return,n)}}},gm=AS.react_stack_bottom_frame.bind(AS),_S={react_stack_bottom_frame:function(e,t,n,a,l){try{t.componentDidUpdate(n,a,l)}catch(o){ct(e,e.return,o)}}},MS=_S.react_stack_bottom_frame.bind(_S),US={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},vT=US.react_stack_bottom_frame.bind(US),zS={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(a){ct(e,t,a)}}},LS=zS.react_stack_bottom_frame.bind(zS),jS={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},ST=jS.react_stack_bottom_frame.bind(jS),HS={react_stack_bottom_frame:function(e,t,n){try{n()}catch(a){ct(e,t,a)}}},ET=HS.react_stack_bottom_frame.bind(HS),kS={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},xT=kS.react_stack_bottom_frame.bind(kS),Mr=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`."),ym=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."),Af=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."),_f={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.')}},Mi=null,is=!1,Ur=null,rs=0,Xe=null,bm,VS=bm=!1,BS={},$S={},YS={};w=function(e,t,n){if(n!==null&&typeof n=="object"&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._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.");n._store.validated=1;var a=X(e),l=a||"null";if(!BS[l]){BS[l]=!0,n=n._owner,e=e._debugOwner;var o="";e&&typeof e.tag=="number"&&(l=X(e))&&(o=`
|
|
225
|
+
|
|
226
|
+
Check the render method of \``+l+"`."),o||a&&(o=`
|
|
227
|
+
|
|
228
|
+
Check the top-level render call using <`+a+">.");var s="";n!=null&&e!==n&&(a=null,typeof n.tag=="number"?a=X(n):typeof n.name=="string"&&(a=n.name),a&&(s=" It was passed a child from "+a+".")),se(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.',o,s)})}}};var Ui=zy(!0),qS=zy(!1),GS=0,XS=1,QS=2,vm=3,qo=!1,ZS=!1,Sm=null,Em=!1,zr=De(null),Mf=De(0),ta=De(null),Sa=null,Lr=1,us=2,kt=De(0),Uf=0,Ea=1,Mn=2,na=4,Un=8,jr,JS=new Set,FS=new Set,xm=new Set,PS=new Set,Il=0,He=null,gt=null,qt=null,zf=!1,Hr=!1,zi=!1,Lf=0,ss=0,Wl=null,wT=0,RT=25,V=null,xa=null,eo=-1,cs=!1,fs={readContext:Dt,use:To,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useLayoutEffect:zt,useInsertionEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useSyncExternalStore:zt,useId:zt,useHostTransitionStatus:zt,useFormState:zt,useActionState:zt,useOptimistic:zt,useMemoCache:zt,useCacheRefresh:zt};fs.useEffectEvent=zt;var wm=null,KS=null,Rm=null,IS=null,xl=null,Ya=null,jf=null;wm={readContext:function(e){return Dt(e)},use:To,useCallback:function(e,t){return V="useCallback",Je(),Wi(t),Sh(e,t)},useContext:function(e){return V="useContext",Je(),Dt(e)},useEffect:function(e,t){return V="useEffect",Je(),Wi(t),Oc(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",Je(),Wi(n),vh(e,t,n)},useInsertionEffect:function(e,t){V="useInsertionEffect",Je(),Wi(t),yi(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",Je(),Wi(t),bh(e,t)},useMemo:function(e,t){V="useMemo",Je(),Wi(t);var n=$.H;$.H=xl;try{return Eh(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",Je();var a=$.H;$.H=xl;try{return sh(e,t,n)}finally{$.H=a}},useRef:function(e){return V="useRef",Je(),gh(e)},useState:function(e){V="useState",Je();var t=$.H;$.H=xl;try{return hh(e)}finally{$.H=t}},useDebugValue:function(){V="useDebugValue",Je()},useDeferredValue:function(e,t){return V="useDeferredValue",Je(),xh(e,t)},useTransition:function(){return V="useTransition",Je(),Dh()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",Je(),fh(e,t,n)},useId:function(){return V="useId",Je(),Th()},useFormState:function(e,t){return V="useFormState",Je(),wc(),tr(e,t)},useActionState:function(e,t){return V="useActionState",Je(),tr(e,t)},useOptimistic:function(e){return V="useOptimistic",Je(),ph(e)},useHostTransitionStatus:bi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",Je(),Nh()},useEffectEvent:function(e){return V="useEffectEvent",Je(),yh(e)}},KS={readContext:function(e){return Dt(e)},use:To,useCallback:function(e,t){return V="useCallback",P(),Sh(e,t)},useContext:function(e){return V="useContext",P(),Dt(e)},useEffect:function(e,t){return V="useEffect",P(),Oc(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",P(),vh(e,t,n)},useInsertionEffect:function(e,t){V="useInsertionEffect",P(),yi(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",P(),bh(e,t)},useMemo:function(e,t){V="useMemo",P();var n=$.H;$.H=xl;try{return Eh(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",P();var a=$.H;$.H=xl;try{return sh(e,t,n)}finally{$.H=a}},useRef:function(e){return V="useRef",P(),gh(e)},useState:function(e){V="useState",P();var t=$.H;$.H=xl;try{return hh(e)}finally{$.H=t}},useDebugValue:function(){V="useDebugValue",P()},useDeferredValue:function(e,t){return V="useDeferredValue",P(),xh(e,t)},useTransition:function(){return V="useTransition",P(),Dh()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",P(),fh(e,t,n)},useId:function(){return V="useId",P(),Th()},useActionState:function(e,t){return V="useActionState",P(),tr(e,t)},useFormState:function(e,t){return V="useFormState",P(),wc(),tr(e,t)},useOptimistic:function(e){return V="useOptimistic",P(),ph(e)},useHostTransitionStatus:bi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",P(),Nh()},useEffectEvent:function(e){return V="useEffectEvent",P(),yh(e)}},Rm={readContext:function(e){return Dt(e)},use:To,useCallback:function(e,t){return V="useCallback",P(),_c(e,t)},useContext:function(e){return V="useContext",P(),Dt(e)},useEffect:function(e,t){V="useEffect",P(),Vn(2048,Un,e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",P(),Ac(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",P(),Vn(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",P(),Vn(4,na,e,t)},useMemo:function(e,t){V="useMemo",P();var n=$.H;$.H=Ya;try{return Mc(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",P();var a=$.H;$.H=Ya;try{return er(e,t,n)}finally{$.H=a}},useRef:function(){return V="useRef",P(),dt().memoizedState},useState:function(){V="useState",P();var e=$.H;$.H=Ya;try{return er(Ha)}finally{$.H=e}},useDebugValue:function(){V="useDebugValue",P()},useDeferredValue:function(e,t){return V="useDeferredValue",P(),nb(e,t)},useTransition:function(){return V="useTransition",P(),ub()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",P(),Dc(e,t,n)},useId:function(){return V="useId",P(),dt().memoizedState},useFormState:function(e){return V="useFormState",P(),wc(),Tc(e)},useActionState:function(e){return V="useActionState",P(),Tc(e)},useOptimistic:function(e,t){return V="useOptimistic",P(),Qy(e,t)},useHostTransitionStatus:bi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",P(),dt().memoizedState},useEffectEvent:function(e){return V="useEffectEvent",P(),Cc(e)}},IS={readContext:function(e){return Dt(e)},use:To,useCallback:function(e,t){return V="useCallback",P(),_c(e,t)},useContext:function(e){return V="useContext",P(),Dt(e)},useEffect:function(e,t){V="useEffect",P(),Vn(2048,Un,e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",P(),Ac(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",P(),Vn(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",P(),Vn(4,na,e,t)},useMemo:function(e,t){V="useMemo",P();var n=$.H;$.H=jf;try{return Mc(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",P();var a=$.H;$.H=jf;try{return gu(e,t,n)}finally{$.H=a}},useRef:function(){return V="useRef",P(),dt().memoizedState},useState:function(){V="useState",P();var e=$.H;$.H=jf;try{return gu(Ha)}finally{$.H=e}},useDebugValue:function(){V="useDebugValue",P()},useDeferredValue:function(e,t){return V="useDeferredValue",P(),ab(e,t)},useTransition:function(){return V="useTransition",P(),sb()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",P(),Dc(e,t,n)},useId:function(){return V="useId",P(),dt().memoizedState},useFormState:function(e){return V="useFormState",P(),wc(),Nc(e)},useActionState:function(e){return V="useActionState",P(),Nc(e)},useOptimistic:function(e,t){return V="useOptimistic",P(),Jy(e,t)},useHostTransitionStatus:bi,useMemoCache:gi,useCacheRefresh:function(){return V="useCacheRefresh",P(),dt().memoizedState},useEffectEvent:function(e){return V="useEffectEvent",P(),Cc(e)}},xl={readContext:function(e){return y(),Dt(e)},use:function(e){return m(),To(e)},useCallback:function(e,t){return V="useCallback",m(),Je(),Sh(e,t)},useContext:function(e){return V="useContext",m(),Je(),Dt(e)},useEffect:function(e,t){return V="useEffect",m(),Je(),Oc(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",m(),Je(),vh(e,t,n)},useInsertionEffect:function(e,t){V="useInsertionEffect",m(),Je(),yi(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",m(),Je(),bh(e,t)},useMemo:function(e,t){V="useMemo",m(),Je();var n=$.H;$.H=xl;try{return Eh(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",m(),Je();var a=$.H;$.H=xl;try{return sh(e,t,n)}finally{$.H=a}},useRef:function(e){return V="useRef",m(),Je(),gh(e)},useState:function(e){V="useState",m(),Je();var t=$.H;$.H=xl;try{return hh(e)}finally{$.H=t}},useDebugValue:function(){V="useDebugValue",m(),Je()},useDeferredValue:function(e,t){return V="useDeferredValue",m(),Je(),xh(e,t)},useTransition:function(){return V="useTransition",m(),Je(),Dh()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",m(),Je(),fh(e,t,n)},useId:function(){return V="useId",m(),Je(),Th()},useFormState:function(e,t){return V="useFormState",m(),Je(),tr(e,t)},useActionState:function(e,t){return V="useActionState",m(),Je(),tr(e,t)},useOptimistic:function(e){return V="useOptimistic",m(),Je(),ph(e)},useMemoCache:function(e){return m(),gi(e)},useHostTransitionStatus:bi,useCacheRefresh:function(){return V="useCacheRefresh",Je(),Nh()},useEffectEvent:function(e){return V="useEffectEvent",m(),Je(),yh(e)}},Ya={readContext:function(e){return y(),Dt(e)},use:function(e){return m(),To(e)},useCallback:function(e,t){return V="useCallback",m(),P(),_c(e,t)},useContext:function(e){return V="useContext",m(),P(),Dt(e)},useEffect:function(e,t){V="useEffect",m(),P(),Vn(2048,Un,e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",m(),P(),Ac(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",m(),P(),Vn(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",m(),P(),Vn(4,na,e,t)},useMemo:function(e,t){V="useMemo",m(),P();var n=$.H;$.H=Ya;try{return Mc(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",m(),P();var a=$.H;$.H=Ya;try{return er(e,t,n)}finally{$.H=a}},useRef:function(){return V="useRef",m(),P(),dt().memoizedState},useState:function(){V="useState",m(),P();var e=$.H;$.H=Ya;try{return er(Ha)}finally{$.H=e}},useDebugValue:function(){V="useDebugValue",m(),P()},useDeferredValue:function(e,t){return V="useDeferredValue",m(),P(),nb(e,t)},useTransition:function(){return V="useTransition",m(),P(),ub()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",m(),P(),Dc(e,t,n)},useId:function(){return V="useId",m(),P(),dt().memoizedState},useFormState:function(e){return V="useFormState",m(),P(),Tc(e)},useActionState:function(e){return V="useActionState",m(),P(),Tc(e)},useOptimistic:function(e,t){return V="useOptimistic",m(),P(),Qy(e,t)},useMemoCache:function(e){return m(),gi(e)},useHostTransitionStatus:bi,useCacheRefresh:function(){return V="useCacheRefresh",P(),dt().memoizedState},useEffectEvent:function(e){return V="useEffectEvent",m(),P(),Cc(e)}},jf={readContext:function(e){return y(),Dt(e)},use:function(e){return m(),To(e)},useCallback:function(e,t){return V="useCallback",m(),P(),_c(e,t)},useContext:function(e){return V="useContext",m(),P(),Dt(e)},useEffect:function(e,t){V="useEffect",m(),P(),Vn(2048,Un,e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",m(),P(),Ac(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",m(),P(),Vn(4,Mn,e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",m(),P(),Vn(4,na,e,t)},useMemo:function(e,t){V="useMemo",m(),P();var n=$.H;$.H=Ya;try{return Mc(e,t)}finally{$.H=n}},useReducer:function(e,t,n){V="useReducer",m(),P();var a=$.H;$.H=Ya;try{return gu(e,t,n)}finally{$.H=a}},useRef:function(){return V="useRef",m(),P(),dt().memoizedState},useState:function(){V="useState",m(),P();var e=$.H;$.H=Ya;try{return gu(Ha)}finally{$.H=e}},useDebugValue:function(){V="useDebugValue",m(),P()},useDeferredValue:function(e,t){return V="useDeferredValue",m(),P(),ab(e,t)},useTransition:function(){return V="useTransition",m(),P(),sb()},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",m(),P(),Dc(e,t,n)},useId:function(){return V="useId",m(),P(),dt().memoizedState},useFormState:function(e){return V="useFormState",m(),P(),Nc(e)},useActionState:function(e){return V="useActionState",m(),P(),Nc(e)},useOptimistic:function(e,t){return V="useOptimistic",m(),P(),Jy(e,t)},useMemoCache:function(e){return m(),gi(e)},useHostTransitionStatus:bi,useCacheRefresh:function(){return V="useCacheRefresh",P(),dt().memoizedState},useEffectEvent:function(e){return V="useEffectEvent",m(),P(),Cc(e)}};var WS={},e1=new Set,t1=new Set,n1=new Set,a1=new Set,l1=new Set,o1=new Set,i1=new Set,r1=new Set,u1=new Set,s1=new Set;Object.freeze(WS);var Dm={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Pn(e),l=xo(a);l.payload=t,n!=null&&(Ch(n),l.callback=n),t=wo(e,l,a),t!==null&&(el(a,"this.setState()",e),_t(t,e,a),du(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Pn(e),l=xo(a);l.tag=XS,l.payload=t,n!=null&&(Ch(n),l.callback=n),t=wo(e,l,a),t!==null&&(el(a,"this.replaceState()",e),_t(t,e,a),du(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pn(e),a=xo(n);a.tag=QS,t!=null&&(Ch(t),a.callback=t),t=wo(e,a,n),t!==null&&(el(n,"this.forceUpdate()",e),_t(t,e,n),du(t,e,n))}},kr=null,Tm=null,Nm=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."),Gt=!1,c1={},f1={},d1={},h1={},Vr=!1,p1={},Hf={},Om={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},m1=!1,g1=null;g1=new Set;var to=!1,Xt=!1,Cm=!1,y1=typeof WeakSet=="function"?WeakSet:Set,rn=null,Br=null,$r=null,Qt=null,Yn=!1,qa=null,Kt=!1,ds=8192,DT={getCacheForType:function(e){var t=Dt($t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Dt($t).controller.signal},getOwner:function(){return Wn}};if(typeof Symbol=="function"&&Symbol.for){var hs=Symbol.for;hs("selector.component"),hs("selector.has_pseudo_class"),hs("selector.role"),hs("selector.test_id"),hs("selector.text")}var TT=[],NT=typeof WeakMap=="function"?WeakMap:Map,un=0,It=2,aa=4,no=0,ps=1,Li=2,kf=3,Go=4,Vf=6,b1=5,ot=un,yt=null,Ze=null,Qe=0,qn=0,Bf=1,ji=2,ms=3,v1=4,Am=5,gs=6,$f=7,_m=8,Hi=9,ht=qn,la=null,Xo=!1,Yr=!1,Mm=!1,wl=0,At=no,Qo=0,Zo=0,Um=0,Gn=0,ki=0,ys=null,zn=null,Yf=!1,qf=0,S1=0,E1=300,Gf=1/0,x1=500,bs=null,Lt=null,Jo=null,Xf=0,zm=1,Lm=2,w1=3,Fo=0,R1=1,D1=2,T1=3,N1=4,Qf=5,Zt=0,Po=null,qr=null,Ga=0,jm=0,Hm=-0,km=null,O1=null,C1=null,Xa=Xf,A1=null,OT=50,vs=0,Vm=null,Bm=!1,Zf=!1,CT=50,Vi=0,Ss=null,Gr=!1,Jf=null,_1=!1,M1=new Set,AT={},Ff=null,Xr=null,$m=!1,Ym=!1,Pf=!1,qm=!1,Ko=0,Gm={};(function(){for(var e=0;e<tm.length;e++){var t=tm[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),La(n,"on"+t)}La(uS,"onAnimationEnd"),La(sS,"onAnimationIteration"),La(cS,"onAnimationStart"),La("dblclick","onDoubleClick"),La("focusin","onFocus"),La("focusout","onBlur"),La(oT,"onTransitionRun"),La(iT,"onTransitionStart"),La(rT,"onTransitionCancel"),La(fS,"onTransitionEnd")})(),Be("onMouseEnter",["mouseout","mouseover"]),Be("onMouseLeave",["mouseout","mouseover"]),Be("onPointerEnter",["pointerout","pointerover"]),Be("onPointerLeave",["pointerout","pointerover"]),Ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(" "),Xm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Es)),Kf="_reactListening"+Math.random().toString(36).slice(2),U1=!1,z1=!1,If=!1,L1=!1,Wf=!1,ed=!1,j1=!1,td={},_T=/\r\n?/g,MT=/\u0000|\uFFFD/g,Bi="http://www.w3.org/1999/xlink",Qm="http://www.w3.org/XML/1998/namespace",UT="javascript:throw new Error('React form unexpectedly submitted.')",zT="suppressHydrationWarning",$i="&",nd="/&",xs="$",ws="/$",Io="$?",Yi="$~",Qr="$!",LT="html",jT="body",HT="head",Zm="F!",H1="F",k1="loading",kT="style",ao=0,Zr=1,ad=2,Jm=null,Fm=null,V1={dialog:!0,webview:!0},Pm=null,Rs=void 0,B1=typeof setTimeout=="function"?setTimeout:void 0,VT=typeof clearTimeout=="function"?clearTimeout:void 0,qi=-1,$1=typeof Promise=="function"?Promise:void 0,BT=typeof queueMicrotask=="function"?queueMicrotask:typeof $1<"u"?function(e){return $1.resolve(null).then(e).catch(xR)}:B1,Km=null,Gi=0,Ds=1,Y1=2,q1=3,wa=4,Ra=new Map,G1=new Set,lo=ft.d;ft.d={f:function(){var e=lo.f(),t=ir();return e||t},r:function(e){var t=te(e);t!==null&&t.tag===5&&t.type==="form"?rb(t):lo.r(e)},D:function(e){lo.D(e),e0("dns-prefetch",e,null)},C:function(e,t){lo.C(e,t),e0("preconnect",e,t)},L:function(e,t,n){lo.L(e,t,n);var a=Jr;if(a&&e&&t){var l='link[rel="preload"][as="'+ie(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+ie(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+ie(n.imageSizes)+'"]')):l+='[href="'+ie(e)+'"]';var o=l;switch(t){case"style":o=sr(e);break;case"script":o=cr(e)}Ra.has(o)||(e=Fe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ra.set(o,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(_u(o))||t==="script"&&a.querySelector(Mu(o))||(t=a.createElement("link"),fn(t,"link",e),ve(t),a.head.appendChild(t)))}},m:function(e,t){lo.m(e,t);var n=Jr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+ie(a)+'"][href="'+ie(e)+'"]',o=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=cr(e)}if(!Ra.has(o)&&(e=Fe({rel:"modulepreload",href:e},t),Ra.set(o,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mu(o)))return}a=n.createElement("link"),fn(a,"link",e),ve(a),n.head.appendChild(a)}}},X:function(e,t){lo.X(e,t);var n=Jr;if(n&&e){var a=je(n).hoistableScripts,l=cr(e),o=a.get(l);o||(o=n.querySelector(Mu(l)),o||(e=Fe({src:e,async:!0},t),(t=Ra.get(l))&&vp(e,t),o=n.createElement("script"),ve(o),fn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(l,o))}},S:function(e,t,n){lo.S(e,t,n);var a=Jr;if(a&&e){var l=je(a).hoistableStyles,o=sr(e);t=t||"default";var s=l.get(o);if(!s){var d={loading:Gi,preload:null};if(s=a.querySelector(_u(o)))d.loading=Ds|wa;else{e=Fe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ra.get(o))&&bp(e,n);var g=s=a.createElement("link");ve(g),fn(g,"link",e),g._p=new Promise(function(b,A){g.onload=b,g.onerror=A}),g.addEventListener("load",function(){d.loading|=Ds}),g.addEventListener("error",function(){d.loading|=Y1}),d.loading|=wa,Kc(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(o,s)}}},M:function(e,t){lo.M(e,t);var n=Jr;if(n&&e){var a=je(n).hoistableScripts,l=cr(e),o=a.get(l);o||(o=n.querySelector(Mu(l)),o||(e=Fe({src:e,async:!0,type:"module"},t),(t=Ra.get(l))&&vp(e,t),o=n.createElement("script"),ve(o),fn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(l,o))}}};var Jr=typeof document>"u"?null:document,ld=null,$T=6e4,YT=800,qT=500,Im=0,Wm=null,od=null,Xi=aD,Ts={$$typeof:pl,Provider:null,Consumer:null,_currentValue:Xi,_currentValue2:Xi,_threadCount:0},X1="%c%s%c",Q1="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",Z1="",id=" ",GT=Function.prototype.bind,J1=!1,F1=null,P1=null,K1=null,I1=null,W1=null,eE=null,tE=null,nE=null,aE=null,lE=null;F1=function(e,t,n,a){t=r(e,t),t!==null&&(n=i(t.memoizedState,n,0,a),t.memoizedState=n,t.baseState=n,e.memoizedProps=Fe({},e.memoizedProps),n=yn(e,2),n!==null&&_t(n,e,2))},P1=function(e,t,n){t=r(e,t),t!==null&&(n=f(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Fe({},e.memoizedProps),n=yn(e,2),n!==null&&_t(n,e,2))},K1=function(e,t,n,a){t=r(e,t),t!==null&&(n=u(t.memoizedState,n,a),t.memoizedState=n,t.baseState=n,e.memoizedProps=Fe({},e.memoizedProps),n=yn(e,2),n!==null&&_t(n,e,2))},I1=function(e,t,n){e.pendingProps=i(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=yn(e,2),t!==null&&_t(t,e,2)},W1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=yn(e,2),t!==null&&_t(t,e,2)},eE=function(e,t,n){e.pendingProps=u(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=yn(e,2),t!==null&&_t(t,e,2)},tE=function(e){var t=yn(e,2);t!==null&&_t(t,e,2)},nE=function(e){var t=Aa(),n=yn(e,t);n!==null&&_t(n,e,t)},aE=function(e){p=e},lE=function(e){h=e};var rd=!0,ud=null,eg=!1,Wo=null,ei=null,ti=null,Ns=new Map,Os=new Map,ni=[],XT="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(" "),sd=null;if(nf.prototype.render=Dp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[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()."):Y(n[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 n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var a=t.current,l=Pn(a);Sp(a,l,n,t,null,null)},nf.prototype.unmount=Dp.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;(ot&(It|aa))!==un&&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."),Sp(e.current,2,null,e,null,null),ir(),t[Uo]=null}},nf.prototype.unstable_scheduleHydration=function(e){if(e){var t=_a();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ni.length&&t!==0&&t<ni[n].priority;n++);ni.splice(n,0,e),n===0&&p0(e)}},(function(){var e=Tp.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"),ft.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=ye(t),e=e!==null?Ve(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.4"};return e.overrideHookState=F1,e.overrideHookStateDeletePath=P1,e.overrideHookStateRenamePath=K1,e.overrideProps=I1,e.overridePropsDeletePath=W1,e.overridePropsRenamePath=eE,e.scheduleUpdate=tE,e.scheduleRetry=nE,e.setErrorHandler=aE,e.setSuspenseHandler=lE,e.scheduleRefresh=L,e.scheduleRoot=D,e.setRefreshHandler=Q,e.getCurrentFiber=JR,eu(e)})()&&vl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var oE=window.location.protocol;/^(https?|file):$/.test(oE)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(oE==="file:"?`
|
|
232
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}As.createRoot=function(e,t){if(!Y(e))throw Error("Target container is not a DOM element.");b0(e);var n=!1,a="",l=mb,o=gb,s=yb;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===hl&&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&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=r0(e,1,!1,null,null,n,a,null,l,o,s,y0),e[Uo]=t.current,ip(e),new Dp(t)},As.hydrateRoot=function(e,t,n){if(!Y(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 a=!1,l="",o=mb,s=gb,d=yb,g=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),t=r0(e,1,!0,t,n??null,a,l,g,o,s,d,y0),t.context=u0(null),n=t.current,a=Pn(n),a=sa(a),l=xo(a),l.callback=null,wo(n,l,a),el(a,"hydrateRoot()",null),n=a,t.current.lanes=n,ua(t,n),fl(t),e[Uo]=t.current,ip(e),new nf(t)},As.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),As}var jE;function sO(){return jE||(jE=1,ug.exports=uO()),ug.exports}var cO=sO();var Cx=r=>{throw TypeError(r)},fO=(r,i,u)=>i.has(r)||Cx("Cannot "+u),dg=(r,i,u)=>(fO(r,i,"read from private field"),u?u.call(r):i.get(r)),dO=(r,i,u)=>i.has(r)?Cx("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(r):i.set(r,u),HE="popstate";function kE(r){return typeof r=="object"&&r!=null&&"pathname"in r&&"search"in r&&"hash"in r&&"state"in r&&"key"in r}function hO(r={}){function i(c,f){let h=f.state?.masked,{pathname:p,search:m,hash:y}=h||c.location;return qs("",{pathname:p,search:m,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function u(c,f){return typeof f=="string"?f:Dl(f)}return mO(i,u,null,r)}function We(r,i){if(r===!1||r===null||typeof r>"u")throw new Error(i)}function Jt(r,i){if(!r){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function pO(){return Math.random().toString(36).substring(2,10)}function VE(r,i){return{usr:r.state,key:r.key,idx:i,masked:r.unstable_mask?{pathname:r.pathname,search:r.search,hash:r.hash}:void 0}}function qs(r,i,u=null,c,f){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof i=="string"?uo(i):i,state:u,key:i&&i.key||c||pO(),unstable_mask:f}}function Dl({pathname:r="/",search:i="",hash:u=""}){return i&&i!=="?"&&(r+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(r+=u.charAt(0)==="#"?u:"#"+u),r}function uo(r){let i={};if(r){let u=r.indexOf("#");u>=0&&(i.hash=r.substring(u),r=r.substring(0,u));let c=r.indexOf("?");c>=0&&(i.search=r.substring(c),r=r.substring(0,c)),r&&(i.pathname=r)}return i}function mO(r,i,u,c={}){let{window:f=document.defaultView,v5Compat:h=!1}=c,p=f.history,m="POP",y=null,E=w();E==null&&(E=0,p.replaceState({...p.state,idx:E},""));function w(){return(p.state||{idx:null}).idx}function S(){m="POP";let Y=w(),J=Y==null?null:Y-E;E=Y,y&&y({action:m,location:Q.location,delta:J})}function x(Y,J){m="PUSH";let W=kE(Y)?Y:qs(Q.location,Y,J);E=w()+1;let re=VE(W,E),Ee=Q.createHref(W.unstable_mask||W);try{p.pushState(re,"",Ee)}catch(ye){if(ye instanceof DOMException&&ye.name==="DataCloneError")throw ye;f.location.assign(Ee)}h&&y&&y({action:m,location:Q.location,delta:1})}function D(Y,J){m="REPLACE";let W=kE(Y)?Y:qs(Q.location,Y,J);E=w();let re=VE(W,E),Ee=Q.createHref(W.unstable_mask||W);p.replaceState(re,"",Ee),h&&y&&y({action:m,location:Q.location,delta:0})}function L(Y){return Ax(Y)}let Q={get action(){return m},get location(){return r(f,p)},listen(Y){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(HE,S),y=Y,()=>{f.removeEventListener(HE,S),y=null}},createHref(Y){return i(f,Y)},createURL:L,encodeLocation(Y){let J=L(Y);return{pathname:J.pathname,search:J.search,hash:J.hash}},push:x,replace:D,go(Y){return p.go(Y)}};return Q}function Ax(r,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),We(u,"No window.location.(origin|href) available to create URL");let c=typeof r=="string"?r:Dl(r);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=u+c),new URL(c,u)}var Hs,BE=class{constructor(r){if(dO(this,Hs,new Map),r)for(let[i,u]of r)this.set(i,u)}get(r){if(dg(this,Hs).has(r))return dg(this,Hs).get(r);if(r.defaultValue!==void 0)return r.defaultValue;throw new Error("No value found for context")}set(r,i){dg(this,Hs).set(r,i)}};Hs=new WeakMap;var gO=new Set(["lazy","caseSensitive","path","id","index","children"]);function yO(r){return gO.has(r)}var bO=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function vO(r){return bO.has(r)}function SO(r){return r.index===!0}function Gs(r,i,u=[],c={},f=!1){return r.map((h,p)=>{let m=[...u,String(p)],y=typeof h.id=="string"?h.id:m.join("-");if(We(h.index!==!0||!h.children,"Cannot specify children on an index route"),We(f||!c[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),SO(h)){let E={...h,id:y};return c[y]=$E(E,i(E)),E}else{let E={...h,id:y,children:void 0};return c[y]=$E(E,i(E)),h.children&&(E.children=Gs(h.children,i,m,c,f)),E}})}function $E(r,i){return Object.assign(r,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...r.lazy,...i.lazy}}:{}})}function ai(r,i,u="/"){return ks(r,i,u,!1)}function ks(r,i,u,c){let f=typeof i=="string"?uo(i):i,h=Ta(f.pathname||"/",u);if(h==null)return null;let p=_x(r);xO(p);let m=null;for(let y=0;m==null&&y<p.length;++y){let E=UO(h);m=_O(p[y],E,c)}return m}function EO(r,i){let{route:u,pathname:c,params:f}=r;return{id:u.id,pathname:c,params:f,data:i[u.id],loaderData:i[u.id],handle:u.handle}}function _x(r,i=[],u=[],c="",f=!1){let h=(p,m,y=f,E)=>{let w={relativePath:E===void 0?p.path||"":E,caseSensitive:p.caseSensitive===!0,childrenIndex:m,route:p};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(c)&&y)return;We(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 S=Qa([c,w.relativePath]),x=u.concat(w);p.children&&p.children.length>0&&(We(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),_x(p.children,i,x,S,y)),!(p.path==null&&!p.index)&&i.push({path:S,score:CO(S,p.index),routesMeta:x})};return r.forEach((p,m)=>{if(p.path===""||!p.path?.includes("?"))h(p,m);else for(let y of Mx(p.path))h(p,m,!0,y)}),i}function Mx(r){let i=r.split("/");if(i.length===0)return[];let[u,...c]=i,f=u.endsWith("?"),h=u.replace(/\?$/,"");if(c.length===0)return f?[h,""]:[h];let p=Mx(c.join("/")),m=[];return m.push(...p.map(y=>y===""?h:[h,y].join("/"))),f&&m.push(...p),m.map(y=>r.startsWith("/")&&y===""?"/":y)}function xO(r){r.sort((i,u)=>i.score!==u.score?u.score-i.score:AO(i.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var wO=/^:[\w-]+$/,RO=3,DO=2,TO=1,NO=10,OO=-2,YE=r=>r==="*";function CO(r,i){let u=r.split("/"),c=u.length;return u.some(YE)&&(c+=OO),i&&(c+=DO),u.filter(f=>!YE(f)).reduce((f,h)=>f+(wO.test(h)?RO:h===""?TO:NO),c)}function AO(r,i){return r.length===i.length&&r.slice(0,-1).every((c,f)=>c===i[f])?r[r.length-1]-i[i.length-1]:0}function _O(r,i,u=!1){let{routesMeta:c}=r,f={},h="/",p=[];for(let m=0;m<c.length;++m){let y=c[m],E=m===c.length-1,w=h==="/"?i:i.slice(h.length)||"/",S=xd({path:y.relativePath,caseSensitive:y.caseSensitive,end:E},w),x=y.route;if(!S&&E&&u&&!c[c.length-1].route.index&&(S=xd({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},w)),!S)return null;Object.assign(f,S.params),p.push({params:f,pathname:Qa([h,S.pathname]),pathnameBase:jO(Qa([h,S.pathnameBase])),route:x}),S.pathnameBase!=="/"&&(h=Qa([h,S.pathnameBase]))}return p}function xd(r,i){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[u,c]=MO(r.path,r.caseSensitive,r.end),f=i.match(u);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),m=f.slice(1);return{params:c.reduce((E,{paramName:w,isOptional:S},x)=>{if(w==="*"){let L=m[x]||"";p=h.slice(0,h.length-L.length).replace(/(.)\/+$/,"$1")}const D=m[x];return S&&!D?E[w]=void 0:E[w]=(D||"").replace(/%2F/g,"/"),E},{}),pathname:h,pathnameBase:p,pattern:r}}function MO(r,i=!1,u=!0){Jt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let c=[],f="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,m,y,E,w)=>{if(c.push({paramName:m,isOptional:y!=null}),y){let S=w.charAt(E+p.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(c.push({paramName:"*"}),f+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?f+="\\/*$":r!==""&&r!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),c]}function UO(r){try{return r.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Jt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),r}}function Ta(r,i){if(i==="/")return r;if(!r.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,c=r.charAt(u);return c&&c!=="/"?null:r.slice(u)||"/"}function zO({basename:r,pathname:i}){return i==="/"?r:Qa([r,i])}var Ux=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tg=r=>Ux.test(r);function LO(r,i="/"){let{pathname:u,search:c="",hash:f=""}=typeof r=="string"?uo(r):r,h;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?h=qE(u.substring(1),"/"):h=qE(u,i)):h=i,{pathname:h,search:HO(c),hash:kO(f)}}function qE(r,i){let u=i.replace(/\/+$/,"").split("/");return r.split("/").forEach(f=>{f===".."?u.length>1&&u.pop():f!=="."&&u.push(f)}),u.length>1?u.join("/"):"/"}function hg(r,i,u,c){return`Cannot include a '${r}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zx(r){return r.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function Ng(r){let i=zx(r);return i.map((u,c)=>c===i.length-1?u.pathname:u.pathnameBase)}function Rd(r,i,u,c=!1){let f;typeof r=="string"?f=uo(r):(f={...r},We(!f.pathname||!f.pathname.includes("?"),hg("?","pathname","search",f)),We(!f.pathname||!f.pathname.includes("#"),hg("#","pathname","hash",f)),We(!f.search||!f.search.includes("#"),hg("#","search","hash",f)));let h=r===""||f.pathname==="",p=h?"/":f.pathname,m;if(p==null)m=u;else{let S=i.length-1;if(!c&&p.startsWith("..")){let x=p.split("/");for(;x[0]==="..";)x.shift(),S-=1;f.pathname=x.join("/")}m=S>=0?i[S]:"/"}let y=LO(f,m),E=p&&p!=="/"&&p.endsWith("/"),w=(h||p===".")&&u.endsWith("/");return!y.pathname.endsWith("/")&&(E||w)&&(y.pathname+="/"),y}var Qa=r=>r.join("/").replace(/\/\/+/g,"/"),jO=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),HO=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,kO=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,Zs=class{constructor(r,i,u,c=!1){this.status=r,this.statusText=i||"",this.internal=c,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function Xs(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function Js(r){return r.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Lx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jx(r,i){let u=r;if(typeof u!="string"||!Ux.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let c=u,f=!1;if(Lx)try{let h=new URL(window.location.href),p=u.startsWith("//")?new URL(h.protocol+u):new URL(u),m=Ta(p.pathname,i);p.origin===h.origin&&m!=null?u=m+p.search+p.hash:f=!0}catch{Jt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:u}}var ii=Symbol("Uninstrumented");function VO(r,i){let u={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};r.forEach(f=>f({id:i.id,index:i.index,path:i.path,instrument(h){let p=Object.keys(u);for(let m of p)h[m]&&u[m].push(h[m])}}));let c={};if(typeof i.lazy=="function"&&u.lazy.length>0){let f=Ir(u.lazy,i.lazy,()=>{});f&&(c.lazy=f)}if(typeof i.lazy=="object"){let f=i.lazy;["middleware","loader","action"].forEach(h=>{let p=f[h],m=u[`lazy.${h}`];if(typeof p=="function"&&m.length>0){let y=Ir(m,p,()=>{});y&&(c.lazy=Object.assign(c.lazy||{},{[h]:y}))}})}return["loader","action"].forEach(f=>{let h=i[f];if(typeof h=="function"&&u[f].length>0){let p=h[ii]??h,m=Ir(u[f],p,(...y)=>GE(y[0]));m&&(f==="loader"&&p.hydrate===!0&&(m.hydrate=!0),m[ii]=p,c[f]=m)}}),i.middleware&&i.middleware.length>0&&u.middleware.length>0&&(c.middleware=i.middleware.map(f=>{let h=f[ii]??f,p=Ir(u.middleware,h,(...m)=>GE(m[0]));return p?(p[ii]=h,p):f})),c}function BO(r,i){let u={navigate:[],fetch:[]};if(i.forEach(c=>c({instrument(f){let h=Object.keys(f);for(let p of h)f[p]&&u[p].push(f[p])}})),u.navigate.length>0){let c=r.navigate[ii]??r.navigate,f=Ir(u.navigate,c,(...h)=>{let[p,m]=h;return{to:typeof p=="number"||typeof p=="string"?p:p?Dl(p):".",...XE(r,m??{})}});f&&(f[ii]=c,r.navigate=f)}if(u.fetch.length>0){let c=r.fetch[ii]??r.fetch,f=Ir(u.fetch,c,(...h)=>{let[p,,m,y]=h;return{href:m??".",fetcherKey:p,...XE(r,y??{})}});f&&(f[ii]=c,r.fetch=f)}return r}function Ir(r,i,u){return r.length===0?null:async(...c)=>{let f=await Hx(r,u(...c),()=>i(...c),r.length-1);if(f.type==="error")throw f.value;return f.value}}async function Hx(r,i,u,c){let f=r[c],h;if(f){let p,m=async()=>(p?console.error("You cannot call instrumented handlers more than once"):p=Hx(r,i,u,c-1),h=await p,We(h,"Expected a result"),h.type==="error"&&h.value instanceof Error?{status:"error",error:h.value}:{status:"success",error:void 0});try{await f(m,i)}catch(y){console.error("An instrumentation function threw an error:",y)}p||await m(),await p}else try{h={type:"success",value:await u()}}catch(p){h={type:"error",value:p}}return h||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function GE(r){let{request:i,context:u,params:c,unstable_pattern:f}=r;return{request:$O(i),params:{...c},unstable_pattern:f,context:YO(u)}}function XE(r,i){return{currentUrl:Dl(r.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function $O(r){return{method:r.method,url:r.url,headers:{get:(...i)=>r.headers.get(...i)}}}function YO(r){if(GO(r)){let i={...r};return Object.freeze(i),i}else return{get:i=>r.get(i)}}var qO=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function GO(r){if(r===null||typeof r!="object")return!1;const i=Object.getPrototypeOf(r);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===qO}var kx=["POST","PUT","PATCH","DELETE"],XO=new Set(kx),QO=["GET",...kx],ZO=new Set(QO),Vx=new Set([301,302,303,307,308]),JO=new Set([307,308]),pg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},FO={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_s={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},PO=r=>({hasErrorBoundary:!!r.hasErrorBoundary}),Bx="remix-router-transitions",$x=Symbol("ResetLoaderData");function KO(r){const i=r.window?r.window:typeof window<"u"?window:void 0,u=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";We(r.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=r.hydrationRouteProperties||[],f=r.mapRouteProperties||PO,h=f;if(r.unstable_instrumentations){let T=r.unstable_instrumentations;h=z=>({...f(z),...VO(T.map(B=>B.route).filter(Boolean),z)})}let p={},m=Gs(r.routes,h,void 0,p),y,E=r.basename||"/";E.startsWith("/")||(E=`/${E}`);let w=r.dataStrategy||nC,S={...r.future},x=null,D=new Set,L=null,Q=null,Y=null,J=r.hydrationData!=null,W=ai(m,r.history.location,E),re=!1,Ee=null,ye,Ve;if(W==null&&!r.patchRoutesOnNavigation){let T=Da(404,{pathname:r.history.location.pathname}),{matches:z,route:B}=dd(m);ye=!0,Ve=!ye,W=z,Ee={[B.id]:T}}else if(W&&!r.hydrationData&&Rn(W,m,r.history.location.pathname).active&&(W=null),W)if(W.some(T=>T.route.lazy))ye=!1,Ve=!ye;else if(!W.some(T=>Og(T.route)))ye=!0,Ve=!ye;else{let T=r.hydrationData?r.hydrationData.loaderData:null,z=r.hydrationData?r.hydrationData.errors:null,B=W;if(z){let K=W.findIndex(ee=>z[ee.route.id]!==void 0);B=B.slice(0,K+1)}Ve=!1,ye=B.every(K=>{let ee=Yx(K.route,T,z);return Ve=Ve||ee.renderFallback,!ee.shouldLoad})}else{ye=!1,Ve=!ye,W=[];let T=Rn(null,m,r.history.location.pathname);T.active&&T.matches&&(re=!0,W=T.matches)}let Le,M={historyAction:r.history.action,location:r.history.location,matches:W,initialized:ye,renderFallback:Ve,navigation:pg,restoreScrollPosition:r.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:r.hydrationData&&r.hydrationData.loaderData||{},actionData:r.hydrationData&&r.hydrationData.actionData||null,errors:r.hydrationData&&r.hydrationData.errors||Ee,fetchers:new Map,blockers:new Map},ae="POP",X=null,De=!1,I,ce=!1,xe=new Map,Ce=null,Z=!1,oe=!1,fe=new Set,de=new Map,Ye=0,q=-1,he=new Map,Me=new Set,we=new Map,pt=new Map,Ft=new Set,it=new Map,pn,Wt=null;function Oa(){if(x=r.history.listen(({action:T,location:z,delta:B})=>{if(pn){pn(),pn=void 0;return}Jt(it.size===0||B!=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 K=me({currentLocation:M.location,nextLocation:z,historyAction:T});if(K&&B!=null){let ee=new Promise(Se=>{pn=Se});r.history.go(B*-1),te(K,{state:"blocked",location:z,proceed(){te(K,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ee.then(()=>r.history.go(B))},reset(){let Se=new Map(M.blockers);Se.set(K,_s),Nt({blockers:Se})}}),X?.resolve(),X=null;return}return Ot(T,z)}),u){SC(i,xe);let T=()=>EC(i,xe);i.addEventListener("pagehide",T),Ce=()=>i.removeEventListener("pagehide",T)}return M.initialized||Ot("POP",M.location,{initialHydration:!0}),Le}function se(){x&&x(),Ce&&Ce(),D.clear(),I&&I.abort(),M.fetchers.forEach((T,z)=>sa(z)),M.blockers.forEach((T,z)=>F(z))}function co(T){return D.add(T),()=>D.delete(T)}function Nt(T,z={}){T.matches&&(T.matches=T.matches.map(ee=>{let Se=p[ee.route.id],ie=ee.route;return ie.element!==Se.element||ie.errorElement!==Se.errorElement||ie.hydrateFallbackElement!==Se.hydrateFallbackElement?{...ee,route:Se}:ee})),M={...M,...T};let B=[],K=[];M.fetchers.forEach((ee,Se)=>{ee.state==="idle"&&(Ft.has(Se)?B.push(Se):K.push(Se))}),Ft.forEach(ee=>{!M.fetchers.has(ee)&&!de.has(ee)&&B.push(ee)}),[...D].forEach(ee=>ee(M,{deletedFetchers:B,newErrors:T.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),B.forEach(ee=>sa(ee)),K.forEach(ee=>M.fetchers.delete(ee))}function jn(T,z,{flushSync:B}={}){let K=M.actionData!=null&&M.navigation.formMethod!=null&&En(M.navigation.formMethod)&&M.navigation.state==="loading"&&T.state?._isRedirect!==!0,ee;z.actionData?Object.keys(z.actionData).length>0?ee=z.actionData:ee=null:K?ee=M.actionData:ee=null;let Se=z.loaderData?tx(M.loaderData,z.loaderData,z.matches||[],z.errors):M.loaderData,ie=M.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((Ae,Re)=>ie.set(Re,_s)));let Te=Z?!1:en(T,z.matches||M.matches),ge=De===!0||M.navigation.formMethod!=null&&En(M.navigation.formMethod)&&T.state?._isRedirect!==!0;y&&(m=y,y=void 0),Z||ae==="POP"||(ae==="PUSH"?r.history.push(T,T.state):ae==="REPLACE"&&r.history.replace(T,T.state));let _e;if(ae==="POP"){let Ae=xe.get(M.location.pathname);Ae&&Ae.has(T.pathname)?_e={currentLocation:M.location,nextLocation:T}:xe.has(T.pathname)&&(_e={currentLocation:T,nextLocation:M.location})}else if(ce){let Ae=xe.get(M.location.pathname);Ae?Ae.add(T.pathname):(Ae=new Set([T.pathname]),xe.set(M.location.pathname,Ae)),_e={currentLocation:M.location,nextLocation:T}}Nt({...z,actionData:ee,loaderData:Se,historyAction:ae,location:T,initialized:!0,renderFallback:!1,navigation:pg,revalidation:"idle",restoreScrollPosition:Te,preventScrollReset:ge,blockers:ie},{viewTransitionOpts:_e,flushSync:B===!0}),ae="POP",De=!1,ce=!1,Z=!1,oe=!1,X?.resolve(),X=null,Wt?.resolve(),Wt=null}async function Ca(T,z){if(X?.resolve(),X=null,typeof T=="number"){X||(X=ox());let St=X.promise;return r.history.go(T),St}let B=xg(M.location,M.matches,E,T,z?.fromRouteId,z?.relative),{path:K,submission:ee,error:Se}=QE(!1,B,z),ie;z?.unstable_mask&&(ie={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?uo(z.unstable_mask):{...M.location.unstable_mask,...z.unstable_mask}});let Te=M.location,ge=qs(Te,K,z&&z.state,void 0,ie);ge={...ge,...r.history.encodeLocation(ge)};let _e=z&&z.replace!=null?z.replace:void 0,Ae="PUSH";_e===!0?Ae="REPLACE":_e===!1||ee!=null&&En(ee.formMethod)&&ee.formAction===M.location.pathname+M.location.search&&(Ae="REPLACE");let Re=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,ut=(z&&z.flushSync)===!0,Pe=me({currentLocation:Te,nextLocation:ge,historyAction:Ae});if(Pe){te(Pe,{state:"blocked",location:ge,proceed(){te(Pe,{state:"proceeding",proceed:void 0,reset:void 0,location:ge}),Ca(T,z)},reset(){let St=new Map(M.blockers);St.set(Pe,_s),Nt({blockers:St})}});return}await Ot(Ae,ge,{submission:ee,pendingError:Se,preventScrollReset:Re,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:ut,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function rt(){Wt||(Wt=ox()),ua(),Nt({revalidation:"loading"});let T=Wt.promise;return M.navigation.state==="submitting"?T:M.navigation.state==="idle"?(Ot(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),T):(Ot(ae||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:ce===!0}),T)}async function Ot(T,z,B){I&&I.abort(),I=null,ae=T,Z=(B&&B.startUninterruptedRevalidation)===!0,Be(M.location,M.matches),De=(B&&B.preventScrollReset)===!0,ce=(B&&B.enableViewTransition)===!0;let K=y||m,ee=B&&B.overrideNavigation,Se=B?.initialHydration&&M.matches&&M.matches.length>0&&!re?M.matches:ai(K,z,E),ie=(B&&B.flushSync)===!0;if(Se&&M.initialized&&!oe&&cC(M.location,z)&&!(B&&B.submission&&En(B.submission.formMethod))){jn(z,{matches:Se},{flushSync:ie});return}let Te=Rn(Se,K,z.pathname);if(Te.active&&Te.matches&&(Se=Te.matches),!Se){let{error:jt,notFoundMatches:tn,route:st}=je(z.pathname);jn(z,{matches:tn,loaderData:{},errors:{[st.id]:jt}},{flushSync:ie});return}I=new AbortController;let ge=Kr(r.history,z,I.signal,B&&B.submission),_e=r.getContext?await r.getContext():new BE,Ae;if(B&&B.pendingError)Ae=[li(Se).route.id,{type:"error",error:B.pendingError}];else if(B&&B.submission&&En(B.submission.formMethod)){let jt=await fo(ge,z,B.submission,Se,_e,Te.active,B&&B.initialHydration===!0,{replace:B.replace,flushSync:ie});if(jt.shortCircuited)return;if(jt.pendingActionResult){let[tn,st]=jt.pendingActionResult;if(oa(st)&&Xs(st.error)&&st.error.status===404){I=null,jn(z,{matches:jt.matches,loaderData:{},errors:{[tn]:st.error}});return}}Se=jt.matches||Se,Ae=jt.pendingActionResult,ee=mg(z,B.submission),ie=!1,Te.active=!1,ge=Kr(r.history,ge.url,ge.signal)}let{shortCircuited:Re,matches:ut,loaderData:Pe,errors:St}=await eu(ge,z,Se,_e,Te.active,ee,B&&B.submission,B&&B.fetcherSubmission,B&&B.replace,B&&B.initialHydration===!0,ie,Ae,B&&B.callSiteDefaultShouldRevalidate);Re||(I=null,jn(z,{matches:ut||Se,...nx(Ae),loaderData:Pe,errors:St}))}async function fo(T,z,B,K,ee,Se,ie,Te={}){ua();let ge=bC(z,B);if(Nt({navigation:ge},{flushSync:Te.flushSync===!0}),Se){let Re=await _l(K,z.pathname,T.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){if(Re.partialMatches.length===0){let{matches:Pe,route:St}=dd(m);return{matches:Pe,pendingActionResult:[St.id,{type:"error",error:Re.error}]}}let ut=li(Re.partialMatches).route.id;return{matches:Re.partialMatches,pendingActionResult:[ut,{type:"error",error:Re.error}]}}else if(Re.matches)K=Re.matches;else{let{notFoundMatches:ut,error:Pe,route:St}=je(z.pathname);return{matches:ut,pendingActionResult:[St.id,{type:"error",error:Pe}]}}}let _e,Ae=gd(K,z);if(!Ae.route.action&&!Ae.route.lazy)_e={type:"error",error:Da(405,{method:T.method,pathname:z.pathname,routeId:Ae.route.id})};else{let Re=Wr(h,p,T,K,Ae,ie?[]:c,ee),ut=await Aa(T,Re,ee,null);if(_e=ut[Ae.route.id],!_e){for(let Pe of K)if(ut[Pe.route.id]){_e=ut[Pe.route.id];break}}if(T.signal.aborted)return{shortCircuited:!0}}if(Zi(_e)){let Re;return Te&&Te.replace!=null?Re=Te.replace:Re=IE(_e.response.headers.get("Location"),new URL(T.url),E,r.history)===M.location.pathname+M.location.search,await ra(T,_e,!0,{submission:B,replace:Re}),{shortCircuited:!0}}if(oa(_e)){let Re=li(K,Ae.route.id);return(Te&&Te.replace)!==!0&&(ae="PUSH"),{matches:K,pendingActionResult:[Re.route.id,_e,Ae.route.id]}}return{matches:K,pendingActionResult:[Ae.route.id,_e]}}async function eu(T,z,B,K,ee,Se,ie,Te,ge,_e,Ae,Re,ut){let Pe=Se||mg(z,ie),St=ie||Te||lx(Pe),jt=!Z&&!_e;if(ee){if(jt){let nn=pe(Re);Nt({navigation:Pe,...nn!==void 0?{actionData:nn}:{}},{flushSync:Ae})}let et=await _l(B,z.pathname,T.signal);if(et.type==="aborted")return{shortCircuited:!0};if(et.type==="error"){if(et.partialMatches.length===0){let{matches:go,route:Pa}=dd(m);return{matches:go,loaderData:{},errors:{[Pa.id]:et.error}}}let nn=li(et.partialMatches).route.id;return{matches:et.partialMatches,loaderData:{},errors:{[nn]:et.error}}}else if(et.matches)B=et.matches;else{let{error:nn,notFoundMatches:go,route:Pa}=je(z.pathname);return{matches:go,loaderData:{},errors:{[Pa.id]:nn}}}}let tn=y||m,{dsMatches:st,revalidatingFetchers:Dn}=ZE(T,K,h,p,r.history,M,B,St,z,_e?[]:c,_e===!0,oe,fe,Ft,we,Me,tn,E,r.patchRoutesOnNavigation!=null,Re,ut);if(q=++Ye,!r.dataStrategy&&!st.some(et=>et.shouldLoad)&&!st.some(et=>et.route.middleware&&et.route.middleware.length>0)&&Dn.length===0){let et=_a();return jn(z,{matches:B,loaderData:{},errors:Re&&oa(Re[1])?{[Re[0]]:Re[1].error}:null,...nx(Re),...et?{fetchers:new Map(M.fetchers)}:{}},{flushSync:Ae}),{shortCircuited:!0}}if(jt){let et={};if(!ee){et.navigation=Pe;let nn=pe(Re);nn!==void 0&&(et.actionData=nn)}Dn.length>0&&(et.fetchers=ho(Dn)),Nt(et,{flushSync:Ae})}Dn.forEach(et=>{mn(et.key),et.controller&&de.set(et.key,et.controller)});let Ht=()=>Dn.forEach(et=>mn(et.key));I&&I.signal.addEventListener("abort",Ht);let{loaderResults:ca,fetcherResults:gn}=await po(st,Dn,T,K);if(T.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ht),Dn.forEach(et=>de.delete(et.key));let Xn=hd(ca);if(Xn)return await ra(T,Xn.result,!0,{replace:ge}),{shortCircuited:!0};if(Xn=hd(gn),Xn)return Me.add(Xn.key),await ra(T,Xn.result,!0,{replace:ge}),{shortCircuited:!0};let{loaderData:Ul,errors:Ja}=ex(M,B,ca,Re,Dn,gn);_e&&M.errors&&(Ja={...M.errors,...Ja});let Ua=_a(),Fa=v(q),za=Ua||Fa||Dn.length>0;return{matches:B,loaderData:Ul,errors:Ja,...za?{fetchers:new Map(M.fetchers)}:{}}}function pe(T){if(T&&!oa(T[1]))return{[T[0]]:T[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function ho(T){return T.forEach(z=>{let B=M.fetchers.get(z.key),K=Ms(void 0,B?B.data:void 0);M.fetchers.set(z.key,K)}),new Map(M.fetchers)}async function ia(T,z,B,K){mn(T);let ee=(K&&K.flushSync)===!0,Se=y||m,ie=xg(M.location,M.matches,E,B,z,K?.relative),Te=ai(Se,ie,E),ge=Rn(Te,Se,ie);if(ge.active&&ge.matches&&(Te=ge.matches),!Te){wn(T,z,Da(404,{pathname:ie}),{flushSync:ee});return}let{path:_e,submission:Ae,error:Re}=QE(!0,ie,K);if(Re){wn(T,z,Re,{flushSync:ee});return}let ut=r.getContext?await r.getContext():new BE,Pe=(K&&K.preventScrollReset)===!0;if(Ae&&En(Ae.formMethod)){await Nl(T,z,_e,Te,ut,ge.active,ee,Pe,Ae,K&&K.unstable_defaultShouldRevalidate);return}we.set(T,{routeId:z,path:_e}),await Za(T,z,_e,Te,ut,ge.active,ee,Pe,Ae)}async function Nl(T,z,B,K,ee,Se,ie,Te,ge,_e){ua(),we.delete(T);let Ae=M.fetchers.get(T);Hn(T,vC(ge,Ae),{flushSync:ie});let Re=new AbortController,ut=Kr(r.history,B,Re.signal,ge);if(Se){let Et=await _l(K,new URL(ut.url).pathname,ut.signal,T);if(Et.type==="aborted")return;if(Et.type==="error"){wn(T,z,Et.error,{flushSync:ie});return}else if(Et.matches)K=Et.matches;else{wn(T,z,Da(404,{pathname:B}),{flushSync:ie});return}}let Pe=gd(K,B);if(!Pe.route.action&&!Pe.route.lazy){let Et=Da(405,{method:ge.formMethod,pathname:B,routeId:z});wn(T,z,Et,{flushSync:ie});return}de.set(T,Re);let St=Ye,jt=Wr(h,p,ut,K,Pe,c,ee),tn=await Aa(ut,jt,ee,T),st=tn[Pe.route.id];if(!st){for(let Et of jt)if(tn[Et.route.id]){st=tn[Et.route.id];break}}if(ut.signal.aborted){de.get(T)===Re&&de.delete(T);return}if(Ft.has(T)){if(Zi(st)||oa(st)){Hn(T,io(void 0));return}}else{if(Zi(st))if(de.delete(T),q>St){Hn(T,io(void 0));return}else return Me.add(T),Hn(T,Ms(ge)),ra(ut,st,!1,{fetcherSubmission:ge,preventScrollReset:Te});if(oa(st)){wn(T,z,st.error);return}}let Dn=M.navigation.location||M.location,Ht=Kr(r.history,Dn,Re.signal),ca=y||m,gn=M.navigation.state!=="idle"?ai(ca,M.navigation.location,E):M.matches;We(gn,"Didn't find any matches after fetcher action");let Xn=++Ye;he.set(T,Xn);let Ul=Ms(ge,st.data);M.fetchers.set(T,Ul);let{dsMatches:Ja,revalidatingFetchers:Ua}=ZE(Ht,ee,h,p,r.history,M,gn,ge,Dn,c,!1,oe,fe,Ft,we,Me,ca,E,r.patchRoutesOnNavigation!=null,[Pe.route.id,st],_e);Ua.filter(Et=>Et.key!==T).forEach(Et=>{let yo=Et.key,tu=M.fetchers.get(yo),Is=Ms(void 0,tu?tu.data:void 0);M.fetchers.set(yo,Is),mn(yo),Et.controller&&de.set(yo,Et.controller)}),Nt({fetchers:new Map(M.fetchers)});let Fa=()=>Ua.forEach(Et=>mn(Et.key));Re.signal.addEventListener("abort",Fa);let{loaderResults:za,fetcherResults:et}=await po(Ja,Ua,Ht,ee);if(Re.signal.aborted)return;if(Re.signal.removeEventListener("abort",Fa),he.delete(T),de.delete(T),Ua.forEach(Et=>de.delete(Et.key)),M.fetchers.has(T)){let Et=io(st.data);M.fetchers.set(T,Et)}let nn=hd(za);if(nn)return ra(Ht,nn.result,!1,{preventScrollReset:Te});if(nn=hd(et),nn)return Me.add(nn.key),ra(Ht,nn.result,!1,{preventScrollReset:Te});let{loaderData:go,errors:Pa}=ex(M,gn,za,void 0,Ua,et);v(Xn),M.navigation.state==="loading"&&Xn>q?(We(ae,"Expected pending action"),I&&I.abort(),jn(M.navigation.location,{matches:gn,loaderData:go,errors:Pa,fetchers:new Map(M.fetchers)})):(Nt({errors:Pa,loaderData:tx(M.loaderData,go,gn,Pa),fetchers:new Map(M.fetchers)}),oe=!1)}async function Za(T,z,B,K,ee,Se,ie,Te,ge){let _e=M.fetchers.get(T);Hn(T,Ms(ge,_e?_e.data:void 0),{flushSync:ie});let Ae=new AbortController,Re=Kr(r.history,B,Ae.signal);if(Se){let st=await _l(K,new URL(Re.url).pathname,Re.signal,T);if(st.type==="aborted")return;if(st.type==="error"){wn(T,z,st.error,{flushSync:ie});return}else if(st.matches)K=st.matches;else{wn(T,z,Da(404,{pathname:B}),{flushSync:ie});return}}let ut=gd(K,B);de.set(T,Ae);let Pe=Ye,St=Wr(h,p,Re,K,ut,c,ee),tn=(await Aa(Re,St,ee,T))[ut.route.id];if(de.get(T)===Ae&&de.delete(T),!Re.signal.aborted){if(Ft.has(T)){Hn(T,io(void 0));return}if(Zi(tn))if(q>Pe){Hn(T,io(void 0));return}else{Me.add(T),await ra(Re,tn,!1,{preventScrollReset:Te});return}if(oa(tn)){wn(T,z,tn.error);return}Hn(T,io(tn.data))}}async function ra(T,z,B,{submission:K,fetcherSubmission:ee,preventScrollReset:Se,replace:ie}={}){B||(X?.resolve(),X=null),z.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let Te=z.response.headers.get("Location");We(Te,"Expected a Location header on the redirect Response"),Te=IE(Te,new URL(T.url),E,r.history);let ge=qs(M.location,Te,{_isRedirect:!0});if(u){let St=!1;if(z.response.headers.has("X-Remix-Reload-Document"))St=!0;else if(Tg(Te)){const jt=Ax(Te,!0);St=jt.origin!==i.location.origin||Ta(jt.pathname,E)==null}if(St){ie?i.location.replace(Te):i.location.assign(Te);return}}I=null;let _e=ie===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ae,formAction:Re,formEncType:ut}=M.navigation;!K&&!ee&&Ae&&Re&&ut&&(K=lx(M.navigation));let Pe=K||ee;if(JO.has(z.response.status)&&Pe&&En(Pe.formMethod))await Ot(_e,ge,{submission:{...Pe,formAction:Te},preventScrollReset:Se||De,enableViewTransition:B?ce:void 0});else{let St=mg(ge,K);await Ot(_e,ge,{overrideNavigation:St,fetcherSubmission:ee,preventScrollReset:Se||De,enableViewTransition:B?ce:void 0})}}async function Aa(T,z,B,K){let ee,Se={};try{ee=await lC(w,T,z,K,B,!1)}catch(ie){return z.filter(Te=>Te.shouldLoad).forEach(Te=>{Se[Te.route.id]={type:"error",error:ie}}),Se}if(T.signal.aborted)return Se;if(!En(T.method))for(let ie of z){if(ee[ie.route.id]?.type==="error")break;!ee.hasOwnProperty(ie.route.id)&&!M.loaderData.hasOwnProperty(ie.route.id)&&(!M.errors||!M.errors.hasOwnProperty(ie.route.id))&&ie.shouldCallHandler()&&(ee[ie.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ie.route.id}`)})}for(let[ie,Te]of Object.entries(ee))if(pC(Te)){let ge=Te.result;Se[ie]={type:"redirect",response:uC(ge,T,ie,z,E)}}else Se[ie]=await rC(Te);return Se}async function po(T,z,B,K){let ee=Aa(B,T,K,null),Se=Promise.all(z.map(async ge=>{if(ge.matches&&ge.match&&ge.request&&ge.controller){let Ae=(await Aa(ge.request,ge.matches,K,ge.key))[ge.match.route.id];return{[ge.key]:Ae}}else return Promise.resolve({[ge.key]:{type:"error",error:Da(404,{pathname:ge.path})}})})),ie=await ee,Te=(await Se).reduce((ge,_e)=>Object.assign(ge,_e),{});return{loaderResults:ie,fetcherResults:Te}}function ua(){oe=!0,we.forEach((T,z)=>{de.has(z)&&fe.add(z),mn(z)})}function Hn(T,z,B={}){M.fetchers.set(T,z),Nt({fetchers:new Map(M.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function wn(T,z,B,K={}){let ee=li(M.matches,z);sa(T),Nt({errors:{[ee.route.id]:B},fetchers:new Map(M.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function mo(T){return pt.set(T,(pt.get(T)||0)+1),Ft.has(T)&&Ft.delete(T),M.fetchers.get(T)||FO}function Ol(T,z){mn(T,z?.reason),Hn(T,io(null))}function sa(T){let z=M.fetchers.get(T);de.has(T)&&!(z&&z.state==="loading"&&he.has(T))&&mn(T),we.delete(T),he.delete(T),Me.delete(T),Ft.delete(T),fe.delete(T),M.fetchers.delete(T)}function Cl(T){let z=(pt.get(T)||0)-1;z<=0?(pt.delete(T),Ft.add(T)):pt.set(T,z),Nt({fetchers:new Map(M.fetchers)})}function mn(T,z){let B=de.get(T);B&&(B.abort(z),de.delete(T))}function Al(T){for(let z of T){let B=mo(z),K=io(B.data);M.fetchers.set(z,K)}}function _a(){let T=[],z=!1;for(let B of Me){let K=M.fetchers.get(B);We(K,`Expected fetcher: ${B}`),K.state==="loading"&&(Me.delete(B),T.push(B),z=!0)}return Al(T),z}function v(T){let z=[];for(let[B,K]of he)if(K<T){let ee=M.fetchers.get(B);We(ee,`Expected fetcher: ${B}`),ee.state==="loading"&&(mn(B),he.delete(B),z.push(B))}return Al(z),z.length>0}function U(T,z){let B=M.blockers.get(T)||_s;return it.get(T)!==z&&it.set(T,z),B}function F(T){M.blockers.delete(T),it.delete(T)}function te(T,z){let B=M.blockers.get(T)||_s;We(B.state==="unblocked"&&z.state==="blocked"||B.state==="blocked"&&z.state==="blocked"||B.state==="blocked"&&z.state==="proceeding"||B.state==="blocked"&&z.state==="unblocked"||B.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${B.state} -> ${z.state}`);let K=new Map(M.blockers);K.set(T,z),Nt({blockers:K})}function me({currentLocation:T,nextLocation:z,historyAction:B}){if(it.size===0)return;it.size>1&&Jt(!1,"A router only supports one blocker at a time");let K=Array.from(it.entries()),[ee,Se]=K[K.length-1],ie=M.blockers.get(ee);if(!(ie&&ie.state==="proceeding")&&Se({currentLocation:T,nextLocation:z,historyAction:B}))return ee}function je(T){let z=Da(404,{pathname:T}),B=y||m,{matches:K,route:ee}=dd(B);return{notFoundMatches:K,route:ee,error:z}}function ve(T,z,B){if(L=T,Y=z,Q=B||null,!J&&M.navigation===pg){J=!0;let K=en(M.location,M.matches);K!=null&&Nt({restoreScrollPosition:K})}return()=>{L=null,Y=null,Q=null}}function Ke(T,z){return Q&&Q(T,z.map(K=>EO(K,M.loaderData)))||T.key}function Be(T,z){if(L&&Y){let B=Ke(T,z);L[B]=Y()}}function en(T,z){if(L){let B=Ke(T,z),K=L[B];if(typeof K=="number")return K}return null}function Rn(T,z,B){if(r.patchRoutesOnNavigation)if(T){if(Object.keys(T[0].params).length>0)return{active:!0,matches:ks(z,B,E,!0)}}else return{active:!0,matches:ks(z,B,E,!0)||[]};return{active:!1,matches:null}}async function _l(T,z,B,K){if(!r.patchRoutesOnNavigation)return{type:"success",matches:T};let ee=T;for(;;){let Se=y==null,ie=y||m,Te=p;try{await r.patchRoutesOnNavigation({signal:B,path:z,matches:ee,fetcherKey:K,patch:(Ae,Re)=>{B.aborted||JE(Ae,Re,ie,Te,h,!1)}})}catch(Ae){return{type:"error",error:Ae,partialMatches:ee}}finally{Se&&!B.aborted&&(m=[...m])}if(B.aborted)return{type:"aborted"};let ge=ai(ie,z,E),_e=null;if(ge){if(Object.keys(ge[0].params).length===0)return{type:"success",matches:ge};if(_e=ks(ie,z,E,!0),!(_e&&ee.length<_e.length&&Ml(ee,_e.slice(0,ee.length))))return{type:"success",matches:ge}}if(_e||(_e=ks(ie,z,E,!0)),!_e||Ml(ee,_e))return{type:"success",matches:null};ee=_e}}function Ml(T,z){return T.length===z.length&&T.every((B,K)=>B.route.id===z[K].route.id)}function Pi(T){p={},y=Gs(T,h,void 0,p)}function Ma(T,z,B=!1){let K=y==null;JE(T,z,y||m,p,h,B),K&&(m=[...m],Nt({}))}return Le={get basename(){return E},get future(){return S},get state(){return M},get routes(){return m},get window(){return i},initialize:Oa,subscribe:co,enableScrollRestoration:ve,navigate:Ca,fetch:ia,revalidate:rt,createHref:T=>r.history.createHref(T),encodeLocation:T=>r.history.encodeLocation(T),getFetcher:mo,resetFetcher:Ol,deleteFetcher:Cl,dispose:se,getBlocker:U,deleteBlocker:F,patchRoutes:Ma,_internalFetchControllers:de,_internalSetRoutes:Pi,_internalSetStateDoNotUseOrYouWillBreakYourApp(T){Nt(T)}},r.unstable_instrumentations&&(Le=BO(Le,r.unstable_instrumentations.map(T=>T.router).filter(Boolean))),Le}function IO(r){return r!=null&&("formData"in r&&r.formData!=null||"body"in r&&r.body!==void 0)}function xg(r,i,u,c,f,h){let p,m;if(f){p=[];for(let E of i)if(p.push(E),E.route.id===f){m=E;break}}else p=i,m=i[i.length-1];let y=Rd(c||".",Ng(p),Ta(r.pathname,u)||r.pathname,h==="path");if(c==null&&(y.search=r.search,y.hash=r.hash),(c==null||c===""||c===".")&&m){let E=Ag(y.search);if(m.route.index&&!E)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&E){let w=new URLSearchParams(y.search),S=w.getAll("index");w.delete("index"),S.filter(D=>D).forEach(D=>w.append("index",D));let x=w.toString();y.search=x?`?${x}`:""}}return u!=="/"&&(y.pathname=zO({basename:u,pathname:y.pathname})),Dl(y)}function QE(r,i,u){if(!u||!IO(u))return{path:i};if(u.formMethod&&!yC(u.formMethod))return{path:i,error:Da(405,{method:u.formMethod})};let c=()=>({path:i,error:Da(400,{type:"invalid-body"})}),h=(u.formMethod||"get").toUpperCase(),p=Jx(i);if(u.body!==void 0){if(u.formEncType==="text/plain"){if(!En(h))return c();let S=typeof u.body=="string"?u.body:u.body instanceof FormData||u.body instanceof URLSearchParams?Array.from(u.body.entries()).reduce((x,[D,L])=>`${x}${D}=${L}
|
|
236
|
+
`,""):String(u.body);return{path:i,submission:{formMethod:h,formAction:p,formEncType:u.formEncType,formData:void 0,json:void 0,text:S}}}else if(u.formEncType==="application/json"){if(!En(h))return c();try{let S=typeof u.body=="string"?JSON.parse(u.body):u.body;return{path:i,submission:{formMethod:h,formAction:p,formEncType:u.formEncType,formData:void 0,json:S,text:void 0}}}catch{return c()}}}We(typeof FormData=="function","FormData is not available in this environment");let m,y;if(u.formData)m=Rg(u.formData),y=u.formData;else if(u.body instanceof FormData)m=Rg(u.body),y=u.body;else if(u.body instanceof URLSearchParams)m=u.body,y=WE(m);else if(u.body==null)m=new URLSearchParams,y=new FormData;else try{m=new URLSearchParams(u.body),y=WE(m)}catch{return c()}let E={formMethod:h,formAction:p,formEncType:u&&u.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(En(E.formMethod))return{path:i,submission:E};let w=uo(i);return r&&w.search&&Ag(w.search)&&m.append("index",""),w.search=`?${m}`,{path:Dl(w),submission:E}}function ZE(r,i,u,c,f,h,p,m,y,E,w,S,x,D,L,Q,Y,J,W,re,Ee){let ye=re?oa(re[1])?re[1].error:re[1].data:void 0,Ve=f.createURL(h.location),Le=f.createURL(y),M;if(w&&h.errors){let Ce=Object.keys(h.errors)[0];M=p.findIndex(Z=>Z.route.id===Ce)}else if(re&&oa(re[1])){let Ce=re[0];M=p.findIndex(Z=>Z.route.id===Ce)-1}let ae=re?re[1].statusCode:void 0,X=ae&&ae>=400,De={currentUrl:Ve,currentParams:h.matches[0]?.params||{},nextUrl:Le,nextParams:p[0].params,...m,actionResult:ye,actionStatus:ae},I=Js(p),ce=p.map((Ce,Z)=>{let{route:oe}=Ce,fe=null;if(M!=null&&Z>M)fe=!1;else if(oe.lazy)fe=!0;else if(!Og(oe))fe=!1;else if(w){let{shouldLoad:he}=Yx(oe,h.loaderData,h.errors);fe=he}else WO(h.loaderData,h.matches[Z],Ce)&&(fe=!0);if(fe!==null)return wg(u,c,r,I,Ce,E,i,fe);let de=!1;typeof Ee=="boolean"?de=Ee:X?de=!1:(S||Ve.pathname+Ve.search===Le.pathname+Le.search||Ve.search!==Le.search||eC(h.matches[Z],Ce))&&(de=!0);let Ye={...De,defaultShouldRevalidate:de},q=$s(Ce,Ye);return wg(u,c,r,I,Ce,E,i,q,Ye,Ee)}),xe=[];return L.forEach((Ce,Z)=>{if(w||!p.some(we=>we.route.id===Ce.routeId)||D.has(Z))return;let oe=h.fetchers.get(Z),fe=oe&&oe.state!=="idle"&&oe.data===void 0,de=ai(Y,Ce.path,J);if(!de){if(W&&fe)return;xe.push({key:Z,routeId:Ce.routeId,path:Ce.path,matches:null,match:null,request:null,controller:null});return}if(Q.has(Z))return;let Ye=gd(de,Ce.path),q=new AbortController,he=Kr(f,Ce.path,q.signal),Me=null;if(x.has(Z))x.delete(Z),Me=Wr(u,c,he,de,Ye,E,i);else if(fe)S&&(Me=Wr(u,c,he,de,Ye,E,i));else{let we;typeof Ee=="boolean"?we=Ee:X?we=!1:we=S;let pt={...De,defaultShouldRevalidate:we};$s(Ye,pt)&&(Me=Wr(u,c,he,de,Ye,E,i,pt))}Me&&xe.push({key:Z,routeId:Ce.routeId,path:Ce.path,matches:Me,match:Ye,request:he,controller:q})}),{dsMatches:ce,revalidatingFetchers:xe}}function Og(r){return r.loader!=null||r.middleware!=null&&r.middleware.length>0}function Yx(r,i,u){if(r.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Og(r))return{shouldLoad:!1,renderFallback:!1};let c=i!=null&&r.id in i,f=u!=null&&u[r.id]!==void 0;if(!c&&f)return{shouldLoad:!1,renderFallback:!1};if(typeof r.loader=="function"&&r.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let h=!c&&!f;return{shouldLoad:h,renderFallback:h}}function WO(r,i,u){let c=!i||u.route.id!==i.route.id,f=!r.hasOwnProperty(u.route.id);return c||f}function eC(r,i){let u=r.route.path;return r.pathname!==i.pathname||u!=null&&u.endsWith("*")&&r.params["*"]!==i.params["*"]}function $s(r,i){if(r.route.shouldRevalidate){let u=r.route.shouldRevalidate(i);if(typeof u=="boolean")return u}return i.defaultShouldRevalidate}function JE(r,i,u,c,f,h){let p;if(r){let E=c[r];We(E,`No route found to patch children into: routeId = ${r}`),E.children||(E.children=[]),p=E.children}else p=u;let m=[],y=[];if(i.forEach(E=>{let w=p.find(S=>qx(E,S));w?y.push({existingRoute:w,newRoute:E}):m.push(E)}),m.length>0){let E=Gs(m,f,[r||"_","patch",String(p?.length||"0")],c);p.push(...E)}if(h&&y.length>0)for(let E=0;E<y.length;E++){let{existingRoute:w,newRoute:S}=y[E],x=w,[D]=Gs([S],f,[],{},!0);Object.assign(x,{element:D.element?D.element:x.element,errorElement:D.errorElement?D.errorElement:x.errorElement,hydrateFallbackElement:D.hydrateFallbackElement?D.hydrateFallbackElement:x.hydrateFallbackElement})}}function qx(r,i){return"id"in r&&"id"in i&&r.id===i.id?!0:r.index===i.index&&r.path===i.path&&r.caseSensitive===i.caseSensitive?(!r.children||r.children.length===0)&&(!i.children||i.children.length===0)?!0:r.children?.every((u,c)=>i.children?.some(f=>qx(u,f)))??!1:!1}var FE=new WeakMap,Gx=({key:r,route:i,manifest:u,mapRouteProperties:c})=>{let f=u[i.id];if(We(f,"No route found in manifest"),!f.lazy||typeof f.lazy!="object")return;let h=f.lazy[r];if(!h)return;let p=FE.get(f);p||(p={},FE.set(f,p));let m=p[r];if(m)return m;let y=(async()=>{let E=yO(r),S=f[r]!==void 0&&r!=="hasErrorBoundary";if(E)Jt(!E,"Route property "+r+" is not a supported lazy route property. This property will be ignored."),p[r]=Promise.resolve();else if(S)Jt(!1,`Route "${f.id}" has a static property "${r}" defined. The lazy property will be ignored.`);else{let x=await h();x!=null&&(Object.assign(f,{[r]:x}),Object.assign(f,c(f)))}typeof f.lazy=="object"&&(f.lazy[r]=void 0,Object.values(f.lazy).every(x=>x===void 0)&&(f.lazy=void 0))})();return p[r]=y,y},PE=new WeakMap;function tC(r,i,u,c,f){let h=u[r.id];if(We(h,"No route found in manifest"),!r.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof r.lazy=="function"){let w=PE.get(h);if(w)return{lazyRoutePromise:w,lazyHandlerPromise:w};let S=(async()=>{We(typeof r.lazy=="function","No lazy route function found");let x=await r.lazy(),D={};for(let L in x){let Q=x[L];if(Q===void 0)continue;let Y=vO(L),W=h[L]!==void 0&&L!=="hasErrorBoundary";Y?Jt(!Y,"Route property "+L+" is not a supported property to be returned from a lazy route function. This property will be ignored."):W?Jt(!W,`Route "${h.id}" has a static property "${L}" defined but its lazy function is also returning a value for this property. The lazy route property "${L}" will be ignored.`):D[L]=Q}Object.assign(h,D),Object.assign(h,{...c(h),lazy:void 0})})();return PE.set(h,S),S.catch(()=>{}),{lazyRoutePromise:S,lazyHandlerPromise:S}}let p=Object.keys(r.lazy),m=[],y;for(let w of p){if(f&&f.includes(w))continue;let S=Gx({key:w,route:r,manifest:u,mapRouteProperties:c});S&&(m.push(S),w===i&&(y=S))}let E=m.length>0?Promise.all(m).then(()=>{}):void 0;return E?.catch(()=>{}),y?.catch(()=>{}),{lazyRoutePromise:E,lazyHandlerPromise:y}}async function KE(r){let i=r.matches.filter(f=>f.shouldLoad),u={};return(await Promise.all(i.map(f=>f.resolve()))).forEach((f,h)=>{u[i[h].route.id]=f}),u}async function nC(r){return r.matches.some(i=>i.route.middleware)?Xx(r,()=>KE(r)):KE(r)}function Xx(r,i){return aC(r,i,c=>{if(gC(c))throw c;return c},dC,u);function u(c,f,h){if(h)return Promise.resolve(Object.assign(h.value,{[f]:{type:"error",result:c}}));{let{matches:p}=r,m=Math.min(Math.max(p.findIndex(E=>E.route.id===f),0),Math.max(p.findIndex(E=>E.shouldCallHandler()),0)),y=li(p,p[m].route.id).route.id;return Promise.resolve({[y]:{type:"error",result:c}})}}}async function aC(r,i,u,c,f){let{matches:h,request:p,params:m,context:y,unstable_pattern:E}=r,w=h.flatMap(x=>x.route.middleware?x.route.middleware.map(D=>[x.route.id,D]):[]);return await Qx({request:p,params:m,context:y,unstable_pattern:E},w,i,u,c,f)}async function Qx(r,i,u,c,f,h,p=0){let{request:m}=r;if(m.signal.aborted)throw m.signal.reason??new Error(`Request aborted: ${m.method} ${m.url}`);let y=i[p];if(!y)return await u();let[E,w]=y,S,x=async()=>{if(S)throw new Error("You may only call `next()` once per middleware");try{return S={value:await Qx(r,i,u,c,f,h,p+1)},S.value}catch(D){return S={value:await h(D,E,S)},S.value}};try{let D=await w(r,x),L=D!=null?c(D):void 0;return f(L)?L:S?L??S.value:(S={value:await x()},S.value)}catch(D){return await h(D,E,S)}}function Zx(r,i,u,c,f){let h=Gx({key:"middleware",route:c.route,manifest:i,mapRouteProperties:r}),p=tC(c.route,En(u.method)?"action":"loader",i,r,f);return{middleware:h,route:p.lazyRoutePromise,handler:p.lazyHandlerPromise}}function wg(r,i,u,c,f,h,p,m,y=null,E){let w=!1,S=Zx(r,i,u,f,h);return{...f,_lazyPromises:S,shouldLoad:m,shouldRevalidateArgs:y,shouldCallHandler(x){return w=!0,y?typeof E=="boolean"?$s(f,{...y,defaultShouldRevalidate:E}):typeof x=="boolean"?$s(f,{...y,defaultShouldRevalidate:x}):$s(f,y):m},resolve(x){let{lazy:D,loader:L,middleware:Q}=f.route,Y=w||m||x&&!En(u.method)&&(D||L),J=Q&&Q.length>0&&!L&&!D;return Y&&(En(u.method)||!J)?oC({request:u,unstable_pattern:c,match:f,lazyHandlerPromise:S?.handler,lazyRoutePromise:S?.route,handlerOverride:x,scopedContext:p}):Promise.resolve({type:"data",result:void 0})}}}function Wr(r,i,u,c,f,h,p,m=null){return c.map(y=>y.route.id!==f.route.id?{...y,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:Zx(r,i,u,y,h),resolve:()=>Promise.resolve({type:"data",result:void 0})}:wg(r,i,u,Js(c),y,h,p,!0,m))}async function lC(r,i,u,c,f,h){u.some(E=>E._lazyPromises?.middleware)&&await Promise.all(u.map(E=>E._lazyPromises?.middleware));let p={request:i,unstable_pattern:Js(u),params:u[0].params,context:f,matches:u},y=await r({...p,fetcherKey:c,runClientMiddleware:E=>{let w=p;return Xx(w,()=>E({...w,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(u.flatMap(E=>[E._lazyPromises?.handler,E._lazyPromises?.route]))}catch{}return y}async function oC({request:r,unstable_pattern:i,match:u,lazyHandlerPromise:c,lazyRoutePromise:f,handlerOverride:h,scopedContext:p}){let m,y,E=En(r.method),w=E?"action":"loader",S=x=>{let D,L=new Promise((J,W)=>D=W);y=()=>D(),r.signal.addEventListener("abort",y);let Q=J=>typeof x!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${w}" [routeId: ${u.route.id}]`)):x({request:r,unstable_pattern:i,params:u.params,context:p},...J!==void 0?[J]:[]),Y=(async()=>{try{return{type:"data",result:await(h?h(W=>Q(W)):Q())}}catch(J){return{type:"error",result:J}}})();return Promise.race([Y,L])};try{let x=E?u.route.action:u.route.loader;if(c||f)if(x){let D,[L]=await Promise.all([S(x).catch(Q=>{D=Q}),c,f]);if(D!==void 0)throw D;m=L}else{await c;let D=E?u.route.action:u.route.loader;if(D)[m]=await Promise.all([S(D),f]);else if(w==="action"){let L=new URL(r.url),Q=L.pathname+L.search;throw Da(405,{method:r.method,pathname:Q,routeId:u.route.id})}else return{type:"data",result:void 0}}else if(x)m=await S(x);else{let D=new URL(r.url),L=D.pathname+D.search;throw Da(404,{pathname:L})}}catch(x){return{type:"error",result:x}}finally{y&&r.signal.removeEventListener("abort",y)}return m}async function iC(r){let i=r.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?r.body==null?null:r.json():r.text()}async function rC(r){let{result:i,type:u}=r;if(Cg(i)){let c;try{c=await iC(i)}catch(f){return{type:"error",error:f}}return u==="error"?{type:"error",error:new Zs(i.status,i.statusText,c),statusCode:i.status,headers:i.headers}:{type:"data",data:c,statusCode:i.status,headers:i.headers}}return u==="error"?ax(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:fC(i),statusCode:Xs(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:Xs(i)?i.status:void 0}:ax(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function uC(r,i,u,c,f){let h=r.headers.get("Location");if(We(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!Tg(h)){let p=c.slice(0,c.findIndex(m=>m.route.id===u)+1);h=xg(new URL(i.url),p,f,h),r.headers.set("Location",h)}return r}function IE(r,i,u,c){let f=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Tg(r)){let h=r,p=h.startsWith("//")?new URL(i.protocol+h):new URL(h);if(f.includes(p.protocol))throw new Error("Invalid redirect location");let m=Ta(p.pathname,u)!=null;if(p.origin===i.origin&&m)return p.pathname+p.search+p.hash}try{let h=c.createURL(r);if(f.includes(h.protocol))throw new Error("Invalid redirect location")}catch{}return r}function Kr(r,i,u,c){let f=r.createURL(Jx(i)).toString(),h={signal:u};if(c&&En(c.formMethod)){let{formMethod:p,formEncType:m}=c;h.method=p.toUpperCase(),m==="application/json"?(h.headers=new Headers({"Content-Type":m}),h.body=JSON.stringify(c.json)):m==="text/plain"?h.body=c.text:m==="application/x-www-form-urlencoded"&&c.formData?h.body=Rg(c.formData):h.body=c.formData}return new Request(f,h)}function Rg(r){let i=new URLSearchParams;for(let[u,c]of r.entries())i.append(u,typeof c=="string"?c:c.name);return i}function WE(r){let i=new FormData;for(let[u,c]of r.entries())i.append(u,c);return i}function sC(r,i,u,c=!1,f=!1){let h={},p=null,m,y=!1,E={},w=u&&oa(u[1])?u[1].error:void 0;return r.forEach(S=>{if(!(S.route.id in i))return;let x=S.route.id,D=i[x];if(We(!Zi(D),"Cannot handle redirect results in processLoaderData"),oa(D)){let L=D.error;if(w!==void 0&&(L=w,w=void 0),p=p||{},f)p[x]=L;else{let Q=li(r,x);p[Q.route.id]==null&&(p[Q.route.id]=L)}c||(h[x]=$x),y||(y=!0,m=Xs(D.error)?D.error.status:500),D.headers&&(E[x]=D.headers)}else h[x]=D.data,D.statusCode&&D.statusCode!==200&&!y&&(m=D.statusCode),D.headers&&(E[x]=D.headers)}),w!==void 0&&u&&(p={[u[0]]:w},u[2]&&(h[u[2]]=void 0)),{loaderData:h,errors:p,statusCode:m||200,loaderHeaders:E}}function ex(r,i,u,c,f,h){let{loaderData:p,errors:m}=sC(i,u,c);return f.filter(y=>!y.matches||y.matches.some(E=>E.shouldLoad)).forEach(y=>{let{key:E,match:w,controller:S}=y;if(S&&S.signal.aborted)return;let x=h[E];if(We(x,"Did not find corresponding fetcher result"),oa(x)){let D=li(r.matches,w?.route.id);m&&m[D.route.id]||(m={...m,[D.route.id]:x.error}),r.fetchers.delete(E)}else if(Zi(x))We(!1,"Unhandled fetcher revalidation redirect");else{let D=io(x.data);r.fetchers.set(E,D)}}),{loaderData:p,errors:m}}function tx(r,i,u,c){let f=Object.entries(i).filter(([,h])=>h!==$x).reduce((h,[p,m])=>(h[p]=m,h),{});for(let h of u){let p=h.route.id;if(!i.hasOwnProperty(p)&&r.hasOwnProperty(p)&&h.route.loader&&(f[p]=r[p]),c&&c.hasOwnProperty(p))break}return f}function nx(r){return r?oa(r[1])?{actionData:{}}:{actionData:{[r[0]]:r[1].data}}:{}}function li(r,i){return(i?r.slice(0,r.findIndex(c=>c.route.id===i)+1):[...r]).reverse().find(c=>c.route.hasErrorBoundary===!0)||r[0]}function dd(r){let i=r.length===1?r[0]:r.find(u=>u.index||!u.path||u.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function Da(r,{pathname:i,routeId:u,method:c,type:f,message:h}={}){let p="Unknown Server Error",m="Unknown @remix-run/router error";return r===400?(p="Bad Request",c&&i&&u?m=`You made a ${c} request to "${i}" but did not provide a \`loader\` for route "${u}", so there is no way to handle the request.`:f==="invalid-body"&&(m="Unable to encode submission body")):r===403?(p="Forbidden",m=`Route "${u}" does not match URL "${i}"`):r===404?(p="Not Found",m=`No route matches URL "${i}"`):r===405&&(p="Method Not Allowed",c&&i&&u?m=`You made a ${c.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${u}", so there is no way to handle the request.`:c&&(m=`Invalid request method "${c.toUpperCase()}"`)),new Zs(r||500,p,new Error(m),!0)}function hd(r){let i=Object.entries(r);for(let u=i.length-1;u>=0;u--){let[c,f]=i[u];if(Zi(f))return{key:c,result:f}}}function Jx(r){let i=typeof r=="string"?uo(r):r;return Dl({...i,hash:""})}function cC(r,i){return r.pathname!==i.pathname||r.search!==i.search?!1:r.hash===""?i.hash!=="":r.hash===i.hash?!0:i.hash!==""}function fC(r){return new Zs(r.init?.status??500,r.init?.statusText??"Internal Server Error",r.data)}function dC(r){return r!=null&&typeof r=="object"&&Object.entries(r).every(([i,u])=>typeof i=="string"&&hC(u))}function hC(r){return r!=null&&typeof r=="object"&&"type"in r&&"result"in r&&(r.type==="data"||r.type==="error")}function pC(r){return Cg(r.result)&&Vx.has(r.result.status)}function oa(r){return r.type==="error"}function Zi(r){return(r&&r.type)==="redirect"}function ax(r){return typeof r=="object"&&r!=null&&"type"in r&&"data"in r&&"init"in r&&r.type==="DataWithResponseInit"}function Cg(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.headers=="object"&&typeof r.body<"u"}function mC(r){return Vx.has(r)}function gC(r){return Cg(r)&&mC(r.status)&&r.headers.has("Location")}function yC(r){return ZO.has(r.toUpperCase())}function En(r){return XO.has(r.toUpperCase())}function Ag(r){return new URLSearchParams(r).getAll("index").some(i=>i==="")}function gd(r,i){let u=typeof i=="string"?uo(i).search:i.search;if(r[r.length-1].route.index&&Ag(u||""))return r[r.length-1];let c=zx(r);return c[c.length-1]}function lx(r){let{formMethod:i,formAction:u,formEncType:c,text:f,formData:h,json:p}=r;if(!(!i||!u||!c)){if(f!=null)return{formMethod:i,formAction:u,formEncType:c,formData:void 0,json:void 0,text:f};if(h!=null)return{formMethod:i,formAction:u,formEncType:c,formData:h,json:void 0,text:void 0};if(p!==void 0)return{formMethod:i,formAction:u,formEncType:c,formData:void 0,json:p,text:void 0}}}function mg(r,i){return i?{state:"loading",location:r,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function bC(r,i){return{state:"submitting",location:r,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Ms(r,i){return r?{state:"loading",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function vC(r,i){return{state:"submitting",formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text,data:i?i.data:void 0}}function io(r){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function SC(r,i){try{let u=r.sessionStorage.getItem(Bx);if(u){let c=JSON.parse(u);for(let[f,h]of Object.entries(c||{}))h&&Array.isArray(h)&&i.set(f,new Set(h||[]))}}catch{}}function EC(r,i){if(i.size>0){let u={};for(let[c,f]of i)u[c]=[...f];try{r.sessionStorage.setItem(Bx,JSON.stringify(u))}catch(c){Jt(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function ox(){let r,i,u=new Promise((c,f)=>{r=async h=>{c(h);try{await u}catch{}},i=async h=>{f(h);try{await u}catch{}}});return{promise:u,resolve:r,reject:i}}var Fi=H.createContext(null);Fi.displayName="DataRouter";var Fs=H.createContext(null);Fs.displayName="DataRouterState";var Fx=H.createContext(!1);function xC(){return H.useContext(Fx)}var _g=H.createContext({isTransitioning:!1});_g.displayName="ViewTransition";var Px=H.createContext(new Map);Px.displayName="Fetchers";var wC=H.createContext(null);wC.displayName="Await";var Na=H.createContext(null);Na.displayName="Navigation";var Dd=H.createContext(null);Dd.displayName="Location";var Tl=H.createContext({outlet:null,matches:[],isDataRoute:!1});Tl.displayName="Route";var Mg=H.createContext(null);Mg.displayName="RouteError";var Kx="REACT_ROUTER_ERROR",RC="REDIRECT",DC="ROUTE_ERROR_RESPONSE";function TC(r){if(r.startsWith(`${Kx}:${RC}:{`))try{let i=JSON.parse(r.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function NC(r){if(r.startsWith(`${Kx}:${DC}:{`))try{let i=JSON.parse(r.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Zs(i.status,i.statusText,i.data)}catch{}}function OC(r,{relative:i}={}){We(Ps(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:c}=H.useContext(Na),{hash:f,pathname:h,search:p}=Ks(r,{relative:i}),m=h;return u!=="/"&&(m=h==="/"?u:Qa([u,h])),c.createHref({pathname:m,search:p,hash:f})}function Ps(){return H.useContext(Dd)!=null}function ri(){return We(Ps(),"useLocation() may be used only in the context of a <Router> component."),H.useContext(Dd).location}var Ix="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wx(r){H.useContext(Na).static||H.useLayoutEffect(r)}function CC(){let{isDataRoute:r}=H.useContext(Tl);return r?GC():AC()}function AC(){We(Ps(),"useNavigate() may be used only in the context of a <Router> component.");let r=H.useContext(Fi),{basename:i,navigator:u}=H.useContext(Na),{matches:c}=H.useContext(Tl),{pathname:f}=ri(),h=JSON.stringify(Ng(c)),p=H.useRef(!1);return Wx(()=>{p.current=!0}),H.useCallback((y,E={})=>{if(Jt(p.current,Ix),!p.current)return;if(typeof y=="number"){u.go(y);return}let w=Rd(y,JSON.parse(h),f,E.relative==="path");r==null&&i!=="/"&&(w.pathname=w.pathname==="/"?i:Qa([i,w.pathname])),(E.replace?u.replace:u.push)(w,E.state,E)},[i,u,h,f,r])}var _C=H.createContext(null);function MC(r){let i=H.useContext(Tl).outlet;return H.useMemo(()=>i&&H.createElement(_C.Provider,{value:r},i),[i,r])}function Ks(r,{relative:i}={}){let{matches:u}=H.useContext(Tl),{pathname:c}=ri(),f=JSON.stringify(Ng(u));return H.useMemo(()=>Rd(r,JSON.parse(f),c,i==="path"),[r,f,c,i])}function UC(r,i,u){We(Ps(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=H.useContext(Na),{matches:f}=H.useContext(Tl),h=f[f.length-1],p=h?h.params:{},m=h?h.pathname:"/",y=h?h.pathnameBase:"/",E=h&&h.route;{let Y=E&&E.path||"";tw(m,!E||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${Y}">) 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="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let w=ri(),S;S=w;let x=S.pathname||"/",D=x;if(y!=="/"){let Y=y.replace(/^\//,"").split("/");D="/"+x.replace(/^\//,"").split("/").slice(Y.length).join("/")}let L=ai(r,{pathname:D});return Jt(E||L!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Jt(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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.`),kC(L&&L.map(Y=>Object.assign({},Y,{params:Object.assign({},p,Y.params),pathname:Qa([y,c.encodeLocation?c.encodeLocation(Y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?y:Qa([y,c.encodeLocation?c.encodeLocation(Y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),f,u)}function zC(){let r=qC(),i=Xs(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),u=r instanceof Error?r.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},p=null;return console.error("Error handled by React Router default ErrorBoundary:",r),p=H.createElement(H.Fragment,null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:h},"ErrorBoundary")," or"," ",H.createElement("code",{style:h},"errorElement")," prop on your route.")),H.createElement(H.Fragment,null,H.createElement("h2",null,"Unexpected Application Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},i),u?H.createElement("pre",{style:f},u):null,p)}var LC=H.createElement(zC,null),ew=class extends H.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,i){return i.location!==r.location||i.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:i.error,location:i.location,revalidation:r.revalidation||i.revalidation}}componentDidCatch(r,i){this.props.onError?this.props.onError(r,i):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const u=NC(r.digest);u&&(r=u)}let i=r!==void 0?H.createElement(Tl.Provider,{value:this.props.routeContext},H.createElement(Mg.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?H.createElement(jC,{error:r},i):i}};ew.contextType=Fx;var gg=new WeakMap;function jC({children:r,error:i}){let{basename:u}=H.useContext(Na);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=TC(i.digest);if(c){let f=gg.get(i);if(f)throw f;let h=jx(c.location,u);if(Lx&&!gg.get(i))if(h.isExternal||c.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:c.replace}));throw gg.set(i,p),p}return H.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return r}function HC({routeContext:r,match:i,children:u}){let c=H.useContext(Fi);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),H.createElement(Tl.Provider,{value:r},u)}function kC(r,i=[],u){let c=u?.state;if(r==null){if(!c)return null;if(c.errors)r=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)r=c.matches;else return null}let f=r,h=c?.errors;if(h!=null){let w=f.findIndex(S=>S.route.id&&h?.[S.route.id]!==void 0);We(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,w+1))}let p=!1,m=-1;if(u&&c){p=c.renderFallback;for(let w=0;w<f.length;w++){let S=f[w];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(m=w),S.route.id){let{loaderData:x,errors:D}=c,L=S.route.loader&&!x.hasOwnProperty(S.route.id)&&(!D||D[S.route.id]===void 0);if(S.route.lazy||L){u.isStatic&&(p=!0),m>=0?f=f.slice(0,m+1):f=[f[0]];break}}}}let y=u?.onError,E=c&&y?(w,S)=>{y(w,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:Js(c.matches),errorInfo:S})}:void 0;return f.reduceRight((w,S,x)=>{let D,L=!1,Q=null,Y=null;c&&(D=h&&S.route.id?h[S.route.id]:void 0,Q=S.route.errorElement||LC,p&&(m<0&&x===0?(tw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,Y=null):m===x&&(L=!0,Y=S.route.hydrateFallbackElement||null)));let J=i.concat(f.slice(0,x+1)),W=()=>{let re;return D?re=Q:L?re=Y:S.route.Component?re=H.createElement(S.route.Component,null):S.route.element?re=S.route.element:re=w,H.createElement(HC,{match:S,routeContext:{outlet:w,matches:J,isDataRoute:c!=null},children:re})};return c&&(S.route.ErrorBoundary||S.route.errorElement||x===0)?H.createElement(ew,{location:c.location,revalidation:c.revalidation,component:Q,error:D,children:W(),routeContext:{outlet:null,matches:J,isDataRoute:!0},onError:E}):W()},null)}function Ug(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VC(r){let i=H.useContext(Fi);return We(i,Ug(r)),i}function BC(r){let i=H.useContext(Fs);return We(i,Ug(r)),i}function $C(r){let i=H.useContext(Tl);return We(i,Ug(r)),i}function zg(r){let i=$C(r),u=i.matches[i.matches.length-1];return We(u.route.id,`${r} can only be used on routes that contain a unique "id"`),u.route.id}function YC(){return zg("useRouteId")}function qC(){let r=H.useContext(Mg),i=BC("useRouteError"),u=zg("useRouteError");return r!==void 0?r:i.errors?.[u]}function GC(){let{router:r}=VC("useNavigate"),i=zg("useNavigate"),u=H.useRef(!1);return Wx(()=>{u.current=!0}),H.useCallback(async(f,h={})=>{Jt(u.current,Ix),u.current&&(typeof f=="number"?await r.navigate(f):await r.navigate(f,{fromRouteId:i,...h}))},[r,i])}var ix={};function tw(r,i,u){!i&&!ix[r]&&(ix[r]=!0,Jt(!1,u))}var rx={};function ux(r,i){!r&&!rx[i]&&(rx[i]=!0,console.warn(i))}var XC="useOptimistic",sx=SN[XC],QC=()=>{};function ZC(r){return sx?sx(r):[r,QC]}function JC(r){let i={hasErrorBoundary:r.hasErrorBoundary||r.ErrorBoundary!=null||r.errorElement!=null};return r.Component&&(r.element&&Jt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:H.createElement(r.Component),Component:void 0})),r.HydrateFallback&&(r.hydrateFallbackElement&&Jt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:H.createElement(r.HydrateFallback),HydrateFallback:void 0})),r.ErrorBoundary&&(r.errorElement&&Jt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:H.createElement(r.ErrorBoundary),ErrorBoundary:void 0})),i}var FC=["HydrateFallback","hydrateFallbackElement"],PC=class{constructor(){this.status="pending",this.promise=new Promise((r,i)=>{this.resolve=u=>{this.status==="pending"&&(this.status="resolved",r(u))},this.reject=u=>{this.status==="pending"&&(this.status="rejected",i(u))}})}};function KC({router:r,flushSync:i,onError:u,unstable_useTransitions:c}){c=xC()||c;let[h,p]=H.useState(r.state),[m,y]=ZC(h),[E,w]=H.useState(),[S,x]=H.useState({isTransitioning:!1}),[D,L]=H.useState(),[Q,Y]=H.useState(),[J,W]=H.useState(),re=H.useRef(new Map),Ee=H.useCallback((M,{deletedFetchers:ae,newErrors:X,flushSync:De,viewTransitionOpts:I})=>{X&&u&&Object.values(X).forEach(xe=>u(xe,{location:M.location,params:M.matches[0]?.params??{},unstable_pattern:Js(M.matches)})),M.fetchers.forEach((xe,Ce)=>{xe.data!==void 0&&re.current.set(Ce,xe.data)}),ae.forEach(xe=>re.current.delete(xe)),ux(De===!1||i!=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 ce=r.window!=null&&r.window.document!=null&&typeof r.window.document.startViewTransition=="function";if(ux(I==null||ce,"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."),!I||!ce){i&&De?i(()=>p(M)):c===!1?p(M):H.startTransition(()=>{c===!0&&y(xe=>cx(xe,M)),p(M)});return}if(i&&De){i(()=>{Q&&(D?.resolve(),Q.skipTransition()),x({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let xe=r.window.document.startViewTransition(()=>{i(()=>p(M))});xe.finished.finally(()=>{i(()=>{L(void 0),Y(void 0),w(void 0),x({isTransitioning:!1})})}),i(()=>Y(xe));return}Q?(D?.resolve(),Q.skipTransition(),W({state:M,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(w(M),x({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[r.window,i,Q,D,c,y,u]);H.useLayoutEffect(()=>r.subscribe(Ee),[r,Ee]),H.useEffect(()=>{S.isTransitioning&&!S.flushSync&&L(new PC)},[S]),H.useEffect(()=>{if(D&&E&&r.window){let M=E,ae=D.promise,X=r.window.document.startViewTransition(async()=>{c===!1?p(M):H.startTransition(()=>{c===!0&&y(De=>cx(De,M)),p(M)}),await ae});X.finished.finally(()=>{L(void 0),Y(void 0),w(void 0),x({isTransitioning:!1})}),Y(X)}},[E,D,r.window,c,y]),H.useEffect(()=>{D&&E&&m.location.key===E.location.key&&D.resolve()},[D,Q,m.location,E]),H.useEffect(()=>{!S.isTransitioning&&J&&(w(J.state),x({isTransitioning:!0,flushSync:!1,currentLocation:J.currentLocation,nextLocation:J.nextLocation}),W(void 0))},[S.isTransitioning,J]);let ye=H.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:M=>r.navigate(M),push:(M,ae,X)=>r.navigate(M,{state:ae,preventScrollReset:X?.preventScrollReset}),replace:(M,ae,X)=>r.navigate(M,{replace:!0,state:ae,preventScrollReset:X?.preventScrollReset})}),[r]),Ve=r.basename||"/",Le=H.useMemo(()=>({router:r,navigator:ye,static:!1,basename:Ve,onError:u}),[r,ye,Ve,u]);return H.createElement(H.Fragment,null,H.createElement(Fi.Provider,{value:Le},H.createElement(Fs.Provider,{value:m},H.createElement(Px.Provider,{value:re.current},H.createElement(_g.Provider,{value:S},H.createElement(eA,{basename:Ve,location:m.location,navigationType:m.historyAction,navigator:ye,unstable_useTransitions:c},H.createElement(IC,{routes:r.routes,future:r.future,state:m,isStatic:!1,onError:u})))))),null)}function cx(r,i){return{...r,navigation:i.navigation.state!=="idle"?i.navigation:r.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:r.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:r.actionData,fetchers:i.fetchers}}var IC=H.memo(WC);function WC({routes:r,future:i,state:u,isStatic:c,onError:f}){return UC(r,void 0,{state:u,isStatic:c,onError:f})}function nw(r){return MC(r.context)}function eA({basename:r="/",children:i=null,location:u,navigationType:c="POP",navigator:f,static:h=!1,unstable_useTransitions:p}){We(!Ps(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=r.replace(/^\/*/,"/"),y=H.useMemo(()=>({basename:m,navigator:f,static:h,unstable_useTransitions:p,future:{}}),[m,f,h,p]);typeof u=="string"&&(u=uo(u));let{pathname:E="/",search:w="",hash:S="",state:x=null,key:D="default",unstable_mask:L}=u,Q=H.useMemo(()=>{let Y=Ta(E,m);return Y==null?null:{location:{pathname:Y,search:w,hash:S,state:x,key:D,unstable_mask:L},navigationType:c}},[m,E,w,S,x,D,c,L]);return Jt(Q!=null,`<Router basename="${m}"> is not able to match the URL "${E}${w}${S}" because it does not start with the basename, so the <Router> won't render anything.`),Q==null?null:H.createElement(Na.Provider,{value:y},H.createElement(Dd.Provider,{children:i,value:Q}))}var yd="get",bd="application/x-www-form-urlencoded";function Td(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function tA(r){return Td(r)&&r.tagName.toLowerCase()==="button"}function nA(r){return Td(r)&&r.tagName.toLowerCase()==="form"}function aA(r){return Td(r)&&r.tagName.toLowerCase()==="input"}function lA(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function oA(r,i){return r.button===0&&(!i||i==="_self")&&!lA(r)}var pd=null;function iA(){if(pd===null)try{new FormData(document.createElement("form"),0),pd=!1}catch{pd=!0}return pd}var rA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yg(r){return r!=null&&!rA.has(r)?(Jt(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bd}"`),null):r}function uA(r,i){let u,c,f,h,p;if(nA(r)){let m=r.getAttribute("action");c=m?Ta(m,i):null,u=r.getAttribute("method")||yd,f=yg(r.getAttribute("enctype"))||bd,h=new FormData(r)}else if(tA(r)||aA(r)&&(r.type==="submit"||r.type==="image")){let m=r.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=r.getAttribute("formaction")||m.getAttribute("action");if(c=y?Ta(y,i):null,u=r.getAttribute("formmethod")||m.getAttribute("method")||yd,f=yg(r.getAttribute("formenctype"))||yg(m.getAttribute("enctype"))||bd,h=new FormData(m,r),!iA()){let{name:E,type:w,value:S}=r;if(w==="image"){let x=E?`${E}.`:"";h.append(`${x}x`,"0"),h.append(`${x}y`,"0")}else E&&h.append(E,S)}}else{if(Td(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=yd,c=null,f=bd,p=r}return h&&f==="text/plain"&&(p=h,h=void 0),{action:c,method:u.toLowerCase(),encType:f,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lg(r,i){if(r===!1||r===null||typeof r>"u")throw new Error(i)}function sA(r,i,u,c){let f=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return u?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:i&&Ta(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${c}`,f}async function cA(r,i){if(r.id in i)return i[r.id];try{let u=await import(r.module);return i[r.id]=u,u}catch(u){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fA(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function dA(r,i,u){let c=await Promise.all(r.map(async f=>{let h=i.routes[f.route.id];if(h){let p=await cA(h,u);return p.links?p.links():[]}return[]}));return gA(c.flat(1).filter(fA).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function fx(r,i,u,c,f,h){let p=(y,E)=>u[E]?y.route.id!==u[E].route.id:!0,m=(y,E)=>u[E].pathname!==y.pathname||u[E].route.path?.endsWith("*")&&u[E].params["*"]!==y.params["*"];return h==="assets"?i.filter((y,E)=>p(y,E)||m(y,E)):h==="data"?i.filter((y,E)=>{let w=c.routes[y.route.id];if(!w||!w.hasLoader)return!1;if(p(y,E)||m(y,E))return!0;if(y.route.shouldRevalidate){let S=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(r,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function hA(r,i,{includeHydrateFallback:u}={}){return pA(r.map(c=>{let f=i.routes[c.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),u&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function pA(r){return[...new Set(r)]}function mA(r){let i={},u=Object.keys(r).sort();for(let c of u)i[c]=r[c];return i}function gA(r,i){let u=new Set;return new Set(i),r.reduce((c,f)=>{let h=JSON.stringify(mA(f));return u.has(h)||(u.add(h),c.push({key:h,link:f})),c},[])}function aw(){let r=H.useContext(Fi);return Lg(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function yA(){let r=H.useContext(Fs);return Lg(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var jg=H.createContext(void 0);jg.displayName="FrameworkContext";function lw(){let r=H.useContext(jg);return Lg(r,"You must render this element inside a <HydratedRouter> element"),r}function bA(r,i){let u=H.useContext(jg),[c,f]=H.useState(!1),[h,p]=H.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:E,onMouseLeave:w,onTouchStart:S}=i,x=H.useRef(null);H.useEffect(()=>{if(r==="render"&&p(!0),r==="viewport"){let Q=J=>{J.forEach(W=>{p(W.isIntersecting)})},Y=new IntersectionObserver(Q,{threshold:.5});return x.current&&Y.observe(x.current),()=>{Y.disconnect()}}},[r]),H.useEffect(()=>{if(c){let Q=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(Q)}}},[c]);let D=()=>{f(!0)},L=()=>{f(!1),p(!1)};return u?r!=="intent"?[h,x,{}]:[h,x,{onFocus:Us(m,D),onBlur:Us(y,L),onMouseEnter:Us(E,D),onMouseLeave:Us(w,L),onTouchStart:Us(S,D)}]:[!1,x,{}]}function Us(r,i){return u=>{r&&r(u),u.defaultPrevented||i(u)}}function vA({page:r,...i}){let{router:u}=aw(),c=H.useMemo(()=>ai(u.routes,r,u.basename),[u.routes,r,u.basename]);return c?H.createElement(EA,{page:r,matches:c,...i}):null}function SA(r){let{manifest:i,routeModules:u}=lw(),[c,f]=H.useState([]);return H.useEffect(()=>{let h=!1;return dA(r,i,u).then(p=>{h||f(p)}),()=>{h=!0}},[r,i,u]),c}function EA({page:r,matches:i,...u}){let c=ri(),{future:f,manifest:h,routeModules:p}=lw(),{basename:m}=aw(),{loaderData:y,matches:E}=yA(),w=H.useMemo(()=>fx(r,i,E,h,c,"data"),[r,i,E,h,c]),S=H.useMemo(()=>fx(r,i,E,h,c,"assets"),[r,i,E,h,c]),x=H.useMemo(()=>{if(r===c.pathname+c.search+c.hash)return[];let Q=new Set,Y=!1;if(i.forEach(W=>{let re=h.routes[W.route.id];!re||!re.hasLoader||(!w.some(Ee=>Ee.route.id===W.route.id)&&W.route.id in y&&p[W.route.id]?.shouldRevalidate||re.hasClientLoader?Y=!0:Q.add(W.route.id))}),Q.size===0)return[];let J=sA(r,m,f.unstable_trailingSlashAwareDataRequests,"data");return Y&&Q.size>0&&J.searchParams.set("_routes",i.filter(W=>Q.has(W.route.id)).map(W=>W.route.id).join(",")),[J.pathname+J.search]},[m,f.unstable_trailingSlashAwareDataRequests,y,c,h,w,i,r,p]),D=H.useMemo(()=>hA(S,h),[S,h]),L=SA(S);return H.createElement(H.Fragment,null,x.map(Q=>H.createElement("link",{key:Q,rel:"prefetch",as:"fetch",href:Q,...u})),D.map(Q=>H.createElement("link",{key:Q,rel:"modulepreload",href:Q,...u})),L.map(({key:Q,link:Y})=>H.createElement("link",{key:Q,nonce:u.nonce,...Y,crossOrigin:Y.crossOrigin??u.crossOrigin})))}function xA(...r){return i=>{r.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var wA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wA&&(window.__reactRouterVersion="7.13.1")}catch{}function RA(r,i){return KO({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:hO({window:i?.window}),hydrationData:DA(),routes:r,mapRouteProperties:JC,hydrationRouteProperties:FC,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function DA(){let r=window?.__staticRouterHydrationData;return r&&r.errors&&(r={...r,errors:TA(r.errors)}),r}function TA(r){if(!r)return null;let i=Object.entries(r),u={};for(let[c,f]of i)if(f&&f.__type==="RouteErrorResponse")u[c]=new Zs(f.status,f.statusText,f.data,f.internal===!0);else if(f&&f.__type==="Error"){if(f.__subType){let h=window[f.__subType];if(typeof h=="function")try{let p=new h(f.message);p.stack="",u[c]=p}catch{}}if(u[c]==null){let h=new Error(f.message);h.stack="",u[c]=h}}else u[c]=f;return u}var ow=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ro=H.forwardRef(function({onClick:i,discover:u="render",prefetch:c="none",relative:f,reloadDocument:h,replace:p,unstable_mask:m,state:y,target:E,to:w,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:D,...L},Q){let{basename:Y,navigator:J,unstable_useTransitions:W}=H.useContext(Na),re=typeof w=="string"&&ow.test(w),Ee=jx(w,Y);w=Ee.to;let ye=OC(w,{relative:f}),Ve=ri(),Le=null;if(m){let Ce=Rd(m,[],Ve.unstable_mask?Ve.unstable_mask.pathname:"/",!0);Y!=="/"&&(Ce.pathname=Ce.pathname==="/"?Y:Qa([Y,Ce.pathname])),Le=J.createHref(Ce)}let[M,ae,X]=bA(c,L),De=CA(w,{replace:p,unstable_mask:m,state:y,target:E,preventScrollReset:S,relative:f,viewTransition:x,unstable_defaultShouldRevalidate:D,unstable_useTransitions:W});function I(Ce){i&&i(Ce),Ce.defaultPrevented||De(Ce)}let ce=!(Ee.isExternal||h),xe=H.createElement("a",{...L,...X,href:(ce?Le:void 0)||Ee.absoluteURL||ye,onClick:ce?I:i,ref:xA(Q,ae),target:E,"data-discover":!re&&u==="render"?"true":void 0});return M&&!re?H.createElement(H.Fragment,null,xe,H.createElement(vA,{page:ye})):xe});ro.displayName="Link";var oi=H.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:c="",end:f=!1,style:h,to:p,viewTransition:m,children:y,...E},w){let S=Ks(p,{relative:E.relative}),x=ri(),D=H.useContext(Fs),{navigator:L,basename:Q}=H.useContext(Na),Y=D!=null&&zA(S)&&m===!0,J=L.encodeLocation?L.encodeLocation(S).pathname:S.pathname,W=x.pathname,re=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;u||(W=W.toLowerCase(),re=re?re.toLowerCase():null,J=J.toLowerCase()),re&&Q&&(re=Ta(re,Q)||re);const Ee=J!=="/"&&J.endsWith("/")?J.length-1:J.length;let ye=W===J||!f&&W.startsWith(J)&&W.charAt(Ee)==="/",Ve=re!=null&&(re===J||!f&&re.startsWith(J)&&re.charAt(J.length)==="/"),Le={isActive:ye,isPending:Ve,isTransitioning:Y},M=ye?i:void 0,ae;typeof c=="function"?ae=c(Le):ae=[c,ye?"active":null,Ve?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let X=typeof h=="function"?h(Le):h;return H.createElement(ro,{...E,"aria-current":M,className:ae,ref:w,style:X,to:p,viewTransition:m},typeof y=="function"?y(Le):y)});oi.displayName="NavLink";var NA=H.forwardRef(({discover:r="render",fetcherKey:i,navigate:u,reloadDocument:c,replace:f,state:h,method:p=yd,action:m,onSubmit:y,relative:E,preventScrollReset:w,viewTransition:S,unstable_defaultShouldRevalidate:x,...D},L)=>{let{unstable_useTransitions:Q}=H.useContext(Na),Y=MA(),J=UA(m,{relative:E}),W=p.toLowerCase()==="get"?"get":"post",re=typeof m=="string"&&ow.test(m),Ee=ye=>{if(y&&y(ye),ye.defaultPrevented)return;ye.preventDefault();let Ve=ye.nativeEvent.submitter,Le=Ve?.getAttribute("formmethod")||p,M=()=>Y(Ve||ye.currentTarget,{fetcherKey:i,method:Le,navigate:u,replace:f,state:h,relative:E,preventScrollReset:w,viewTransition:S,unstable_defaultShouldRevalidate:x});Q&&u!==!1?H.startTransition(()=>M()):M()};return H.createElement("form",{ref:L,method:W,action:J,onSubmit:c?y:Ee,...D,"data-discover":!re&&r==="render"?"true":void 0})});NA.displayName="Form";function OA(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iw(r){let i=H.useContext(Fi);return We(i,OA(r)),i}function CA(r,{target:i,replace:u,unstable_mask:c,state:f,preventScrollReset:h,relative:p,viewTransition:m,unstable_defaultShouldRevalidate:y,unstable_useTransitions:E}={}){let w=CC(),S=ri(),x=Ks(r,{relative:p});return H.useCallback(D=>{if(oA(D,i)){D.preventDefault();let L=u!==void 0?u:Dl(S)===Dl(x),Q=()=>w(r,{replace:L,unstable_mask:c,state:f,preventScrollReset:h,relative:p,viewTransition:m,unstable_defaultShouldRevalidate:y});E?H.startTransition(()=>Q()):Q()}},[S,w,x,u,c,f,i,r,h,p,m,y,E])}var AA=0,_A=()=>`__${String(++AA)}__`;function MA(){let{router:r}=iw("useSubmit"),{basename:i}=H.useContext(Na),u=YC(),c=r.fetch,f=r.navigate;return H.useCallback(async(h,p={})=>{let{action:m,method:y,encType:E,formData:w,body:S}=uA(h,i);if(p.navigate===!1){let x=p.fetcherKey||_A();await c(x,u,p.action||m,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:w,body:S,formMethod:p.method||y,formEncType:p.encType||E,flushSync:p.flushSync})}else await f(p.action||m,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:w,body:S,formMethod:p.method||y,formEncType:p.encType||E,replace:p.replace,state:p.state,fromRouteId:u,flushSync:p.flushSync,viewTransition:p.viewTransition})},[c,f,i,u])}function UA(r,{relative:i}={}){let{basename:u}=H.useContext(Na),c=H.useContext(Tl);We(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),h={...Ks(r||".",{relative:i})},p=ri();if(r==null){h.search=p.search;let m=new URLSearchParams(h.search),y=m.getAll("index");if(y.some(w=>w==="")){m.delete("index"),y.filter(S=>S).forEach(S=>m.append("index",S));let w=m.toString();h.search=w?`?${w}`:""}}return(!r||r===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(h.pathname=h.pathname==="/"?u:Qa([u,h.pathname])),Dl(h)}function zA(r,{relative:i}={}){let u=H.useContext(_g);We(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=iw("useViewTransitionState"),f=Ks(r,{relative:i});if(!u.isTransitioning)return!1;let h=Ta(u.currentLocation.pathname,c)||u.currentLocation.pathname,p=Ta(u.nextLocation.pathname,c)||u.nextLocation.pathname;return xd(f.pathname,p)!=null||xd(f.pathname,h)!=null}const rw=(...r)=>r.filter((i,u,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===u).join(" ").trim();const LA=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const jA=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,u,c)=>c?c.toUpperCase():u.toLowerCase());const dx=r=>{const i=jA(r);return i.charAt(0).toUpperCase()+i.slice(1)};var HA={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 kA=r=>{for(const i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const VA=H.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:p,...m},y)=>H.createElement("svg",{ref:y,...HA,width:i,height:i,stroke:r,strokeWidth:c?Number(u)*24/Number(i):u,className:rw("lucide",f),...!h&&!kA(m)&&{"aria-hidden":"true"},...m},[...p.map(([E,w])=>H.createElement(E,w)),...Array.isArray(h)?h:[h]]));const xn=(r,i)=>{const u=H.forwardRef(({className:c,...f},h)=>H.createElement(VA,{ref:h,iconNode:i,className:rw(`lucide-${LA(dx(r))}`,`lucide-${r}`,c),...f}));return u.displayName=dx(r),u};const BA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$A=xn("arrow-right",BA);const YA=[["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"}]],qA=xn("boxes",YA);const GA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],XA=xn("clock",GA);const QA=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],ZA=xn("code-xml",QA);const JA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],FA=xn("compass",JA);const PA=[["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"}]],uw=xn("file-text",PA);const KA=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],IA=xn("github",KA);const WA=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],e4=xn("menu",WA);const t4=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],n4=xn("message-circle",t4);const a4=[["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"}]],sw=xn("monitor",a4);const l4=[["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"}]],o4=xn("moon",l4);const i4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],r4=xn("panel-left",i4);const u4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],s4=xn("plus",u4);const c4=[["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"}]],f4=xn("sun",c4);const d4=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],h4=xn("upload",d4);const p4=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hg=xn("x",p4),hx=r=>{let i;const u=new Set,c=(E,w)=>{const S=typeof E=="function"?E(i):E;if(!Object.is(S,i)){const x=i;i=w??(typeof S!="object"||S===null)?S:Object.assign({},i,S),u.forEach(D=>D(i,x))}},f=()=>i,m={setState:c,getState:f,getInitialState:()=>y,subscribe:E=>(u.add(E),()=>u.delete(E))},y=i=r(c,f,m);return m},m4=(r=>r?hx(r):hx),g4=r=>r;function y4(r,i=g4){const u=js.useSyncExternalStore(r.subscribe,js.useCallback(()=>i(r.getState()),[r,i]),js.useCallback(()=>i(r.getInitialState()),[r,i]));return js.useDebugValue(u),u}const px=r=>{const i=m4(r),u=c=>y4(i,c);return Object.assign(u,i),u},cw=(r=>r?px(r):px),b4=cw(r=>({status:"disconnected",setStatus:i=>r({status:i})})),v4={connected:"bg-c4a-success",disconnected:"bg-c4a-error",reconnecting:"bg-c4a-warning"};function Dg(){const{t:r}=Ut(),i=b4(f=>f.status),u=v4[i]??"bg-c4a-text-muted",c=r(`header.status.${i}`);return j.jsxDEV("div",{className:"group relative flex items-center",title:c,children:[j.jsxDEV("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:18,columnNumber:7},this),j.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:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:19,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:17,columnNumber:5},this)}const mx=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function S4(){const{t:r}=Ut(),[i,u]=H.useState(!1);return j.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[j.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[j.jsxDEV(ro,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[j.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),j.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),j.jsxDEV("div",{className:"hidden items-center gap-6 md:flex",children:[j.jsxDEV("nav",{className:"flex items-center gap-4",children:mx.map(({to:c,labelKey:f})=>j.jsxDEV(oi,{to:c,end:c==="/",className:({isActive:h})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${h?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:r(f)},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),j.jsxDEV("div",{className:"flex items-center gap-3",children:[j.jsxDEV(Dg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),j.jsxDEV(ro,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:r("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),j.jsxDEV("button",{onClick:()=>u(!i),className:"text-c4a-text-secondary md:hidden",children:i?j.jsxDEV(Hg,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):j.jsxDEV(e4,{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),i&&j.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[j.jsxDEV("nav",{className:"flex flex-col gap-2",children:mx.map(({to:c,labelKey:f})=>j.jsxDEV(oi,{to:c,end:c==="/",onClick:()=>u(!1),className:({isActive:h})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${h?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:r(f)},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),j.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:j.jsxDEV("div",{className:"flex items-center gap-3",children:[j.jsxDEV(Dg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),j.jsxDEV(ro,{to:"/login",onClick:()=>u(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:r("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 E4(r){return r==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":r==="system"?"dark":r}function fw(r){if(typeof window>"u")return;const i=E4(r);document.documentElement.setAttribute("data-theme",i),localStorage.setItem("theme",r)}function x4(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const dw=cw(r=>({theme:x4(),setTheme:i=>{fw(i),r({theme:i})}}));let gx=!1;function w4(){if(gx||typeof window>"u")return;gx=!0;const r=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{const{theme:u}=dw.getState();u==="system"&&fw("system")};r.addEventListener("change",i)}w4();const R4=[{mode:"light",icon:f4,labelKey:"footer.theme.light"},{mode:"dark",icon:o4,labelKey:"footer.theme.dark"},{mode:"system",icon:sw,labelKey:"footer.theme.system"}];function D4(){const{t:r}=Ut(),{theme:i,setTheme:u}=dw();return j.jsxDEV("div",{className:"flex items-center gap-1",children:R4.map(({mode:c,icon:f,labelKey:h})=>j.jsxDEV("button",{onClick:()=>u(c),title:r(h),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${i===c?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:j.jsxDEV(f,{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 T4(){const{i18n:r}=Ut(),i=()=>{const u=r.language==="en"?"zh":"en";r.changeLanguage(u)};return j.jsxDEV("button",{onClick:i,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:r.language==="en"?"CN":"EN"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LanguageSwitcher.tsx",lineNumber:12,columnNumber:5},this)}const N4="_brandIcon_1c7st_1",O4="_iconPulse_1c7st_35",yx={brandIcon:N4,iconPulse:O4};function hw(){const{t:r}=Ut(),i=new Date().getFullYear();return j.jsxDEV("footer",{className:"border-t border-c4a-border-subtle bg-c4a-bg-base px-4 py-4",children:j.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[j.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[j.jsxDEV("div",{className:yx.brandIcon,children:j.jsxDEV("span",{className:yx.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),j.jsxDEV("div",{className:"flex flex-col",children:[j.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),j.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:r("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),j.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[j.jsxDEV("div",{className:"flex items-center gap-2",children:[j.jsxDEV(D4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:31,columnNumber:13},this),j.jsxDEV(T4,{},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),j.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:r("footer.copyright",{year:i})},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 C4(){return j.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[j.jsxDEV(S4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),j.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:j.jsxDEV(nw,{},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),j.jsxDEV(hw,{},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 A4({onToggleSidebar:r}){const{t:i}=Ut();return j.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:j.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[j.jsxDEV("div",{className:"flex items-center gap-2",children:[r&&j.jsxDEV("button",{onClick:r,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:j.jsxDEV(r4,{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),j.jsxDEV(ro,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[j.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:30,columnNumber:13},this),j.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/StudioHeader.tsx",lineNumber:33,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:17,columnNumber:9},this),j.jsxDEV("div",{className:"flex items-center gap-3",children:[j.jsxDEV(Dg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:41,columnNumber:11},this),j.jsxDEV(ro,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:i("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:40,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)}const zs=r=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${r?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`;function bx({onNavigate:r}){const{t:i}=Ut();return j.jsxDEV("aside",{className:"flex h-full w-[300px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:j.jsxDEV("nav",{className:"flex flex-col gap-1",children:[j.jsxDEV(oi,{to:"/studio",end:!0,onClick:r,className:({isActive:u})=>zs(u),children:[j.jsxDEV(FA,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:36,columnNumber:11},this),i("studio.sidebar.explore")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:30,columnNumber:9},this),j.jsxDEV("div",{className:"mt-3",children:[j.jsxDEV("span",{className:"px-3 font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:[j.jsxDEV(qA,{size:12,className:"mr-1.5 inline-block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:43,columnNumber:13},this),i("studio.sidebar.modeling")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:42,columnNumber:11},this),j.jsxDEV("div",{className:"mt-1 flex flex-col gap-0.5 pl-3",children:[j.jsxDEV(oi,{to:"/studio/modeling/new",onClick:r,className:({isActive:u})=>zs(u),children:[j.jsxDEV(s4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:52,columnNumber:15},this),i("studio.sidebar.modeling.new")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:47,columnNumber:13},this),j.jsxDEV(oi,{to:"/studio/modeling/history",onClick:r,className:({isActive:u})=>zs(u),children:[j.jsxDEV(XA,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:60,columnNumber:15},this),i("studio.sidebar.modeling.history")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:55,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:46,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:41,columnNumber:9},this),j.jsxDEV(oi,{to:"/studio/code",onClick:r,className:({isActive:u})=>zs(u),children:[j.jsxDEV(ZA,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:72,columnNumber:11},this),i("studio.sidebar.code")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:67,columnNumber:9},this),j.jsxDEV(oi,{to:"/studio/docs",onClick:r,className:({isActive:u})=>zs(u),children:[j.jsxDEV(uw,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:82,columnNumber:11},this),i("studio.sidebar.docs")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:77,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:28,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:27,columnNumber:5},this)}function _4(){const[r,i]=H.useState(!1);return j.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[j.jsxDEV(A4,{onToggleSidebar:()=>i(!r)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:12,columnNumber:7},this),j.jsxDEV("div",{className:"flex flex-1",children:[j.jsxDEV("div",{className:"hidden md:block",children:j.jsxDEV(bx,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:17,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:16,columnNumber:9},this),r&&j.jsxDEV(j.Fragment,{children:[j.jsxDEV("div",{className:"fixed inset-0 z-20 bg-black/40 md:hidden",onClick:()=>i(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:23,columnNumber:13},this),j.jsxDEV("div",{className:"fixed inset-y-0 left-0 z-20 md:hidden",children:j.jsxDEV(bx,{onNavigate:()=>i(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:28,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:27,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:22,columnNumber:11},this),j.jsxDEV("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:j.jsxDEV(nw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:14,columnNumber:7},this),j.jsxDEV(hw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:38,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:11,columnNumber:5},this)}function M4(){const{t:r}=Ut();return j.jsxDEV("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[j.jsxDEV("h1",{className:"font-mono text-4xl font-bold uppercase tracking-wide text-c4a-text-primary md:text-5xl",children:r("home.hero.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:10,columnNumber:7},this),j.jsxDEV("p",{className:"mt-6 max-w-lg text-base text-c4a-text-secondary",children:r("home.hero.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:13,columnNumber:7},this),j.jsxDEV("div",{className:"mt-10 flex items-center gap-4",children:[j.jsxDEV(ro,{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:[r("home.hero.cta.studio"),j.jsxDEV($A,{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),j.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:r("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 so({title:r,version:i,description:u}){const{t:c}=Ut();return j.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:j.jsxDEV("div",{className:"max-w-md text-center",children:[j.jsxDEV("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:15,columnNumber:9},this),i&&j.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:i})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:19,columnNumber:11},this),j.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:u},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 U4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.login.title"),version:"0.4.13",description:r("page.login.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Login.tsx",lineNumber:8,columnNumber:5},this)}function z4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.docs.title"),version:"0.4.13",description:r("page.docs.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Docs.tsx",lineNumber:8,columnNumber:5},this)}function L4(){const{t:r}=Ut();return j.jsxDEV("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[j.jsxDEV("h1",{className:"font-mono text-6xl font-bold text-c4a-accent",children:r("notfound.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:9,columnNumber:7},this),j.jsxDEV("p",{className:"mt-4 text-base text-c4a-text-secondary",children:r("notfound.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:12,columnNumber:7},this),j.jsxDEV(ro,{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:r("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 j4(){const{t:r}=Ut(),[i,u]=H.useState(!1);return j.jsxDEV(j.Fragment,{children:[!i&&j.jsxDEV("button",{onClick:()=>u(!0),className:"absolute right-4 top-4 z-30 cursor-pointer rounded-full bg-c4a-accent p-2 text-white shadow-c4a-glow transition-colors duration-150 hover:bg-c4a-accent-hover",title:r("explore.chat.title"),children:j.jsxDEV(n4,{size:16},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:18,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:13,columnNumber:9},this),i&&j.jsxDEV("div",{className:"absolute inset-0 z-30 flex flex-col border-l border-c4a-border-subtle bg-c4a-bg-surface shadow-c4a-lg md:left-auto md:w-[400px]",children:[j.jsxDEV("div",{className:"flex items-center justify-between border-b border-c4a-border-subtle px-4 py-3",children:[j.jsxDEV("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:r("explore.chat.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:27,columnNumber:13},this),j.jsxDEV("button",{onClick:()=>u(!1),className:"cursor-pointer text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:j.jsxDEV(Hg,{size:16},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:34,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:30,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:26,columnNumber:11},this),j.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-4 text-center text-sm text-c4a-text-muted",children:r("explore.empty")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:39,columnNumber:11},this),j.jsxDEV("div",{className:"border-t border-c4a-border-subtle p-4",children:j.jsxDEV("input",{type:"text",disabled:!0,placeholder:r("explore.chat.placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-hover px-3 py-2 font-mono text-xs text-c4a-text-muted placeholder:text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:45,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LLMChatPanel.tsx",lineNumber:10,columnNumber:5},this)}function H4(){const{t:r}=Ut();return j.jsxDEV("div",{className:"relative flex flex-1 flex-col p-6",children:[j.jsxDEV("h2",{className:"font-mono text-xl font-bold uppercase tracking-tight text-c4a-text-primary",children:r("explore.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Explore.tsx",lineNumber:9,columnNumber:7},this),j.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:r("explore.empty")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Explore.tsx",lineNumber:12,columnNumber:7},this),j.jsxDEV(j4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Explore.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Explore.tsx",lineNumber:8,columnNumber:5},this)}function md({icon:r,title:i,description:u,disabled:c,children:f}){const{t:h}=Ut();return j.jsxDEV("div",{className:`rounded-lg border p-6 transition-colors duration-150 ${c?"border-c4a-border-subtle bg-c4a-bg-surface opacity-50":"border-c4a-border-default bg-c4a-bg-surface hover:border-c4a-border-strong"}`,children:[j.jsxDEV("div",{className:"flex items-center gap-3",children:[j.jsxDEV("div",{className:"text-c4a-accent",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:25,columnNumber:9},this),j.jsxDEV("div",{children:[j.jsxDEV("h3",{className:"font-mono text-sm font-semibold uppercase tracking-tight text-c4a-text-primary",children:i},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:27,columnNumber:11},this),j.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-secondary",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:30,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:26,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:24,columnNumber:7},this),f&&j.jsxDEV("div",{className:"mt-4",children:f},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:33,columnNumber:20},this),c&&j.jsxDEV("p",{className:"mt-3 font-mono text-[10px] uppercase text-c4a-text-muted",children:h("modeling.new.coming_soon")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:35,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:17,columnNumber:5},this)}function k4(){const{t:r}=Ut(),[i,u]=H.useState(""),[c,f]=H.useState([]),h=H.useRef(null),p=y=>{y&&f(E=>[...E,...Array.from(y)])},m=y=>{f(E=>E.filter((w,S)=>S!==y))};return j.jsxDEV("div",{className:"flex flex-1 flex-col items-center p-6",children:[j.jsxDEV("h2",{className:"font-mono text-xl font-bold uppercase tracking-tight text-c4a-text-primary",children:r("modeling.new.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:60,columnNumber:7},this),j.jsxDEV("div",{className:"mt-8 grid w-full max-w-2xl gap-4 md:grid-cols-2",children:[j.jsxDEV(md,{icon:j.jsxDEV(h4,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:67,columnNumber:17},this),title:r("modeling.new.upload.title"),description:r("modeling.new.upload.description"),children:[j.jsxDEV("input",{ref:h,type:"file",multiple:!0,className:"hidden",onChange:y=>p(y.target.files)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:71,columnNumber:11},this),j.jsxDEV("div",{role:"button",tabIndex:0,onClick:()=>h.current?.click(),onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&h.current?.click()},onDragOver:y=>y.preventDefault(),onDrop:y=>{y.preventDefault(),p(y.dataTransfer.files)},className:"flex min-h-[80px] cursor-pointer items-center justify-center rounded border border-dashed border-c4a-border-default bg-c4a-bg-hover text-xs text-c4a-text-muted hover:border-c4a-accent",children:r("modeling.new.upload.dropzone")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:78,columnNumber:11},this),c.length>0&&j.jsxDEV("ul",{className:"mt-2 space-y-1",children:c.map((y,E)=>j.jsxDEV("li",{className:"flex items-center justify-between rounded bg-c4a-bg-hover px-2 py-1 text-xs text-c4a-text-secondary",children:[j.jsxDEV("span",{className:"truncate",children:y.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:93,columnNumber:19},this),j.jsxDEV("button",{type:"button",onClick:()=>m(E),className:"ml-2 text-c4a-text-muted hover:text-c4a-text-primary",children:j.jsxDEV(Hg,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:95,columnNumber:21},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:94,columnNumber:19},this)]},`${y.name}-${E}`,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:92,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:90,columnNumber:13},this),j.jsxDEV("button",{type:"button",disabled:c.length===0,className:"mt-3 w-full rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs font-semibold uppercase text-white disabled:opacity-40",children:r("modeling.new.upload.submit")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:66,columnNumber:9},this),j.jsxDEV(md,{icon:j.jsxDEV(IA,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:112,columnNumber:17},this),title:r("modeling.new.github.title"),description:r("modeling.new.github.description"),children:[j.jsxDEV("input",{type:"text",value:i,onChange:y=>u(y.target.value),placeholder:r("modeling.new.github.placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-hover px-3 py-2 font-mono text-xs text-c4a-text-primary placeholder:text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:116,columnNumber:11},this),j.jsxDEV("button",{type:"button",disabled:i.trim().length===0,className:"mt-3 w-full rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs font-semibold uppercase text-white disabled:opacity-40",children:r("modeling.new.github.submit")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:123,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:111,columnNumber:9},this),j.jsxDEV(md,{icon:j.jsxDEV(uw,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:134,columnNumber:17},this),title:r("modeling.new.docs.title"),description:r("modeling.new.docs.description"),disabled:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:133,columnNumber:9},this),j.jsxDEV(md,{icon:j.jsxDEV(sw,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:142,columnNumber:17},this),title:r("modeling.new.client.title"),description:r("modeling.new.client.description"),disabled:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:141,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:64,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingNew.tsx",lineNumber:59,columnNumber:5},this)}function V4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.modeling_history.title"),version:"0.4.13",description:r("page.modeling_history.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/ModelingHistory.tsx",lineNumber:8,columnNumber:5},this)}function B4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.code_browser.title"),version:"0.4.13",description:r("page.code_browser.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/CodeBrowser.tsx",lineNumber:8,columnNumber:5},this)}function $4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.doc_browser.title"),version:"0.4.13",description:r("page.doc_browser.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/DocBrowser.tsx",lineNumber:8,columnNumber:5},this)}function Y4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.code_setup.title"),version:"0.4.13",description:r("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 q4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.code_compile.title"),version:"0.4.13",description:r("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 G4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.code_review.title"),version:"0.4.14",description:r("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 X4(){const{t:r}=Ut();return j.jsxDEV(so,{title:r("page.code_result.title"),version:"0.4.14",description:r("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 Q4=RA([{element:j.jsxDEV(C4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:21,columnNumber:14},void 0),children:[{path:"/",element:j.jsxDEV(M4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:23,columnNumber:29},void 0)},{path:"/login",element:j.jsxDEV(U4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:24,columnNumber:34},void 0)},{path:"/docs",element:j.jsxDEV(z4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:25,columnNumber:33},void 0)}]},{path:"/studio",element:j.jsxDEV(_4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:14},void 0),children:[{index:!0,element:j.jsxDEV(H4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:34,columnNumber:31},void 0)},{path:"modeling/new",element:j.jsxDEV(k4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:35,columnNumber:40},void 0)},{path:"modeling/history",element:j.jsxDEV(V4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:36,columnNumber:44},void 0)},{path:"modeling/code/setup",element:j.jsxDEV(Y4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:37,columnNumber:47},void 0)},{path:"modeling/code/compile",element:j.jsxDEV(q4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:38,columnNumber:49},void 0)},{path:"modeling/code/review",element:j.jsxDEV(G4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:39,columnNumber:48},void 0)},{path:"modeling/code/result",element:j.jsxDEV(X4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:40,columnNumber:48},void 0)},{path:"code",element:j.jsxDEV(B4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:41,columnNumber:32},void 0)},{path:"docs",element:j.jsxDEV($4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:42,columnNumber:32},void 0)}]},{path:"*",element:j.jsxDEV(L4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:47,columnNumber:25},void 0)}]);function Z4(){return j.jsxDEV(KC,{router:Q4},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:5,columnNumber:10},this)}cO.createRoot(document.getElementById("root")).render(j.jsxDEV(H.StrictMode,{children:j.jsxDEV(Z4,{},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));
|